
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #eef2f7 0%, #d9e2ec 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.container {
  max-width: 1300px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -8px rgba(0, 20, 30, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 2rem 2rem 2.5rem;
}
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0b2b3b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  border-left: 6px solid #2f8f9d;
  padding-left: 1.25rem;
}
h1 i { color: #2f8f9d; font-size: 2rem; }
.top-menu {
  display: flex;
  gap: 0.5rem;
  background: #e6eff3;
  border-radius: 3rem;
  padding: 0.4rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
  border: 1px solid #d2e2e9;
}
.menu-btn {
  font-family: 'Inter', sans-serif;
  flex: 1;
  padding: 0.75rem 1.2rem;
  border-radius: 3rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #3e6e7d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
}
.menu-btn.active { background: white; color: #0e3c48; box-shadow: 0 4px 12px -3px rgba(0,0,0,0.12); }
.menu-btn i { font-size: 1rem; }
.menu-btn:hover:not(.active) { background: #d8e8ef; }
.view { display: none; }
.view.active { display: block; }
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .grid-2col { grid-template-columns: 1fr; }
  .container { padding: 1.5rem; }
}
.panel {
  background: #ffffffd9;
  backdrop-filter: blur(4px);
  border-radius: 1.75rem;
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: 0 6px 18px rgba(0, 20, 30, 0.06);
  border: 1px solid #ffffff;
}
.panel h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a4e5c;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 0.7rem;
}
.panel h2 i { color: #2f8f9d; }
.input-group { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #2c5f6e;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.input-group label i { color: #2f8f9d; width: 1rem; font-size: 0.85rem; }
.input-group input,
.input-group select {
  font-family: 'Inter', sans-serif;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dce7ec;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  background: #f9fcff;
  transition: all 0.2s;
  outline: none;
  font-weight: 500;
  color: #0e2d39;
  width: 100%;
}
.input-group input:focus,
.input-group select:focus {
  border-color: #2f8f9d;
  box-shadow: 0 0 0 4px rgba(47, 143, 157, 0.15);
  background: #ffffff;
}
.host-panel { background: #f4fafd; border: 1.5px solid #cde2ea; }
.host-panel h2 { border-bottom-color: #b8d9e4; }
.slot-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1rem;
}
@media (max-width: 500px) { .slot-form-row { grid-template-columns: 1fr; } }
.slot-form-row .input-group { margin-bottom: 0; }
.btn-sm {
  font-family: 'Inter', sans-serif;
  padding: 0.7rem 1.1rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-add {
  background: #2f8f9d;
  color: white;
  box-shadow: 0 6px 12px -4px rgba(47, 143, 157, 0.4);
  height: 42px;
}
.btn-add:hover { background: #247a86; }
.slot-list {
  margin-top: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.6rem;
  border: 1px solid #dbeef4;
  transition: all 0.15s;
  gap: 0.5rem;
}
.slot-item:hover { border-color: #a7cdd9; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.slot-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.slot-date { font-weight: 700; font-size: 0.85rem; color: #12414e; }
.slot-time { font-size: 0.78rem; color: #3f7583; display: flex; align-items: center; gap: 0.3rem; }
.slot-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.slot-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  transition: all 0.15s;
  color: #5e8b98;
}
.slot-actions button:hover { background: #e6f1f5; }
.slot-actions .edit-slot:hover { color: #136b7a; background: #d5eaf0; }
.slot-actions .delete-slot:hover { color: #b33c3c; background: #ffe6e6; }
.empty-slots {
  text-align: center;
  color: #7f9ca8;
  font-size: 0.85rem;
  padding: 1.2rem 0.5rem;
  background: white;
  border-radius: 0.9rem;
  border: 1px dashed #c3dae2;
  font-weight: 500;
}
.slot-count-badge {
  font-size: 0.7rem;
  background: #d5eaf0;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
  color: #1b5c69;
  font-weight: 700;
  margin-left: auto;
}
.multi-slot-wrapper {
  background: #f9fcff;
  border: 1.5px solid #dce7ec;
  border-radius: 0.9rem;
  padding: 0.5rem;
  max-height: 160px;
  overflow-y: auto;
}
.multi-slot-wrapper .no-slots-msg {
  font-size: 0.8rem;
  color: #7f9ca8;
  text-align: center;
  padding: 0.8rem;
  font-weight: 500;
}
.slot-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1b4a56;
  border: 1px solid transparent;
}
.slot-checkbox-item:hover { background: #eaf4f9; border-color: #d0e5ee; }
.slot-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2f8f9d;
  cursor: pointer;
  flex-shrink: 0;
}
.slot-checkbox-item.checked { background: #e1f0f5; border-color: #b8d9e4; }
.selected-count {
  font-size: 0.7rem;
  background: #2f8f9d;
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 2rem;
  font-weight: 700;
  margin-left: 0.4rem;
}
.photo-upload-wrapper { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.photo-preview {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: #e4eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f7e8c;
  font-size: 1.5rem;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  flex-shrink: 0;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #e9f3f6;
  padding: 0.5rem 1rem;
  border-radius: 3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: #1e5f6b;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.photo-upload-btn:hover { background: #d4e9f0; border-color: #b8d4dd; }
input[type="file"] { display: none; }
.action-buttons { display: flex; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.btn {
  font-family: 'Inter', sans-serif;
  padding: 0.85rem 1.5rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  flex: 1 0 auto;
}
.btn-primary {
  background: #1a4e5c;
  color: white;
  box-shadow: 0 8px 16px -6px rgba(26, 78, 92, 0.4);
}
.btn-primary:hover { background: #0e3c48; transform: scale(1.01); }
.btn-secondary {
  background: #ffffff;
  color: #1a4e5c;
  border: 1.5px solid #bcd3dc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.btn-secondary:hover { background: #f1f9fc; border-color: #8fb9c7; }
.btn-success {
  background: #1d7a4c;
  color: white;
  box-shadow: 0 8px 16px -6px rgba(29, 122, 76, 0.4);
}
.btn-success:hover { background: #166039; transform: scale(1.01); }
.btn-warning {
  background: #b8860b;
  color: white;
  box-shadow: 0 8px 16px -6px rgba(184, 134, 11, 0.4);
}
.btn-warning:hover { background: #9a7009; }
.btn:disabled { opacity: 0.6; transform: none; pointer-events: none; }
.qr-area {
  margin-top: 1.2rem;
  background: #f7fbfe;
  border-radius: 1.5rem;
  padding: 1.3rem;
  border: 1px solid #d9eaf1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
  justify-content: center;
}
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #84a7b3;
  gap: 0.6rem;
  font-weight: 500;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.qr-placeholder i { font-size: 2.5rem; opacity: 0.6; }
.status-message {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 2rem;
  background: #e1f0f5;
  color: #1a5e6b;
  font-weight: 500;
  transition: 0.2s;
}
.status-message i { font-size: 0.95rem; }
.hidden { display: none !important; }
.fine-print {
  font-size: 0.72rem;
  color: #608b99;
  margin-top: 1.2rem;
  text-align: center;
  border-top: 1px solid #d0e2e9;
  padding-top: 0.9rem;
}

.logo-icon {
  background: #2f8f9d;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* When logo image is present */
.logo-icon.logo-img {
  background: #ffffff;
  border: 1.5px solid #dce7ec;
  box-shadow: 0 2px 8px rgba(0, 20, 30, 0.08);
}

.logo-icon.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #ffffff;
  border-radius: 12px;
}

/* Hide the fallback icon by default when image loads */
.logo-icon .logo-fallback-icon {
  display: none;
}

/* If image fails to load, show the icon */
.logo-icon.logo-fallback {
  background: #2f8f9d;
  border: none;
}
.logo-icon.logo-fallback .logo-fallback-icon {
  display: block;
  color: #ffffff;
}




.slot-list::-webkit-scrollbar,
.multi-slot-wrapper::-webkit-scrollbar,
.volunteer-registry::-webkit-scrollbar { width: 5px; }
.slot-list::-webkit-scrollbar-track,
.multi-slot-wrapper::-webkit-scrollbar-track,
.volunteer-registry::-webkit-scrollbar-track { background: #eef5f8; border-radius: 10px; }
.slot-list::-webkit-scrollbar-thumb,
.multi-slot-wrapper::-webkit-scrollbar-thumb,
.volunteer-registry::-webkit-scrollbar-thumb { background: #b8d4dd; border-radius: 10px; }
.edit-mode-indicator {
  font-size: 0.7rem;
  background: #ffeeba;
  color: #7a5c00;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
  font-weight: 700;
  margin-left: 0.4rem;
}
.host-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a4e5c;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 3rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.host-toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }
.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffffd9;
  backdrop-filter: blur(4px);
  border-radius: 2rem;
  padding: 2.2rem 2rem;
  box-shadow: 0 12px 30px -10px rgba(0, 20, 30, 0.15);
  border: 1px solid #ffffff;
  text-align: center;
}
.login-card .lock-icon {
  width: 70px;
  height: 70px;
  background: #e5f2f6;
  color: #2f8f9d;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0e3c48;
  margin-bottom: 0.4rem;
  border: none;
  padding: 0;
  justify-content: center;
}
.login-card p.subtitle { font-size: 0.85rem; color: #608b99; margin-bottom: 1.6rem; }
.login-hint {
  font-size: 0.75rem;
  color: #7f9ca8;
  margin-top: 1rem;
  background: #f0f7fa;
  padding: 0.6rem 0.9rem;
  border-radius: 0.8rem;
}
.login-hint code {
  background: #e1f0f5;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: 600;
  color: #0e3c48;
}
.host-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.host-welcome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #1a4e5c;
  font-weight: 600;
}
.host-welcome i { color: #2f8f9d; font-size: 1.1rem; }
.btn-logout {
  font-family: 'Inter', sans-serif;
  background: #fff0f0;
  color: #b33c3c;
  border: 1px solid #f5d0d0;
  padding: 0.5rem 1.1rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.btn-logout:hover { background: #ffe6e6; border-color: #eab8b8; }
.tab-submenu {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: #e6eff3;
  border-radius: 2rem;
  padding: 0.3rem;
  max-width: 520px;
  flex-wrap: wrap;
}
.tab-submenu button {
  font-family: 'Inter', sans-serif;
  flex: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  color: #3e6e7d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-submenu button.active {
  background: white;
  color: #0e3c48;
  box-shadow: 0 3px 10px -3px rgba(0,0,0,0.12);
}
.tab-panel { display: block; }
.tab-panel.hidden { display: none; }
.volunteer-registry {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.registry-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: white;
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dbeef4;
  transition: all 0.15s;
}
.registry-item:hover { border-color: #a7cdd9; }
.registry-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2f8f9d;
  cursor: pointer;
  flex-shrink: 0;
}
.registry-info { flex: 1; min-width: 0; }
.registry-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #12414e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry-meta {
  font-size: 0.72rem;
  color: #5e8b98;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.registry-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #b33c3c;
  transition: background 0.15s;
}
.registry-actions button:hover { background: #ffe6e6; }
.empty-registry {
  text-align: center;
  color: #7f9ca8;
  font-size: 0.85rem;
  padding: 1.2rem 0.5rem;
  background: white;
  border-radius: 0.9rem;
  border: 1px dashed #c3dae2;
  font-weight: 500;
}
.registry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.registry-header .count-badge {
  font-size: 0.7rem;
  background: #d5eaf0;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
  color: #1b5c69;
  font-weight: 700;
}
.registry-header .bulk-actions {
  display: flex;
  gap: 0.4rem;
  font-size: 0.72rem;
}
.registry-header .bulk-actions button {
  background: transparent;
  border: none;
  color: #2f8f9d;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
}
.registry-header .bulk-actions button:hover { background: #e6f1f5; }

/* ============ ID CARD (SCREEN) ============ */
.id-card-container { width: 100%; margin-top: 0.4rem; }
.id-card-page {
  background: white;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  border: 1px solid #d9eaf1;
  margin-bottom: 0.8rem;
}
.id-front {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 5px solid #2f8f9d;
}
.id-photo-frame {
  width: 80px;
  height: 80px;
  border-radius: 0.9rem;
  background: #e4eef3;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.id-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.id-photo-frame i { font-size: 2.2rem; color: #8bb3c2; }
.id-front-info { flex: 1; min-width: 0; }
.id-front-info .id-badge { margin-bottom: 0.4rem; }
.id-front-info p {
  margin-bottom: 0.22rem;
  font-size: 0.78rem;
  color: #1b4a56;
  display: flex;
  gap: 0.4rem;
  font-weight: 500;
}
.id-front-info p strong {
  min-width: 55px;
  font-weight: 700;
  color: #0c2f39;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.id-back {
  border-left: 5px solid #b8860b;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.id-back-qr {
  flex-shrink: 0;
  padding: 0.4rem;
  background: white;
  border-radius: 0.7rem;
  border: 1px solid #e1edf3;
}
.id-back-qr img {
  display: block;
  width: 100px;
  height: 100px;
}
.id-back-info { flex: 1; min-width: 0; }
.id-back-info .back-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8b6914;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  display: block;
}
.id-back-info .schedule-item {
  font-size: 0.78rem;
  color: #1b4a56;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.id-back-info .schedule-item i { color: #2f8f9d; font-size: 0.7rem; }
.page-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7f9ca8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.id-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #c6e2e9;
  padding: 0.15rem 0.7rem;
  border-radius: 2rem;
  color: #1b5c69;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ PRINT CONTAINER ============ */
#printAreaContainer { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    min-height: auto !important;
    overflow: visible !important;
    width: 100% !important;
  }
  
  body > *:not(#printAreaContainer) {
    display: none !important;
  }
  
  #printAreaContainer {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }
  
  #printArea {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4mm !important;
    justify-content: center !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-volunteer-sheet {
    width: 91mm;
    height: 128mm;
    padding: 0;
    display: block;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-id-card {
    width: 91mm;
    height: 128mm;
    border: 0.5mm solid #2f8f9d;
    border-radius: 3mm;
    padding: 4mm;
    box-sizing: border-box;
    background: #fff !important;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* QR code row — sits at the top, above photo & details */
  .print-qr-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5mm;
    padding-bottom: 2.5mm;
    border-bottom: 0.3mm dashed #cde2ea;
    flex-shrink: 0;
  }
  .print-qr-box {
    width: 30mm;
    height: 30mm;
    padding: 1mm;
    background: #fff;
    border: 0.3mm solid #e1edf3;
    border-radius: 1.5mm;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .print-qr-box img {
    display: block;
    width: 28mm;
    height: 28mm;
  }

  /* Photo + details row */
  .print-top {
    display: flex;
    gap: 3mm;
    align-items: flex-start;
    margin-bottom: 2mm;
    border-bottom: 0.3mm dashed #cde2ea;
    padding-bottom: 2mm;
    flex-shrink: 0;
  }
  .print-photo {
    width: 22mm;
    height: 27mm;
    border-radius: 1.5mm;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.3mm solid #d0e5ee;
  }
  .print-photo img { width: 100%; height: 100%; object-fit: cover; }
  .print-photo .no-photo { font-size: 10mm; color: #b8d4dd; }

  .print-info {
    flex: 1;
    min-width: 0;
  }
  .print-info .print-badge {
    font-size: 1.9mm;
    background: #c6e2e9;
    padding: 0.4mm 1.5mm;
    border-radius: 3mm;
    color: #1b5c69;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: inline-block;
    margin-bottom: 1mm;
  }
  .print-info h3 {
    margin: 0 0 1mm 0;
    font-size: 3.4mm;
    color: #0e3c48;
    border-bottom: 0.3mm solid #cde2ea;
    padding-bottom: 0.7mm;
    line-height: 1.15;
    word-wrap: break-word;
  }
  .print-info .contact-line {
    margin: 0.6mm 0;
    font-size: 2.2mm;
    color: #1b4a56;
    display: flex;
    gap: 1mm;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .print-info .contact-line strong {
    min-width: 9mm;
    display: inline-block;
    color: #0c2f39;
    text-transform: uppercase;
    font-size: 1.9mm;
    letter-spacing: 0.2px;
  }

  .print-schedule {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .print-schedule .schedule-title {
    font-size: 2.3mm;
    font-weight: 700;
    color: #8b6914;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 1.5mm;
    border-bottom: 0.3mm solid #f0e0b8;
    padding-bottom: 0.8mm;
    display: flex;
    align-items: center;
    gap: 1mm;
  }
  .print-schedule .schedule-title i {
    color: #2f8f9d;
    font-size: 2.1mm;
  }
  .print-schedule .schedule-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5mm 2mm;
    align-content: start;
    overflow: hidden;
  }
  .print-schedule .schedule-row {
    font-size: 2mm;
    color: #1b4a56;
    font-weight: 500;
    padding: 0.5mm 0;
    border-bottom: 0.2mm dotted #e1edf3;
    display: flex;
    align-items: center;
    gap: 0.8mm;
    line-height: 1.2;
    min-width: 0;
  }
  .print-schedule .schedule-row i {
    color: #2f8f9d;
    font-size: 1.8mm;
    flex-shrink: 0;
  }
  .print-schedule .schedule-row .num {
    font-weight: 700;
    color: #0e3c48;
    min-width: 3mm;
    font-size: 1.9mm;
  }
  .print-schedule .schedule-row span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
