body {
    background: #f8f9fa;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1000px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.1);
    padding: 36px 36px 28px 36px;
    margin-top: 48px;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.header-logo img {
    height: 70px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 8px;
}

h1, .modal-title {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.gold-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    border-radius: 2px;
    margin: 0 auto 24px auto;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
    justify-content: space-between;
}

.filters-row .form-label {
    margin-bottom: 4px;
}

#addAssetBtn {
    min-width: 180px;
    font-size: 1.1em;
    padding: 10px 0;
    box-shadow: 0 2px 8px #D4AF37aa;
    border-radius: 8px;
    margin-top: 8px;
}

.btn-primary, .page-link.active, .btn-success {
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    border: none;
    color: #222;
    font-weight: 600;
}

.btn-primary:hover, .btn-success:hover {
    background: #D4AF37;
    color: #fff;
}

.table {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    color: #222;
    font-weight: 700;
    border-bottom: 2px solid #D4AF37;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 10px;
    font-size: 1.05em;
}

.table td, .table th {
    padding: 12px 10px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #ffffff;
}

.table tbody tr:hover {
    background: #e9ecef;
    transition: background 0.2s;
}

.pagination {
    margin-top: 32px;
}

.pagination .page-link {
    color: #D4AF37;
    border: 1px solid #D4AF37;
    background: #181818;
}

.pagination .page-item.active .page-link, .pagination .page-link.active {
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    color: #222;
    border: none;
}

.form-label {
    color: #D4AF37;
    font-weight: 600;
}

.form-select, .form-control {
    border-radius: 8px;
    border: 1.5px solid #D4AF37;
    background: #ffffff;
    color: #333;
}

.form-select:focus, .form-control:focus {
    background: #ffffff;
    color: #333;
    border-color: #FFD700;
}

.modal-content {
    border-radius: 18px;
    background: #ffffff;
    color: #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

#qrcode {
    margin: 0 auto 8px auto;
    display: inline-block;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,44,44,0.18);
}

#qrCodeLabel {
    color: #D4AF37;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.btn-danger {
    background: #b71c1c;
    border: none;
    border-radius: 6px;
    font-size: 0.98em;
    padding: 6px 16px;
    transition: background 0.2s, color 0.2s;
}

