.records-page { min-height: 100vh; }
.records-shell { width: min(100% - 32px, 1000px); margin: 0 auto; padding: 28px 0 48px; }
.records-heading h1 { margin: 0 0 6px; font-size: clamp(24px, 5vw, 34px); }
.records-heading p { margin: 0 0 16px; color: #695b55; }
.records-shell .status { margin: 12px 0; }
.records-shell .status:empty, .employee-records-dialog .status:empty { display: none; }
.records-filters { margin: 16px 0; }
.records-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.records-presets [aria-pressed="true"] { background: #8c241d; border-color: #8c241d; color: white; }
.records-filter-fields { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; align-items: end; gap: 10px; }
.records-filter-fields label { min-width: 0; display: grid; gap: 5px; }
.records-filter-fields input { width: 100%; min-width: 0; height: 44px; padding: 0 9px; border: 1px solid #c9b8ad; border-radius: 8px; }
.records-filter-fields .primary { margin: 0; min-height: 44px; padding: 0 20px; }
.records-metrics { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; margin: 20px 0; }
.records-metrics div { padding: 14px; border: 1px solid #eddad0; border-radius: 12px; background: #fff8f3; }
.records-metrics dt { color: #69544b; font-size: 13px; }
.records-metrics dd { margin: 4px 0 0; color: #86241e; font: 700 clamp(18px, 4vw, 29px)/1.2 system-ui, sans-serif; overflow-wrap: anywhere; }
.records-table-wrap { overflow: auto; border: 1px solid #ebddd4; border-radius: 12px; background: #fff; }
.records-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.records-table th, .records-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0e7e2; }
.records-table th { background: #faf0e9; color: #54362d; }
.records-table tr:last-child td { border-bottom: 0; }
.records-table td:last-child { white-space: nowrap; }
.records-page .smallbtn { min-height: 40px; }
.records-page button:focus-visible, .records-page input:focus-visible, .employee-records-dialog button:focus-visible {
  outline: 2px solid #9b3022; outline-offset: 2px;
}
#moreRecords, #moreEmployeeRecords { margin-top: 12px; }
.employee-records-dialog {
  width: min(680px, 100% - 24px); max-height: 85vh; padding: 18px; border: 1px solid #dbc1b4;
  border-radius: 14px; background: #fffaf6; color: #321c17;
}
.employee-records-dialog::backdrop { background: rgb(46 21 15 / 48%); }
.employee-records-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.employee-records-dialog h2 { margin: 0; font-size: 20px; }
.employee-records-dialog .records-table td { vertical-align: top; }
@media (max-width: 620px) {
  .records-filter-fields { grid-template-columns: 1fr 1fr; }
  .records-table th, .records-table td { padding: 8px 6px; }
  .records-table .smallbtn { padding-inline: 8px; }
  .records-metrics div { padding: 10px 8px; }
}
