:root {
    --brand-700: #8f1b13;
    --brand-600: #b42318;
    --brand-500: #d92d20;
    --brand-300: #fda29b;
    --brand-100: #fee4e2;
    --brand-50: #fff5f4;
    --ink-900: #1f1f1f;
    --ink-700: #3a3a3a;
    --ink-500: #6b6b6b;
    --ink-400: #9a9a9a;
    --surface: #ffffff;
    --surface-muted: #f6f4f3;
    --border: #ead6d4;
    --sidebar-width: 260px;
    --topbar-height: 56px;
    --radius: 0.625rem;
    --shadow-sm: 0 1px 3px rgba(17, 12, 12, 0.06);
    --shadow-md: 0 4px 16px rgba(17, 12, 12, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--surface-muted);
    color: var(--ink-900);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

body.sidebar-open {
    overflow: hidden;
    touch-action: none;
}

/* ── App shell ── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--brand-700) 0%, #6b1510 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.app-sidebar-brand {
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-sidebar-brand:hover { color: #fff; opacity: 0.92; }

.app-sidebar-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.sidebar-section-label {
    padding: 0.65rem 1.25rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,.45);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.25rem;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
}

.sidebar-link i { font-size: 1rem; opacity: 0.85; width: 1.25rem; text-align: center; }

.app-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
}

.app-topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    padding: 0.35rem 0.55rem;
    color: var(--ink-700);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    font-size: 1.35rem;
    padding: 0.25rem;
    cursor: pointer;
    line-height: 1;
}

.app-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
    min-width: 0;
}

.app-footer {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    color: var(--ink-500);
}

/* ── Page header ── */
.page-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink-900);
}

.page-header-bar .page-subtitle {
    color: var(--ink-500);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Legacy page headers (pre-redesign views) */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink-900);
}

.app-sidebar-brand-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.app-sidebar-brand-row .app-sidebar-brand {
    flex: 1;
    min-width: 0;
    border-bottom: none;
}

.app-topbar-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bulk-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ── Cards ── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.card-header {
    padding: 0.85rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--ink-700);
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-body { padding: 1.25rem; }

.card-form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.card-form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--brand-50);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--ink-700);
}

.card-form-section-header .step-badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.card-form-section-body { padding: 1.25rem; }

/* ── Buttons ── */
.btn-primary {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}
.btn-outline-primary {
    color: var(--brand-700);
    border-color: var(--brand-700);
}
.btn-outline-primary:hover {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}

/* ── Forms ── */
.form-control, .form-select {
    border-color: #e7cfcc;
    border-radius: 0.45rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-300);
    box-shadow: 0 0 0 0.15rem rgba(217, 45, 32, 0.12);
}
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ink-700);
    margin-bottom: 0.35rem;
}

.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.filter-panel-header {
    padding: 0.75rem 1.25rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.filter-panel-header h6 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-700);
}

.filter-panel-body { padding: 1.25rem; }

