* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f8f7;
    --dark: #071018;
    --dark-2: #0d1c24;
    --green: #42d77d;
    --green-2: #0f8f55;
    --text: #071018;
    --muted: #667085;
    --line: #dbe5ea;
    --white: #ffffff;
    --danger: #d92d20;
    --shadow: 0 24px 70px rgba(7, 16, 24, .12);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background:
        radial-gradient(circle at 14% 10%, rgba(66, 215, 125, .16), transparent 28%),
        linear-gradient(135deg, #eaf8f2, #f8fbfa);
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(540px, 1.15fr) minmax(430px, .85fr);
    background: var(--white);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 64px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 16%, rgba(66, 215, 125, .34), transparent 30%),
        radial-gradient(circle at 22% 80%, rgba(38, 99, 139, .42), transparent 34%),
        linear-gradient(135deg, #050b12, #10251b);
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
}

.login-hero > * {
    position: relative;
    z-index: 1;
}

.login-brand,
.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 950;
    text-decoration: none;
}

.login-brand span,
.app-brand span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #06180f;
    font-weight: 950;
}

.login-kicker,
.page-kicker,
.section-kicker {
    color: var(--green);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-hero h1 {
    max-width: 720px;
    margin: 12px 0 0;
    font-size: clamp(46px, 5.7vw, 82px);
    line-height: .95;
    letter-spacing: -.06em;
}

.login-hero p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #dcebe7;
    font-size: 18px;
    line-height: 1.55;
}

.login-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.login-trust span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    color: #e9fbf1;
    font-size: 13px;
    font-weight: 900;
}

.login-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    background:
        radial-gradient(circle at top right, rgba(66, 215, 125, .12), transparent 28%),
        #fff;
}

.login-page-actions {
    position: absolute;
    top: 34px;
    right: 44px;
    display: flex;
    gap: 16px;
}

.login-page-actions a,
.login-support a,
.login-card-footer a {
    color: var(--green-2);
    font-weight: 950;
    text-decoration: none;
}

.login-card-head {
    margin-bottom: 28px;
}

.login-card-head h2 {
    margin: 8px 0;
    font-size: 42px;
    letter-spacing: -.045em;
}

.login-card-head p {
    max-width: 430px;
    margin: 0;
    color: #52627a;
    line-height: 1.5;
}

.login-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff1f0;
    border: 1px solid #ffc9c4;
    color: var(--danger);
    font-weight: 900;
}

.login-card form {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.login-card label {
    display: grid;
    gap: 8px;
    color: #253247;
    font-size: 14px;
    font-weight: 950;
}

.login-card input {
    width: 100%;
    height: 56px;
    border: 1px solid #cbd8e1;
    border-radius: 14px;
    padding: 0 16px;
    background: #f8fafb;
    color: var(--dark);
    font-size: 15px;
    outline: none;
}

.login-card input:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(66, 215, 125, .16);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 96px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: #06180f;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.login-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.remember-login {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    color: #667085 !important;
}

.remember-login input {
    width: 16px;
    height: 16px;
    padding: 0;
}

.login-submit {
    height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green), #2fc96e);
    color: #06140d;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(47, 201, 110, .28);
}

.login-card-footer {
    max-width: 520px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e4eaf0;
    text-align: center;
}

.login-card-footer p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.app-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background:
        radial-gradient(circle at 20% 0%, rgba(66, 215, 125, .12), transparent 30%),
        #f4f8f7;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(66, 215, 125, .18), transparent 32%),
        linear-gradient(180deg, #071018, #0c2017);
    color: #fff;
}

.app-menu {
    display: grid;
    gap: 8px;
    margin-top: 42px;
}

.app-menu a,
.logout-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #dcebe7;
    text-decoration: none;
    font-weight: 900;
}

