.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.table-scroll table { width: 100%; border-collapse: collapse; background: white; }
.table-scroll caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: .65rem; border-bottom: 1px solid #cbd5e0; }
.table-scroll thead { background: #ebf8ff; }
.leave-form { display: grid; padding: 1.25rem; background: white; border: 1px solid #cbd5e0; border-radius: .75rem; }
.leave-form label { font-weight: 600; margin-bottom: .25rem; }
.leave-form input, .leave-form select, .leave-form button { width: 100%; min-width: 0; padding: .7rem; border: 1px solid #718096; border-radius: .35rem; font: inherit; }
.leave-form input, .leave-form select { margin-bottom: 1rem; }
.leave-form select { white-space: normal; }
.leave-form button { background: #1a365d; color: white; cursor: pointer; font-weight: 700; }
.leave-result:not(:empty) { background: #ebf8ff; border-left: 4px solid #2b6cb0; margin: 1rem 0; padding: 1rem; }

.leave-form input[type="checkbox"] { width: auto; margin: 0 .4rem 0 0; }
@media (max-width: 640px) {
  .leave-comparison table, .leave-comparison caption, .leave-comparison tbody, .leave-comparison tr,
  .leave-comparison th, .leave-comparison td { display: block; }
  .leave-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .leave-comparison th[scope="row"] { background: #ebf8ff; }
  .leave-comparison td::before { content: attr(data-label); display: block; font-weight: 600; }
}
