/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== COLORS - CAO HÙNG TECH ===== */
:root {
    --primary-red: #ffc107;
    --primary-dark: #e0a800;
    --secondary-orange: #ffe566;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #ddd;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --danger: #dc3545;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6a817;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: #ffc107;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.login-logo p {
    color: var(--text-gray);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ffc107;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #e6a817;
    color: white;
}

.btn-primary:hover {
    background: #d49a15;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== LAYOUT ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #285387 0%, #1f4978 52%, #18406d 100%);
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.16);
}

.sidebar-header {
    padding: 22px 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.28);
    flex-shrink: 0;
    background: transparent;
}

.sidebar-logo-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.45))
        drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3))
        saturate(1.16)
        contrast(1.16)
        brightness(1.06);
}

.sidebar-logo-icon span {
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f5a623;
    text-shadow: 0 1px 3px rgba(0,0,0,0.28);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 13px;
    color: #f5a623;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    font-style: italic;
}

.sidebar-menu {
    padding: 8px 0 6px;
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-menu::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

/* Section label dividers */
.sidebar-menu li.menu-label {
    padding: 14px 10px 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    pointer-events: none;
    user-select: none;
}

.sidebar-menu li.menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 10px 10px;
    pointer-events: none;
}

.sidebar-menu li.menu-label:first-child {
    padding-top: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 13px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    border-radius: 9px;
    border-left: none;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
}

