:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --accent-color: #2563eb;
    --bg-color: #f1f5f9;
    --sidebar-bg: #0f172a;
    --sidebar-text: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --header-height: 72px;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* A visible focus ring for keyboard users on everything they can reach. */
a:focus-visible,
button:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--primary-color, #4f46e5);
    outline-offset: 2px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(calc(-100% + 16px));
    border-right: 2px solid rgba(255, 255, 255, 0.05);
    /* subtle indicator line */
}

.sidebar:hover,
.sidebar.sidebar-open-temp {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    transition: var(--transition);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-footer {
    padding: 1rem 1.75rem;
    display: none;
}

.mobile-only-btn {
    display: none;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-header {
    padding: 0 1.5rem 2.5rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 2px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.75rem;
    /* Decreased by 0.1rem from 0.7rem as requested */
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.65;
}

.nav-links li a:hover,
.nav-links li.active a {
    background: rgba(99, 102, 241, 0.15);
    /* Indigo tint hover */
    opacity: 1;
    color: #fff;
    border-left: 4px solid var(--accent-color);
}

/* Main Content */
.main-content {
    flex: 1;
    /* Allow the flex item to shrink below its content's intrinsic width; without
       this, wide children (fixed-column grids, tables) force the whole page to
       scroll horizontally instead of staying inside their own scroll containers. */
    min-width: 0;
    margin-left: 16px;
    padding: 2.5rem;
    transition: margin-left var(--transition);
    max-width: 100%;
}

@media (min-width: 769px) {

    .sidebar:hover~.main-content,
    .sidebar.sidebar-open-temp~.main-content {
        margin-left: var(--sidebar-width);
    }
}

.top-header {
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    margin: -2.5rem -2.5rem 2.5rem -2.5rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Cards & Components */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 2.5rem;
    border: 1px solid #f1f5f9;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary-color);
    border-radius: 4px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #94a3b8;
    /* Darker Slate-400 for better visibility */
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-size: 1rem;
    color: #1e293b;
}

/* Textareas: height only. A horizontal drag of the resize handle pushed the
   box out of its card (BugsV6 #4, Correct Disbursed Payment). */
textarea.form-control {
    resize: vertical;
    max-width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn,
label.btn {
    padding: 0.8rem 1.75rem;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-upload {
    background-color: #1e293b !important;
    color: white !important;
    border: 1px solid #0f172a !important;
}

.btn-upload:hover {
    background-color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.btn-camera {
    background-color: #064e3b !important;
    color: white !important;
    border: 1px solid #064e3b !important;
}

.btn-camera:hover {
    background-color: #022c22 !important;
    box-shadow: 0 4px 12px rgba(2, 44, 34, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(67, 56, 202, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #ffffff;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b !important;
    transform: translateY(-1px);
}

/* Cancel / discard actions: red, so they read as buttons next to the primary
   action (BugsV4 #2). Back / close links keep .btn-secondary. */
.btn-cancel {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 6px 14px -6px rgba(220, 38, 38, 0.5);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: 2px solid #cbd5e1;
}

.table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.table td {
    padding: 1.25rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: middle;
}

.table tbody tr td {
    background: #f8fafc;
}

.table tbody tr:nth-child(even) td {
    background: #eef2ff;
}

.table tr:hover td {
    background: #e0e7ff !important;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Tabs Interface */
.tabs-container {
    margin-top: 1rem;
}

.tabs-header {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden; /* overflow-x alone made a stray vertical scrollbar (BugsV4 #27) */
    padding-bottom: 2px;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2.5px;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo-preview {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.photo-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border: 2px dashed #cbd5e1;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
}

.photo-input-container:hover {
    border-color: var(--primary-color);
    background: #f5f3ff;
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

.badge-info {
    background: #e0e7ff;
    color: #3730a3;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Wide report tables (report_*.php): on desktop fit the card instead of hiding
   columns behind a sideways scroll. Headers and text wrap; cells that must stay on
   one line (amounts, dates, receipt IDs) keep their own white-space:nowrap.
   Phones keep the scrollable min-width layout. */
@media (min-width: 769px) {
    .report-table-fit {
        min-width: 0 !important;
    }

    .report-table-fit th {
        white-space: normal !important;
        padding: 10px 8px !important;
        font-size: 0.7rem !important;
        letter-spacing: 0 !important;
    }

    .report-table-fit td {
        padding: 9px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* Tablets / narrow windows: report filter rows use fixed desktop grids (e.g.
   `1fr 1fr 2fr auto auto`) that squeeze inputs and push Filter/Clear off the page.
   Let them wrap into as many ~180px columns as fit; phones stack them (see the
   max-width:768px block) and 1280px+ keeps the desktop layout. */
@media (min-width: 769px) and (max-width: 1279px) {
    .filter-grid-stack {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
    }

    .filter-grid-stack > * {
        grid-column: auto !important;
    }

    /* Filter (<button>) and Clear (<a>) fill their cells equally once wrapped. */
    .filter-grid-stack > div > button:only-child,
    .filter-grid-stack > div > a:only-child {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets: fixed form grids tagged grid-stack-mobile (manage_dealers 5- and
   3-column rows) squeeze fields to ~50px at 820px. Wrap them into ~180px columns;
   from 1180px the original desktop columns are wide enough and stay unchanged. */
@media (min-width: 769px) and (max-width: 1179px) {
    .grid-stack-mobile {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
    }

    .grid-stack-mobile > * {
        grid-column: auto !important;
    }
}

/* Keep short values (e.g. "13 Sep 2026") on one line where there is room; below
   1366px they may wrap so the table still fits. */
@media (min-width: 1366px) {
    .report-table-fit .nowrap-wide {
        white-space: nowrap;
    }
}

/* Small laptops (e.g. 1280px): a little less side padding so 10-column reports fit. */
@media (min-width: 769px) and (max-width: 1299px) {
    .report-table-fit th,
    .report-table-fit td {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: none;
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.active {
        transform: none;
        left: 0;
    }

    .sidebar-footer {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1rem);
    }

    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 900;
        padding: 0 1.5rem;
    }

    .mobile-only-btn {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .crm-grid {
        grid-template-columns: 1fr !important;
    }

    /* Report filter rows use inline fixed-column grids (desktop layout); stack
       them on phones instead of squeezing inputs and pushing buttons off-screen. */
    .filter-grid-stack {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .filter-grid-stack > * {
        grid-column: auto !important;
        padding-top: 0 !important;
    }

    /* Generic: inline fixed-column form grids that should become one column on phones. */
    .grid-stack-mobile {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .grid-stack-mobile > * {
        grid-column: auto !important;
    }

    .filter-grid-stack > div > button:only-child,
    .filter-grid-stack > div > a:only-child {
        width: 100%;
        justify-content: center;
    }

    .dashboard-inventory-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .inventory-chart-card {
        flex-direction: column !important;
        padding: 1.5rem !important;
        min-height: unset !important;
        gap: 1.5rem !important;
    }

    .inventory-chart-canvas {
        width: 160px !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    /* Table Responsiveness */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 2.5rem;
    }
}


/* Message Box / Global Notifications */
.msg-box-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    width: 90%;
    max-width: 450px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.msg-box-container.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.msg-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.msg-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--primary-color);
}

.msg-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.msg-content {
    flex: 1;
}

.msg-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msg-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.msg-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}

.msg-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Types */
.msg-success::before {
    background: #10b981;
}

.msg-success .msg-icon {
    background: #dcfce7;
    color: #10b981;
}

.msg-error::before {
    background: #ef4444;
}

.msg-error .msg-icon {
    background: #fef2f2;
    color: #ef4444;
}

.msg-warning::before {
    background: #f59e0b;
}

.msg-warning .msg-icon {
    background: #fef9c3;
    color: #f59e0b;
}

.msg-info::before {
    background: #3b82f6;
}

.msg-info .msg-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Global Alert Box Design */
@keyframes slideInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-box {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    animation: slideInDown 0.4s ease-out forwards;
    line-height: 1.6;
    font-size: 1rem;
}

.alert-box.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #34d399;
    border-left: 6px solid #10b981;
    color: #065f46;
}

.alert-box.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #f87171;
    border-left: 6px solid #ef4444;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-box.success .alert-icon {
    color: #10b981;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.alert-box.error .alert-icon {
    color: #ef4444;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.alert-content {
    flex-grow: 1;
}

.alert-content p {
    margin: 0;
}

.alert-content strong {
    color: #022c22;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.alert-box.error .alert-content strong {
    color: #450a0a;
}

/* Disable scroll wheel value changes & hide stepper spin buttons on all input[type=number] */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
/* ---- Accessibility / UI (audit step 8) ---------------------------------- */

/* "Skip to content": hidden until focused with the keyboard. */
.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 2000;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

.main-content:focus {
    outline: none;
}

/* Header "BACK" link (was inline style + onmouseover/onmouseout). */
.back-link {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.back-link:hover,
.back-link:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

/* Wide tables on phones (audit UI-011): the scroll box gets a height so the
   header can stick, and the column marked .sticky-key (the site number) stays
   at the left while the rest of the row scrolls. */
@media (max-width: 768px) {
    .table-sticky-key {
        max-height: 70vh;
        overflow: auto;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
    }

    .table-sticky-key .table {
        border-collapse: separate;
    }

    .table-sticky-key thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #f1f5f9;
    }

    .table-sticky-key .sticky-key {
        position: sticky;
        left: 0;
        z-index: 2;
        white-space: nowrap;
        background: #ffffff;
        box-shadow: 2px 0 4px rgba(15, 23, 42, 0.08);
    }

    .table-sticky-key thead th.sticky-key {
        z-index: 4;
        background: #f1f5f9;
    }

    .table-sticky-key .table th,
    .table-sticky-key .table td {
        padding: 0.6rem 0.75rem;
    }
}

/* Visually hidden, still read by screen readers. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
