﻿:root {
  --teal: #51a8b1;
  --teal-700: #3b8e96;
  --lime: #a8cf4f;
  --bg: #f4f7f8;
  --ink: #334155;
  --muted: #6b7280;
  --surface: #ffffff;
  --accent-fill: #e9f4f6;
  --accent-stroke: #d8edef;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

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

body.modal-open {
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--lime);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}

.app-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--teal);
  text-transform: uppercase;
  text-align: center;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.export-menu {
  position: relative;
}

.export-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--accent-stroke);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  display: none;
  gap: 10px;
  z-index: 30;
}

.export-dropdown:not([hidden]) {
  display: grid;
}

.export-field {
  display: grid;
  gap: 6px;
}

.export-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.month-input {
  padding: 10px 12px;
  border: 1px solid var(--accent-stroke);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.month-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(81, 168, 177, 0.2);
}

.export-dropdown .nav-btn {
  width: 100%;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 16px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.2s ease;
}

.nav-btn:hover {
  background: var(--teal-700);
}

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

.month-select {
  padding: 10px 12px;
  border: 1px solid var(--accent-stroke);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.month-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(81, 168, 177, 0.2);
}

.table-container {
  margin: 14px 12px 20px;
  overflow-x: auto;
}

.demonstracao-section {
  margin: 0 16px 28px;
  background: var(--surface);
  border: 1px solid var(--accent-stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.demonstracao-head {
  margin-bottom: 12px;
}

.demonstracao-head h2 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.demonstracao-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

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

.demonstracao-card {
  border: 1px solid var(--accent-stroke);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfc;
  overflow-x: auto;
}

.demonstracao-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0f172a;
}

.demonstracao-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.demonstracao-table th,
.demonstracao-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e6edf3;
  font-size: 12px;
}

.demonstracao-table thead th {
  text-align: left;
  background: #eef5f7;
  border-bottom: 1px solid #d9e7ec;
}

.demonstracao-table td.number,
.demonstracao-table th.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.demonstracao-table tfoot th {
  background: #eef7f0;
  font-weight: 800;
}

.demonstracao-credito-row td {
  background: #f7fbff;
  font-weight: 700;
}

.demonstracao-credito-row td:first-child {
  border-left: 4px solid var(--teal);
}

.demonstracao-comp-row td:first-child {
  color: var(--muted);
}

.demonstracao-empty {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.demonstracao-total-row td {
  background: #eef7f0;
  font-weight: 800;
  border-top: 2px solid #9fd3a8;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  text-align: center;
  font-weight: 900;
  padding: 14px 16px;
  font-size: 14px;
  color: #0f172a;
  border-bottom: 1px solid var(--accent-stroke);
}

tbody tr {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 10px;
}

tbody td {
  padding: 8px 10px;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, 0);
}

tbody tr:hover {
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08);
}

tbody tr td:first-child {
  font-weight: 600;
}

.amount-box {
  display: inline-block;
  min-width: 96px;
  padding: 8px 6px;
  border: none;
  background: var(--accent-fill);
  border-radius: 8px;
  text-align: right;
  font-weight: 600;
  color: #0f172a;
}

.amount-btn {
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.amount-btn:hover {
  border-color: #9acdd3;
  background: #dff1f4;
}

.amount-btn:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(81, 168, 177, 0.2);
}

.saldo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.mov-cell {
  /* shrink slightly to accommodate multiple taxes on a single row */
  min-width: 160px;
}

