@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: "Abu Dhabi Basis";
  src: url('/fonts/AbuDhabiBasis-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Abu Dhabi Basis";
  src: url('/fonts/AbuDhabiBasis-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Abu Dhabi Basis";
  src: url('/fonts/AbuDhabiBasis-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --font-sans: "Abu Dhabi Basis", Geist, "Geist Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Abu Dhabi Basis", var(--font-sans);
  --font-mono: "SFMono-Regular", "Geist Mono", Consolas, monospace;
  --ink: #0a0a0a;
  --muted: #666;
  --faint: #8a8a8a;
  --line: #e5e5e5;
  --soft: #fafafa;
  --panel: #fff;
  --accent: #111;
  --accent-strong: #000;
  --danger: #c32222;
  --ok: #0a7a3d;
  --warn: #9a6700;
  --shadow: 0 18px 50px rgba(0, 0, 0, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--soft);
  letter-spacing: 0;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease, box-shadow .16s ease;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
button:active, .button:active { transform: translateY(0); }
button.secondary, .button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.danger { background: #fff; border-color: #f0c6c6; color: var(--danger); }
button.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
button.active { background: #111; border-color: #111; color: #fff; }
button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
button[data-loading="true"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
textarea { min-height: 76px; resize: vertical; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 520; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 560; letter-spacing: 0; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
h3 { font-size: 14px; }
.gateway {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--soft);
}
.gateway-panel {
  width: min(380px, 100%);
  display: grid;
  gap: 20px;
  justify-items: center;
  align-content: center;
  text-align: center;
}
.brand { object-fit: contain; }
.login-brand { width: min(300px, 84vw); max-height: 96px; object-position: center; }
.gateway-panel > .panel {
  width: 100%;
  text-align: left;
  padding: 24px;
  box-shadow: var(--shadow);
}
.gateway-links { display: grid; gap: 10px; width: 100%; }
.gateway-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 520;
}
.app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 236px 1fr;
}
.sidebar {
  background: #fff;
  color: var(--ink);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { width: 174px; max-height: 56px; object-position: left center; padding: 3px 6px; }
.nav { display: grid; gap: 4px; }
.nav button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  justify-content: flex-start;
  padding: 0 10px;
  box-shadow: none;
}
.nav button:hover { color: var(--ink); background: #f4f4f4; transform: none; box-shadow: none; }
.nav button.active { background: #111; border-color: #111; color: #fff; }
.content {
  padding: 28px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel, .hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.loading-panel {
  min-height: 120px;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.loading-panel span {
  width: 18px;
  height: 18px;
  border: 2px solid #d8d8d8;
  border-right-color: #111;
  border-radius: 999px;
  animation: spin .7s linear infinite;
}
.hero-panel {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 20px;
}
.subtle-panel { background: #fbfbfb; }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  font-weight: 650;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.stat span { color: var(--muted); font-size: 12px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 650;
  margin-top: 8px;
}
.stat small { color: var(--faint); font-size: 12px; }
.toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.toolbar.compact { justify-content: end; }
.toolbar label { min-width: 150px; flex: 1; }
.settings-entity .section-heading { align-items: end; }
.settings-entity .toolbar.compact {
  flex: 1 1 760px;
  justify-content: flex-start;
}
.toolbar .user-search { flex: 1 1 320px; min-width: 260px; max-width: 440px; }
.toolbar-panel {
  grid-template-columns: minmax(340px, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.schedule-controls {
  flex-wrap: nowrap;
  align-items: end;
}
.schedule-controls .campus-filter {
  flex: 0 1 520px;
  max-width: 540px;
  min-width: 260px;
}
.schedule-controls button,
.ops-actions button {
  min-height: 34px;
  padding-inline: 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ops-shell {
  display: grid;
  gap: 12px;
}
.ops-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr) max-content;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  background: var(--soft);
  padding: 2px 0 10px;
}
.ops-viewer {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.ops-viewer input {
  width: 128px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 500;
  padding-inline: 9px;
}
.view-segment {
  display: inline-grid;
  grid-template-columns: repeat(2, 64px);
  min-height: 34px;
  padding: 3px;
  border: 1px solid #d8dce1;
  border-radius: 8px;
  background: #f4f6f8;
  gap: 2px;
}
.view-segment button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #5c636b;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.view-segment button:hover {
  transform: none;
  box-shadow: none;
  background: #fff;
}
.view-segment button.active {
  background: #111;
  color: #fff;
}
.date-stepper {
  display: inline-flex;
  gap: 5px;
}
.date-stepper button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}
.ops-date-picker {
  display: grid;
  gap: 3px;
  width: 150px;
}
.ops-date-picker .date-field-with-icon {
  display: block;
}
.ops-date-picker input.date-input {
  width: 100%;
}
.ops-weekday {
  color: #626a73;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  min-height: 10px;
  padding-left: 2px;
}
.ops-title {
  font-size: 14px;
  font-weight: 650;
  color: #343a42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-actions {
  display: flex;
  gap: 8px;
  justify-content: end;
  flex-wrap: wrap;
}
.compact-stats .stat {
  padding: 8px 10px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
}
.compact-stats .stat strong {
  font-size: 18px;
  margin-top: 4px;
  grid-row: 1 / span 2;
  grid-column: 2;
}
.compact-stats .stat span,
.compact-stats .stat small {
  font-size: 11px;
}
.ops-day, .ops-grid {
  display: grid;
  grid-template-columns: 92px repeat(var(--room-count, 8), minmax(124px, 1fr));
  overflow-x: auto;
  border: 1px solid #dfe3e8;
  background: #fff;
  max-height: calc(100vh - 245px);
}
.ops-corner, .ops-room, .ops-time, .ops-date-label, .ops-cell {
  border-right: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
}
.ops-room {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 620;
  color: #101010;
  background: #fff;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 3;
}
.ops-room span {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #8b949e;
  border-radius: 50%;
  color: #6b737c;
  font-size: 9px;
}
.ops-time, .ops-date-label {
  padding: 0 6px;
  font-weight: 620;
  color: #2378f7;
  background: #fff;
}
.ops-time {
  color: #1f2328;
  font-size: 10.5px;
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 5;
  border-right-color: #d3d8df;
  white-space: nowrap;
  display: grid;
  place-items: center;
  text-align: center;
}
.ops-cell {
  min-height: 68px;
  padding: 2px 0;
  display: grid;
  gap: 2px;
  align-content: start;
  position: relative;
  background:
    linear-gradient(to bottom, transparent calc(25% - 1px), rgba(223, 227, 232, .45) 25%, transparent calc(25% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(223, 227, 232, .45) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(75% - 1px), rgba(223, 227, 232, .45) 75%, transparent calc(75% + 1px)),
    #fff;
}
.ops-cell.tall { min-height: 118px; }
.ops-booking {
  width: 100%;
  min-height: auto;
  padding: 5px 8px 5px 12px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 1px;
  align-content: start;
  justify-items: start;
  text-align: left;
  font-family: var(--font-display);
  color: #075f59;
  background: #cdf7ed;
  border-color: #8fe8d4;
  border-left: 4px solid #0a8176;
  border-radius: 5px;
  box-shadow: none;
}
.ops-booking.scaled {
  position: absolute;
  left: 2px;
  right: 2px;
  z-index: 3;
  overflow: hidden;
}
.teacher-calendar { max-height: 520px; }
input[type="date"],
input.date-input,
input[type="month"] {
  font-weight: 700;
}
.ops-booking:hover { transform: none; box-shadow: none; background: #c2f2e6; }
.ops-booking strong {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.18;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ops-booking span, .ops-booking small {
  font-size: 9.5px;
  line-height: 1.18;
  color: #09675f;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-booking small {
  white-space: nowrap;
}
.ops-booking .booking-time {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #0a766d;
  white-space: nowrap;
  letter-spacing: 0;
}
.ops-booking .booking-teacher {
  white-space: nowrap;
}
.ops-booking .booking-teacher { font-weight: 620; }
.ops-booking .booking-students { font-weight: 600; }
.ops-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  border: 1px solid #dfe3e8;
  background: #fff;
  overflow-x: auto;
}
.ops-month-day {
  min-height: 150px;
  border-right: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
  padding: 10px;
  cursor: pointer;
}
.ops-month-day header {
  display: flex;
  justify-content: space-between;
  color: #2378f7;
  font-weight: 700;
}
.empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #454b54;
}
.empty-state strong {
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  background: #fff;
}
.segmented button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.segmented button:hover { transform: none; box-shadow: none; }
.segmented button.active { background: #111; color: #fff; }
.compact-segmented button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.settings-shell {
  gap: 16px;
}
.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-tabs button {
  min-height: 34px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}
.settings-tabs button:hover { transform: none; box-shadow: none; background: #f6f6f6; color: var(--ink); }
.settings-tabs button.active { background: #111; color: #fff; border-color: #111; }
.settings-entity h2 { font-size: 16px; }
.compact-table th, .compact-table td {
  padding: 8px 10px;
  font-size: 12px;
}
.row-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}
.pagination {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pagination:empty { display: none; }
.list-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
}
.list-summary strong {
  color: var(--ink);
  font-size: 18px;
}
.sr-only-date {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.date-field-with-icon {
  position: relative;
  display: block;
}
.date-field-with-icon input {
  width: 100%;
  padding-right: 44px;
}
.icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.icon-button:hover { transform: none; }
.date-field-with-icon .icon-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.calendar-button::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) 2px 4px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px -1px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 10px -1px / 2px 5px no-repeat;
}
.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cell-link {
  font-weight: 600;
}
.history-lesson {
  margin: 0;
}
.toolbar-search {
  min-width: min(360px, 100%);
  flex: 1 1 280px;
}
.compact-grid {
  grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) auto;
  align-items: end;
}
.two-column-grid {
  grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr);
}
.align-end {
  align-self: end;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.22);
  display: block;
  padding: 20px;
  overflow: auto;
}
.nested-modal {
  z-index: 40;
  background: rgba(0,0,0,.3);
}
.modal-card {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.compact-modal {
  width: min(520px, calc(100vw - 36px));
}
.download-center-modal {
  width: min(980px, calc(100vw - 36px));
}
.template-center-modal {
  width: min(1040px, calc(100vw - 36px));
}
.download-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.template-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr);
  gap: 14px;
  align-items: start;
}
.download-filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.download-filter-panel .mini-heading {
  margin: -12px -12px 2px;
}
.mini-heading {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.mini-heading strong {
  font-size: 13px;
  font-weight: 700;
}
.mini-heading span {
  display: inline-flex;
  gap: 6px;
}
.check-list {
  max-height: 330px;
  overflow: auto;
  padding: 6px;
  display: grid;
  gap: 4px;
}
.check-row {
  min-height: 38px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.check-row:hover {
  background: #f5f5f5;
}
.check-row input {
  width: 15px;
  height: 15px;
}
.check-row span {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.check-row strong {
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.check-row small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.template-preview {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 8px;
  display: grid;
  gap: 7px;
  align-content: start;
}
.template-line {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #e7eaee;
  border-radius: 7px;
  background: #fff;
}
.template-line strong,
.template-line span,
.template-line small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.template-line strong {
  font-size: 12px;
  color: #0a8176;
}
.template-line span {
  font-size: 12px;
  color: var(--ink);
}
.template-line small {
  color: var(--muted);
  font-size: 11px;
}
.download-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.booking-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.compact-copy-card {
  width: min(760px, calc(100vw - 36px));
}
.booking-form {
  display: grid;
  gap: 18px;
}
.booking-form label {
  gap: 5px;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  font-size: 13px;
  font-weight: 500;
}
.booking-form textarea[name="notes"] {
  min-height: 42px;
  height: 42px;
  resize: vertical;
}
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  color: #fff;
  background: #5f8291;
}
.booking-header .eyebrow { color: rgba(255,255,255,.78); }
.booking-header h2 { color: #fff; font-size: 24px; }
.booking-form > .notice,
.booking-form > .form-grid,
.booking-form > .toolbar {
  margin-left: 24px;
  margin-right: 24px;
}
.booking-form > .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-booking-form > .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.copy-lesson-grid {
  align-items: end;
}
.repeat-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
  display: grid;
  gap: 10px;
}
.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.repeat-dates {
  display: grid;
  gap: 10px;
}
.repeat-date-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.repeat-date-field {
  flex: 1 1 240px;
}
.repeat-date-row .small {
  min-height: 40px;
}
.date-chip-list {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px 5px 10px;
  border: 1px solid #d8dce1;
  border-radius: 999px;
  background: #f6f8fa;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.date-chip button {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
  font-size: 15px;
  line-height: 1;
  box-shadow: none;
}
.date-chip-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.repeat-dates small,
.copy-day-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.always-repeat-box .repeat-dates {
  display: grid;
}
.compact-copy-teacher {
  min-height: 72px;
}
.readonly-field {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
  display: grid;
  gap: 3px;
}
.readonly-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 660;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.readonly-field strong {
  color: var(--ink);
  font-size: 14px;
}
.readonly-field small {
  color: var(--muted);
  font-size: 12px;
}
.booking-footer {
  position: sticky;
  bottom: 0;
  padding: 14px 0 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.modal-card .section-heading {
  align-items: center;
}
.compact-form {
  grid-template-columns: 1fr;
  gap: 10px;
}
.quick-student-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-form label {
  font-size: 11px;
}
.compact-form input, .compact-form select, .compact-form textarea {
  min-height: 34px;
  font-size: 13px;
}
.calendar {
  display: grid;
  gap: 10px;
}
.calendar-day { grid-template-columns: 1fr; }
.calendar-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-month { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; }
.calendar-day-cell {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.calendar-day-cell header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.calendar-day-cell header strong { color: var(--ink); font-family: var(--font-mono); font-weight: 560; }
.calendar-items { display: grid; gap: 8px; }
.calendar-lesson {
  border-color: #d8d8d8;
  background: #fafafa;
  color: var(--ink);
  min-height: auto;
  padding: 10px;
  display: grid;
  justify-items: start;
  text-align: left;
  box-shadow: none;
}
.calendar-lesson:hover { background: #f2f2f2; box-shadow: none; }
.calendar-lesson .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.calendar-lesson b { font-size: 13px; font-weight: 560; }
.calendar-lesson small { color: var(--muted); font-size: 11px; }
.lesson-list { display: grid; gap: 10px; }
.lesson {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.lesson-action {
  width: 100%;
  color: inherit;
  text-align: left;
  justify-items: stretch;
  box-shadow: none;
}
.lesson-action:hover {
  transform: none;
  box-shadow: none;
  border-color: #cfd6df;
  background: #fbfcfd;
}
.lesson header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.list-calendar-panel {
  display: grid;
  gap: 10px;
}
.list-tools {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  align-items: end;
  gap: 12px;
}
.list-tools strong,
.list-tools span {
  display: block;
}
.list-tools strong {
  font-size: 13px;
}
.list-tools span {
  color: var(--muted);
  font-size: 12px;
}
.list-tools label {
  font-size: 12px;
  color: var(--faint);
}
.list-tools input {
  min-height: 34px;
  font-size: 12px;
}
.list-results {
  display: grid;
  gap: 10px;
}
.lesson-viewer {
  max-width: 760px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-grid > div,
.detail-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfd;
}
.detail-grid span,
.detail-block span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.detail-block {
  margin-top: 10px;
}
.detail-block p {
  margin: 0;
  color: var(--muted);
}
.attendance-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.attendance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.attendance-row:nth-child(even) { background: #fafafa; }
.attendance-row:hover { background: #f4f7fb; }
.attendance-row:last-child { border-bottom: 0; }
.attendance-row.is-submitted { box-shadow: inset 3px 0 0 #0a8176; }
.attendance-row h3 { font-size: 15px; margin: 0 0 4px; }
.attendance-row .roster-preview {
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
}
.attendance-row-meta {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 260px;
}
.attendance-modal {
  width: min(920px, calc(100vw - 32px));
}
.student-name {
  display: block;
  font-weight: 650;
}
.student-code {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.check-row {
  min-height: 42px;
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
}
.check-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}
.meta { color: var(--muted); font-size: 12px; }
.pill {
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--ink);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}
.pill.ok { background: #e7f8ee; color: var(--ok); }
.pill.warn { background: #fff6d8; color: var(--warn); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.full { grid-column: 1 / -1; }
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
}
.required-mark {
  color: var(--danger);
  font-weight: 700;
  line-height: 1;
}
.student-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.student-picker > input { grid-column: 1 / -1; }
.student-picker-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.student-picker-head label { margin: 0; }
.student-picker-head button { min-width: 112px; }
.teacher-picker {
  display: grid;
  gap: 8px;
  position: relative;
  align-self: start;
}
.teacher-picker label { margin: 0; }
.teacher-results {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 0 !important;
  max-height: 190px;
  overflow: auto;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14);
}
.teacher-selected {
  display: none !important;
}
.search-results, .selected-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 108px;
  padding: 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.search-results button {
  min-height: auto;
  border: 1px solid transparent;
  background: #fafafa;
  color: var(--ink);
  justify-content: space-between;
  box-shadow: none;
  padding: 9px 10px;
}
.search-results button:hover { background: #f2f2f2; box-shadow: none; transform: none; }
.search-results span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.student-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 7px 5px 10px;
  background: #fafafa;
  font-size: 12px;
}
.student-chip small { color: var(--muted); font-family: var(--font-mono); }
.student-chip button {
  width: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px; font-size: 13px; }
th { color: var(--faint); font-size: 11px; text-transform: uppercase; font-weight: 620; }
.report-panel .section-heading { align-items: end; }
.report-search { width: min(320px, 100%); }
.notice { color: var(--muted); font-size: 13px; margin: 0; }
.teacher-note-alert {
  margin: 12px 0 16px;
  border: 1px solid #e4b245;
  border-radius: 8px;
  background: #fff8df;
  color: #5f4200;
  padding: 14px 16px;
  box-shadow: inset 4px 0 0 #b87500;
}
.teacher-note-alert span {
  display: block;
  color: #815800;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teacher-note-alert p {
  margin: 6px 0 0;
  color: #151515;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}
.teacher-note-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4b245;
  border-radius: 999px;
  background: #fff4c7;
  color: #6d4d00;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.success { color: #087443; font-weight: 560; font-size: 13px; margin: 0; }
.error { color: var(--danger); font-weight: 560; font-size: 13px; margin: 0; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }
.sr-only,
.sr-only-date {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.viewer-page {
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
}
.viewer-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 42px) 42px;
  display: grid;
  gap: 16px;
}
.viewer-header {
  display: flex;
  gap: 28px;
  align-items: center;
}
.viewer-brand {
  width: min(330px, 38vw);
  height: auto;
  object-fit: contain;
}
.viewer-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
}
.viewer-control-panel { display: grid; gap: 12px; }
.viewer-control-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.viewer-toolbar {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.viewer-toolbar > * {
  flex: 0 0 auto;
  min-width: 0;
}
.viewer-toolbar > button { white-space: nowrap; }
.viewer-toolbar > label {
  display: grid;
  gap: 5px;
  width: clamp(180px, 16vw, 260px);
  min-width: 180px;
}
.viewer-toolbar select {
  width: 100%;
  min-height: 40px;
}
.viewer-toolbar .view-segment {
  align-self: center;
  width: 224px;
}
.viewer-toolbar .date-stepper {
  align-self: center;
}
.viewer-toolbar .ops-date-picker {
  flex-basis: 250px;
  min-width: 250px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 72px;
  align-items: center;
  gap: 6px 10px;
}
.viewer-toolbar .ops-date-picker label {
  min-width: 0;
}
.viewer-toolbar .date-field-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewer-toolbar .date-field-with-icon input {
  width: 150px;
  min-height: 40px;
  padding-right: 12px;
}
.viewer-toolbar .date-field-with-icon .icon-button {
  position: static;
  transform: none;
  flex: 0 0 40px;
}
.viewer-toolbar .ops-weekday {
  min-height: auto;
  padding-left: 0;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  overflow: visible;
}
.viewer-search {
  width: min(520px, 100%);
  max-width: 520px;
  min-height: 78px;
}
.viewer-summary {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.viewer-summary > div {
  display: grid;
  gap: 2px;
  width: 140px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}
.viewer-summary > div:last-child { width: 240px; }
.viewer-summary strong {
  font-size: 16px;
  white-space: nowrap;
}
.viewer-summary span {
  color: var(--muted);
  font-size: 12px;
}
.viewer-calendar {
  max-height: calc(100vh - 320px);
  grid-template-columns: 92px repeat(var(--room-count, 8), minmax(160px, 1fr));
}
.viewer-booking {
  cursor: pointer;
  padding: 8px 10px 8px 14px;
  gap: 2px;
  align-content: start;
}
.viewer-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.viewer-list .list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.viewer-list .list-summary > div {
  display: grid;
  gap: 2px;
}
.viewer-list .viewer-search {
  width: min(420px, 42vw);
  max-width: 420px;
  min-height: auto;
}
.viewer-list .viewer-search input {
  min-height: 42px;
}
.viewer-list .list-summary span,
.viewer-list-row .meta {
  color: var(--muted);
  font-size: 13px;
}
.viewer-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.viewer-list-row:nth-of-type(even) { background: #fafafa; }
.viewer-list-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.viewer-list-row .meta { margin: 0 0 6px; }
.viewer-lesson-modal { max-width: 780px; }
.viewer-student-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.viewer-student-list li {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.viewer-student-list span {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.detail-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 1320px) {
  .viewer-control-main {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .viewer-toolbar { flex-wrap: wrap; }
  .viewer-summary {
    width: 100%;
    justify-content: flex-start;
  }
  .viewer-summary > div { width: min(220px, calc(50% - 5px)); }
  .viewer-summary > div:last-child { width: min(320px, 100%); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; height: auto; padding: 14px; }
  .sidebar-brand { width: 138px; }
  .nav { display: flex; overflow: auto; }
  .nav button { white-space: nowrap; }
  .content { padding: 16px; }
  .grid.two, .grid.three, .form-grid, .hero-panel, .toolbar-panel, .student-picker, .download-filter-grid, .template-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .calendar-week, .calendar-month { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .viewer-header { display: grid; }
  .viewer-brand { width: 260px; }
  .viewer-toolbar {
    display: grid;
    grid-template-columns: 1fr 92px;
    align-items: stretch;
  }
  .viewer-toolbar > * { width: 100%; }
  .viewer-toolbar > label { min-width: 0; }
  .viewer-toolbar .view-segment,
  .viewer-toolbar .ops-date-picker,
  .viewer-toolbar > label,
  .viewer-toolbar > button {
    grid-column: 1 / -1;
  }
  .viewer-toolbar .date-stepper { grid-column: 1 / -1; }
  .viewer-summary { display: grid; grid-template-columns: 1fr; }
  .viewer-summary > div,
  .viewer-summary > div:last-child { width: 100%; }
  .viewer-list-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Viewer page — single consolidated layout (replaces 4 stacked/conflicting
   overrides that previously existed here). No forced min-width, no !important
   pixel-locked grids — this uses flexbox with sensible min-widths so the
   toolbar stays aligned and clickable at any zoom level or viewport width,
   instead of breaking at specific hard-coded breakpoints.
   ========================================================================== */
body.viewer-page {
  margin: 0;
}
.viewer-page,
.viewer-page *,
.viewer-page *::before,
.viewer-page *::after {
  box-sizing: border-box;
}
.viewer-page {
  overflow-x: hidden;
}

.viewer-page .viewer-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px clamp(12px, 2vw, 32px) 40px;
}

.viewer-page .viewer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 0 0 12px;
}
.viewer-page .viewer-brand {
  flex: 0 0 auto;
  width: min(280px, 32vw);
  height: auto;
}
.viewer-page .viewer-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.viewer-page .viewer-control-panel {
  padding: 14px 16px;
  overflow: visible;
}
.viewer-page .viewer-control-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.viewer-page .viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 640px;
  min-width: 0;
}
.viewer-page .viewer-toolbar .view-segment {
  flex: 0 0 auto;
  width: auto;
}
.viewer-page .viewer-toolbar .ops-date-picker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.viewer-page .viewer-toolbar .date-field-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.viewer-page .viewer-toolbar .date-field-with-icon input {
  width: 168px;
  height: 38px;
  padding: 0 34px 0 10px;
}
.viewer-page .viewer-toolbar .date-field-with-icon .icon-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  right: 4px;
  padding: 0;
}
/* The weekday is intentionally not repeated in the compact toolbar row — it
   is already shown in full in the summary card on the right (e.g. "Tuesday,
   14 July 2026"), so showing it twice would just re-introduce clutter. */
.viewer-page .viewer-toolbar .ops-weekday {
  display: none;
}
.viewer-page .viewer-toolbar > label {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viewer-page .viewer-toolbar select {
  height: 38px;
  width: 100%;
}
.viewer-page .viewer-toolbar > button {
  height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.viewer-page .viewer-summary {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.viewer-page .viewer-summary > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 96px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.viewer-page .viewer-summary > div:last-child {
  min-width: 220px;
}
/* Key fix: the long date label ("TUESDAY, 14 JULY 2026") was overflowing its
   box because it was forced onto one line at a fixed width. Letting it wrap
   keeps it inside the card at any zoom level. */
.viewer-page .viewer-summary strong {
  font-size: 17px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.viewer-page .viewer-summary span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.viewer-page #viewerContent {
  width: 100%;
  min-width: 0;
}

.viewer-page .viewer-list .list-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.viewer-page .viewer-list .list-summary > span {
  white-space: nowrap;
  font-weight: 700;
  color: var(--muted);
}
.viewer-page .viewer-list .viewer-search {
  margin-left: auto;
  width: min(360px, 100%);
  min-height: auto;
}
.viewer-page .viewer-list .viewer-search input {
  width: 100%;
}

@media (max-width: 1080px) {
  .viewer-page .viewer-control-main {
    flex-direction: column;
    align-items: stretch;
  }
  .viewer-page .viewer-summary {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .viewer-page .viewer-header {
    flex-wrap: wrap;
  }
  .viewer-page .viewer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .viewer-page .viewer-toolbar > * {
    width: 100%;
  }
  .viewer-page .viewer-summary {
    flex-direction: column;
    width: 100%;
  }
  .viewer-page .viewer-summary > div,
  .viewer-page .viewer-summary > div:last-child {
    min-width: 0;
    width: 100%;
  }
  .viewer-page .viewer-list .viewer-search {
    margin-left: 0;
    width: 100%;
  }
}
