/* ================================================================
   Flexco Admin - Modern Design System
   A refined light-mode enterprise dashboard with distinctive brand
   identity, accessible contrast, and premium polish.
   ================================================================ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
    /* Brand Indigo - distinctive, trustworthy, premium */
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-300: #a5b4fc;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --brand-900: #312e81;

    /* Warm Neutral Palette - approachable, not clinical */
    --neutral-50:  #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;

    /* Semantic Colors */
    --success-bg:          #f0fdf4;
    --success-border:      #22c55e;
    --success-text:        #166534;
    --success-badge-bg:    #dcfce7;
    --success-badge-text:  #166534;

    --warning-bg:          #fffbeb;
    --warning-border:      #f59e0b;
    --warning-text:        #92400e;
    --warning-badge-bg:    #fef3c7;
    --warning-badge-text:  #92400e;

    --danger-bg:           #fef2f2;
    --danger-border:       #ef4444;
    --danger-text:         #991b1b;
    --danger-badge-bg:     #fee2e2;
    --danger-badge-text:   #991b1b;

    --info-bg:             #eef2ff;
    --info-border:         #6366f1;
    --info-text:           #3730a3;

    /* Shadows - refined depth */
    --shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg:    0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl:    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-brand: 0 4px 14px rgba(79, 70, 229, 0.2);
    --shadow-ring:  0 0 0 3px rgba(99, 102, 241, 0.15);

    /* Border Radius */
    --radius-sm:   4px;
    --radius:      6px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--neutral-50);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--neutral-800);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
    background: var(--brand-100);
    color: var(--brand-900);
}

hr {
    border-color: var(--neutral-200);
    opacity: 1;
}

/* ── Typography ───────────────────────────────────────────────── */
.page-title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
}

.page-title .text-muted {
    color: var(--neutral-500) !important;
    font-weight: 400;
}

.section-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-500);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 0 var(--space-6);
    min-height: 56px;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Force the container-fluid to be a horizontal flex row */
.navbar > .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--neutral-900) !important;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand:hover {
    opacity: 0.85;
    color: var(--neutral-900) !important;
}

.navbar-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.navbar .nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
    white-space: nowrap;
}

.navbar .nav-user-name {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.navbar .nav-user-name i {
    font-size: 1rem;
    color: var(--neutral-400);
}

.navbar .btn-nav-logout {
    background: transparent;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.navbar .btn-nav-logout:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--neutral-800);
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 600;
    color: var(--neutral-800);
    padding: 1rem 1.5rem;
}

.card-header .card-header-icon {
    color: var(--brand-600);
    font-size: 1.05rem;
}

.card-header h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.card-body {
    padding: 1.5rem;
}

/* ── Search Section ───────────────────────────────────────────── */
.search-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.search-section .search-column {
    position: relative;
}

@media (min-width: 992px) {
    .search-section .search-column + .search-column {
        border-left: 1px solid var(--neutral-200);
        padding-left: 1.5rem;
    }
}

.search-section .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.search-section .form-label i {
    color: var(--brand-500);
    font-size: 0.85rem;
}

.search-section .form-control {
    border-color: var(--neutral-300);
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    color: var(--neutral-800);
    min-height: 42px;
}

.search-section .form-control::placeholder {
    color: var(--neutral-500);
    font-size: 0.8125rem;
}

.search-section .form-control:focus {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-ring);
}

/* Active search indicator pill */
.search-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.search-active-indicator i {
    font-size: 0.7rem;
}

.search-active-indicator .search-term {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.search-active-indicator .btn-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--brand-200);
    color: var(--brand-700);
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0;
    margin-left: 0.125rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.search-active-indicator .btn-clear-filter:hover {
    background: var(--brand-600);
    color: #ffffff;
}

/* ── Table ────────────────────────────────────────────────────── */
.table {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--neutral-700);
}

/* Modern light table header */
.table thead th {
    background-color: var(--neutral-50);
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 0.75rem 0.875rem;
    border-bottom: 2px solid var(--neutral-200);
    border-top: none;
}

.table thead th:first-child {
    border-radius: 0;
}

.table thead th:last-child {
    border-radius: 0;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem 0.875rem;
    border-color: var(--neutral-100);
    color: var(--neutral-700);
}

/* Striped rows: alternating white and very light warm neutral */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #ffffff;
}

.table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: var(--neutral-50);
}

