/*
 * Sedona Retail 2 portal theme.
 * This final cascade layer mirrors the desktop Blue Light palette and keeps
 * the existing Bootstrap components, routes and responsive table behaviour.
 */

:root {
    --sedona-orange: #ff9f1a;
    --sedona-orange-light: #ffbd66;
    --sedona-orange-dark: #e07e00;
    --sedona-orange-subtle: rgba(255, 159, 26, 0.12);

    --sedona-blue: #0f6fb9;
    --sedona-blue-light: #1788d6;
    --sedona-blue-dark: #0b3f75;
    --sedona-blue-subtle: rgba(15, 111, 185, 0.10);
    --sedona-header-start: #075486;
    --sedona-header-middle: #0d5e9b;
    --sedona-header-end: #1177b8;

    --white: #ffffff;
    --gray-50: #f4f9ff;
    --gray-100: #e8f4ff;
    --gray-200: #d8e8f7;
    --gray-300: #c3d8eb;
    --gray-400: #8ba2b8;
    --gray-500: #6b7c93;
    --gray-600: #52677d;
    --gray-700: #334d66;
    --gray-800: #26384a;
    --gray-900: #172b3d;

    --success: #1f8a57;
    --danger: #c2414d;
    --warning: #d97706;
    --info: #0f6fb9;

    --border-radius: 12px;
    --border-radius-sm: 9px;
    --border-radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(11, 63, 117, 0.08);
    --shadow: 0 5px 18px rgba(11, 63, 117, 0.09);
    --shadow-md: 0 10px 28px rgba(11, 63, 117, 0.11);
    --shadow-lg: 0 16px 36px rgba(11, 63, 117, 0.13);
    --shadow-xl: 0 22px 54px rgba(11, 63, 117, 0.18);
}

html {
    color-scheme: light;
    background: var(--gray-50);
}

body {
    min-height: 100dvh;
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--sedona-blue-dark);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 120ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(255, 159, 26, 0.42);
    outline-offset: 2px;
}

/* Application shell */
.sedona-navbar {
    height: 60px;
    padding: 0 18px;
    background: linear-gradient(135deg,
        var(--sedona-header-start) 0%,
        var(--sedona-header-middle) 55%,
        var(--sedona-header-end) 100%);
    border-bottom: 2px solid var(--sedona-orange);
    box-shadow: 0 5px 18px rgba(7, 84, 134, 0.22);
}

.navbar-left,
.navbar-right {
    gap: 12px;
}

.sedona-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--white) !important;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.sedona-navbar .navbar-brand i {
    color: var(--sedona-orange-light);
    font-size: 1.18rem;
}

.navbar-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.84);
}

.navbar-user i {
    color: var(--sedona-orange-light);
}

.navbar-signout {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.84);
}

.navbar-signout:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--white);
}

.burger-btn,
.notification-bell,
.notifications-mute-btn {
    border-radius: var(--border-radius-sm);
}

.burger-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.17);
}

.burger-btn:active,
.notification-bell:active,
.navbar-signout:active {
    transform: translateY(1px);
}

.sidebar-overlay {
    background: rgba(11, 63, 117, 0.45);
    backdrop-filter: blur(2px);
}

.sedona-sidebar {
    width: 276px;
    height: 100dvh;
    background: linear-gradient(180deg, #082f58 0%, var(--sedona-blue-dark) 54%, #0d5e9b 100%);
    box-shadow: 16px 0 40px rgba(8, 47, 88, 0.24);
}

.sidebar-header {
    min-height: 60px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 159, 26, 0.65);
}

.sidebar-content {
    padding: 14px 10px;
}

.sidebar-section-title {
    padding: 12px 14px 6px;
    color: rgba(255, 189, 102, 0.95);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.sidebar-link,
.sidebar-link.home-link {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.875rem;
    transform: none;
}

.sidebar-link.home-link {
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--white);
}

.sidebar-link::before {
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sedona-orange);
}

.sidebar-link:hover,
.sidebar-link.home-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
    box-shadow: none;
    transform: none;
}

.sidebar-link.active,
.sidebar-link.home-link.active {
    background: rgba(232, 244, 255, 0.15);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(195, 223, 245, 0.17);
}

