@charset "UTF-8";

/* Desktop reading standard. A table fills the available space and wraps labels. */
@media (min-width:1024px){
  body.ui-system :is(#content,#dialogBody) :is(.ui-table-frame,.sheet-scroll,.registry-table-wrap,.dashboard-country-table-wrap) {
    max-width:100%;
    min-width:0;
  }
  body.ui-system :is(#content,#dialogBody) table:not(.sfp-hours-grid):not(.commercial-measurement-grid) {
    width:100%;
    max-width:100%;
    min-width:0!important;
  }
  body.ui-system :is(#content,#dialogBody) table:not(.sfp-hours-grid):not(.commercial-measurement-grid)
    > :is(thead,tbody,tfoot)>tr>:is(th,td) {
    min-width:0!important;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.ui-system :is(#content,#dialogBody) :is(.sheet th,.registry-table th,.commercial-table th){
    padding:9px clamp(5px,.65vw,10px);
    line-height:1.2;
    text-wrap:pretty;
  }
  body.ui-system :is(#content,#dialogBody) :is(.sheet td,.registry-table td,.commercial-table td){
    padding-inline:clamp(5px,.65vw,10px);
  }
  body.ui-system :is(#content,#dialogBody) table :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body.ui-system :is(#content,#dialogBody) table :is(.row-actions,.actions,.panel-actions){
    flex-wrap:wrap;
    min-width:0;
    max-width:100%;
    gap:5px;
  }
  body.ui-system :is(#content,#dialogBody) table :is(button,.button-link,.badge){
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
  }
  body.ui-system dialog#dialog[data-ui-grid-width][open]{
    width:min(calc(100vw - 26px),var(--ui-grid-width));
    max-width:calc(100vw - 26px);
    box-sizing:border-box;
  }
  body.ui-system dialog#dialog[data-dialog-mode="commercial-detail"][open]{
    width:min(1720px,calc(100vw - 26px));
    max-width:calc(100vw - 26px);
  }
  body.ui-system .commercial-measurement-grid-scroll{
    max-height:none;
    overflow:visible;
  }
  body.ui-system .commercial-measurement-grid{
    width:100%;min-width:0;table-layout:fixed;
    font-size:11px;font-variant-numeric:tabular-nums;
    border-radius:9px;
  }
  body.ui-system .commercial-measurement-grid :is(th,td){overflow:visible}
  body.ui-system .commercial-measurement-grid .grid-no{width:38px}
  body.ui-system .commercial-measurement-grid .grid-worker{width:clamp(128px,13vw,198px)}
  body.ui-system .commercial-measurement-grid .grid-worker :is(strong,small){font-size:inherit;overflow-wrap:anywhere}
  body.ui-system .commercial-measurement-grid .grid-worker small{font-size:9px}
  body.ui-system .commercial-measurement-grid .grid-day{width:auto}
  body.ui-system .commercial-measurement-grid .grid-hours{width:57px}
  body.ui-system .commercial-measurement-grid .grid-rate{width:67px}
  body.ui-system .commercial-measurement-grid .grid-total{width:84px}
  body.ui-system .commercial-measurement-grid thead th{position:static;font-size:9px}
  body.ui-system .commercial-measurement-grid thead tr:nth-child(2) th{position:static;font-size:8px}
  body.ui-system .commercial-measurement-grid tfoot td{position:static}
  body.ui-system .commercial-measurement-grid .commercial-day-stack{display:block}
  body.ui-system .commercial-measurement-grid .commercial-day-input{
    display:block;width:100%!important;max-width:100%!important;min-width:0!important;
    font-size:10px!important;padding:4px 0!important;box-sizing:border-box;
    appearance:textfield;
  }
  body.ui-system .commercial-measurement-grid .commercial-day-input::-webkit-inner-spin-button{appearance:none;margin:0}
  body.ui-system .sfp-hours-grid-wrap{max-width:100%;min-width:0}
  body.ui-system .sfp-hours-grid-wrap .sfp-hours-grid{
    width:100%;min-width:0!important;table-layout:fixed;
  }
  body.ui-system .sfp-hours-grid :is(th,td):nth-child(1){
    position:static;width:42px;min-width:0!important;
  }
  body.ui-system .sfp-hours-grid :is(th,td):nth-child(2){
    position:static;width:clamp(122px,13vw,180px);min-width:0!important;
    white-space:normal;overflow-wrap:anywhere;
  }
  body.ui-system .sfp-hours-grid :is(th,td):nth-child(n+3):not(:last-child){
    width:auto;min-width:0!important;padding-inline:0;
  }
  body.ui-system .sfp-hours-grid :is(th,td):last-child{
    width:55px;min-width:0!important;text-align:right;
  }
  body.ui-system .sfp-hours-grid :is(.sfp-map-cell input,.hours-cell input){
    display:block;width:100%!important;min-width:0!important;max-width:100%!important;
    padding-inline:0!important;box-sizing:border-box;font-size:10px;
  }
  body.ui-system .sfp-hours-grid th small{font-size:8px}
}
body.ui-system .ui-auto-months{display:grid;gap:15px}
body.ui-system .ui-auto-month{min-width:0}
body.ui-system .ui-auto-month>h3{margin:4px 0 7px;color:var(--ui-navy);font-size:14px}
body.ui-system .ui-auto-total{
  display:flex;justify-content:flex-end;gap:12px;align-items:center;
  padding:9px 12px;background:#edf6f9;border:1px solid var(--ui-line);
  border-radius:9px;color:var(--ui-navy);font-variant-numeric:tabular-nums;
}
body.ui-system .ui-auto-total strong{font-size:15px}