.btn-danger:hover {
    background: #d32f2f;
    color: #fff;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.logo h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.demo-credentials {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.demo-credentials h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.demo-credentials p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* ===== FORGOT PASSWORD PAGE STYLES ===== */
.forgot-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.back-to-login {
    text-align: center;
    margin-top: 1rem;
}

.back-to-login a {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.info-box {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #1565c0;
}

/* ===== ADD USER PAGE STYLES ===== */
.add-user-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.header-section img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.header-section h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header-section p {
    color: #666;
    font-size: 0.9rem;
}

.password-requirements {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.password-requirements h6 {
    color: #333;
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    margin-bottom: 0;
    color: #666;
}

.role-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #1565c0;
}

/* ===== MANAGE USERS PAGE STYLES ===== */
.manage-users-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.user-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.role-admin {
    background-color: #dc3545;
    color: white;
}

.role-purchasing {
    background-color: #fd7e14;
    color: white;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.user-details {
    flex: 1;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.stats-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stats-card h5 {
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ===== ASSET INFO PAGE STYLES ===== */
.asset-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.1);
    padding: 36px 32px 28px 32px;
    margin: 48px auto 0 auto;
    max-width: 500px;
}

.asset-title {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.list-group-item {
    background: #f8f9fa;
    color: #333;
    border: none;
    font-size: 1.08em;
    margin-bottom: 6px;
    border-radius: 8px;
}

/* ===== DEPARTMENT ITEMS PAGE STYLES ===== */
.department-header {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.department-title {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.building-subtitle {
    color: #AAA;
    font-size: 1em;
    margin-bottom: 1rem;
}

.search-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.items-container {
    margin-bottom: 20px;
}

.item-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #D4AF37;
}

.item-name {
    color: #FFD700;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.item-code {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.item-details {
    color: #CCC;
    font-size: 0.9em;
}

.item-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.detail-label {
    font-weight: 500;
    color: #999;
    min-width: 70px;
}

.detail-value {
    text-align: right;
    flex: 1;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-used {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-not-used {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-out-of-service {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.no-items {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 40px 0;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
}

.back-btn {
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    color: #222;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #D4AF37;
    color: #fff;
}

.pagination-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.pagination .page-link {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #D4AF37;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    color: #FFD700;
}

.pagination .page-item.active .page-link {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #222;
}

.stats-info {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 10px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 900px) {
    .container {
        padding: 12px 2vw 12px 2vw;
    }
    .filters-row {
        flex-direction: column;
        gap: 8px;
    }
    .table thead th, .table td {
        font-size: 0.98em;
        padding: 8px 4px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 4px 0 4px 0;
    }
    .header-logo img {
        height: 44px;
    }
    h1 {
        font-size: 1.2em;
    }
    .table {
        font-size: 0.92em;
    }
    
    /* Department items responsive */
    body { 
        padding: 8px; 
    }
    .department-header, .search-section, .pagination-section { 
        padding: 12px; 
        margin-bottom: 15px;
    }
    .item-card { 
        padding: 12px; 
    }
    .item-detail-row {
        flex-direction: column;
        margin-bottom: 5px;
    }
    .detail-value {
        text-align: left;
        margin-top: 2px;
    }
    .department-title { 
        font-size: 1.3em; 
    }
    .pagination {
        font-size: 0.9em;
    }
    
    /* Asset info responsive */
    .asset-card { 
        padding: 16px 4vw 16px 4vw; 
    }
}

/* ===== PRINT STYLES FOR BULK QR CODES ===== */
@media print {
    body * {
        visibility: hidden;
    }
    #bulkQrContainer, #bulkQrContainer * {
        visibility: visible;
    }
    #bulkQrContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .thermal-page {
        page-break-after: always;
        margin: 0;
        padding: 10px;
        width: 100%;
        min-height: 100vh;
    }
    .thermal-page:last-child {
        page-break-after: avoid;
    }
    .thermal-qr-item {
        display: inline-block;
        text-align: center;
        margin: 10px;
        page-break-inside: avoid;
    }
    .thermal-qr-code {
        border: 1px solid #000;
        padding: 5px;
        background: white;
        margin-bottom: 5px;
    }
    .thermal-qr-label {
        font-size: 10px;
        font-weight: bold;
        color: #000;
        text-align: center;
        margin-top: 2px;
    }
    .thermal-layout-3 .thermal-qr-item {
        width: 30%;
        margin: 5px 1.5%;
    }
    .thermal-layout-4 .thermal-qr-item {
        width: 22%;
        margin: 5px 1%;
    }
    .thermal-layout-5 .thermal-qr-item {
        width: 18%;
        margin: 5px 1%;
    }
}

/* ===== QR CODE GRID STYLING ===== */
#bulkQrContainer .col-md-4 {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#bulkQrContainer img {
    max-width: 100%;
    height: auto;
}

/* Optimize for smaller QR codes */
#bulkQrContainer .col-md-4 .small {
    font-size: 0.75rem;
}

/* ===== MODAL IMPROVEMENTS ===== */
.modal-open {
    overflow: hidden;
}

.modal-xl {
    max-width: 90% !important;
}

.modal-body {
    padding: 1.5rem;
}

/* ===== BETTER LIST GROUP STYLING ===== */
.list-group {
    border-radius: 0.375rem;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

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

/* ===== COMPACT FORM STYLING ===== */
.modal-body .mb-4 {
    margin-bottom: 1.5rem !important;
}

.modal-body h6 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
}

/* ===== IMPROVED SEARCH FORM STYLING ===== */
.card-body {
    padding: 1.5rem;
}

.btn-group .btn {
    border-radius: 0.375rem;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===== BETTER SPACING FOR FILTER ROWS ===== */
.row.mb-3 {
    margin-bottom: 1rem !important;
}

/* ===== IMPROVED BUTTON STYLING ===== */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* ===== SEARCH FORM CARD IMPROVEMENTS ===== */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #333;
    border: none;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* ===== NO OWNER CHECKBOX STYLING ===== */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-label {
    color: #ffd700;
    font-weight: 500;
}

.form-check-label i {
    color: #dc3545;
}

/* ===== DISABLED OWNER DROPDOWN STYLING ===== */
.form-select:disabled {
    cursor: not-allowed;
}

.form-text {
    font-size: 0.875rem;
    color: #ffd700;
}

.form-text i {
    color: #ffd700;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode {
    background: #111;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

body.dark-mode .container {
    background: #181818;
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.dark-mode .table {
    background: #181818;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background: #222;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(even) {
    background: #181818;
}

body.dark-mode .table tbody tr:hover {
    background: #333;
}

body.dark-mode .form-select,
body.dark-mode .form-control {
    background: #222;
    color: #f5f5f5;
    border-color: #444;
    transition: all 0.3s ease;
}

body.dark-mode .form-select:focus,
body.dark-mode .form-control:focus {
    background: #222;
    border-color: #ffd700;
    color: #f5f5f5;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

body.dark-mode .modal-content {
    background: #181818;
    color: #f5f5f5;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

body.dark-mode .asset-card {
    background: #181818;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.dark-mode .list-group-item {
    background: #222;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

body.dark-mode .department-header {
    background: #181818;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.dark-mode .search-section {
    background: #181818;
    transition: all 0.3s ease;
}

body.dark-mode .item-card {
    background: #181818;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.dark-mode .no-items {
    background: #181818;
    color: #888;
    transition: all 0.3s ease;
}

body.dark-mode .pagination-section {
    background: #181818;
    transition: all 0.3s ease;
}

body.dark-mode .pagination .page-link {
    background: #222;
    border-color: #444;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

body.dark-mode .pagination .page-link:hover {
    background: #333;
}

body.dark-mode .stats-info {
    color: #888;
}

body.dark-mode .card-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    transition: all 0.3s ease;
}

body.dark-mode .card {
    background: #181818;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

/* Dark mode for login page */
body.dark-mode .login-container {
    background: #181818;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

body.dark-mode .logo h1 {
    color: #ffd700;
    transition: all 0.3s ease;
}

body.dark-mode .logo p {
    color: #ccc;
    transition: all 0.3s ease;
}

body.dark-mode .form-group label {
    color: #f5f5f5;
    transition: all 0.3s ease;
}

/* Dark mode for form labels */
body.dark-mode .form-label {
    color: #e9ecef;
}

/* Dark mode for input groups */
body.dark-mode .input-group .form-control {
    background-color: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

body.dark-mode .input-group .form-control:focus {
    background-color: #2b3035;
    border-color: #ffd700;
    color: #e9ecef;
} 

/* Print styles for bulk QR codes */
@media print {
    /* Hide everything except the bulk QR modal content */
    body * {
        visibility: hidden;
    }
    
    #bulkQrModal, #bulkQrModal * {
        visibility: visible;
    }
    
    #bulkQrModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none;
        background: white;
    }
    
    .modal-header, .modal-footer {
        display: none !important;
    }
    
    .modal-body {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure each QR page is perfectly centered and on its own page */
    .thermal-page {
        page-break-after: always !important;
        page-break-inside: avoid !important;
        page-break-before: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: white !important;
        border: none !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Force each page to be exactly one page */
    .thermal-page:last-child {
        page-break-after: avoid !important;
    }
    
    .qr-code-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 400px !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    .qr-code-img {
        display: block !important;
        margin: 0 auto 20px auto !important;
        border: 2px solid #d1b173 !important;
        border-radius: 4px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Remove any background colors or borders for clean printing */
    .alert, .card, .btn {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure text is readable */
    .fw-bold {
        font-weight: bold !important;
        color: #333 !important;
    }
    
    .text-muted {
        color: #666 !important;
    }
    
    /* Force page breaks and prevent content overflow */
    @page {
        margin: 0;
        size: auto;
    }
    
    /* Ensure no content spills over */
    * {
        box-sizing: border-box !important;
    }
}

/* QR Code Modal Responsive Design */
@media (max-width: 768px) {
    #qrModalImage {
        width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 576px) {
    #qrModalImage {
        width: 180px !important;
        height: 180px !important;
    }
    
    .modal-dialog {
        max-width: 95% !important;
    }
}