.sidebar-link.active::before {
    display: block;
    transform: scaleY(1);
}

.sidebar-footer {
    padding: 13px 20px;
    background: rgba(8, 47, 88, 0.72);
}

.sidebar-legacy {
    margin: 10px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-sm);
    background: rgba(8, 47, 88, 0.30);
}

.sidebar-legacy summary {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    list-style: none;
    text-transform: uppercase;
}

.sidebar-legacy summary::-webkit-details-marker {
    display: none;
}

.sidebar-legacy summary:hover {
    color: var(--white);
}

.sidebar-legacy summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sidebar-legacy-chevron {
    transition: transform 160ms ease;
}

.sidebar-legacy[open] .sidebar-legacy-chevron {
    transform: rotate(180deg);
}

.sidebar-legacy .sidebar-nav {
    padding: 0 4px 5px;
}

.page-wrapper {
    min-height: 100dvh;
    padding-top: 60px;
    background: var(--gray-50);
}

.page-wrapper::before {
    background: radial-gradient(circle at 92% 4%, rgba(23, 136, 214, 0.10), transparent 32%);
}

.main-content {
    min-height: calc(100dvh - 60px);
}

body .page-header {
    padding: 13px 0 14px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 3px 12px rgba(11, 63, 117, 0.05);
}

body .page-header::before {
    display: none;
}

.page-header-content {
    max-width: 1440px;
    padding: 0 24px;
}

body .page-title,
body .page-title-section h1,
body .page-header h1 {
    margin-bottom: 3px;
    color: var(--sedona-blue-dark);
    font-size: 1.38rem;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.015em;
    text-shadow: none;
}

body .page-subtitle {
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 400;
}

.content-area {
    max-width: 1440px;
    padding: 20px 24px 28px;
}

[id] {
    scroll-margin-top: 78px;
}

/* Shared surfaces */
.card,
.form-card,
.info-card,
.table-card,
.dashboard-card,
.quick-stat-card,
.alert-stat-card,
.status-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.card:hover,
.form-card:hover,
.quick-stat-card:hover,
.alert-stat-card:hover,
.stat-card:hover,
.dashboard-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.card-header,
.form-card-header,
.info-card-header,
.table-card-header,
.dashboard-card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    color: var(--sedona-blue-dark);
}

.card-header,
.form-card-header,
.table-card-header {
    padding: 14px 18px;
}

.card-body,
.form-card-body,
.dashboard-card-body {
    padding: 18px;
}

.form-card-header,
.table-card-header {
    border-bottom-color: var(--gray-200);
}

.form-card-icon,
.app-icon {
    background: var(--sedona-blue-subtle);
    color: var(--sedona-blue);
    box-shadow: none;
}

.form-card-icon i,
.app-icon i,
.info-card-header i,
.table-card-title i,
.dashboard-card-header h2 i {
    color: var(--sedona-orange-dark);
}

.form-card-title,
.table-card-title,
.dashboard-card-header h2,
.app-name {
    color: var(--sedona-blue-dark);
}

