:root {
    --bg: #f5f7fb;
    --panel: #fff;
    --text: var(--bc-text);
    --muted: #64748b;
    --border: #e5e7eb;
    --line: #edf2f7;
    --primary: #2454ff;
    --primary2: #193cc9;
    --dark: #0b1220;
    --dark2: #111c31;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
    --shadow: 0 22px 50px rgba(15, 23, 42, .08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: radial-gradient(circle at top left, #eef4ff 0, #f8fafc 38%, #f4f7fb 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.muted,
small {
    color: var(--muted);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 268px;
    background: linear-gradient(180deg, #0b1220, #101b31);
    color: white;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 18px 0 50px rgba(15, 23, 42, .12);
}

.brand-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 4px 4px 34px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2454ff, var(--bc-accent));
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(36, 84, 255, .35);
}

    .brand-mark.large {
        width: 56px;
        height: 56px;
        border-radius: 4px;
        font-size: 24px;
    }

.brand-title {
    font-size: 20px;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 12px;
    color: #93a4bf;
    margin-top: 3px;
}

.nav-menu {
    display: grid;
    gap: 8px;
}

    .nav-menu a {
        display: flex;
        gap: 12px;
        align-items: center;
        color: var(--bc-accent-soft);
        padding: 13px 14px;
        border-radius: 4px;
        font-weight: 750;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            background: rgba(255, 255, 255, .1);
            color: #fff;
            box-shadow: inset 3px 0 0 #5b7cfa;
        }

.sidebar-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .06);
}

.content-wrap {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    position: sticky;
    top: 0;
    z-index: 5;
}

    .topbar strong {
        display: block;
    }

    .topbar span {
        color: var(--muted);
        font-size: 13px;
    }

.user-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-container {
    padding: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .page-head h1 {
        margin: 4px 0 6px;
        font-size: 34px;
        letter-spacing: 0;
    }

    .page-head p {
        margin: 0;
        color: var(--muted);
    }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 22px;
}

    .panel h2 {
        margin: 0 0 16px;
        font-size: 20px;
    }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

    .panel-head a {
        color: var(--primary);
        font-weight: 600;
    }

.loading-card,
.empty-state {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .premium-table th {
        text-align: left;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #64748b;
        background: #f8fafc;
        border-bottom: 1px solid var(--border);
        padding: 13px;
    }

    .premium-table td {
        padding: 14px 13px;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
    }

    .premium-table tr:last-child td {
        border-bottom: 0;
    }

    .premium-table tr:hover td {
        background: #fafcff;
    }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 13px;
}

    .form-grid input,
    .form-grid select,
    .login-form input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 12px 13px;
        background: #fff;
        font-size: 14px;
        outline: none;
    }

        .form-grid input:focus,
        .form-grid select:focus,
        .login-form input:focus {
            border-color: #7c9cff;
            box-shadow: 0 0 0 4px rgba(36, 84, 255, .12);
        }

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 13px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 4px;
}

    .check input {
        width: auto;
    }

.btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    padding: 11px 15px;
    border-radius: 4px;
    font-weight: 850;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn.primary {
        border-color: var(--primary);
        background: linear-gradient(135deg, var(--primary), var(--bc-accent));
        color: white;
        box-shadow: 0 12px 22px rgba(36, 84, 255, .22);
    }

    .btn.ghost {
        background: #f8fafc;
    }

    .btn.danger {
        background: #fff1f2;
        color: #be123c;
        border-color: #fecdd3;
    }

    .btn.small {
        padding: 8px 11px;
        border-radius: 4px;
        font-size: 13px;
    }

    .btn.wide {
        width: 100%;
    }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .pill.ok {
        background: #dcfce7;
        color: #166534;
    }

    .pill.warn {
        background: #fef3c7;
        color: #92400e;
    }

    .pill.bad {
        background: #fee2e2;
        color: #991b1b;
    }

.alert {
    border-radius: 4px;
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1px solid;
}

    .alert.ok {
        background: #ecfdf5;
        color: #166534;
        border-color: #bbf7d0;
    }

    .alert.danger {
        background: #fff1f2;
        color: #be123c;
        border-color: #fecdd3;
    }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top, #dfe8ff, #f8fafc 45%, #eef2f7);
}

.login-card {
    width: min(440px, 100%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .16);
}

.login-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

    .login-brand h1 {
        margin: 0;
        font-size: 28px;
    }

    .login-brand p {
        margin: 3px 0 0;
        color: var(--muted);
    }

.login-form {
    display: grid;
    gap: 10px;
}

    .login-form label {
        font-weight: 600;
        font-size: 13px;
        margin-top: 6px;
    }

@media (max-width: 1050px) {
    .sidebar {
        width: 230px;
    }

    .page-container {
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .nav-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar {
        position: relative;
        height: auto;
        padding: 16px;
        align-items: flex-start;
    }

    .page-container {
        padding: 16px;
    }

    .page-head {
        display: block;
    }

    .premium-table {
        font-size: 13px;
    }

        .premium-table th,
        .premium-table td {
            padding: 10px;
        }
}
.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.module-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .module-pill.ok {
        background: #dcfce7;
        color: #166534;
    }

    .module-pill.off {
        background: #f1f5f9;
        color: #94a3b8;
    }

/* MOB365 2026-08-26 - ATK credential status (visual/read-only only) */
.fiscal-page .atk-credential-card{border-color:#d8e4f2}
.fiscal-page .credential-status-box{height:100%;padding:12px 14px;border:1px solid #e1e8f0;border-radius: 4px;background:#f8fbff}
.fiscal-page .credential-status-box span{display:block;margin-bottom:5px;color:#64748b;font-size:.72rem;font-weight: 600;text-transform:uppercase;letter-spacing:.04em}
.fiscal-page .credential-status-box strong{font-size:.92rem;color:var(--bc-text)}
.fiscal-page .credential-status-box .status-on{color:#059669}
.fiscal-page .credential-status-box .status-off{color:#dc2626}
.fiscal-page .credential-status-box .status-warn{color:#b45309}