.app-menu a:hover,
.app-menu a.is-active {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.logout-link {
    margin-top: auto;
    background: rgba(255,255,255,.08);
}

.app-main {
    min-width: 0;
    padding: 34px;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.app-topbar h1 {
    margin: 8px 0 6px;
    font-size: 38px;
    letter-spacing: -.04em;
}

.app-topbar p {
    margin: 0;
    color: var(--muted);
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    text-decoration: none;
    font-weight: 950;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card,
.panel {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(7, 16, 24, .08);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(7, 16, 24, .055);
}

.stat-card {
    padding: 20px;
}

.stat-card span,
.panel-head span {
    color: var(--green-2);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.stat-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.dashboard-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel {
    padding: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 6px 0 0;
    font-size: 23px;
    letter-spacing: -.03em;
}

.panel-head a {
    color: var(--green-2);
    font-weight: 950;
    text-decoration: none;
}

.panel-search {
    width: 260px;
    height: 42px;
    border: 1px solid #d1dde5;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
}

.table-list {
    display: grid;
    gap: 10px;
}

.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e1e8ee;
    border-radius: 14px;
    background: #fff;
}

.table-row strong {
    display: block;
}

.table-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.data-table {
    display: grid;
    gap: 8px;
}

.data-row {
    display: grid;
    grid-template-columns: 90px 1.5fr 1fr 130px 110px 150px;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #e1e8ee;
    border-radius: 14px;
    background: #fff;
}

.data-table.compact .data-row {
    grid-template-columns: 90px 1fr 1fr 110px;
}

.data-head {
    background: #f4f8f7;
    color: #52627a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-pill {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.status-pill.ok {
    background: #dcfce7;
    color: #087443;
}

.status-pill.off {
    background: #f2f4f7;
    color: #667085;
}

.empty-box {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px dashed #cad6dd;
    color: var(--muted);
    font-weight: 800;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e1e8ee;
}

.info-list span {
    color: var(--muted);
}

.info-list strong {
    text-align: right;
}

@media (max-width: 1050px) {
    .login-shell,
    .app-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 460px;
    }

    .app-sidebar {
        position: static;
        height: auto;
    }

    .app-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid,
    .dashboard-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .login-hero,
    .login-card,
    .app-main {
        padding: 24px;
    }

    .login-page-actions {
        position: static;
        justify-content: flex-start;
        margin-bottom: 24px;
    }

    .login-hero h1 {
        font-size: 40px;
    }

    .login-support,
    .app-topbar,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-search {
        width: 100%;
    }

    .data-row,
    .data-table.compact .data-row {
        grid-template-columns: 1fr;
    }
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.35fr) minmax(280px, .75fr) minmax(280px, .75fr);
    gap: 18px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chart-panel {
    min-height: 310px;
}

.wide-chart {
    min-width: 520px;
}

.bar-chart {
    height: 230px;
    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    gap: 14px;
    align-items: end;
    padding-top: 18px;
}

.bar-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 70px;
}

.bar-value {
    font-size: 12px;
    color: #52627a;
    font-weight: 900;
    white-space: nowrap;
}

.bar-track {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: end;
    justify-content: center;
    border-radius: 16px;
    background: #f1f6f4;
    overflow: hidden;
    border: 1px solid #e1e8ee;
}

.bar-fill {
    width: 52%;
    min-height: 8px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #42d77d, #0f8f55);
    box-shadow: 0 12px 24px rgba(66, 215, 125, .26);
}

.bar-item strong {
    font-size: 13px;
}

.bar-item small {
    color: #667085;
    font-size: 12px;
}

.donut-wrap {
    height: 220px;
    display: grid;
    place-items: center;
    gap: 16px;
}

.donut-chart {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}

.donut-chart::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e1e8ee;
}

.donut-chart span {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 950;
}

.chart-legend {
    width: 100%;
    display: grid;
    gap: 8px;
}

.chart-legend div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f7faf9;
    color: #52627a;
    font-size: 13px;
    font-weight: 800;
}

.chart-legend strong {
    color: #071018;
}

