/* ── Page header ──────────────────────────────────────────────────── */
.ss-page-header {
    background: var(--sidebar-bg);
    padding: 5px 8px 5px;
    margin-bottom: 0;
    border-bottom: 3px solid var(--divine-green);
}

.ss-page-header-inner {
    max-width: 100%;
}

.ss-page-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--sidebar-accent);
    margin-bottom: 4px;
}

.ss-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
    /* display: flex; */
    align-items: center;
    gap: 10px;
}

.ss-page-title i {
    color: var(--sidebar-accent);
    font-size: 20px;
}

.ss-page-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

/* ── Shell: nav + panel side by side ─────────────────────────────── */
.ss-shell {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: calc(100vh - 160px);
}

/* ── Vertical nav ─────────────────────────────────────────────────── */
.ss-nav {
    width: 220px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e5eaf2;
    min-height: 100%;
    padding: 16px 0;
}

.ss-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ss-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 150ms, color 150ms, border-color 150ms;
    position: relative;
}

.ss-nav-item:hover {
    background: #f1f5f9;
    color: var(--divine-blue);
    border-left-color: #cbd5e1;
}

.ss-nav-item--active {
    background: rgba(90, 180, 50, 0.08);
    color: var(--divine-blue);
    border-left-color: var(--divine-green);
    font-weight: 700;
}

.ss-nav-item--active:hover {
    background: rgba(90, 180, 50, 0.12);
    border-left-color: var(--divine-green);
}

.ss-nav-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.ss-nav-label {
    flex: 1;
}

.ss-nav-arrow {
    font-size: 10px;
    color: var(--divine-green);
    flex-shrink: 0;
}

/* ── Panel ────────────────────────────────────────────────────────── */
.ss-sidebar-col {
    flex: 0 0 260px;   /* fixed sidebar width */
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;         /* optional: keeps card+nav visible while panel scrolls */
}

.ss-panel {
    flex: 1;
    background: #f7f9fc;
    min-width: 0;
}

.ss-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
    padding: 18px 28px;
}

.ss-panel-header-icon {
    font-size: 22px;
    color: var(--divine-blue);
    flex-shrink: 0;
}

.ss-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
}

.ss-panel-subtitle {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0;
}

.ss-panel-body {
    padding: 8px 8px;
}

/* ── Toolbar ──────────────────────────────────────────────────────── */
.ss-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.ss-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
}

/* ── Table ────────────────────────────────────────────────────────── */
.ss-row-inactive {
    opacity: 0.55;
}

.ss-table td {
    padding: 12px 16px;
    color: #374151;
    vertical-align: middle;
}

/* ── Status badges ────────────────────────────────────────────────── */
.ss-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.ss-badge--active {
    background: #dcfce7;
    color: #15803d;
}

.ss-badge--inactive {
    background: #fee2e2;
    color: #b91c1c;
}

/* ── Action icon button ───────────────────────────────────────────── */
.ss-icon-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 5px 9px;
    cursor: pointer;
    color: var(--divine-blue);
    transition: background 140ms, border-color 140ms, color 140ms;
    font-size: 14px;
}

.ss-icon-btn:hover {
    background: var(--divine-blue);
    border-color: var(--divine-blue);
    color: #ffffff;
}

.ss-protected-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #fef9c3;
    color: #a16207;
    font-size: 14px;
    border: 1px solid #fde68a;
}

/* ── Coming soon placeholder ──────────────────────────────────────── */
.ss-coming-soon {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.ss-coming-soon-inner {
    text-align: center;
    color: #9ca3af;
}

.ss-coming-icon {
    font-size: 48px;
    color: #d1d5db;
    display: block;
    margin-bottom: 16px;
}

.ss-coming-soon-inner h3 {
    font-size: 17px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
}

.ss-coming-soon-inner p {
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* ── Modal overrides ──────────────────────────────────────────────── */
.ss-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.ss-modal-header {
    background: var(--divine-blue);
    border: none;
    padding: 18px 22px;
}

.ss-modal-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.ss-modal-body {
    padding: 24px 22px 8px;
    background: #ffffff;
}

.ss-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e5eaf2;
    padding: 14px 22px;
    gap: 10px;
}

.ss-form-check {
    background: #f8fafc;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    padding: 12px 14px 12px 38px;
}

.ss-form-check .form-check-label {
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .ss-page-header {
        background: var(--sidebar-bg);
        padding: 5px 5px 5px 5px;
        margin-bottom: 0;
        border-bottom: 3px solid var(--divine-green);
    }

    .ss-page-header-inner {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .ss-shell {
        flex-direction: column;
    }

    .ss-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5eaf2;
        padding: 8px 0;
    }

    .ss-nav-list {
        display: flex;
        overflow-x: auto;
        padding: 0 8px;
        gap: 4px;
    }

    .ss-page-header {
        background: var(--sidebar-bg);
        padding: 5px 5px 5px 5px;
        margin-bottom: 0;
        border-bottom: 3px solid var(--divine-green);
    }

    .ss-page-header-inner {
        max-width: 100%;
    }


    .ss-nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        font-size: 11px;
        white-space: nowrap;
        text-align: center;
    }

    .ss-nav-item--active {
        border-left: none;
        border-bottom-color: var(--divine-green);
    }

    .ss-nav-arrow {
        display: none;
    }

    .ss-nav-icon {
        font-size: 18px;
        width: auto;
    }

    .ss-panel-body {
        padding: 4px;
    }
}