/* Audit batch 1: presentation only, limited to three audited workspaces. */
@media screen {
  html body[data-active-page] #detailModal:has(#chartAccountModalForm) {
    align-items: start !important;
  }
  html body[data-active-page] #detailModal:has(#chartAccountModalForm) .detail-modal-card {
    width: min(920px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 32px) !important;
    overflow: hidden !important;
  }
  html body[data-active-page] #detailModal:has(#chartAccountModalForm) #detailModalBody {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 130px) !important;
    overflow: auto !important;
    padding: 18px !important;
  }
  html body #detailModal #chartAccountModalForm {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: start !important;
  }
  html body #chartAccountModalForm > label {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  html body #chartAccountModalForm > .wide,
  html body #chartAccountModalForm > .payment-modal-actions {
    grid-column: 1 / -1 !important;
  }
  html body #chartAccountModalForm :is(input:not([type=checkbox]), select) {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }
  html body #chartAccountModalForm .switch-line {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 40px !important;
  }
  html body #chartAccountModalForm input[type=checkbox] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
  }
  html body #chartAccountModalForm .payment-modal-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e7e1e7;
  }
  html body #chartAccountModalForm .payment-modal-actions > button {
    width: auto !important;
    min-width: 120px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 10px 20px !important;
  }
  html body #reportsPage .variance-scroll:has(.table-row-session) {
    overflow: auto !important;
    max-width: 100% !important;
    max-height: 60dvh !important;
  }
  html body #reportsPage .variance-table:has(.table-row-session) {
    display: table !important;
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100% !important;
  }
  html body #reportsPage .variance-table:has(.table-row-session) :is(th, td) {
    width: auto !important;
    min-width: 88px !important;
    max-width: none !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  html body #reportsPage .variance-table:has(.table-row-session) th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  html body #reportsPage .table-row-session button {
    min-width: 54px !important;
    white-space: nowrap !important;
  }
  html body #detailModal #posEmployeesTable .pos-employee-row {
    display: grid !important;
    grid-template-columns: minmax(140px, 1.4fr) minmax(100px, .8fr) minmax(160px, 2fr) 80px 80px !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 58px !important;
    height: auto !important;
    padding: 10px 14px !important;
  }
  html body #detailModal #posEmployeesTable .pos-employee-row > * {
    min-width: 0 !important;
    margin: 0 !important;
  }
  html body #detailModal #posEmployeesTable .pos-employee-row :is(.status, button) {
    width: auto !important;
    min-height: 32px !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
  }
}
@media screen and (max-width: 800px) {
  html body #detailModal #chartAccountModalForm {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body #detailModal #posEmployeesTable .pos-employee-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html body #detailModal #posEmployeesTable .pos-employee-row > :nth-child(3) {
    grid-column: 1 / -1 !important;
  }
}
@media screen and (max-width: 520px) {
  html body #detailModal #chartAccountModalForm {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
