:root {
  --brand: #3d5470;
  --brand-hover: #2c3f55;
  --navy: #1c2433;
  --steel: #4e5864;
  --menu: #1eb3a8;
  --menu-hover: #168f87;
  --menu-soft: #d7f4f1;
  --sand: #eef1f4;
  --ink: #1c2433;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --danger: #b42318;
  --good: #168f87;
  --sidebar: #3a434d;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.05);
  --shadow-lg: 0 30px 80px rgba(31, 41, 51, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body.is-in #login { display: none !important; }
body.is-in #app,
body.is-in #app.staff-app { display: grid; }

body {
  font-family: Manrope, Gilroy, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(820px 380px at 8% -8%, rgba(30, 179, 168, 0.14), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(78, 88, 100, 0.12), transparent 46%),
    linear-gradient(180deg, #f5f7f9 0%, #e8edf1 100%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(78, 88, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 88, 100, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 { letter-spacing: -0.03em; }

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

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
}
@keyframes logo-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 84, 112, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(61, 84, 112, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.float-orb { animation: float-orb 9s ease-in-out infinite; }
.float-orb-delayed { animation: float-orb 11s ease-in-out infinite reverse; }
.logo-glow { animation: logo-glow 2.6s ease-in-out infinite; }
.page-enter { animation: fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-slide-in { animation: slide-in-left 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* —— Login (как specteh.rad55.ru/login) —— */
.login-wrap {
  display: grid;
  min-height: 100vh;
  width: 100%;
}
@media (min-width: 1024px) {
  .login-wrap { grid-template-columns: 1.05fr 0.95fr; }
}

.login-hero {
  display: none;
  position: relative;
  overflow: hidden;
  background: #3a434d;
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
}
@media (min-width: 1024px) {
  .login-hero { display: flex; }
}

.login-hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(30, 179, 168, 0.32), transparent 38%),
    radial-gradient(circle at 90% 88%, rgba(255, 255, 255, 0.08), transparent 40%);
}
.login-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
}
.login-orb-a {
  left: -64px;
  top: 80px;
  width: 288px;
  height: 288px;
  background: rgba(30, 179, 168, 0.25);
}
.login-orb-b {
  right: -40px;
  bottom: 32px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.1);
}

.login-hero-copy { position: relative; max-width: 32rem; }
.login-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--menu-soft);
}
.login-hero h1 {
  margin: 16px 0 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}
.login-hero p.lead {
  margin: 20px 0 0;
  max-width: 28rem;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.login-pills span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.login-copy {
  position: relative;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.login-card {
  width: min(28rem, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #fff;
  border-radius: 2rem;
  padding: 36px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.login-mobile-brand { display: block; margin-bottom: 12px; }
@media (min-width: 1024px) {
  .login-mobile-brand { display: none; }
}

.dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--menu);
}
.dots .bar {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 179, 168, 0.7);
}

.login-card h1,
.login-card h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--menu-hover);
}
.muted { color: var(--muted); margin: 0; }

label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 14px;
  border-radius: 14px;
  outline: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { overflow: hidden; }
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--menu);
  box-shadow: 0 0 0 4px rgba(30, 179, 168, 0.18);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
input[type="checkbox"]:checked {
  background: var(--menu);
  border-color: var(--menu);
}
input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -1px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--menu);
  outline-offset: 2px;
}

button[type="submit"], .primary {
  background: var(--menu);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(30, 179, 168, 0.28);
}
button[type="submit"]:hover, .primary:hover { background: var(--menu-hover); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.22);
}
.btn-danger:hover { background: #931c14; }

.error { color: var(--danger); margin: 0; font-size: 14px; }

.ghost-link {
  color: var(--menu-hover);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.ghost-link:hover { text-decoration: underline; }

/* —— Brand —— */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
}
.mark, .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: #050533;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-logo.lg { width: 64px; height: 64px; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand strong, .brand-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* —— App shell —— */
/* —— Mobile shell primitives (desktop defaults) —— */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line, #d7dde3);
  border-radius: 12px;
  background: #fff;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}
.nav-backdrop {
  display: none;
}
.op-cards-mobile { display: none; }
.op-table-desktop { display: block; }


#app.staff-app,
#app {
  min-height: 100vh;
  display: none;
  grid-template-columns: 272px 1fr;
}
body.is-in #app,
body.is-in #app.staff-app {
  display: grid;
}

aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background-color: var(--sidebar);
  background-image:
    radial-gradient(circle at 16% 10%, rgba(30, 179, 168, 0.32), transparent 38%),
    radial-gradient(circle at 90% 88%, rgba(255, 255, 255, 0.08), transparent 40%);
  color: #f5f5f4;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 8px 0 32px rgba(31, 41, 51, 0.18);
}
aside::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 48px 48px;
}
aside > * { position: relative; z-index: 1; }

.sidebar-accent {
  height: 4px;
  margin: 0 -12px;
  background: linear-gradient(90deg, var(--menu), #7ee0d8, rgba(30, 179, 168, 0.3));
  flex: 0 0 auto;
}

aside .brand { padding: 20px 8px 12px; flex: 0 0 auto; }

nav#app-nav {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  align-items: start;
  justify-items: stretch;
  padding-right: 2px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), transparent);
}
nav#app-nav::-webkit-scrollbar { width: 6px; }
nav#app-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
}
nav button { width: 100%; height: auto; }
nav button, .ghost, .sidebar-foot button {
  text-align: left;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  padding: 7px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
nav button .ico, .sidebar-foot button .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
nav button .ico svg, .sidebar-foot button .ico svg { width: 16px; height: 16px; }
nav button:hover, .sidebar-foot button[data-page]:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(2px);
}
nav button.active, .sidebar-foot button[data-page].active {
  background: rgba(30, 179, 168, 0.16);
  color: #fff;
  box-shadow: none;
  transform: none;
}
nav button.active::before, .sidebar-foot button[data-page].active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--menu);
}
nav button.active .ico, .sidebar-foot button[data-page].active .ico {
  background: rgba(30, 179, 168, 0.28);
  color: #7ee0d8;
}