.progress-card {
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-card > strong {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.05em;
}

.progress-card p {
    margin: 10px 0 18px;
    color: #667085;
}

.progress-line {
    height: 14px;
    border-radius: 999px;
    background: #e8efed;
    overflow: hidden;
    border: 1px solid #dce7e3;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #42d77d, #0f8f55);
}

.mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.mini-metrics div {
    padding: 12px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid #e1e8ee;
}

.mini-metrics small {
    display: block;
    color: #667085;
    margin-bottom: 4px;
}

.mini-metrics b {
    font-size: 20px;
}

.kanban-panel {
    margin-bottom: 18px;
}

.kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.full-kanban {
    grid-auto-columns: minmax(300px, 340px);
    min-height: calc(100vh - 230px);
}

.kanban-lane {
    min-height: 320px;
    padding: 12px;
    border-radius: 18px;
    background: #f3f7f6;
    border: 1px solid #dfe9e5;
}

.kanban-lane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.kanban-lane-head strong {
    font-size: 15px;
}

.kanban-lane-head span {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #071018;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.kanban-card,
.kanban-empty-card {
    border-radius: 15px;
    background: #fff;
    border: 1px solid #e1e8ee;
}

.kanban-card {
    padding: 13px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(7, 16, 24, .045);
}

.kanban-card:hover {
    border-color: rgba(66, 215, 125, .55);
    box-shadow: 0 14px 30px rgba(7, 16, 24, .09);
}

.kanban-card > strong {
    display: block;
    margin-bottom: 6px;
}

.kanban-card p {
    margin: 0 0 10px;
    color: #52627a;
    font-weight: 800;
}

.kanban-card div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.kanban-card span,
.kanban-card small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.kanban-card b {
    white-space: nowrap;
}

.kanban-empty-card {
    padding: 16px;
    color: #667085;
    font-weight: 800;
    text-align: center;
}

.kanban-card-top,
.kanban-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.kanban-card-top span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #0f8f55;
    font-size: 11px;
    font-weight: 950;
}

.kanban-card h3 {
    margin: 10px 0 5px;
    font-size: 15px;
}

.kanban-main .panel {
    min-height: calc(100vh - 150px);
}

@media (max-width: 1250px) {
    .analytics-grid {
        grid-template-columns: minmax(520px, 1fr) 320px 320px;
    }
}

@media (max-width: 900px) {
    .analytics-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .wide-chart {
        min-width: 0;
    }

    .bar-chart {
        overflow-x: auto;
    }

    .kanban-board {
        grid-auto-columns: minmax(280px, 86vw);
    }
}

.dashboard-stats {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
}

.dashboard-analytics {
    display: grid;
    grid-template-columns: minmax(520px, 1.25fr) minmax(280px, .7fr) minmax(300px, .75fr) minmax(280px, .7fr);
    gap: 18px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.dashboard-analytics .panel {
    overflow: hidden;
}

.chart-panel {
    min-height: 300px;
}

.status-card-panel {
    min-width: 280px;
}

.donut-wrap.compact {
    height: auto;
    min-height: 215px;
    display: grid;
    place-items: center;
    gap: 14px;
}

.donut-chart {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}

.donut-chart::after {
    content: "";
    position: absolute;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e1e8ee;
}

.donut-chart span {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 950;
}

.chart-legend.compact {
    width: 100%;
    display: grid;
    gap: 7px;
}

.chart-legend.compact div {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 11px;
    background: #f7faf9;
    color: #52627a;
    font-size: 13px;
    font-weight: 800;
}

.chart-legend.compact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-legend.compact strong {
    color: #071018;
    flex: 0 0 auto;
}

.summary-panel {
    min-width: 280px;
}

.summary-list {
    display: grid;
    gap: 10px;
}

.summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid #e1e8ee;
}

.summary-list span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.summary-list strong {
    font-size: 15px;
    text-align: right;
}

.dashboard-bottom-grid {
    margin-top: 18px;
}

@media (max-width: 1350px) {
    .dashboard-stats {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }

    .dashboard-analytics {
        grid-template-columns: minmax(520px, 1fr) 300px 320px 300px;
    }
}

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .dashboard-analytics {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .chart-panel,
    .status-card-panel,
    .summary-panel {
        min-width: 0;
    }
}

.topbar-actions-panel {
    display: flex;
    gap: 10px;
    align-items: center;
}

.topbar-button.secondary {
    background: #fff;
    color: #071018;
    border: 1px solid #dbe5ea;
}

.active-kanban {
    grid-auto-columns: minmax(310px, 1fr);
}

.kanban-dropzone {
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.kanban-dropzone.is-drag-over {
    border-color: rgba(66, 215, 125, .8);
    background: #ecfbf2;
    box-shadow: inset 0 0 0 2px rgba(66, 215, 125, .24);
}

.kanban-card {
    cursor: grab;
    user-select: none;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.is-dragging {
    opacity: .45;
    transform: scale(.98);
}

.full-kanban-panel {
    overflow: hidden;
}

.full-kanban {
    min-height: calc(100vh - 250px);
    max-height: calc(100vh - 250px);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
}

.full-kanban .kanban-lane {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.kanban-card-top span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .topbar-actions-panel {
        width: 100%;
        flex-direction: column;
    }

    .topbar-actions-panel a {
        width: 100%;
    }

    .full-kanban {
        max-height: none;
        overflow-y: visible;
    }

    .full-kanban .kanban-lane {
        max-height: none;
    }
}

.topbar-actions-panel {
    display: flex;
    gap: 10px;
    align-items: center;
}

.topbar-button.secondary {
    background: #fff;
    color: #071018;
    border: 1px solid #dbe5ea;
}

.active-kanban {
    grid-auto-columns: minmax(310px, 1fr);
}

.full-kanban-panel {
    overflow: hidden;
}

.full-kanban {
    min-height: calc(100vh - 250px);
    max-height: calc(100vh - 250px);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
}

.full-kanban .kanban-lane {
    max-height: calc(100vh - 285px);
    overflow-y: auto;
}

.kanban-dropzone {
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.kanban-dropzone.is-drag-over {
    border-color: rgba(66, 215, 125, .8);
    background: #ecfbf2;
    box-shadow: inset 0 0 0 2px rgba(66, 215, 125, .24);
}

.kanban-card {
    cursor: grab;
    user-select: none;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.is-dragging {
    opacity: .45;
    transform: scale(.98);
}

.kanban-card-top span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#kanbanFullscreenContainer:fullscreen {
    padding: 22px;
    background: #f4f8f7;
    overflow: auto;
}

#kanbanFullscreenContainer:fullscreen .full-kanban {
    max-height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
}

#kanbanFullscreenContainer:fullscreen .kanban-lane {
    max-height: calc(100vh - 155px);
}

.order-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 16, 24, .58);
}