/* ── Tables ── */
.table { color: var(--ink-700); margin-bottom: 0; }
.table thead th {
    background: var(--surface-muted);
    border-bottom: 2px solid var(--border);
    color: var(--ink-700);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.table tbody tr:hover { background-color: var(--brand-50); }
.table-responsive {
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* ── Mobile ── */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        width: min(280px, 88vw);
        box-shadow: none;
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle,
    .sidebar-close {
        display: block;
    }

    .app-sidebar-brand {
        padding-right: 0.75rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1035;
        backdrop-filter: blur(1px);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-content {
        padding: 1rem;
    }

    .app-topbar {
        padding: 0 1rem;
    }

    .app-footer {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .page-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .page-header-bar h1,
    .page-header h1 {
        font-size: 1.3rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .page-header .btn,
    .page-header > a.btn {
        width: 100%;
        justify-content: center;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-body,
    .card-form-section-body {
        padding: 1rem;
    }

    .card-form-section-header {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding: 0.75rem;
    }

    .page-header-bar h1,
    .page-header h1 {
        font-size: 1.15rem;
    }

    .page-header-actions {
        flex-direction: column;
    }

    .page-header-actions .btn {
        width: 100%;
    }

    .stat-card {
        padding: 0.9rem 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.45rem;
    }

    .auth-card-body,
    .auth-card-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .empty-state {
        padding: 1.75rem 1rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .accordion .list-group-item {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .accordion .list-group-item .btn-action-group {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-action-group .btn {
        flex: 1 1 auto;
    }

    .bulk-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-action-bar .btn {
        width: 100%;
    }

    .card-header.d-flex .btn,
    .card-header.d-flex .btn-group {
        width: 100%;
    }

    .card-header.d-flex .btn-group .btn {
        flex: 1;
    }

    .table thead th {
        font-size: 0.72rem;
    }
}

@media (min-width: 992px) {
    .app-content {
        padding: 1.75rem 2rem;
    }
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--ink-500);
    margin-bottom: 0.25rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.2;
}
.stat-card.accent { border-left: 4px solid var(--brand-600); }

/* ── Alerts ── */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: #d1e7dd; color: #0a3622; }
.alert-danger  { background: #f8d7da; color: #58151c; }
.alert-warning { background: #fff3cd; color: #664d03; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--ink-500);
}
.empty-state i { font-size: 2.5rem; opacity: 0.35; margin-bottom: 0.75rem; display: block; }
.empty-state p { margin-bottom: 1rem; }

/* ── Auth layout ── */
.auth-page {
    min-height: 100vh;
    padding: 0;
    background: var(--surface-muted);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(145deg, var(--brand-700) 0%, var(--brand-600) 45%, #9a1f16 100%);
    color: #fff;
    overflow: hidden;
}

.auth-brand-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.auth-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 1.35rem;
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-brand-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.auth-brand-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 2rem;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-brand-features i {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--surface-muted);
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(17, 12, 12, 0.08), 0 1px 3px rgba(17, 12, 12, 0.04);
    border: 1px solid var(--border);
    padding: 2.25rem 2rem;
}

.auth-form-header {
    margin-bottom: 1.75rem;
}

.auth-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--ink-900);
}

.auth-form-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--ink-400);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.auth-input-wrap:has(.auth-password-toggle) .auth-input {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--ink-400);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.auth-password-toggle:hover {
    color: var(--ink-700);
    background: var(--surface-muted);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 35, 24, 0.25);
}

.auth-submit i {
    font-size: 1rem;
    transition: transform 0.15s;
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-validation-summary {
    font-size: 0.875rem;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
}

.auth-validation-summary:empty {
    display: none;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-form-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-400);
}

@media (max-width: 991.98px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-brand-panel {
        flex: none;
        padding: 2.5rem 2rem 2rem;
    }

    .auth-brand-content {
        max-width: 100%;
        text-align: center;
    }

    .auth-brand-logo {
        justify-content: center;
        margin-bottom: 1.25rem;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .auth-brand-features {
        display: none;
    }

    .auth-form-panel {
        flex: 1;
        padding: 1.5rem;
        margin-top: -1rem;
    }

    .auth-form-card {
        box-shadow: 0 -4px 24px rgba(17, 12, 12, 0.06);
    }
}

@media (max-width: 575.98px) {
    .auth-brand-panel {
        padding: 2rem 1.25rem 1.5rem;
    }

    .auth-form-panel {
        padding: 1rem;
    }

    .auth-form-card {
        padding: 1.75rem 1.25rem;
    }
}

/* Legacy auth-card (kept for compatibility) */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.auth-card-header {
    background: var(--brand-50);
    padding: 1.75rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.auth-card-header h2 { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--ink-900); }
.auth-card-header p { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--ink-500); }
.auth-card-body { padding: 1.75rem 2rem; }

/* ── Personel izin expand ── */
.izin-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
    font-weight: 600;
}

.izin-toggle-btn .izin-chevron {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.izin-detail-row td {
    border-top: none;
    background: var(--brand-50);
}

.izin-detail-panel {
    padding: 0.75rem 1.25rem 0.85rem;
    border-top: 1px dashed var(--border);
}

.izin-detail-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.5rem;
}

.izin-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.izin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.izin-badge-yillik {
    background: #dbeafe;
    color: #1e40af;
}

.izin-badge-rapor {
    background: #fef3c7;
    color: #92400e;
}

.izin-badge-tatil {
    background: #d1e7dd;
    color: #0f5132;
}

.izin-detail-links {
    font-size: 0.78rem;
}

.izin-detail-links a {
    color: var(--brand-700);
    text-decoration: none;
}

.izin-detail-links a:hover {
    text-decoration: underline;
}

.personel-data-row:has(+ .izin-detail-row:not(.d-none)) {
    background: var(--brand-50);
}

/* ── Accordion (şirket) ── */
.accordion-item { border-color: var(--border); }
.accordion-button:not(.collapsed) {
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 0.15rem rgba(217,45,32,.15); }

/* ── Badge pills ── */
.badge-cert {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0.1rem;
}
.badge-cert.active { background: #d1e7dd; color: #0f5132; }
.badge-cert.inactive { background: #f0f0f0; color: var(--ink-400); }

/* ── Action button group in tables ── */
.btn-action-group { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.text-primary { color: var(--brand-700) !important; }
.badge.bg-primary { background-color: var(--brand-600) !important; }

/* ── Stats ── */
