:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2ff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #3730a3;
  --primary-hover: #312e81;
  --primary-soft: #eef2ff;
  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --danger: #be123c;
  --danger-soft: #fff1f2;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --violet: #6d28d9;
  --violet-soft: #f5f3ff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1e293b;
  --surface-3: #1e1b4b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #273449;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-soft: rgba(99, 102, 241, 0.16);
  --emerald: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(244, 63, 94, 0.14);
  --info: #38bdf8;
  --info-soft: rgba(14, 165, 233, 0.14);
  --violet: #c4b5fd;
  --violet-soft: rgba(139, 92, 246, 0.15);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, .btn, .nav-btn, input:not([type="checkbox"]):not([type="radio"]), select {
  min-height: 44px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #312e81, #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.25);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.account-wrap {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.account-trigger:hover {
  border-color: var(--primary);
}

.role-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.role-dot.is-teacher {
  background: #6366f1;
}

.account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-role {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(270px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 60;
}

.popover-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.popover-name {
  font-weight: 800;
  font-size: 14px;
}

.popover-meta {
  font-size: 12px;
  color: var(--muted);
}

.popover-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popover-item:hover {
  background: var(--surface-2);
}

.popover-danger {
  color: var(--danger);
}

.popover-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

/* Container & Layout */
.container {
  max-width: 1260px;
  margin: 22px auto 64px;
  padding: 0 18px;
}

/* Auth Gate */
.auth-gate {
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
}

.auth-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 12px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

/* Forms & Controls */
.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  border-color: var(--primary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}

.btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

html[data-theme="dark"] .btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-emerald {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

html[data-theme="dark"] .btn-emerald {
  background: #059669;
  border-color: #059669;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

/* Cards & Grids */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.page-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 16px;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 2px;
  line-height: 1.2;
}

.stat-foot {
  font-size: 12px;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 16px;
  align-items: start;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald); border-color: transparent; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

/* Attendance Pills */
.att-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.att-pill {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s;
}

.att-pill[data-status="H"].active { background: #047857; border-color: #047857; color: #fff; }
.att-pill[data-status="I"].active { background: #0369a1; border-color: #0369a1; color: #fff; }
.att-pill[data-status="S"].active { background: #b45309; border-color: #b45309; color: #fff; }
.att-pill[data-status="A"].active { background: #be123c; border-color: #be123c; color: #fff; }
.att-pill[data-status="T"].active { background: #6d28d9; border-color: #6d28d9; color: #fff; }

.inline-input {
  width: 100%;
  min-width: 140px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
}

.score-input {
  width: 90px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 700;
}

/* Schedule Cards */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-card.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.slot-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
}

.slot-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.slot-title {
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0;
}

.slot-meta {
  font-size: 12px;
  color: var(--muted);
}

.slot-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* Matrix Checkboxes */
.matrix-check {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.matrix-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Assignment List & Feed */
.list-stack {
  display: grid;
  gap: 12px;
}

.item-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface);
}

.item-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.item-card.pinned {
  border-left: 4px solid var(--amber);
}

.item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.item-title {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
}

.item-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  white-space: pre-line;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Alerts & Loading */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.alert-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(190, 18, 60, 0.25);
}

.alert-info {
  background: var(--info-soft);
  color: var(--info);
}

.loading-card {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-box {
  padding: 26px 18px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Report Print Sheet */
.report-sheet {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.report-kop {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.report-kop h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.report-kop p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #475569;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.report-sec {
  margin-top: 18px;
}

.report-sec h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1e293b;
}

.report-sheet table {
  border: 1px solid #cbd5e1;
}

.report-sheet th {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.report-sheet td {
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.report-sign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
  font-size: 13.5px;
  text-align: center;
}

.sign-space {
  height: 64px;
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 90;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.modal-body {
  padding: 18px 20px 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: grid;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: #0f172a;
  color: #f8fafc;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.toast.is-err {
  background: #be123c;
  color: #ffffff;
}

/* Mobile Bottom Nav & Drawer */
.mobile-bottom-nav {
  display: none;
}

.mobile-more-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 80;
  display: flex;
  align-items: flex-end;
}

.mobile-more-drawer[hidden] {
  display: none;
}

.mobile-more-sheet {
  width: 100%;
  background: var(--surface);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.drawer-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .account-role {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 8px 12px;
    min-height: 58px;
  }
  #mainNav {
    display: none !important;
  }
  #btnThemeToggle {
    display: none;
  }
  .container {
    margin-top: 14px;
    padding: 0 12px 92px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-val {
    font-size: 21px;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }
  .mobile-bottom-nav[hidden] {
    display: none;
  }
  .mnav-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 2px;
    min-height: 48px;
    cursor: pointer;
  }
  .mnav-btn.active {
    color: var(--primary);
  }
  .mnav-ico {
    font-size: 17px;
    line-height: 1;
  }
  .toast-host {
    bottom: 76px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .report-sheet {
    padding: 18px 16px;
  }
  .report-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .tab-panel {
    display: none !important;
  }
  #panel-report {
    display: block !important;
  }
  .report-sheet {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