.nav-label {
  margin: 14px 10px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-foot button { width: 100%; }
.sidebar-foot {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar-foot .ghost {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.55);
  justify-content: center;
  font-weight: 600;
}
.ghost {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.55);
  justify-content: center;
  font-weight: 600;
}
.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(31, 41, 51, 0.04);
}
.topbar-brand { min-width: 0; flex: 1 1 auto; }
.topbar .office {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.topbar .today {
  margin: 2px 0 0;
  font-size: 12px;
  color: #a8a29e;
  text-transform: capitalize;
}

.period {
  display: flex;
  gap: 10px;
  align-items: end;
  flex: 0 0 auto;
  opacity: 0.88;
}
.period label { font-size: 11px; color: var(--muted); font-weight: 600; }
.period input {
  width: 12.5ch;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
}

main { padding: 28px 36px 48px; }

.page-head { margin-bottom: 24px; }
.page-head h2 {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.page-head .sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cards-kpi {
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.cards-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-cash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kind-card {
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(226, 232, 240, 0.7);
  width: 100%;
}
.kind-card:hover { border-color: var(--menu); }
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.dash-tab {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
}
.dash-tab:hover { border-color: var(--menu); }
.dash-tab.active {
  background: var(--menu);
  border-color: var(--menu);
  color: #fff;
}
.dash-months { display: flex; flex-direction: column; gap: 8px; }
.dash-month {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
}
button.dash-month,
button.dash-article {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
button.dash-month:hover,
button.dash-article:hover {
  background: rgba(215, 244, 241, 0.45);
  border-color: var(--line);
}
.dash-month-lab { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dash-month-bars { display: flex; flex-direction: column; gap: 3px; }
.dash-bar {
  height: 8px;
  border-radius: 99px;
  min-width: 2px;
  background: var(--menu);
}
.dash-bar.out { background: #e11d48; }
.dash-month-nums {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  font-weight: 700;
}
.dash-legend { margin: 10px 0 0; }
.dash-articles { display: flex; flex-direction: column; gap: 10px; }
.dash-article-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.bar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--sand);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  background: var(--menu);
  border-radius: 99px;
}
.plan-meter {
  position: relative;
  height: 18px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--sand);
  overflow: hidden;
}
.plan-meter i {
  display: block;
  height: 100%;
  background: var(--menu);
}
.plan-meter.is-over i { background: #e11d48; }
.plan-meter span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
}

.company-pct-box { margin-top: 4px; }
.company-pct-cards { margin-top: 0; }
.company-pct-cards .card.is-warn strong { color: #b45309; }
.company-pct-meter {
  position: relative;
  height: 22px;
  margin-top: 12px;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.company-pct-meter i {
  display: block;
  height: 100%;
  background: #0f766e;
}
.company-pct-meter.is-over i { background: #b45309; }
.company-pct-meter.is-provisional i { background: #64748b; }
.company-pct-meter.is-portfolio i { background: #0369a1; }
.company-pct-meter.is-real i { background: #0f766e; }
.company-pct-cards .card.is-active-mode {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
}
.company-pct-meter span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--navy);
}
.company-pct-note { margin: 10px 0 0; }

.card, .panel {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before { display: none; }
.card.kpi-hero {
  padding: 22px 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8f8 100%);
  border-color: rgba(30, 179, 168, 0.28);
}
.card.kpi-hero strong {
  font-size: 32px;
  margin-top: 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.card.kpi-side strong {
  font-size: 20px;
  margin-top: 8px;
  transition: color 0.25s ease;
}
.card.kpi-side {
  padding: 16px 18px;
}
.card.is-click {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}
.card.is-click:hover { border-color: rgba(30, 179, 168, 0.45); }
.card.is-click:focus-visible {
  outline: 2px solid var(--menu);
  outline-offset: 2px;
}
.card-ico {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(30, 179, 168, 0.14);
  color: #0f766e;
}
.card-ico svg { width: 18px; height: 18px; }
.income-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: right;
}
.income-open:hover { color: #0f766e; }
.income-open-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(30, 179, 168, 0.14);
  color: #0f766e;
  flex: none;
}
.income-open-ico svg { width: 14px; height: 14px; }
.modal-card-income { width: min(760px, 100%); }
.income-list-table { margin-top: 8px; }
.card > span:not(.card-ico) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card strong {
  display: block;
  font-size: 24px;
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.neg { color: var(--danger) !important; }
.pos { color: var(--good) !important; }

.panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.date, th.date { text-align: center; font-variant-numeric: tabular-nums; }
.table-wrap { position: relative; }
.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 var(--line);
}
.op-table-desktop table tbody tr:nth-child(even):not([class*="op-doc-"]) td {
  background: rgba(248, 250, 252, 0.65);
}
.op-table-desktop th,
.op-table-desktop td {
  padding: 7px 10px;
  font-size: 13px;
}
.op-table-desktop th { font-size: 10px; }
.op-table-desktop td.op-row-actions,
.op-table-desktop td.op-check-col,
.op-table-desktop td.num,
.op-table-desktop td.date {
  vertical-align: middle;
}
.op-table-desktop th.op-row-actions,
.op-table-desktop td.op-row-actions {
  width: 108px;
  min-width: 108px;
  padding-left: 6px;
  padding-right: 8px;
  white-space: nowrap;
}
tbody tr:hover td { background: rgba(215, 244, 241, 0.35); }
#op-list tbody tr.op-doc-invoice-factura td,
#cp-modal tbody tr.op-doc-invoice-factura td,
#sheet-op-list tbody tr.op-doc-invoice-factura td { background: #e9f6ed; }
#op-list tbody tr.op-doc-act td,
#cp-modal tbody tr.op-doc-act td,
#sheet-op-list tbody tr.op-doc-act td { background: #e8f3fb; }
#op-list tbody tr.op-doc-other td,
#cp-modal tbody tr.op-doc-other td,
#sheet-op-list tbody tr.op-doc-other td { background: #f3eef8; }
#op-list tbody tr.op-doc-invoice-factura:hover td,
#cp-modal tbody tr.op-doc-invoice-factura:hover td,
#sheet-op-list tbody tr.op-doc-invoice-factura:hover td { background: #dceee2; }
#op-list tbody tr.op-doc-act:hover td,
#cp-modal tbody tr.op-doc-act:hover td,
#sheet-op-list tbody tr.op-doc-act:hover td { background: #d9ecf7; }
#op-list tbody tr.op-doc-other:hover td,
#cp-modal tbody tr.op-doc-other:hover td,
#sheet-op-list tbody tr.op-doc-other:hover td { background: #eae3f3; }

.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.cash-break { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.cash-break .hint { margin: 0 0 10px; }
form.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
form.grid > * { min-width: 0; }
form.grid .wide { grid-column: span 2; }
form.grid .full { grid-column: 1 / -1; }
#op-form.op-form-grid {
  gap: 8px;
  align-items: end;
}
.hint { color: var(--muted); font-size: 13px; }

.danger {
  background: transparent;
  border: 1px solid rgba(180, 35, 24, 0.35);
  color: var(--danger);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.op-row-actions-inner {
  display: inline-flex;
  gap: 2px;
  justify-content: flex-end;
  align-items: center;
  line-height: 0;
  vertical-align: middle;
}
.op-row-actions .btn-secondary {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.2;
}
.op-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
  flex: 0 0 auto;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.op-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}
.op-icon-btn:hover {
  color: var(--navy);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.14);
}
.op-icon-btn:focus-visible {
  outline: 2px solid var(--menu);
  outline-offset: 2px;
}
.op-icon-btn-danger:hover {
  color: #be123c;
  background: rgba(190, 18, 60, 0.08);
  border-color: rgba(190, 18, 60, 0.16);
}
.audit-toolbar label { min-width: 160px; }
.audit-action {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef4ff;
  color: #1d4ed8;
}
.audit-action.create { background: #e6f6f4; color: #0f766e; }
.audit-action.update { background: #eef4ff; color: #1d4ed8; }
.audit-action.delete { background: #fdecec; color: #b42318; }
.audit-changes {
  display: grid;
  gap: 6px;
  min-width: 220px;
}
.audit-change {
  display: grid;
  grid-template-columns: minmax(72px, 90px) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  font-size: 13px;
}
.audit-change b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 2px;
}
.audit-from {
  color: var(--muted);
  text-decoration: line-through;
  word-break: break-word;
}
.audit-arrow { color: var(--muted); }
.audit-to {
  color: var(--navy);
  font-weight: 600;
  word-break: break-word;
}
.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.panel-toolbar h3 { margin: 0; }
.account-bank-card { margin-bottom: 16px; }
.account-money-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 960px) {
  .account-money-grid { grid-template-columns: 1fr 1fr; }
}
.account-add-panel .account-add-form { margin-top: 8px; }
.account-add-form .wide { grid-column: 1 / -1; }
.modal-card-account { width: min(720px, 100%); }
.modal-card-account .account-add-form { margin-top: 4px; }
.modal-card-account .modal-actions {
  margin-top: 8px;
  justify-content: flex-end;
}
.account-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.account-guide-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-guide-book-icon {
  display: block;
  flex: 0 0 auto;
}
.modal-card-account .account-guide-list {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}
.account-list-panel { padding: 0; overflow: hidden; }
.account-list-panel .table-wrap { margin: 0; border: 0; border-radius: 0; }
.account-list-table { width: 100%; border-collapse: collapse; }
.account-list-table th,
.account-list-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.account-list-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f7fafb;
}
.account-list-table tbody tr.account-list-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.account-list-table tbody tr.account-list-row:hover,
.account-list-table tbody tr.account-list-row:focus {
  background: #f0f7f6;
  outline: none;
}
.account-list-table .mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.account-meta .wide { grid-column: 1 / -1; }
.account-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 12px 0 0;
}
.account-meta-preview {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfb;
}
.account-meta dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 4px;
}
.account-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}
.account-meta .mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.account-meta .hint {
  font-weight: 500;
  margin-top: 4px;
}
.account-guide-intro { margin: 12px 0 0; max-width: 72ch; line-height: 1.45; }
.guide-intro { margin: -4px 0 12px; max-width: 78ch; line-height: 1.45; }
.guide-body { display: flex; flex-direction: column; gap: 8px; }
.guide-section { margin: 4px 0 18px; }
.guide-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.guide-card-list {
  display: grid;
  gap: 12px;
}
.guide-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbfcfc 0%, #f3f7f7 100%);
}
.guide-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.guide-card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: var(--navy);
}
.guide-card p { margin: 0 0 8px; line-height: 1.45; color: var(--ink, #1e293b); }
.guide-card .hint { margin: 8px 0 0; }
.guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.guide-corr {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal, #0f766e);
}
.guide-steps {
  margin: 8px 0 0;
  padding-left: 1.2em;
  line-height: 1.5;
}
.guide-steps li { margin: 0 0 4px; }
.guide-plain-list {
  margin: 0;
  padding-left: 1.1em;
  line-height: 1.55;
}
.guide-plain-list li { margin: 0 0 6px; }
.guide-account-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.guide-mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.guide-mini .mono {
  font-weight: 800;
  color: var(--teal, #0f766e);
  margin-bottom: 4px;
}
.guide-mini p { margin: 0; font-size: 13px; line-height: 1.4; }
@media (max-width: 720px) {
  .guide-card-head { flex-direction: column; }
  .guide-card-actions { justify-content: flex-start; }
}
.account-guide-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.account-guide-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fbfcfc 0%, #f4f8f8 100%);
}
.account-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.account-guide-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.account-guide-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal, #0f766e);
  letter-spacing: 0.04em;
}
.account-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.account-guide-tags .tag,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e8eef0;
  color: var(--navy);
}
.tag-closed {
  background: #e8eef2;
  color: #3a4a55;
  border: 1px solid #c5d0d8;
}
.settings-admin-tools {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #d7dde3);
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}
.closed-tagged-wrap {
  max-height: min(520px, 58vh);
  overflow: auto;
  margin: 0.75rem 0 0;
}
.tag-cash {
  background: #dff5f1;
  color: #0f766e;
}
.account-guide-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 0;
}
.account-guide-body dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.account-guide-body dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy);
}
.account-guide-examples {
  grid-column: 1 / -1;
}
.account-guide-examples ul {
  margin: 0;
  padding-left: 18px;
}
.account-guide-examples li {
  margin: 2px 0;
}
@media (max-width: 820px) {
  .account-guide-body { grid-template-columns: 1fr; }
  .account-guide-head { flex-direction: column; }
  .account-guide-tags { justify-content: flex-start; }
}
.obj-toolbar .op-tools { margin-left: auto; }
.obj-toolbar .primary { height: 40px; white-space: nowrap; }
.stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.stage-pill.is-open {
  background: rgba(30, 179, 168, 0.16);
  color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(30, 179, 168, 0.22);
}
.stage-pill.is-closed {
  background: #e8edf3;
  color: #475569;
  box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.12);
}
.obj-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.op-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  margin-bottom: 16px;
}
.op-head .op-toolbar { margin: 0; }
.op-head .primary { white-space: nowrap; }
.op-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.op-head-actions .btn-secondary,
.op-head-actions .primary {
  white-space: nowrap;
  height: 40px;
}
.op-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.op-tools .btn-secondary {
  height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.op-tools .btn-secondary.is-on {
  border-color: var(--menu);
  background: var(--menu-soft);
  color: var(--navy);
}
.op-tools .btn-secondary:disabled,
.modal-actions .btn-secondary:disabled {
  opacity: 0.4;
  cursor: default;
}
.modal-card-filters { width: min(1180px, 100%); }
.modal-card-sort { width: min(640px, 100%); }
.modal-card-cp { width: min(1100px, 100%); }
.modal-card-bank-dup { width: min(980px, 100%); }
.modal-card-bank { width: min(980px, 100%); max-height: min(86vh, 900px); overflow: auto; }
.catalog-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 10px;
}
.catalog-cp-search {
  flex: 1 1 240px;
  min-width: 200px;
  margin: 0;
}
.catalog-cp-search input {
  width: 100%;
  box-sizing: border-box;
}
.bank-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bank-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bank-dup-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.bank-dup-tools .btn-secondary,
.bank-dup-tools .btn-danger { padding: 8px 12px; font-size: 13px; }
#bank-dup-body .table-wrap { max-height: min(420px, 48vh); overflow: auto; }
#bank-dup-body table { font-size: 13px; }
.cp-facts { margin-bottom: 18px; }
.cp-ops-title {
  margin: 8px 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}
