/* Base scaling */
html {
    font-size: 14px;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;            /* Pure black background */
    color: #e6e6e6;                     /* Light text */
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===========================================
   STICKY HORIZONTAL SCROLLBAR FOR TABLES
   Scrollbar remains visible at bottom of viewport
   =========================================== */

/* Table container */
.table-responsive {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Style the regular table scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 14px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 7px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #555 0%, #444 100%);
    border-radius: 7px;
    border: 2px solid #1a1a1a;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #666 0%, #555 100%);
}

/* Sticky scrollbar - ALWAYS VISIBLE DESIGN */
.sticky-scrollbar-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 30px !important;
    background: linear-gradient(to top, #000 0%, #111 100%) !important;
    border-top: 3px solid #258cfb !important;
    z-index: 999999 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: none !important;
    box-shadow: 0 -4px 20px rgba(37, 140, 251, 0.3) !important;
}

.sticky-scrollbar-wrapper.active {
    display: block !important;
}

.sticky-scrollbar-content {
    height: 1px !important;
    background: transparent !important;
}

/* HIGHLY VISIBLE scrollbar styling */
.sticky-scrollbar-wrapper::-webkit-scrollbar {
    height: 26px !important;
}
.sticky-scrollbar-wrapper::-webkit-scrollbar-track {
    background: #000 !important;
    border-radius: 0 !important;
}
.sticky-scrollbar-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #5aaeff 0%, #258cfb 50%, #0d6efd 100%) !important;
    border-radius: 13px !important;
    border: 4px solid #000 !important;
    min-width: 80px !important;
}
.sticky-scrollbar-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #85c1e9 0%, #5aaeff 50%, #3498db 100%) !important;
    box-shadow: 0 0 10px rgba(37, 140, 251, 0.5) !important;
}
.sticky-scrollbar-wrapper::-webkit-scrollbar-thumb:active {
    background: linear-gradient(to bottom, #a8d5ff 0%, #85c1e9 50%, #5aaeff 100%) !important;
}

/* Firefox scrollbar */
.sticky-scrollbar-wrapper {
    scrollbar-width: auto !important;
    scrollbar-color: #258cfb #000 !important;
}

/* Sticky footer: use flex layout; no extra bottom padding */
body { padding-bottom: 0 !important; }
/* Headings use blue accent */
h1, h2, h3, h4, h5, h6 {
    color: #258cfb;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Links */
a {
    color: #258cfb;
    text-decoration: none;
}
a:hover, a:focus {
    color: #5aaeff;
    text-decoration: underline;
}

/* Layout helpers */
.container, .container-fluid {
    padding-top: 1rem;
}

/* Cards / panels */
.card, .jumbotron, .bordered-block {
    background-color: #111;
    border: 1px solid #2a2a2a;
    color: #e6e6e6;
    border-radius: 4px;
}
.card-header, .card-footer {
    background-color: #141414;
    border-bottom: 1px solid #2a2a2a;
    color: #d0d0d0;
}

/* Forms */
.form-control, .form-select {
    background-color: #121212;
    border: 1px solid #2f2f2f;
    color: #f2f2f2;
}
.form-control:focus, .form-select:focus {
    background-color: #181818;
    border-color: #258cfb;
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(37,140,251,0.35);
}

/* Ensure select and disabled select controls remain high-contrast in dark theme */
.form-select,
.form-select:disabled,
select[disabled],
.form-control:disabled {
    background-color: #121212 !important;
    border-color: #2f2f2f !important;
    color: #f2f2f2 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #f2f2f2 !important; /* Safari */
}

/* Options inside selects (some browsers honor these) */
.form-select option,
select option {
    background-color: #121212;
    color: #f2f2f2;
}

/* If the browser adds a readonly/disabled appearance, force a clear contrast */
.form-select[disabled]::-ms-value,
.form-select[disabled]::-moz-focus-inner {
    color: #f2f2f2 !important;
}

/* Labels */
label {
    color: #dcdcdc;
    font-weight: 500;
}

/* Checkboxes & radios */
.form-check-input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;

    width: 1.1rem;
    height: 1.1rem;

    background-color: #ffffff !important;    /* white box */
    border: 1px solid #cfd3da !important;
    accent-color: #258cfb;                   /* blue tick / radio fill */
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(255,255,255,0.25),
                0 0 0 0.3rem rgba(37,140,251,0.40);
    border-color: #258cfb !important;
}
.form-check-label { color: #e6e6e6; }

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 4px;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}

/* Primary (often general action) */
.btn-primary {
    background-color: #258cfb;
    border-color: #258cfb;
    color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

/* Success (Save) */
.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
}
.btn-success:hover, .btn-success:focus {
    background-color: #157347;
    border-color: #157347;
}

/* Secondary (Edit) */
.btn-secondary {
    background-color: #444;
    border-color: #555;
    color: #e6e6e6;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #555;
    border-color: #666;
    color: #ffffff;
}

/* Danger (Delete) */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}
.btn-danger:hover, .btn-danger:focus {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

/* Outline variants keep dark background */
.btn-outline-primary {
    color: #258cfb;
    border-color: #258cfb;
    background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #258cfb;
    color: #fff;
}

/* Focus ring */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.15rem rgba(255,255,255,0.25), 0 0 0 0.3rem rgba(37,140,251,0.4);
    outline: none;
}