.mov-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mov-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mov-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.saldo-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.saldo-status.payable {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.saldo-status.ok {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.total-row {
  background: #f1faf3;
}

.total-row td {
  font-weight: 800;
  padding-top: 16px;
  border-top: 3px solid var(--teal);
}

.total-row td:first-child {
  font-size: 1.05rem;
  color: #0f172a;
}

.total-row td .amount-box {
  background: #e6f7f2;
  color: #0f172a;
}

.table-empty,
.table-error,
.table-loading {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.detalhe-cell {
  min-width: 760px;
  vertical-align: top;
}

.painel-centro-head {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dbe7ee;
}

.painel-centro-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.painel-centro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.painel-centro-toggle::after {
  content: "▾";
  font-size: 14px;
  color: #64748b;
}

.painel-centro-toggle:focus-visible {
  outline: 2px solid rgba(81, 168, 177, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

.painel-centro-company {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.tributo-layout {
  display: grid;
  gap: 8px;
}

.tributo-layout.centro-collapsed .painel-centro-toggle::after {
  content: "▸";
}

.tributo-layout.centro-collapsed .tributo-block.credito,
.tributo-layout.centro-collapsed .tributo-block.debito {
  display: none;
}

.tributo-layout.centro-collapsed .resumo-centro .resumo-separator,
.tributo-layout.centro-collapsed .resumo-centro .resumo-item:last-child {
  display: none;
}

.tributo-block {
  border: 1px solid var(--accent-stroke);
  border-radius: 12px;
  padding: 8px;
  background: #f8fbfc;
}

.tributo-block.credito {
  border-left: 5px solid #f59e0b;
}

.tributo-block.debito {
  border-left: 5px solid var(--teal);
}

.tributo-block.resumo {
  border-left: 5px solid var(--lime);
}

.tributo-block-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0f172a;
}

.imposto-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 8px;
}

.imposto-item {
  background: var(--surface);
  border: 1px solid var(--accent-stroke);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.imposto-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #334155;
}

.imposto-breakdown {
  display: grid;
  gap: 4px;
}

.imposto-break-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.imposto-break-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
}

.imposto-break-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 92px;
  min-height: 26px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent-fill);
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.imposto-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--accent-fill);
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.credito-value-btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.credito-value-btn:hover {
  border-color: #f59e0b;
  background: #fff7e8;
}

.credito-value-btn:focus-visible {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.resumo-centro {
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.resumo-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resumo-separator {
  font-size: 18px;
  font-weight: 800;
  color: #64748b;
  line-height: 1;
}

.resumo-label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.resumo-item .imposto-value {
  min-width: 110px;
}

.resumo-value-btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.resumo-value-btn:hover {
  border-color: #0ea5b7;
  background: #edfafd;
}

.resumo-value-btn:focus-visible {
  outline: none;
  border-color: #0ea5b7;
  box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.22);
}

.total-row .painel-centro-name {
  font-size: 26px;
}

.retencoes-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

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

.retencoes-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.retencoes-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  padding: 16px;
}

.retencoes-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.retencoes-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--teal);
}

.retencoes-modal-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

.retencoes-modal-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.retencoes-modal-table thead th {
  position: static;
  text-align: left;
  font-size: 12px;
  padding: 10px;
  background: #f8fbfc;
  border-bottom: 1px solid var(--accent-stroke);
}

.retencoes-modal-table tbody tr {
  background: transparent;
  box-shadow: none;
}

.retencoes-modal-table tbody tr:hover {
  box-shadow: none;
}

.retencoes-modal-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #e6edf3;
  font-size: 13px;
}

.retencoes-modal-table tbody td.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.retencoes-modal-state {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.form-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.status-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.status-banner.success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.status-banner.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

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

.insert-toggle-bar {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  border-left: 6px solid var(--teal);
}

.insert-toggle-bar .helper-text {
  margin: 0;
}

.insert-toggle-bar .action-btn {
  margin-top: 0;
}

.insert-toggle-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  border-left: 6px solid var(--lime);
}

.form-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--teal);
}

.helper-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.movement-card {
  grid-column: 1 / -1;
}

.mov-list-header {
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mov-list-header h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.mov-list-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--teal);
}

.action-btn.ghost-btn {
  background: #f8fafc;
  color: var(--teal-700);
  border: 1px solid var(--accent-stroke);
}