/* Hover state: gentle brand tint with left accent border */
.table-hover > tbody > tr {
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.table-hover > tbody > tr:hover {
    border-left: 3px solid var(--brand-500);
}

.table-hover > tbody > tr:hover > td {
    background-color: var(--brand-50);
}

/* Row highlight when user was just edited */
.table-hover > tbody > tr.row-just-edited {
    border-left: 3px solid var(--success-border);
}

.table-hover > tbody > tr.row-just-edited > td {
    background-color: var(--success-bg);
}

@keyframes fadeHighlight {
    0%   { background-color: var(--success-bg); border-left-color: var(--success-border); }
    70%  { background-color: var(--success-bg); border-left-color: var(--success-border); }
    100% { background-color: transparent; border-left-color: transparent; }
}

.table-hover > tbody > tr.row-just-edited {
    animation: fadeHighlight 4s ease forwards;
}

/* Column-specific styling */
.table .col-id {
    color: var(--neutral-500);
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
}

.table .col-name {
    font-weight: 600;
    color: var(--neutral-800);
}

/* User initials avatar */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
    color: var(--brand-700);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 0.5rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.col-name-wrap {
    display: flex;
    align-items: center;
}

.table .col-email {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--neutral-700);
}

.table .col-muted {
    color: var(--neutral-600);
}

.table .col-date {
    color: var(--neutral-600);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--brand-800);
    border-color: var(--brand-800);
    transform: translateY(0) scale(0.97);
}

.btn-outline-primary {
    color: var(--brand-600);
    border-color: var(--brand-300);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    color: #ffffff;
    box-shadow: var(--shadow-brand);
}

.btn-outline-secondary {
    color: var(--neutral-600);
    border-color: var(--neutral-300);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--neutral-700);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--neutral-600);
}

.btn-ghost:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-800);
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
}

/* Action button in table rows */
.btn-table-action {
    color: var(--brand-600);
    border: 1px solid var(--brand-200);
    background: var(--brand-50);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn-table-action:hover {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.btn-table-action:active {
    transform: translateY(0) scale(0.97);
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge-state {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
}

.badge-state .bi {
    font-size: 0.6rem;
}

.badge-active {
    background-color: var(--success-badge-bg) !important;
    color: var(--success-badge-text) !important;
}

.badge-suspended {
    background-color: var(--danger-badge-bg) !important;
    color: var(--danger-badge-text) !important;
}

.badge-pending {
    background-color: var(--warning-badge-bg) !important;
    color: var(--warning-badge-text) !important;
}

.badge-default {
    background-color: var(--neutral-200) !important;
    color: var(--neutral-700) !important;
}

/* Dealer ID badge */
.badge-dealer {
    background-color: var(--neutral-100) !important;
    color: var(--neutral-700) !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25em 0.55em;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    gap: 0.25rem;
}

.page-item {
    list-style: none;
}

.page-link {
    color: var(--neutral-700);
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius) !important;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.page-link:hover {
    background-color: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-200);
}

.page-item.active .page-link {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.25);
}

.page-item.disabled .page-link {
    color: var(--neutral-300);
    background: var(--neutral-50);
    border-color: var(--neutral-200);
}

/* ── Form Controls ────────────────────────────────────────────── */
.form-control {
    border-radius: var(--radius);
    border-color: var(--neutral-300);
    color: var(--neutral-800);
    font-size: 0.875rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control:hover {
    border-color: var(--neutral-400);
}

.form-control:focus {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-ring);
    color: var(--neutral-900);
}

.form-control::placeholder {
    color: var(--neutral-500);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.375rem;
}

.form-select {
    border-color: var(--neutral-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--neutral-800);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-ring);
}

/* Field help text */
.form-help {
    font-size: 0.75rem;
    color: var(--neutral-600);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
}

.form-help i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Input groups */
.input-group .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .btn {
    border-radius: 0;
}

.input-group .btn:last-child,
.input-group a.btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.input-group-text {
    background-color: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* ── Login Page ───────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: #ffffff;
}

/* Brand Panel (left side) */
.login-brand-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 40%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-12);
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Subtle grid pattern overlay */
.login-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.login-brand-panel__content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.login-brand-panel__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-12);
}

.login-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.login-logo-mark i {
    color: #ffffff;
    font-size: 1.25rem;
}

.login-logo-mark--sm {
    width: 36px;
    height: 36px;
}

