:root {
  --blue: #0b63f6;
  --blue-dark: #06224b;
  --ink: #111827;
  --muted: #667085;
  --line: #e7eaf0;
  --soft: #f5f7fb;
  --green: #15a46b;
  --red: #f04438;
  --amber: #f97316;
  --violet: #7c3aed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(11, 99, 246, 0.28), transparent 28rem),
    linear-gradient(140deg, #031225, #071b36 42%, #eef4ff);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
}

.doc-page {
  display: block;
  min-height: 100vh;
  background: #f4f7fb;
}

.doc-content {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
  color: var(--ink);
}

.doc-content h1 {
  margin-bottom: 18px;
}

.doc-content h2 {
  margin: 26px 0 8px;
}

.doc-content p {
  color: #475467;
  line-height: 1.65;
}

.phone-shell {
  width: min(100vw, 430px);
  height: min(100vh, 920px);
  min-height: 720px;
  background: #fff;
  border: 10px solid #071426;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.app-screen {
  position: absolute;
  inset: 0;
  padding-bottom: 86px;
  overflow-y: auto;
  background: #fff;
  display: none;
}

.app-screen.is-active {
  display: block;
}

.auth-screen {
  padding: 26px;
  display: none;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 25, 59, 0.98), rgba(8, 65, 127, 0.94)),
    url("data:image/svg+xml,%3Csvg width='430' height='700' viewBox='0 0 430 700' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232f80ed' stroke-opacity='.18'%3E%3Cpath d='M-30 620 430 160M20 700 430 290M90 700 430 360M180 700 430 450'/%3E%3C/g%3E%3C/svg%3E");
}

.auth-screen.is-active {
  display: grid;
}

.auth-card {
  width: 100%;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 22px;
  background: #fff;
  color: var(--blue);
  font-size: 31px;
  font-weight: 950;
}

.auth-copy {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.auth-card label {
  color: rgba(255, 255, 255, 0.82);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-tabs button {
  min-height: 42px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 850;
}

.auth-tabs button.active {
  color: var(--blue-dark);
  background: #fff;
}

.hero-header,
.profile-header {
  min-height: 180px;
  padding: 18px 20px 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 25, 59, 0.98), rgba(8, 65, 127, 0.94)),
    url("data:image/svg+xml,%3Csvg width='430' height='180' viewBox='0 0 430 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232f80ed' stroke-opacity='.24'%3E%3Cpath d='M150 180 430 36M195 180 430 58M240 180 430 80M285 180 430 102M330 180 430 124'/%3E%3C/g%3E%3C/svg%3E");
}

.profile-header {
  min-height: 214px;
}

.top-bar,
.plain-header,
.section-row,
.profile-row,
.month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plain-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 18px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.plain-header h1 {
  font-size: 17px;
  text-align: center;
}

h2 {
  font-size: 15px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 28px 0 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.icon-btn,
.round-action,
.danger-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
  font-size: 19px;
}

.plain-header .icon-btn {
  color: var(--ink);
  background: #f4f7fb;
}

.round-action {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 99, 246, 0.24);
}

.danger-icon {
  background: #fee4e2;
  color: var(--red);
}

.hidden {
  visibility: hidden;
}

.file-input {
  display: none;
}

.alert {
  color: #ff4f6d;
}

