/* ============================================
   SPF SaaS - Design System
   ============================================ */

:root {
    /* Couleurs SPF */
    --spf-red: #E30613;
    --spf-red-dark: #B8050F;
    --spf-red-light: #FFF0F0;

    /* Couleurs neutres */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Couleurs fonctionnelles */
    --success: #059669;
    --success-light: #ECFDF5;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --primary: #2563EB;
    --primary-light: #EFF6FF;

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 68px;
    --sidebar-bg: #111827;
    --sidebar-text: #9CA3AF;
    --sidebar-hover: #1F2937;
    --sidebar-active-bg: rgba(227, 6, 19, 0.12);
    --sidebar-active-text: #E30613;

    /* Layout */
    --header-height: 0px;
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   Layout: Sidebar + Main
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    min-height: 100vh;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
}

.content-wrapper-wide {
    max-width: 1440px;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

/* Header sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 72px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
}

.nav-section {
    padding: 8px 12px 4px;
    overflow: hidden;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    white-space: nowrap;
}

.sidebar-collapsed .nav-section-title {
    opacity: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    margin-bottom: 2px;
}

.nav-item:hover:not(.disabled) {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.nav-item.active .nav-icon {
    color: var(--sidebar-active-text);
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nav-label {
    overflow: hidden;
    transition: opacity var(--transition);
}

.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-badge {
    opacity: 0;
    width: 0;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: var(--gray-400);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Footer sidebar */
.sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 4px;
}

.page-header-right {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

/* ============================================
   Tabs
   ============================================ */

.tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab:hover {
    color: var(--gray-700);
    background: rgba(255,255,255,0.5);
}

.tab.active {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.tab svg {
    flex-shrink: 0;
}

/* ============================================
   Tab Content
   ============================================ */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.card.card-overflow-visible {
    overflow: visible;
}

.search-select {
    position: relative;
}

.search-select-toggle {
    width: 100%;
    text-align: left;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer;
}

.search-select-toggle.is-placeholder {
    color: var(--gray-400);
}

.search-select.is-open .search-select-toggle {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.search-select-q {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.875rem;
}

.search-select-q:focus {
    outline: none;
    box-shadow: none;
}

.search-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: calc(2.25rem * 5);
    overflow-y: auto;
}

.search-select-list li {
    height: 2.25rem;
    line-height: 2.25rem;
    padding: 0 14px;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-select-list li:hover,
.search-select-list li.is-active {
    background: var(--gray-50);
    color: var(--primary);
}

.search-select-empty {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 20px 24px;
}

/* ============================================
   Forms
   ============================================ */

.form-inline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="search"],
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    transition: all var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group-submit {
    display: flex;
    align-items: flex-end;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--spf-red);
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-inline-compact {
    gap: 8px;
}

.form-inline-compact input[type="text"] {
    padding: 6px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-family: inherit;
    width: 160px;
}

.form-inline-compact input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--gray-700) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.checkbox-label:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.checkbox-label:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary) !important;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
}

.role-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.role-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.role-picker {
    position: relative;
    flex-shrink: 0;
}

.role-picker summary {
    list-style: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-500);
    cursor: pointer;
}

.role-picker summary::-webkit-details-marker {
    display: none;
}

.role-picker summary:hover,
.role-picker[open] summary {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.role-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
}

.role-picker-menu .role-checks {
    flex-direction: column;
    align-items: stretch;
}

.role-picker-menu .checkbox-label {
    width: 100%;
}

.role-picker-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.card-users {
    overflow: visible;
}

.user-row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
}

.form-group .role-checks .checkbox-label {
    padding: 6px 10px;
    font-size: 0.8rem !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: #1D4ED8;
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #047857;
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--gray-200);
}
.btn-danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ============================================
   Data Tables
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.col-actions {
    text-align: right;
    width: 140px;
}

/* ============================================
   Tags & Badges
   ============================================ */

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Empty States
   ============================================ */

.empty-text {
    text-align: center;
    color: var(--gray-400);
    padding: 32px 16px;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state h2 {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-400);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        padding: 24px 20px;
    }

    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar .nav-label,
    .sidebar .nav-badge,
    .sidebar .nav-section-title {
        opacity: 0;
        width: 0;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .content-wrapper {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab span:not(.tab svg) {
        display: none;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 10px;
    }
}

/* ============================================
   Scrollbar
   ============================================ */

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* ============================================
   Print
   ============================================ */

@media print {
    .sidebar, .page-header-right, .btn, .tabs {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   Auth Pages (Login / Setup)
   ============================================ */

.auth-body {
    background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    gap: 6px;
}

.auth-form input {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    transition: all var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--spf-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ============================================
   User Avatar (Sidebar & Tables)
   ============================================ */

.sidebar-user {
    padding: 12px 4px 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 2px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--spf-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-item {
    color: var(--gray-500) !important;
}

.logout-item:hover {
    color: var(--danger) !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Status Indicators
   ============================================ */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-active {
    background: var(--success);
}

.status-inactive {
    background: var(--gray-300);
}

/* ============================================
   Tag Variants
   ============================================ */

.tag-red {
    background: var(--spf-red-light);
    color: var(--spf-red);
}

.tag-gray {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* ============================================
   Permissions Grid (Roles page)
   ============================================ */

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.perm-module {
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    border: 1px solid var(--gray-200);
}

.perm-module-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.perm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.perm-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--spf-red);
    flex-shrink: 0;
}

.perm-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.perm-label strong {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-800);
}

.perm-label code {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}