.login-logo-mark--sm i {
    font-size: 1rem;
}

.login-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.login-brand-panel__headline {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

.login-brand-panel__sub {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 400px;
}

.login-brand-panel__footer {
    margin-top: var(--space-12);
}

.login-brand-panel__stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.login-stat__number {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.login-stat__label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.125rem;
}

.login-stat__divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

/* Form Panel (right side) */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    max-width: 560px;
}

.login-form-panel__inner {
    width: 100%;
    max-width: 380px;
}

.login-form-panel__header {
    margin-bottom: var(--space-8);
}

.login-form-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.login-form-panel__subtitle {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    margin: 0;
}

.login-mobile-logo {
    display: none;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: var(--space-6);
}

.login-mobile-logo .login-logo-mark {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    border: none;
}

.login-mobile-logo .login-logo-text {
    color: var(--neutral-900);
}

/* Login form fields */
.login-form .login-field {
    margin-bottom: var(--space-5);
}

.login-form .login-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.375rem;
}

.login-form .login-field__input-wrap {
    position: relative;
}

.login-form .login-field__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1rem;
    transition: color var(--transition-fast);
    pointer-events: none;
}

.login-form .login-field__input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background: #ffffff;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    font-family: inherit;
}

.login-form .login-field__input::placeholder {
    color: var(--neutral-500);
}

.login-form .login-field__input:hover {
    border-color: var(--neutral-400);
}

.login-form .login-field__input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: var(--shadow-ring);
}

.login-form .login-field__input:focus + .login-field__icon,
.login-form .login-field__input:focus ~ .login-field__icon {
    color: var(--brand-500);
}

/* Fix for icon being before input */
.login-form .login-field__input-wrap:focus-within .login-field__icon {
    color: var(--brand-500);
}

/* Login submit button */
.login-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: var(--space-2);
    background: var(--brand-600);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.login-submit:hover {
    background: var(--brand-700);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0) scale(0.98);
}

.login-submit .bi-arrow-right {
    transition: transform var(--transition-fast);
}

.login-submit:hover .bi-arrow-right {
    transform: translateX(2px);
}

.login-submit .btn-label {
    /* Visible by default; spinner appears alongside when loading */
}

.login-submit.is-loading .btn-label {
    opacity: 0.8;
}

/* Login brand hero section */
.login-brand-panel__hero {
    margin-bottom: var(--space-4);
}

/* Keyboard hint */
.login-keyboard-hint {
    text-align: center;
    margin-top: var(--space-4);
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.kbd {
    display: inline-block;
    padding: 0.125rem 0.4rem;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--neutral-600);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    box-shadow: 0 1px 0 var(--neutral-200);
    line-height: 1.4;
}

.login-form-panel__footer {
    margin-top: var(--space-8);
    text-align: center;
}

.login-form-panel__footer p {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin: 0;
}

/* Login mobile responsive */
@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand-panel {
        padding: var(--space-8) var(--space-6);
        min-height: auto;
    }

    .login-brand-panel__content {
        max-width: 100%;
    }

    .login-brand-panel__headline {
        font-size: 1.75rem;
    }

    .login-brand-panel__sub {
        font-size: 0.9375rem;
    }

    .login-brand-panel__stats {
        display: none;
    }

    .login-form-panel {
        max-width: 100%;
        padding: var(--space-8) var(--space-6);
    }
}

@media (max-width: 767.98px) {
    .login-brand-panel {
        display: none;
    }

    .login-mobile-logo {
        display: flex;
    }

    .login-form-panel {
        min-height: 100vh;
    }

    .login-form-panel__inner {
        max-width: 360px;
    }
}

/* Legacy login card support - keep for existing alert styles */
.login-card .card-body {
    padding: 2.5rem 2.25rem !important;
}

.login-card .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-card .input-group-text {
    background-color: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-500);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--brand-400);
    color: var(--brand-500);
}

.login-card .form-control {
    padding: 0.7rem 0.875rem;
}

.login-card .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    letter-spacing: 0.01em;
}

.login-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
}

.login-card .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════════
   EDIT / USER PROFILE PAGE
   A premium SaaS-style user detail page with profile hero,
   structured read-only grid, and refined editable form.
   ══════════════════════════════════════════════════════════════════ */

