/* ==========================================================================
   CSS STYLESHEET - STUDENT ID CARD REVIEW & PRINT SYSTEM
   Exact Phôi Gốc: phoi-the.jpg (300 DPI)
   Fonts: Be Vietnam Pro from local /font/
   ========================================================================== */

/* 1. Local Font Setup: Be Vietnam Pro */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('font/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('font/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('font/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('font/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('font/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --primary: #255EAB;
  --primary-hover: #1d4b88;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 94, 171, 0.25);

  --accent-blue: #255EAB;
  --pill-bg: #005fa8;
  --text-dark: #27364B;

  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --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.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-base: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 24px 32px;
  min-height: 100vh;
}

.app-container {
  max-width: 1540px;
  margin: 0 auto;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #255EAB 0%, #1e40af 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 94, 171, 0.3);
}

.badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1e40af;
  margin-bottom: 4px;
}

.header-brand h1 {
  font-size: 23px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.header-brand .subtitle {
  font-size: 13.5px;
  color: #64748b;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  font-family: var(--font-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #255EAB, #1d4b88);
  color: #fff;
  box-shadow: 0 3px 8px rgba(37, 94, 171, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4b88, #163866);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: #334155;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-pdf {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}
.btn-pdf:hover {
  background: #b91c1c;
}

.btn-excel {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}
.btn-excel:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-1px);
}

.btn-outline-success {
  background: #fff;
  color: var(--success);
  border-color: #a7f3d0;
}
.btn-outline-success:hover {
  background: #ecfdf5;
  border-color: var(--success);
}

.btn-amber {
  background: #f59e0b;
  color: #fff;
}
.btn-amber:hover {
  background: #d97706;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: 4px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.stat-alert {
  border-color: #fcd34d;
  background: linear-gradient(to right, #fffbeb, #ffffff);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #255EAB; }
.icon-green { background: #ecfdf5; color: #059669; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-purple { background: #faf5ff; color: #7c3aed; }
.icon-teal { background: #f0fdfa; color: #0d9488; }

.stat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 2px 0;
}

.stat-sub {
  font-size: 11.5px;
  color: #64748b;
}

.text-success { color: #059669 !important; font-weight: 600; }
.text-warning { color: #d97706 !important; font-weight: 600; }
.text-danger { color: #dc2626 !important; font-weight: 600; }
.text-primary { color: #255EAB !important; font-weight: 600; }

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.3s ease;
}

/* Alert Banner */
.alert-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.alert-icon {
  color: #d97706;
  flex-shrink: 0;
}

.alert-content {
  font-size: 13.5px;
  color: #92400e;
  flex: 1;
}

/* Toolbar */
.toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.toolbar-left, .toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.search-box input {
  padding: 9px 36px 9px 38px;
  font-size: 13.5px;
  font-family: var(--font-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 320px;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.search-box input:focus {
  outline: none;
  background: #fff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f1f5f9;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-base);
}

.filter-chip:hover {
  background: #e2e8f0;
}

.filter-chip.active {
  background: #255EAB;
  color: #fff;
  font-weight: 600;
}

.view-switch {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-base);
}

.view-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

/* View Sections */
.view-section {
  display: none;
}
.view-section.active {
  display: block;
}

/* Table View */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.students-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.students-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.students-table tbody tr {
  transition: background-color 0.12s ease;
}

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

.students-table tr.row-missing {
  background-color: #fffbeb !important;
}
.students-table tr.row-approved {
  background-color: #fcfdfc;
}

.text-center { text-align: center; }

/* Table avatar cell */
.table-avatar-cell {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.table-avatar {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1.5pt solid #255EAB;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  display: block;
  transition: transform 0.15s ease;
}

.table-avatar:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.table-avatar-missing {
  width: 48px;
  height: 60px;
  border-radius: 4px;
  border: 1.5px dashed #f59e0b;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 2px;
}

.student-name-bold {
  font-weight: 700;
  font-size: 14.5px;
  color: #0f172a;
}

.student-code-badge {
  font-family: var(--font-base);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  color: #255EAB;
  font-size: 13px;
}

.qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #eff6ff;
  color: #255EAB;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-gray    { background: #f1f5f9; color: #475569; }

.status-select {
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  width: 100%;
}
.status-select.approved { border-color: #10b981; color: #065f46; font-weight: 600; }
.status-select.pending { border-color: #cbd5e1; color: #475569; }
.status-select.flagged { border-color: #f59e0b; color: #92400e; font-weight: 600; }

.note-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12.5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-family: var(--font-base);
}
.note-input:hover { background: #f8fafc; border-color: #e2e8f0; }
.note-input:focus { background: #fff; border-color: var(--border-focus); outline: none; }

.actions-cell {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.12s ease;
}
.action-icon-btn:hover { background: #f1f5f9; color: #0f172a; }
.action-icon-btn.btn-warn-upload { border-color: #f59e0b; color: #d97706; background: #fffbeb; }

/* ==========================================================================
   EXACT STUDENT ID CARD ACCORDING TO PHOI-THE.JPG SPECIFICATION
   ========================================================================== */

.cards-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.cards-tip {
  font-size: 13.5px;
  color: #334155;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 28px;
  justify-items: center;
}

.student-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

/* Card Mockup: 1024 x 628 ratio (~ 440px x 269.8px) */
.id-card-exact {
  width: 440px;
  height: 269.8px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.06);
  border: 1px solid #cbd5e1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  background: #ffffff;
}

.id-card-exact:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -6px rgba(0,0,0,0.22);
}

.id-card-exact img.card-full-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Dynamic card fallback */
.id-card-exact.card-dynamic-template {
  background-image: url('phoi-the.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
}

/* Photo Box: x=49..274, y=230..580 -> Left 4.78%, Top 36.62%, Width 21.97%, Height 55.73% */
.card-exact-photo-wrap {
  position: absolute;
  left: 4.78%;
  top: 36.62%;
  width: 21.97%;
  height: 55.73%;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5pt solid #255EAB; /* Viền 1.5pt màu #255EAB */
  background: #f8fafc;
}

.card-exact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-exact-photo-missing {
  width: 100%;
  height: 100%;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
  cursor: pointer;
}

/* Right Content Column: Center X = 662.5 (64.7%) */
.card-exact-info-block {
  position: absolute;
  left: 31%;
  right: 1.5%;
  top: 40.28%; /* y=253 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 1. Student Name: #314F85, Bold, Uppercase. Gap to Pill = 15.5px */
.card-exact-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #314F85;
  line-height: 1.1;
  margin-bottom: 15.5px; /* 36px at 1024 scale */
  letter-spacing: -0.2px;
}

/* 2. Pill "THẺ HỌC SINH": Capsule w=175px, h=26.6px, #255EAB. Gap to Class = 9.5px */
.card-exact-pill {
  width: 175px;
  height: 26.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #255EAB;
  color: #ffffff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14.2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 9999px;
  margin-bottom: 9.5px; /* 22px at 1024 scale */
  box-shadow: 0 2px 4px rgba(37, 94, 171, 0.25);
}

/* 3. Class / School Year: #373435, Bold. Gap to Code = 14px */
.card-exact-class {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #373435;
  line-height: 1.1;
  margin-bottom: 14px; /* 33px at 1024 scale */
}

/* 4. Student Code (MSHS): #314F85, Bold */
.card-exact-code {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #314F85;
  line-height: 1.1;
}

.card-actions-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  padding: 0 4px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  animation: modalPop 0.2s ease-out;
}
.modal-dialog.modal-image { max-width: 440px; }

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.lightbox-img-wrap {
  width: 220px;
  height: 290px;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5pt solid #255EAB;
  background: #f1f5f9;
}
.lightbox-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-info { font-size: 14px; color: #334155; }

.drop-zone {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.15s ease;
  margin: 16px 0;
}
.drop-zone:hover { border-color: #255EAB; background: #eff6ff; }
.drop-zone svg { color: #64748b; margin-bottom: 8px; }

.preview-uploaded { text-align: center; margin-top: 12px; }
.preview-uploaded img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5pt solid #255EAB;
  margin-top: 6px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--font-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.print-summary-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.print-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13.5px;
}

/* ==========================================================================
   PRINT MEDIA - EXACT CARD SIZING ON A4
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-header,
  .stats-row,
  .alert-banner,
  .toolbar,
  .cards-toolbar,
  .card-actions-bar,
  .table-container,
  .modal {
    display: none !important;
  }

  .main-content { display: none !important; }

  .print-container {
    display: block !important;
  }

  .print-page {
    width: 210mm;
    min-height: 297mm;
    padding: 10mm 12mm;
    margin: 0 auto;
    page-break-after: always;
    break-after: page;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 92mm);
    grid-gap: 6mm 10mm;
    justify-content: center;
    align-content: start;
  }

  .print-card-box {
    width: 92mm;
    height: 56.4mm;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
    position: relative;
    border: 0.5pt dashed #cbd5e1;
    border-radius: 3mm;
    overflow: hidden;
  }

  .print-card-box .id-card-exact {
    width: 100% !important;
    height: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
}
