:root {
  --sna-blue: #1072d2;
  --sna-blue-dark: #0258b6;
  --sna-blue-soft: #3b8fe0;
  --sna-blue-pale: #e8f1fb;
  --sna-navy: #051838;
  --sna-navy-deep: #030f26;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --line: #dbe4f0;
  --text: #1a2332;
  --muted: #4b5563;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --chart-expense: #eb6834;
  --chart-expense-dark: #d95926;
  --chart-grid: #e2e6ec;
  --chart-axis: #c7cfdb;
  --shadow: 0 10px 30px rgba(5, 24, 56, 0.10);
  --radius: 8px;
  --font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

noscript {
  display: block;
  padding: 24px;
  background: #fff1f2;
  color: #991b1b;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(226, 241, 255, 0.72), rgba(248, 252, 255, 0.95)),
    #eef7ff;
  overflow: auto;
}

.login-shell {
  width: min(100%, 1460px);
  min-height: min(850px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.9fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 75, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    #f8fcff;
  box-shadow: 0 22px 70px rgba(8, 34, 68, 0.14);
}

.login-visual {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 34px 20px 22px;
  background:
    linear-gradient(180deg, rgba(223, 242, 255, 0.58), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 20% 15%, rgba(2, 88, 182, 0.12), transparent 34%);
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(225, 243, 255, 0.72)),
    repeating-linear-gradient(90deg, rgba(2, 88, 182, 0.05) 0 1px, transparent 1px 58px);
}

.login-hero-image {
  position: relative;
  z-index: 1;
  width: min(96%, 850px);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(12, 45, 83, 0.12));
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
}

.login-card-wrap {
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(15, 42, 75, 0.08);
  box-shadow: -18px 0 50px rgba(8, 34, 68, 0.08);
}

.login-card {
  width: min(100%, 500px);
  display: grid;
  gap: 20px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
}

.login-logo {
  width: 184px;
  height: 184px;
  justify-self: center;
  object-fit: contain;
  padding: 6px;
  background: white;
}

.login-card h1 {
  margin: -4px 0 0;
  color: #0d1728;
  font-size: 38px;
  line-height: 1.08;
  text-align: center;
}

.login-card p {
  margin: -6px 0 8px;
  color: #667085;
  line-height: 1.45;
  text-align: center;
  font-size: 17px;
}

.login-card .field,
.login-card .login-field {
  margin: 0;
}

.login-card .field label {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.input-icon-field {
  position: relative;
  display: grid;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #7b8798;
  pointer-events: none;
}

.input-icon svg,
.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.login-card .input-icon-field input {
  min-height: 56px;
  padding-left: 52px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: white;
  color: #111827;
  font-size: 16px;
  box-shadow: none;
}

.login-card .input-icon-field input::placeholder {
  color: #717c91;
}

.login-card .input-icon-field input:focus {
  border-color: #0258b6;
  box-shadow: 0 0 0 4px rgba(2, 88, 182, 0.12);
  outline: none;
}

.password-field {
  position: relative;
  display: grid;
}

.login-card .input-icon-field.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: #0258b6;
  background: #eef6ff;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #667085;
  font-size: 15px;
  cursor: pointer;
}

.remember-row input {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: #0258b6;
  border-radius: 5px;
}

.login-card .btn.primary.login-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  justify-content: center;
  color: white;
  background: #0258b6;
  border-color: #0258b6;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(2, 88, 182, 0.24);
}

.login-card .btn.primary.login-submit:hover {
  color: white;
  background: #014da0;
  border-color: #014da0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 278px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  color: white;
  background: var(--sna-navy);
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: white;
}

.brand-mark img {
  width: 50px;
  height: 50px;
  background: transparent;
  padding: 0;
}

.brand-text strong {
  display: block;
  font-size: 16px;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  color: #c7ddf7;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius);
  color: #dcecff;
  background: transparent;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  color: white;
  background: rgba(16, 114, 210, 0.35);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.10);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav button:hover .nav-icon,
.nav button.active .nav-icon {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: white;
  background: #3b8fe0;
}

.sidebar-footer strong {
  color: white;
}

.sidebar-footer .muted {
  color: #071a2f;
}

.sidebar-footer .btn.ghost {
  border-color: white;
  color: #071a2f;
  background: white;
}

.sidebar-footer .btn.ghost:hover {
  border-color: #d9ecff;
  color: #071a2f;
  background: #eef7ff;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #071a2f;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.mobile-toggle {
  display: none;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface-muted);
}

.search input:focus {
  border-color: var(--sna-blue);
  box-shadow: 0 0 0 3px rgba(16, 114, 210, 0.13);
}

.shortcut {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  font-size: 11px;
  font-family: var(--mono);
}

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

