:root {
  --ink: #1d2528;
  --muted: #667174;
  --line: #dce2e0;
  --panel: #ffffff;
  --page: #f5f6f1;
  --soft: #e9efe9;
  --green: #1f7a5d;
  --green-dark: #155842;
  --gold: #c48b2c;
  --blue: #315f8f;
  --danger: #b24635;
  --shadow: 0 14px 34px rgba(28, 38, 41, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 246, 241, 0.88), rgba(245, 246, 241, 0.96)),
    url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='760' fill='%23eaf1ed'/%3E%3Cpath d='M0 570c162-88 311-100 448-37s252 61 345-6 229-86 407-57v290H0z' fill='%23d9e5df'/%3E%3Cpath d='M786 137h238v305H786z' fill='%23f8faf8'/%3E%3Cpath d='M820 179h170M820 226h170M820 273h96M820 320h145M820 367h114' stroke='%2398aaa3' stroke-width='15' stroke-linecap='round'/%3E%3Ccircle cx='326' cy='244' r='95' fill='%23f8faf8'/%3E%3Cpath d='M288 250l38 38 76-89' stroke='%231f7a5d' stroke-width='28' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='124' y='432' width='288' height='96' rx='12' fill='%23fff'/%3E%3Cpath d='M160 464h128M160 494h204' stroke='%23a98743' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--green-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.menu-backdrop {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.metric-card span,
.month-picker span {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 26px;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  width: min(980px, 100%);
}

.auth-intro,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
}

.auth-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-feature-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 10px;
}