.order-modal-overlay.is-open {
    display: flex;
}

.order-modal {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 16, 24, .28);
}

.order-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #e1e8ee;
}

.order-modal-head span {
    color: #0f8f55;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.order-modal-head h2 {
    margin: 5px 0 0;
}

.order-modal-head button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f2f4f7;
    cursor: pointer;
    font-size: 26px;
}

.order-modal-body {
    overflow-y: auto;
    padding: 22px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.order-detail-grid div {
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid #e1e8ee;
}

.order-detail-grid div.full {
    grid-column: 1 / -1;
}

.order-detail-grid span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-detail-grid strong {
    word-break: break-word;
}

.order-items-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e1e8ee;
}

.order-items-box h3 {
    margin: 0 0 12px;
}

.order-items-box ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-items-box li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 11px;
    border-radius: 12px;
    background: #f7faf9;
}

@media (max-width: 900px) {
    .topbar-actions-panel {
        width: 100%;
        flex-direction: column;
    }

    .topbar-actions-panel a,
    .topbar-actions-panel button {
        width: 100%;
    }

    .full-kanban {
        max-height: none;
        overflow-y: visible;
    }

    .full-kanban .kanban-lane {
        max-height: none;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-items-box li {
        grid-template-columns: 1fr;
    }
}

.order-modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.order-modal-actions button {
    height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    font-weight: 950;
    cursor: pointer;
}

#printOrderButton {
    background: #071018;
    color: #fff;
}

#assignDeliveryButton {
    background: #42d77d;
    color: #06180f;
}

@media (max-width: 620px) {
    .order-modal-actions {
        flex-direction: column;
    }

    .order-modal-actions button {
        width: 100%;
    }
}

.delivery-hint {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    background: #f7faf9;
    border: 1px dashed #dbe5ea;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.product-form-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.product-form-main,
.product-form-side {
    min-width: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field span {
    color: #344054;
    font-size: 13px;
    font-weight: 950;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #d1dde5;
    border-radius: 14px;
    background: #fff;
    color: #071018;
    outline: none;
    font-size: 15px;
}

.form-field input,
.form-field select {
    height: 48px;
    padding: 0 14px;
}

.form-field textarea {
    padding: 13px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #42d77d;
    box-shadow: 0 0 0 4px rgba(66, 215, 125, .14);
}

.status-selector {
    display: grid;
    gap: 10px;
}

.status-selector label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: start;
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid #e1e8ee;
    cursor: pointer;
}

.status-selector input {
    margin-top: 3px;
}

.status-selector strong {
    display: block;
}

.status-selector small {
    grid-column: 2;
    color: #667085;
}

.product-save-box {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.product-save-box button,
.product-save-box a {
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    text-decoration: none;
}

.product-save-box button {
    border: 0;
    background: #42d77d;
    color: #06180f;
    cursor: pointer;
}

.product-save-box a {
    background: #071018;
    color: #fff;
}

.product-next-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px dashed #d1dde5;
}

.product-next-box strong {
    display: block;
    margin-bottom: 6px;
}

.product-next-box p {
    margin: 0;
    color: #667085;
    line-height: 1.4;
}

.form-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 900;
}