.table-count {
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Buttons and form controls follow SedonaButton and outlined field behaviour. */
.btn,
.quick-action-btn,
.btn-process {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
        box-shadow 160ms ease, transform 80ms ease;
}

.btn::before {
    display: none;
}

.btn-primary,
.btn-success,
.btn-header.btn-success,
.sedona-form .btn-primary,
.sedona-form .btn-success,
.quick-action-btn.primary {
    border: 1px solid var(--sedona-orange-dark) !important;
    background: var(--sedona-orange) !important;
    color: #422500 !important;
    box-shadow: 0 3px 9px rgba(224, 126, 0, 0.18);
}

.btn-primary:hover,
.btn-success:hover,
.btn-header.btn-success:hover,
.sedona-form .btn-primary:hover,
.sedona-form .btn-success:hover,
.quick-action-btn.primary:hover {
    border-color: #c96f00 !important;
    background: #f28c00 !important;
    color: #2e1a00 !important;
    box-shadow: 0 5px 13px rgba(224, 126, 0, 0.22);
    transform: none;
}

.btn-success:disabled,
.btn-success.disabled {
    border-color: var(--gray-300) !important;
    background: var(--gray-200) !important;
    color: var(--gray-600) !important;
    box-shadow: none;
    transform: none;
}

body .page-header .btn-process {
    border: 1px solid var(--sedona-orange-dark);
    background: var(--sedona-orange);
    color: #422500;
    box-shadow: 0 3px 9px rgba(224, 126, 0, 0.18);
}

body .page-header .btn-process:hover {
    background: #f28c00;
    color: #2e1a00;
    transform: none;
}

.btn-secondary,
.quick-action-btn.secondary {
    border: 1px solid var(--sedona-blue);
    background: var(--sedona-blue);
    color: var(--white);
}

.btn-secondary:hover,
.quick-action-btn.secondary:hover {
    border-color: var(--sedona-blue-dark);
    background: var(--sedona-blue-dark);
    color: var(--white);
    transform: none;
}

.btn-outline-primary {
    border: 1px solid var(--sedona-orange-dark);
    background: var(--white);
    color: #9a5300;
}

.btn-outline-primary:hover {
    background: var(--sedona-orange-subtle);
    color: #713c00;
}

.btn-outline-secondary,
.sedona-form .btn-outline-secondary {
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--sedona-blue-dark);
}

.btn-outline-secondary:hover,
.sedona-form .btn-outline-secondary:hover {
    border-color: var(--sedona-blue);
    background: var(--gray-100);
    color: var(--sedona-blue-dark);
}

.btn:active,
.quick-action-btn:active,
.btn-process:active {
    transform: translateY(1px);
    box-shadow: none;
}

.form-control,
.form-select,
.sedona-form .form-control,
.sedona-form .form-select {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--gray-900);
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control:hover,
.form-select:hover,
.sedona-form .form-control:hover,
.sedona-form .form-select:hover {
    border-color: var(--sedona-blue-light);
}

.form-control:focus,
.form-select:focus,
.sedona-form .form-control:focus,
.sedona-form .form-select:focus {
    border-color: var(--sedona-orange-dark);
    box-shadow: 0 0 0 3px var(--sedona-orange-subtle);
}

.form-label,
.sedona-form .form-label {
    margin-bottom: 6px;
    color: var(--sedona-blue-dark);
    font-size: 0.86rem;
    font-weight: 600;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--gray-500);
}

.page-header-actions .license-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    white-space: nowrap;
}

.client-section-nav {
    position: sticky;
    z-index: 20;
    top: 68px;
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
}

.client-section-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--sedona-blue-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.client-section-nav a:hover,
.client-section-nav a:focus-visible {
    background: var(--sedona-blue-subtle);
}

.sedona-filter-bar .sedona-select-leading {
    display: none;
}

.sedona-filter-bar .sedona-select-trigger {
    gap: 0.5rem;
}

.sedona-filter-bar .sedona-select-chevron {
    width: 26px;
    height: 26px;
}

.mobile-filter-toggle {
    display: none;
}

/* Tables */
.table,
.table-card .table {
    border-radius: 0;
    box-shadow: none;
}

.table thead,
.table-card .table thead {
    background: linear-gradient(135deg, var(--sedona-blue-dark), var(--sedona-blue));
}

.table thead th,
.table-card .table thead th {
    padding: 11px 14px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.035em;
}

.table tbody td,
.table-card .table tbody td {
    padding: 11px 14px;
    border-bottom-color: var(--gray-200);
}

.table tbody tr,
.table-card .table tbody tr {
    transition: background-color 140ms ease;
}

.table tbody tr:hover,
.table-card .table tbody tr:hover {
    background: var(--gray-100);
    transform: none;
}

.license-key,
.license-key-cell {
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--sedona-blue-dark);
}

/* Dashboard */
.dashboard-hero {
    min-height: 126px;
    margin-bottom: 18px;
    padding: 24px 28px;
    border: 1px solid rgba(7, 84, 134, 0.55);
    border-bottom: 3px solid var(--sedona-orange);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg,
        var(--sedona-header-start) 0%,
        var(--sedona-header-middle) 60%,
        var(--sedona-header-end) 100%);
    box-shadow: var(--shadow-md);
}

