:root {
  --ink: #12323f;
  --muted: #5b7180;
  --line: #d6e4e4;
  --panel: #ffffff;
  --page: #f4f8f7;
  --accent: #0f7f8b;
  --accent-strong: #075160;
  --gold: #8cc63f;
  --danger: #b13b3b;
  --shadow: 0 18px 55px rgba(10, 52, 64, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden],
.is-hidden {
  display: none !important;
}

html {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
}

body:not(.is-authenticated) .app-shell {
  display: none;
}

body.is-authenticated .login-screen {
  display: none;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(15, 127, 139, 0.16), transparent 34%), var(--page);
}

.login-card {
  display: grid;
  width: min(440px, 100%);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.login-brand img {
  width: 106px;
  height: 54px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 22px;
}

.login-brand span,
.login-message {
  color: var(--muted);
}

.login-message {
  margin: 0;
  min-height: 22px;
  font-weight: 700;
}

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

button {
  cursor: pointer;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: #0b3441;
  color: #f7fbff;
}

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

.brand-mark {
  display: grid;
  width: 86px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  padding: 6px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #c4deda;
  font-size: 13px;
  margin-top: 2px;
}

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

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-group-title {
  display: block;
  padding: 0 4px 2px;
  color: #a9c8c4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: #d9ece8;
  text-align: left;
  min-height: 46px;
  touch-action: manipulation;
  padding-left: 18px;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.totals-panel {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.totals-panel span,
.totals-panel small {
  display: block;
  color: #c5ddd9;
}

.totals-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.top-actions,
.form-actions,
.budget-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.primary-button,
.secondary-button,
.danger-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}

.icon-button {
  display: grid;
  width: 40px;
  padding: 0;
  place-items: center;
}

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

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button:hover,
.icon-button:hover {
  border-color: var(--accent);
}

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

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.compact-heading {
  margin-top: 24px;
  margin-bottom: 12px;
}

.compact-heading h3 {
  margin: 0;
  font-size: 18px;
}

.budget-heading {
  margin-top: 28px;
}

.form-grid,
.product-editor,
.commission-editor,
.user-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.product-editor,
.commission-editor,
.user-editor {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(15, 127, 139, 0.16);
}

.file-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

.product-editor .form-actions,
.commission-editor .form-actions,
.user-editor .form-actions,
.permissions-panel {
  grid-column: 1 / -1;
}

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

.permissions-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.permissions-panel > span {
  flex-basis: 100%;
  color: var(--muted);
  font-weight: 800;
}

.permissions-panel label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  font-weight: 700;
}

.permissions-panel input {
  width: 18px;
  height: 18px;
}

.compact-button {
  min-height: 44px;
  padding-inline: 16px;
}

.commission-summary-wrap {
  margin-bottom: 16px;
}

.positive-value {
  color: #17633a;
  font-weight: 800;
}

.negative-value {
  color: #9b2c2c;
  font-weight: 800;
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #e8f3f1;
  color: #244956;
  font-size: 12px;
  text-transform: uppercase;
}

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

td.actions {
  width: 180px;
  text-align: right;
  white-space: nowrap;
}

.mini-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-left: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

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

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

#view-catalogo .table-wrap {
  box-shadow: none;
}

#view-catalogo th,
#view-catalogo td {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.18;
  vertical-align: middle;
}

#view-catalogo th {
  font-size: 11px;
}

#view-catalogo td:nth-child(1) {
  width: 84px;
  white-space: nowrap;
}

#view-catalogo td:nth-child(2) {
  width: 120px;
}

#view-catalogo td:nth-child(5),
#view-catalogo td:nth-child(6) {
  width: 120px;
  white-space: nowrap;
}

#view-catalogo td.actions {
  width: 138px;
}

#costSummaryTable > tr > td {
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.2;
  vertical-align: middle;
}

#costSummaryTable > tr > td:first-child {
  width: 90px;
  white-space: nowrap;
}

#costSummaryTable > tr > td:nth-child(2) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#costSummaryTable > tr > td:nth-child(3),
#costSummaryTable > tr > td:nth-child(4) {
  width: 120px;
  white-space: nowrap;
}

#costSummaryTable > tr > td.actions {
  width: 92px;
}

#costSummaryTable .cost-toggle-button {
  min-width: 62px;
  height: 28px;
  margin-left: 0;
  border-radius: 7px;
  font-size: 12px;
}

#costSummaryTable .cost-toggle-button[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

#costSummaryTable > tr.cost-detail-row > td {
  padding: 0;
  background: #fff8f2;
}

.cost-detail-panel {
  padding: 10px 14px 12px;
  overflow-x: auto;
}

.cost-detail-table {
  width: max(100%, 880px);
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cost-detail-table th,
.cost-detail-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.25;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cost-detail-table th {
  background: #f1eee9;
  color: var(--ink);
  text-transform: uppercase;
}

.cost-detail-table th:nth-child(4),
.cost-detail-table td:nth-child(4) {
  width: 55px;
  text-align: center;
  white-space: nowrap;
}

.cost-detail-table th:nth-child(5),
.cost-detail-table td:nth-child(5) {
  width: 70px;
  white-space: nowrap;
}

.cost-detail-table th:nth-child(6),
.cost-detail-table th:nth-child(7),
.cost-detail-table td:nth-child(6),
.cost-detail-table td:nth-child(7) {
  width: 100px;
  text-align: right;
  white-space: nowrap;
}

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

#view-catalogo .mini-button {
  min-width: 28px;
  height: 28px;
  margin-left: 4px;
  border-radius: 7px;
  font-size: 13px;
}

.catalog-cell-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-detail-text {
  -webkit-line-clamp: 4;
}

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

