/* Шерсть CRM. Тема демо груминг-салона «Пушистый день», Красноярск.
   Системный шрифт, плоские поверхности, без градиентов и внешних ресурсов.
   Тёмный сине-зелёный сайдбар #1f4e4a, фон #f5f3ee, акцент кнопок янтарный #e8a33d.
   Белый текст используется только на тёмном сайдбаре. Контраст текста не ниже 4.5:1. */

:root {
  --pine: #1f4e4a;
  --pine-dark: #153b37;
  --pine-mid: #2b625b;
  --pine-soft: #e4eeea;
  --pine-line: #c9ded8;
  --side-text: #ffffff;
  --side-muted: #c9dcd6;
  --bg: #f5f3ee;
  --card: #ffffff;
  --ink: #1f2a28;
  --muted: #55615d;
  --placeholder: #63706b;
  --line: #ddd8cc;
  --line-soft: #ebe7dd;
  --amber: #e8a33d;
  --amber-dark: #d18f2a;
  --amber-soft: #f9ecd6;
  --amber-ink: #5c4214;
  --danger: #7c3325;
  --danger-soft: #f6e2da;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 40, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt {
  margin: 0;
}

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

button {
  cursor: pointer;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-comb {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--pine);
}

.sidebar .logo-comb {
  color: var(--side-text);
}

.sidebar .logo-drop {
  fill: var(--amber);
}

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

.small-note {
  font-size: 12px;
  line-height: 1.35;
}

.money-risk {
  color: var(--danger);
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

/* Фокус */

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav-item:focus-visible,
.role-btn:focus-visible,
.seg-btn:focus-visible,
.kpi:focus-visible,
.pet-chip:focus-visible,
.crumb-btn:focus-visible,
.mark-btn:focus-visible,
.appt-item:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

.sidebar .nav-item:focus-visible {
  outline-color: var(--amber);
  box-shadow: 0 0 0 2px var(--pine-dark);
}

.btn-primary:focus-visible {
  outline-color: var(--pine);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
}

.dg-free:focus-visible,
.dg-appt:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: -2px;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #1b2a26;
}

.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn-outline {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
}

.btn-quiet:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--pine);
}

/* Бейджи */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-booked {
  background: #dfeae7;
  color: #1d4a43;
}

.badge-progress {
  background: #f9e7c9;
  color: #65460f;
}

.badge-ready {
  background: #dcebe4;
  color: #1c493d;
}

.badge-paid {
  background: #cfe4da;
  color: #164438;
}

.badge-open {
  background: #eef0e9;
  color: #44534e;
}

.badge-risk {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-muted {
  background: #ece9e1;
  color: var(--muted);
}

/* Поля */

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea,
.day-date-input,
.inline-field select,
.filter-field select,
.mini-field input,
.breed-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 16px;
}

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

.field input::placeholder,
.field textarea::placeholder,
.input-wrap input::placeholder {
  color: var(--placeholder);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid #e8c7bc;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.form-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Экран входа */

.login {
  min-height: 100vh;
  background: var(--bg);
  border-top: 6px solid var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-wrap {
  width: 100%;
  max-width: 540px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(31, 78, 74, 0.1);
}

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

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

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.25;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
}

.login-brand {
  margin-bottom: 20px;
}

.login-card h1 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.login-lead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.login-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}

.login-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
}

.login-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.login-hint {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #efd3a3;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 13px;
}

.login-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.login-foot {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Каркас приложения */

.app {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 250px;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--pine);
  color: var(--side-text);
  padding: 18px 14px;
}

.sidebar-brand {
  padding: 4px 8px 16px;
}

.sidebar .brand-name {
  color: var(--side-text);
}

