/* Демо-CRM ремонтной компании «Ровный угол». Светлая тёплая тема, адаптив от 360px. */

:root {
  --font-ui: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --ink: #2b2420;
  --ink-2: #4a3d35;
  --muted: #6e5f55;
  --line: #e6dcd3;
  --line-soft: #f1ebe5;
  --line-strong: #d5c6b8;
  --bg: #f7f3ef;
  --surface: #ffffff;

  --blue: #a3471f;
  --blue-700: #833819;
  --blue-600: #b8582c;
  --blue-100: #f6e4da;
  --blue-50: #fbf3ee;

  --ok: #176b46;
  --ok-bg: #e7f4ec;
  --ok-line: #bcdccb;

  --warn-ink: #6f4b00;
  --warn: #8a5a00;
  --warn-bg: #fff4d4;
  --warn-line: #ebd18a;

  --danger: #a92b22;
  --danger-bg: #fdecea;
  --danger-line: #f0c2bd;

  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.05);
  --shadow-md: 0 12px 34px rgba(43, 36, 32, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--blue);
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(163, 71, 31, 0.32);
  outline-offset: 2px;
}

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

.login {
  min-height: 100vh;
  min-height: 100dvh;
  background: #faf6f2;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: 40px clamp(30px, 4.6vw, 72px);
  color: #ffffff;
  background: var(--blue);
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 36px 36px;
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgba(255, 255, 255, 0.035),
    0 0 0 128px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-mark .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.brand-slogan {
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-light .brand-name {
  color: #ffffff;
}

.brand-light .brand-slogan {
  color: rgba(255, 255, 255, 0.68);
}

.brand-mark-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.login-chip {
  flex: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.login-copy {
  max-width: 560px;
}

.login-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.login-brand .login-kicker {
  color: #e2b9a2;
}

.login-copy h1 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.login-lead {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

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

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

.login-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  color: #d7f0e1;
  background: rgba(23, 107, 70, 0.55);
}

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

.login-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.login-facts span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.login-address {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.login-panel {
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 34px;
  background: #faf6f2;
}

.login-card {
  width: 100%;
  max-width: 424px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.login-card h2 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.login-sub {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.login-card .field {
  margin-bottom: 14px;
}

.login-card .form-error {
  margin: 0 0 12px;
}

.login-hint {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: center;
}

.login-hint b {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.login-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.login-foot {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Верхняя панель */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(43, 36, 32, 0.02);
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
}

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

.user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 3px 3px 3px 6px;
  border-left: 1px solid var(--line-soft);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.user-info {
  display: none;
  line-height: 1.25;
}

.user-info b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.user-info span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.btn-logout {
  margin-left: 2px;
}

.topbar-board {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px 11px;
  background: #fbf8f5;
  border-top: 1px solid #f3ede7;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.board-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.month-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-2);
}

.month-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.month-btn .icon {
  width: 15px;
  height: 15px;
}

.month-label {
  min-width: 136px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  white-space: nowrap;
}

.board-today {
  font-size: 11.5px;
}

.top-deadlines {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: thin;
}

.strip-label {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.strip-empty {
  font-size: 12px;
  color: var(--muted);
}

.dchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 290px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.dchip:hover {
  border-color: var(--blue);
  background: var(--blue-50);
}

.dchip b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.dchip em {
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  color: var(--muted);
}

.dchip.st-overdue {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.dchip.st-overdue b {
  color: var(--danger);
}

.dchip.st-soon {
  border-color: var(--warn-line);
  background: var(--warn-bg);
}

.dchip.st-soon b {
  color: var(--warn-ink);
}

.dchip.st-pending,
.dchip.st-done {
  border-color: var(--ok-line);
  background: #f3fbf6;
}

.dchip.st-pending b,
.dchip.st-done b {
  color: var(--ok);
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}

.st-overdue .dot {
  background: var(--danger);
}

.st-soon .dot {
  background: #d79a10;
}

.st-pending .dot,
.st-done .dot {
  background: var(--ok);
}

.strip-more {
  flex: none;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: 1px dashed #e7c7b5;
  border-radius: 999px;
  white-space: nowrap;
}

.strip-more:hover {
  background: var(--blue-50);
}

/* Каркас */

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

.sidebar {
  min-height: calc(100vh - 128px);
  padding: 18px 12px 26px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.nav-item:hover {
  background: var(--blue-50);
  color: var(--blue);
}

.nav-item:hover .icon {
  color: var(--blue);
}

.nav-item.is-active {
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav-item.is-active .icon {
  color: var(--blue);
}

.nav-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-count.is-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.sidebar-foot {
  margin-top: 22px;
  padding: 14px 11px 0;
  border-top: 1px solid var(--line-soft);
}

.sidebar-note {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.sidebar-note b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-2);
  font-size: 11px;
}

.sidebar-version {
  margin-top: 10px;
  font-size: 10px;
  color: #ab998c;
}

.main {
  min-width: 0;
  padding: 26px 30px 60px;
}

/* Заголовок раздела */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 2px 0 18px;
}

.page-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.page-title {
  margin: 3px 0 5px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-sub {
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

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

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.btn-outline {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue);
}

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

.btn-quiet:hover {
  background: var(--blue-50);
  color: var(--blue);
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  border-color: #8c211a;
  background: #8c211a;
}

.btn-link {
  height: auto;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
}

.btn-sm .icon {
  width: 14px;
  height: 14px;
}

.btn-block {
  width: 100%;
  height: 44px;
}

/* Формы */

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea,
.control {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.field textarea {
  height: auto;
  min-height: 66px;
  padding: 9px 10px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8968a;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.control:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(163, 71, 31, 0.14);
  outline-offset: 0;
}

.control-sm {
  height: 30px;
  padding: 0 6px;
  font-size: 11.5px;
}

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

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

.field-span-3 {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}

.form-error {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.inline-form {
  padding: 16px 18px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}

.inline-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.inline-form-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.inline-form-head p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Карточки метрик */

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

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

.kpi-card {
  padding: 13px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  margin: 4px 0 2px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

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

.kpi-card.tone-warn .kpi-value {
  color: var(--warn-ink);
}

.kpi-card.tone-success .kpi-value {
  color: var(--ok);
}

/* Панели */

.panel {
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.panel-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.panel-body {
  padding: 18px;
}

/* Тулбар и фильтры */

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: #fdfbf9;
  border-bottom: 1px solid var(--line-soft);
}

.toolbar-spacer {
  flex: 1;
}

.search-box {
  position: relative;
  flex: 1 1 250px;
  max-width: 330px;
  min-width: 170px;
}

.search-box .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 12.5px;
}

.search-box input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(163, 71, 31, 0.14);
}

.control {
  width: auto;
  height: 38px;
  padding: 0 9px;
  font-size: 12.5px;
}

/* Таблицы */

.table-wrap {
  overflow-x: auto;
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data thead th {
  padding: 9px 14px;
  background: #fdfbf9;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

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

.data tbody tr {
  transition: background 0.14s ease;
}

.data tbody tr:hover {
  background: var(--blue-50);
}

.data tr.row-overdue {
  background: #fff7f6;
}

.data tr.row-overdue:hover {
  background: #ffefed;
}

.data tr.row-soon {
  background: #fffaeb;
}

.data tr.row-soon:hover {
  background: #fff5d8;
}

.data tr.row-overdue td:first-child {
  box-shadow: inset 3px 0 0 var(--danger);
}

.data tr.row-soon td:first-child {
  box-shadow: inset 3px 0 0 #d79a10;
}

.cell-main {
  display: block;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.cell-sub {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cell-money {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-date.is-danger {
  color: var(--danger);
  font-weight: 700;
}

.cell-date.is-warn {
  color: var(--warn-ink);
  font-weight: 700;
}

.cell-date.is-ok {
  color: var(--ok);
  font-weight: 600;
}

.cell-actions {
  width: 1%;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Бейджи и метки */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge .dot {
  width: 5px;
  height: 5px;
}

.badge-ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-overdue {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-soon {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.badge-pending {
  border-color: #eed3c3;
  background: var(--blue-100);
  color: var(--blue);
}

.badge-neutral {
  border-color: var(--line);
  background: #f8f4f0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f4f0;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-osno {
  border-color: #eed3c3;
  background: #fbefe8;
  color: var(--blue);
}

.tag-usn {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

.tag-patent {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.tag-ip {
  border-color: #d8d2e8;
  background: #f2eff9;
  color: #5b4785;
}

.tag-type {
  border-color: #e8ddd4;
  background: #f8f3ef;
  color: var(--ink-2);
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.priority::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.priority.p-high {
  color: var(--danger);
}

.priority.p-high::before {
  background: var(--danger);
}

.priority.p-mid {
  color: var(--warn-ink);
}

.priority.p-mid::before {
  background: #d79a10;
}

.priority.p-low {
  color: var(--muted);
}

.priority.p-low::before {
  background: #ab998c;
}

/* Календарь сроков */

.calendar-panel .panel-head {
  align-items: flex-start;
}

.legend {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-item .dot {
  width: 6px;
  height: 6px;
}

.legend-item.legend-overdue .dot {
  background: var(--danger);
}

.legend-item.legend-soon .dot {
  background: #d79a10;
}

.legend-item.legend-ok .dot {
  background: var(--ok);
}

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

.cal-weekday {
  padding: 8px 10px;
  background: #faf6f2;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cal-weekday.is-weekend {
  color: #9c7a2a;
}

.cal-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 6px 7px 7px;
  background: #ffffff;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.cal-day:nth-child(7n) {
  border-right: 0;
}

.cal-day.is-weekend {
  background: #fcfaf7;
}

.cal-day.is-empty {
  background: #fdfbf9;
}

.cal-day.is-today {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.cal-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cal-day.is-today .cal-num > span:first-child {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin: -2px 0 0 -3px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.cal-day.is-weekend .cal-num > span:first-child {
  color: var(--muted);
}

.cal-day.is-today.is-weekend .cal-num > span:first-child {
  color: #ffffff;
}

.cal-count {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.cal-marks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cal-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 4px;
  background: #f6f1ec;
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: left;
}

.cal-mark .dot {
  width: 5px;
  height: 5px;
}

.cal-mark-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-mark.st-overdue {
  background: var(--danger-bg);
  color: var(--danger);
}

.cal-mark.st-soon {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.cal-mark.st-pending,
.cal-mark.st-done {
  background: var(--ok-bg);
  color: var(--ok);
}

.cal-mark.st-done {
  opacity: 0.78;
}

.cal-more {
  padding-left: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

/* Пустое состояние, уведомления, подтверждение */

.empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
}

.empty b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 14px;
}

.empty span {
  font-size: 12px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
}

.notice .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.notice-text {
  flex: 1;
}

.notice-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px -5px -3px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}

.notice-close:hover {
  background: rgba(43, 36, 32, 0.07);
  opacity: 1;
}

.notice-close .icon {
  width: 14px;
  height: 14px;
}

.notice-success {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: #13563a;
}

.notice-info {
  border-color: #eed3c3;
  background: var(--blue-50);
  color: var(--blue);
}

.notice-danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.reset-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-md);
  background: var(--warn-bg);
}

.reset-confirm b {
  display: block;
  font-size: 13.5px;
  color: var(--warn-ink);
}

.reset-confirm p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.reset-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(43, 36, 32, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-error {
  background: var(--danger);
}

/* Сотрудники */

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

.employee-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.employee-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.employee-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.employee-role {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.employee-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.employee-meta span {
  overflow-wrap: anywhere;
}

.employee-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.employee-stat b {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.employee-stat span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-tasks {
  margin-top: 14px;
}

.employee-tasks h3 {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-mini {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
}

.task-mini .task-mini-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-mini time {
  flex: none;
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Отчёты */

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

.report-grid .panel {
  margin-bottom: 0;
}

.report-grid .span-2 {
  grid-column: 1 / -1;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
}

.bar-name {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bar-name span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.bar-fill.is-ok {
  background: var(--ok);
}

.bar-value {
  color: var(--ink-2);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.bar-value b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

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

.mini-table th {
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.mini-table th:not(:first-child),
.mini-table td:not(:first-child) {
  text-align: right;
}

.mini-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

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

.mini-table td:first-child {
  font-weight: 600;
}

.report-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.pay-split div {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fdfbf9;
}

.pay-split b {
  display: block;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.pay-split span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

/* Адаптив */

@media (min-width: 1180px) {
  .user-info {
    display: block;
  }
}

@media (max-width: 1100px) {
  .topbar-main {
    padding: 11px 18px;
  }

  .topbar-board {
    padding: 0 18px 10px;
    gap: 14px;
  }

  .main {
    padding: 22px 20px 52px;
  }

  .board-kicker {
    display: none;
  }
}

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

  .sidebar {
    min-height: 0;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

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

  .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--blue);
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    padding: 20px 18px 48px;
  }
}

@media (max-width: 820px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .login {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-brand {
    gap: 18px;
    padding: 22px 20px 24px;
  }

  .login-copy h1 {
    max-width: 18ch;
    margin: 8px 0 12px;
    font-size: 28px;
  }

  .login-lead,
  .login-features,
  .login-address {
    display: none;
  }

  .login-facts {
    margin-top: 16px;
    padding-top: 14px;
  }

  .login-facts strong {
    font-size: 22px;
  }

  .login-panel {
    padding: 22px 20px 28px;
    gap: 14px;
  }

  .login-card {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
  }

  .topbar-main {
    padding: 10px 14px;
    gap: 8px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-reset span,
  .btn-logout span {
    display: none;
  }

  .topbar-reset,
  .btn-logout {
    width: 38px;
    padding: 0;
  }

  .user {
    gap: 7px;
    padding-left: 6px;
  }

  .topbar-board {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 0 14px 10px;
  }

  .month-nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .month-label {
    min-width: 0;
    font-size: 15px;
  }

  .top-deadlines {
    width: 100%;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 15px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .toolbar {
    padding: 10px 12px;
  }

  .search-box {
    max-width: none;
    flex-basis: 100%;
  }

  .inline-form {
    padding: 14px;
  }

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

  .field-span-2,
  .field-span-3 {
    grid-column: 1 / -1;
  }

  .panel-head {
    padding: 12px 14px;
  }

  .panel-body {
    padding: 14px;
  }

  .calendar-panel .panel-head {
    align-items: stretch;
  }

  .legend {
    gap: 5px 10px;
    font-size: 10px;
  }

  .cal-weekday {
    padding: 6px 2px;
    font-size: 8.5px;
    text-align: center;
  }

  .cal-day {
    min-height: 64px;
    padding: 4px;
    gap: 3px;
  }

  .cal-num {
    font-size: 10.5px;
  }

  .cal-day.is-today .cal-num > span:first-child {
    min-width: 18px;
    height: 18px;
  }

  .cal-count {
    display: none;
  }

  .cal-marks {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }

  .cal-mark {
    width: 7px;
    height: 7px;
    padding: 0;
    overflow: visible;
    border-radius: 50%;
    background: transparent;
  }

  .cal-mark .dot {
    width: 7px;
    height: 7px;
  }

  .cal-mark-text {
    display: none;
  }

  .cal-mark.st-overdue,
  .cal-mark.st-soon,
  .cal-mark.st-pending,
  .cal-mark.st-done {
    background: transparent;
  }

  .cal-more {
    padding: 0;
    font-size: 8px;
    line-height: 7px;
  }

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

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

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

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bar-value {
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .table-wrap {
    overflow: visible;
  }

  .data thead {
    display: none;
  }

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

  .data tr {
    margin: 0 0 10px;
    padding: 4px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .data tbody tr:hover {
    background: #ffffff;
  }

  .data tr.row-overdue,
  .data tr.row-overdue:hover {
    background: #fff7f6;
  }

  .data tr.row-soon,
  .data tr.row-soon:hover {
    background: #fffaeb;
  }

  .data tr.row-overdue td:first-child,
  .data tr.row-soon td:first-child {
    box-shadow: none;
  }

  .data td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 6px 12px;
    border: 0;
    font-size: 12.5px;
  }

  .data td::before {
    content: attr(data-label);
    padding-top: 2px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .data td.cell-actions {
    display: block;
    padding-top: 9px;
    padding-bottom: 8px;
  }

  .data td.cell-actions::before {
    display: none;
  }

  .data td.cell-actions .row-actions {
    width: 100%;
  }

  .data td.cell-actions .btn {
    flex: 1;
  }

  .data td.cell-actions .control {
    width: 100%;
  }

  .data tr.is-empty-row {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .data tr.is-empty-row td {
    display: block;
    padding: 0;
  }

  .data tr.is-empty-row td::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-slogan {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 18px;
  }

  .user-info {
    display: none;
  }

  .main {
    padding: 16px 12px 42px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-sub {
    font-size: 12.5px;
  }

  .kpi-grid,
  .kpi-grid.is-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .kpi-card {
    padding: 11px 12px 12px;
  }

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

  .kpi-label {
    font-size: 9px;
  }

  .kpi-note {
    font-size: 10px;
  }

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

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .reset-confirm {
    align-items: stretch;
  }

  .reset-actions {
    width: 100%;
  }

  .reset-actions .btn {
    flex: 1;
  }

  .toolbar {
    gap: 7px;
  }

  .control {
    flex: 1 1 auto;
    min-width: 0;
  }

  .notice {
    font-size: 12px;
  }

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

  .employee-stats {
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .kpi-grid,
  .kpi-grid.is-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .board-today {
    order: 3;
  }

  .topbar-reset,
  .btn-logout {
    width: 34px;
  }

  .data td {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 10px;
  }

  .cal-day {
    min-height: 54px;
    padding: 3px;
  }

  .cal-weekday {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Ровный угол: дополнения под ремонтную нишу */
.rk-link { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; text-align: left; text-decoration: underline; cursor: pointer; }
.rk-link:hover { color: var(--blue-700); }
.rk-progress { height: 6px; margin: 6px 0 4px; max-width: 180px; }
.rk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; }
.rk-facts span { display: block; font-size: 12px; color: var(--muted); }
.rk-facts b { font-weight: 600; }
.rk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.rk-line span:first-child { flex: 1 1 220px; }
.rk-line:last-child { border-bottom: 0; }
.rk-thumb { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: var(--radius-md); }
.rk-photo .row-actions { margin-top: 10px; flex-wrap: wrap; }
.rk-photos { margin-top: 18px; }
.rk-row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.rk-row-soon td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.is-danger { color: var(--danger); }
