:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #62727f;
  --line: #d8e0e5;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #a33a2a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(480px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.auth-card h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.company-dashboard {
  min-height: 100vh;
  padding: 44px 32px;
}

.company-dashboard-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.company-dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.company-dashboard-header h1 {
  font-size: 32px;
  margin-bottom: 0;
}

.company-dashboard-header p {
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.35;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.company-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.company-card {
  display: grid;
  gap: 8px;
  min-height: 230px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.company-card:hover {
  border-color: var(--accent);
}

.company-card.current {
  border-color: #9ccdc5;
  background: #f3fbf9;
}

.company-card.disabled {
  opacity: 0.72;
}

.company-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.company-card p {
  margin: 0;
  line-height: 1.3;
}

.company-launcher {
  font-size: 12px;
}

.company-kind,
.company-current {
  width: fit-content;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff3d6;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 700;
}

.company-current {
  background: #e0f2f1;
  color: var(--accent-dark);
}

.company-card-action {
  margin-top: auto;
  width: fit-content;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.company-dashboard-loading,
.company-dashboard-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.company-create-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.company-create-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1.2fr) minmax(160px, 0.6fr) minmax(180px, 0.7fr) minmax(260px, 1.4fr);
  margin-bottom: 14px;
}

.company-create-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.inline-input-action {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-input-action button {
  min-width: 58px;
  padding: 0 10px;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

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

.current-company-box {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.current-user-box {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #cfe5e2;
  border-radius: 8px;
  background: #f3fbf9;
}

.current-company-box strong {
  font-size: 13px;
  line-height: 1.25;
}

.current-company-box span,
.current-user-box span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.current-user-box strong {
  font-size: 13px;
}

.user-company-access,
.users-list {
  display: grid;
  gap: 10px;
}

.user-access-card,
.user-list-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 12px;
}

.user-access-card header,
.user-list-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}

.checkbox-line input {
  width: auto;
}

.user-list-row.inactive {
  opacity: 0.65;
}

.user-list-row .actions {
  margin-top: 10px;
}

.change-company-button {
  width: 100%;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 6px 8px;
  font-size: 12px;
}

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

h1 {
  margin-bottom: 4px;
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
  margin: 18px 0 8px;
}

p, .note {
  color: var(--muted);
}

nav {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
  padding-right: 2px;
}

.nav-group {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 16px 8px 4px;
  text-transform: uppercase;
}

button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  min-height: 38px;
}

button:hover {
  border-color: var(--accent);
}

button.primary, nav button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

button.primary:hover, nav button.active:hover {
  background: var(--accent-dark);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--ink);
  text-decoration: none;
}

.button-link:hover {
  border-color: var(--accent);
}

.registry-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-width: 560px;
}

.registry-inline-actions small {
  flex-basis: 100%;
  color: var(--muted);
  line-height: 1.25;
}

.registry-inline-actions button,
.registry-inline-actions .button-link {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.registry-status-note {
  display: block;
  max-width: 520px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted);
}

main {
  padding: 24px 32px 40px;
  min-width: 0;
}

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

.page-title h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.notice {
  border: 1px solid #b8d8d2;
  background: #edf8f5;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: var(--accent-dark);
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.wide-form {
  max-width: 1180px;
}

.sales-list-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
}

.preview-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.import-panel {
  margin-bottom: 18px;
}

.inline-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 220px 220px auto;
}

.inline-form h2,
.inline-form .note {
  margin-bottom: 0;
}

.manual-purchase-form {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

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

.form-grid label {
  margin-bottom: 0;
}

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

.form-grid .checkbox-line {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 38px;
}

.form-grid .checkbox-line input[type="checkbox"] {
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.form-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 10px 12px 12px;
}

.form-details summary {
  cursor: pointer;
  font-weight: 700;
}

.form-details .form-grid {
  margin-top: 12px;
}

.contract-form-details {
  margin-top: 16px;
}

.contract-form-details .wide-form {
  margin-top: 12px;
}

.contract-grid {
  align-items: end;
}

.contract-checkboxes {
  display: grid;
  gap: 10px 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.contract-termination-details {
  grid-column: 1 / -1;
}

.contract-termination-grid {
  align-items: end;
}

.contract-termination-grid .wide-field {
  grid-column: span 2;
}

.contract-context {
  background: #edf8f5;
  border: 1px solid #b8d8d2;
  border-radius: 6px;
  color: var(--accent-dark);
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.inline-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}

.inline-panel h3 {
  margin: 0 0 6px;
}

.hr-time-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  margin: 12px 0;
  max-width: 920px;
}

.hr-time-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin: 14px 0;
}

.hr-time-summary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 64px;
  padding: 10px 12px;
}

.hr-time-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}

.hr-time-summary strong {
  font-size: 15px;
}

.hr-time-table th:nth-child(1),
.hr-time-table td:nth-child(1) {
  width: 110px;
}

.hr-time-table th:nth-child(4),
.hr-time-table td:nth-child(4),
.hr-time-table th:nth-child(5),
.hr-time-table td:nth-child(5) {
  width: 105px;
}

.hr-time-table input {
  min-height: 32px;
  padding: 6px 8px;
}

.hr-time-table input[data-hr-worked-hours] {
  max-width: 88px;
  text-align: right;
}

.mandate-hours-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mandate-hours-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 140px;
  padding: 8px 10px;
}

.mandate-hours-row small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.selected-row {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.payroll-details-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.payroll-details-header h3 {
  margin: 0 0 4px;
}

.payroll-details-header > strong {
  color: var(--accent-strong);
  font-size: 22px;
  white-space: nowrap;
}

.payroll-details-grid,
.payroll-breakdown {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

#hrPayrollDetails {
  max-width: 100%;
  overflow: hidden;
}

.payroll-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
  overflow: hidden;
}

.payroll-details-grid > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.payroll-details-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.payroll-breakdown .kpir-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.payroll-breakdown .kpir-table th:first-child,
.payroll-breakdown .kpir-table td:first-child {
  width: auto;
}

.payroll-breakdown .kpir-table th:last-child,
.payroll-breakdown .kpir-table td:last-child {
  text-align: right;
  width: 120px;
}