.notif-bell-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(340px, 90vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notif-dropdown-head strong {
  color: var(--sna-navy);
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
}

.notif-item:last-child {
  border-bottom: 0;
}

.notif-item:hover {
  background: #f7fbff;
}

.notif-item.unread {
  background: #eaf4ff;
}

.notif-item.unread:hover {
  background: #ddeeff;
}

.notif-item-title {
  color: var(--sna-navy);
  font-weight: 800;
  font-size: 13px;
}

.notif-item-message {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
}

.notif-item-time {
  color: var(--muted);
  font-size: 11px;
}

.notif-dropdown-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.notif-dropdown-foot .btn {
  width: 100%;
}

.content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 22px;
}

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

.page-title h1 {
  margin: 0;
  color: var(--sna-navy);
  font-size: 30px;
  line-height: 1.1;
}

.page-title p {
  max-width: 840px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  border-color: #c6d6e8;
  background: #f7fbff;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.btn.primary {
  border-color: var(--sna-blue);
  color: white;
  background: var(--sna-blue);
}

.btn.primary:hover {
  background: var(--sna-blue-dark);
}

.btn.danger {
  border-color: #fee2e2;
  color: #991b1b;
  background: #fff1f2;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.small {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

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

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sna-navy);
  background: white;
}

.icon-btn:hover {
  border-color: #c6d6e8;
  background: #f7fbff;
}

.icon-btn.danger {
  border-color: #fee2e2;
  color: #991b1b;
  background: #fff7f7;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status-select {
  min-height: 34px;
  max-width: 190px;
  padding: 6px 28px 6px 10px;
  border: 0;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 900;
  outline: none;
}

.status-select.success {
  color: #047857;
  background: #d1fae5;
}

.status-select.warning {
  color: #92400e;
  background: #fef3c7;
}

.status-select.danger {
  color: #991b1b;
  background: #fee2e2;
}

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field.module-access-field {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.field label {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.field small {
  color: var(--muted);
  line-height: 1.35;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: white;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sna-blue);
  box-shadow: 0 0 0 3px rgba(16, 114, 210, 0.13);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.filter-row-fill > * {
  flex: 1 1 0;
  min-width: 150px;
}

.filter-row-fill .date-filter input {
  flex: 1;
}

.filter-row select,
.filter-row input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.date-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-filter input {
  min-height: 34px;
  padding: 0;
  border: 0;
}

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

.kpi {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kpi strong {
  display: block;
  margin-top: 9px;
  color: var(--sna-navy);
  font-size: 23px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.kpi small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.kpi.soft-blue {
  border-color: rgba(16, 114, 210, 0.16);
  background: rgba(16, 114, 210, 0.08);
}

.kpi.soft-green {
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.10);
}

.kpi.soft-amber {
  border-color: rgba(245, 158, 11, 0.20);
  background: rgba(245, 158, 11, 0.11);
}

.kpi.soft-rose {
  border-color: rgba(239, 68, 68, 0.16);
  background: rgba(239, 68, 68, 0.08);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.panel {
  padding: 16px;
}

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

.panel h2,
.panel h3,
.card h3 {
  margin: 0;
  color: var(--sna-navy);
}

.panel p,
.card p {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  background: #f8fbff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.code {
  font-family: var(--mono);
  color: var(--sna-navy);
  font-size: 12px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  color: var(--sna-navy);
  background: var(--sna-blue-pale);
}

.status.success,
.status.accepté,
.status.payée,
.status.terminé,
.status.livré,
.status.validé {
  color: #047857;
  background: #d1fae5;
}

.status.warning,
.status.envoyé,
.status.partiellement,
.status.encours,
.status.en-cours,
.status.planifié,
.status.confirmé,
.status.négociation {
  color: #92400e;
  background: #fef3c7;
}

.status.danger,
.status.en-retard,
.status.refusé,
.status.annulé,
.status.urgente {
  color: #991b1b;
  background: #fee2e2;
}

.status.info,
.status.brouillon,
.status.prospect,
.status.à-faire {
  color: #075985;
  background: #e0f2fe;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e5edf7;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sna-blue);
}

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

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 10px;
}

.bar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sna-blue), var(--success));
}

