/* ==========================================================================
   DEO Portal - High-End Minimalist SaaS Design System
   Modeled on enterprise dashboards (e.g., ai.cmattic.com)
   Typography: Plus Jakarta Sans / Inter
   ========================================================================== */

:root {
    --primary-orange: #ea580c;
    --primary-orange-hover: #c2410c;
    --primary-orange-light: #fff7ed;
    --primary-orange-border: #fed7aa;
    --accent-orange: #f97316;
    --accent-orange-dark: #9a3412;
    --orange-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --sidebar-bg: #ffffff;
    --sidebar-text: #64748b;
    --sidebar-text-active: #ffffff;
    --sidebar-active-bg: #ea580c;
    --sidebar-width: 250px;
    --topbar-height: 60px;
    --slate-navy: #0f172a;
    --slate-text: #334155;
    --muted-text: #64748b;
    --border-color: #e2e8f0;
    --table-border: #f1f5f9;
    --body-bg: #fffbf7;
    --card-bg: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Bootstrap 5 Theme Overrides */
    --bs-primary: #ea580c;
    --bs-primary-rgb: 234, 88, 12;
    --bs-link-color: #ea580c;
    --bs-link-hover-color: #c2410c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    background-color: var(--body-bg) !important;
    color: var(--slate-text) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.sidebar-open {
    overflow: hidden;
}

/* Enforce font family across all elements */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, input, button, select, textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ==========================================================================
   App Shell Layout (Desktop Sidebar + Mobile Drawer)
   ========================================================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Clean White Sidebar from reference */
.app-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: 70px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-navy);
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    color: #0f172a;
}

