:root{--brand:#0f766e;--bg:#f5f7fb;--ink:#172033;--muted:#667085;--line:#d9e2ec;--card:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,Arial,sans-serif;color:var(--ink)}header{height:64px;background:#0b1220;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{font-weight:800;letter-spacing:.2px}main{max-width:1180px;margin:28px auto;padding:0 18px}.auth{min-height:100vh;display:grid;place-items:center}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(16,24,40,.08);padding:28px}.login-card{width:min(420px,94vw)}h1{font-size:28px;margin:0 0 18px}h2{margin-top:30px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}label{display:block;font-weight:700;margin:10px 0 6px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}textarea{min-height:90px}button,.btn{display:inline-block;background:var(--brand);color:#fff;border:0;border-radius:10px;padding:10px 16px;text-decoration:none;font-weight:800;cursor:pointer}.linkbtn{background:transparent;color:#fff;padding:0}table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:#edf6f5;font-size:13px;text-transform:uppercase}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:18px 0}.kpis div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--muted)}.kpis strong{display:block;color:var(--ink);font-size:30px;margin-top:8px}.alert{padding:12px;border-radius:10px;margin:12px 0}.success{background:#ecfdf3;color:#027a48}.error{background:#fef3f2;color:#b42318}.chips span{display:inline-block;margin:4px;padding:8px 12px;background:#e6f4f1;border-radius:999px}.highlight{background:#fff8e6}.qty{max-width:95px}small{color:var(--muted);display:block}

/* Login premium */
.auth-split{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;place-items:stretch;background:linear-gradient(135deg,#07111f 0%,#0f766e 46%,#f3c969 100%);overflow:hidden}.auth-hero{position:relative;color:#fff;padding:72px clamp(34px,6vw,92px);display:flex;flex-direction:column;justify-content:center;isolation:isolate}.auth-hero:before{content:"";position:absolute;inset:8%;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.20),transparent 28%),radial-gradient(circle at 85% 70%,rgba(255,255,255,.14),transparent 32%);filter:blur(2px);z-index:-1}.auth-brand-mark{width:70px;height:70px;border-radius:22px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.32);display:grid;place-items:center;font-size:24px;font-weight:900;letter-spacing:-1px;box-shadow:0 24px 70px rgba(0,0,0,.25);backdrop-filter:blur(14px);margin-bottom:26px}.eyebrow{margin:0 0 14px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;font-size:12px;color:#d7fff8}.auth-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.02;max-width:760px;margin:0 0 22px;letter-spacing:-.045em}.auth-copy{font-size:18px;line-height:1.6;max-width:660px;color:rgba(255,255,255,.86);margin:0}.auth-benefits{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}.auth-benefits span{padding:10px 14px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.12);font-weight:800;font-size:13px}.auth-panel{display:grid;place-items:center;padding:34px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px)}.login-card-premium{width:min(480px,94vw);border:0;border-radius:28px;padding:36px;box-shadow:0 30px 90px rgba(15,23,42,.20)}.login-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.login-kicker{display:inline-flex;color:var(--brand);font-weight:900;font-size:13px;text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}.login-card h2{font-size:30px;line-height:1.15;margin:0 0 18px;letter-spacing:-.03em}.auth-form label{font-size:13px;color:#344054}.auth-form input{height:48px;border-radius:14px;border-color:#d0d5dd;background:#fbfdff;font-size:15px;transition:border-color .18s,box-shadow .18s,background .18s}.auth-form input:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 4px rgba(15,118,110,.13);background:#fff}.btn-full{width:100%;height:50px;margin-top:18px;border-radius:14px;font-size:16px;background:linear-gradient(135deg,#0f766e,#0b5f59);box-shadow:0 12px 26px rgba(15,118,110,.28)}.auth-links{display:flex;justify-content:center;margin-top:18px}.auth-links a{color:var(--brand);font-weight:800;text-decoration:none}.auth-links a:hover{text-decoration:underline}.login-note{margin:18px 0 0;padding:12px 14px;border-radius:14px;background:#f0fdfa;color:#0f766e;font-size:13px;line-height:1.45}.auth .alert{border-radius:14px;font-weight:700}.auth .error{background:#fff1f1;border:1px solid #fecaca}.auth .success{background:#ecfdf3;border:1px solid #bbf7d0}@media(max-width:900px){.auth-split{grid-template-columns:1fr;background:#f5f7fb}.auth-hero{display:none}.auth-panel{background:linear-gradient(135deg,#07111f 0%,#0f766e 100%);padding:24px}.login-card-premium{padding:28px;border-radius:22px}}

.page-hero{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:22px;
    margin-bottom:24px;
    padding:28px;
    border-radius:24px;
    background:
        radial-gradient(circle at top right,rgba(15,118,110,.18),transparent 32%),
        linear-gradient(135deg,#ffffff,#f8fbff);
    border:1px solid var(--line);
    box-shadow:0 18px 50px rgba(16,24,40,.06);
}

.page-hero h1{
    font-size:34px;
    letter-spacing:-.04em;
    margin:4px 0 10px;
}

.page-hero p{
    max-width:780px;
    margin:0;
    color:var(--muted);
    line-height:1.55;
}

.page-kicker{
    display:inline-flex;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.14em;
    color:var(--brand);
    font-weight:900;
}

.hero-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.btn-secondary{
    background:#fff;
    color:var(--ink);
    border:1px solid var(--line);
}

.form-card,
.section-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:24px;
    box-shadow:0 18px 50px rgba(16,24,40,.05);
    margin-bottom:22px;
}

.form-section-title,
.section-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding-bottom:14px;
    margin-bottom:18px;
    border-bottom:1px solid #eef2f6;
}

.form-section-title h2,
.section-card-header h2{
    margin:0 0 4px;
    font-size:20px;
    letter-spacing:-.02em;
}

.form-section-title p,
.section-card-header p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.45;
}

.checkbox-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:12px;
}