/* Tables */
.table {
    color: #e6e6e6;
    background-color: #111;
    border-color: #2a2a2a;
}
.table > :not(caption) > * > * {
    background-color: #111;
    border-bottom: 1px solid #2a2a2a;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #181818;
}
.table-hover tbody tr:hover {
    background-color: #202020;
}

/* Ensure table cell text remains high-contrast in all rows (override bootstrap or other rules) */
.table tbody td,
.table tbody th {
    color: #e6e6e6 !important;
}

/* Keep header text slightly brighter */
.table thead th {
    color: #ffffff;
}

/* Utility text accents */
.text-accent {
    color: #ffb86c; /* Light orange option */
}
.text-faint {
    color: #9ca3af;
}

/* Small separators */
.hr-dark {
    border: 0;
    border-top: 1px solid #2a2a2a;
    margin: 1.25rem 0;
}

/* Footer (if any) */
footer {
    background-color: #111;
    color: #9ca3af;
    border-top: 1px solid #2a2a2a;
    padding: .5rem 0;          /* was 1rem */
    position: static !important;
}

/* Scrollbar (optional for dark comfort - works in WebKit browsers) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444c56;
}

/* Ensure secondary buttons have high-contrast text and icons */
.btn-secondary,
.btn-secondary * {
    color: #e6e6e6 !important;
    opacity: 1 !important;
}
.btn-secondary .bi {
    color: #e6e6e6 !important;
    opacity: 1 !important;
}

/* ===========================================
   NOTIFICATION SYSTEM STYLES
   =========================================== */

/* Notification bell button */
.notification-dropdown .btn-link {
    color: #e6e6e6 !important;
    text-decoration: none;
}

.notification-dropdown .btn-link:hover {
    color: #258cfb !important;
}

/* Notification badge */
.notification-badge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    padding: 2px 5px;
}

