/* Общая тема «Резерва» и «Стационара» в стиле сайта клиники (ветпланета.рф):
   розовый бренд, светлый фон, шрифт Inter. Подключается ПЕРВЫМ, до стилей
   приложения; цвета — только через переменные ниже.
   Шрифт лежит рядом (fonts/, SIL OFL 1.1 — см. fonts/OFL.txt), без CDN:
   при аварии интернета страница не ждёт сторонних серверов. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Контраст текста проверяет tests/test_theme.py (не ниже 4.5:1). */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --brand: #ec4899;          /* полоса шапки, рамки, фокус — как на сайте */
  --brand-strong: #db2777;   /* фон основных кнопок (белый текст 4.6:1) */
  --brand-dark: #be185d;     /* ссылки и наведение на кнопку */
  --brand-light: #fbcfe8;
  --brand-lighter: #fce7f3;
  --bg: #fff6fa;
  --card: #ffffff;
  --text: #334155;
  --muted: #576173;
  --border: #ecd3df;
  --head: #fce7f3;           /* шапки таблиц */
  --row-alt: #fffafe;
  --row-hover: #fdf2f8;
  --focus: #f472b6;
  --info: #0369a1;           /* «новое», «резерв» — голубой акцент сайта */
  --info-bg: #e0f2fe;
  --now: #e0f2fe;            /* текущий час в листе */
  --ok: #15803d;             /* выполнено */
  --ok-bg: #dcfce7;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --danger: #b91c1c;         /* просрочка, ошибки */
  --danger-bg: #fee2e2;
  --plus: #15803d;           /* «+»-кнопки остаются зелёными (решение владельца) */
  --plus-border: #86c99a;
  --plus-hover: #e8f5ec;
  --radius: 8px;
  --radius-sm: 4px;
}

body { font-family: var(--font); }

/* Шапка: белая, розовая полоса сверху, логотип и название клиники */
.top { background: var(--card); color: var(--text); border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.top a, .top .link { color: var(--text); }
.top a:hover, .top .link:hover { color: var(--brand-dark); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; display: block; }
.brand .app { color: var(--brand-dark); }

/* Фокус с клавиатуры — розовое кольцо */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Подсказки при вводе (common/static/autocomplete.js) */
.ac-list { position: absolute; z-index: 1000; margin: 0; padding: 4px 0; list-style: none;
  background: var(--card); color: var(--text); border: 1px solid var(--brand-light);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 360px; overflow-y: auto; font-size: 14px; }
.ac-list.ac-inline { position: static; box-shadow: none; border-radius: 0; border: 0;
  max-height: none; padding: 0; }
.ac-item { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px;
  cursor: pointer; min-height: 36px; }
.ac-item + .ac-item { border-top: 1px solid var(--row-hover); }
.ac-item[aria-selected="true"], .ac-item:hover { background: var(--brand-lighter); }
.ac-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ac-meta { display: block; color: var(--muted); font-size: 12px; }
.ac-side { white-space: nowrap; color: var(--text); }
.ac-list mark { background: none; color: var(--brand-dark); font-weight: 700; }
.ac-msg { padding: 6px 10px; color: var(--muted); }
.ac-msg.ac-error { color: var(--danger); }

/* Печать — чёрно-белая, без фирменных цветов */
@media print {
  :root { --text: #000; --muted: #000; --border: #000; --head: #fff; --row-alt: #fff;
    --bg: #fff; --card: #fff; --brand-dark: #000; }
  body { color: #000; background: #fff; }
}