.cp-tabs { margin: 0 0 14px; }
.cp-recon-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cp-recon-lock-status { margin: 0; }
.cp-recon-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cp-period-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-period-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.cp-period-custom label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.cp-period-custom input {
  height: 40px;
  width: 132px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.cp-recon-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 8px;
}
.cp-recon-sheet h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.cp-recon-lead {
  margin: 0 0 10px;
  line-height: 1.45;
}
.cp-recon-table th[colspan] { text-align: center; }
.cp-recon-saldo td {
  font-weight: 800;
  background: #f8fafc;
}
.cp-recon-result {
  margin: 14px 0 8px;
  font-weight: 700;
}
@media print {
  .toast-stack, .modal-ask { display: none !important; }
  body.print-cp-recon .staff-app,
  body.print-cp-recon .login-wrap,
  body.print-cp-recon .modal-backdrop,
  body.print-cp-recon .modal-head,
  body.print-cp-recon .cp-facts,
  body.print-cp-recon .cp-tabs,
  body.print-cp-recon .cp-recon-toolbar,
  body.print-cp-recon .cp-recon-lock-actions,
  body.print-cp-recon #cp-ops-panel {
    display: none !important;
  }
  body.print-cp-recon #cp-modal {
    position: static;
    inset: auto;
    background: #fff;
  }
  body.print-cp-recon .modal-card-cp {
    box-shadow: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
  }
  body.print-cp-recon .cp-recon-sheet {
    border: 0;
    padding: 0;
  }
}
tr.is-click { cursor: pointer; }
tr.is-click:focus-visible td { outline: none; background: rgba(215, 244, 241, 0.55); }
.op-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sheet-op-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.multi-flat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
  max-height: min(520px, 62vh);
}
.multi-flat .multi-head {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.multi-flat .multi-list {
  overflow: auto;
  max-height: min(360px, 46vh);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 51, 0.52);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  outline: none;
  animation: sheet-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.modal-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.modal-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--sand);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}
.modal-x:hover { background: #e2e8f0; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
}
.modal-actions .danger {
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
}
.btn-secondary:hover { background: var(--sand); }
body.modal-open { overflow: hidden; }

body > .modal-ask { z-index: 190; }
.modal-card-ask {
  width: min(460px, 100%);
  padding: 22px 22px 18px;
}
.ask-text {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.45;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
body > .toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(28, 36, 51, 0.16);
  animation: toast-in 0.28s ease;
}
.toast.is-out { animation: toast-out 0.2s ease forwards; }
.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--menu);
  box-shadow: 0 0 0 6px rgba(30, 179, 168, 0.14);
}
.toast-ok .toast-dot { background: var(--good); }
.toast-error .toast-dot {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(180, 35, 24, 0.12);
}
.toast-body { min-width: 0; }
.toast-body strong {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.toast-body p {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.4;
}
.toast-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}
.toast-x:hover { background: var(--sand); color: var(--navy); }