.payroll-breakdown .kpir-table th,
.payroll-breakdown .kpir-table td {
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.narrow {
  max-width: 760px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.autocomplete-wrap {
  position: relative;
}

.suggestions {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.12);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% - 6px);
  z-index: 20;
}

.suggestion {
  display: grid;
  gap: 3px;
  text-align: left;
}

.suggestion span,
.suggestion-empty {
  color: var(--muted);
  font-size: 13px;
}

.suggestion-empty {
  padding: 10px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.item-header,
.item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px 110px 100px 100px 110px 110px 76px;
  gap: 8px;
  margin-bottom: 8px;
}

.item-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

output {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  min-height: 38px;
  padding: 10px;
}

.muted-control {
  opacity: 0.55;
}

#ownerZusSettings > label {
  display: block;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  text-align: left;
}

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

.meta {
  color: var(--muted);
  font-size: 13px;
}

.list-month-header {
  background: #eaf4f2;
  border: 1px solid #cfe3df;
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.status-line {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0;
  padding: 4px 8px;
}

.status-line.booked {
  background: #e8f7ed;
  color: #166534;
}

.status-line.buffer {
  background: #fff4db;
  color: #8a5a00;
}

.status-line.imported-new {
  background: #dceefc;
  color: #075985;
  margin-right: 6px;
}

.status-line.ready-line {
  background: #eef6ff;
  color: #0f4f82;
}

.status-line.ksef-ok {
  background: #e8f7ed;
  color: #166534;
}

.status-line.danger-line {
  background: #fff1ef;
  color: var(--danger);
}

.status-badge {
  background: #e8f7ed;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.status-badge.warning {
  background: #fff4db;
  color: #8a5a00;
}

.status-badge.journal-badge {
  background: #eef6ff;
  color: #1d4ed8;
}

.warning-row {
  background: #fffaf0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.subnav button.active {
  background: var(--accent);
  color: white;
}

.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  white-space: nowrap;
}

pre {
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  background: #172026;
  color: #eaf2f2;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}

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

.ksef-validation-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.ksef-validation-panel strong {
  display: block;
  margin-bottom: 5px;
}

.ksef-validation-panel ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.ksef-validation-panel.ok {
  background: #edf8f5;
  border-color: #b8d8d2;
  color: var(--accent-dark);
}

.ksef-validation-panel.warning {
  background: #fff7e6;
  border-color: #f1d092;
  color: #8a5a00;
}

.ksef-validation-panel.error {
  background: #fff1ef;
  border-color: #efb1aa;
  color: var(--danger);
}

.ksef-diagnostics {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  padding: 12px;
  background: #f8fbfb;
}

.ksef-diagnostics-header,
.ksef-diagnostics-grid {
  display: grid;
  gap: 10px;
}

.ksef-diagnostics-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 10px;
}

.ksef-diagnostics-header span {
  color: var(--muted);
  font-size: 13px;
}

.ksef-diagnostics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ksef-diagnostic-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.ksef-diagnostic-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.ksef-diagnostic-item.ok {
  border-color: #b8d8d2;
}

.ksef-diagnostic-item.warning {
  border-color: #f1d092;
}

.ksef-diagnostic-item.error {
  border-color: #efb1aa;
}

.ksef-diagnostics-messages {
  margin: 10px 0 0 18px;
  padding: 0;
}

.ksef-diagnostics-messages li.ok {
  color: var(--accent-dark);
}

.ksef-diagnostics-messages li.warning {
  color: #8a5a00;
}

.ksef-diagnostics-messages li.error {
  color: var(--danger);
}

.invoice-list {
  margin-top: 14px;
}

.invoice-card {
  display: block;
  width: 100%;
}

.invoice-card.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.mini-cost-table {
  border-collapse: collapse;
  margin-top: 8px;
  width: 100%;
}

.mini-cost-table th,
.mini-cost-table td {
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  padding: 5px 4px;
  text-align: right;
}

.mini-cost-table th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.mini-cost-table td:nth-child(4),
.mini-cost-table td:nth-child(5) {
  color: var(--accent-dark);
  font-weight: 700;
}

.payment-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
  padding: 12px;
}

.payment-box span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-box strong {
  display: block;
  margin-top: 4px;
}

.qr-payment-row {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 18px 0;
}

.total-line {
  font-weight: 600;
  margin-bottom: 8px;
}

.qr-box {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.qr-svg {
  display: block;
  fill: #111827;
  height: 124px;
  width: 124px;
}

.ksef-preview-qr {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 18px 0;
  padding: 14px;
}

.ksef-preview-qr p {
  color: var(--muted);
  margin: 6px 0;
}

.ksef-preview-qr a {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ksef-preview-qr .qr-box svg {
  display: block;
  height: 124px;
  width: 124px;
}

.qr-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  max-width: 124px;
  overflow-wrap: anywhere;
  text-align: center;
}

.kpir-panel {
  overflow: hidden;
}

.vehicle-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.vehicle-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) 100px 90px auto;
}

.vehicle-form h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.vehicle-form label {
  margin-bottom: 0;
}

.vehicle-card .actions {
  margin-bottom: 0;
}

.kpir-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 220px repeat(3, auto) minmax(260px, 1fr);
  margin-bottom: 12px;
}

.kpir-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.kpir-summary span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 10px;
}

.kpir-summary strong {
  color: var(--ink);
}

.books-panel .subnav {
  margin-bottom: 18px;
}

.books-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.books-toolbar label {
  margin: 0;
  min-width: 180px;
}

.segmented {
  display: flex;
  gap: 0;
}

.segmented button {
  border-radius: 0;
  margin-left: -1px;
}

.segmented button:first-child {
  border-radius: 6px 0 0 6px;
  margin-left: 0;
}

.segmented button:last-child {
  border-radius: 0 6px 6px 0;
}

.segmented button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  position: relative;
}

.books-table tbody .ledger-account-row {
  cursor: pointer;
}

.books-table tbody .ledger-account-row:hover,
.books-table tbody .ledger-account-row.selected {
  background: #edf8f5;
}