.bar-value {
  color: var(--sna-navy);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.panel:has(.line-chart),
.panel:has(.accounting-chart-wrap) {
  display: flex;
  flex-direction: column;
}

.panel:has(.line-chart) .line-chart,
.panel:has(.accounting-chart-wrap) .accounting-chart-wrap {
  margin-top: auto;
  margin-bottom: auto;
}

.line-chart,
.accounting-chart {
  width: 100%;
  min-height: 360px;
  overflow: visible;
}

.combo-chart {
  display: block;
}

.chart-grid-line line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-grid-line text {
  fill: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.chart-baseline {
  stroke: var(--chart-axis);
  stroke-width: 1;
}

.combo-area {
  fill: var(--sna-blue);
  opacity: 0.1;
}

.combo-line {
  fill: none;
  stroke: var(--sna-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: white;
  stroke: var(--sna-blue);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.14s ease, r 0.14s ease;
}

.chart-dot-end {
  fill: var(--sna-blue);
  stroke: white;
  stroke-width: 2;
}

.chart-end-label {
  fill: var(--sna-navy);
  font-size: 15px;
  font-weight: 800;
  paint-order: stroke;
  stroke: white;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.chart-hit-area {
  cursor: pointer;
}

.chart-hover-line {
  opacity: 0;
  stroke: var(--chart-axis);
  stroke-width: 1;
  transition: opacity 0.14s ease;
}

.chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.chart-tooltip rect {
  fill: var(--sna-navy-deep);
}

.chart-tooltip text {
  fill: white;
  font-size: 12px;
  font-weight: 700;
}

.chart-tooltip-value {
  font-size: 15px;
  font-weight: 800;
}

.chart-tooltip-label {
  fill: #aab6c9;
  font-weight: 600;
}

.chart-tooltip-title {
  font-size: 12.5px;
  font-weight: 800;
}

.chart-tooltip-key {
  stroke-width: 3;
  stroke-linecap: round;
}

.chart-tooltip-key.revenue {
  stroke: var(--sna-blue-soft);
}

.chart-tooltip-key.expense {
  stroke: var(--chart-expense);
}

.chart-month {
  fill: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.chart-point:hover .chart-tooltip,
.chart-point:focus .chart-tooltip,
.chart-point:hover .chart-hover-line,
.chart-point:focus .chart-hover-line,
.chart-point:hover .chart-dot,
.chart-point:focus .chart-dot {
  opacity: 1;
}

.chart-point:hover .chart-dot,
.chart-point:focus .chart-dot {
  r: 6;
}

.accounting-chart-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.accounting-expense-bar {
  fill: var(--chart-expense);
  transition: fill 0.16s ease, opacity 0.16s ease;
}

.accounting-revenue-bar {
  fill: var(--sna-blue);
  transition: fill 0.16s ease, opacity 0.16s ease;
}

.accounting-bar-group:hover .chart-tooltip,
.accounting-bar-group:focus .chart-tooltip {
  opacity: 1;
}

.accounting-bar-group:hover .accounting-expense-bar,
.accounting-bar-group:focus .accounting-expense-bar {
  fill: var(--chart-expense-dark);
}

.accounting-bar-group:hover .accounting-revenue-bar,
.accounting-bar-group:focus .accounting-revenue-bar {
  fill: var(--sna-blue-dark);
}

.accounting-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.accounting-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accounting-chart-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.accounting-chart-legend .revenue {
  background: var(--sna-blue);
}

.accounting-chart-legend .expense {
  background: var(--chart-expense);
}

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

.quick-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.quick-item strong {
  display: block;
  margin-bottom: 4px;
}

.quick-item span,
.quick-item small {
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.module-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.module-card h3 {
  margin: 0 0 8px;
}

.module-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 14px 0 0;
}

.module-card dt {
  color: var(--muted);
}

.module-card dd {
  margin: 0;
  font-weight: 800;
}

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

.project-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 114, 210, 0.07), rgba(255, 255, 255, 0) 38%),
    white;
  box-shadow: 0 8px 24px rgba(5, 24, 56, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.project-card:hover,
.project-card:focus {
  border-color: #b9d2ef;
  box-shadow: 0 14px 34px rgba(5, 24, 56, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.project-card-top,
.project-card-foot,
.project-progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 6px 0 0;
  color: var(--sna-navy);
  line-height: 1.2;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-progress {
  height: 9px;
}

.project-progress-row span,
.project-card-stats span,
.project-card-foot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-card-stats div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e6eef8;
  border-radius: var(--radius);
  background: #fbfdff;
}

.project-card-stats strong,
.project-card-foot strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--sna-navy);
  overflow-wrap: anywhere;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.project-card-actions .btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.danger-text {
  color: #991b1b !important;
}

.project-chart-panel {
  min-width: 0;
}

.project-pie-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.78fr);
  align-items: center;
  gap: 16px;
}

.project-pie-chart {
  width: 100%;
  max-width: 420px;
  min-height: 260px;
  overflow: visible;
}

.project-pie-chart path,
.project-pie-chart circle {
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.project-pie-chart text {
  fill: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.project-pie-legend {
  display: grid;
  gap: 9px;
}

.project-pie-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 7px 9px;
  align-items: center;
}

.project-pie-legend span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.project-pie-legend strong {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
}

.project-pie-legend em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.kanban-col {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfe;
}

.kanban-col header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.task-card {
  margin: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

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

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  min-height: 128px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.calendar-day strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sna-navy);
}

.calendar-event {
  margin-top: 6px;
  padding: 7px;
  border-left: 3px solid var(--sna-blue);
  border-radius: 6px;
  background: var(--sna-blue-pale);
  font-size: 12px;
}

.calendar-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.calendar-toolbar h2 {
  margin: 0;
  color: var(--sna-navy);
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav-controls,
.calendar-view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-view-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.calendar-view-switch button {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.calendar-view-switch button.active {
  color: white;
  background: var(--sna-blue);
}

.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  overflow-x: auto;
}

.calendar-weekday {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--sna-navy);
  background: #f8fbff;
  font-weight: 900;
  text-align: center;
}

.month-day {
  min-height: 156px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.month-day.outside {
  background: #f7f9fc;
}

.month-day.today {
  background: #eef6ff;
}

.month-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.month-day-head strong {
  color: var(--sna-navy);
  font-size: 16px;
}

.month-day-head span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.calendar-events {
  display: grid;
  gap: 7px;
}

.calendar-empty {
  color: #8b97a8;
  font-size: 12px;
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  overflow-x: auto;
}

.week-day {
  min-height: 620px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff, white);
}

.week-day.today {
  background: linear-gradient(180deg, #eef6ff, white);
}

.week-day header {
  margin: -10px -10px 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  text-align: center;
}

.week-day header span,
.week-day header strong {
  display: block;
}

.week-day header span {
  color: var(--sna-navy);
  font-weight: 900;
  text-transform: capitalize;
}

.week-day header strong {
  margin-top: 4px;
  color: var(--sna-blue);
  font-size: 12px;
}

.week-rest {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfdff;
}

.meeting-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: #075985;
  background: #e0f2fe;
  text-align: left;
  box-shadow: 0 8px 18px rgba(5, 24, 56, 0.06);
}

.meeting-card.compact {
  padding: 8px;
}

.meeting-card strong {
  color: #071225;
  font-size: 13px;
  line-height: 1.25;
}

.meeting-card small,
.meeting-time {
  font-size: 11px;
}

.meeting-time {
  font-weight: 900;
}

.meeting-card.tone-blue {
  color: #0b5fc7;
  background: #e8f2ff;
}

.meeting-card.tone-green {
  color: #15803d;
  background: #eaf8ed;
}

.meeting-card.tone-orange,
.meeting-card.tone-amber {
  color: #b45309;
  background: #fff7db;
}

.meeting-card.tone-violet {
  color: #6d28d9;
  background: #f2eaff;
}

.meeting-card.tone-red {
  color: #dc2626;
  background: #fff0f0;
}

.meeting-preview-card {
  display: grid;
  gap: 16px;
}

.meeting-preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meeting-card.preview-tone {
  width: fit-content;
  min-width: 90px;
  box-shadow: none;
  font-weight: 900;
}

.meeting-preview-card h3 {
  margin: 0;
  color: var(--sna-navy);
  font-size: 24px;
}

.meeting-preview-card dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.meeting-preview-card dt {
  color: var(--muted);
  font-weight: 900;
}

.meeting-preview-card dd {
  margin: 0;
}

.meeting-preview-notes {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.meeting-preview-notes p {
  margin: 6px 0 0;
}

.document-preview {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.sna-a4-document {
  position: relative;
  width: min(100%, 794px);
  min-height: 1123px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  color: #0b2f3f;
  background: white;
  box-shadow: 0 14px 42px rgba(5, 24, 56, 0.14);
  font-family: Inter, Manrope, Arial, sans-serif;
}

.sna-doc-hero {
  position: relative;
  min-height: 205px;
}

.sna-doc-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 78%;
  min-height: 205px;
  padding: 58px 48px 34px;
  color: white;
  background: var(--sna-blue);
  border-bottom-right-radius: 54% 96%;
}

.sna-doc-wave h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sna-doc-wave strong,
.sna-doc-wave span {
  display: block;
}

.sna-doc-wave strong {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.sna-doc-wave span {
  margin-top: 6px;
  font-size: 18px;
}

.sna-doc-logo {
  position: absolute;
  right: 65px;
  top: 50px;
  width: 145px;
  height: 145px;
  object-fit: contain;
}

.sna-doc-content {
  flex: 1;
  padding: 24px 48px 0;
}

.sna-doc-client {
  margin-top: 0;
}

.sna-doc-client h3,
.sna-doc-object h3 {
  margin: 0 0 14px;
  color: var(--sna-blue);
  font-size: 28px;
  line-height: 1;
}

.sna-doc-client strong {
  display: block;
  margin-bottom: 10px;
  color: #05070b;
  font-size: 25px;
  text-transform: uppercase;
}

.sna-doc-client p,
.sna-doc-object p {
  margin: 5px 0;
  color: #171717;
  font-size: 19px;
  line-height: 1.35;
}

.sna-doc-object {
  margin-top: 28px;
}

.sna-doc-object h3 {
  color: #05070b;
  font-size: 27px;
}

.sna-doc-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.sna-doc-table thead th {
  padding: 18px 30px;
  color: white;
  background: var(--sna-blue);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.sna-doc-table thead th:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.sna-doc-table thead th:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.sna-doc-table tbody td {
  padding: 17px 30px;
  color: #1d3b4d;
  font-size: 18px;
  background: white;
}

.sna-doc-table tbody tr.is-muted td {
  background: #f2f2f2;
}

.sna-doc-table tbody tr.is-muted td:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.sna-doc-table tbody tr.is-muted td:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.sna-doc-table th:nth-child(2),
.sna-doc-table th:nth-child(3),
.sna-doc-table th:nth-child(4),
.sna-doc-table td:nth-child(2),
.sna-doc-table td:nth-child(3),
.sna-doc-table td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

.sna-doc-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr);
  gap: 34px;
  align-items: end;
  margin-top: 10px;
}

.sna-payment {
  align-self: end;
  padding-top: 86px;
}

.sna-payment h3 {
  margin: 0 0 18px;
  color: #0b2f3f;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sna-payment p {
  margin: 0;
  color: #28485a;
  font-size: 14px;
  line-height: 1.35;
}

.sna-totals {
  display: grid;
  gap: 13px;
  color: #0b2f3f;
}

.sna-totals div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
}

.sna-totals span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sna-totals strong {
  color: var(--sna-blue);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.sna-totals .grand-total strong,
.sna-totals .grand-total span {
  color: #0b2f3f;
  font-weight: 900;
}

.sna-thanks {
  display: grid;
  justify-items: end;
  margin-top: 24px;
  padding-right: 36px;
}

.sna-thanks strong {
  color: var(--sna-blue);
  font-size: 42px;
  line-height: 1;
}

.sna-stamp {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  border: 7px double rgba(16, 114, 210, 0.72);
  border-radius: 50%;
  color: rgba(16, 114, 210, 0.78);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-10deg);
}

.sna-doc-footer {
  position: relative;
  margin-top: auto;
  padding-top: 38px;
}

.sna-contact-pill {
  position: relative;
  z-index: 2;
  width: calc(100% - 96px);
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin: 0 auto -26px;
  padding: 10px 26px;
  border: 2px solid var(--sna-blue);
  border-radius: 999px;
  color: #121827;
  background: white;
  font-size: 14px;
  font-weight: 900;
}

.sna-contact-pill span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sna-contact-pill b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: var(--sna-blue);
  font-size: 9px;
}

.sna-footer-band {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 36px 48px 18px;
  color: white;
  background: var(--sna-blue);
  text-align: center;
}

.sna-footer-band strong,
.sna-footer-band span {
  font-size: 16px;
  font-weight: 900;
}

.simple-doc {
  min-height: 1123px;
  padding: 52px 54px 34px;
  color: #111827;
  background: white;
}

.simple-doc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid #d9e2ee;
}

