/* Shell adapted from the Dawap website back office: dark sidebar, light workspace, green accents. */
:root {
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#19382e;
    background:#f5f8f7;
    font-synthesis:none;
    font-optical-sizing:auto;
    line-height:1.5;
    --accent:#008467;
    --mint:#00d0a2;
    --muted:#687e74;
    --border:#e0e9e5;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input {
    font:inherit;
}

button {
    cursor:pointer;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
    outline:3px solid #00d0a2;
    outline-offset:4px;
}

input:focus {
    outline:0;
    border-color:#008467;
    box-shadow:0 0 0 3px #e3f5ed;
}

h1,h2,p {
    margin-top:0;
}

h1,h2 {
    letter-spacing:-.04em;
    line-height:1.15;
}

h2 {
    font-size:32px;
    margin-bottom:14px;
}

.muted {
    color:var(--muted);
    font-size:14px;
}

.eyebrow {
    text-transform:uppercase;
    font-size:10px;
    font-weight:700;
    letter-spacing:.13em;
    color:var(--muted);
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
}

.brand img {
    object-fit:contain;
}

.brand strong {
    font-size:25px;
    line-height:1.1;
    letter-spacing:-.045em;
}

.brand strong span {
    color:var(--mint);
}

.brand small {
    display:block;
    color:#a4acb8;
    font-size:10px;
    letter-spacing:.13em;
    text-transform:uppercase;
    margin-top:5px;
}

.back-shell {
    display:grid;
    grid-template-columns:264px minmax(0,1fr);
    min-height:100svh;
}

.back-sidebar {
    display:flex;
    flex-direction:column;
    background:#101318;
    border-right:1px solid #272c34;
    position:sticky;
    top:0;
    height:100svh;
    color:#fff;
}

.back-logo {
    min-height:80px;
    padding:0 23px;
    border-bottom:1px solid #272c34;
}

.back-logo strong {
    font-size:23px;
}

.back-nav {
    flex:1;
    padding:18px 10px;
}

.back-sidebar-footer {
    padding:21px 20px;
    background:#15191f;
    border-top:1px solid #2b3039;
}

.profile {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.profile strong {
    display:block;
    font-size:12px;
    font-weight:600;
}

.profile small {
    display:block;
    font-size:10px;
    color:#687e74;
    margin-top:3px;
}

.avatar {
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    flex-shrink:0;
    background:#e7f8f1;
    border:1px solid #ccebdd;
    border-radius:50%;
    color:#007c5b;
    font-size:12px;
    font-weight:650;
}

.back-sidebar .avatar {
    background:#272e38;
    color:#fff;
    border-color:#3c4553;
}

.back-sidebar .profile small {
    color:#a4acb8;
}

.logout {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:38px;
    width:100%;
    background:#20262f;
    border:1px solid #3c4553;
    color:#d4dae3;
    border-radius:6px;
    font-size:11px;
    padding:9px 12px;
    margin-top:18px;
}

.logout:hover {
    background:#313b48;
    color:#fff;
}

.back-main {
    min-width:0;
}

.back-topbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:80px;
    padding:16px 32px;
    border-bottom:1px solid var(--border);
    background:#fff;
}

.back-topbar>p {
    display:flex;
    gap:14px;
    font-size:12px;
    margin:0;
}

.back-topbar>p span {
    color:#7e9187;
}

.back-content {
    padding:32px;
}

.back-page-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:30px;
}

.back-page-header h1 {
    font-size:29px;
    margin-bottom:10px;
    font-weight:650;
}

.back-page-header .eyebrow {
    margin-bottom:11px;
}

.badge {
    flex-shrink:0;
    border-radius:6px;
    padding:7px 10px;
    font-size:10px;
    background:#eaf8f1;
    border:1px solid #c6e9d8;
    color:#007353;
    margin-top:25px;
}

.empty-state {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    min-height:430px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    text-align:center;
    padding:52px 24px;
    box-shadow:0 3px 16px #18413006;
}

.empty-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f0f6f4;
    border:1px solid #e0e9e5;
    border-radius:16px;
    width:76px;
    height:76px;
    color:#008467;
    margin-bottom:27px;
}

.empty-state h2 {
    font-size:25px;
    font-weight:600;
    margin:2px 0 16px;
}

.empty-state>p:last-child {
    color:#687e74;
    font-size:13px;
    line-height:1.8;
    margin-bottom:0;
}

@media(min-width:1600px) {
    .back-content {
        padding:40px;
        max-width:1680px;
        margin:0 auto;
    }
}

@media(max-width:1000px) {
    .back-shell {
        grid-template-columns:220px minmax(0,1fr);
    }
    .back-logo {
        padding:0 16px;
    }
    .back-content {
        padding:26px;
    }
    .back-topbar {
        padding:16px 26px;
    }
    .back-page-header {
        flex-wrap:wrap;
        gap:0;
    }
    .badge {
        margin:0 0 10px;
    }
}

@media(max-width:700px) {
    .back-shell {
        display:flex;
        flex-direction:column;
    }
    .back-sidebar {
        position:static;
        height:auto;
        display:grid;
        grid-template-columns:1fr auto;
    }
    .back-logo {
        border:0;
        min-height:76px;
        padding:16px;
    }
    .back-nav {
        display:none;
    }
    .back-sidebar-footer {
        padding:12px 16px;
        background:none;
        border:0;
        display:flex;
        align-items:center;
    }
    .back-sidebar-footer .profile {
        display:none;
    }
    .logout {
        margin:0;
        min-width:110px;
    }
    .back-topbar {
        min-height:64px;
        padding:15px 20px;
    }
    .back-topbar>p {
        font-size:10px;
        gap:7px;
    }
    .back-topbar .avatar {
        display:none;
    }
    .back-content {
        padding:25px 20px;
    }
    .back-page-header h1 {
        font-size:27px;
    }
    .empty-state {
        min-height:360px;
        padding:40px 18px;
    }
    .empty-state h2 {
        font-size:23px;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
    }
}

.back-nav a:not([aria-current="page"]){background:transparent;color:#a4b0aa}
.back-nav a:not([aria-current="page"]):hover{background:#1b2420;color:#d2e8da}