.sidebar .brand-slogan {
  color: var(--side-muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--side-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.nav-item:hover {
  background: var(--pine-mid);
  color: var(--side-text);
}

.nav-item.is-active {
  background: var(--pine-dark);
  color: var(--side-text);
  box-shadow: inset 3px 0 0 var(--amber);
}

.nav-count {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pine-dark);
  color: var(--side-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.nav-item.is-active .nav-count {
  background: var(--amber);
  color: #1b2a26;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 8px 4px;
}

.sidebar-note {
  font-size: 12px;
  color: var(--side-muted);
}

.sidebar-note b {
  display: block;
  color: var(--side-text);
  margin-bottom: 3px;
}

.sidebar-version {
  margin-top: 10px;
  font-size: 11px;
  color: var(--side-muted);
}

.workspace {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 12px 26px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.topbar-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-date {
  font-size: 14px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.main {
  width: 100%;
  min-width: 0;
  padding: 22px 26px 40px;
}

/* Роль и мастер */

.role-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.role-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px;
}

.role-btn {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.role-btn:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.role-btn[aria-pressed="true"] {
  background: var(--amber);
  color: #1b2a26;
}

.master-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.master-pick-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.master-pick select {
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 16px;
  max-width: 100%;
}

/* Типовые блоки */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.page-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
  min-width: 0;
}

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

.card-head h2 {
  font-size: 16px;
  line-height: 1.3;
}

.card-period {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.grid-2 > .card {
  min-width: 0;
}

.grid-2 .card {
  margin-bottom: 0;
}

.grid-2-wrap {
  margin-bottom: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

button.kpi {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

button.kpi:hover {
  border-color: var(--pine);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kpi-note {
  font-size: 12px;
  color: var(--muted);
}

.kpi-risk .kpi-value {
  color: var(--danger);
}

.kpi-amber .kpi-value {
  color: var(--amber-ink);
}

/* Списки, задачи, пустые состояния */

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  min-width: 0;
}

.list-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.list-row-title {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.list-row-sub {
  font-size: 12px;
  color: var(--muted);
}

.list-row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-time {
  font-weight: 700;
  color: var(--pine);
}

.group-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.summary-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.summary-group {
  min-width: 0;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.task-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--pine);
}

.task-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
}

.task-due {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.task-row.is-done .task-title {
  text-decoration: line-through;
  color: var(--muted);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--muted);
}

.empty p {
  color: var(--muted);
  font-size: 14px;
}

.note-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.note-line .icon {
  margin-top: 2px;
  color: var(--pine);
}

.note-locked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
}

.note-locked .icon {
  color: var(--pine);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 16px;
  border: 1px solid #efd3a3;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 14px;
}

.notice .icon {
  color: var(--pine);
  margin-top: 1px;
}

.result-line {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Таблицы */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.table th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--bg);
}

.cell-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cell-title {
  font-weight: 600;
}

.cell-sub {
  font-size: 12px;
  color: var(--muted);
}

.stock-name {
  font-weight: 600;
}

.row-risk {
  background: #fbefea;
}

.row-risk:hover {
  background: #f8e7e0 !important;
}

/* Питомцы и владельцы */

.pets-tabs,
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 14px;
  flex-wrap: wrap;
  max-width: 100%;
}

.seg-btn {
  min-height: 38px;
  padding: 6px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seg-btn:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.seg-btn[aria-pressed="true"] {
  background: var(--amber);
  color: #1b2a26;
}

.seg-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(31, 42, 40, 0.1);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.pets-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(130px, 160px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.search-field,
.filter-field {
  display: block;
  min-width: 0;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--placeholder);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 16px;
}

.filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 16px;
}

.filter-reset {
  align-self: end;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

.pet-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pet-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.pet-avatar,
.owner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 18px;
  font-weight: 700;
}

.owner-avatar {
  border-radius: 12px;
  font-size: 15px;
}

.owner-avatar.small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.pet-top-text {
  min-width: 0;
  flex: 1 1 auto;
}

.pet-top h2 {
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pet-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pet-flags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pet-flags .badge {
  white-space: normal;
}

.pet-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.pet-facts dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pet-facts dd {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pet-siblings {
  font-size: 12px;
  color: var(--muted);
}

.pet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  align-items: start;
}

.owner-card {
  margin-bottom: 0;
}

.owner-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.owner-top h2 {
  font-size: 16px;
  line-height: 1.25;
}

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

.pet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--pine-line);
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 12px;
  font-weight: 700;
}

.pet-chip:hover {
  border-color: var(--pine);
}

.owner-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.owner-name {
  font-weight: 700;
  font-size: 15px;
}

/* Карточка питомца */

.app-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.app-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.crumb-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--pine);
  font-weight: 700;
  text-decoration: underline;
}

.pet-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pet-detail-grid > .card {
  margin-bottom: 16px;
}

.pet-side {
  min-width: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notes-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.notes-form textarea {
  width: 100%;
}

/* Услуги */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}

.service-card {
  margin-bottom: 0;
}

.service-head {
  margin-bottom: 10px;
}

.service-head h2 {
  font-size: 16px;
  line-height: 1.3;
}

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

.service-size {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--bg);
}