.dashboard-hero::before,
.dashboard-hero::after {
    display: none;
}

.dashboard-hero h1 {
    margin-bottom: 5px;
    font-size: 1.72rem;
    font-weight: 650;
    letter-spacing: -0.018em;
}

.dashboard-hero p {
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.98rem;
}

.dashboard-hero .hero-date {
    top: 24px;
    right: 24px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: none;
}

.quick-stats {
    gap: 14px;
    margin-bottom: 18px;
}

.quick-stat-card {
    min-height: 104px;
    padding: 16px;
    gap: 14px;
}

.quick-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.3rem;
}

.quick-stat-icon.blue {
    background: var(--sedona-blue);
}

.quick-stat-icon.orange {
    background: var(--sedona-orange);
    color: #422500;
}

.quick-stat-icon.green {
    background: var(--success);
}

.quick-stat-icon.red {
    background: var(--danger);
}

.quick-stat-value {
    margin-bottom: 4px;
    color: var(--sedona-blue-dark);
    font-size: 1.7rem;
    font-weight: 700;
}

.quick-stat-label {
    color: var(--gray-600);
    font-size: 0.84rem;
}

.dashboard-grid {
    gap: 16px;
}

.dashboard-card-header {
    padding: 14px 17px;
}

.dashboard-card-header h2 {
    font-size: 1rem;
}

.quick-actions {
    gap: 8px;
}

.quick-action-btn {
    text-decoration: none;
}

.client-stats {
    gap: 10px;
}

.client-stat-item {
    padding: 17px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--gray-50);
}

.client-stat-item:hover {
    transform: none;
}

.client-stat-item.active,
.client-stat-item.inactive {
    border-color: var(--gray-200);
    background: var(--gray-50);
}

.client-stat-number {
    margin-bottom: 4px;
    font-size: 2rem;
}

