/* 
   የእድር ማኔጅመንት ሲስተም - Custom CSS
   Modern, responsive, clean design with Ethiopian typography
*/
/* Local Offline Fonts (Noto Sans Ethiopic & Inter) */
@import url('fonts.css');

:root {
    --primary-color: #1e3a8a;       /* Deep Navy */
    --primary-hover: #172554;
    --primary-light: #eff6ff;
    --secondary-color: #0d9488;     /* Teal */
    --accent-color: #f59e0b;        /* Amber */
    --success-color: #10b981;       /* Emerald */
    --danger-color: #ef4444;        /* Crimson */
    --warning-color: #f59e0b;
    --dark-color: #0f172a;          /* Slate 900 */
    --light-bg: #f8fafc;            /* Slate 50 */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --header-height: 68px;
    --font-stack: 'Noto Sans Ethiopic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-stack);
    background-color: var(--light-bg);
    color: #334155;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.sidebar-logo img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.sidebar-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    color: #f8fafc;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-item-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0.75rem 0.75rem 0.25rem;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link:hover i {
    color: #38bdf8;
}

.sidebar-link.active {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

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

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.4);
}

/* Main Content Wrapper */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* Header Styles */
.app-header {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.header-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid #dbeafe;
}

/* Page Content */
.page-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 4px;
}

