﻿@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #1b2028;
  --panel-2: #151b23;
  --line: rgba(245, 247, 250, 0.1);
  --text: #f5f7fa;
  --muted: #a3a8b3;
  --accent: #00c2a8;
  --accent-2: #3de6c1;
  --on-accent: #0d1117;
  --danger: #ff6f6f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 194, 168, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(61, 230, 193, 0.1), transparent 24rem),
    linear-gradient(135deg, #0d1117 0%, #111821 48%, #070a0f 100%);
  color: var(--text);
}

#app {
  min-width: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
}

.auth-visual {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(13, 17, 23, 0.28), rgba(13, 17, 23, 0.88)),
    url("https://images.unsplash.com/photo-1517963879433-6ad2b056d712?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--on-accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(61, 230, 193, 0.95), rgba(0, 194, 168, 0.82) 45%, rgba(0, 194, 168, 0.18) 100%),
    #0d1117;
  box-shadow: 0 0 32px rgba(0, 194, 168, 0.32);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #0d1117;
}

.brand-mark::before {
  width: 20px;
  height: 7px;
  top: 10px;
  left: 10px;
  box-shadow: -8px 0 0 var(--accent-2);
}

.brand-mark::after {
  width: 22px;
  height: 7px;
  top: 19px;
  left: 9px;
  transform: rotate(0deg);
}

.brand-mark span {
  width: 23px;
  height: 7px;
  left: 9px;
  bottom: 9px;
  transform: rotate(35deg);
  transform-origin: right center;
}

.auth-copy h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 560px;
  color: #d6e8dd;
  font-size: 1.08rem;
  line-height: 1.65;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 32, 40, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card h2,
.section-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.tabs,
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tabs button,
.role-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.tabs button.active,
.role-switch button.active {
  color: var(--on-accent);
  background: var(--accent);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field span,
.check {
  color: var(--muted);
  font-size: 0.86rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.field select option,
.field select optgroup {
  color: var(--on-accent);
  background: #ffffff;
}

.field select option:checked {
  color: var(--on-accent);
  background: var(--accent);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 194, 168, 0.82);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--accent);
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.btn.danger {
  color: #fff;
  background: rgba(255, 111, 111, 0.14);
  border-color: rgba(255, 111, 111, 0.35);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.92);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
}

.sidebar-overlay {
  display: none;
}

.nav {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav button span {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: inherit;
  font-weight: 800;
}

.nav-svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.active,
.nav button:hover {
  color: var(--text);
  background: rgba(0, 194, 168, 0.12);
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 1680px;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  min-width: 0;
}

.mobile-menu {
  display: none;
}

.user-pill,
.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.avatar,
.photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), #fff);
  font-weight: 900;
}

.photo {
  width: 54px;
  height: 54px;
}

.grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.card,
.table-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 32, 40, 0.86);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  overflow-wrap: anywhere;
}

.card {
  padding: 18px;
}

.metric {
  min-height: 132px;
  display: grid;
  align-content: space-between;
}

.metric strong {
  font-size: 2.1rem;
  letter-spacing: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  min-width: 0;
}

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

.workout-pdf-actions {
  margin-top: 18px;
  margin-bottom: 12px;
}

.workout-card-actions {
  margin-top: 0;
}

.assessment-head {
  margin-top: 22px;
}

.assessment-card {
  display: grid;
  gap: 14px;
}

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

.assessment-metric {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 194, 168, 0.08);
}

.assessment-metric span,
.assessment-metric small {
  color: var(--muted);
  font-size: 0.78rem;
}

.assessment-metric strong {
  font-size: 1.25rem;
}

.assessment-history {
  display: grid;
  gap: 8px;
}