/* ── Page Container ──────────────────────────────────────────── */
.page-edit {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Breadcrumb / Back Link ──────────────────────────────────── */
.edit-breadcrumb {
    margin-bottom: var(--space-5);
}

.edit-breadcrumb .btn-back {
    color: var(--neutral-600);
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.edit-breadcrumb .btn-back:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--neutral-800);
    transform: translateX(-2px);
}

.edit-breadcrumb .btn-back i {
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.edit-breadcrumb .btn-back:hover i {
    transform: translateX(-2px);
}

/* ── Profile Hero ────────────────────────────────────────────── */
.profile-hero {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: var(--space-8) var(--space-8);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent along the top edge */
.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400), var(--brand-300));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-hero__inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.profile-hero__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.profile-hero__info {
    min-width: 0;
    flex: 1;
}

.profile-hero__name {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.375rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.profile-hero__id {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.profile-hero__id i {
    font-size: 0.875rem;
    color: var(--neutral-400);
}

.profile-hero__meta-sep {
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
    flex-shrink: 0;
}

/* ── Profile Section (shared between read-only & editable) ──── */
.profile-section {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.profile-section__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.profile-section__header i {
    color: var(--brand-600);
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-section__header h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    letter-spacing: -0.005em;
}

.profile-section__body {
    padding: var(--space-6);
}

/* ── Editable Section Variation ──────────────────────────────── */
.profile-section--editable {
    border-color: var(--brand-200);
    border-top: 3px solid var(--brand-500);
}

.profile-section--editable .profile-section__header {
    background: var(--brand-50);
    border-bottom-color: var(--brand-100);
}

/* ── Read-Only Fields Grid (CSS Grid, not Bootstrap) ─────────── */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-8);
    margin: 0;
    padding: 0;
}

.profile-grid__item {
    min-width: 0;
}

.profile-grid__item dt {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-500);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.profile-grid__item dd {
    font-size: 0.875rem;
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Primary value style (e.g. name) */
.profile-grid__value--primary {
    color: var(--neutral-900) !important;
    font-weight: 600;
    font-size: 0.9375rem !important;
}

/* Responsive: single column on small screens */
@media (max-width: 575.98px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* ── Editable Fields Grid ────────────────────────────────────── */
.edit-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-8);
    margin-bottom: var(--space-8);
}

@media (max-width: 575.98px) {
    .edit-fields-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.edit-field {
    min-width: 0;
}

.edit-field__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.edit-field__label i {
    color: var(--brand-500);
    font-size: 0.9rem;
}

.edit-field__input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    min-height: 44px;
    border-radius: var(--radius-md);
    border-color: var(--neutral-300);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.edit-field__input:hover {
    border-color: var(--neutral-400);
}

.edit-field__input:focus {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-ring);
}

.edit-field__input.is-invalid {
    border-color: var(--danger-border);
}

.edit-field__input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.edit-field__help {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 0.375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    line-height: 1.45;
}

.edit-field__help i {
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ── Form Actions ────────────────────────────────────────────── */
.edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-100);
}

.edit-actions__buttons {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ── Unsaved Changes Banner ──────────────────────────────────── */
.unsaved-banner {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--warning-text);
    margin-bottom: var(--space-4);
    animation: slideDown 250ms var(--ease-out);
}

.unsaved-banner.is-visible {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Keyboard Shortcut Hint ──────────────────────────────────── */
.keyboard-hint {
    font-size: 0.75rem;
    color: var(--neutral-500);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .keyboard-hint {
        display: none;
    }

    .edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-actions__buttons {
        flex-direction: column;
    }

    .edit-actions__buttons .btn {
        width: 100%;
    }
}

/* ── Legacy readonly field support (for any other pages) ─────── */
.readonly-label,
.readonly-field dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-500);
    font-weight: 600;
    margin-bottom: 0.1875rem;
    display: block;
}

.readonly-value,
.readonly-field dd {
    font-size: 0.875rem;
    padding: 0.25rem 0;
    color: var(--neutral-700);
    margin-bottom: 0;
    line-height: 1.5;
}

.readonly-value.fw-medium,
.readonly-field dd.fw-medium {
    color: var(--neutral-900);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ── Legacy editable card support ────────────────────────────── */
.card-editable {
    border-top: 3px solid var(--brand-500);
}

.card-editable .card-header {
    background-color: var(--brand-50);
    border-bottom: 1px solid var(--brand-100);
}

/* ══════════════════════════════════════════════════════════════════
   END EDIT / USER PROFILE PAGE
   ══════════════════════════════════════════════════════════════════ */

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-left: 4px solid var(--success-border);
    animation: alertSlideIn 300ms var(--ease-out);
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border-left: 4px solid var(--danger-border);
}

