/* ============================================================
   StockTake Pro - Professional Blue & White Theme
   ============================================================ */

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --primary-bg: #E3F2FD;
    --primary-bg-light: #F5F9FF;
    --accent: #00ACC1;
    --accent-dark: #00838F;
    --white: #FFFFFF;
    --gray-50: #FAFBFC;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #059669;
    --success-bg: #D1FAE5;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Mobile touch fixes ---- */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
/* Prevent double-tap zoom on iOS for scanner buttons */
.btn { touch-action: manipulation; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ---- Top Navigation ---- */
.topnav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.topnav .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}
.topnav .nav-brand svg { flex-shrink: 0; }
.topnav .nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topnav .nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.topnav .nav-links a:hover,
.topnav .nav-links a.active {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}
.topnav .nav-user {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}
.topnav .nav-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.topnav .nav-user .user-info { font-size: 0.8rem; line-height: 1.3; }
.topnav .nav-user .user-info strong { display: block; font-weight: 600; color: var(--white); }
.topnav .nav-user .user-info small { color: rgba(255,255,255,0.65); font-size: 0.7rem; }

/* ---- Layout ---- */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 56px);
}
.page-header { margin-bottom: 24px; }
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}
.page-header p { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--white);
}
.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-body { padding: 24px; }

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.stat-accent {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}
.stat-card.blue .stat-accent { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.cyan .stat-accent { background: linear-gradient(90deg, var(--accent), #4DD0E1); }
.stat-card.green .stat-accent { background: linear-gradient(90deg, var(--success), #34D399); }
.stat-card.orange .stat-accent { background: linear-gradient(90deg, var(--warning), #FBBF24); }
.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0 20px;
}
.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}
.stat-icon {
    font-size: 1.3rem;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card.blue .stat-icon-wrap { background: linear-gradient(135deg, var(--primary-bg), #BBDEFB); }
.stat-card.cyan .stat-icon-wrap { background: linear-gradient(135deg, #E0F7FA, #B2EBF2); }
.stat-card.green .stat-icon-wrap { background: linear-gradient(135deg, var(--success-bg), #A7F3D0); }
.stat-card.orange .stat-icon-wrap { background: linear-gradient(135deg, var(--warning-bg), #FDE68A); }
.stat-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.65rem;
    background: var(--success-bg);
    color: var(--success);
    font-weight: 700;
}
.stat-body {
    padding: 10px 20px 0 20px;
    flex: 0 0 auto;          /* don't grow or shrink — fixed size */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    height: 2.4rem;          /* fixed height — number always sits at the same vertical position */
    line-height: 2.4rem;     /* match height for perfect vertical centering */
    display: block;          /* block removes flex-induced sub-pixel shifts */
    width: 100%;
    overflow: visible;
    text-align: right;       /* anchor to right so digit-count changes don't shift left/right */
    white-space: nowrap;     /* never wrap to a second line */
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1;
    font-feature-settings: "tnum" 1;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
}
.stat-card .stat-label {
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    height: 1rem;            /* fixed height so bar position is always the same */
}
.stat-bar {
    margin-top: auto;
    padding: 12px 20px 16px 20px;
}
.stat-bar-inner {
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card.blue .stat-bar-fill { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.cyan .stat-bar-fill { background: linear-gradient(90deg, var(--accent), #4DD0E1); }
.stat-card.green .stat-bar-fill { background: linear-gradient(90deg, var(--success), #34D399); }
.stat-card.orange .stat-bar-fill { background: linear-gradient(90deg, var(--warning), #FBBF24); }

/* ---- Scanner ---- */
.scanner-container { max-width: 560px; margin: 0 auto; }
.scanner-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-900);
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    min-height: 320px;
}
.scanner-wrapper video,
.scanner-wrapper #html5-qrcode video {
    width: 100% !important;
    display: block;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-xl) !important;
}
#html5-qrcode {
    width: 100% !important;
    border: none !important;
}
#html5-qrcode__scan_region {
    min-height: 280px;
}
.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
    z-index: 10;
}
.scanner-overlay .scan-region {
    width: 80%;
    max-width: 320px;
    height: 140px;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
}
.scanner-overlay .scan-region::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--primary-light);
    animation: scanline 2s ease-in-out infinite;
    box-shadow: 0 0 6px 1px var(--primary-light);
}
@keyframes scanline {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}
.scanner-overlay .scan-hint {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.scanner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--gray-500);
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
}
.scanner-placeholder svg { margin-bottom: 16px; opacity: 0.5; }
.scanner-placeholder p { font-size: 0.95rem; font-weight: 500; }

/* Hide html5-qrcode's default elements we don't want */
#html5-qrcode__dashboard_section,
#html5-qrcode__dashboard_section_swaplink,
#html5-qrcode__dashboard_section_csr,
#html5-qrcode__status_span,
#html5-qrcode__header_message {
    display: none !important;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 2px 8px rgba(21,101,192,0.35); transform: translateY(-1px); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #047857; color: var(--white); box-shadow: 0 2px 8px rgba(5,150,105,0.35); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #B91C1C; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-bg); color: var(--primary-dark); }
.btn-light { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-light:hover { background: var(--gray-200); color: var(--gray-800); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- Table ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table thead th {
    background: var(--primary-bg-light);
    color: var(--primary-dark);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-light);
    white-space: nowrap;
}
table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); vertical-align: middle; }
table tbody tr:hover { background: var(--primary-bg-light); }
table tbody tr:last-child td { border-bottom: none; }
table .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-blue { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }

/* ---- Login ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-dark) 100%);
    padding: 24px;
}
.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    text-align: center;
}
.login-card .login-logo {
    width: 64px; height: 64px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}
.login-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; letter-spacing: -0.5px; }
.login-card .subtitle { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 28px; }
.login-card .form-group { text-align: left; }

/* ---- Alerts ---- */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.alert-success { background: var(--success-bg); color: #065F46; border-left: 4px solid var(--success); }
.alert-error { background: var(--danger-bg); color: #991B1B; border-left: 4px solid var(--danger); }
.alert-info { background: var(--primary-bg); color: var(--primary-dark); border-left: 4px solid var(--primary); }

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ---- Recent Scans ---- */
.recent-scans { max-height: 350px; overflow-y: auto; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.recent-item:last-child { border-bottom: none; }
.recent-item .r-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--primary);
}
.recent-item .r-info { flex: 1; min-width: 0; }
.recent-item .r-info .r-name { font-weight: 600; font-size: 0.875rem; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item .r-info .r-meta { font-size: 0.75rem; color: var(--gray-400); }
.recent-item .r-qty { font-weight: 800; color: var(--success); font-size: 1.1rem; }

/* ---- Search ---- */
.search-box { position: relative; }
.search-box input {
    padding-left: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239CA3AF' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
}

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--gray-400); }
.empty-state svg { margin: 0 auto 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--gray-500); margin-bottom: 4px; }
.empty-state p { font-size: 0.85rem; }

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ---- Manual Entry ---- */
.manual-entry-toggle { text-align: center; margin-top: 12px; }
.manual-entry-toggle a { font-size: 0.85rem; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .topnav { padding: 0 14px; }
    .topnav .nav-brand span { font-size: 1rem; }
    .topnav .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
    .topnav .nav-user .user-info { display: none; }
    .topnav .nav-user { margin-left: 8px; padding-left: 8px; }
    .container-main { padding: 16px; }
    .card-body { padding: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-top { padding: 12px 14px 0 14px; }
    .stat-body { padding: 8px 14px 0 14px; }
    .stat-bar { padding: 10px 14px 12px 14px; }
    .stat-card .stat-value { font-size: 1.5rem; height: 1.8rem; line-height: 1.8rem; }
    .stat-icon-wrap { width: 38px; height: 38px; border-radius: 10px; }
    .stat-icon { font-size: 1.15rem; }
    .stat-bar { margin-top: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .btn-group .btn { justify-content: center; }
    .login-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ---- Scanner Grid ---- */
.scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .scanner-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- File Input ---- */
.form-control[type="file"] {
    padding: 8px 12px;
}
.form-control[type="file"]::file-selector-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}
.form-control[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* ---- Scrollbar ---- */
.recent-scans::-webkit-scrollbar {
    width: 6px;
}
.recent-scans::-webkit-scrollbar-track {
    background: transparent;
}
.recent-scans::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}
.recent-scans::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ---- Print ---- */
@media print {
    .topnav, .btn, .no-print { display: none !important; }
    .container-main { padding: 0; }
    .card { box-shadow: none; border: none; }
    .card-body { padding: 0; }
}
