/* Workspace table geometry. Load after premium/theme styles so every work area
   shares the same text baseline. Printed documents own their table layout. */
@media screen {
  html[data-design] .qorva-app .main :is(.tablewrap,.people-table-wrap):not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) {
    width:100%;min-width:0;max-width:100%;overflow-x:auto;
    overscroll-behavior-x:contain;scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) {
    width:100%;border-collapse:separate;border-spacing:0;
    font-family:inherit;font-size:13px;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(th,td) {
    padding:14px 16px;vertical-align:top;text-align:left;
    line-height:1.55;overflow-wrap:anywhere;word-break:normal;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) thead th {
    font-size:11px;font-weight:700;line-height:1.45;
    letter-spacing:.035em;white-space:normal;color:var(--muted);
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) tbody :is(td,th[scope="row"]) {
    font-size:13px;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) tbody th[scope="row"] {
    background:transparent;color:var(--text);font-weight:600;
    text-transform:none;letter-spacing:0;
  }
  /* Alignment follows the declared meaning of a column, never its position. */
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(th,td):is(.numeric,.num,.right,.text-right) {
    text-align:right;font-variant-numeric:tabular-nums;
    overflow-wrap:normal;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) td:is(.numeric,.num,.right,.text-right) {
    white-space:nowrap;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(th,td):is(.center,.text-center) {
    text-align:center;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(th,td) small {
    display:block;margin-top:5px;font-size:11px;
    line-height:1.5;color:var(--muted);
  }
  /* Only existing action groups become flex containers. Cells and standalone
     forms remain table cells and forms, including edit/review controls. */
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(.docactions,.inline-actions,.people-actions,.payroll-actions,.table-actions,.form-actions) {
    display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:0;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(.docactions,.inline-actions,.people-actions,.payroll-actions,.table-actions,.form-actions)>form {
    margin:0;max-width:100%;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) td>.btn {
    vertical-align:top;margin:0 8px 6px 0;
  }
  html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) td>.status+.btn {
    margin-left:8px;
  }
  @media(max-width:760px) {
    html[data-design] .qorva-app .main table:not(.report-sheet *, .payroll-print *, .offer-sheet *, .people-print-document *, .output-paper-preview *) :is(th,td) {
      padding:12px 14px;
    }
  }
}