.checkbox-grid.compact{
    grid-template-columns:1fr;
}

.checkbox-card{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fbfdff;
    cursor:pointer;
    margin:0;
}

.checkbox-card input{
    width:auto;
    margin-top:3px;
}

.checkbox-card strong{
    display:block;
    margin-bottom:2px;
}

.checkbox-card small{
    line-height:1.35;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:22px;
    gap:10px;
}

.two-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.grid.single{
    grid-template-columns:1fr;
}

.td-actions{
    width:1%;
    white-space:nowrap;
}

.btn-danger-small{
    background:#fff1f1;
    color:#b42318;
    border:1px solid #fecaca;
    border-radius:10px;
    padding:8px 10px;
    font-size:12px;
    font-weight:800;
}

.empty-state{
    padding:18px;
    border:1px dashed var(--line);
    border-radius:16px;
    background:#fbfdff;
    color:var(--muted);
}

.customer-choice-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px;
}

.customer-choice-card{
    display:flex;
    flex-direction:column;
    gap:16px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:22px;
    box-shadow:0 18px 50px rgba(16,24,40,.05);
}

.customer-choice-card h2{
    margin:0 0 6px;
    font-size:20px;
}

.customer-choice-card p{
    margin:0 0 4px;
    color:var(--muted);
}

.choice-icon{
    width:52px;
    height:52px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:#e6f4f1;
    color:var(--brand);
    font-weight:900;
    font-size:22px;
}

@media(max-width:800px){
    .page-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:22px;
    }

    .two-columns{
        grid-template-columns:1fr;
    }

    .form-actions{
        justify-content:stretch;
    }

    .form-actions button,
    .hero-actions .btn{
        width:100%;
        text-align:center;
    }
}
.customer-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.customer-meta span{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:7px 10px;
    border-radius:999px;
    background:#eef8f6;
    color:#0f766e;
    font-size:13px;
    font-weight:700;
}
.filter-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.status-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.status-pill.ok{
    background:#ecfdf3;
    color:#027a48;
}

.status-pill.pending{
    background:#fff7ed;
    color:#b54708;
}

.text-danger{
    color:#b42318;
}

.pagination-wrap{
    margin-top:18px;
}


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

.btn-warning-small{
    background:#fff7ed;
    color:#b54708;
    border:1px solid #fed7aa;
    border-radius:10px;
    padding:8px 10px;
    font-size:12px;
    font-weight:800;
}

.btn-secondary-small{
    background:#f8fafc;
    color:#344054;
    border:1px solid #d0d5dd;
    border-radius:10px;
    padding:8px 10px;
    font-size:12px;
    font-weight:800;
}