.assessment-history-item {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.assessment-history-item .muted {
  display: block;
  margin-top: 3px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.table-card {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.student-cell > div {
  min-width: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.64);
}

.modal-card {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #111821;
  box-shadow: var(--shadow);
}

.pdf-modal-card {
  width: min(1040px, 100%);
}

.pdf-frame {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.exercise-builder {
  display: grid;
  gap: 10px;
}

.exercise-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(90px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.span-2 {
  grid-column: span 2;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 8px;
}

.day {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.day strong {
  display: block;
  margin-bottom: 8px;
}

.event-dot {
  display: block;
  margin-top: 6px;
  padding: 6px;
  border-radius: 6px;
  color: var(--on-accent);
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.qr {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.qr span {
  border-radius: 1px;
  background: #fff;
}

.qr span.on {
  background: var(--on-accent);
}

.progress {
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fff);
}

.finance-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.nutrition-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.8fr);
  gap: 12px;
}

.nutrition-card {
  display: grid;
  gap: 14px;
}

.nutrition-meal-list {
  display: grid;
  gap: 10px;
}

.nutrition-meal-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 194, 168, 0.08);
}

.nutrition-meal-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.nutrition-meal-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.nutrition-meal-form h4 {
  margin: 0;
  color: var(--accent);
}

.finance-paid {
  color: var(--accent);
  border-color: rgba(0, 194, 168, 0.48);
}

.finance-pending {
  color: #f5f7fa;
  border-color: rgba(163, 168, 179, 0.38);
}

.finance-overdue {
  color: var(--danger);
  border-color: rgba(255, 111, 111, 0.45);
}

.mini-chart {
  display: grid;
  gap: 12px;
}

.mini-chart div {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 10px;
  align-items: center;
}

.mini-chart i {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.bar-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.bar-chart div {
  height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 6px;
}

.bar-chart i {
  width: 100%;
  max-width: 38px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.bar-chart span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pdf-header-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pdf-preview-logo {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-weight: 900;
}

.pdf-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.pdf-header-preview h2,
.pdf-header-preview p {
  margin: 0 0 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 8px;
}

.toast-item {
  min-width: 260px;
  max-width: 360px;
  border: 1px solid rgba(0, 194, 168, 0.42);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(17, 24, 33, 0.96);
  box-shadow: var(--shadow);
  animation: slide 0.18s ease both;
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 980px) {
  .auth-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 44vh;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 290px;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .finance-filters,
  .assessment-grid,
  .assessment-history-item,
  .exercise-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

@media (max-width: 620px) {
  .main,
  .auth-panel,
  .auth-visual {
    padding: 18px;
  }

  .topbar,
  .section-head,
  .list-item {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (min-width: 1367px) {
  .main {
    padding: 32px;
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 1366px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px;
  }

  .main {
    padding: 20px;
  }

  .metric strong {
    font-size: 1.85rem;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    inset: auto;
    width: auto;
    height: 100vh;
    padding: 16px 12px;
    transform: none;
  }

  .sidebar .brand {
    justify-content: center;
  }

  .sidebar .brand > span:last-child,
  .sidebar-footer .user-pill span:last-child {
    display: none;
  }

  .nav button {
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .nav button span {
    width: auto;
    font-size: 1rem;
  }

  .nav-svg {
    width: 21px;
    height: 21px;
  }

  .sidebar-footer .user-pill {
    justify-content: center;
    padding: 7px;
  }

  .sidebar-footer .btn {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .mobile-menu,
  .sidebar-overlay {
    display: none;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .assessment-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .exercise-row .btn {
    width: 100%;
  }

  .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .auth-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-visual {
    min-height: 38vh;
    padding: 24px;
  }

  .auth-copy h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(86vw, 320px);
    height: 100dvh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    width: 100%;
    min-height: 100dvh;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .main {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .topbar > div {
    min-width: 0;
    flex: 1 1 220px;
  }

  .status-pill {
    margin-left: auto;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head > .actions,
  .section-head > .btn {
    width: 100%;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .finance-filters,
  .nutrition-filters,
  .assessment-grid,
  .assessment-history-item,
  .exercise-row,
  .form-grid,
  .calendar {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .actions {
    align-items: stretch;
  }

  .actions .btn {
    flex: 1 1 160px;
  }

  .list-item,
  .pdf-header-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-cell {
    align-items: flex-start;
  }

  .modal {
    align-items: end;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }

  .pdf-frame {
    height: 62vh;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast-item {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .auth-panel,
  .auth-visual,
  .main {
    padding: 14px;
  }

  .auth-card,
  .card {
    padding: 14px;
  }

  .tabs,
  .role-switch {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 10px;
  }

  .mobile-menu,
  .status-pill {
    width: 100%;
  }

  .status-pill {
    justify-content: center;
    margin-left: 0;
  }

  .metric {
    min-height: 112px;
  }

  .metric strong {
    font-size: 1.6rem;
  }

  .actions,
  .workout-pdf-actions,
  .workout-card-actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .btn,
  .btn {
    width: 100%;
  }

  .chip,
  .user-pill,
  .status-pill {
    max-width: 100%;
    white-space: normal;
  }

  table {
    min-width: 660px;
  }

  th,
  td {
    padding: 10px;
  }

  .photo,
  .avatar {
    flex: 0 0 auto;
  }

  .qr {
    width: min(220px, 100%);
  }

  .mini-chart div {
    grid-template-columns: 72px 1fr 30px;
  }

  .nutrition-meal-item {
    grid-template-columns: 1fr;
  }

  .pdf-preview-logo {
    width: 70px;
    height: 70px;
  }
}