.service-size-name {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-field {
  display: block;
  margin-bottom: 6px;
}

.mini-field span {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  color: var(--muted);
}

.mini-field input {
  min-height: 36px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 16px;
}

.mini-field input[disabled] {
  background: var(--line-soft);
  color: var(--muted);
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.service-actions .form-note {
  margin: 0;
}

/* Расписание */

.schedule-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.schedule-tabs .btn[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #1b2a26;
}

.day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.day-date-input {
  width: 165px;
  max-width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  font-size: 16px;
}

.segmented {
  margin-bottom: 0;
}

.day-grid {
  display: grid;
  grid-template-columns: 52px repeat(var(--cols, 3), minmax(0, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.dg-corner,
.dg-head,
.dg-time,
.dg-cell {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.dg-corner {
  padding: 8px 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.dg-head {
  padding: 8px 6px;
  background: var(--bg);
  text-align: center;
}

.dg-head-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dg-head-sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dg-time {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 2px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.dg-time.is-now {
  background: #fbe8c8;
  color: var(--amber-ink);
}

.dg-cell {
  min-height: 44px;
  padding: 2px;
  background: var(--card);
}

.dg-cell.is-busy {
  display: flex;
  background: #fbfaf6;
}

.dg-cell.is-busy .dg-appt {
  flex: 1 1 auto;
  height: auto;
}

.dg-free {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.dg-free:hover {
  background: var(--amber-soft);
}

.dg-appt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 38px;
  padding: 4px 5px;
  border: 1px solid var(--pine-line);
  border-left: 4px solid var(--pine);
  border-radius: 6px;
  background: var(--pine-soft);
  color: var(--ink);
  text-align: left;
  font-size: 10.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dg-appt:hover {
  border-color: var(--pine);
}

.dg-appt.is-progress {
  background: #fbe8c8;
  border-left-color: var(--amber-dark);
}

.dg-appt.is-ready {
  background: #dcebe4;
  border-left-color: #2c6a58;
}

.dg-appt.is-paid {
  background: #cfe4da;
  border-left-color: #174438;
}

.dg-appt.is-noshow {
  background: #efede7;
  border-left-color: var(--muted);
  opacity: 0.85;
}

.dg-appt.is-conflict {
  border-color: var(--danger);
  border-left-color: var(--danger);
}

.dg-appt-time {
  font-weight: 700;
  color: var(--pine);
}

.dg-appt-pet {
  font-weight: 700;
}

.dg-appt-meta {
  color: var(--muted);
  font-size: 9.5px;
}

.dg-appt-status {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.week-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.week-title {
  font-size: 15px;
  font-weight: 700;
  margin-right: auto;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.day-col.is-today {
  border-color: var(--amber-dark);
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.day-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.day-col.is-today .day-name {
  color: var(--amber-ink);
}

.day-date {
  font-size: 12px;
  color: var(--muted);
}

.day-empty {
  padding: 6px 2px;
  font-size: 12px;
  color: var(--muted);
}

.appt-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--pine-mid);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}

.appt-item:hover {
  border-color: var(--pine);
}

.appt-item.is-conflict {
  border-color: var(--danger);
  border-left-color: var(--danger);
}

.appt-item.is-ready {
  background: #dcebe4;
  border-left-color: #2c6a58;
}

.appt-item.is-paid {
  background: #cfe4da;
  border-left-color: #174438;
}

.appt-item.is-muted {
  opacity: 0.75;
}

.appt-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--pine);
}

.appt-name {
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.appt-meta {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Напоминания */

.reminder-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
}

.reminder-row.is-sent {
  background: var(--bg);
}

.reminder-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 280px;
  min-width: 0;
}

.reminder-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reminder-title {
  font-size: 15px;
  font-weight: 700;
}

.reminder-text {
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.reminder-meta {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.reminder-side {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-field {
  display: block;
}

.inline-field span {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.inline-field select {
  width: auto;
  min-height: 40px;
  padding: 7px 10px;
  font-size: 16px;
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 16px;
}

.breed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.breed-row input {
  width: 66px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 6px;
  text-align: center;
  font-size: 16px;
}

/* Оплаты и абонементы */

.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.sub-card {
  margin-bottom: 0;
}

.sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sub-head h3 {
  font-size: 15px;
}

.sub-meta {
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
}

.sub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pine);
}

/* Отчёты */

.bar-chart {
  display: flex;
  flex-direction: column;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(105px, 170px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.bar-label {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bar-svg {
  display: block;
  width: 100%;
  height: 14px;
}

.bar-track-rect {
  fill: var(--line-soft);
}

.bar-fill-rect {
  fill: var(--pine);
}

.bar-fill-rect.is-alt {
  fill: #2f6a61;
}

.bar-value {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.line-chart {
  display: block;
  width: 100%;
  height: 180px;
}

.chart-grid-line {
  stroke: #e7e3d9;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: #e7ece9;
}

.chart-line {
  fill: none;
  stroke: var(--pine);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-dot {
  fill: var(--amber);
  stroke: var(--pine);
  stroke-width: 2;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.donut {
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
}

.donut-track {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 18;
}

.donut-fill {
  fill: none;
  stroke: var(--pine);
  stroke-width: 18;
  stroke-linecap: round;
}

.donut-value {
  fill: var(--ink);
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font);
}

.donut-legend {
  min-width: 0;
  flex: 1 1 180px;
  font-size: 13px;
}

.donut-legend p {
  margin-bottom: 5px;
}

/* Модальные окна */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 40, 0.58);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 570px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(31, 42, 40, 0.28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 18px;
  line-height: 1.3;
}

.modal-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.modal-info {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
}

.modal-info p {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.modal-info p:last-child {
  margin-bottom: 0;
}

.modal-subtitle {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.modal-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

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

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

.calc-line {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--pine-line);
  border-radius: 10px;
  background: var(--pine-soft);
  color: var(--ink);
  font-size: 13.5px;
}

.calc-line b {
  color: var(--pine);
}

.mark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}

.mark-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  text-align: left;
}

.mark-btn:hover {
  border-color: var(--pine);
}

.mark-btn.is-current {
  border-color: var(--amber-dark);
  background: var(--amber-soft);
}

.mark-btn b {
  font-size: 14px;
}

.mark-btn span {
  font-size: 11px;
  color: var(--muted);
}

/* Тост */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--amber-dark);
  border-radius: 12px;
  background: var(--amber);
  color: #1b2a26;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(31, 42, 40, 0.24);
}

/* Адаптив */

@media (max-width: 1200px) {
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .pet-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .app {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace {
    width: 100%;
  }

  .sidebar {
    position: static;
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
    padding: 12px 12px 0;
  }

  .sidebar-brand {
    padding: 2px 6px 10px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 10px;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 12px;
  }

  .nav-count {
    margin-left: 2px;
  }

  .sidebar-foot {
    display: none;
  }

  .topbar {
    padding: 10px 14px;
  }

  .main {
    padding: 16px 14px 32px;
  }

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

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

  .pets-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pets-toolbar .search-field {
    grid-column: 1 / -1;
  }

  .filter-reset {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: var(--card);
  }

  .table tbody tr:hover {
    background: var(--card);
  }

  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: right;
  }

  .table td:last-child {
    border-bottom: 0;
  }

  .table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }

  .table td[data-label=""]::before {
    content: none;
  }

  .table .cell-main {
    align-items: flex-end;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .kpi-value {
    font-size: 20px;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bar-label {
    grid-column: 1 / -1;
  }

  .bar-value {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .service-size-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .pet-facts {
    grid-template-columns: 1fr 1fr;
  }

  .reminder-side {
    width: 100%;
    justify-content: flex-start;
  }

  .modal {
    padding: 18px 16px;
  }
}

@media (max-width: 640px) {
  .topbar-reset span,
  .btn-logout span {
    display: none;
  }

  .topbar-reset,
  .btn-logout {
    width: 44px;
    padding: 10px;
  }

  .role-label {
    display: none;
  }

  .login-card {
    padding: 22px 18px;
  }

  .page-head h1 {
    font-size: 20px;
  }

  .pets-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .pets-toolbar .search-field {
    grid-column: auto;
  }

  .filter-reset {
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .dg-appt-meta {
    display: none;
  }

  .dg-time {
    font-size: 9px;
    padding-top: 4px;
  }

  .dg-appt {
    padding: 3px 4px;
    font-size: 10px;
  }

  .dg-appt-status {
    font-size: 8px;
  }

  .donut-wrap {
    justify-content: center;
  }

  .chart-axis {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .topbar-actions {
    width: 100%;
    min-width: 0;
  }

  .role-switch {
    width: 100%;
    flex-wrap: wrap;
  }

  .role-btn {
    flex: 1 1 auto;
    padding: 6px 7px;
    font-size: 11px;
  }

  .master-pick {
    width: 100%;
  }

  .master-pick select {
    flex: 1 1 auto;
  }

  .day-nav {
    width: 100%;
  }

  .day-nav .btn {
    flex: 1 1 auto;
  }

  .day-date-input {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented .seg-btn {
    flex: 1 1 auto;
  }

  .appt-item {
    font-size: 11px;
  }

  .pet-facts {
    grid-template-columns: 1fr;
  }

  .week-title {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 360px) {
  .sidebar {
    padding: 10px 10px 0;
  }

  .main {
    padding: 14px 10px 28px;
  }

  .card {
    padding: 14px;
  }

  .kpi {
    padding: 12px;
  }

  .kpi-value {
    font-size: 18px;
  }

  .modal {
    padding: 16px 12px;
  }

  .calc-line {
    font-size: 12px;
  }
}
