/* Notification-centre list density; original controls and records remain live. */
body main{max-width:none!important;width:100%;min-width:0;padding:14px 18px calc(var(--gate-dock-space,160px) + 20px)!important}
body main>header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:0 2px 10px;margin-bottom:12px}body main>header h1{font-size:23px;margin:0}body main>header p{font-size:12px;margin:0}
#oa-module-sidebar{display:none!important}#category-help{display:none}#category-title{font-size:20px;margin:8px 2px}
body main>section,body main>form#entry,body main>#history-panel{box-sizing:border-box;background:#fff;border:1px solid #b8cfdf;border-radius:18px;padding:14px 16px;margin:10px 0;color:#16324e;min-width:0;box-shadow:inset 0 1px #fff,0 5px 18px #2b4a6408}
body main h2{font-size:18px;margin:8px 0}body main p{font-size:12px;color:#60768a;margin:8px 0}
body main .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;padding-bottom:4px}
body main table[data-oa-keep-table]{width:100%;min-width:1100px;border-collapse:separate;border-spacing:0 3px;font-size:13px;text-align:left}
body main table[data-oa-keep-table] :is(td,th){padding:3px 7px!important;white-space:nowrap;vertical-align:middle;line-height:18px}
body main table[data-oa-keep-table] thead th{height:34px;background:#eaf1f6;color:#60768a;border-block:1px solid #d5e3ee;font-size:12px}
body main table[data-oa-keep-table] tbody td{height:40px;border-block:1px solid #c6d9e8;background:linear-gradient(#fff,#fafcfe)}
body main table[data-oa-keep-table] :is(td,th):first-child{border-left:1px solid #c6d9e8;border-radius:10px 0 0 10px}body main table[data-oa-keep-table] :is(td,th):last-child{border-right:1px solid #c6d9e8;border-radius:0 10px 10px 0}
body main table[data-oa-keep-table] tbody tr.manager-day-band th{height:26px;padding:2px 8px!important;font-size:11px;border:0;background:#f1f6fa;color:#60768a}
body main table[data-oa-keep-table] :is(input,select,button){height:30px;min-height:30px!important;padding:3px 6px;font:inherit;font-size:12px;margin:0}
body main .manager-datetime{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:3px!important;width:238px!important;min-width:238px!important}
body main .manager-datetime input[type=date]{flex:0 0 124px;width:124px!important;min-width:124px!important}body main .manager-datetime select{flex:0 0 47px;width:47px!important;min-width:47px!important}
body main table .gate-visible-time{margin:0;padding:0;border:0;background:none;display:block}body main table .gate-visible-time>small{display:none}
body main table .manager-row-actions,body main table .actions{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0}
body main table td small{display:inline;font-size:11px;margin:0 0 0 6px}body main table .gate-record-actor{display:none}body main .gate-direction{color:#60768a}
body main table details{position:relative;display:inline-block;margin:0;vertical-align:middle;max-width:none}body main table details>summary{font-size:12px;cursor:pointer;white-space:nowrap;color:#42647d}body main table details[open]{position:relative}body main table details[open]>:not(summary){position:relative;white-space:normal}body main table details[open]{z-index:30;background:#fff;border:1px solid #a5c2d9;border-radius:8px;padding:8px;box-shadow:0 6px 18px #24455d26}
body main table .company-exception>[data-time]{display:inline-block}
body main table :is(.company-exception,.gate-supplement,.return-transport)[open]{position:absolute;right:20px;max-width:560px}
body main table .manager-warning-note{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:#a12b43}body main table .manager-warning-note br{display:none}body main table .manager-warning-note br::after{content:" · "}body main table .manager-time-warning td{border-color:#d68f9b;background:#fff4f5}body main table .manager-overnight-approved td{background:#e4f3eb}body main table tr.overnight-warning td{border-color:#d68f9b;background:#fff4f5}
body main .grid{gap:8px;align-items:end}body main label{font-size:12px;gap:4px;flex:1 1 140px}body main .grid .wide{flex-basis:220px}body main :is(input,select){min-height:32px;padding:5px 7px;font-size:12px}body main .actions{gap:6px;margin-top:8px}body main button{min-height:32px;font-size:12px;padding:5px 8px}
body main #entry{padding:12px 16px}body main #entry legend{font-size:15px;margin-bottom:8px}body main #entry .actions{justify-content:flex-start}
body main .gate-grid-tools{display:flex;justify-content:flex-start;align-items:center;gap:4px;margin:8px 0;padding:0;min-height:36px;position:relative;z-index:20}
body main .gate-grid-tools .hr-leave-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:4px;border:1px solid transparent;border-radius:3px;background:transparent!important;box-shadow:none;color:#547d9b}
body main .gate-grid-tools .hr-leave-tool svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 1px #36557420)}
body main .gate-grid-tools [data-leave-icon=save]{color:#36709d}body main .gate-grid-tools [data-leave-icon=undo]{color:#b33535}body main .gate-grid-tools [data-leave-icon=refresh]{color:#6c982c}body main .gate-grid-tools .hr-leave-tool:hover:not(:disabled){background:#e2edf7!important;border-color:#9db7d0}body main .gate-pending-status{font-size:12px;color:#805709;margin-left:8px}
body main .company-save-now,body main [data-return-save],body main [data-complete]{background:#edf5fb!important;color:#245b82!important;border-color:#bdd2e4!important}
body main #gate-home{container-type:inline-size;min-height:0;padding:24px 20px 28px;margin:0;}
#gate-home .oa-home-header{margin:0 0 22px}body main #gate-home h2{font-size:24px;margin:0;text-align:center;color:#173c57}
#gate-home .oa-home-grid{margin:auto}
#gate-home .gate-home-count{font-size:clamp(24px,3cqi,44px);font-weight:700;color:var(--nc-strong);line-height:1.1;font-variant-numeric:tabular-nums}
#gate-home .gate-home-detail{font-size:clamp(11px,1.1cqi,16px);color:#60768a}
html body main #gate-home .oa-home-right .oa-home-card-head{flex-direction:column;justify-content:center;text-align:center;padding:16px 8px}
#gate-home .oa-home-icon{box-shadow:inset 0 1px #fff,0 3px 0 #23496614,0 6px 12px #23496615}
body.gate-home-active.gate-embedded main>header{display:none}

/* Keep the home backdrop continuous through the bottom navigation. */
html body.gate-home-active main:has(> #gate-home:not([hidden])){
  box-sizing:border-box;
  min-height:100dvh!important;
}
@media(min-width:761px){
  html body.gate-home-active.gate-embedded main:has(> #gate-home:not([hidden])){
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding-top:clamp(24px,5dvh,48px)!important;
    padding-bottom:clamp(74px,12dvh,112px)!important;
  }
}
#gate-workspace-dock{position:fixed;z-index:70;bottom:4px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:6px;padding:2px 13px;background:linear-gradient(145deg,#fff,#edf6fc);border:1px solid #a5c2d9;border-radius:20px;box-shadow:0 10px 24px #23496720;overflow:visible}
#gate-workspace-dock button{position:relative;flex:0 0 calc(var(--gate-slot,64px) + var(--gate-growth,0px));width:calc(var(--gate-slot,64px) + var(--gate-growth,0px));transition:width .2s ease,flex-basis .2s ease;height:46px;min-height:46px;border:0;background:transparent;padding:0;display:grid;place-items:center;color:#2978c4;overflow:visible}
#gate-workspace-dock .cd-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #b6d3ed;border-radius:13px;background:linear-gradient(145deg,#fff,#edf6ff);box-shadow:inset 0 1px #fff,0 3px 0 #c9dceb,0 6px 10px #284d692b;transition:transform 160ms ease}
#gate-workspace-dock button[aria-pressed=true] .cd-icon{outline:2px solid #8fb8d5;outline-offset:2px}#gate-workspace-dock svg{width:26px;height:26px}
#gate-workspace-dock .cd-label{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);width:64px;white-space:normal;text-align:center;color:#365c75;border:1px solid #bed3e2;border-radius:8px;background:#f6fbffed;font:600 12px/1.25 Arial;padding:4px 5px;pointer-events:none}

@media(max-width:600px){body main{padding:10px 8px calc(var(--gate-dock-space,220px) + 20px)!important}body main>section,body main>form#entry,body main>#history-panel{padding:12px 8px}#gate-workspace-dock{display:grid;grid-template-columns:repeat(4,var(--gate-slot,42px));gap:42px 3px;padding:8px}#gate-workspace-dock button{width:var(--gate-slot,42px);height:44px}#gate-workspace-dock .cd-label{font-size:10px;width:44px;bottom:calc(100% + 2px);padding:3px}#gate-workspace-dock .cd-icon{width:33px;height:33px}body main .gate-home-cards{grid-template-columns:1fr}}


body main #entry fieldset>.actions{display:none}

body main table[data-oa-keep-table]{table-layout:fixed;min-width:1300px}body main .company-plate-number{font-size:15px!important}body main .company-times-table td:last-child{text-align:left}body main table .company-manual-times{display:flex;gap:5px}body main table td>time{font-variant-numeric:tabular-nums}
@media(max-width:600px){#gate-workspace-dock#gate-workspace-dock{row-gap:38px!important}}
body main table[data-oa-keep-table] thead th{width:auto!important}body main [data-save-time]{display:none}

body main .company-times-table td:last-child{text-align:left!important}
body main #supplier-visits tbody td>strong{font-size:14px!important;line-height:18px!important}body main table[data-oa-keep-table] td:not(:last-child):not(:has(input,select)){overflow:hidden;text-overflow:ellipsis}body main #supplier-visits .gate-visible-time{min-height:0!important;margin:0!important}body main #supplier-visits td{height:40px!important}body main table .manager-warning-note{white-space:nowrap}
body main table td small:empty{display:none}body main #supplier-tracking td .actions,body main table .manager-row-actions{display:inline-flex;vertical-align:middle}body main #supplier-tracking td:last-child,body main #manager-trip-rows td:last-child{white-space:nowrap}
body main #supplier-tracking td .actions{flex-wrap:nowrap!important}body main #supplier-visits [data-complete],body main #manager-trips [data-return-save],body main #company-dispatch [data-stage-now]{font-size:12px!important;font-weight:500!important;padding:3px 6px!important;height:30px!important;min-height:30px!important;white-space:nowrap}

#gate-workspace-dock button .cd-icon{color:var(--gate-tone,#2978c4);background:linear-gradient(145deg,#fff,var(--gate-tint,#edf6ff));border-color:var(--gate-tone,#b6d3ed)}

html body main #gate-home .oa-home-right .oa-home-card-head strong{flex:0 1 auto}

body main #company-dispatch table.company-times-table:not(.company-history-table)[data-oa-keep-table]{min-width:1100px}

/* Action controls stay in the actual-time column. */
body main #company-dispatch .company-time-editor{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 8px;
  padding-block:3px;
}
body main #company-dispatch .company-quick-time [data-feedback]:not(:empty){
  display:block;
  margin:3px 0;
  white-space:normal;
  overflow-wrap:anywhere;
}
body main #company-dispatch :is(.company-quick-time,.company-time-reference) .manager-datetime{
  width:auto!important;
  min-width:0!important;
}
body main #company-dispatch .company-trip-actions button{
  box-sizing:border-box;
  max-width:100%;
  height:auto;
  white-space:normal;
  overflow-wrap:normal;
}
