.ac-controls { margin-bottom: 20px; }
.ac-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.ac-table { table-layout: fixed; }
.ac-table th, .ac-table td { text-align: center; padding: 6px 2px; font-size: .85rem; }
.ac-table th:nth-child(2) { width: 22%; }
.ac-selected td { background: #fff0bd; font-weight: 700; }
.ac-selected { outline: 2px solid #9a6700; outline-offset: -2px; }
.ac-table tr { scroll-margin-top: 90px; }
@media (max-width: 400px) {
  .ac-table th, .ac-table td { font-size: .73rem; padding: 5px 1px; }
}
@page { size: A4 portrait; margin: 10mm; }
@media print {
  header, footer, .lead, .content, .ac-controls, .ac-reminder, .breadcrumbs, .breadcrumb, .other-tools { display: none !important; }
  body, main.wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; background: white; }
  h1 { font-size: 14pt; margin: 0 0 2mm; }
  #ac-table-title { font-size: 11pt; margin: 0 0 2mm; }
  #ac-chart { border: 0; padding: 0; margin: 0; box-shadow: none; }
  .ac-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2mm; align-items: start; }
  .ac-tables .table-scroll { overflow: visible; }
  .ac-table { margin: 0; }
  .ac-table th, .ac-table td { font-size: 7pt; line-height: 1.2; padding: .8mm 0; color: black; }
  .ac-table td { white-space: nowrap; }
  .ac-table th:nth-child(2) { width: 27%; }
  .ac-table thead { display: table-header-group; }
  .ac-table tr { break-inside: avoid; }
  .ac-selected { outline: none; }
  .ac-selected td { background: white; font-weight: normal; }
}