.books-accounts-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.books-accounts-table th,
.books-accounts-table td {
  overflow: hidden;
  padding: 7px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.books-accounts-table th:nth-child(1),
.books-accounts-table td:nth-child(1) {
  width: 10%;
}

.books-accounts-table th:nth-child(2),
.books-accounts-table td:nth-child(2) {
  width: 30%;
}

.books-accounts-table th:nth-child(3),
.books-accounts-table td:nth-child(3) {
  width: 7%;
}

.books-accounts-table th:nth-child(4),
.books-accounts-table td:nth-child(4) {
  width: 7%;
}

.books-accounts-table th:nth-child(5),
.books-accounts-table td:nth-child(5) {
  width: 7%;
}

.books-accounts-table th:nth-child(6),
.books-accounts-table td:nth-child(6) {
  width: 9%;
}

.books-accounts-table th:nth-child(7),
.books-accounts-table td:nth-child(7) {
  width: 8%;
}

.books-accounts-table th:nth-child(8),
.books-accounts-table td:nth-child(8) {
  background: #ffffff;
  position: sticky;
  right: 0;
  width: 22%;
  z-index: 2;
}

.books-accounts-table th:nth-child(8) {
  background: #f8fafb;
  z-index: 3;
}

.books-accounts-table .analytic-account-row td:nth-child(8) {
  background: #fafcfc;
}

.books-accounts-table .account-analytic-name {
  padding-left: 12px !important;
}

.books-accounts-table .row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  overflow: visible;
}

.books-accounts-table .row-actions button {
  padding: 6px 8px;
}

.books-trial-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.books-trial-table th,
.books-trial-table td {
  padding: 6px 5px;
}

.books-trial-table th:nth-child(1),
.books-trial-table td:nth-child(1) {
  width: 10%;
}

.books-trial-table th:nth-child(2),
.books-trial-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 30%;
}

.books-trial-table th:nth-child(n+3),
.books-trial-table td:nth-child(n+3) {
  text-align: center;
  width: 10%;
}

.books-trial-table th:nth-child(n+3) {
  line-height: 1.2;
  white-space: normal;
}

.books-trial-table td:nth-child(n+3) {
  white-space: nowrap;
}

.cash-report-table {
  min-width: 1100px;
}

.cash-bank-subnav {
  margin: 0 0 14px;
}

.cash-report-table th,
.cash-report-table td {
  padding: 6px;
}

.cash-report-table input,
.cash-report-table select {
  min-width: 0;
  width: 100%;
}

.cash-report-table th:nth-child(1),
.cash-report-table td:nth-child(1) {
  width: 120px;
}

.cash-report-table th:nth-child(2),
.cash-report-table td:nth-child(2) {
  width: 78px;
}

.cash-report-table th:nth-child(3),
.cash-report-table td:nth-child(3) {
  width: 150px;
}

.cash-report-table th:nth-child(6),
.cash-report-table td:nth-child(6) {
  width: 260px;
}

.cash-report-table th:nth-child(7),
.cash-report-table td:nth-child(7) {
  width: 130px;
}

.cash-reports-list {
  margin-top: 16px;
}

.account-synthetic,
.account-synthetic-name,
.synthetic-account-row .account-synthetic-name {
  font-weight: 700;
}

.account-analytic,
.account-analytic-name {
  padding-left: 22px !important;
}

.analytic-account-row {
  background: #fafcfc;
}

.books-ledger-preview {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.books-ledger-preview h2 {
  margin-bottom: 12px;
}

.accounting-buffer-card {
  margin-bottom: 10px;
}

.accounting-buffer-card .mini-cost-table {
  margin-top: 10px;
}

.books-accounts-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.books-accounts-heading h2 {
  margin-bottom: 6px;
}

.account-form {
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 14px;
}

.manual-pk-form h3 {
  margin-top: 0;
}

.manual-pk-table {
  margin-top: 12px;
  table-layout: fixed;
  width: 100%;
}

.manual-pk-table th:nth-child(1),
.manual-pk-table td:nth-child(1) {
  width: 42%;
}

.manual-pk-table th:nth-child(2),
.manual-pk-table td:nth-child(2) {
  width: 28%;
}

.manual-pk-table th:nth-child(3),
.manual-pk-table td:nth-child(3),
.manual-pk-table th:nth-child(4),
.manual-pk-table td:nth-child(4) {
  width: 12%;
}

.manual-pk-table th:nth-child(5),
.manual-pk-table td:nth-child(5) {
  width: 6%;
}

.manual-pk-table select,
.manual-pk-table input {
  min-width: 0;
  width: 100%;
}

.checkbox-label {
  align-content: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-top: 23px;
}

.checkbox-label input {
  height: 16px;
  width: 16px;
}

.row-actions {
  white-space: nowrap;
}

.row-actions button {
  margin-right: 6px;
  min-height: 32px;
  padding: 5px 9px;
}

.tax-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 12px;
  padding: 12px;
}

.tax-summary div {
  display: grid;
  gap: 4px;
}

.tax-summary span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tax-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.tax-summary .note {
  grid-column: 1 / -1;
  margin: 0;
}

.contractor-card {
  cursor: pointer;
}

.contractor-card:hover,
.contractor-card:focus {
  border-color: var(--accent);
  outline: none;
}

.contractor-settlement-compact {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 10px;
}

.contractor-settlement-compact span {
  color: var(--muted);
  font-size: 13px;
}

.contractor-settlement-compact strong {
  color: var(--ink);
  font-size: 13px;
}

.contractor-settlement-compact .settlement-overdue strong {
  color: var(--danger);
}

.contractor-settlement-modal-panel {
  max-height: calc(100vh - 24px);
  max-width: min(1500px, calc(100vw - 24px));
  width: min(1500px, calc(100vw - 24px));
}

.contractor-settlement-modal-body {
  margin-top: 14px;
}

.contractor-settlement-modal-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px;
}

.contractor-settlement-modal-meta span {
  color: var(--muted);
  font-size: 13px;
}

.contractor-settlement-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
  padding: 10px;
}

.contractor-settlement-summary div {
  display: grid;
  gap: 3px;
}