/* Notification dropdown menu */
.notification-menu {
    width: 360px;
    max-width: 90vw;
    padding: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.notification-header {
    background-color: #222;
}

.notification-header h6 {
    color: #e6e6e6;
}

/* Notification list items */
.notification-item {
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-item:hover {
    background-color: #252525 !important;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #1e2a3a;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-title {
    color: #e6e6e6;
    font-size: 0.9rem;
}

.notification-message {
    color: #aaa;
    font-size: 0.8rem;
}

.notification-time {
    color: #888;
    font-size: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
}

/* Unread dot indicator */
.unread-dot {
    width: 8px;
    height: 8px;
    background-color: #258cfb;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Footer link */
.notification-footer {
    background-color: #222;
}

.notification-footer a {
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Toast notifications styling */
.toast {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.toast-header {
    border-bottom: 1px solid #333;
}

/* Notification list page items */
.notification-list-item {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.notification-list-item:hover {
    background-color: #1a1a1a !important;
    transform: translateX(2px);
}

/* Min width helper for text truncation */
.min-width-0 {
    min-width: 0;
}

/* ===========================================
   IMPROVED TEXT VISIBILITY
   Ensure text is clearly readable throughout the app
   =========================================== */

/* Override Bootstrap opacity utilities for better visibility in dark theme */
.opacity-50 {
    opacity: 0.7 !important; /* Increase from 0.5 to 0.7 for better readability */
}

.opacity-75 {
    opacity: 0.85 !important; /* Increase from 0.75 to 0.85 */
}

/* Ensure text-muted has sufficient contrast in dark theme */
.text-muted {
    color: #b0b0b0 !important; /* Lighter gray for better visibility */
}

/* Card text should be clearly visible */
.card-text, .card-body p {
    color: #d0d0d0;
}

/* Improve badge text contrast */
.badge {
    font-weight: 500;
}

.badge.bg-light {
    color: #212529 !important;
}

/* Ensure small text remains readable */
small, .small, .form-text {
    color: #a0a0a0;
}

/* Better contrast for table headers with colored backgrounds */
.table-light, .bg-light {
    background-color: #2a2a2a !important;
    color: #e6e6e6 !important;
}

.table-light th, .table-light td {
    color: #e6e6e6 !important;
}

/* Improve icon visibility */
.bi {
    color: inherit;
}

/* Warning cards text visibility */
.bg-warning, .btn-warning {
    color: #212529 !important;
}

.bg-warning .small, .bg-warning small {
    color: #212529 !important;
    opacity: 0.9;
}

/* Info cards with white text */
.bg-info {
    color: #ffffff !important;
}

.bg-info .small, .bg-info small, .bg-info .opacity-75 {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* Primary and Success cards */
.bg-primary .small, .bg-primary small, .bg-primary .opacity-75,
.bg-success .small, .bg-success small, .bg-success .opacity-75 {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* Entry count badge styling */
.entry-count-badge {
    color: white !important;
}

.entry-count-badge .opacity-75 {
    opacity: 0.9 !important;
}

/* Alert improvements */
.alert {
    color: inherit;
}

.alert-info {
    background-color: #1a3a5c;
    border-color: #258cfb;
    color: #c5dcf5;
}

.alert-success {
    background-color: #1a3a2a;
    border-color: #198754;
    color: #b8e6c8;
}

.alert-warning {
    background-color: #3a3a1a;
    border-color: #ffc107;
    color: #f5e6a5;
}

.alert-danger {
    background-color: #3a1a1a;
    border-color: #dc3545;
    color: #f5b8b8;
}

/* Light background cards need dark text override for Academic Setup page */
.academic-setup-container .setup-card .card-body p {
    color: #495057 !important;
}

.academic-setup-container h2, .academic-setup-container .text-muted {
    color: #495057 !important;
}

.academic-setup-container h2 i.text-primary {
    color: #0d6efd !important;
}

/* ===========================================
   GLOBAL FIXES FOR FAINT/INVISIBLE TEXT
   Ensure all text is clearly visible in dark theme
   =========================================== */

/* Fix for light background panels/sections that contain text */
.bg-light, .bg-white, .bg-body {
    color: #212529 !important;
}

.bg-light *, .bg-white *, .bg-body * {
    color: inherit;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6 {
    color: #212529 !important;
}

/* Fix panels with light backgrounds (like teacher lists, etc.) */
[style*="background: #f8f9fa"],
[style*="background:#f8f9fa"],
[style*="background: white"],
[style*="background: #fff"],
[style*="background:#fff"] {
    color: #212529 !important;
}

/* Ensure inline styled light backgrounds have dark text */
.card-body.bg-light, .card-body[style*="background: #f"],
.panel-body, .well, .jumbotron {
    color: #212529 !important;
}

/* Fix teacher names and similar list items on light backgrounds */
.teacher-name, .staff-name, .student-name, .learner-name {
    color: #212529 !important;
    font-weight: 600 !important;
}

/* Ensure form placeholders are visible */
::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Fix gray text that's too light */
.text-secondary {
    color: #b0b0b0 !important;
}

/* Fix Bootstrap's default light colors for dark theme */
.text-body {
    color: #e6e6e6 !important;
}

/* Ensure nav dropdowns in light modals have dark text */
.dropdown-menu-light, .dropdown-menu.bg-white, .dropdown-menu.bg-light {
    color: #212529 !important;
}

.dropdown-menu-light .dropdown-item, 
.dropdown-menu.bg-white .dropdown-item,
.dropdown-menu.bg-light .dropdown-item {
    color: #212529 !important;
}

/* Form-control-plaintext needs visible text */
.form-control-plaintext {
    color: #e6e6e6;
}

/* Fix for cards with white/light interiors */
.card.bg-white .card-body,
.card.bg-light .card-body {
    color: #212529 !important;
}

/* List group items on light backgrounds */
.list-group-item {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #e6e6e6;
}

.list-group-item.bg-light, .list-group-item.bg-white {
    color: #212529 !important;
}

/* Portal specific fixes for light-themed sections */
.portal-section, .dashboard-card, .stats-card {
    color: inherit;
}

.portal-section.bg-light, .dashboard-card.bg-light, .stats-card.bg-light {
    color: #212529 !important;
}

/* Ensure icons in light sections are visible */
.bg-light .bi, .bg-white .bi, .bg-light i, .bg-white i {
    color: inherit !important;
}

/* Fix accordion items */
.accordion-item {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
}

.accordion-button {
    background-color: #1a1a1a;
    color: #e6e6e6;
}

.accordion-button:not(.collapsed) {
    background-color: #252525;
    color: #258cfb;
}

.accordion-body {
    background-color: #1a1a1a;
    color: #e6e6e6;
}

/* Progress bars text */
.progress {
    background-color: #2a2a2a;
}

.progress-bar {
    color: #ffffff;
}

/* Modal improvements for dark theme */
.modal-content {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e6e6e6;
}

.modal-header {
    border-bottom-color: #333;
}

.modal-footer {
    border-top-color: #333;
}

.modal-title {
    color: #e6e6e6;
}

/* Close button in modals */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Fix breadcrumb */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item a {
    color: #258cfb;
}

.breadcrumb-item.active {
    color: #b0b0b0;
}

/* Nav tabs for dark theme */
.nav-tabs {
    border-bottom-color: #2a2a2a;
}

.nav-tabs .nav-link {
    color: #b0b0b0;
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #333 #333 #2a2a2a;
    color: #e6e6e6;
}

.nav-tabs .nav-link.active {
    background-color: #1a1a1a;
    border-color: #333 #333 #1a1a1a;
    color: #258cfb;
}

/* Nav pills */
.nav-pills .nav-link {
    color: #b0b0b0;
}

.nav-pills .nav-link.active {
    background-color: #258cfb;
    color: #ffffff;
}

/* Pagination */
.page-link {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e6e6e6;
}

.page-link:hover {
    background-color: #252525;
    border-color: #333;
    color: #258cfb;
}

.page-item.active .page-link {
    background-color: #258cfb;
    border-color: #258cfb;
    color: #ffffff;
}

.page-item.disabled .page-link {
    background-color: #111;
    border-color: #2a2a2a;
    color: #6c757d;
}

/* ===========================================
   PRINT STYLES - FULL A4 PAGE SUPPORT
   Ensures print preview displays as full A4 pages
   =========================================== */

@media print {
    /* Reset page size and margins for A4 */
    @page {
        size: A4;
        margin: 15mm 10mm;
    }

    /* Reset body for print */
    html, body {
        width: 210mm !important;
        min-height: 297mm !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide navigation, sidebar, and non-printable elements */
    .sidebar,
    .top-header,
    .app-footer,
    .main-wrapper > header,
    .main-wrapper > footer,
    nav,
    .navbar,
    .nav-link,
    .btn-group,
    .d-print-none,
    .mobile-toggle,
    .notification-dropdown,
    .user-dropdown,
    .sticky-scrollbar-wrapper,
    .alert-dismissible .btn-close,
    .breadcrumb {
        display: none !important;
    }

    /* Reset main content area for full width */
    .main-wrapper,
    .main-content,
    .container,
    .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }

    /* Remove sidebar margin */
    .main-wrapper {
        margin-left: 0 !important;
    }

    /* Cards and content boxes for print */
    .card {
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .card-header {
        background: #f8f9fa !important;
        border-bottom: 1px solid #ddd !important;
        color: #000000 !important;
    }

    .card-body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* Text colors for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
    }

    p, span, div, td, th, label, li {
        color: #000000 !important;
    }

    .text-muted {
        color: #666666 !important;
    }

    .text-primary {
        color: #0d6efd !important;
    }

    .text-success {
        color: #198754 !important;
    }

    .text-danger {
        color: #dc3545 !important;
    }

    .text-warning {
        color: #ffc107 !important;
    }

    .text-info {
        color: #0dcaf0 !important;
    }

    /* Table styles for print */
    .table {
        background: #ffffff !important;
        color: #000000 !important;
        border-collapse: collapse !important;
    }

    .table th,
    .table td {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #ddd !important;
        padding: 8px !important;
    }

    .table thead th {
        background: #f8f9fa !important;
        font-weight: 600 !important;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #f9f9f9 !important;
    }

    .table-hover tbody tr:hover {
        background-color: #f5f5f5 !important;
    }

    /* Badges for print */
    .badge {
        border: 1px solid currentColor !important;
        background: transparent !important;
        color: inherit !important;
    }

    .badge.bg-primary { color: #0d6efd !important; }
    .badge.bg-success { color: #198754 !important; }
    .badge.bg-danger { color: #dc3545 !important; }
    .badge.bg-warning { color: #856404 !important; }
    .badge.bg-info { color: #0c5460 !important; }
    .badge.bg-secondary { color: #6c757d !important; }

    /* Alert boxes for print */
    .alert {
        border: 1px solid #ddd !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* Form controls for print */
    .form-control,
    .form-select {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #ddd !important;
    }

    /* Links for print */
    a {
        color: #0d6efd !important;
        text-decoration: none !important;
    }

    a[href]:after {
        content: none !important;
    }

    /* Background colors for print */
    .bg-light {
        background-color: #f8f9fa !important;
    }

    .bg-primary,
    .bg-success,
    .bg-info,
    .bg-warning,
    .bg-danger {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Page breaks */
    .page-break-before {
        page-break-before: always !important;
    }

    .page-break-after {
        page-break-after: always !important;
    }

    .no-page-break {
        page-break-inside: avoid !important;
    }

    /* Row and column layouts for print */
    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .col, [class*="col-"] {
        flex: 0 0 auto !important;
    }

    /* Ensure images print correctly */
    img {
        max-width: 100% !important;
        page-break-inside: avoid !important;
    }

    /* Print header/footer for school reports */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
    }

    .print-footer {
        display: block !important;
        text-align: center;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
        font-size: 10pt;
    }

    /* Hide scrollbars in print */
    ::-webkit-scrollbar {
        display: none !important;
    }

    * {
        scrollbar-width: none !important;
    }
}

/* Print-specific classes for use in views */
.print-only {
    display: none !important;
}

@media print {
    .print-only {
        display: block !important;
    }

    .screen-only {
        display: none !important;
    }
}

/* A4 print preview container for opening in new tab */
.print-preview-container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 15mm 10mm;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media screen {
    .print-preview-container {
        margin: 20px auto;
    }
}

```