/* Metric Cards */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.stat-icon.primary { background: #dbeafe; color: #1d4ed8; }
.stat-icon.success { background: #d1fae5; color: #047857; }
.stat-icon.warning { background: #fef3c7; color: #b45309; }
.stat-icon.info { background: #e0f2fe; color: #0369a1; }
.stat-icon.danger { background: #fee2e2; color: #b91c1c; }

.stat-info {
    flex-grow: 1;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

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

/* Tables & Cards */
.card-custom {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-custom-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.card-custom-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.85rem 1rem;
}

.table-custom tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge-active { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; font-weight: 600; }
.badge-inactive { background-color: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; font-weight: 600; }
.badge-suspended { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; font-weight: 600; }

/* Dynamic Form Relative List */
.relative-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.relative-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.dynamic-row input {
    flex-grow: 1;
}

.btn-remove-row {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-row:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Footer */
.app-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

/* Backdrop for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

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

    .sidebar-backdrop.show {
        display: block;
    }

    .header-date-badge {
        display: none;
    }

    .page-content {
        padding: 1rem;
    }
}

/* ===================================================
   Quick, Snappy & Touch-Optimized Mobile View for Sheets
   =================================================== */
@media (max-width: 767.98px) {
    /* Compact Page Content */
    .page-content {
        padding: 0.5rem !important;
    }

    .page-header {
        margin-bottom: 0.75rem !important;
    }

    .page-header h1.page-title {
        font-size: 1.2rem !important;
    }

    .page-header .page-subtitle {
        display: none !important; /* Hide long subtitles on mobile to save vertical space */
    }

    /* Metric cards on mobile */
    .metric-row-mobile .col-6 {
        padding: 4px !important;
    }
    .metric-box-mobile {
        padding: 6px !important;
    }
    .metric-box-mobile small {
        font-size: 0.68rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .metric-box-mobile strong {
        font-size: 0.95rem !important;
    }

    /* Scrollable Filter Pills on Mobile */
    .sheet-filter-scroll {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
        padding-bottom: 2px !important;
    }
    .sheet-filter-scroll .btn {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        flex-shrink: 0;
    }

    /* Search Bar on Mobile - Static (not sticky) to prevent covering rows */
    .sticky-search-mobile {
        position: static !important;
        box-shadow: none !important;
        z-index: auto !important;
        background: #ffffff;
        padding: 6px 8px !important;
    }
    .sticky-search-mobile input {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        height: 32px !important;
    }

    /* Hide subtext completely on mobile */
    .member-subtext-mobile {
        display: none !important;
    }

    /* Billing cycle cards on mobile */
    .card-body.p-4 {
        padding: 0.85rem !important;
    }

    /* Ultra-compact metric strip on mobile */
    .compact-metric-strip {
        display: flex !important;
        align-items: center;
        background: #ffffff;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        padding: 6px 4px;
        margin-bottom: 8px;
        text-align: center;
    }
    .compact-metric-strip .metric-item {
        flex: 1;
        padding: 0 4px;
        border-right: 1px solid #f1f5f9;
    }
    .compact-metric-strip .metric-item:last-child {
        border-right: none;
    }
    .compact-metric-strip .metric-label {
        display: block;
        font-size: 0.68rem;
        line-height: 1;
        margin-bottom: 2px;
    }
    .compact-metric-strip .metric-val {
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.1;
    }

    /* Hide desktop-only bulky sections on mobile */
    .desktop-metric-row {
        display: none !important;
    }
    .desktop-month-header {
        display: none !important;
    }

    /* Mobile Sheet Top Bar */
    .mobile-sheet-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        padding: 5px 8px !important;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        margin-bottom: 5px !important;
    }
    .mobile-sheet-topbar .btn {
        padding: 2px 7px !important;
        font-size: 0.8rem !important;
    }

    /* Filter & Search Bars on Mobile */
    .sheet-filter-bar-mobile {
        padding: 4px 6px !important;
    }
    .sheet-filter-bar-mobile .btn {
        padding: 2px 6px !important;
        font-size: 0.74rem !important;
        border-radius: 5px !important;
    }
    .sticky-search-mobile {
        position: static !important;
        box-shadow: none !important;
        z-index: auto !important;
        padding: 4px 6px !important;
    }
    .sticky-search-mobile input {
        font-size: 0.82rem !important;
        padding: 3px 8px !important;
        height: 30px !important;
    }
    .sticky-search-mobile .input-group-text {
        padding: 3px 8px !important;
        font-size: 0.8rem !important;
    }

    /* Snappy Table on Mobile */
    .table-sheet-mobile thead th {
        font-size: 0.74rem !important;
        padding: 4px 6px !important;
        background-color: #f8fafc !important;
        color: #64748b !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .table-sheet-mobile {
        font-size: 0.86rem;
        margin-top: 0 !important;
    }
    .table-sheet-mobile td {
        padding: 6px 6px !important;
        vertical-align: middle;
    }
    .table-sheet-mobile td:first-child {
        width: 26px !important;
        padding-left: 4px !important;
        padding-right: 2px !important;
        font-size: 0.78rem !important;
        color: #94a3b8;
    }
    .table-sheet-mobile .member-name-text,
    .table-sheet-mobile .dinner-member-name,
    .table-sheet-mobile .special-member-name {
        font-size: 0.88rem !important;
        line-height: 1.25;
        font-weight: 600;
    }
    
    /* Pay Button on Mobile */
    .btn-sheet-pay-mobile {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
    }

    .badge-paid-mobile {
        font-size: 0.76rem !important;
        padding: 4px 7px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }

    /* Hide subtext completely on mobile */
    .member-subtext-mobile {
        display: none !important;
    }

    /* Card styling on mobile */
    .card-custom {
        border-radius: 10px !important;
        margin-bottom: 0.5rem !important;
    }

    /* Ultra-compact payment period & event cards on mobile */
    .period-card {
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }
    .period-card .card-body {
        padding: 10px 12px !important;
    }
    .period-card .period-title {
        font-size: 1rem !important;
    }
    .period-card .period-stats-box {
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        background-color: #f8fafc !important;
    }
    .period-card .period-btn {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        font-size: 0.85rem !important;
    }
}

/* Unified Compressed Sheet & Payment Layout (Desktop & Mobile) */
.sheet-topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 6px 12px !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px !important;
}
.sheet-topbar .btn {
    padding: 3px 10px !important;
    font-size: 0.85rem !important;
}

.compact-metric-strip {
    display: flex !important;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    text-align: center;
}
.compact-metric-strip .metric-item {
    flex: 1;
    padding: 2px 8px;
    border-right: 1px solid #f1f5f9;
}
.compact-metric-strip .metric-item:last-child {
    border-right: none;
}
.compact-metric-strip .metric-label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.2;
    margin-bottom: 2px;
}
.compact-metric-strip .metric-val {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Compressed Sheet Table on All Devices */
.table-sheet-mobile,
.table-sheet-compressed {
    font-size: 0.9rem;
    margin-top: 0 !important;
}
.table-sheet-mobile thead th,
.table-sheet-compressed thead th {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.table-sheet-mobile td,
.table-sheet-compressed td {
    padding: 6px 10px !important;
    vertical-align: middle;
}
.table-sheet-mobile td:first-child,
.table-sheet-compressed td:first-child {
    width: 32px !important;
    padding-left: 6px !important;
    padding-right: 4px !important;
    font-size: 0.82rem !important;
    color: #94a3b8;
}
.table-sheet-mobile .member-name-text,
.table-sheet-compressed .member-name-text,
.table-sheet-mobile .dinner-member-name,
.table-sheet-compressed .dinner-member-name,
.table-sheet-mobile .special-member-name,
.table-sheet-compressed .special-member-name {
    font-size: 0.92rem !important;
    line-height: 1.25;
    font-weight: 600;
}
.btn-sheet-pay-mobile,
.btn-sheet-pay-compressed {
    padding: 4px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}
.badge-paid-mobile,
.badge-paid-compressed {
    font-size: 0.78rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
}

/* Hide bulky subtext completely for a clean 1-line member row */
.member-subtext-mobile {
    display: none !important;
}

/* Responsive Penalty View & Modal on Mobile & Compact Windows */
@media (max-width: 768px) {
    .btn-sheet-pay-compressed {
        padding: 3px 8px !important;
        font-size: 0.80rem !important;
    }

    .compact-metric-strip {
        padding: 4px 6px !important;
        overflow-x: auto;
    }
    .compact-metric-strip .metric-item {
        padding: 2px 5px !important;
    }
    .compact-metric-strip .metric-label {
        font-size: 0.65rem !important;
    }
    .compact-metric-strip .metric-val {
        font-size: 0.88rem !important;
    }

    /* Modal Responsive Card Transformation */
    .penalty-table-responsive {
        border: none !important;
    }
    .penalty-table-responsive thead {
        display: none !important;
    }
    .penalty-table-responsive tbody tr.pen-due-item-row {
        display: block !important;
        margin-bottom: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }
    .penalty-table-responsive tbody tr.pen-due-item-row td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: none !important;
        padding: 3px 0 !important;
        font-size: 0.84rem !important;
    }
    .penalty-table-responsive tbody tr.pen-due-item-row td.pen-item-idx-col {
        display: none !important;
    }
    .penalty-table-responsive tbody tr.pen-due-item-row td.pen-item-title-col {
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 6px !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
        width: 100% !important;
    }
    .penalty-table-responsive tbody tr.pen-due-item-row td.pen-item-check-col {
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 6px !important;
        margin-top: 4px !important;
        justify-content: flex-end !important;
    }
}

/* Compressed Cards on Desktop & Mobile */
.period-card {
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.period-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}
.period-card .card-body {
    padding: 10px 14px !important;
}
.period-card .period-title {
    font-size: 1.05rem !important;
}
.period-card .period-stats-box {
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    background-color: #f8fafc !important;
}
.period-card .period-btn {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: 0.85rem !important;
}

/* Print Styling for Receipts and Reports */
@media print {
    @page {
        size: auto;
        margin: 8mm 6mm;
    }

    .app-sidebar, .app-header, .app-footer, .sidebar-backdrop, .no-print, .btn {
        display: none !important;
    }

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

    .page-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        background: #ffffff !important;
        font-size: 8.5pt;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card-custom {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        width: 100% !important;
    }

    .table-responsive {
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
    }

    .print-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        font-size: 8pt !important;
    }

    .print-table th, .print-table td {
        border: 1px solid #475569 !important;
        padding: 5px 7px !important;
        color: #000000 !important;
        vertical-align: middle !important;
        overflow: visible !important;
    }

    .print-date-col {
        width: 82px !important;
        max-width: 88px !important;
        white-space: normal !important;
        word-break: normal !important;
        line-height: 1.25 !important;
    }

    .print-table td.text-wrap-col, .print-table th.text-wrap-col {
        word-break: break-word !important;
        white-space: normal !important;
    }

    .print-table td.text-nowrap, .print-table th.text-nowrap {
        white-space: nowrap !important;
    }

    .print-table th {
        background-color: #f1f5f9 !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-table .badge {
        border: none !important;
        background: transparent !important;
        color: #000000 !important;
        padding: 0 !important;
        font-weight: 600 !important;
        font-size: 8pt !important;
        white-space: normal !important;
    }

    .receipt-container {
        border: 2px dashed #000000 !important;
        padding: 20px !important;
        margin: 0 auto !important;
        max-width: 650px !important;
    }
}

/* Select2 Bootstrap 5 Overrides and Enhancements */
.select2-container--bootstrap-5 .select2-selection {
    font-size: 0.92rem;
    min-height: 38px;
    border-color: #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 0.75rem;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 2000 !important;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border-radius: 6px;
    border-color: #cbd5e1;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
}
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb;
    color: #ffffff;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #1e293b;
    font-weight: 500;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}
.select2-container {
    max-width: 100% !important;
}
.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    min-height: 31px !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
}
.form-select-lg + .select2-container--bootstrap-5 .select2-selection {
    min-height: 46px !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 1.05rem !important;
    border-radius: 10px !important;
}