.form-alert.error {
    background: #fff1f0;
    border: 1px solid #ffc9c4;
    color: #d92d20;
}

.data-row-link {
    color: inherit;
    text-decoration: none;
}

.data-row-link:hover {
    border-color: rgba(66, 215, 125, .55);
    box-shadow: 0 10px 24px rgba(7, 16, 24, .07);
}

@media (max-width: 1050px) {
    .product-form-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.product-photo-box {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.product-photo-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(66, 215, 125, .18), transparent 34%),
        #f7faf9;
    border: 1px dashed #cfdde4;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #667085;
    font-weight: 950;
}

.product-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo-upload {
    display: grid;
    gap: 8px;
}

.product-photo-upload span {
    color: #344054;
    font-size: 13px;
    font-weight: 950;
}

.product-photo-upload input {
    width: 100%;
    padding: 11px;
    border: 1px solid #d1dde5;
    border-radius: 14px;
    background: #fff;
}

.product-photo-upload small {
    color: #667085;
    font-size: 12px;
}

.product-options-builder {
    border: 1px solid #e1e8ee;
    border-radius: 18px;
    background: #f7faf9;
    padding: 16px;
}

.options-builder-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.options-builder-head span {
    color: #0f8f55;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.options-builder-head h3 {
    margin: 5px 0 4px;
    font-size: 20px;
}

.options-builder-head p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.options-builder-head button,
.option-items-head button {
    border: 0;
    border-radius: 12px;
    background: #071018;
    color: #fff;
    padding: 11px 14px;
    font-weight: 950;
    cursor: pointer;
}

.option-groups-container {
    display: grid;
    gap: 12px;
}

.options-empty {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed #cfdde4;
    color: #667085;
    font-weight: 900;
    text-align: center;
    background: #fff;
}

.option-group-card {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dbe5ea;
}

.option-group-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.option-group-top strong {
    display: block;
}

.option-group-top small {
    display: block;
    margin-top: 4px;
    color: #667085;
}

.option-group-top button {
    border: 0;
    border-radius: 10px;
    background: #fff1f0;
    color: #d92d20;
    padding: 9px 11px;
    font-weight: 950;
    cursor: pointer;
}

.option-group-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 110px 110px;
    gap: 12px;
    align-items: end;
}

.option-group-grid label {
    display: grid;
    gap: 7px;
}

.option-group-grid label span {
    color: #344054;
    font-size: 13px;
    font-weight: 950;
}

.option-group-grid input,
.option-group-grid select,
.option-item-row input {
    height: 44px;
    border: 1px solid #d1dde5;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    outline: none;
}

.option-group-grid input:focus,
.option-group-grid select:focus,
.option-item-row input:focus {
    border-color: #42d77d;
    box-shadow: 0 0 0 4px rgba(66, 215, 125, .14);
}

.option-required-check {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}

.option-required-check input {
    width: 16px;
    height: 16px;
}

.option-items-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e1e8ee;
}

.option-items-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.option-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 110px;
    gap: 10px;
    margin-bottom: 8px;
}

.option-item-row button {
    border: 0;
    border-radius: 12px;
    background: #f2f4f7;
    color: #344054;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 900px) {
    .options-builder-head,
    .option-group-top,
    .option-items-head {
        flex-direction: column;
    }

    .option-group-grid {
        grid-template-columns: 1fr;
    }

    .option-item-row {
        grid-template-columns: 1fr;
    }

    .options-builder-head button,
    .option-items-head button,
    .option-item-row button {
        width: 100%;
        height: 44px;
    }
}

.delivery-stats {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    overflow-x: auto;
}

.delivery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.delivery-tax-list {
    display: grid;
    gap: 10px;
}

.delivery-tax-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid #e1e8ee;
    border-radius: 16px;
    background: #fff;
}

.delivery-tax-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.delivery-tax-main > span {
    width: 54px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f7faf9;
    color: #52627a;
    font-weight: 950;
}

.delivery-tax-main strong {
    display: block;
    font-size: 16px;
}

.delivery-tax-main small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-weight: 800;
}

.delivery-tax-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-tax-button,
.toggle-tax-button {
    height: 36px;
    border: 0;
    border-radius: 11px;
    padding: 0 12px;
    font-weight: 950;
    cursor: pointer;
}

.edit-tax-button {
    background: #071018;
    color: #fff;
}

.toggle-tax-button {
    background: #f2f4f7;
    color: #344054;
}