.simple-doc-company {
  margin: 0 0 16px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simple-doc-header h2 {
  margin: 0 0 10px;
  color: #05070b;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.simple-doc-ref {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.simple-doc-ref strong {
  width: 100%;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.simple-doc-logo {
  justify-self: end;
  width: 118px;
  height: 118px;
  box-sizing: border-box;
  display: block;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 0;
  box-shadow: none;
}

.simple-doc-content {
  padding-top: 28px;
}

.simple-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.simple-doc-parties h3,
.simple-doc-object h3,
.simple-payment h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simple-doc-parties strong {
  display: block;
  margin-bottom: 7px;
  color: #05070b;
  font-size: 19px;
  text-transform: uppercase;
}

.simple-doc-parties p,
.simple-doc-object p,
.simple-payment p {
  margin: 4px 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
}

.simple-doc-object {
  margin-top: 30px;
  padding: 18px 0 6px;
  border-top: 1px solid #edf1f7;
}

.simple-doc-object p {
  max-width: 100%;
  font-size: 18px;
}

.simple-doc-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.simple-doc-table th,
.simple-doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf2;
  color: #111827;
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.simple-doc-table th {
  border-bottom-color: var(--sna-blue);
  color: white;
  background: var(--sna-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.simple-doc-table th:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.simple-doc-table th:last-child {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.simple-doc-table th:nth-child(1),
.simple-doc-table td:nth-child(1) {
  width: 42%;
  padding-left: 0;
}

.simple-doc-table th:nth-child(1) {
  padding-left: 16px;
}

.simple-doc-table th:nth-child(2),
.simple-doc-table td:nth-child(2) {
  width: 12%;
  text-align: center;
}

.simple-doc-table th:nth-child(3),
.simple-doc-table td:nth-child(3) {
  width: 22%;
  text-align: right;
  white-space: nowrap;
}

.simple-doc-table th:nth-child(4),
.simple-doc-table td:nth-child(4) {
  width: 24%;
  text-align: right;
  white-space: nowrap;
}

.simple-doc-table th:nth-child(4),
.simple-doc-table td:nth-child(4) {
  padding-right: 18px;
}

.simple-doc-after-table {
  display: grid;
  grid-template-columns: 42% 12% 22% 24%;
  gap: 0;
  align-items: start;
  margin-top: 30px;
}

.simple-payment {
  grid-column: 1 / 2;
  padding-right: 28px;
}

.simple-totals {
  grid-column: 2 / 5;
  display: grid;
  gap: 10px;
  width: 100%;
}

.simple-totals div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

.simple-totals span {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.simple-totals strong {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.simple-totals .grand-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px solid #111827;
}

.simple-totals .grand-total span,
.simple-totals .grand-total strong {
  font-weight: 900;
}

.simple-totals .grand-total span {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.simple-totals .grand-total strong {
  font-size: 18px;
}

.simple-stamp-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

.simple-stamp-zone img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.simple-doc-footer {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid #d9e2ee;
  color: #111827;
  text-align: center;
}

.simple-doc-footer p {
  margin: 5px auto;
  max-width: 680px;
  color: #111827;
  font-size: 11px;
  line-height: 1.45;
}

.simple-doc-footer strong {
  color: #05070b;
}

.stamp-settings-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.stamp-settings-preview img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.stamp-settings-preview strong {
  display: block;
  margin-bottom: 8px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--sna-blue);
}

.document-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  color: white;
  background: var(--sna-blue);
}

.document-header img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 6px;
  border-radius: var(--radius);
  background: #fff;
}

.document-body {
  padding: 24px;
}

.document-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.document-title h2 {
  margin: 0;
  color: var(--sna-navy);
  font-size: 30px;
}

.total-box {
  min-width: 240px;
  padding: 14px;
  border: 2px solid var(--sna-blue);
  border-radius: var(--radius);
  text-align: right;
}

.total-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.total-box strong {
  display: block;
  margin-top: 5px;
  color: var(--sna-blue);
  font-size: 26px;
}

.doc-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.doc-box {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.line-editor {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  overflow: hidden;
}

.line-editor-head {
  min-width: 0;
  display: block;
}

.line-editor-head strong {
  display: block;
  color: var(--sna-navy);
  font-size: 15px;
}

.line-editor-head .muted {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.line-items {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.line-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(82px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.line-item .field {
  min-width: 0;
  margin-bottom: 0;
}

.line-item input {
  min-width: 0;
}

.line-total,
.line-item [data-line-total] {
  color: var(--sna-navy);
  font-weight: 800;
  background: #f3f7fc;
}

.line-remove {
  justify-self: end;
  white-space: nowrap;
}

.line-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.line-add-row {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.line-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
}

.line-summary span {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.line-summary strong {
  min-width: 0;
  color: var(--sna-blue);
  font-size: 20px;
  overflow-wrap: anywhere;
  text-align: right;
}

.permission-grid {
  display: grid;
  gap: 10px;
}

.permission-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.module-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.module-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #f8fbff;
  font-weight: 800;
}

.module-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.module-option .nav-icon {
  width: 28px;
  height: 28px;
  background: #e7f2ff;
}

.module-dropdown {
  width: max-content;
  max-width: 210px;
}

.module-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0759a6;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.module-dropdown summary::-webkit-details-marker {
  display: none;
}

.module-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.module-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.module-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--sna-blue);
  font-size: 12px;
}

.module-dropdown-menu {
  display: grid;
  gap: 6px;
  width: min(220px, 70vw);
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.module-dropdown-menu span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f5f9ff;
  color: #0b4f91;
  font-weight: 700;
}

.access-denied {
  display: grid;
  gap: 8px;
  max-width: 680px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 15, 38, 0.52);
}

.modal {
  width: min(100%, 680px);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.modal:has(.sna-a4-document) {
  width: min(100%, 900px);
}

.modal header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.modal header h2 {
  margin: 0;
  color: var(--sna-navy);
}

.modal-body {
  padding: 18px;
  overflow-x: hidden;
}

.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.project-modal {
  width: min(100%, 1120px);
}

.client-modal,
.clients-report-modal {
  width: min(100%, 1120px);
}

.accounting-report-modal {
  width: min(100%, 980px);
}

.client-profile {
  display: grid;
  gap: 16px;
}

.client-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 32%),
    #fbfdff;
}

.client-profile-hero h3 {
  margin: 10px 0 6px;
  color: var(--sna-navy);
  font-size: 25px;
  line-height: 1.15;
}

.client-profile-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.client-last-transaction {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(16, 114, 210, 0.16);
  border-radius: var(--radius);
  background: rgba(16, 114, 210, 0.08);
}

.client-last-transaction span,
.client-last-transaction small {
  color: var(--muted);
  font-weight: 800;
}

.client-last-transaction strong {
  color: var(--sna-navy);
  font-size: 24px;
  overflow-wrap: anywhere;
}

.client-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.clients-report {
  width: 297mm;
  min-height: 210mm;
  padding: 12mm;
  background: white;
}

.clients-report header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10mm;
  padding: 0 0 7mm;
  border-bottom: 2px solid var(--sna-navy);
}

.clients-report h2 {
  margin: 0 0 4px;
  color: var(--sna-navy);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clients-report p,
.clients-report span {
  margin: 0;
  color: var(--muted);
}

.clients-report header strong {
  display: block;
  color: var(--sna-blue);
  font-size: 30px;
  text-align: right;
}

.clients-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6mm;
}

.clients-report-filters span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--sna-blue-pale);
  color: var(--sna-navy);
  font-weight: 800;
}

.clients-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.clients-report-table th,
.clients-report-table td {
  padding: 7px 8px;
  border: 1px solid #d8e2ef;
  text-align: left;
  vertical-align: top;
}

.clients-report-table th {
  color: white;
  background: var(--sna-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clients-report-table tr:nth-child(even) td {
  background: #f7fbff;
}

.accounting-report {
  width: 210mm;
  min-height: 296mm;
  padding: 12mm;
  background: white;
}

.accounting-report header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 7mm;
  padding: 0 0 7mm;
  border-bottom: 2px solid var(--sna-navy);
}

.accounting-report h2 {
  margin: 4px 0;
  color: var(--sna-navy);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accounting-report p,
.accounting-report span {
  margin: 0;
  color: var(--muted);
}

.accounting-report header img {
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
  background: #fff;
}

.accounting-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7mm;
}

.accounting-report-filters span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--sna-blue-pale);
  color: var(--sna-navy);
  font-weight: 800;
}