@media(max-width:800px){
    .login-edit-header{
        flex-direction:column;
    }

    .login-edit-actions,
    .login-secondary-actions{
        justify-content:stretch;
    }

    .login-edit-actions button,
    .login-secondary-actions button{
        width:100%;
    }
}
.responsive-table{
    width:100%;
    overflow-x:auto;
}

.compact-edit-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:13px;
}

.compact-edit-table th{
    padding:10px 8px;
    background:#f8fafc;
    color:#667085;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    border-bottom:1px solid var(--line);
    white-space:nowrap;
}

.compact-edit-table td{
    padding:8px;
    border-bottom:1px solid #eef2f6;
    vertical-align:middle;
}

.compact-edit-table tr:hover td{
    background:#fbfdff;
}

.compact-edit-table .row-disabled td{
    background:#fafafa;
    opacity:.75;
}

.table-input{
    width:100%;
    min-width:130px;
    padding:8px 9px;
    border:1px solid #d0d5dd;
    border-radius:10px;
    font-size:13px;
    background:#fff;
}

.table-input:focus{
    outline:none;
    border-color:var(--brand);
    box-shadow:0 0 0 3px rgba(15,118,110,.10);
}

.text-center{
    text-align:center;
}

.mini-check{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin:0;
    font-size:12px;
    color:#475467;
    white-space:nowrap;
}

.mini-check input{
    width:auto;
    margin:0;
}

.table-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:nowrap;
    white-space:nowrap;
}

.table-actions form{
    margin:0;
}

.btn-small-primary{
    background:var(--brand);
    color:#fff;
    border:1px solid var(--brand);
    border-radius:10px;
    padding:8px 10px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.btn-small-primary:hover{
    filter:brightness(.96);
}

@media(max-width:900px){
    .compact-edit-table{
        min-width:950px;
    }
}
.app-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:280px 1fr;
    background:#f6f8fb;
}

.app-sidebar{
    position:sticky;
    top:0;
    height:100vh;
    display:flex;
    flex-direction:column;
    padding:22px 18px;
    background:#0b1220;
    color:#fff;
    border-right:1px solid rgba(255,255,255,.08);
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:6px 8px 22px;
    margin-bottom:14px;
    border-bottom:1px solid rgba(255,255,255,.10);
}

.brand-mark{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:linear-gradient(135deg,#0f766e,#14b8a6);
    color:#fff;
    font-size:22px;
    font-weight:900;
}

.sidebar-brand strong{
    display:block;
    font-size:17px;
    letter-spacing:-.02em;
}

.sidebar-brand span{
    display:block;
    margin-top:2px;
    color:#98a2b3;
    font-size:13px;
}

.sidebar-section-title{
    margin:10px 8px 10px;
    color:#98a2b3;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-weight:800;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.sidebar-nav a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border-radius:12px;
    color:#d0d5dd;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    transition:background .15s ease, color .15s ease, transform .15s ease;
}

.sidebar-nav a:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
    transform:translateX(2px);
}

.sidebar-nav a.active{
    background:#ffffff;
    color:#0b1220;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.nav-icon{
    width:22px;
    text-align:center;
    font-size:15px;
}

.sidebar-footer{
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.10);
}

.logout-button{
    width:100%;
    padding:11px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}

.logout-button:hover{
    background:rgba(255,255,255,.12);
}

.app-main{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.topbar{
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 30px;
    background:#fff;
    border-bottom:1px solid #e4e7ec;
}

.topbar strong{
    display:block;
    margin-top:2px;
    color:#101828;
    font-size:17px;
}

.topbar-kicker{
    display:block;
    color:#667085;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-weight:800;
}

.content-area{
    padding:28px 30px 42px;
}

.guest-main{
    min-height:100vh;
    background:#f6f8fb;
}

.alert{
    padding:13px 15px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:14px;
    font-weight:700;
}

.alert ul{
    margin:8px 0 0 18px;
    padding:0;
}

.alert.success{
    background:#ecfdf3;
    color:#027a48;
    border:1px solid #abefc6;
}

.alert.error{
    background:#fff1f3;
    color:#b42318;
    border:1px solid #fecdd3;
}

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

    .app-sidebar{
        position:relative;
        height:auto;
        padding:14px;
    }

    .sidebar-brand{
        padding-bottom:14px;
        margin-bottom:10px;
    }

    .sidebar-nav{
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    }

    .sidebar-footer{
        margin-top:14px;
    }

    .topbar{
        padding:16px 18px;
    }

    .content-area{
        padding:18px;
    }
}