.op-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  align-items: end;
}
.op-toolbar > * { min-width: 0; }
.op-toolbar .op-search { flex: 1 1 240px; }
.op-sortbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
}
.sort-row,
.merge-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.sort-row > *,
.merge-bar > * { min-width: 0; }
.sort-row label,
.merge-bar label {
  gap: 6px;
}
.sort-row select,
.merge-bar select {
  height: 40px;
  padding: 8px 12px;
}
.merge-bar button,
.sort-row button {
  height: 40px;
  white-space: nowrap;
  align-self: end;
}
.sort-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.multi-pop { position: relative; min-width: 0; }
.multi-pop > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}
.multi-pop > summary::-webkit-details-marker { display: none; }
.multi-pop[open] > summary { border-color: var(--menu); }
.multi-panel {
  position: absolute;
  z-index: 40;
  margin-top: 6px;
  width: min(320px, 78vw);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.multi-q { width: 100%; margin-bottom: 8px; padding: 8px 10px; }
.multi-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.check-row,
.multi-list label,
.multi-all {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  border-radius: 8px;
}
.check-row:hover,
.multi-list label:hover,
.multi-all:hover { background: rgba(215, 244, 241, 0.45); }
.check-row span,
.multi-list label span,
.multi-all span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 16px;
}
.multi-all {
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}
.inline-kind { width: 100%; max-width: 240px; }
.object-sheet .op-head {
  margin-top: 12px;
  margin-bottom: 8px;
}
.object-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.object-sheet-head h3 {
  margin: 10px 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.object-plan-table .object-plan-total th {
  font-weight: 800;
  border-top: 1px solid var(--line);
}
.object-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.object-fields .wide { grid-column: span 2; }
.object-fields .full { grid-column: 1 / -1; }
.catalog-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 179, 168, 0.35);
  border-radius: 14px;
  background: #e8f8f6;
  color: var(--navy);
  font-size: 14px;
}
.remind-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 420px);
  overflow: auto;
}
.remind-list button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  font-weight: 600;
}
.remind-list button:hover { border-color: var(--menu); background: rgba(215, 244, 241, 0.45); }
.remind-list .hint { margin: 4px 0 0; font-weight: 500; }
.dupe-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 420px);
  overflow: auto;
}
.dupe-list > li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.merge-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.merge-pair .merge-names { flex: 1 1 240px; min-width: 0; }
.dupe-ops {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.dupe-op {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.35;
}
.dupe-op span { word-break: break-word; }
.dupe-op-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.dupe-why {
  margin-top: 4px;
  color: var(--ink-soft, var(--muted));
}
.dupe-wizard .dupe-ops { margin-top: 12px; }
.typo-fix { margin-top: 6px; }
.typo-fix button { margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.th-sort {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: inherit;
}
.th-sort:hover, .th-sort.is-on { color: var(--navy); }
th.num .th-sort { width: 100%; text-align: right; }
th.date .th-sort { width: 100%; text-align: center; }
.op-empty {
  margin: 28px 0 12px;
  text-align: center;
  color: var(--muted);
}
.empty-state {
  margin: 28px auto;
  max-width: 420px;
  text-align: center;
  padding: 28px 20px;
}
.empty-state strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.state-error {
  margin: 20px auto;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: #fff5f4;
  color: var(--danger);
  font-weight: 600;
}
.skeleton {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.skeleton-row {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef2f6 0%, #f7f9fb 45%, #eef2f6 90%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.op-subtotals {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line, #d7dde3);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fafb 0%, #f2f6f7 100%);
}
.op-subtotals-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  font-size: 14px;
}
.op-subtotals-main strong {
  font-variant-numeric: tabular-nums;
}
.op-subtotals-groups {
  margin-top: 12px;
}
.op-subtotals-groups .hint {
  margin: 0 0 8px;
}
.op-subtotals-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.op-subtotals-table th,
.op-subtotals-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line, #e2e8ec);
  text-align: left;
}
.op-subtotals-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.op-subtotals-table tfoot th {
  border-bottom: 0;
  border-top: 1px solid var(--line, #c5d0d8);
  padding-top: 8px;
}
.op-subtotals-more td {
  color: var(--muted);
  font-style: italic;
  border-bottom: 0;
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.pager button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
}
.pager button:disabled { opacity: 0.4; cursor: default; }

.bank-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 28px 18px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  background: #f7fbfb;
  cursor: pointer;
  text-align: center;
}
.bank-drop strong { color: var(--navy); font-weight: 800; }
.bank-drop:hover, .bank-drop.is-over {
  border-color: var(--menu, #1eb3a8);
  background: rgba(30, 179, 168, 0.08);
}
.bank-rule-form { margin-bottom: 16px; }
.bank-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef2f7;
  color: var(--muted);
}
.bank-badge.is-dup { background: #fde8e6; color: #b42318; }
.bank-badge.is-new { background: #fff4d6; color: #9a6700; }
.bank-badge.is-ok { background: rgba(30, 179, 168, 0.14); color: #0f766e; }
.bank-badge.is-ai { background: rgba(14, 116, 144, 0.12); color: #0e7490; }
.bank-badge.bank-dup-hot {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.bank-dup-cell { min-width: 160px; }
.bank-dup-pop {
  position: fixed;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  background: #1c2433;
  color: #fff;
  box-shadow: 0 16px 40px rgba(28, 36, 51, 0.28);
  font-size: 13px;
  line-height: 1.35;
}
.bank-dup-pop-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 4px 0;
}
.bank-dup-pop-row + .bank-dup-pop-row { border-top: 1px solid rgba(255,255,255,0.12); }
.bank-dup-pop-row b {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bank-dup-pop-row span { word-break: break-word; }
#bank-preview tbody tr.bank-dup td { opacity: 0.62; color: #64748b; }
#bank-preview tbody tr.bank-unmatched td {
  background: rgba(251, 191, 36, 0.12);
}
#bank-preview tbody tr.bank-unmatched:hover td {
  background: rgba(251, 191, 36, 0.18);
}
#bank-preview tbody tr.bank-dup.bank-unmatched td {
  background: transparent;
  opacity: 0.62;
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { color: var(--menu, #1eb3a8); }
.bank-split-line td { background: #f7fbfb; font-size: 13px; }
.bank-split-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(160px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
@media (max-width: 980px) {
  .bank-split-row { grid-template-columns: 1fr; }
}
#bank-preview .bank-purpose-cell {
  min-width: 180px;
  max-width: 320px;
}
#bank-preview .bank-purpose-text {
  margin-bottom: 6px;
  word-break: break-word;
}
.op-comment-cell {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
#bank-preview .bank-doc-number,
#bank-preview .bank-comment {
  width: 100%;
  min-width: 88px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--line, #d7e0ea);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
#bank-preview .bank-doc-kind {
  min-width: 110px;
}
#bank-preview .bank-comment:focus {
  outline: none;
  border-color: rgba(30, 179, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(30, 179, 168, 0.12);
}
#bank-preview select {
  width: 100%;
  min-width: 120px;
}

@media (max-width: 980px) {
  #app.staff-app,
  #app { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 28, 36, 0.45);
    backdrop-filter: blur(2px);
    border: 0;
    padding: 0;
    margin: 0;
  }
  .nav-backdrop[hidden] { display: none !important; }
  aside {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(304px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0 12px 16px;
    overflow: hidden;
    box-shadow: 12px 0 40px rgba(20, 28, 36, 0.28);
  }
  body.nav-open aside { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .sidebar-accent { width: auto; margin: 0 -12px; }
  aside .brand { padding: 16px 8px 10px; }
  nav#app-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    align-content: start;
    gap: 3px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-label { grid-column: auto; margin-top: 10px; }
  .sidebar-foot { width: 100%; }
  .ghost { margin-top: 0; width: 100%; }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 14px;
    background: rgba(247, 248, 250, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line, #e5e9ee);
  }
  .topbar .office { font-size: 13px; }
  .topbar .period {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .topbar .period label { width: 100%; }
  .topbar .period input { width: 100%; }
  main { padding: 16px 14px 96px; }
  .cards, .cards-cash, .row, .cash-break, form.grid, .op-head, .sort-row, .merge-bar, .object-fields, .dash-month { grid-template-columns: 1fr; }
  .account-meta { grid-template-columns: 1fr 1fr; }
  .op-filter-grid { grid-template-columns: 1fr 1fr; }
  .sheet-op-filter-grid { grid-template-columns: 1fr 1fr; }
  .obj-filter-grid { grid-template-columns: 1fr; }
  .op-head .primary { width: 100%; }
  .op-head-actions { width: 100%; }
  .op-head-actions .btn-secondary,
  .op-head-actions .primary { width: 100%; }
  .op-toolbar { flex-direction: column; align-items: stretch; }
  .op-toolbar .op-search { flex: 1 1 auto; width: 100%; }
  .op-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .op-tools .btn-secondary { width: 100%; }
  .op-table-desktop { display: none !important; }
  .op-cards-mobile {
    display: grid;
    gap: 10px;
    margin-top: 4px;
  }
  .op-card {
    border: 1px solid var(--line, #dce3e8);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(28, 36, 51, 0.04);
  }
  .op-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }
  .op-card-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .op-card-doc { margin-top: 4px; font-size: 12px; }
  .op-card-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
  }
  .op-card-desc {
    margin: 10px 0 8px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--navy);
    word-break: break-word;
  }
  .op-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 4px;
  }
  .op-card-meta > div {
    display: grid;
    gap: 2px;
  }
  .op-card-meta span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .op-card-meta strong {
    font-size: 13px;
    font-weight: 650;
    color: var(--navy);
    word-break: break-word;
  }
  .op-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: flex-end;
  }
  .op-card-actions .op-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f8fafc;
    border-color: var(--line);
    color: var(--navy);
  }
  .op-card-actions .op-icon-btn-danger {
    color: #be123c;
  }
  .op-card-actions .btn-secondary,
  .op-card-actions .danger {
    width: auto;
    min-height: 40px;
  }
  .op-subtotals {
    margin-top: 12px;
  }
  .op-subtotals-table {
    max-width: none;
    font-size: 12px;
  }
  .modal-card,
  .modal-card-filters,
  .modal-card-sort,
  .modal-card-cp,
  .modal-card-bank,
  .modal-card-bank-dup,
  .modal-card-account {
    width: min(100%, 100vw);
    max-height: min(92dvh, 920px);
    margin: 0;
    border-radius: 16px 16px 0 0;
  }
  .modal {
    align-items: flex-end;
  }
  form.grid .wide,
  form.grid .full {
    grid-column: auto;
  }
  .login-card { padding: 24px; }
  .login-hero h1 { font-size: 36px; }
  .op-row-actions-inner { flex-wrap: wrap; }
  .audit-change { grid-template-columns: 1fr; }
  body > .toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pager {
    gap: 8px;
  }
  .pager button {
    min-height: 40px;
    flex: 1;
  }
}
@media (max-width: 640px) {
  .op-filter-grid { grid-template-columns: 1fr; }
  .sheet-op-filter-grid { grid-template-columns: 1fr; }
  .obj-filter-grid { grid-template-columns: 1fr; }
  .account-meta { grid-template-columns: 1fr; }
  .op-tools { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 24px; }
}

/* Спецтехника: фильтры и графики */
.equip-page-head { margin: 0 0 12px; }
.equip-page-head h3 { margin: 0 0 4px; font-size: 1.25rem; }
.equip-page-head .hint { margin: 0; }
.equip-dash { display: flex; flex-direction: column; gap: 16px; }
.equip-spark-panel { padding: 16px 18px; }
.equip-spark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .equip-spark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .equip-spark-grid { grid-template-columns: 1fr; }
}
.equip-spark-card {
  appearance: none;
  width: 100%;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 14px 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(42, 168, 154, 0.16);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(30, 179, 168, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  box-shadow: 0 8px 20px rgba(15, 40, 50, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.equip-spark-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 179, 168, 0.4);
  box-shadow: 0 12px 28px rgba(15, 40, 50, 0.08);
}
.equip-spark-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.equip-spark-name {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}
.equip-spark-cov {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  background: rgba(15, 40, 50, 0.05);
  border-radius: 999px;
  padding: 3px 8px;
}
.equip-spark-main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.equip-spark-main.pos { color: #0f766e; }
.equip-spark-main.neg { color: #be123c; }
.equip-spark-meta {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.equip-spark { display: block; width: 100%; height: 36px; }
.equip-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f7fbfa 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.equip-filter-block { display: flex; flex-direction: column; gap: 8px; }
.equip-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.equip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.equip-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.equip-chip:hover { border-color: var(--menu); }
.equip-chip.active {
  background: var(--menu);
  border-color: var(--menu);
  color: #fff;
}
.equip-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}
.equip-charts > .panel {
  padding: 16px 18px 14px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(42, 168, 154, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 40, 50, 0.04);
}
.equip-charts > .panel > h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.equip-chart-scroll { overflow-x: auto; padding-bottom: 4px; }
.equip-col-chart {
  display: block;
  min-width: 100%;
  border-radius: 14px;
}
.equip-col.in { fill: url(#equipGradIn); }
.equip-col.out { fill: url(#equipGradOut); }
.equip-col {
  transition: opacity 0.15s ease, filter 0.15s ease;
  filter: drop-shadow(0 4px 8px rgba(15, 40, 50, 0.08));
}
.equip-col-lab { font-size: 10px; fill: var(--muted); font-weight: 600; }
.equip-col-hit { cursor: pointer; }
.equip-col-hit:hover .equip-col { opacity: 0.92; filter: drop-shadow(0 6px 12px rgba(15, 40, 50, 0.14)); }
.equip-col-mark.is-best { fill: rgba(42, 168, 154, 0.08); }
.equip-col-mark.is-worst { fill: rgba(225, 29, 72, 0.06); }
.equip-cum {
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.equip-cum.in { stroke: #1f7f74; }
.equip-cum.out { stroke: #e11d48; stroke-dasharray: 5 4; }
.equip-cum-area.in { fill: rgba(42, 168, 154, 0.12); }
.equip-cum-area.out { fill: rgba(225, 29, 72, 0.08); }
.equip-compare { display: flex; flex-direction: column; gap: 8px; }
.equip-compare-row {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.equip-compare-row:hover {
  background: rgba(215, 244, 241, 0.55);
  border-color: rgba(42, 168, 154, 0.28);
  transform: translateY(-1px);
}
.equip-compare-name {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.equip-compare-bars { display: flex; flex-direction: column; gap: 5px; }
.equip-compare-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.equip-compare-barwrap {
  height: 10px;
  border-radius: 99px;
  background: rgba(15, 40, 50, 0.06);
  overflow: hidden;
}
.equip-compare-track i {
  display: block;
  height: 10px;
  border-radius: 99px;
  min-width: 2px;
  background: linear-gradient(90deg, #2aa89a, #1f7f74);
  transition: width 0.35s ease;
}
.equip-compare-track i.out {
  background: linear-gradient(90deg, #fb7185, #e11d48);
}
.equip-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.equip-chart-summary > div {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
  border: 1px solid rgba(42, 168, 154, 0.14);
  box-shadow: 0 6px 16px rgba(15, 40, 50, 0.03);
}
.equip-chart-summary span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 4px;
}
.equip-chart-summary strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.equip-chart-summary em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.equip-grid { stroke: rgba(15, 40, 50, 0.08); stroke-width: 1; stroke-dasharray: 3 4; }
.equip-axis { font-size: 10px; fill: var(--muted); font-weight: 600; }
.equip-val { font-size: 9px; font-weight: 700; }
.equip-val.pos { fill: #0f766e; }
.equip-val.neg { fill: #be123c; }
.equip-col-sub { font-size: 9px; font-weight: 700; }
.equip-col-sub.pos { fill: #0f766e; }
.equip-col-sub.neg { fill: #be123c; }
.equip-bal-line {
  stroke: #64748b;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  opacity: 0.7;
}
.equip-bal-dot.pos { fill: #0f766e; stroke: #fff; stroke-width: 1; }
.equip-bal-dot.neg { fill: #e11d48; stroke: #fff; stroke-width: 1; }
.equip-legend-bal { color: #64748b; font-weight: 700; }
.equip-compare-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.equip-compare-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.equip-compare-meta em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}
.equip-compare-barwrap {
  min-width: 0;
  background: #eef3f5;
  border-radius: 99px;
  overflow: hidden;
}
.equip-compare-barwrap i { width: 0; transition: width .2s ease; }
.equip-compare-track span em {
  font-style: normal;
  opacity: 0.7;
  margin-left: 4px;
  font-weight: 600;
}
.dash-article-top em.hint {
  font-style: normal;
  font-weight: 600;
  margin-left: 6px;
}

.equip-col-mark.is-best { fill: rgba(42, 168, 154, 0.1); }
.equip-col-mark.is-worst { fill: rgba(225, 29, 72, 0.08); }
.equip-cum {
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  pointer-events: none;
}
.equip-cum.in { stroke: #1f7f74; stroke-dasharray: none; }
.equip-cum.out { stroke: #e11d48; stroke-dasharray: 5 4; }
.equip-compare-barwrap {
  min-width: 0;
  height: 10px;
  background: rgba(15, 40, 50, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.equip-compare-barwrap i { width: 0; transition: width .35s ease; }
.equip-mom-svg { font-size: 8px; font-weight: 700; fill: var(--muted); }
.equip-mom-svg.pos { fill: #0f766e; }
.equip-mom-svg.neg { fill: #be123c; }
.equip-legend-cum { color: #64748b; font-weight: 700; }
.equip-bal-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}
.equip-bal-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}
.equip-bal-strip-head em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}
.equip-bal-zero { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.equip-bal-bar.pos { fill: #0f766e; }
.equip-bal-bar.neg { fill: #e11d48; }
.equip-bal-lab { font-size: 9px; fill: var(--muted); font-weight: 600; }
.equip-bal-hit { cursor: pointer; }
.equip-bal-hit:hover .equip-bal-bar { opacity: 0.85; }
.equip-donut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfb;
}
.equip-donut-total { font-size: 11px; font-weight: 800; fill: var(--navy); }
.equip-donut-cap { font-size: 9px; font-weight: 600; fill: var(--muted); }
.equip-donut-legend { display: flex; flex-direction: column; gap: 6px; }
.equip-donut-leg {
  appearance: none;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.equip-donut-leg:hover { background: rgba(215, 244, 241, 0.55); }
.equip-donut-leg i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  display: block;
}
.equip-donut-leg strong { color: var(--muted); font-size: 11px; }
.equip-ratio {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: #eef3f5;
  margin: 0 0 6px;
}
.equip-ratio i.in { background: #0f766e; display: block; height: 100%; }
.equip-ratio i.out { background: #e11d48; display: block; height: 100%; }
.equip-art-rank {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  background: #e8f5f3;
  color: #0f766e;
  font-size: 10px;
}
@media (max-width: 960px) {
  .equip-donut { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 960px) {
  .equip-charts { grid-template-columns: 1fr; }
  .equip-chart-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .equip-chip { padding: 7px 12px; font-size: 12px; }
}

/* Карточка компаньона */
.companion-sheet {
  animation: companion-in 0.35s ease-out;
}
@keyframes companion-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.companion-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.companion-sheet-head h3 {
  margin: 10px 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.companion-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.companion-kpis {
  margin-bottom: 16px;
}
.companion-kpi span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.companion-kpi strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.companion-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.companion-chart-panel h3 {
  margin-top: 0;
}
.companion-donut {
  margin-top: 8px;
}
@media (max-width: 960px) {
  .companion-charts { grid-template-columns: 1fr; }
}

/* —— Visual polish v94 —— */
.object-sheet { animation: sheet-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.obj-plan-cell { min-width: 110px; }
.obj-plan-cell .plan-meter { margin-top: 4px; }
.obj-list-table tbody tr.is-closed td { opacity: 0.82; }
.obj-list-table tbody tr.is-closed .stage-pill { opacity: 1; }

.report-page .cards { margin-bottom: 18px; }
.report-table {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.report-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.report-table td,
.report-table th {
  padding: 11px 14px;
}
.report-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.7);
}
.report-table .report-total th,
.report-table .report-total td {
  font-weight: 800;
  color: var(--navy);
  border-top: 2px solid var(--line);
  background: #f3f7f8 !important;
}
.report-panel h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.settings-stack { display: grid; gap: 16px; }
.settings-block {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.settings-block + .settings-block { margin-top: 0; }
.settings-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}
.settings-block > .hint { margin-top: 0; }
.settings-block.is-system {
  background: linear-gradient(180deg, #fbfcfd, #f3f6f8);
}
.settings-admin-tools { margin-top: 12px; }

.mobile-bottom {
  display: none;
}

@media (max-width: 980px) {
  .mobile-bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px rgba(31, 41, 51, 0.08);
  }
  .mobile-bottom button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 12px;
  }
  .mobile-bottom button .mb-ico {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }
  .mobile-bottom button .mb-ico svg { width: 18px; height: 18px; }
  .mobile-bottom button.active {
    color: #0f766e;
    background: rgba(30, 179, 168, 0.12);
  }
  .cards-kpi { grid-template-columns: 1fr; }
  .card.kpi-hero strong { font-size: 28px; }
  main { padding-bottom: 108px; }
}

@media (max-width: 1100px) {
  .cards-kpi { grid-template-columns: 1fr 1fr; }
  .cards-kpi .kpi-hero { grid-column: 1 / -1; }
}

/* —— Visual polish v95 —— */
:root {
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-head {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.page-head h2 {
  position: relative;
  display: inline-block;
}
.page-head h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--menu), rgba(30, 179, 168, 0.15));
}

.card, .panel {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.04);
}
.panel h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(226, 232, 240, 0.95);
  color: var(--steel, var(--navy));
  font-weight: 650;
  box-shadow: none;
}
.btn-secondary:hover {
  background: #fff;
  border-color: rgba(30, 179, 168, 0.35);
  color: var(--navy);
}
.primary, button[type="submit"] {
  box-shadow: 0 8px 18px rgba(30, 179, 168, 0.22);
}

.op-head,
.obj-toolbar,
.panel-toolbar,
.op-toolbar {
  gap: 10px 12px;
}
.op-tools .btn-secondary,
.op-head-actions .btn-secondary {
  background: transparent;
  border-color: transparent;
  color: var(--steel, #4e5864);
  font-weight: 650;
}
.op-tools .btn-secondary:hover,
.op-head-actions .btn-secondary:hover {
  background: rgba(30, 179, 168, 0.08);
  border-color: transparent;
  color: var(--navy);
}
.op-tools .btn-secondary.is-on {
  background: rgba(30, 179, 168, 0.12);
  border-color: rgba(30, 179, 168, 0.22);
  color: #0f766e;
}

.table-wrap {
  border-radius: 14px;
}
.table-wrap.table-sticky,
.table-wrap.op-table-desktop.table-sticky {
  max-height: min(70vh, 820px);
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  background:
    linear-gradient(#f8fafc 33%, rgba(248, 250, 252, 0)) center top / 100% 28px no-repeat,
    linear-gradient(rgba(248, 250, 252, 0), #f8fafc 67%) center bottom / 100% 28px no-repeat,
    linear-gradient(#fff, #fff);
  background-attachment: local, local, scroll;
}
.table-wrap.table-sticky thead th,
.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
}
tbody tr {
  transition: background 0.15s ease;
}
td.num, th.num, .card strong, .kpi-hero strong, .kpi-side strong {
  font-variant-numeric: tabular-nums;
}

.dash-articles { gap: 8px; }
.dash-article {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dash-article.is-lead {
  background: linear-gradient(180deg, rgba(30, 179, 168, 0.08), rgba(30, 179, 168, 0.02));
  border-color: rgba(30, 179, 168, 0.18);
}
.dash-article.is-lead .equip-art-rank,
.dash-article.is-lead .dash-art-rank {
  background: var(--menu);
  color: #fff;
}
.dash-article:hover {
  transform: translateY(-1px);
}
.equip-art-rank,
.dash-art-rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(30, 179, 168, 0.14);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}
.bar-track {
  height: 7px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
  margin-top: 8px;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14a39a, #1eb3a8);
}

.modal-backdrop {
  background: rgba(28, 36, 51, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 28px 70px rgba(28, 36, 51, 0.18);
}

.toast {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 36px rgba(31, 41, 51, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
}

.bank-badge {
  letter-spacing: 0.02em;
  font-weight: 650;
  background: #f1f5f9;
}
.bank-badge.is-ok {
  background: rgba(30, 179, 168, 0.12);
}
.bank-badge.is-new {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.bank-badge.is-dup {
  background: rgba(180, 35, 24, 0.1);
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
  padding: 28px 22px;
}

.skeleton-row {
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 48%, #eef2f6 100%);
  background-size: 200% 100%;
}

.period input {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.period input:focus {
  border-color: var(--menu);
  box-shadow: 0 0 0 3px rgba(30, 179, 168, 0.16);
}

.dash-tab {
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dash-tab.active {
  box-shadow: 0 6px 14px rgba(30, 179, 168, 0.2);
}

@media (max-width: 980px) {
  .op-card {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f9fbfc);
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.05);
    padding: 14px 16px;
  }
  .op-card-amount {
    font-size: 17px;
    letter-spacing: -0.02em;
  }
  .op-card-actions .op-icon-btn {
    background: #f8fafc;
  }
  .op-card-actions .btn-secondary {
    background: #f8fafc;
  }
  .mobile-bottom {
    background: rgba(255, 255, 255, 0.96);
  }
  .mobile-bottom button.active {
    transform: translateY(-1px);
  }
  .page-head {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* —— Visual polish v96 —— */
aside .brand {
  padding: 12px 10px 8px;
  margin: 0 2px 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}
aside .brand-logo {
  box-shadow: 0 0 0 2px rgba(30, 179, 168, 0.35), 0 8px 18px rgba(0, 0, 0, 0.18);
}
aside .brand strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}
aside .brand small {
  opacity: 0.62;
  margin-top: 2px;
}

.login-panel {
  background:
    radial-gradient(circle at 12% 8%, rgba(30, 179, 168, 0.08), transparent 36%),
    linear-gradient(180deg, #f7fafb, #eef3f6);
}
.login-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 22px 50px rgba(31, 41, 51, 0.1);
  backdrop-filter: blur(8px);
}
.login-card h2 {
  letter-spacing: -0.03em;
}
.login-card label {
  gap: 6px;
}
.login-card input {
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-card input:focus {
  border-color: var(--menu);
  box-shadow: 0 0 0 3px rgba(30, 179, 168, 0.16);
  outline: none;
}
.login-card button[type="submit"] {
  margin-top: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.login-card button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 179, 168, 0.28);
}
.login-hero-copy h1 {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.login-pills span {
  transition: background 0.15s ease, transform 0.15s ease;
}
.login-pills span:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.equip-chips {
  gap: 6px;
}
.equip-chip {
  border-radius: 12px;
  padding: 7px 12px;
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.95);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.equip-chip:hover {
  background: #fff;
  border-color: rgba(30, 179, 168, 0.45);
  transform: translateY(-1px);
}
.equip-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 179, 168, 0.22);
}
.equip-chip.active {
  background: linear-gradient(180deg, #24c0b4, #1aa89e);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(30, 179, 168, 0.28);
}

.object-sheet-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.object-sheet-head h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}
.object-fields {
  gap: 14px;
  padding: 4px 0 8px;
}
.object-fields label {
  gap: 6px;
}

.audit-action {
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.audit-action.create {
  border-color: rgba(15, 118, 110, 0.16);
}
.audit-action.update {
  border-color: rgba(29, 78, 216, 0.14);
}
.audit-action.delete {
  border-color: rgba(180, 35, 24, 0.14);
}
.audit-change {
  padding: 6px 8px;
  border-radius: 10px;
  background: #f8fafc;
}
.audit-from,
.audit-to {
  word-break: break-word;
}

.catalog-page {
  padding-bottom: 8px;
}
.catalog-form {
  align-items: end;
}
.catalog-form label {
  gap: 6px;
}
.catalog-banner {
  border-radius: 16px;
  background: linear-gradient(180deg, #eefbf9, #e6f7f5);
}
.catalog-list {
  margin-top: 16px;
}
.catalog-list .table-wrap {
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.pager {
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
  width: fit-content;
  max-width: 100%;
}
.pager button {
  border-radius: 10px;
  padding: 7px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pager button:not(:disabled):hover {
  border-color: var(--menu);
  color: #0f766e;
  background: rgba(30, 179, 168, 0.08);
}
.pager-label {
  min-width: 7.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--steel, #4e5864);
}

.bank-drop {
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.bank-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 179, 168, 0.12), transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}
.bank-drop > * { position: relative; z-index: 1; }
.bank-drop:hover,
.bank-drop.is-over {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 179, 168, 0.12);
}
.bank-drop.is-over {
  border-style: solid;
  background: rgba(30, 179, 168, 0.12);
}

tbody tr.is-click:focus-visible td,
tbody tr:focus-visible td {
  outline: none;
  background: rgba(30, 179, 168, 0.08);
  box-shadow: inset 3px 0 0 var(--menu);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float-orb,
  .float-orb-delayed,
  .logo-glow,
  .skeleton-row {
    animation: none !important;
  }
  .dash-article:hover,
  .equip-chip:hover,
  .login-card button[type="submit"]:hover,
  .bank-drop:hover,
  .bank-drop.is-over,
  .mobile-bottom button.active {
    transform: none;
  }
}


/* ---- Удобный ввод операций ---- */
.op-quickline{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-top:10px}
.op-quickline-label{flex:1;min-width:220px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.op-quickline-label input{width:100%}
.op-presets,.op-templates{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.op-presets .chip,.op-templates .chip,.op-preset-btn,.op-tpl-btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;cursor:pointer}
.op-presets .chip.is-active,.op-presets .chip.active,.op-preset-btn.active{border-color:#1f6feb;background:#eaf2ff;color:#0b3d91}
.op-suggest-hint{margin:0 0 8px}
.modal-card-op{width:min(760px,100%)}
.op-form-grid .op-advanced{display:none}
.modal-card-op.show-advanced .op-advanced,.op-form-grid.show-advanced .op-advanced,.modal.show-advanced .op-advanced{display:grid}
.op-advanced-toggle,details.op-advanced-toggle{margin-top:2px;color:var(--muted);font-size:13px}
.op-accounts-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.op-corr-hint{
  margin:4px 0 0;
  font-weight:650;
  color:var(--navy,#1e293b);
}
@media (max-width:720px){
  .op-accounts-grid{grid-template-columns:1fr}
}
.combo-field{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}
.combo-field.wide{grid-column:span 2}
.combo-label{font-size:13px;color:var(--muted)}
.combo-input{width:100%}
.combo-menu{position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:30;max-height:220px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(16,24,40,.12)}
.combo-option,.combo-empty{display:block;width:100%;text-align:left;padding:8px 10px;background:transparent;border:0;cursor:pointer;font:inherit}
.combo-option:hover{background:#f3f6fb}
.combo-clear{position:absolute;right:8px;top:28px;border:0;background:transparent;cursor:pointer;color:var(--muted);font-size:16px;line-height:1}
.op-form-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#import-op-modal textarea,#op-import-text{width:100%;min-height:180px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}
@media (max-width:720px){
  .combo-field.wide{grid-column:1/-1}
  .op-quickline{flex-direction:column;align-items:stretch}
}

.sheet-op-add{margin:0 0 10px}
.chip.is-active,.op-preset.is-active{border-color:#1f6feb;background:#eaf2ff}

/* ---- Выписка: фильтры и удаление ---- */
.bank-stat-cards {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.bank-stat-card {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 88px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.bank-stat-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-1px);
}
.bank-stat-card.is-active {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #f3fbfa, #eef8f7);
}
.bank-stat-cards .bank-stat-card span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: #64748b;
}
.bank-stat-cards .bank-stat-card strong {
  font-size: 22px;
  margin: 0;
}
.bank-stat-hint { margin: -8px 0 12px; }
.bank-reopen-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfc, #fff);
}
.bank-reopen-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}
.bank-reopen-summary .hint { margin: 2px 0 0; }
.bank-view-bar{
  display:grid;
  grid-template-columns:minmax(180px,1.4fr) repeat(5,minmax(120px,1fr)) auto;
  gap:10px;
  align-items:end;
  margin:10px 0 8px;
}
.bank-view-bar label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);min-width:0}
.bank-view-bar select,.bank-view-bar input{width:100%}
.bank-view-search{grid-column:span 1}
.bank-row-del{
  min-width:34px;
  padding:4px 8px;
  line-height:1;
}
.danger-soft{
  border-color:rgba(180,35,24,.35);
  color:var(--danger);
}
@media (max-width:1100px){
  .bank-view-bar{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .bank-view-bar{grid-template-columns:1fr}
}

.bank-stmt-row { cursor: pointer; }
.bank-stmt-row:hover td { background: rgba(31, 111, 235, 0.06); }
.bank-stmt-row .op-row-actions { white-space: nowrap; }

/* ---- Мобильный ввод операций ---- */
.op-pay-type {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.op-pay-btn {
  min-height: 44px;
  border: 1px solid var(--line, #dce3e8);
  border-radius: 14px;
  background: #fff;
  color: var(--navy, #1c2433);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 8px;
  cursor: pointer;
}
.op-pay-btn.is-active {
  border-color: #1f6feb;
  background: #eaf2ff;
  color: #0b3d91;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.25);
}
.op-amount-field .op-amount-input {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  min-height: 40px;
}
.op-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.op-date-native { display: none; }
.op-doc-fields {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr);
  gap: 8px 10px;
  align-items: end;
}
.op-doc-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.op-extra-fields,
.op-advanced-toggle {
  grid-column: 1 / -1;
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.op-advanced-toggle > summary,
.op-attachments > summary {
  cursor: pointer;
  list-style: none;
}
.op-advanced-toggle > summary::-webkit-details-marker,
.op-attachments > summary::-webkit-details-marker {
  display: none;
}
.op-extra-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.op-more-tools {
  width: 100%;
}
.op-more-tools > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding: 8px 0;
}
.op-more-tools > summary::-webkit-details-marker { display: none; }
.op-more-tools-body {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.op-fab { display: none; }
.combo-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(20, 28, 36, 0.4);
}
.modal-card-op {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 920px);
  overflow: hidden;
  padding: 0;
}
.modal-card-op .modal-head {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 14px 18px 8px;
}
.op-modal-scroll {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 10px;
  overscroll-behavior: contain;
}
.modal-card-op .op-form-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line, #e5e9ee);
  background: #fff;
}
.op-field-comment textarea {
  width: 100%;
  min-height: 38px;
  resize: vertical;
  line-height: 1.35;
  font: inherit;
}
.op-comment {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #64748b);
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .op-desktop-tool { display: none !important; }
  .op-head-actions {
    display: grid;
    gap: 8px;
  }
  .op-head-actions #op-open {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    justify-content: center;
  }
  .op-more-tools-body .btn-secondary { width: 100%; min-height: 44px; }
  .op-fab {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    min-height: 56px;
    padding: 0 18px 0 14px;
    border: 0;
    border-radius: 999px;
    background: #1f6feb;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(31, 111, 235, 0.35);
  }
  body.op-modal-open .op-fab,
  body.modal-open .op-fab {
    display: none !important;
  }
  .op-fab-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
  }
  .modal-card-op {
    width: 100%;
    max-height: 96dvh;
    min-height: 0;
    border-radius: 18px 18px 0 0;
    padding: 0;
    overflow: hidden;
  }
  .modal-card-op .modal-head {
    padding: 14px 16px 8px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }
  .op-modal-scroll {
    padding: 0 16px 12px;
  }
  .op-pay-type {
    grid-template-columns: 1fr 1fr;
  }
  .op-pay-btn { min-height: 42px; font-size: 14px; }
  .op-presets .chip,
  .op-templates .chip {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 12px;
  }
  .op-form-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .op-form-grid > * { width: 100%; }
  .op-amount-field .op-amount-input {
    font-size: 22px !important;
    min-height: 48px;
    border-radius: 14px;
  }
  .op-date-text { display: none !important; }
  .op-date-native {
    display: block !important;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .combo-input,
  .op-form-grid input,
  .op-form-grid select {
    min-height: 48px;
    font-size: 16px !important;
  }
  .combo-clear {
    top: 34px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .combo-menu.combo-menu-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: min(55dvh, 440px);
    border-radius: 18px 18px 0 0;
    z-index: 80;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.2);
  }
  .combo-option,
  .combo-empty {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 16px;
  }
  .modal-card-op .op-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line, #e5e9ee);
    box-shadow: 0 -10px 24px rgba(28, 36, 51, 0.06);
    background: #fff;
  }
  .modal-card-op .op-form-actions .op-action-cancel,
  .modal-card-op .op-form-actions .op-action-template {
    display: none;
  }
  .modal-card-op .op-form-actions .primary,
  .modal-card-op .op-form-actions #op-save-next {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    border-radius: 16px;
  }
  .modal-card-op .op-form-actions #op-save-next:not([hidden]) {
    order: 2;
  }
  .modal-card-op .op-form-actions .primary {
    order: 1;
  }
  .op-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .op-card-actions .danger {
    grid-column: auto;
  }
}

@media (min-width: 981px) {
  .op-more-tools { display: none; }
  .op-pay-type { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; }
  .op-extra-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Auto period: hide topbar date inputs */
.period-hidden {
  display: none !important;
}

.sheet-op-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.sheet-op-add-row .ghost {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

.op-series-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  margin: 0 0 10px;
  border-radius: 14px;
  background: #eef6ff;
  border: 1px solid #cfe3ff;
}
.op-series-label {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  margin-right: 4px;
}
.op-series-chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  cursor: pointer;
}
.op-series-chip:hover {
  background: #dbeafe;
}

.combo-section {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.combo-option-frequent {
  background: #f8fafc;
}

.op-template-lg {
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  padding: 10px 14px;
}

@media (max-width: 980px) {
  .topbar {
    gap: 8px;
    padding-bottom: 8px;
  }
  .brand {
    min-width: 0;
  }
  .modal:has(.modal-card-op) {
    padding: 0;
    align-items: stretch;
    place-items: stretch;
  }
  .modal-card-op {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  .modal-card-op .modal-head {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .modal-card-op .op-modal-scroll {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }
  .modal-card-op .op-form-actions {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .op-pay-btn { min-height: 42px; font-size: 14px; }
  .op-amount-field .op-amount-input {
    font-size: 22px !important;
    min-height: 48px;
  }
  .op-field-comment textarea {
    min-height: 44px;
    font-size: 16px;
  }
  .op-doc-fields {
    grid-template-columns: 1fr;
  }
  .op-series-bar {
    margin: 0 0 12px;
  }
  .op-templates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .op-template {
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 14px;
    justify-content: center;
    text-align: center;
  }
  .sheet-op-add-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 10px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, #fff 28%);
  }
}

.sheet-op-add-row {
  grid-template-columns: 1.4fr 1fr 1fr;
}
.sheet-op-add-row .primary {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

.op-series-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.op-series-title {
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
}
.op-series-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.op-series-chip {
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

@media (max-width: 980px) {
  .companion-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }
  .companion-sheet-actions #companion-op-add,
  .companion-sheet-actions #companion-sheet-ops {
    grid-column: 1 / -1;
  }
  .companion-sheet-actions .primary,
  .companion-sheet-actions .btn-secondary {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
  }
  .sheet-op-add-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sheet-op-add-row #object-op-add {
    grid-column: 1 / -1;
  }
  .report-page .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .report-page .card {
    min-height: 88px;
    padding: 14px;
  }
  .report-page .card strong {
    font-size: 20px;
  }
  .report-page .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .report-table td,
  .report-table th {
    padding: 12px 10px;
    font-size: 14px;
  }
  .account-bank-card .panel-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .account-bank-card .panel-toolbar .danger,
  .account-bank-card .panel-toolbar .btn-secondary {
    min-height: 40px;
  }
}

/* ——— Improvements v122: reminders, batch, attachments, recurring ——— */
.reminders-panel {
  margin-bottom: 14px;
  border-left: 4px solid #0f766e;
}
.reminders-panel h3 { margin: 0 0 10px; }
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}
.rem-section h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #5b6b76);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rem-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rem-item {
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}
.week-changes-panel h3 { margin: 0 0 8px; }
.week-changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.week-changes-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.op-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #f4f7f8;
  border: 1px solid var(--line, #d7dde3);
  border-radius: 10px;
}
.op-batch-bar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5b6b76);
}
.op-batch-bar select {
  min-width: 140px;
  font-weight: 500;
}
.op-batch-count {
  font-weight: 700;
  font-size: 14px;
  margin-right: 4px;
  align-self: center;
}
.op-check-col {
  width: 36px;
  text-align: center;
}
.op-card-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}
.op-attachments {
  display: grid;
  gap: 6px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.op-attachments-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  padding: 2px 0;
}
.op-attachments > *:not(summary) {
  margin-top: 6px;
}
.op-attachments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.op-att-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.recurring-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line, #d7dde3);
  width: 100%;
}
.recurring-panel h3 { margin: 0 0 6px; }
.recurring-form {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.bank-learn-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.bank-supplier-match {
  margin-top: 4px;
  color: #0f766e;
  font-weight: 600;
}
.plan-note-hint {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafb;
  border-radius: 8px;
}
.guide-scenarios .guide-card {
  border-color: #c5d0d8;
  background: linear-gradient(180deg, #f8fbfb, #fff);
}
.cp-recon-toolbar .primary {
  min-width: 7rem;
  font-weight: 700;
}
@media (max-width: 980px) {
  .op-batch-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .op-batch-bar select { width: 100%; }
  .reminders-grid { grid-template-columns: 1fr; }
}


/* Карточка договора объекта */
.object-contract-panel .object-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.object-contract-panel .object-contract-head h3 {
  margin: 0;
}
.object-contract-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.object-contract-row {
  display: grid;
  gap: 4px;
}
.object-contract-row dt {
  font-size: 12px;
  color: var(--muted, #64748b);
  font-weight: 600;
}
.object-contract-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--navy, #0f2744);
  word-break: break-word;
}
.object-contract-block {
  grid-column: 1 / -1;
}
.object-contract-list {
  margin: 0;
  padding-left: 18px;
}
.object-contract-list li {
  margin: 2px 0;
}
.object-contract-edit[hidden],
.object-contract-view[hidden] {
  display: none !important;
}
.object-contract-sep {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line, #e2e8f0);
  font-weight: 600;
}
.contract-stages {
  display: grid;
  gap: 8px;
}
.contract-stages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contract-stages-list {
  display: grid;
  gap: 8px;
}
.contract-stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
}
.contract-stage-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.contract-stage-remove {
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.object-docs-box,
.object-docs-box {
  display: grid;
  gap: 8px;
}
.object-docs-head,
.object-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.object-docs-list,
.object-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
@media (max-width: 720px) {
  .object-contract-view,
  .contract-stage-row {
    grid-template-columns: 1fr;
  }
}


.object-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.object-contract-head h3 { margin: 0; }
.object-contract-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.object-contract-row { display: grid; gap: 4px; }
.object-contract-row dt {
  font-size: 12px;
  color: var(--muted, #64748b);
  font-weight: 600;
}
.object-contract-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--navy, #0f2744);
  word-break: break-word;
}
.object-contract-block { grid-column: 1 / -1; }
.object-contract-list { margin: 0; padding-left: 18px; }
.pre-wrap { white-space: pre-wrap; }
.contract-stages { display: grid; gap: 8px; }
.contract-stages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contract-stages-list { display: grid; gap: 8px; }
.contract-stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
}
.contract-stage-row label { display: grid; gap: 4px; font-size: 12px; }
.object-docs-box { display: grid; gap: 8px; }
.object-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.object-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.object-contract-sep {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line, #e2e8f0);
  font-weight: 600;
}
@media (max-width: 720px) {
  .object-contract-view,
  .contract-stage-row { grid-template-columns: 1fr; }
}

.close-file, .close-month { margin: 0 0 12px; color: var(--muted, #5c6b7a); }
.close-block { margin-bottom: 14px; }
.close-block h3 { margin: 0 0 8px; font-size: 18px; }
.close-list { margin: 0; padding-left: 18px; }
.close-list li { margin: 0 0 8px; }
.close-empty { margin: 0; color: var(--muted, #5c6b7a); }

.close-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.close-row span { flex: 1; }
.close-action { flex: none; border: 1px solid var(--line, #d5dde6); background: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.close-excluded { background: #f8fafc; }
