#estSheet {
  --est-paper: #fff;
  --est-ink: #14251b;
  --est-grid: #c6d3ca;
  --est-group: #e4f1e1;
  --est-payment: #fff1c8;
  color-scheme: light;
  background: var(--est-paper);
  color: var(--est-ink);
  min-width: 0;
  overflow: visible;
  padding: clamp(10px, 2vw, 16px);
}
.est-summary { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 12px; }
.est-company { min-width: 0; overflow-wrap: anywhere; }
.est-company img { display: block; width: min(100%, 184px); height: auto; margin-bottom: 8px; }
.est-company strong { display: block; margin-bottom: 4px; }
.est-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.est-fields label { margin: 0; min-width: 0; color: var(--est-ink); font-size: 12px; font-weight: 650; }
#estSheet .est-fields input { min-height: 36px; padding: 5px 7px; border: 1px solid var(--est-grid); border-radius: 5px; }
.est-dates { grid-column: 1 / -1; margin: 0; }
.est-table-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.est-table-tools h2 { margin: 0; font-size: 18px; }
#estSheet .est-table-tools button { min-height: 44px; color: var(--brand-green); border-color: var(--est-grid); }
.est-table-area, .est-fin-area { overflow: auto; }
.est-table-area { position: relative; max-height: 65dvh; border: 1px solid var(--est-grid); }
.est-table-area:focus-visible { outline-offset: 1px; }
#estTable { table-layout: fixed; }
#estTable :is(th, td) { border-color: var(--est-grid); }
#estTable thead { position: sticky; top: 0; z-index: 3; }
#estTable thead th { background: var(--brand-green); color: var(--est-paper); }
#estTable thead th.y { background: var(--est-payment); color: var(--est-ink); }
#estTable tbody .sec td { background: var(--est-group); color: var(--est-ink); }
#estTable tbody .sec .y { background: var(--est-payment); }
#estTable .sum td { background: var(--est-group); color: var(--est-ink); }
#estTable .est-fixed-index, #estTable tbody .stt { position: sticky; left: 0; }
#estTable tbody .stt { background: var(--est-paper); z-index: 1; }
#estTable .est-fixed-index { z-index: 2; }
#estTable tbody:not(#estFoot) :is(input, select, textarea) { min-height: 27px; }
.est-help { margin-bottom: 8px; }
.est-help summary { width: fit-content; cursor: pointer; color: var(--pri); min-height: 44px; align-content: center; }
@media (min-width: 1024px) {
  #estTable .est-fixed-service, #estTable tbody tr:not(.sec) .stt + td { position: sticky; left: 40px; }
  #estTable .est-fixed-service { z-index: 2; }
  #estTable tbody tr:not(.sec) .stt + td { background: var(--est-paper); z-index: 1; box-shadow: 1px 0 var(--est-grid); }
}
@media (max-width: 680px) {
  .est-summary { grid-template-columns: minmax(0, 1fr); }
}