.brand-title .accent-text {
    color: var(--primary-orange);
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem 0.85rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    padding: 0.4rem 0.75rem 0.35rem;
    margin-top: 0.4rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.85rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-menu .nav-link i {
    font-size: 1rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.sidebar-menu .nav-link:hover {
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.sidebar-menu .nav-link:hover i {
    color: var(--primary-orange);
}

.sidebar-menu .nav-link.active {
    background: var(--orange-gradient);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.sidebar-menu .nav-link.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1rem 0.85rem;
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
}

.telephony-status-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.7rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.75rem;
}

.user-sidebar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.5rem;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}

.user-info-text {
    flex-grow: 1;
    margin-left: 9px;
    overflow: hidden;
}

.user-info-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-role {
    font-size: 0.65rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* App Main */
.app-main {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    transition: margin-left 0.25s ease;
    width: calc(100% - var(--sidebar-width));
}

/* Minimalist Top App Bar from reference */
.app-topbar {
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    max-width: 480px;
    min-width: 0;
}

.topbar-search-box {
    position: relative;
    width: 100%;
}

.topbar-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.topbar-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem 0.85rem 0.45rem 34px;
    font-size: 0.78rem;
    color: #334155;
    transition: all 0.15s ease;
}

.topbar-search-input:focus {
    background: #ffffff;
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.btn-sidebar-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-sidebar-toggle:active {
    background: #f1f5f9;
}

.btn-sidebar-toggle i {
    pointer-events: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.time-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #475569;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-export-excel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #059669;
    font-weight: 600;
    font-size: 0.76rem;
    border-radius: 8px;
    padding: 0.38rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-export-excel:hover {
    background: #f0fdf4;
    border-color: #a7f3d0;
    color: #047857;
}

.btn-add-action {
    background: #ea580c;
    border: 1px solid #ea580c;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.76rem;
    border-radius: 8px;
    padding: 0.38rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-add-action:hover {
    background: #c2410c;
    border-color: #c2410c;
    transform: translateY(-1px);
}

/* ==========================================================================
   Page Headers (Strictly Controlled Sizes for Desktop & Mobile)
   ========================================================================== */

.page-header-box {
    padding: 1.15rem 0 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

h1.page-main-title,
h2.page-main-title,
.page-main-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-sub-title {
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-top: 3px !important;
}

/* ==========================================================================
   Stat Cards from reference (White, Clean, Elevated)
   ========================================================================== */

.stat-card-cmattic {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0.95rem 1.1rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.15s ease !important;
}

.stat-card-cmattic:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.stat-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.stat-label-text {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
}

.stat-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.icon-badge-orange { background: #ffedd5; color: #ea580c; }
.icon-badge-purple { background: #ffedd5; color: #ea580c; }
.icon-badge-blue { background: #fff7ed; color: #ea580c; }
.icon-badge-amber { background: #fef3c7; color: #d97706; }
.icon-badge-red { background: #fee2e2; color: #dc2626; }
.icon-badge-green { background: #dcfce7; color: #16a34a; }

.stat-big-number {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 0.35rem !important;
}

.stat-trend-row {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Filter Pills Bar
   ========================================================================== */

.filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.5rem;
    margin-bottom: 0.85rem;
    scrollbar-width: none;
}

.filter-pills-bar::-webkit-scrollbar {
    display: none;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
    flex-shrink: 0;
}

.filter-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-pill:hover {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    border-color: var(--primary-orange-border);
}

.filter-pill.active {
    background: var(--orange-gradient);
    color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

/* ==========================================================================
   Modern SaaS Data Table Container
   ========================================================================== */

.table-card-container {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-top: 3px solid var(--primary-orange) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.04) !important;
    margin-bottom: 1.5rem !important;
}

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

.table-saas {
    width: 100% !important;
    min-width: 680px;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-saas thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.75rem 1rem !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

.table-saas tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--table-border) !important;
    font-size: 0.8rem !important;
    color: #334155 !important;
    background: #ffffff !important;
}

.table-saas tbody tr:last-child td {
    border-bottom: none !important;
}

.table-saas tbody tr:hover td {
    background: #fafbfc !important;
}

.status-pill-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-submitted {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.status-pending {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.badge-fresh-count {
    color: #16a34a;
    font-weight: 700;
    font-size: 0.82rem;
}

.badge-dispute-count {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.82rem;
}

.badge-total-count {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.85rem;
}

.btn-table-action {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 600;
    font-size: 0.74rem;
    border-radius: 8px;
    padding: 0.32rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-table-action:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

/* ==========================================================================
   Mobile Responsive Media Queries
   ========================================================================== */

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1080 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.show,
.sidebar-toggle-checkbox:checked ~ .app-wrapper .sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 1090 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18) !important;
        background: #ffffff !important;
    }

    .app-sidebar.show,
    .sidebar-toggle-checkbox:checked ~ .app-wrapper .app-sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
        display: flex !important;
    }

    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .page-header-box {
        padding: 0.85rem 0 0.5rem !important;
    }

    h1.page-main-title,
    h2.page-main-title,
    .page-main-title {
        font-size: 1.05rem !important;
    }
}

/* ==========================================================================
   Mobile Responsive Data Cards (Clean Modern Alternative to Clipped Tables)
   ========================================================================== */

.mobile-entry-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-entry-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mobile-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mobile-entry-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.mobile-stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin-bottom: 2px;
}

.mobile-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #64748b;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

@media (max-width: 767.98px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    select.form-control,
    select.form-select {
        font-size: 16px !important;
    }

    .app-topbar {
        padding: 0 0.75rem;
    }

    .time-pill {
        display: none !important;
    }

    .stat-big-number {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   Modern SaaS Login Screen (ai.cmattic.com)
   ========================================================================== */

.saas-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 10%, #fff7ed 0%, #ffedd5 45%, #fffbf7 100%);
    padding: 1.5rem;
}

.saas-login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.saas-login-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
}

.saas-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
}

.saas-brand-title span {
    color: #ea580c;
}

.saas-brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
}

.saas-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.saas-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.saas-auth-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.saas-auth-desc {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

.sso-badge {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saas-form-group {
    margin-bottom: 1.15rem;
}

.saas-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
    display: block;
}

.saas-input-wrapper {
    position: relative;
}

.saas-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.saas-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.85rem 0.6rem 36px;
    font-size: 0.82rem;
    color: #0f172a;
    transition: all 0.15s ease;
}

.saas-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.btn-saas-signin {
    width: 100%;
    background: #ea580c;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-saas-signin:hover {
    background: #c2410c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.quick-fill-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--table-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #64748b;
}

.quick-fill-btn {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.74rem;
}

.quick-fill-btn:hover {
    text-decoration: underline;
    color: #c2410c;
}

/* ==========================================================================
   Cohesive Orange Theme System Overrides
   ========================================================================== */

/* Overriding Bootstrap 5 Primary Components with SaaS Orange Base */
.btn-primary {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--primary-orange-hover) !important;
    border-color: var(--primary-orange-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35) !important;
}

.btn-outline-primary {
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

.text-primary {
    color: var(--primary-orange) !important;
}

.bg-primary {
    background-color: var(--primary-orange) !important;
}

.border-primary {
    border-color: var(--primary-orange) !important;
}

/* Warm Orange Theme Focus States for All Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

.form-check-input:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

/* Orange SaaS Table Highlights */
.table-saas tbody tr:hover td {
    background: #fffbf7 !important;
}

/* Orange Base Modal Header */
.modal-header-orange {
    background: var(--orange-gradient) !important;
    color: #ffffff !important;
}