.action-btn.ghost-btn:hover {
  background: #eef7f9;
}

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

.mov-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

.mov-table thead th {
  position: static;
  background: #f8fbfc;
  text-align: left;
  font-size: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--accent-stroke);
}

.mov-table tbody tr {
  background: transparent;
  box-shadow: none;
}

.mov-table tbody tr:hover {
  box-shadow: none;
}

.mov-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
  white-space: nowrap;
}

.mov-table tbody td:first-child {
  font-weight: 500;
}

.tipo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.tipo-badge.debito {
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #99f6e4;
}

.tipo-badge.credito {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.edit-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 6px;
}

.edit-btn:hover {
  background: #dbeafe;
}

.edit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.delete-btn {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.delete-btn:hover {
  background: #ffe4e6;
}

.delete-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mov-empty,
.mov-loading {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.data-form {
  display: grid;
  gap: 10px;
}

.data-form label {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.data-form input,
.data-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--accent-stroke);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.data-form input:focus,
.data-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(81, 168, 177, 0.2);
}

.action-btn {
  margin-top: 4px;
  width: fit-content;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.2s ease;
}

.action-btn:hover {
  background: var(--teal-700);
}

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

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

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

.tax-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.data-form input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--teal);
}

.mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--accent-stroke);
  border-radius: 10px;
  background: #f8fbfc;
}

.mode-row label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.tax-sections {
  display: grid;
  gap: 12px;
}

.tax-section {
  padding: 12px;
  border: 1px solid var(--accent-stroke);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.tax-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--teal-700);
}

@media (max-width: 980px) {
  .controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .movement-card {
    grid-column: auto;
  }

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

  .mov-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .retencoes-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detalhe-cell {
    min-width: 580px;
  }

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

@media (max-width: 600px) {
  thead {
    display: none;
  }

  tbody tr {
    display: block;
    margin-bottom: 12px;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #0f172a;
    text-align: left;
  }

  .saldo-wrap {
    align-items: flex-end;
  }

  .mov-cell {
    display: block;
  }

  tbody td.detalhe-cell {
    display: block;
    padding: 10px 12px;
  }

  tbody td.detalhe-cell::before {
    content: none;
  }

  .brand-logo {
    height: 48px;
  }

  .app-title {
    font-size: 18px;
  }

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

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

  .mov-table thead {
    display: table-header-group;
  }

  .mov-table tbody tr {
    display: table-row;
    margin-bottom: 0;
  }

  .mov-table tbody td {
    display: table-cell;
    padding: 10px;
    gap: 0;
  }

  .mov-table tbody td::before {
    content: none;
  }

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

  .demonstracao-section {
    margin: 0 10px 20px;
    padding: 12px;
  }

  .demonstracao-table {
    min-width: 760px;
  }

  .resumo-centro {
    align-items: stretch;
  }

  .resumo-item {
    width: 100%;
    justify-content: space-between;
  }

  .resumo-item .imposto-value {
    min-width: 120px;
    max-width: 160px;
  }

  .resumo-separator {
    display: none;
  }

  .retencoes-modal-table thead {
    display: table-header-group;
  }

  .retencoes-modal-table tbody tr {
    display: table-row;
    margin-bottom: 0;
  }

  .retencoes-modal-table tbody td {
    display: table-cell;
    padding: 10px;
    gap: 0;
  }

  .retencoes-modal-table tbody td::before {
    content: none;
  }
}

@media print {
  @page {
    size: a4 landscape;
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    font-size: 11px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .controls {
    display: none !important;
  }

  .table-container {
    margin: 0 !important;
    overflow: visible !important;
  }

  table {
    width: 100% !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
  }

  thead {
    display: table-header-group !important;
  }

  thead th {
    position: static !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  tbody tr {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }

  tr,
  td,
  th {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .total-row td {
    border-top: 2px solid #51a8b1 !important;
  }
}