.budget-tools {
  justify-content: flex-end;
}

.budget-tools select {
  min-width: 340px;
}

.budget-tools input {
  width: 92px;
}

.bulk-budget-panel {
  display: grid;
  gap: 10px;
  margin: -8px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bulk-budget-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bulk-budget-toolbar input {
  min-height: 38px;
}

.bulk-budget-list {
  display: grid;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bulk-budget-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

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

.bulk-budget-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bulk-budget-item strong,
.bulk-budget-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-budget-item small {
  color: var(--muted);
}

.bulk-qty-input {
  width: 72px;
  min-height: 34px;
  padding: 6px 8px;
}

.qty-cell {
  width: 70px;
  min-height: 34px;
  padding: 6px 8px;
}

#budgetTable small {
  display: block;
  max-width: 560px;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

#budgetTable td,
#budgetTable th {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.18;
  vertical-align: middle;
}

#budgetTable th {
  font-size: 11px;
}

#budgetTable td.actions {
  width: 66px;
}

#budgetTable .mini-button {
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
}

.budget-item-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.budget-item-detail {
  display: -webkit-box;
  max-width: 680px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.summary-box {
  display: grid;
  gap: 8px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.summary-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-box strong {
  font-size: 20px;
}

.summary-box.total {
  border-color: rgba(140, 198, 63, 0.55);
  background: #f3faec;
}

.ai-workspace {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-workspace textarea {
  min-height: 170px;
}

.ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.calculation-workspace {
  display: grid;
  gap: 16px;
}

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

.calc-panel-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(160px, 220px));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.calc-panel-header h3 {
  align-self: center;
}

.calc-result-pair {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(140, 198, 63, 0.55);
  border-radius: 8px;
  padding: 11px;
  background: #f3faec;
}

.calc-result-pair span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calc-result-pair strong {
  font-size: 20px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.calculation-report {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-card {
  display: grid;
  gap: 9px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-card strong {
  font-size: 24px;
}

.status-select {
  min-width: 128px;
}

.template-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.template-note span {
  color: var(--muted);
  line-height: 1.4;
}

.technical-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sheet-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 3px solid #f24f00;
}

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

.sheet-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.sheet-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.sheet-section {
  margin-top: 22px;
}

.sheet-section p {
  margin-top: 8px;
  color: #2f3437;
  line-height: 1.5;
}

.sheet-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sheet-list li {
  border-left: 4px solid #f24f00;
  padding: 9px 12px;
  background: #f4f4f2;
}

.sheet-table {
  margin-top: 10px;
  border: 1px solid var(--line);
}

.pdf-total-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pdf-total-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #f4f4f2;
}

.pdf-total-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pdf-total-grid strong {
  font-size: 16px;
}

.pdf-total-grid .pdf-grand-total {
  border-color: rgba(242, 79, 0, 0.55);
  background: #fff1e8;
}

.sheet-links a {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sheet-file-item {
  display: grid;
  gap: 3px;
}

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

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
    gap: 14px;
    padding: 14px 16px 12px;
    box-shadow: 0 12px 28px rgba(6, 36, 45, 0.18);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 68px;
    height: 36px;
    border-radius: 6px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 12px;
  }

  .nav {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    min-height: 48px;
    padding: 12px 16px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .nav-item.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b3441;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  }

  .totals-panel {
    display: none;
  }

  .form-grid,
  .product-editor,
  .commission-editor,
  .user-editor,
  .ai-result-grid,
  .calc-panel-header,
  .calc-form-grid,
  .summary-grid,
  .dashboard-grid,
  .sheet-grid,
  .sheet-two-columns,
  .pdf-total-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 12px 14px 10px;
  }

  .brand {
    align-items: center;
  }

  .brand-mark {
    width: 58px;
    height: 32px;
  }

  .brand span {
    display: none;
  }

  .nav {
    margin: 0;
    padding: 0 0 4px;
  }

  .nav-item {
    min-width: 118px;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .product-editor,
  .commission-editor,
  .user-editor,
  .ai-result-grid,
  .calc-panel-header,
  .calc-form-grid,
  .summary-grid,
  .dashboard-grid,
  .sheet-grid,
  .sheet-two-columns,
  .pdf-total-grid {
    grid-template-columns: 1fr;
  }

  .budget-tools {
    justify-content: stretch;
  }

  .budget-tools select,
  .budget-tools input,
  .budget-tools button {
    width: 100%;
  }

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

  .bulk-budget-toolbar .form-actions,
  .bulk-budget-toolbar button {
    width: 100%;
  }

  .bulk-budget-item {
    grid-template-columns: 22px minmax(0, 1fr) 64px;
  }

  .sheet-header {
    grid-template-columns: 1fr;
  }

}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .section-heading,
  .view {
    display: none !important;
  }

  body.print-calculations .view,
  body.print-calculations .calculation-workspace {
    display: none !important;
  }

  .app-shell,
  .workspace,
  #view-ficha {
    display: block !important;
    padding: 0;
  }

  body.print-calculations #view-ficha {
    display: none !important;
  }

  body.print-calculations .app-shell,
  body.print-calculations .workspace,
  body.print-calculations #view-calculos,
  body.print-calculations .calculation-report {
    display: block !important;
    padding: 0;
  }

  .technical-sheet {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .sheet-header {
    break-after: avoid;
  }

  .sheet-section,
  .sheet-field,
  .pdf-total-grid div,
  .sheet-list li {
    break-inside: avoid;
  }

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

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

  .table-wrap {
    box-shadow: none;
  }

  th {
    background: #eeeeec !important;
    color: #333333 !important;
  }
}
