/* Typography Scale - Moved to the top for global reference */
:root {
    --font-size-xs: 0.6875rem;   /* 11px */
    --font-size-sm: 0.8125rem;   /* 13px */
    --font-size-base: 0.875rem;  /* 14px */
    --font-size-md: 0.9375rem;   /* 15px */
    --font-size-lg: 1rem;        /* 16px */
    --font-size-xl: 1.125rem;    /* 18px */
}

/* Base Typography */
h1, .h1 { 
    font-size: 1.75rem; 
    font-weight: 600;
    margin-bottom: 1rem;
}

h2, .h2 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h3, .h3 { 
    font-size: 1.25rem;
    font-weight: 600;
}

h4, .h4 { 
    font-size: 1.125rem;
    font-weight: 600;
}

h5, .h5 { 
    font-size: 1rem;
    font-weight: 600;
}

/* Layout & Structure */
body {
    padding-top: 3.25rem; /* Height of the fixed navbar */
    overflow-x: hidden;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Header brand title size */
.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.content-wrapper {
    min-height: calc(100vh - 3.25rem);
}

.main-content {
    padding-top: 0.5rem;
    min-height: calc(100vh - 3.25rem);
    background-color: #e2eaea;
}

/* Container Padding Adjustment */
.container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
    padding-top: 0.5rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Row and Column Fixes */
.row {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

.col-md-12, .col-lg-12 {
    padding-right: 0;
    padding-left: 0;
}

/* Navigation & Header */
.minw-btn {
    min-width: 130px;
    font-size: 0.95rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    justify-content: center !important;
    text-align: center;
}

/* Hero section button color variants */
.hero-btn-yellow {
    background-color: #FFB300;
    color: #1F2937;
    border: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.hero-btn-yellow:hover,
.hero-btn-yellow:focus {
    background-color: #FFA000;
    color: #1F2937;
}

.hero-btn-green {
    background-color: #22C55E;
    color: #0c0101;
    border: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.hero-btn-green:hover,
.hero-btn-green:focus {
    background-color: #16A34A;
    color: #0c0101;
}

.hero-btn-blue {
    background-color: #2563EB;
    color: #0c0101;
    border: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.hero-btn-blue:hover,
.hero-btn-blue:focus {
    background-color: #1D4ED8;
    color: #0c0101;
}

.hero-btn-wide {
    width: 320px;
    max-width: 100%;
}

/* Navigation Buttons */
.navbar .btn {
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

.navbar .btn i {
    font-size: var(--font-size-sm);
}

/* Button styling - consolidated */
.btn-soft {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-soft:hover {
    color: var(--bs-light);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-soft.active {
    color: var(--bs-light) !important;
    opacity: 1;
    background-color: rgba(13, 110, 253, 0.25);
    border-color: rgba(13, 110, 253, 0.3);
}

/* Ensure header buttons have consistent width */
header .btn {
    min-width: 120px; /* Adjust as needed for your longest label */
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

/* Document viewer modal close button */
.btn-soft {
    color: #a8b8d8;
    border-color: #a8b8d8;
}

.btn-soft:hover {
    color: #1a1e26;
    background-color: #a8b8d8;
    border-color: #a8b8d8;
}

/* Action buttons styling */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    padding: 0.4rem 0.75rem;
    font-size: var(--font-size-sm);
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.toolbar-export-group {
    display: inline-flex;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toolbar-export-group .btn {
    border-radius: 0;
    margin: 0;
}

.toolbar-export-group .btn:hover,
.toolbar-export-group .btn:focus {
    z-index: 1;
}

.toolbar-export-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.toolbar-export-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Button Groups - consolidated */
.btn-group {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
    overflow: hidden;
}

.btn-group .btn {
    border-width: 1px;
    margin-left: -1px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    border-right: none;
}

.btn-group .btn:hover {
    z-index: 3;
}

.btn-group .btn:focus {
    z-index: 4;
}

/* Card button specific styling */
.card .btn-group {
    margin-bottom: 1rem;
}

.card .btn-group:last-child {
    margin-bottom: 0;
}

/* Project toggle buttons */
.toggle-project-status .fa-toggle-on {
    color: #6fd649 !important;
    text-shadow: 0 0 3px rgba(111, 214, 73, 0.3);
}

.toggle-project-status:hover .fa-toggle-on {
    color: #7be952 !important;
    text-shadow: 0 0 4px rgba(123, 233, 82, 0.35);
}

/* Utility classes */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.hover-bg-opacity-75:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* Footer - consolidated */
.app-footer {
    padding: 0.5rem 0;
    background-color: var(--bs-dark);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: var(--font-size-sm);
    z-index: 1030;
}

.app-footer-authenticated {
    width: 100%;
    margin-left: 0;
    border-left: none;
}

.app-footer-content {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* Card Styles - consolidated */
.card {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 100%;
}

.card .card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    font-weight: 500;
}

.card .card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-gray-800);
}

.card .card-body {
    padding: 1rem;
    font-size: var(--font-size-base);
}

/* Nested cards */
.card .card {
    box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.1);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease-in-out;
}

/* Summary cards */
.summary-card.card {
    height: 100%;
    max-height: 7.5rem;
    overflow: hidden;
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 0.125rem 0.375rem rgba(13, 110, 253, 0.1), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    font-size: var(--font-size-xs);
}

.summary-card.card.h-100 {
    max-height: 18.125rem;
    overflow-y: auto;
}

.summary-card.card.h-100 .card-body {
    padding: 0.625rem;
}

.card.summary-card {
    height: 100%;
}

.card.summary-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card.summary-card .card-title {
    margin-bottom: 1rem;
}

.card.summary-card .flex-grow-1 {
    min-height: 0;
}

/* Table Card Specific */
.table-card {
    overflow: hidden;
}

.table-card .card-body {
    padding: 1.5rem;
}

.table-card .mb-3,
.table-card .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Card form controls */
.card .form-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.card .form-control,
.card .form-select {
    font-size: var(--font-size-xs);
    padding: 0.4rem 0.75rem;
}

/* Card badges and text */
.card .badge,
.card .status-badge {
    font-size: var(--font-size-xs);
    padding: 0.2rem 0.5rem;
}

.card .small,
.card small {
    font-size: var(--font-size-xs);
}

/* Card buttons */
.card .btn {
    font-size: var(--font-size-xs);
    padding: 0.35rem 0.75rem;
}

.card .btn-sm {
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
}

/* Summary card tables */
.summary-card .table {
    margin-bottom: 0;
    font-size: var(--font-size-xs);
    background: transparent;
}

.summary-card .table th {
    border-bottom-width: 1px;
    font-weight: 600;
    color: var(--bs-gray-600);
}

.summary-card .table td,
.summary-card .table th {
    padding: 0.25rem 0.4rem;
    line-height: 1.1;
    border-color: rgba(0,0,0,0.05);
}

.summary-card .table tr:last-child td {
    border-bottom: none;
}

/* Auth Cards - consolidated */
.auth-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.15), 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.auth-card .card-body {
    padding: 1rem !important;
}

/* Table styles */
.table-standard {
    margin: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Make table rows more compact */
.table-standard .table > tbody > tr,
.table > tbody > tr {
    line-height: 0.8;
}

.table-standard .table > tbody > tr > td,
.table > tbody > tr > td {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    height: 1.4rem;
}

/* Specifically target the table rows in the body of tables with both table-standard and table classes */
.table-standard .table > tbody > tr {
    line-height: 1;
}

.table-standard .table > tbody > tr > td {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* Style headers for standard tables while maintaining table structure */
.table-standard .table thead th {
    background-color: #599afc;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 0.5rem;
    color: #313437;
    text-transform: none;
    vertical-align: middle;
}

/* Card specific table styles */
.card .table {
    font-size: var(--font-size-xs);
    margin-bottom: 0;
    border: 1px solid #e3e8ee !important;
    border-radius: 8px;
    background-clip: padding-box;
    border-collapse: separate;
    border-spacing: 0;
}

.card .table th {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bs-gray-700);
    padding: 0.5rem 0.75rem;
    background-color: var(--bs-gray-100);
    white-space: nowrap;
}

.card .table td {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.75rem;
    line-height: 1.3;
}

/* Sortable tables */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable i {
    margin-left: 5px;
    color: #999;
}

.sortable:hover i {
    color: #333;
}

.sortable.active {
    background-color: rgba(0, 123, 255, 0.15);
    font-weight: 600;
}

.sortable.active i {
    color: #0052cc;
}

/* Status badges in tables */
.table .status-badge {
    padding: 0.15rem 0.5rem;
    font-size: var(--font-size-xs);
    line-height: 1.2;
    background: linear-gradient(90deg, rgba(var(--bs-success-rgb), 0.1) 0%, rgba(var(--bs-success-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--bs-success-rgb), 0.2);
}

.table .status-badge.inactive {
    background: linear-gradient(90deg, rgba(var(--bs-danger-rgb), 0.1) 0%, rgba(var(--bs-danger-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.2);
}

/* Status Indicators - consolidated */
.status-badge {
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: 1rem;
    background-color: var(--bs-gray-100);
    color: var(--bs-gray-700);
}

/* Uniform pill sizing (used for stacked status badges) */
.status-pill {
    width: 7.5rem;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.status-pill--edited {
    background: rgba(168, 85, 247, 0.12); /* purple */
    color: #6b21a8;
    border: 1px solid rgba(107, 33, 168, 0.25);
}

.status-pill .status-pill__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.status-badge.active {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

.status-badge.inactive {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
}

/* Chart Containers - consolidated */
.chart-container {
    position: relative;
    width: 100%;
    height: calc(100% - 40px) !important; /* Subtract space for title */
    min-height: 200px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Dashboard specific chart styles */
.dashboard-chart-card {
    max-height: 400px;
}

.dashboard-chart-card .card-body {
    height: 400px;
}

.summary-card.card.chart-container {
    max-height: none;
    height: 100%;
}

.summary-card.card.chart-container .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.summary-card.card.chart-container .chart-wrapper {
    flex: 1;
    min-height: 0;
    position: relative;
    height: 100%;
}

.summary-card.card.chart-container .chart-wrapper .chart-container {
    height: 100% !important;
    min-height: 200px;
}

.summary-card.card.chart-container canvas {
    max-height: 100%;
}

/* --- Spend Chart Container for Dashboard --- */
.spend-chart-container {
    min-height: 300px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}
.spend-chart-container canvas {
    width: 100% !important;
display: block;
}

/* Forms & Modals - consolidated */
.form-label {
    font-weight: 500;
    color: var(--bs-gray-700);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.form-control, .form-select {
    border-color: var(--bs-gray-200);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-messages {
    margin-top: 10px;
}

/* Popup forms */
.popup-form-overlay {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-form {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popup-form .close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-form .close:hover,
.popup-form .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Styles */
#documentViewerModal .modal-dialog {
    height: 85vh;
    margin: 1.5rem auto;
}

#documentViewerModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#documentViewerModal .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

#documentViewerModal #documentViewer {
    height: 100%;
    width: 100%;
    border: none;
}

/* Page Section Headers */
.section-header {
    margin-bottom: 1rem;
    padding: 0;
}

.section-header h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--bs-gray-800);
    margin: 0;
    line-height: 1.2;
}

/* Feature Lists - consolidated */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    margin-bottom: 0 !important;
}

.feature-item i {
    flex-shrink: 0;
}

/* Sticky header styles */
.sticky-top {
    background-color: var(--bs-dark);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.1);
    z-index: 1020;
}

/* How It Works Section Custom Styles */
.how-it-works-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
}
.how-it-works-step {
    min-width: 220px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}
.how-it-works-img {
    height: 96px;
    width: 96px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.how-it-works-img-bg {
    background: #2563eb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}

/* Table row height standardization */
.table-standard .table tbody tr,
.table-dashboard table tbody tr,
.table tbody tr {
    line-height: 1.5;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.table-standard .table tbody tr,
.table tbody tr {
    line-height: 1;
    height: 24px;
}

.table-standard .table tbody tr td,
.table tbody tr td {
    padding: 2px 8px;
    height: 24px;
    vertical-align: middle;
}

/* Blue color palette and utility classes */
.bg-blue-50 { background-color: #f4f8fd !important; }
.bg-blue-600 { background-color: #2563eb !important; }
.text-blue-900 { color: #1e293b !important; }
.text-blue-800 { color: #334155 !important; }

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #f4f8fd 60%, #fff 100%);
    position: relative;
    z-index: 1;
}
.hero-section .display-4 {
    font-weight: 700;
    letter-spacing: -1px;
}
.hero-section .lead {
    font-size: 1.25rem;
    color: #334155;
}
.hero-preview {
    max-width: 900px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), 0 1.5px 6px rgba(30,41,59,0.08);
    background: #fff;
    padding: 1.5rem;
}
.hero-preview-img {
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(30,41,59,0.10);
    width: 100%;
    max-width: 100%;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.01em;
    z-index: 10;
}
.top-announcement-bar a {
    color: #fff;
    text-decoration: underline;
}

/* How It Works Section */
.how-it-works-section {
    background: #fff;
}
.how-it-works-img {
    height: 96px;
    width: 96px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits-section {
    background: #f4f8fd;
}
.benefits-section .card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.benefits-section .card-title {
    color: #1e293b;
    font-weight: 600;
}

/* CTA Section */
.bg-primary {
    background-color: #2563eb !important;
}
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #2563eb;
    color: #fff;
}

.text-underline { text-decoration: underline; }

/* Feature Gallery Section */
.features-gallery-section .feature-image-card {
    max-width: 100%;
    background: #f4f8fd;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(37,99,235,0.08);
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
}
.features-gallery-section .feature-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(30,41,59,0.10);
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .hero-btn-wide {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .features-gallery-section .col-md-10,
    .features-gallery-section .col-lg-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .features-gallery-section .feature-image-card {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 767.98px) {
    .features-gallery-section .feature-image-card {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
}

/* Accent bar for feature cards */
.feature-image-card.accent-bar {
    position: relative;
    overflow: hidden;
}
.feature-image-card.accent-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: #2563eb;
    border-radius: 6px 0 0 6px;
    z-index: 2;
}

/* Increase card shadow and spacing */
.feature-image-card {
    box-shadow: 0 8px 32px rgba(37,99,235,0.12), 0 1.5px 6px rgba(30,41,59,0.10);
    margin-bottom: 3rem !important;
}

/* Group wrapper for document and its line items */
.document-group {
    background: #f8fafc;
    border: 2px solid #e3e8ee;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
}
/* Main document row background - more distinct */
.documents-table .document-row {
    background: rgb(73, 211, 204);
    transition: background 0.2s;
}
.documents-table .document-row:hover {
    background: rgb(81, 161, 236);
}
.line-items-row .line-items-header th {
    background-color: #f1f3f7 !important;
    color: #3a3f51;
    border-bottom: 2px solid #e3e8ee;
}

@media (max-width: 767.98px) {
    .how-it-works-row {
        flex-wrap: wrap;
    }
    .how-it-works-step {
        min-width: 160px;
        margin-bottom: 1.5rem;
    }
    .how-it-works-img {
        height: 72px;
        width: 72px;
    }
    .how-it-works-img-bg {
        width: 112px;
        height: 112px;
    }
    .how-it-works-img {
        width: 64px;
        height: 64px;
    }
}

/* Consolidated Media Queries */
@media (max-width: 768px) {
    .spend-chart-container {
        height: 250px;
        min-height: 180px;
        max-height: 300px;
    }
}

@media (min-width: 768px) {
    .section-header h1 {
        font-size: calc(var(--font-size-xl) * 1.2); /* 20% larger on desktop */
    }
}

@media (max-width: 768px) {
    /* Typography */
    :root {
        --font-size-base: 0.875rem;
    }
    
    h1, .h1 { 
        font-size: 1.5rem; 
    }
    
    h2, .h2 { 
        font-size: 1.25rem;
    }
    
    h3, .h3 { 
        font-size: 1.125rem;
    }

    /* Documents Requiring Review Table - mobile improvements */
    .documents-table,
    .documents-table table {
        min-width: 900px;
        width: max-content;
    }
    .documents-table {
        overflow-x: auto;
        display: block;
    }
    .documents-table th,
    .documents-table td {
        min-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* For narrow columns like checkboxes, icons, dropdowns */
    .documents-table th.col-narrow,
    .documents-table td.col-narrow {
        min-width: 24px;
        width: 32px;
        max-width: 40px;
        text-align: center;
        padding-left: 0.1rem;
        padding-right: 0.1rem;
    }
    
    /* Mobile footer adjustments */
    .app-footer-authenticated {
        width: 100%;
        margin-left: 0;
    }

    .main-content {
        padding-bottom: 3rem; /* Height of the footer plus some extra space */
    }
    
    .app-footer {
        position: fixed;
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
    }

    .app-footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: var(--font-size-xs);
        gap: 0.5rem;
        padding: 0 0.5rem;
        min-height: 2.2rem;
    }
    .app-footer-content > * {
        margin: 0 0.25rem;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .app-footer-content span,
    .app-footer-content a {
        margin-bottom: 0;
        margin-right: 0;
        padding: 0;
    }

    /* Other mobile adjustments */
    .feature-item {
        white-space: normal;
        word-break: break-word;
    }

    .container-fluid {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .card {
        margin-right: 0;
        margin-left: 0;
    }
    
    .card .card-title {
        font-size: var(--font-size-md);
    }
    
    .card .card-header {
        font-size: var(--font-size-base);
    }

    /* Mobile-friendly button groups */
    .btn-group.mobile-stack {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-group.mobile-stack .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
        border-radius: 0.375rem !important;
    }
    
    .btn-group.mobile-stack .btn:last-child {
        margin-bottom: 0;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-header {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section .display-4 { font-size: 2.2rem; }
    .hero-preview { padding: 0.5rem; }
    .how-it-works-img { height: 72px; width: 72px; }
}
@media (max-width: 767.98px) {
    .hero-section { padding-top: 2rem; padding-bottom: 2rem; }
    .hero-preview { padding: 0.25rem; }
    .benefits-section .card { margin-bottom: 1.5rem; }
}