.delivery-side-panel {
    position: sticky;
    top: 24px;
}

.delivery-simulator {
    display: grid;
    gap: 12px;
}

.delivery-simulator label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 950;
}

.delivery-simulator input {
    height: 48px;
    border: 1px solid #d1dde5;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

.delivery-simulator input:focus {
    border-color: #42d77d;
    box-shadow: 0 0 0 4px rgba(66, 215, 125, .14);
}

.delivery-simulator button {
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: #42d77d;
    color: #06180f;
    font-weight: 950;
    cursor: pointer;
}

.delivery-result {
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px dashed #d1dde5;
    color: #52627a;
    font-weight: 900;
}

.delivery-result.is-ok {
    border-style: solid;
    background: #e9fbf1;
    color: #087443;
}

.delivery-result.is-error {
    border-style: solid;
    background: #fff1f0;
    color: #d92d20;
}

.delivery-help-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid #e1e8ee;
}

.delivery-help-box strong {
    display: block;
    margin-bottom: 6px;
}

.delivery-help-box p {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}

.tax-modal {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 16, 24, .28);
}

.tax-modal-body {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.tax-status-selector {
    margin-top: 4px;
}

.tax-modal .product-save-box {
    grid-template-columns: 1fr 1fr;
}

.tax-modal .product-save-box button[type="button"] {
    border: 0;
    background: #071018;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1050px) {
    .delivery-layout {
        grid-template-columns: 1fr;
    }

    .delivery-side-panel {
        position: static;
    }

    .delivery-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .delivery-stats {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .delivery-tax-card,
    .delivery-tax-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .delivery-tax-actions form,
    .delivery-tax-actions button {
        width: 100%;
    }

    .tax-modal .product-save-box {
        grid-template-columns: 1fr;
    }
}

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.settings-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.settings-main-panel {
    min-width: 0;
}

.settings-side-column {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.settings-divider {
    height: 1px;
    background: #e1e8ee;
    margin: 24px 0;
}

.compact-head {
    margin-bottom: 14px;
}

.store-link-box {
    display: grid;
    gap: 12px;
}

.store-link-box label {
    color: #344054;
    font-size: 13px;
    font-weight: 950;
}

.store-link-box div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.store-link-box input {
    height: 44px;
    border: 1px solid #d1dde5;
    border-radius: 12px;
    padding: 0 12px;
    background: #f7faf9;
    color: #52627a;
    outline: none;
}

.store-link-box button {
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #071018;
    color: #fff;
    padding: 0 14px;
    font-weight: 950;
    cursor: pointer;
}

.store-link-box a,
.settings-map-link {
    height: 44px;
    border-radius: 12px;
    background: #42d77d;
    color: #06180f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
}

.settings-info-list div {
    align-items: center;
}

.settings-info-list strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-map-link {
    margin-top: 14px;
    background: #071018;
    color: #fff;
}

.settings-save-panel {
    display: grid;
    gap: 10px;
}

.settings-save-panel button,
.settings-save-panel a {
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    text-decoration: none;
}

.settings-save-panel button {
    border: 0;
    background: #42d77d;
    color: #06180f;
    cursor: pointer;
}

.settings-save-panel a {
    background: #071018;
    color: #fff;
}

.form-alert.success {
    background: #e9fbf1;
    border: 1px solid #b8efca;
    color: #087443;
}

@media (max-width: 1150px) {
    .settings-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-form-layout {
        grid-template-columns: 1fr;
    }

    .settings-side-column {
        position: static;
    }
}

@media (max-width: 720px) {
    .settings-summary-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .store-link-box div {
        grid-template-columns: 1fr;
    }

    .store-link-box button {
        width: 100%;
    }
}

.app-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.app-brand-logo img {
    width: 154px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-brand-logo {
    display: flex;
    align-items: center;
}

.login-brand-logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 720px) {
    .app-brand-logo img {
        width: 138px;
    }

    .login-brand-logo img {
        width: 160px;
    }
}

.app-brand img,
.login-brand img {
    width: 900px;
    height: auto;
    display: block;
}

.app-brand-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 18px;
    text-decoration: none;
}

.app-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(66, 215, 125, .22);
    box-shadow: 0 10px 28px rgba(66, 215, 125, .08);
    overflow: hidden;
}

.app-brand-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.app-brand-clean strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1;
}

.app-brand-clean strong em {
    color: #42d77d;
    font-style: normal;
}

.app-brand-logo {
    display: none;
}