.client-stat-label,
.license-count-label {
    color: var(--gray-600);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.app-header {
    border-bottom: 1px solid var(--gray-200);
}

.app-icon {
    width: 38px;
    height: 38px;
}

.license-types-grid {
    gap: 12px;
}

.license-type-card {
    border-color: var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: none;
}

.license-type-card:hover {
    border-color: var(--sedona-blue-light);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.license-type-header {
    padding: 10px 12px;
    background: var(--gray-100);
    color: var(--sedona-blue-dark);
}

.license-type-body {
    padding: 14px 12px;
}

.license-progress {
    height: 5px;
    background: var(--gray-200);
}

.license-progress-bar {
    background: var(--sedona-blue);
}

.license-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.license-count {
    min-width: 0;
}

.license-count-label {
    min-height: 1.2em;
    font-size: 0.58rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* Alerts, dropdowns, dialogs and footer */
.alert-stat-card {
    padding: 16px 18px;
}

.alert-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.alert-stat-icon.total,
.alert-stat-icon.info {
    background: var(--sedona-blue);
}

.alert-stat-icon.warning {
    background: var(--sedona-orange);
    color: #422500;
}

.alert-stat-icon.critical {
    background: var(--danger);
}

.alert-stat-value {
    color: var(--sedona-blue-dark);
    font-size: 1.7rem;
}

.notifications-dropdown,
.dropdown-menu,
.modal-content {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--gray-200);
}

.audit-details summary {
    color: var(--sedona-blue);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.audit-details-content {
    margin-top: 8px;
}

.audit-details-content pre {
    max-width: 520px;
    max-height: 260px;
    margin: 8px 0 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.72rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-header .text-muted {
    color: rgba(255, 255, 255, 0.86) !important;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.modal-header .btn-close:hover,
.modal-header .btn-close:focus {
    opacity: 1;
}

#footer {
    margin: 18px 0 0 !important;
    padding: 14px 12px 6px !important;
    border-top-color: var(--gray-200) !important;
    color: var(--gray-500);
}

#footer p {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 991.98px) {
    .content-area {
        padding: 16px;
    }

    .page-header-content {
        padding: 0 16px;
    }


    .mobile-card-table-wrapper {
        overflow: visible !important;
    }

    .mobile-card-table,
    .mobile-card-table thead,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table th,
    .mobile-card-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .mobile-card-table {
        min-width: 0 !important;
        overflow: visible !important;
        background: transparent;
    }

    .mobile-card-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .mobile-card-table tbody {
        padding: 10px !important;
        background: var(--gray-50) !important;
    }

    .mobile-card-table tbody tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--gray-200) !important;
        border-radius: var(--border-radius) !important;
        background: var(--white) !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .mobile-card-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .mobile-card-table tbody td {
        display: flex !important;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 13px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--gray-100) !important;
        text-align: right !important;
        word-break: break-word;
    }

    .mobile-card-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .mobile-card-table tbody td[data-label]::before {
        display: block !important;
        flex: 0 0 min(36%, 145px);
        color: var(--gray-500);
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 750;
        letter-spacing: 0.04em;
        text-align: left;
        text-transform: uppercase;
    }

    .mobile-card-table .mobile-card-value {
        flex: 1 1 64%;
        min-width: 0;
        max-width: 64%;
        overflow-wrap: anywhere;
        text-align: right;
    }

    .mobile-card-table .mobile-card-value > :last-child {
        margin-bottom: 0;
    }

    .mobile-card-table .mobile-empty-row {
        border: 0 !important;
        box-shadow: none !important;
    }

    .mobile-card-table .mobile-empty-cell {
        display: block !important;
        padding: 24px 14px !important;
        text-align: center !important;
    }

    .mobile-card-table .mobile-empty-cell::before {
        display: none !important;
    }

	.mobile-card-table .mobile-empty-cell > :only-child {
		max-width: 100%;
	}
}

@media (max-width: 767.98px) {
    body .page-header {
        padding: 12px 0 13px;
    }

    .page-header-content {
        align-items: stretch;
        gap: 12px;
    }

    .page-header-actions,
    .page-header-actions .btn,
    .btn-header {
        width: 100%;
    }

    .page-header-actions .btn,
    .btn-header {
        justify-content: center;
    }

    .dashboard-hero {
        min-height: 0;
        padding: 20px;
    }

    .dashboard-hero h1 {
        padding-right: 0;
        font-size: 1.45rem;
    }

    .dashboard-hero .hero-date {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

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

    .quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .quick-stat-card {
        min-height: 86px;
        gap: 9px;
        padding: 11px;
    }

    .quick-stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .quick-stat-value {
        font-size: 1.35rem;
    }

    .quick-stat-label {
        font-size: 0.74rem;
    }

    .mobile-filter-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 10px 14px;
        border: 1px solid var(--gray-300);
        border-radius: var(--border-radius);
        background: var(--white);
        color: var(--sedona-blue-dark);
        box-shadow: var(--shadow-sm);
        font-weight: 700;
    }

    .mobile-filter-toggle.has-active-filters {
        border-color: var(--sedona-orange-dark);
        background: var(--sedona-orange-subtle);
    }

    .mobile-filter-toggle > .bi-chevron-down {
        transition: transform 150ms ease;
    }

    .mobile-filter-toggle.is-open > .bi-chevron-down {
        transform: rotate(180deg);
    }

    .mobile-filter-toggle + .filters-section.sedona-filter-bar {
        display: none;
    }

    .mobile-filter-toggle + .filters-section.sedona-filter-bar.mobile-filters-open {
        display: block;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        max-height: calc(100dvh - 1rem);
        overflow: hidden;
    }

    .modal-content > form {
        display: flex;
        min-height: 0;
        flex: 1;
        flex-direction: column;
    }

    .modal-header,
    .modal-footer {
        flex: 0 0 auto;
        padding: 14px;
    }

    .modal-body {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .dashboard-card-header,
    .table-card-header,
    .form-card-header {
        align-items: stretch;
    }

    .quick-actions,
    .table-card-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .quick-action-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .sedona-navbar {
        padding: 0 10px;
    }

    .sedona-navbar .navbar-brand span,
    .navbar-user {
        max-width: 130px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .sedona-navbar .navbar-brand span {
        display: none;
    }

    .sedona-sidebar {
        width: min(92vw, 320px);
    }

    .content-area {
        padding: 12px;
    }

    .card-body,
    .form-card-body,
    .dashboard-card-body {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