.accounting-report-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 7mm;
}

.accounting-report-kpis div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.accounting-report-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.accounting-report-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--sna-navy);
  font-size: 18px;
}

.accounting-report-chart .accounting-chart {
  min-height: 250px;
}

.accounting-report-chart .accounting-chart-legend {
  margin-bottom: 4mm;
  font-size: 12px;
}

.accounting-report-table {
  margin-top: 6mm;
}

.project-detail {
  display: grid;
  gap: 16px;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(16, 114, 210, 0.16), transparent 34%),
    #fbfdff;
}

.project-detail-hero h3 {
  margin: 10px 0 6px;
  color: var(--sna-navy);
  font-size: 25px;
  line-height: 1.15;
}

.project-detail-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.circle-stat {
  --progress: 0deg;
  width: 128px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, white 58%, transparent 59%),
    conic-gradient(var(--sna-blue) var(--progress), #e7eef8 0);
}

.circle-stat span {
  color: var(--sna-navy);
  font-size: 24px;
  font-weight: 900;
}

.circle-stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.project-inline-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e6eef8;
  border-radius: var(--radius);
  background: #fbfdff;
}

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

.project-list,
.project-documents,
.project-timeline {
  display: grid;
  gap: 9px;
}

.project-list-item,
.project-document,
.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.project-list-item strong,
.project-document strong,
.timeline-item strong {
  display: block;
  color: var(--sna-navy);
}