.price-tag {
  display: inline-flex;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.auth-brand {
  margin-bottom: 0;
}

.auth-panels {
  display: grid;
  gap: 16px;
}

.auth-card {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.auth-card h1,
.auth-card h2,
.auth-card p {
  margin: 0;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-alert {
  padding: 12px 14px;
  border: 1px solid #e8c2ba;
  border-radius: 8px;
  color: #7b2d20;
  background: #fff1ee;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  width: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.84);
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-panel {
  margin-top: 16px;
}

.billing-shell {
  max-width: 1040px;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.billing-status {
  display: grid;
  gap: 12px;
}

.billing-status p,
.billing-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 12px;
}

.billing-actions form {
  margin: 0;
}

.billing-list {
  display: grid;
  gap: 10px;
}

.billing-payment {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-payment div:last-child {
  text-align: right;
}

.billing-payment strong,
.billing-payment span {
  display: block;
}

.billing-payment span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #344044;
  background: #eef3ef;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table th:last-child,
.admin-table td:last-child {
  border-right: 0;
}

.admin-table tbody tr:nth-child(even) {
  background: #fafbf8;
}

.admin-table tbody tr:hover {
  background: #f3f7f4;
}

.admin-table td strong,
.admin-table td span,
.admin-table td small {
  display: block;
}

.admin-table td span,
.admin-table td small,
.muted-text {
  color: var(--muted);
}

.admin-action-form {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  align-items: center;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line);
}

.workspace {
  padding: 26px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

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

.topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  font-weight: 700;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.month-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

select,
select option {
  color: var(--ink);
  background: #fff;
}

.hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 6px;
  color: #354044;
  font-size: 0.9rem;
  font-weight: 700;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 170px;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(21, 88, 66, 0.97), rgba(31, 122, 93, 0.86)),
    url("data:image/svg+xml,%3Csvg width='900' height='260' viewBox='0 0 900 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='18' stroke-linecap='round'%3E%3Cpath d='M41 209h230M79 153h138M448 82h348M504 139h231M651 196h160'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 680px;
}

.hero-panel .eyebrow,
.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.profit-badge {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
}

.metric-grid,
.two-column,
.split-layout {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-layout {
  grid-template-columns: minmax(310px, 0.78fr) minmax(360px, 1.22fr);
  align-items: start;
}

.client-side-stack {
  display: grid;
  gap: 16px;
}

.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
}

.metric-card strong {
  font-size: 1.45rem;
}

.panel {
  padding: 18px;
}

.dashboard-chart-panel {
  margin-bottom: 16px;
}

.income-chart-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.income-chart {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(#dce2e0 0 100%);
}

.income-chart::before {
  content: "";
  grid-area: 1 / 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
}

.chart-center {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  gap: 3px;
  text-align: center;
}

.chart-center strong {
  font-size: 1.55rem;
}

.chart-center span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.chart-legend {
  display: grid;
  gap: 12px;
}

.chart-legend div {
  display: grid;
  grid-template-columns: 14px minmax(54px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chart-legend span:last-child {
  color: var(--muted);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.profit-swatch {
  background: var(--green);
}

.expense-swatch {
  background: var(--gold);
}

.loss-swatch {
  background: var(--danger);
}

.muted-swatch {
  background: var(--line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

.logo-upload-field {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
  gap: 12px;
  align-items: end;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.logo-preview img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.empty-logo {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.compact-form {
  position: sticky;
  top: 20px;
}

.line-items-section {
  display: grid;
  gap: 9px;
}

.line-items-heading,
.line-items-header,
.line-item-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(70px, 0.25fr) minmax(95px, 0.4fr) 42px;
  gap: 8px;
  align-items: center;
}

.line-items-heading {
  grid-template-columns: 1fr 42px;
}

.line-items-heading h3 {
  margin: 0;
  font-size: 0.95rem;
}

.line-items-header {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.line-items {
  display: grid;
  gap: 8px;
}

.line-item-row input {
  min-width: 0;
}

.icon-button,
.remove-line {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 1.25rem;
}

.remove-line {
  color: var(--danger);
}

.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: var(--green);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.danger {
  color: #fff;
  background: var(--danger);
}

.list-stack {
  display: grid;
  gap: 10px;
}

.record {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-record {
  border-left-width: 5px;
}

.quotation-record {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(196, 139, 44, 0.1), #fff 22%);
}

.invoice-record {
  border-left-color: var(--blue);
  background: linear-gradient(90deg, rgba(49, 95, 143, 0.1), #fff 22%);
}

.record-top,
.record-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.record-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.record strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
}

.record p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.gold {
  color: #744d0c;
  background: #f6e7cb;
}

.pill.blue {
  color: #173e64;
  background: #dceaf6;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quotation-badge {
  color: #744d0c;
  background: #f6e7cb;
}

.invoice-badge {
  color: #173e64;
  background: #dceaf6;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #b9c3bf;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.message-results:empty {
  display: none;
}

.search {
  max-width: 240px;
}

.lower-grid {
  margin-top: 16px;
}

.statement-panel {
  max-width: 980px;
}

.tax-report-panel {
  max-width: 1280px;
}

.statement-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.statement-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.statement-column h3 {
  margin: 0;
  padding: 13px 14px;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.expenses-column h3 {
  color: #7b2d20;
  background: #f6ded9;
}

.income-column h3 {
  color: var(--green-dark);
  background: #dbece4;
}

.tax-column {
  overflow-x: auto;
}

.tax-column h3 {
  color: #173e64;
  background: #dceaf6;
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
}

.statement-table th,
.statement-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.statement-table td:last-child,
.statement-table th:last-child {
  text-align: right;
}

.column-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px;
  border-top: 2px solid var(--line);
  font-weight: 900;
}

.expenses-column .column-total {
  color: #7b2d20;
  background: #fbefec;
}

.income-column .column-total {
  color: var(--green-dark);
  background: #eef7f2;
}

.statement-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.statement-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.statement-summary .statement-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
  border-color: var(--blue);
}

.tax-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.tax-summary > div {
  align-items: center;
  flex-direction: column;
  flex: 0 1 190px;
  gap: 6px;
  justify-content: flex-start;
  text-align: center;
}

.tax-summary .statement-total {
  align-items: center;
  flex-basis: 230px;
  font-size: 1.05rem;
}

.tax-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

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

  .menu-button {
    display: inline-flex;
  }

  .menu-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgba(29, 37, 40, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.mobile-menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .two-column,
  .split-layout,
  .billing-grid,
  .statement-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .compact-form {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell {
    padding: 14px;
  }

  .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table {
    min-width: 0;
    border-spacing: 0 12px;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .admin-table tbody tr:nth-child(even),
  .admin-table tbody tr:hover {
    background: #fff;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: minmax(94px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-action-form {
    grid-template-columns: 1fr;
  }

  .admin-action-form .compact-button {
    width: 100%;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .hero-panel,
  .income-chart-layout,
  .record-top {
    align-items: stretch;
    flex-direction: column;
  }

  .income-chart-layout {
    display: flex;
  }

  .income-chart {
    align-self: center;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions > * {
    flex: 1 1 140px;
  }

  .top-actions .user-chip {
    flex: 1 1 100%;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
  }

  .nav-list,
  .metric-grid,
  .two-column,
  .billing-grid,
  .form-grid,
  .logo-upload-field,
  .statement-columns {
    grid-template-columns: 1fr;
  }

  .billing-payment {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-payment div:last-child {
    text-align: left;
  }

  .line-items-header {
    display: none;
  }

  .line-item-row {
    grid-template-columns: 1fr 78px 110px 42px;
  }

  .profit-badge {
    width: 100%;
  }

  .tax-summary > div {
    flex-basis: 150px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .panel-heading button,
  .record-actions {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    padding: 0;
  }

  .view {
    display: none;
  }

  .view.active-view {
    display: block;
  }

  .panel {
    box-shadow: none;
    border: 0;
  }

  .statement-panel {
    max-width: none;
    padding: 0;
  }

  .statement-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .statement-column {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .statement-table th,
  .statement-table td {
    padding: 8px;
  }

  .column-total {
    padding: 10px;
  }

  .statement-summary {
    margin-top: 12px;
  }

  .tax-summary {
    display: flex;
    flex-wrap: wrap;
  }

  .tax-summary > div {
    flex: 0 1 190px;
  }

  .tax-summary .statement-total {
    flex-basis: 230px;
  }
}