.sidebar-menu li a.active {
    background: rgba(255,255,255,0.93);
    color: #1f4978;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    text-shadow: none;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

.sidebar-menu li a.active i {
    filter: none;
}

.sidebar-user {
    padding: 13px 14px;
    border-top: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.sidebar-user .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.sidebar-user .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: #1f4978;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-user .user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    line-height: 1.3;
}

.btn-logout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 12px;
    background: rgba(255,255,255,0.92);
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-logout:hover {
    background: #fff;
    color: #b91c1c;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

.page-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid #ffc107;
}

.page-header h1 {
    font-size: 24px;
    color: var(--text-dark);
}

.page-header p {
    color: var(--text-gray);
    margin-top: 5px;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.stat-icon.red { background: #fce4ec; color: var(--primary-red); }
.stat-icon.green { background: #e8f5e9; color: var(--success); }
.stat-icon.blue { background: #e3f2fd; color: var(--info); }
.stat-icon.orange { background: #fff3e0; color: var(--secondary-orange); }
.stat-icon.yellow { background: #fffde7; color: #f9a825; }

.stat-info h3 {
    font-size: 28px;
    color: var(--text-dark);
}

.stat-info p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.table tr:hover {
    background: var(--bg-light);
}

.table .actions {
    display: flex;
    gap: 5px;
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-waiting {
    background: #fff3cd;
    color: #856404;
}

.badge-processing {
    background: #cce5ff;
    color: #004085;
}

.badge-done {
    background: #d4edda;
    color: #155724;
}

.badge-returned {
    background: #e2e3e5;
    color: #383d41;
}

.badge-assigned {
    background: #fff3cd;
    color: #664d03;
}

.badge-checking {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-quoting {
    background: #ffe5d0;
    color: #7a3404;
}

.badge-baohanh {
    background: #fff3e0;
    color: #e65100;
}

.badge-doitac {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* ===== BIÊN NHẬN FORM ===== */
.bien-nhan {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    border: 3px solid var(--primary-red);
    font-family: 'Arial', sans-serif;
}

.bien-nhan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-red);
}

.bien-nhan-logo {
    display: flex;
    align-items: center;
    flex: 0 0 154px;
    justify-content: flex-start;
}

.bien-nhan-logo img {
    width: 144px;
    max-width: 100%;
    height: auto;
    display: block;
}

.bien-nhan-logo--with-text {
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-start;
}

.bien-nhan-logo--with-text img {
    width: 130px;
}

.bien-nhan-logo--with-text .bien-nhan-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.bien-nhan-logo--with-text .bien-nhan-logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

@media print {
    .bien-nhan-logo--with-text .bien-nhan-logo-text {
        display: flex !important;
        align-items: center;
        max-width: none;
        overflow: visible;
    }

    .bien-nhan-logo--with-text .bien-nhan-logo-text h1 {
        font-size: 11.6px !important;
        color: #ffc107 !important;
        letter-spacing: 0.2px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-overflow: clip;
        overflow: visible;
    }
}

.bien-nhan-logo--with-text .bien-nhan-logo-text p {
    display: block;
    margin: 0;
    font-size: 11px;
    font-style: italic;
    line-height: 1.1;
    color: #ffc107;
    white-space: nowrap;
}

@media print {
    .bien-nhan-logo--with-text .bien-nhan-logo-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .bien-nhan-logo--with-text .bien-nhan-logo-text p {
        display: block !important;
        margin: 0;
        font-size: 6.6px;
        font-style: italic;
        line-height: 1;
        color: #ffc107 !important;
        white-space: nowrap;
    }
}

.bien-nhan-title {
    text-align: center;
    flex: 1;
}

.bien-nhan-title h2 {
    color: var(--primary-red);
    font-size: 32px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.bien-nhan-title .so-phieu {
    font-size: 16px;
    font-weight: bold;
}

.bien-nhan-company {
    text-align: right;
    flex: 0 0 250px;
}

.bien-nhan-company h3 {
    color: var(--primary-red);
    font-size: 20px;
    text-transform: uppercase;
    margin: 0 0 2px;
}

.bien-nhan-company p {
    font-size: 11px;
    color: var(--text-gray);
    max-width: 225px;
    margin: 0 0 2px auto;
    line-height: 1.35;
}

.bien-nhan-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bien-nhan-section {
    border: 2px solid var(--primary-red);
    padding: 15px;
}

.bien-nhan-section h4 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.bien-nhan-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.bien-nhan-row label {
    width: 130px;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.bien-nhan-row span {
    flex: 1;
    border-bottom: 1px dotted var(--text-gray);
    padding: 2px 5px;
    min-height: 20px;
    font-size: 13px;
}

.bien-nhan-row input,
.bien-nhan-row select {
    flex: 1;
    border: none;
    border-bottom: 1px dotted var(--text-gray);
    outline: none;
    padding: 5px;
    font-size: 13px;
    background: transparent;
}

.bien-nhan-row input:focus,
.bien-nhan-row select:focus {
    border-bottom-color: var(--primary-red);
}

.bien-nhan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bien-nhan-table th,
.bien-nhan-table td {
    border: 1.5px solid #e6a817;
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
}

.bien-nhan-table th {
    background: #fff;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.bien-nhan-table tbody tr:hover {
    background: #fffdf5;
}

.bien-nhan-table input {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 13px;
    outline: none;
    background: transparent;
}

.bien-nhan-table .col-stt { width: 50px; }
.bien-nhan-table .col-hangmuc { width: auto; }
.bien-nhan-table .col-soluong { width: 100px; white-space: nowrap; }
.bien-nhan-table .col-dongia { width: 130px; }
.bien-nhan-table .col-thanhtien { width: 130px; }

.bien-nhan-table .input-hangmuc {
    width: 100%; border: none; background: transparent;
    font-size: 13px; padding: 4px; text-align: left;
}
.bien-nhan-table .input-soluong {
    width: 100%; border: none; background: transparent;
    text-align: center; font-size: 13px;
}
.bien-nhan-table .input-dongia {
    width: 100%; border: none; background: transparent;
    text-align: right; font-size: 13px;
}
.btn-xoa-hang {
    border: none; background: none; color: #e6a817;
    cursor: pointer; font-size: 20px; font-weight: bold;
    padding: 0 5px; transition: color 0.2s;
}
.btn-xoa-hang:hover { color: #c0392b; }

.bien-nhan-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-red);
}

.bien-nhan-footer div {
    font-size: 13px;
}

.bien-nhan-footer strong {
    display: block;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.bien-nhan-total {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.bien-nhan-total table {
    width: 500px;
}

.bien-nhan-total td {
    padding: 10px;
    border: 2px solid var(--primary-red);
    font-size: 14px;
    color: #000;
}

.bien-nhan-total td:first-child {
    font-weight: 600;
    background: #fce4ec;
    white-space: nowrap;
    width: 250px;
}

.bien-nhan-total .total-row td {
    font-size: 16px;
    font-weight: bold;
}

.bien-nhan-note {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.bien-nhan-note p {
    margin-bottom: 3px;
}

/* ===== CHECKBOX STYLE ===== */
.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-red);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== FORM GRID ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid.full {
    grid-template-columns: 1fr;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .sidebar-user {
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .bien-nhan-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bien-nhan-body {
        grid-template-columns: 1fr;
    }
    
    .bien-nhan-footer {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    @page {
        margin: 6mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: black !important;
    }

    html, body {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: 12.5px;
        overflow: visible;
    }

    .sidebar,
    .btn,
    .no-print,
    .page-header,
    .card.mt-20.no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .bien-nhan {
        border: 2px solid black;
        width: auto !important;
        max-width: none !important;
        box-shadow: none;
        padding: 5px 8px;
        margin: 0 2mm;
        font-size: 11.5px;
        overflow: visible !important;
        page-break-inside: avoid;
        box-sizing: border-box;
    }

    .bien-nhan-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 1px;
        padding-bottom: 1px;
        padding-left: 2px;
        padding-right: 2px;
        gap: 4px;
    }

    .bien-nhan-title {
        flex: 1 1 auto !important;
        white-space: nowrap;
        padding: 0 2px;
        text-align: center !important;
    }

    .bien-nhan-logo {
        flex: 0 0 190px !important;
        min-width: 190px;
        justify-content: center;
        overflow: visible;
    }

    .bien-nhan-body {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px;
        margin-bottom: 2px;
    }

    .bien-nhan-footer {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        margin-top: 2px;
        padding-top: 2px;
    }

    .bien-nhan-logo img {
        width: 74px;
        height: auto;
        display: block;
    }

    .bien-nhan-logo--with-text {
        gap: 5px !important;
    }

    .bien-nhan-logo--with-text .bien-nhan-logo-text h1 {
        font-size: 12.5px !important;
        color: #ffc107 !important;
        white-space: nowrap !important;
    }

    .bien-nhan-title h2 {
        font-size: 14px;
        margin-bottom: 1px;
        font-weight: bold;
        color: #ffc107 !important;
        white-space: nowrap;
        line-height: 1.1;
    }

    .bien-nhan-title .so-phieu {
        font-size: 7.4px;
        font-weight: 600;
        color: black !important;
    }

    .bien-nhan-company {
        text-align: center !important;
        flex: 0 0 140px;
        min-width: 140px;
        padding-right: 1px;
    }

    .bien-nhan-company h3 {
        font-size: 12.5px;
        font-weight: bold;
        color: #ffc107 !important;
        text-align: center;
        margin: 1px 0 2px 0;
    }

    .bien-nhan-company p {
        font-size: 7.8px;
        max-width: none;
        font-weight: 600;
        color: black !important;
        margin: 0;
    }

    .bien-nhan-company p:first-of-type {
        font-size: 9.4px !important;
        white-space: nowrap;
    }

    .bien-nhan-company p:nth-of-type(2),
    .bien-nhan-company p:nth-of-type(3) {
        width: 138px;
        margin: 0 auto;
        text-align: left;
    }

    @media print and (orientation: portrait) {
        .bien-nhan-header {
            padding-left: 2px;
            padding-right: 2px;
            gap: 2px;
        }

        .bien-nhan-logo {
            flex: 0 0 162px !important;
            min-width: 162px;
        }

        .bien-nhan-logo img {
            width: 66px;
        }

        .bien-nhan-logo--with-text {
            gap: 4px !important;
        }

        .bien-nhan-logo--with-text .bien-nhan-logo-text h1 {
            font-size: 11px !important;
        }

        .bien-nhan-title h2 {
            font-size: 12.5px;
        }

        .bien-nhan-title .so-phieu {
            font-size: 7px;
        }

        .bien-nhan-company {
            flex: 0 0 122px;
            min-width: 122px;
        }

        .bien-nhan-company h3 {
            font-size: 11px;
            text-align: center;
            margin: 1px 0 2px 0;
        }

        .bien-nhan-company p {
            font-size: 7.2px;
            line-height: 1.15;
            margin: 0;
        }

        .bien-nhan-company p:first-of-type {
            font-size: 8.8px !important;
            white-space: nowrap;
        }

        .bien-nhan-company p:nth-of-type(2),
        .bien-nhan-company p:nth-of-type(3) {
            width: 122px;
            margin: 0 auto;
            text-align: left;
        }
    }

    .bien-nhan-section {
        padding: 1px 4px;
        border-width: 1px;
    }

    .bien-nhan-section h4 {
        font-size: 8.4px;
        margin-bottom: 1px;
    }

    .bien-nhan-row {
        margin-bottom: 0;
    }

    .bien-nhan-row label {
        width: 62px;
        font-size: 7.6pt;
        font-weight: bold;
        color: black !important;
    }

    .bien-nhan-row span {
        font-size: 7.6pt;
        min-height: 8px;
        padding: 0 1px;
        font-weight: 600;
        color: black !important;
    }

    .bien-nhan-row .loai-dich-vu-print {
        white-space: nowrap;
        letter-spacing: 0;
    }

    .bien-nhan-table th,
    .bien-nhan-table td {
        padding: 1px 2px;
        font-size: 7pt;
        border-width: 1px;
        font-weight: 600;
        color: black !important;
    }

    .bien-nhan-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .bien-nhan-table {
        margin-bottom: 2px;
    }

    .bien-nhan-total {
        margin-bottom: 2px;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .bien-nhan-total table {
        width: 238px;
    }

    .bien-nhan-total td {
        padding: 1px 3px;
        font-size: 8.4px;
        border-width: 1px;
        font-weight: bold;
        color: black !important;
    }

    .bien-nhan-total .total-row td {
        font-size: 9.4px;
        font-weight: bold;
        color: black !important;
    }

    .bien-nhan-footer div {
        font-size: 8.8px;
        font-weight: 600;
        color: black !important;
    }

    .bien-nhan-footer strong {
        margin-bottom: 8px;
        font-size: 8.8px;
        font-weight: bold;
        color: black !important;
    }

    .bien-nhan-note {
        margin-top: 1px;
        padding-top: 1px;
    }

    .bien-nhan-note p {
        font-size: 6.1pt;
        font-style: italic;
        margin-bottom: 0;
        font-weight: 600;
        color: black !important;
    }
}

/* ===== ADDITIONAL UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary-red); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-gray); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mr-10 { margin-right: 10px; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ===== CUSTOMER DASHBOARD ===== */
.customer-welcome {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.customer-welcome h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.timeline-item.active::before {
    background: var(--primary-red);
}

.timeline-item.done::before {
    background: var(--success);
}

/* ===== KTV/NHAN VIEN DASHBOARD ===== */
.task-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.task-column {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
}

.task-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.task-column-header h3 {
    font-size: 16px;
}

.task-count {
    background: var(--primary-red);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.task-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
}

.task-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.task-card p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.task-card .task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ===== Search Box ===== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    color: var(--primary-red);
}

.tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* ===== Action Buttons ===== */
.action-btns {
    display: flex;
    gap: 5px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.action-btn:hover {
    opacity: 0.8;
}

.action-btn.view { background: #e3f2fd; color: var(--info); }
.action-btn.edit { background: #fff3e0; color: var(--secondary-orange); }
.action-btn.delete { background: #ffebee; color: var(--danger); }
.action-btn.print { background: #e8f5e9; color: var(--success); }

/* ===== Pagination ===== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-gray);
}

.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.page-link:hover:not(.disabled):not(.active) {
    background: #fff3e0;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.page-link.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    font-weight: 600;
}

.page-link.disabled {
    color: #ccc;
    cursor: default;
    background: #f8f9fa;
}

.stt-col {
    width: 50px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}