.panel {
  margin: -22px 14px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.lifted {
  box-shadow: 0 16px 36px rgba(25, 48, 89, 0.12);
}

.content-pad {
  padding: 18px;
}

.text-btn {
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

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

.stat {
  min-height: 86px;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.stat strong {
  font-size: 25px;
}

.stat span {
  color: #344054;
  font-size: 12px;
}

.blue,
.calendar-event.blue {
  background: #eaf2ff;
  color: #0557dd;
}

.violet,
.calendar-event.violet {
  background: #f2eaff;
  color: var(--violet);
}

.green,
.calendar-event.green {
  background: #e9f8ef;
  color: var(--green);
}

.amber,
.calendar-event.amber {
  background: #fff4e8;
  color: var(--amber);
}

.red,
.calendar-event.red {
  background: #fff0f0;
  color: var(--red);
}

.schedule-list,
.manage-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.empty-state {
  padding: 20px;
  border: 1px dashed #cfd6e3;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.schedule-card,
.manage-card {
  display: grid;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.schedule-card {
  grid-template-columns: 72px 1fr auto;
}

.manage-card {
  grid-template-columns: 1fr auto;
}

.schedule-card small,
.schedule-card span,
.hall-meta span,
.user-card span,
.manage-card span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-card strong,
.manage-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.badge {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.badge.busy {
  color: #067647;
  background: #dcfae6;
}

.badge.free {
  color: #175cd3;
  background: #eaf2ff;
}

.badge.cancelled {
  color: #b42318;
  background: #fee4e2;
}

.month-row {
  align-items: start;
  margin-bottom: 14px;
}

.month-row input {
  width: 148px;
  padding: 9px;
  font-size: 12px;
}

.month-row span,
.report-date {
  color: var(--muted);
  font-size: 13px;
}

.days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.days-strip button {
  height: 58px;
  border-radius: 18px;
  background: #f6f8fb;
  color: #667085;
}

.days-strip small,
.days-strip strong {
  display: block;
}

.days-strip strong {
  margin-top: 6px;
  color: var(--ink);
}

.days-strip .selected {
  background: var(--blue);
  color: #fff;
}

.days-strip .selected strong {
  color: #fff;
}

.calendar-grid {
  display: grid;
  gap: 9px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: stretch;
}

.calendar-row time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 10px;
}

.calendar-event {
  min-height: 58px;
  padding: 12px;
  border: 1px solid #cfe2ff;
  border-radius: 10px;
}

.calendar-event strong,
.calendar-event span {
  display: block;
}

.calendar-event span {
  margin-top: 3px;
  color: #475467;
  font-size: 12px;
}

.form,
.compact-form {
  display: grid;
  gap: 13px;
}

.form.is-hidden {
  display: none;
}

.compact-form {
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea,
.search,
.report-date {
  width: 100%;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.1);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-btn {
  min-height: 52px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(11, 99, 246, 0.22);
}

.form-alert {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
}

.chips button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.chips .active {
  background: var(--blue);
  color: #fff;
}

.spacious {
  margin-top: 10px;
}

.hall-list {
  display: grid;
  gap: 12px;
}

.hall-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.hall-photo {
  min-height: 118px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.18), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.36) 35px 37px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(255, 255, 255, 0.22) 33px 35px),
    linear-gradient(145deg, #a76631, #e3b067 42%, #8a4d24);
  position: relative;
  overflow: hidden;
}

.hall-photo::before,
.hall-photo::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.hall-photo::before {
  width: 80px;
  height: 80px;
  left: 18px;
  top: 24px;
}

.hall-photo::after {
  width: 38px;
  height: 38px;
  right: -12px;
  bottom: 12px;
}

.hall-card h2 {
  margin: 2px 0 8px;
}

.hall-meta {
  display: grid;
  gap: 5px;
}

.active-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #067647;
  background: #dcfae6;
  font-size: 11px;
  font-weight: 850;
}

.profile-row {
  justify-content: flex-start;
  margin-top: 38px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.avatar.small {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.profile-row p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.menu-panel {
  padding: 8px 0;
}

.menu-title {
  padding: 16px 18px 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 850;
}

.menu-panel button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  border-top: 1px solid #f0f2f6;
  text-align: left;
  font-weight: 750;
}

.menu-panel .logout {
  justify-content: flex-start;
  color: var(--red);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 38px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

#clubForm {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) 38px;
}

.desktop-wide {
  display: grid;
  gap: 18px;
}

.yearly-form,
.issue-form {
  margin-bottom: 0;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.weekday-picker legend {
  padding: 0 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7fb;
}

.weekday-picker input {
  width: auto;
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.info-panel p {
  margin-top: 8px;
  color: #475467;
  line-height: 1.6;
}

.report-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.print-btn {
  min-height: 44px;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.issue-card.resolved {
  opacity: 0.72;
}

.issue-card img,
.issue-placeholder {
  width: 116px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4ff;
}

.issue-placeholder {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 950;
}

.issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.issue-head span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #067647;
  background: #dcfae6;
  font-size: 11px;
  font-weight: 850;
}

.issue-card:not(.resolved) .issue-head span {
  color: #b54708;
  background: #fff4df;
}

.issue-card p {
  margin: 8px 0;
  color: #475467;
  line-height: 1.5;
}

.issue-card small {
  color: var(--muted);
}

.report-table {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.report-table table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 12px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  font-size: 13px;
}

.report-table th {
  color: #344054;
  background: #f8fbff;
  font-weight: 850;
}

.print-only {
  display: none;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini-actions button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #344054;
  background: #f4f7fb;
  font-weight: 900;
}

.mini-actions .delete {
  color: var(--red);
  background: #fff0f0;
}

.chart {
  height: 172px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 16px;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.chart span {
  flex: 1;
  min-height: 16px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #0b63f6, #85b7ff);
}

.bars {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.bars p {
  display: grid;
  grid-template-columns: 116px 1fr 28px;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 12px;
}

.bars b {
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.bars em {
  color: var(--muted);
  font-style: normal;
}

.user-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card em {
  display: inline-flex;
  justify-self: end;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #344054;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.user-actions {
  justify-content: flex-end;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 78px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav.is-visible {
  display: grid;
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav span {
  font-size: 20px;
}

.bottom-nav .active {
  color: var(--blue);
}

@media (max-width: 460px) {
  body {
    display: block;
    background: #fff;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  body {
    display: block;
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(244, 247, 251, 0.96)),
      radial-gradient(circle at top right, rgba(21, 164, 107, 0.18), transparent 28rem),
      radial-gradient(circle at top left, rgba(11, 99, 246, 0.18), transparent 28rem);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f4f7fb;
  }

  .app-screen {
    padding: 0 0 0 264px;
    background: #f4f7fb;
  }

  .auth-screen {
    padding: 56px;
    place-items: center;
    background:
      linear-gradient(135deg, rgba(2, 25, 59, 0.96), rgba(8, 65, 127, 0.9)),
      url("data:image/svg+xml,%3Csvg width='980' height='760' viewBox='0 0 980 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236cb6ff' stroke-opacity='.16'%3E%3Cpath d='M0 620 980 70M0 700 980 210M130 760 980 290M260 760 980 380M390 760 980 470'/%3E%3C/g%3E%3C/svg%3E");
  }

  .auth-card {
    max-width: 520px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  }

  .hero-header,
  .profile-header {
    min-height: 180px;
    padding: 28px clamp(32px, 4vw, 64px) 42px;
  }

  .plain-header {
    position: static;
    max-width: none;
    padding: 30px clamp(32px, 4vw, 64px) 10px;
    background: transparent;
    backdrop-filter: none;
  }

  .plain-header .icon-btn,
  .top-bar .icon-btn {
    display: none;
  }

  .plain-header h1 {
    font-size: 28px;
    text-align: left;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 18px;
  }

  .panel {
    max-width: min(1760px, calc(100vw - 264px - clamp(64px, 8vw, 128px)));
    margin: -24px clamp(32px, 4vw, 64px) 0;
    border-radius: 14px;
  }

  .content-pad {
    max-width: min(1760px, calc(100vw - 264px - clamp(64px, 8vw, 128px)));
    padding: 24px clamp(32px, 4vw, 64px);
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-list {
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  #termsList,
  #todaySchedule {
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  }

  .calendar-row {
    grid-template-columns: 68px 1fr;
  }

  .days-strip {
    max-width: 720px;
  }

  .form.content-pad,
  #screen-users .content-pad,
  #screen-types .content-pad,
  #screen-clubs .content-pad,
  #screen-reports .content-pad {
    max-width: min(1380px, calc(100vw - 264px - clamp(64px, 8vw, 128px)));
  }

  .two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hall-list {
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  }

  .user-card {
    grid-template-columns: 48px minmax(0, 1fr) 180px;
    padding: 16px;
  }

  .avatar.small {
    width: 48px;
    height: 48px;
  }

  .menu-panel {
    max-width: 760px;
    margin-top: -36px;
  }

  .report-controls {
    grid-template-columns: 160px minmax(220px, 1fr) 190px;
  }

  .bottom-nav {
    top: 0;
    right: auto;
    width: 264px;
    height: 100vh;
    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: 112px repeat(5, 58px) 1fr;
    align-content: start;
    padding: 26px 16px;
    background:
      linear-gradient(180deg, #071b36, #04152d);
    border-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bottom-nav.is-visible {
    display: grid;
  }

  .bottom-nav::before {
    content: attr(data-brand);
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
  }

  .bottom-nav::after {
    content: "Online termini i dvorane";
    align-self: end;
    padding: 18px 12px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.45;
  }

  .bottom-nav button {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
  }

  .bottom-nav .active {
    color: #fff;
    background: rgba(11, 99, 246, 0.28);
  }

  .bottom-nav span {
    font-size: 22px;
  }
}

@media (min-width: 1500px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }

  #todaySchedule,
  #termsList {
    grid-template-columns: repeat(3, minmax(360px, 1fr));
  }

  .calendar-grid {
    max-width: 1280px;
  }

  #screen-users .content-pad,
  #screen-types .content-pad,
  #screen-clubs .content-pad,
  #screen-reports .content-pad {
    max-width: 1480px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff;
    color: #111827;
  }

  .phone-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    overflow: visible;
  }

  .app-screen {
    position: static !important;
    display: none !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff;
  }

  #screen-reports {
    display: block !important;
  }

  .bottom-nav,
  .bottom-nav.is-visible,
  .hero-header,
  .profile-header,
  .plain-header,
  .plain-header .icon-btn,
  .report-controls,
  .chart {
    display: none !important;
  }

  .content-pad {
    max-width: none;
    padding: 0 4mm;
  }

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

  .print-report-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #111827;
    break-inside: avoid;
  }

  .print-report-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 22px;
  }

  .print-report-header p {
    color: #475467;
    font-size: 12px;
  }

  .report-date {
    border: 0;
    border-radius: 0 !important;
    padding: 0;
    margin-bottom: 14px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
  }

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

  .stat {
    border: 1px solid #d0d5dd;
    border-radius: 0 !important;
    background: #fff !important;
    break-inside: avoid;
  }

  .stat strong {
    color: #111827 !important;
  }

  #screen-reports h2 {
    margin: 14px 0 8px;
    color: #111827;
    font-size: 14px;
  }

  .bars {
    gap: 7px;
    margin-bottom: 14px;
  }

  .bars p {
    grid-template-columns: 180px 1fr 42px;
    page-break-inside: avoid;
  }

  .bars b {
    background: #111827;
    border-radius: 0 !important;
  }

  .report-table {
    overflow: visible;
    border: 1px solid #98a2b3;
    border-radius: 0 !important;
    background: #fff;
  }

  .report-table *,
  .panel,
  .stat,
  .schedule-card,
  .calendar-event,
  .manage-card,
  .user-card,
  .hall-card,
  .issue-card,
  .badge,
  .active-pill {
    border-radius: 0 !important;
  }

  .report-table th,
  .report-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d0d5dd;
    color: #111827;
    font-size: 11px;
  }

  .report-table th {
    background: #eef2f6;
  }

  #screen-reports::before,
  #screen-reports::after,
  .content-pad::before,
  .content-pad::after,
  .report-table::before,
  .report-table::after {
    display: none !important;
    content: none !important;
  }

  a[href]::after {
    content: "";
  }
}