.alert-info {
    background-color: var(--info-bg);
    color: var(--info-text);
    border-left: 4px solid var(--info-border);
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-left: 4px solid var(--warning-border);
}

.alert .btn-close {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.75rem;
}

/* ── Results Info Bar ─────────────────────────────────────────── */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

.results-info {
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

.results-info strong {
    color: var(--neutral-700);
    font-weight: 600;
}

.results-page-info {
    font-size: 0.8125rem;
    color: var(--neutral-600);
}

.results-page-info strong {
    color: var(--neutral-600);
}

/* ── Empty State ──────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.empty-state-icon i {
    font-size: 1.75rem;
    color: var(--neutral-400);
}

.empty-state h6, .empty-state h1 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.375rem;
}

.empty-state p {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin: 0;
    max-width: 320px;
    margin-inline: auto;
}

.empty-state .error-code {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* ── Skip Link ───────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--brand-600);
    color: #ffffff;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.5rem;
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.page-header h1 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.page-header h1 i {
    color: var(--brand-600);
    font-size: 1.25rem;
}

.page-header .page-subtitle {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin: 0;
}

/* ── Search Divider ──────────────────────────────────────────── */
.search-or-divider {
    display: none;
}

@media (min-width: 992px) {
    .search-or-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: -1px;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .search-or-divider span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: var(--neutral-100);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-full);
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--neutral-500);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

/* ── Layout Spacing ───────────────────────────────────────────── */
.page-content {
    padding: var(--space-6);
    max-width: 100%;
}

.page-content.page-list {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .page-content {
        padding: var(--space-6) var(--space-8);
    }
}

.page-content {
    padding-bottom: var(--space-12);
}

/* ── Loading Spinner ──────────────────────────────────────────── */
.btn .spinner,
.login-submit .spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: var(--radius-full);
    animation: spin 600ms linear infinite;
}

.btn.is-loading .spinner,
.login-submit.is-loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Save Confirmation Dialog ─────────────────────────────────── */
.save-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmFadeIn 200ms ease;
}

.save-confirm-backdrop[hidden] {
    display: none !important;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.save-confirm-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 2rem 2rem 1.75rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: confirmScaleIn 250ms var(--ease-out);
}

@keyframes confirmScaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.save-confirm-dialog .confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.save-confirm-dialog .confirm-icon i {
    font-size: 1.375rem;
    color: var(--brand-600);
}

.save-confirm-dialog h6 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.save-confirm-dialog p {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.save-confirm-dialog .confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.save-confirm-dialog .confirm-actions .btn {
    min-width: 120px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
}

/* ── Responsive Adjustments ───────────────────────────────────── */
@media (max-width: 991.98px) {
    .search-section {
        padding: 1.25rem;
    }

    .table {
        font-size: 0.78rem;
    }

    .table thead th {
        font-size: 0.65rem;
        padding: 0.6rem 0.625rem;
    }

    .table td {
        padding: 0.5rem 0.625rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0 1rem;
    }

    .page-content {
        padding: 1rem;
    }

    .results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .save-confirm-dialog .confirm-actions {
        flex-direction: column;
    }

    .user-avatar {
        display: none;
    }

    /* Profile hero responsive */
    .profile-hero {
        padding: var(--space-6);
    }

    .profile-hero__inner {
        gap: var(--space-4);
    }

    .profile-hero__avatar {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .profile-section__body {
        padding: var(--space-5);
    }
}

/* ── Focus & Accessibility ────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Print Styles ─────────────────────────────────────────────── */
@media print {
    .navbar,
    .search-section,
    .pagination-wrapper,
    .btn-table-action {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .table thead th {
        background-color: #f3f4f6 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: #ffffff;
    }

    .profile-hero,
    .profile-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .edit-breadcrumb,
    .unsaved-banner,
    .keyboard-hint {
        display: none !important;
    }
}

/* ── Misc Utilities ───────────────────────────────────────────── */
.text-truncate-email {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.edit-section-divider {
    margin: 0;
    border: 0;
    border-top: 2px solid var(--brand-100);
}