.project-list-item span,
.project-document span,
.timeline-item span,
.timeline-item p {
  color: var(--muted);
  line-height: 1.45;
}

.timeline-item {
  grid-template-columns: 88px minmax(0, 1fr) auto;
}

.timeline-item p {
  margin: 4px 0 0;
}

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

.documents-table {
  min-width: 900px;
}

.personnel-table {
  min-width: 1180px;
}

.document-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.document-cell strong,
.document-cell span {
  display: block;
}

.document-cell span {
  color: var(--muted);
  line-height: 1.35;
}

.doc-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--sna-blue);
  background: var(--sna-blue-pale);
}

.doc-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.compact-empty {
  padding: 16px;
}

.project-linked-docs h4 {
  margin: 0 0 10px;
  color: var(--sna-navy);
}

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

#toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sna-blue);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty {
  padding: 30px;
  border: 1px dashed #c8d8ea;
  border-radius: var(--radius);
  color: var(--muted);
  background: white;
  text-align: center;
}

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

.right {
  text-align: right;
}

.hidden {
  display: none !important;
}

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    width: 286px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

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

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

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

  .grid-4,
  .grid-3,
  .project-stat-grid,
  .client-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-detail-grid,
  .project-linked-grid,
  .client-history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .login-page {
    padding: 14px;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .login-visual {
    padding: 20px 14px 0;
  }

  .login-hero-image {
    width: min(100%, 520px);
    max-height: 420px;
  }

  .login-card-wrap {
    padding: 24px 18px 34px;
    border-left: 0;
    box-shadow: none;
  }

  .login-card {
    width: min(100%, 500px);
  }
}