.contractor-settlement-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contractor-settlement-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.contractor-settlement-summary .settlement-overdue strong {
  color: var(--danger);
}

.contractor-settlement-tabs {
  margin: 12px 0 4px;
}

.contractor-settlement-ledger {
  margin-top: 10px;
}

.contractor-settlement-ledger summary {
  cursor: pointer;
  font-weight: 700;
}

.contractor-settlement-table {
  margin-top: 10px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.contractor-settlement-table th,
.contractor-settlement-table td {
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 7px 6px;
}

.contractor-settlement-table th:nth-child(1),
.contractor-settlement-table td:nth-child(1) {
  width: 155px;
}

.contractor-settlement-table th:nth-child(2),
.contractor-settlement-table td:nth-child(2),
.contractor-settlement-table th:nth-child(3),
.contractor-settlement-table td:nth-child(3) {
  width: 92px;
}

.contractor-settlement-table th:nth-child(4),
.contractor-settlement-table td:nth-child(4) {
  width: 72px;
}

.contractor-settlement-table th:nth-child(5),
.contractor-settlement-table td:nth-child(5),
.contractor-settlement-table th:nth-child(6),
.contractor-settlement-table td:nth-child(6),
.contractor-settlement-table th:nth-child(7),
.contractor-settlement-table td:nth-child(7) {
  width: 92px;
}

.contractor-settlement-table th:nth-child(8),
.contractor-settlement-table td:nth-child(8) {
  width: auto;
}

.contractor-settlement-table tr.settled-row td {
  color: var(--muted);
}

.settlement-invoice-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  min-height: 0;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

.settlement-invoice-link:hover,
.settlement-invoice-link:focus {
  color: var(--accent-dark);
  outline: none;
  text-decoration-thickness: 2px;
}

.kpir-scroll {
  overflow: auto;
  width: 100%;
}

.kpir-table {
  min-width: 1900px;
}

.zus-table {
  min-width: 1900px;
}

.zus-payment-input,
.zus-payment-date,
.zus-payment-note {
  min-width: 110px;
}

.zus-payment-note {
  min-width: 210px;
}

.zus-declaration-preview {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

.zus-official-preview,
.zus-form-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.zus-pdf-preview,
.zus-template-reference {
  align-items: center;
  background: #eef8f6;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.zus-pdf-preview {
  background: #f6f8fb;
  grid-template-columns: 1fr;
}

.declaration-status-card {
  background: #eef8f6;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.declaration-status-card span,
.declaration-status-card a {
  color: var(--muted);
  font-size: 13px;
}

.declaration-status-card a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.declaration-validation-card {
  background: #eef8f6;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px 12px;
}

.declaration-validation-card.warning {
  background: #fff8e8;
  border-color: #ead398;
}

.declaration-validation-card.error {
  background: #fff1f1;
  border-color: #efb0b0;
}

.declaration-validation-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.declaration-validation-card li,
.declaration-validation-card span {
  color: var(--muted);
  font-size: 13px;
}

.declaration-validation-card li.error {
  color: #991b1b;
}

.declaration-validation-card li.warning {
  color: #8a5a00;
}

.zus-pdf-preview-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.zus-template-reference span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.zus-pdf-preview-head span,
.zus-template-reference strong {
  display: block;
}

.zus-pdf-preview-head span {
  color: var(--muted);
  font-size: 12px;
}

.zus-pdf-preview-head a,
.zus-template-reference a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.zus-template-reference details {
  grid-column: 1 / -1;
}

.zus-template-reference summary {
  cursor: pointer;
  font-weight: 700;
}

.zus-template-reference object {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 620px;
  margin-top: 10px;
  width: 100%;
}

.hr-zus-template-reference {
  align-items: start;
  margin: 12px 0;
}

.zus-template-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.zus-template-page-links a {
  background: #fff;
  font-size: 12px;
  padding: 6px 8px;
}

.hr-zus-template-reference object {
  height: min(72vh, 760px);
}

.zus-official-filled-document {
  background: #fff;
  display: grid;
  justify-content: center;
  overflow-x: auto;
  padding: 0;
}

.zus-official-filled-page {
  aspect-ratio: 1191 / 1684;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #111;
  font-family: Arial, sans-serif;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: 210mm;
}

.zus-official-fill {
  background: #fff;
  box-sizing: border-box;
  color: #111;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
  padding: 1px 2px 0;
  position: absolute;
  white-space: nowrap;
}

.zus-official-fill.center {
  text-align: center;
}

.zus-official-fill.small {
  font-size: 8px;
}

.zus-official-fill.checkbox {
  font-size: 11px;
  padding: 0;
}

.zus-fillable-pdf-preview {
  background: #fff;
  display: grid;
  gap: 10px;
  width: 100%;
}

.zus-fillable-pdf-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.zus-fillable-pdf-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.zus-fillable-pdf-source {
  color: var(--muted);
  margin: 0;
}

.zus-fillable-pdf-preview object {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: min(78vh, 920px);
  width: 100%;
}

.zus-pdf-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 900px;
  overflow: auto;
  position: relative;
}

.zus-pdf-stage object {
  border: 0;
  height: 100%;
  width: 100%;
}

.zus-pdf-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.zus-pdf-field {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 93, 85, 0.45);
  border-radius: 2px;
  color: #003f3a;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  min-height: 18px;
  padding: 2px 4px;
  position: absolute;
  white-space: nowrap;
}

.zus-pdf-field.f-id { left: 15%; top: 11%; }
.zus-pdf-field.f-month { left: 41%; top: 11%; }
.zus-pdf-field.f-year { left: 50%; top: 11%; }
.zus-pdf-field.f-nip { left: 11%; top: 17%; }
.zus-pdf-field.f-regon { left: 31%; top: 17%; }
.zus-pdf-field.f-payer { left: 11%; top: 22%; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.zus-pdf-field.f-code { left: 11%; top: 58%; }
.zus-pdf-field.f-social-base { left: 24%; top: 58%; }
.zus-pdf-field.f-sickness-base { left: 39%; top: 58%; }
.zus-pdf-field.f-accident-base { left: 54%; top: 58%; }
.zus-pdf-field.f-health-base { left: 70%; top: 58%; }
.zus-pdf-field.f-social-due { left: 69%; top: 39%; }
.zus-pdf-field.f-health-due { left: 69%; top: 47%; }
.zus-pdf-field.f-fp { left: 69%; top: 52%; }
.zus-pdf-field.f-total { left: 76%; top: 55%; }
.zus-pdf-field.f-tax-form { left: 11%; top: 66%; }
.zus-pdf-field.f-revenue { left: 35%; top: 66%; }
.zus-pdf-field.f-income { left: 55%; top: 66%; }

.dra-html-form {
  --zus-red: #f04416;
  --zus-fill: #fff0e9;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.05;
  margin: 0 auto;
  min-height: 0;
  padding: 0;
  width: 184mm;
}

.dra-top-note {
  color: var(--zus-red);
  font-size: 7px;
  line-height: 1.15;
  padding: 4px 0 2px;
  text-align: center;
}

.dra-title {
  align-items: center;
  border: 2px solid var(--zus-red);
  border-left-width: 1px;
  border-right-width: 1px;
  color: var(--zus-red);
  display: grid;
  grid-template-columns: 35mm 28mm 18mm 1fr;
  margin: 0;
  min-height: 7mm;
  text-align: center;
}

.dra-title strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.dra-title div,
.dra-title span {
  border-right: 1px solid var(--zus-red);
  font-size: 6.5px;
  height: 100%;
  display: grid;
  place-items: center;
}

.dra-title strong:not(:last-child) {
  border-right: 1px solid var(--zus-red);
  height: 100%;
  display: grid;
  place-items: center;
}

.dra-section {
  background: var(--zus-fill);
  border: 2px solid var(--zus-red);
  border-top: 0;
  break-inside: avoid;
  margin: 0;
  padding: 2.5px 4px 4px;
}

.dra-section h3 {
  color: var(--zus-red);
  font-size: 8.5px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.dra-grid {
  display: grid;
  gap: 2px 5px;
}

.dra-grid.org {
  grid-template-columns: 25mm 72mm 1fr;
}

.dra-grid.payer {
  grid-template-columns: 55mm 59mm 1fr;
}

.dra-grid.payer .dra-cell:nth-child(6),
.dra-grid.payer .dra-cell:nth-child(7) {
  grid-column: 1 / -1;
}

.dra-grid.payer .dra-payer-name-row {
  grid-column: 1 / 3;
}

.dra-grid.payer .dra-cell:nth-child(9) {
  grid-column: 3;
}

.dra-grid.info {
  grid-template-columns: 41mm 60mm 1fr;
}

.dra-grid.income,
.dra-grid.tax-health,
.dra-grid.annual {
  grid-template-columns: 38mm repeat(4, minmax(0, 1fr));
}

.dra-grid.signature {
  grid-template-columns: 55mm 1fr;
}

.dra-grid.rsa-benefit-grid {
  grid-template-columns: 25mm 33mm 33mm 33mm 45mm 1fr;
}

.dra-money-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
}

.dra-cell {
  color: var(--zus-red);
  position: relative;
  min-width: 0;
}

.dra-cell span {
  display: block;
  font-size: 6.5px;
  line-height: 1.05;
  min-height: 11px;
  padding-left: 2px;
}

.dra-cell.compact span {
  min-height: 10px;
}

.dra-boxes {
  --boxes: 10;
  color: #000;
  display: grid;
  font-family: "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 700;
  grid-template-columns: repeat(var(--boxes), minmax(0, 1fr));
  height: 16px;
  letter-spacing: 0;
}

.dra-boxes i {
  align-items: center;
  border: 1px solid var(--zus-red);
  border-left: 0;
  display: flex;
  font-style: normal;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  position: relative;
}

.dra-boxes.money {
  font-size: 9.5px;
}

.dra-boxes.money i {
  font-weight: 700;
  justify-content: center;
}

.dra-boxes i::after {
  background: var(--zus-red);
  bottom: -1px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 1px;
}

.dra-boxes i:first-child {
  border-left: 1px solid var(--zus-red);
}

.dra-boxes.right i {
  justify-content: center;
}

.dra-total-line {
  margin-top: 3px;
  margin-left: auto;
  width: 78mm;
}

.dra-money-grid .dra-cell {
  border: 1px solid var(--zus-red);
  border-right: 0;
  min-height: 21px;
  padding: 1px 3px 2px;
}

.dra-money-grid .dra-cell:nth-child(3n) {
  border-right: 1px solid var(--zus-red);
}

.dra-money-grid .dra-cell:nth-child(n + 4) {
  border-top: 0;
}

.dra-money-grid .dra-cell span {
  min-height: 14px;
  text-align: center;
}

.dra-money-grid .dra-boxes {
  height: 15px;
  font-size: 9.5px;
}

.dra-money-grid .dra-boxes i {
  background: #fff7f3;
}

.dra-section:nth-of-type(4),
.dra-section:nth-of-type(5),
.dra-section:nth-of-type(6) {
  margin-top: 4px;
}

.dra-section:nth-of-type(4) h3 {
  margin-bottom: 2px;
}

.dra-page-break {
  break-after: page;
  height: 0;
  page-break-after: always;
}

.dra-signature-box {
  border: 1px solid var(--zus-red);
  color: var(--zus-red);
  display: grid;
  min-height: 28px;
  place-items: end center;
  padding: 4px;
  font-size: 7px;
}

.dra-html-form.print-mode {
  width: 184mm;
}

@media print {
  .dra-html-form {
    width: 184mm;
  }
}

.zus-official-page {
  background: #fff;
  border: 2px solid #111;
  color: #111;
  display: grid;
  gap: 10px;
  padding: 14px;
  page-break-after: always;
}

.zus-official-title {
  align-items: start;
  border-bottom: 2px solid #111;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding-bottom: 8px;
}

.zus-official-title strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.zus-official-title span,
.zus-logo {
  font-size: 12px;
  text-transform: uppercase;
}

.zus-block {
  border: 1px solid #111;
}

.zus-block h3 {
  background: #e7e7e7;
  border-bottom: 1px solid #111;
  font-size: 13px;
  margin: 0;
  padding: 5px 7px;
  text-transform: uppercase;
}

.zus-box-grid {
  display: grid;
}

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

.zus-box-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.zus-box {
  border-right: 1px solid #111;
  display: grid;
  gap: 4px;
  min-height: 46px;
  padding: 6px;
}

.zus-box:last-child {
  border-right: 0;
}

.zus-box span {
  font-size: 10px;
  line-height: 1.2;
}

.zus-box strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.zus-official-table {
  border-collapse: collapse;
  width: 100%;
}

.zus-official-table th,
.zus-official-table td {
  border: 1px solid #111;
  padding: 6px;
}

.zus-official-table th {
  background: #f0f0f0;
  font-size: 11px;
  text-transform: uppercase;
}

.zus-official-table .total td {
  font-weight: 700;
}

.zus-sign-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.zus-sign-row div {
  border-top: 1px solid #111;
  font-size: 11px;
  padding-top: 4px;
  text-align: center;
}

.zus-form-header,
.zus-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.zus-form-header div,
.zus-form-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.zus-form-header span,
.zus-form-grid span,
.zus-form-grid small {
  color: var(--muted);
  font-size: 12px;
}

.zus-form-preview h3 {
  margin: 0 0 10px;
}

.zus-mini-table {
  border-collapse: collapse;
  width: 100%;
}

.zus-mini-table th,
.zus-mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.zus-mini-table .total td {
  font-weight: 700;
}

.vat-table {
  min-width: 1700px;
}

.bank-table {
  min-width: 1280px;
}

.bank-table th:nth-child(1),
.bank-table td:nth-child(1) {
  width: 110px;
}

.bank-table th:nth-child(2),
.bank-table td:nth-child(2) {
  width: 190px;
}

.bank-table th:nth-child(3),
.bank-table td:nth-child(3) {
  width: 82px;
}

.bank-table th:nth-child(4),
.bank-table td:nth-child(4) {
  width: 110px;
}

.bank-table th:nth-child(5),
.bank-table td:nth-child(5),
.bank-table th:nth-child(6),
.bank-table td:nth-child(6) {
  width: 180px;
}

.bank-table th:nth-child(7),
.bank-table td:nth-child(7) {
  width: 170px;
}

.bank-table th:nth-child(9),
.bank-table td:nth-child(9) {
  width: 90px;
}

.bank-table .bank-description {
  max-width: 360px;
  white-space: normal;
}

.bank-table .amount-in {
  color: var(--accent-dark);
  font-weight: 700;
}

.bank-table .amount-out {
  color: var(--danger);
  font-weight: 700;
}

.bank-statement-table th,
.bank-statement-table td {
  font-size: 12px;
  vertical-align: top;
}

.bank-statement-table th:nth-child(1),
.bank-statement-table td:nth-child(1) {
  min-width: 170px;
}

.bank-statement-table th:nth-child(8),
.bank-statement-table td:nth-child(8) {
  white-space: nowrap;
}

.bank-match-modal-panel {
  max-width: 1040px;
  width: min(1040px, calc(100vw - 48px));
}

.bank-match-modal-body {
  display: grid;
  gap: 14px;
}

.bank-match-form {
  display: grid;
  gap: 14px;
}

.bank-match-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.bank-match-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.bank-match-account-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.bank-match-candidates {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 330px;
  overflow: auto;
}

.bank-match-candidates table {
  min-width: 0;
}

.bank-match-candidates tr {
  cursor: pointer;
}

.bank-match-candidates tr.selected {
  background: #e7f6f3;
}

.jpk-preview {
  display: grid;
  gap: 14px;
}

.jpk-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.jpk-section h3 {
  margin: 0 0 12px;
}

.jpk-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.jpk-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.jpk-grid span,
.jpk-grid small {
  color: var(--muted);
  font-size: 12px;
}

.jpk-grid strong {
  color: var(--ink);
}

.upo-visual {
  background: #ffffff;
  border-color: #b8d8d2;
}

.upo-title {
  align-items: baseline;
  border-bottom: 2px solid #0f766e;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.upo-title span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.upo-title strong {
  color: #005a52;
  font-size: 24px;
}

.upo-status {
  background: #e7f8ec;
  border: 1px solid #b6e4c5;
  border-radius: 6px;
  color: #06642f;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px;
}

.jpk-table {
  min-width: 980px;
}

.pit-extra-section[hidden] {
  display: none;
}

.pit-extra-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.pit-attachments {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.pit-attachment {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  margin: 0;
  min-height: 92px;
  padding: 11px;
}

.pit-attachment input {
  height: 16px;
  margin: 2px 0 0;
  width: 16px;
}

.pit-attachment span {
  display: grid;
  gap: 3px;
  line-height: 1.25;
  min-width: 0;
}

.pit-attachment small {
  color: var(--muted);
}

.pit-attachment-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

.pit-attachment-empty {
  margin: 0;
}

.pit-attachment-detail {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.pit-attachment-detail.locked {
  opacity: 0.75;
  pointer-events: none;
}

.pit-attachment-detail h4 {
  margin: 0 0 10px;
}

.pit-attachment-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.pit-attachment-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.pit-attachment-list div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 9px;
}

.pit-attachment-list span {
  color: var(--muted);
  font-size: 12px;
}

.pit-form-preview {
  background: #ffffff;
  border: 1px solid #1f2937;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  padding: 18px;
}

.pit-source {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-align: right;
}

.pit-top-grid,
.pit-two-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pit-cell,
.pit-field {
  border: 1px solid #1f2937;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 8px;
}

.pit-cell span,
.pit-field span,
.pit-field small,
.pit-line span,
.pit-signature-box span,
.pit-year-box span {
  color: var(--muted);
  font-size: 12px;
}

.pit-cell strong,
.pit-field strong,
.pit-line strong,
.pit-signature-box strong {
  color: var(--ink);
  font-size: 16px;
}

.pit-title-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 0;
}

.pit-title-row h3 {
  font-size: 34px;
  margin: 0;
}

.pit-title-row p {
  color: var(--muted);
  margin: 4px 0 0;
  text-transform: uppercase;
}

.pit-year-box {
  border: 1px solid #1f2937;
  min-width: 120px;
  padding: 8px;
  text-align: center;
}

.pit-year-box strong {
  color: var(--ink);
  display: block;
  font-size: 28px;
  letter-spacing: 4px;
}

.pit-section-bar {
  background: #e5e7eb;
  border: 1px solid #1f2937;
  color: var(--ink);
  font-weight: 800;
  margin-top: 10px;
  padding: 8px;
  text-transform: uppercase;
}

.pit-lines {
  border-left: 1px solid #1f2937;
  border-right: 1px solid #1f2937;
}

.pit-line {
  align-items: stretch;
  border-bottom: 1px solid #1f2937;
  display: grid;
  grid-template-columns: 1fr 180px;
  min-height: 40px;
}

.pit-line span {
  align-content: center;
  display: grid;
  padding: 8px;
}

.pit-line strong {
  align-content: center;
  border-left: 1px solid #1f2937;
  display: grid;
  justify-content: end;
  padding: 8px;
}

.pit-signature-box {
  border: 1px solid #1f2937;
  display: grid;
  gap: 4px;
  margin-top: 12px;
  min-height: 54px;
  padding: 10px;
}

.declaration-table {
  min-width: 1100px;
}

.status-pill {
  background: #eef2f7;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  padding: 4px 9px;
}

.status-pill.signed,
.status-pill.upo_received {
  background: #e7f8ec;
  color: #06642f;
}

.status-pill.sent,
.status-pill.signing_pending {
  background: #fff6dd;
  color: #7a5200;
}

.status-pill.error {
  background: #fdeaea;
  color: #9b1c1c;
}

.modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  max-height: 86vh;
  max-width: 760px;
  overflow: auto;
  padding: 18px;
  width: min(760px, 100%);
}

.modal-panel.contractor-settlement-modal-panel {
  max-height: calc(100vh - 24px);
  max-width: min(1500px, calc(100vw - 24px));
  width: min(1500px, calc(100vw - 24px));
}

.contractor-settlement-modal-body .kpir-scroll {
  overflow-x: hidden;
}

.kpir-table.contractor-settlement-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.kpir-table.contractor-settlement-table th,
.kpir-table.contractor-settlement-table td {
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 7px 6px;
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
}

.modal-header button {
  min-width: 42px;
}

.books-ledger-modal-panel {
  max-height: calc(100vh - 48px);
  max-width: min(1120px, calc(100vw - 48px));
  width: min(1120px, calc(100vw - 48px));
}

.books-ledger-modal-body {
  margin-top: 14px;
}

.books-ledger-modal-layout {
  display: grid;
  gap: 16px;
}

.books-ledger-entries-table {
  min-width: 980px;
}

.books-ledger-entry-row {
  cursor: pointer;
}

.books-ledger-entry-row:hover,
.books-ledger-entry-row.selected {
  background: #edf8f5;
}

.books-ledger-entry-row.settled-row td {
  color: var(--muted);
}

.books-ledger-tabs {
  margin: 0 0 10px;
}

.books-ledger-decree-preview .accounting-buffer-card {
  margin-bottom: 0;
}

.nested-modal-backdrop {
  background: rgba(15, 23, 42, 0.32);
  z-index: 1010;
}

.books-decree-modal-panel {
  max-height: calc(100vh - 64px);
  max-width: min(1100px, calc(100vw - 72px));
  width: min(1100px, calc(100vw - 72px));
}

.books-decree-modal-body {
  margin-top: 14px;
}

.books-decree-modal-notice {
  margin: 14px 0 0;
}

.books-decree-modal-body .accounting-buffer-card {
  margin-bottom: 0;
}

.modal-panel.settlement-invoice-preview-modal-panel {
  max-height: calc(100vh - 64px);
  max-width: min(1180px, calc(100vw - 72px));
  width: min(1180px, calc(100vw - 72px));
}

.settlement-invoice-preview-modal-body {
  margin-top: 14px;
}

.settlement-invoice-paper {
  border: 1px solid var(--line);
  box-shadow: none;
  margin: 0;
}

.settlement-invoice-head {
  gap: 16px;
}

.settlement-invoice-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settlement-invoice-parties {
  margin-top: 14px;
}

.settlement-invoice-items {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.settlement-invoice-items th,
.settlement-invoice-items td {
  overflow-wrap: anywhere;
}

.settlement-invoice-items th:first-child,
.settlement-invoice-items td:first-child {
  text-align: left;
}

.settlement-invoice-items th:nth-child(1),
.settlement-invoice-items td:nth-child(1) {
  width: auto;
}

.settlement-invoice-items th:nth-child(2),
.settlement-invoice-items td:nth-child(2),
.settlement-invoice-items th:nth-child(4),
.settlement-invoice-items td:nth-child(4) {
  width: 80px;
}

.settlement-invoice-items th:nth-child(3),
.settlement-invoice-items td:nth-child(3),
.settlement-invoice-items th:nth-child(5),
.settlement-invoice-items td:nth-child(5),
.settlement-invoice-items th:nth-child(6),
.settlement-invoice-items td:nth-child(6) {
  width: 110px;
}

.certificate-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.certificate-choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.certificate-choice:hover {
  border-color: var(--accent);
}

.certificate-choice.recommended {
  border-color: var(--accent);
  background: #f1fbf8;
}

.certificate-choice em {
  color: #006b5a;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.certificate-choice span {
  color: var(--muted);
  font-size: 12px;
}

.tax-report-table {
  min-width: 1400px;
}

.tax-report-table th {
  text-align: center;
}

.tax-report-table tfoot td,
.tax-report-table .tax-due-cell {
  background: #eef9ee;
  font-weight: 700;
}

.pit-advance-input {
  width: 110px;
  min-width: 0;
  padding: 6px 8px;
  text-align: right;
}

.kpir-table th,
.kpir-table td {
  font-size: 12px;
  padding: 8px 7px;
}

.kpir-table th {
  background: #f8fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.kpir-table .money {
  text-align: right;
  white-space: nowrap;
}

.kpir-table .month-row td {
  background: #eaf4f2;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpir-table .month-total-row td {
  background: #f8fafb;
  font-weight: 700;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.preview-panel {
  min-height: 620px;
}

.empty-preview {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.invoice-paper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.invoice-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 18px;
}

.invoice-head h3 {
  font-size: 24px;
  margin: 6px 0 0;
}

.eyebrow,
.parties span,
.invoice-meta span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.amount {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 700;
  text-align: right;
}

.invoice-meta,
.parties {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}

.parties section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.parties strong {
  display: block;
  margin: 6px 0;
}

.parties p {
  margin-bottom: 4px;
}

.accounting-box {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 14px;
}

.accounting-box label {
  margin-bottom: 8px;
}

.accounting-box .note {
  margin: 0;
}

.danger-box {
  border-color: #e0a39b;
  background: #fff7f5;
}

.danger-box strong {
  color: var(--danger);
}

.lease-box {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin: 10px 0;
}

.lease-box label {
  margin-bottom: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tfoot td {
  font-weight: 700;
}

details {
  margin-top: 18px;
}

.hr-declaration-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin: 14px 0 4px;
}

.hr-declaration-preview {
  margin-top: 18px;
}

.hr-declaration-toolbar + .actions {
  align-items: end;
}

.hr-declaration-toolbar + .actions label {
  display: grid;
  gap: 5px;
}

.hr-pit11-registry {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 18px;
  padding: 14px;
}

.hr-pit11-registry h3 {
  margin: 0 0 12px;
}

.pit11-official-fields td:first-child {
  width: 78px;
  white-space: nowrap;
}

.pit11-official-fields td:nth-child(2) {
  width: 44%;
}

.pit11-sheet .kpir-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.pit11-income-table col.source {
  width: 38%;
}

.pit11-income-table col:not(.source) {
  width: 15.5%;
}

.pit11-income-table th:not(:first-child),
.pit11-income-table td:not(:first-child),
.pit11-official-fields th:last-child {
  text-align: right;
}

.pit11-official-fields td:first-child {
  width: 76px;
}

.pit11-official-fields td:last-child {
  width: 132px;
}

.hr-payroll-table {
  min-width: 1240px;
  table-layout: fixed;
  width: 100%;
}

.hr-payroll-table col.period {
  width: 78px;
}

.hr-payroll-table col.person {
  width: 142px;
}

.hr-payroll-table col.status {
  width: 118px;
}

.hr-payroll-table col.settlement-date {
  width: 118px;
}

.hr-payroll-table col.time {
  width: 62px;
}

.hr-payroll-table col.absence {
  width: 136px;
}

.hr-payroll-table col.amount {
  width: 88px;
}

.hr-payroll-table col.row-actions {
  width: 96px;
}

.hr-payroll-table th {
  line-height: 1.25;
  white-space: normal;
}

.hr-payroll-table th:nth-child(n+8):nth-child(-n+15),
.hr-payroll-table td.money {
  text-align: right;
}

.hr-payroll-table td:last-child button {
  white-space: normal;
}

.hr-payroll-table .muted {
  color: var(--muted);
}

.payroll-date-stack {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.payroll-date-stack span {
  white-space: nowrap;
}

.zus-current-document {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 12px;
  max-width: 1160px;
  overflow-x: auto;
  padding: 16px;
}

.zus-current-document .dra-html-form {
  min-width: 700px;
}

.zus-current-document > .note {
  margin: 0 0 14px;
}

.hr-document-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  margin-top: 12px;
  max-width: 1120px;
  padding: 18px;
}

.hr-document-header {
  border: 2px solid #17212b;
  display: grid;
  grid-template-columns: 1.1fr 180px 1fr;
}

.hr-document-header > div {
  border-right: 1px solid #17212b;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
}

.hr-document-header > div:last-child {
  border-right: 0;
}

.hr-document-header strong {
  color: var(--ink);
  font-size: 17px;
}

.hr-document-header div:first-child strong {
  font-size: 27px;
}

.hr-document-header span,
.hr-document-header small {
  color: var(--muted);
  font-size: 12px;
}

.hr-document-sheet section {
  border: 1px solid var(--line);
}

.hr-document-sheet section h3 {
  background: #edf1f4;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  margin: 0;
  padding: 8px 10px;
  text-transform: uppercase;
}

.hr-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.hr-field-grid > div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 5px;
  min-height: 54px;
  padding: 9px 10px;
}

.hr-field-grid > div:nth-child(3n) {
  border-right: 0;
}

.hr-field-grid span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.hr-field-grid strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hr-document-sheet table {
  margin: 0;
}

.hr-document-sheet .note {
  margin: 0;
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  main {
    padding: 18px;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  .nav-group {
    grid-column: 1 / -1;
  }

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

  .inline-form {
    grid-template-columns: 1fr;
  }

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

  .vehicle-section,
  .vehicle-form,
  .lease-box {
    grid-template-columns: 1fr;
  }

  .kpir-summary {
    justify-content: flex-start;
  }

  .tax-summary {
    grid-template-columns: 1fr;
  }

  .pit-top-grid,
  .pit-two-col,
  .pit-extra-grid,
  .pit-attachments,
  .pit-attachment-list,
  .pit-attachment-detail-grid {
    grid-template-columns: 1fr;
  }

  .pit-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hr-declaration-toolbar,
  .hr-document-header,
  .hr-field-grid {
    grid-template-columns: 1fr;
  }

  .hr-document-header > div,
  .hr-field-grid > div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

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

  .pit-line strong {
    border-left: 0;
    border-top: 1px solid #1f2937;
    justify-content: start;
  }

  .invoice-meta,
  .parties {
    grid-template-columns: 1fr;
  }

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

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

  .hr-time-toolbar,
  .hr-time-summary {
    grid-template-columns: 1fr;
  }

  .payroll-details-grid,
  .payroll-breakdown {
    grid-template-columns: 1fr;
  }

  .item-header {
    display: none;
  }
}
