/* =========================
   BASE & TYPOGRAPHY
   ========================= */
html { font-size: 14px; font-family: 'Poppins', sans-serif; font-weight: 400; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { font-family: 'Poppins', 'Helvetica Neue', sans-serif; font-weight: 400; }
main { padding-top: 80px; }
code {
    color: var(--color-primary);
    font-weight: 600 !important;
    background: none;
}

/* =========================
   LINKS & TEXT
   ========================= */
a { color: var(--color-primary); }
a:hover, a:focus { color: var(--color-primary); text-decoration: none; }
.text-primary { color: var(--color-primary) !important; }
.text-dark:hover { color: var(--color-primary) !important; }

/* =========================
   MOBILE-FIRST RESPONSIVE BASE
   ========================= */

/* Header text content mobile ordering */
@media (max-width: 991.98px) {
    .header-text-content {
        display: flex !important;
        flex-direction: column !important;
    }

    .page-title {
        order: 1 !important;
        margin-bottom: 0.25rem !important;
    }

    .page-subtitle {
        order: 2 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575.98px) {
    /* Container adjustments for extra small devices - better full screen usage */
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile-optimized cards for full screen usage */
    .card {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Better button sizing for mobile */
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Text adjustments for better mobile readability */
    .text-break {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile typography improvements */
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    /* Client info alert */
    .alert {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* =========================
   PRINT STYLES
   ========================= */

@media print {
    .btn,
    .d-flex.justify-content-between {
        display: none !important;
    }
    
    
    .mobile-line-items {
        display: none !important;
    }
    
    .table-responsive {
        display: block !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .container-fluid {
        padding: 0;
    }
    
    .col-lg-10.offset-lg-1 {
        margin-left: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