@media (max-width: 760px) {
  .login-page {
    padding: 10px;
  }

  .login-visual {
    padding: 16px 10px 0;
  }

  .login-hero-image {
    max-height: 300px;
  }

  .login-logo {
    width: 138px;
    height: 138px;
  }

  .login-card h1 {
    font-size: 32px;
  }

  .login-card p {
    font-size: 15px;
  }

  .login-card-wrap {
    padding: 20px 16px 28px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .content {
    padding: 16px;
  }

  .page-head {
    display: grid;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .filter-row-fill > * {
    flex: 1 1 auto;
    min-width: 0;
  }

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

  .kpi-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .settings-grid,
  .doc-columns,
  .field-grid,
  .project-stat-grid,
  .project-detail-grid,
  .project-linked-grid,
  .client-profile-hero,
  .client-stat-grid,
  .client-history-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .accounting-report-kpis {
    grid-template-columns: 1fr;
  }

  .project-detail-hero {
    grid-template-columns: 1fr;
  }

  .circle-stat {
    width: 116px;
  }

  .project-list-item,
  .project-document,
  .timeline-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .project-pie-layout {
    grid-template-columns: 1fr;
  }

  .project-pie-chart {
    max-width: 100%;
  }

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

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

  .calendar-toolbar h2 {
    text-align: left;
  }

  .calendar-view-switch,
  .calendar-nav-controls {
    width: 100%;
    justify-content: stretch;
  }

  .calendar-view-switch button,
  .calendar-nav-controls .btn {
    flex: 1;
  }

  .month-calendar,
  .week-calendar {
    grid-template-columns: repeat(7, minmax(170px, 1fr));
  }

  .meeting-preview-card dl {
    grid-template-columns: 1fr;
  }

  .line-editor-head,
  .line-summary {
    align-items: stretch;
    flex-direction: column;
  }

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

  .line-actions,
  .line-add-row {
    justify-content: stretch;
  }

  .line-actions .btn,
  .line-add-row .btn {
    width: 100%;
  }

  .line-summary strong {
    text-align: left;
  }

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

  .document-header,
  .document-title {
    grid-template-columns: 1fr;
    display: grid;
  }

  .simple-doc {
    min-height: auto;
    padding: 28px 22px;
  }

  .simple-doc-header,
  .simple-doc-parties,
  .simple-doc-after-table {
    grid-template-columns: 1fr;
  }

  .simple-doc-header {
    gap: 16px;
  }

  .simple-doc-header h2 {
    font-size: 38px;
  }

  .simple-doc-logo {
    width: 92px;
    height: 92px;
  }

  .simple-payment,
  .simple-totals {
    grid-column: auto;
  }

  .simple-payment {
    padding-right: 0;
  }

  .simple-doc-table th,
  .simple-doc-table td {
    padding: 11px 8px;
    font-size: 13px;
  }

  .simple-doc-table th {
    font-size: 10px;
  }

  .simple-totals div {
    gap: 10px;
  }

  .stamp-settings-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  @page clients-report {
    size: A4 landscape;
    margin: 8mm;
  }

  @page accounting-report {
    size: A4;
    margin: 0;
  }

  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .page-head,
  .toolbar,
  .filter-row,
  .btn,
  .modal-backdrop,
  #toast-region {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .panel,
  .table-wrap,
  .document-preview {
    border: 0;
    box-shadow: none;
  }

  .document-preview {
    max-width: none;
  }

  body.printing-document {
    margin: 0;
    background: white;
  }

  body.printing-document .app-shell,
  body.printing-document .modal > header,
  body.printing-document .modal > footer {
    display: none !important;
  }

  body.printing-document .modal-backdrop {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: white !important;
  }

  body.printing-document .modal {
    width: 210mm !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.printing-document .modal-body {
    padding: 0 !important;
    overflow: visible !important;
  }

  body.printing-document .sna-a4-document {
    width: 210mm !important;
    height: 296.5mm !important;
    min-height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    break-after: auto;
    page-break-after: auto;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-document .simple-doc {
    padding: 12mm 14mm 8mm !important;
  }

  body.printing-document .simple-doc-header,
  body.printing-document .simple-doc-footer,
  body.printing-document .simple-doc-logo,
  body.printing-document .simple-doc-table th {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-project-report .project-detail {
    padding: 14mm;
    gap: 10mm;
    background: white;
  }

  body.printing-project-report .project-detail,
  body.printing-project-report .project-detail *,
  body.printing-project-report .project-pie-chart,
  body.printing-project-report .project-pie-chart * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-project-report .project-inline-form,
  body.printing-project-report .project-document .row-actions,
  body.printing-project-report .timeline-item .icon-btn {
    display: none !important;
  }

  body.printing-project-report .project-detail-grid,
  body.printing-project-report .project-linked-grid {
    grid-template-columns: 1fr;
  }

  body.printing-project-report .project-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.printing-project-report .project-pie-layout {
    grid-template-columns: 1fr 0.8fr;
  }

  body.printing-clients-report .modal {
    width: 297mm !important;
  }

  body.printing-clients-report .clients-report {
    page: clients-report;
    width: 297mm !important;
    min-height: 210mm !important;
    padding: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-clients-report .clients-report,
  body.printing-clients-report .clients-report * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-accounting-report .modal {
    width: 210mm !important;
  }

  body.printing-accounting-report .accounting-report {
    page: accounting-report;
    width: 210mm !important;
    height: 296.5mm !important;
    min-height: 0 !important;
    padding: 10mm !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-accounting-report .accounting-report,
  body.printing-accounting-report .accounting-report *,
  body.printing-accounting-report .accounting-chart,
  body.printing-accounting-report .accounting-chart * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-accounting-report .accounting-chart {
    min-height: 225px;
  }
}
