/* Shared presentation for RailTime. Data, controls and the protected timeline
   renderer stay in their original modules. Root rem sizing remains unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{--rt-ref-sidebar:236px;--rt-ref-sidebar-collapsed:64px;--rt-radius:7px;--rt-control:34px;--rt-canvas:#f5f8f7;--rt-line:#dce5e0;--rt-ink:#192c29;--rt-muted:#52665f;--rt-primary:#17684d}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.875rem;line-height:1.45}
body.rt-reference-ui{background:var(--rt-canvas)}
body .btn,body .smallbtn,body input:not([type=checkbox]):not([type=radio]),body select,body textarea{font-size:.875rem}
body .btn,body .smallbtn{min-height:var(--rt-control);padding:6px 11px;line-height:1.35;border-radius:5px;font-weight:600;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body input:not([type=checkbox]):not([type=radio]),body select{min-height:var(--rt-control);padding:6px 9px;border-radius:5px}
body textarea{padding:8px 10px;border-radius:5px}
body .panel,body .card{border-radius:var(--rt-radius);box-shadow:none;padding:16px}
body .panel h2,body .card h2{font-size:1.125rem;line-height:1.35;margin:0 0 12px}
body .panel h3,body .card h3{font-size:.9375rem;line-height:1.4;margin:12px 0 8px}
body .label,body .field>label{font-size:.8125rem}
body .grid2,body .grid3,body .grid4{gap:12px}
body .toolbar{gap:8px;flex-wrap:wrap}
body.rt-reference-ui .side{padding:14px 10px 12px;gap:6px;box-shadow:none}
body.rt-reference-ui .side-head{min-height:44px;margin:0 4px 8px}
body.rt-reference-ui .side .brand{font-size:1.375rem}
body.rt-reference-ui .side .brand small{font-size:.625rem;letter-spacing:.035em}
body.rt-reference-ui .admin-nav .nav-group-title,body.rt-reference-ui .admin-nav .nav-item{min-height:32px;padding:6px 9px;font-size:.875rem;font-weight:500}
body.rt-reference-ui .admin-nav .child{padding-left:30px}
body.rt-reference-ui .admin-nav .nav-icon{width:20px;height:20px;font-size:.875rem}
body.rt-reference-ui .admin-nav .nav-item.active{font-weight:650}
body.rt-reference-ui .side-user{padding:10px 5px 0;font-size:.8125rem}
body.rt-reference-ui .admin-nav-search input{min-height:32px;font-size:.8125rem}
body.rt-reference-ui .rt-create-menu{margin-bottom:6px}
body.rt-reference-ui .rt-create-menu>summary{min-height:36px;padding:7px 10px;font-size:.875rem;font-weight:600;box-shadow:none}
body.rt-reference-ui .rt-create-menu>summary span{font-size:1.125rem}
body.rt-reference-ui .side .side-toggle{top:68px;right:-14px;width:28px;height:32px;font-size:1.25rem}
body.rt-reference-ui .admin-main{padding:14px 22px 32px;min-width:0}
body.rt-reference-ui .admin-top{min-height:44px;padding:4px 0 10px;gap:10px;align-items:center;background:var(--rt-canvas);box-shadow:none}
body.rt-reference-ui .admin-top h1,body.rt-reference-ui .admin-app.admin-dashboard-active .admin-top h1{font-size:1.375rem;line-height:1.3;color:var(--rt-ink);margin:0;font-weight:650}
body.rt-reference-ui .admin-top #subtitle{font-size:.8125rem;color:var(--rt-muted);margin-top:3px}
body.rt-reference-ui .admin-breadcrumb{margin:2px 0 14px;font-size:.75rem}
body.rt-reference-ui .rt-settings-intro{margin-bottom:18px}
body.rt-reference-ui .rt-settings-intro h2{font-size:1.25rem}
body.rt-reference-ui .rt-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 24px}
body.rt-reference-ui .rt-settings-card{grid-template-columns:36px minmax(0,1fr);gap:10px;min-height:0;padding:12px 0}
body.rt-reference-ui .rt-settings-icon{width:36px;height:36px;font-size:1rem;border-radius:6px}
body.rt-reference-ui .rt-settings-card h3{font-size:.9375rem;margin:0 0 5px}
body.rt-reference-ui .rt-settings-card p{font-size:.8125rem;line-height:1.5;min-height:0;margin:0 0 10px}
body.rt-reference-ui .rt-settings-open{font-size:.8125rem}
body.device-desktop.rt-reference-ui #app>.wrap{padding:18px 24px 36px}
body.device-desktop.rt-reference-ui .employee-desktop-nav{padding:14px 10px 12px}
body.device-desktop.rt-reference-ui .employee-side-brand{min-height:46px;padding-bottom:9px}
body.device-desktop.rt-reference-ui .employee-side-brand .brand{font-size:1.375rem}
body.device-desktop.rt-reference-ui .employee-nav-group{margin-bottom:9px}
body.device-desktop.rt-reference-ui .employee-nav-group h2{font-size:.6875rem;letter-spacing:.04em}
body.device-desktop.rt-reference-ui .employee-nav-group button{min-height:34px;padding:6px 9px;font-size:.875rem;font-weight:500}
body #app>.top.employee-header{padding:10px 22px}
body #app>.top.employee-header .brand{font-size:1.375rem}
body #app>.top.employee-header .connection-status{min-height:26px;padding:4px 7px;font-size:.75rem}
body .ws-surface{width:100%;max-width:none;margin-inline:0}
body .ws-surface .panel{padding:16px;margin-bottom:14px}
body .ws-surface .btn,body .ws-surface button,body .ws-notification-button{min-height:var(--rt-control);font-size:.875rem}
body .ws-surface input:not([type=checkbox]),body .ws-surface select,body .ws-surface textarea{min-height:var(--rt-control);padding:6px 9px;font-size:.875rem;border-radius:5px}
body .ws-surface input[type=checkbox]{width:17px;height:17px}
body .ws-surface label{font-size:.8125rem;font-weight:600;gap:5px}
body .ws-surface h2{font-size:1.25rem;margin-bottom:12px}
body .ws-surface h3{font-size:.9375rem;margin:12px 0 8px}
body .ws-surface p{margin:6px 0 12px}
body .ws-filters{gap:10px;margin:8px 0 14px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
body .ws-period{margin:0;padding:7px 0;font-size:.8125rem;color:var(--rt-muted)}
body .ws-record{padding:10px 0;gap:10px}
body .ws-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
body .ws-kpis>button,body .ws-kpis>div{padding:11px 12px;gap:4px;border-radius:6px;background:#fff}
body .ws-kpis b{font-size:1.375rem;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}
body .ws-kpis span{font-size:.8125rem}
body .ws-kpis small{font-size:.75rem;color:var(--rt-muted)}
body .ws-two-col{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:14px}
body .ws-surface table{font-size:.875rem}
body .ws-surface th,body .ws-surface td{padding:8px 9px;vertical-align:middle}
body .ws-surface .table-wrap,body .table-wrap.responsive-table-wrap{max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain}
body .responsive-table:not(.responsive-cards){width:100%;min-width:0}
body .responsive-table:not(.responsive-cards) .responsive-action-cell{min-width:0;white-space:normal}
body .responsive-table:not(.responsive-cards) .responsive-action-cell .btn,body .responsive-table:not(.responsive-cards) .responsive-action-cell .smallbtn{display:inline-flex;align-items:center;justify-content:center;margin:2px 3px 2px 0;vertical-align:middle;word-break:normal;overflow-wrap:normal;white-space:nowrap}
body .responsive-table:not(.responsive-cards) .responsive-row-control{display:none}
.ws-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.ws-page-heading h2{margin:0!important}
.ws-workflow{display:flex;gap:8px 20px;flex-wrap:wrap;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--rt-line);color:var(--rt-muted);font-size:.8125rem}
.ws-workflow span{display:flex;align-items:center;gap:6px}
.ws-workflow .current{color:var(--rt-primary);font-weight:650}
.ws-court-layout{display:grid;grid-template-columns:minmax(170px,210px) minmax(0,1fr);gap:14px;align-items:start}
body .ws-court-layout .ws-people{display:grid;gap:4px;padding:10px;margin:0;border-radius:6px;min-width:0}
body .ws-court-layout .ws-people label{min-height:32px;font-weight:400;overflow-wrap:anywhere}
.ws-court-results{min-width:0}
.ws-court-totals{display:flex;gap:8px 18px;flex-wrap:wrap;align-items:baseline;font-size:.8125rem}
.ws-court-totals strong{font-size:1rem;font-variant-numeric:tabular-nums}
body .ws-summary{padding:12px;margin:12px 0 0;border:1px solid var(--rt-line);border-radius:6px;background:#fff}
.ws-status-label{display:inline-block;padding:3px 6px;border-radius:4px;background:#e9f5ef;color:#175d43;font-size:.75rem;line-height:1.4}
.ws-dash-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ws-dash-details .ws-record{font-size:.8125rem}
.ws-dash-details .ws-record b{font-size:.875rem}
body .ws-dashboard .panel>h3{margin-top:0}
.ws-dashboard .ws-scope{font-size:.75rem;color:var(--rt-muted)}
.ws-dashboard .ws-task-list{display:grid;gap:0}
.ws-dashboard .ws-task-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid var(--rt-line);border-radius:0;background:#fff;text-align:left;padding:8px 0}
.ws-dashboard .ws-task-list button:last-child{border-bottom:0}
.ws-dashboard .ws-task-list .ws-task-number{font-variant-numeric:tabular-nums;font-weight:650}
.ws-hour-strip{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 24px;padding:10px 0 0;border-top:1px solid var(--rt-line)}
.ws-hour-strip b{margin-left:6px;font-variant-numeric:tabular-nums;font-weight:650}
.ws-hour-strip small{margin-left:auto;color:var(--rt-muted)}
.ws-dashboard-options{font-size:.8125rem}
.ws-dashboard-options summary,.ws-excluded summary{cursor:pointer;min-height:34px;display:flex;align-items:center;padding:6px 0}
.ws-dashboard-options[open]{padding:10px;border:1px solid var(--rt-line);border-radius:6px;background:#fff}
.ws-dashboard-options label{display:flex;align-items:center;min-height:34px}
body .ws-dashboard .admin-dashboard-period{border:0;padding:0;margin:8px 0;box-shadow:none}
body .ws-dashboard .admin-dashboard-period h2{font-size:.875rem;margin:0}
.ws-excluded{margin-top:12px;padding-top:4px;border-top:1px solid var(--rt-line)}
@media(min-width:761px){
  body .doc-center,body .hr-shell,body .qms-shell{font-size:.875rem}
  body .doc-center .panel,body .hr-shell .panel,body .qms-shell .panel{padding:16px}
  body .station-suggestions button{min-height:36px;padding:7px 9px;font-size:.875rem}
  body .station-suggestions button span{font-size:.8125rem}
}
@media(max-width:1100px){
  body.rt-reference-ui .admin-main{padding:12px 16px 28px}
  body.rt-reference-ui .side .side-toggle{right:10px;top:12px;width:34px}
  body .ws-two-col{grid-template-columns:1fr}
  body.rt-reference-ui .rt-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .ws-court-layout{grid-template-columns:minmax(150px,190px) minmax(0,1fr)}
}
@media(max-width:760px){
  :root{--rt-control:44px}
  body{font-size:.9375rem}
  body input:not([type=checkbox]):not([type=radio]),body select,body textarea,body .ws-surface input:not([type=checkbox]),body .ws-surface select,body .ws-surface textarea{font-size:1rem}
  body .panel,body .card,body .ws-surface .panel{padding:12px}
  body.rt-reference-ui .admin-main{padding:8px 10px 24px}
  body.rt-reference-ui .admin-top h1,body.rt-reference-ui .admin-app.admin-dashboard-active .admin-top h1{font-size:1.25rem}
  body.rt-reference-ui .admin-top{flex-wrap:wrap;position:static}
  body .ws-notification-button{margin-left:auto;min-height:36px;padding:5px 8px;font-size:.8125rem}
  body .ws-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body .ws-kpis b{font-size:1.25rem}
  .ws-court-layout{grid-template-columns:1fr}
  body .ws-court-layout .ws-people{display:flex;flex-wrap:wrap;gap:4px 18px}
  body .ws-court-layout .ws-people label{min-height:44px}
  body .ws-court-layout .ws-people legend{font-size:.875rem}
  body .ws-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .ws-summary>.btn{width:100%}
  .ws-dash-details{grid-template-columns:1fr}
  body .ws-dashboard .ws-task-list button{min-height:44px}
  body.rt-reference-ui .rt-settings-grid{grid-template-columns:1fr;gap:4px}
  body.rt-reference-ui .rt-settings-card{padding:12px 0;grid-template-columns:36px minmax(0,1fr)}
  body.rt-reference-ui .rt-settings-icon{width:36px;height:36px}
  body .ws-surface .toolbar>.btn{flex:0 1 auto}
  body .ws-surface .ws-summary>.btn{flex:1 1 100%}
}
@media(max-width:420px){body .ws-filters{grid-template-columns:1fr}.ws-workflow{gap:6px 12px}}
@media(any-pointer:coarse){
  body .btn,body .smallbtn,body .ws-surface button{min-height:44px}
  body .ws-court-layout .ws-people label{min-height:44px}
  body input:not([type=checkbox]):not([type=radio]),body select,body .ws-surface input:not([type=checkbox]),body .ws-surface select{min-height:44px;font-size:1rem}
  body .station-suggestions button{min-height:48px}
}

.ws-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.ws-dashboard-grid .ws-dash-wide{grid-column:1/-1}
body .ws-dashboard-grid .panel{margin-bottom:0;min-width:0}
body .ws-hidden-column{display:none!important}
.ws-shift-columns{display:flex;flex-wrap:wrap;gap:8px 18px;padding:8px 0}
.ws-shift-columns label{display:flex;gap:6px;align-items:center}
@media(max-width:1000px){.ws-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ws-dashboard-grid{grid-template-columns:1fr}.ws-shift-columns label{min-height:44px}}

@media(min-width:761px){
  body .cards>.card .metric,body .employee-home .home-kpi b,body .employee-home .rt-kpi b{font-size:1.375rem;line-height:1.3;font-weight:650}
  body .employee-home .employee-hero h1,body .rt-dashboard-top h2{font-size:1.375rem;line-height:1.3}
  body .table-wrap button,body .op-dialog button,body .hr-shell button,body .qms-shell button,body .doc-center button{font-size:.875rem;min-height:34px}
}
@media(any-pointer:coarse){body .table-wrap button,body .op-dialog button,body .hr-shell button,body .qms-shell button,body .doc-center button{min-height:44px}}

/* Live review 218: a working surface fills its grid track, including empty
   states. Only the table scrolls horizontally; the page has one vertical flow.
   The protected timeline retains its existing scroll ancestors and geometry. */
body.rt-reference-ui .admin-main:not(:has(.rt-timeline)){overflow:visible}
body .rt-admin-settings{width:100%;margin-inline:0}
body #adminContent .table-wrap{min-width:0;max-width:100%;overflow:auto!important}
body #adminContent .entry-management .table-wrap{max-height:none}
body #adminContent table.responsive-table:not(.admin-calendar){font-size:.8125rem}
body #adminContent table.responsive-table:not(.admin-calendar) th{font-size:.75rem;text-transform:none;letter-spacing:0;padding:8px 9px}
body #adminContent table.responsive-table:not(.admin-calendar) td{padding:8px 9px}
body #adminContent table.responsive-table:not(.admin-calendar) button{min-height:var(--rt-control);font-size:.8125rem}
body #adminContent .ws-filters input:not([type=checkbox]),body #adminContent .ws-filters select{min-height:var(--rt-control);padding:6px 9px}
body .ws-surface label:has(>input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}
body .ws-record>div:last-child:has(>button){display:flex;flex-wrap:wrap;gap:6px}
body .ws-nav-group>.section-title>div{display:flex;gap:6px;flex-wrap:wrap}
body .doc-center{display:grid;gap:14px;width:100%;min-width:0}
body .doc-center .doc-tabs{margin-bottom:0;gap:6px}
body .doc-center #docMessage:empty{display:none}
body :is(.doc-center,.hr-shell,.qms-shell) button,
body :is(#systemHealthRefresh,#storageUsageRefresh,#employeeDeleteJobs,.notification button){
  min-height:var(--rt-control);max-width:100%;padding:6px 11px;border:1px solid var(--rt-line);border-radius:5px;
  background:#fff;color:var(--rt-ink);font:inherit;font-size:.875rem;font-weight:600;line-height:1.35;cursor:pointer;overflow-wrap:anywhere
}
body :is(.doc-center,.hr-shell,.qms-shell) button:not(:disabled):hover,
body :is(#systemHealthRefresh,#storageUsageRefresh,#employeeDeleteJobs,.notification button):not(:disabled):hover{background:#eef7f2;border-color:#9cc5b2}
body .doc-center .doc-tabs .active,body :is(.hr-shell,.qms-shell) button.btn{background:var(--rt-primary);color:#fff;border-color:var(--rt-primary)}
body :is(.doc-center,.hr-shell,.qms-shell) button:disabled{opacity:.55;cursor:not-allowed}
body #employeeDeleteJobs{justify-self:start}
body .rt-tools-menu>summary{font-size:.8125rem;font-weight:600;min-height:var(--rt-control);padding:6px 9px}
body.rt-reference-ui .admin-top .shell-heading{margin-right:auto}
body.rt-reference-ui .admin-top .rt-tools-menu,body.rt-reference-ui .admin-top .ws-notification-button{margin-left:0}
body #drawer .close{position:sticky;top:0;right:auto;float:right;z-index:2;display:grid;place-items:center;width:var(--rt-control);height:var(--rt-control);padding:0;border:1px solid var(--rt-line);border-radius:5px;background:#fff;color:var(--rt-ink)}
body.entry-drawer-open{overflow:hidden}
body #drawer.open{box-shadow:0 0 0 100vmax #102b3d45;overscroll-behavior:contain}
@media(max-width:760px){
  body #adminContent table.responsive-table:not(.admin-calendar){font-size:.875rem}
  body #adminContent table.responsive-table:not(.admin-calendar) button{min-height:44px;font-size:.875rem}
  body .rt-tools-menu{position:static}
  body .rt-tools-popover{position:fixed;inset:calc(env(safe-area-inset-top) + 64px) 10px auto;max-height:calc(100dvh - 84px);overflow:auto;width:auto}
  body #drawer{border-radius:0;padding:12px 12px calc(18px + env(safe-area-inset-bottom))}
}
@media(any-pointer:coarse){
  :root{--rt-control:44px}
  body :is(.doc-center,.hr-shell,.qms-shell) button,body :is(#systemHealthRefresh,#storageUsageRefresh,#employeeDeleteJobs,.notification button),body .rt-tools-menu>summary{min-height:44px}
  body #adminContent table.responsive-table:not(.admin-calendar) button{min-height:44px}
  body.rt-reference-ui .admin-nav .nav-group-title,body.rt-reference-ui .admin-nav .nav-item,body.device-desktop.rt-reference-ui .employee-nav-group button,body .rt-settings-open{min-height:44px}
}

/* Employee review: clear account contrast and compact, readable work surfaces. */
body.rt-reference-ui .employee-side-brand{padding-right:44px!important}
body.rt-reference-ui .employee-side-brand .brand small{max-width:100%;white-space:normal;line-height:1.4;overflow-wrap:normal;letter-spacing:.025em}
body.rt-reference-ui .employee-side-close{position:absolute;top:0;right:0;width:var(--rt-control);height:var(--rt-control);min-width:0;font-size:1.125rem}
body.device-desktop.rt-reference-ui .employee-nav-scroll{overflow-x:hidden;min-width:0}
body.device-desktop.rt-reference-ui .employee-nav-group button.active::after{right:0}
body.device-desktop.rt-reference-ui .employee-side-user{background:#fff;color:var(--rt-ink);border:0;border-top:1px solid var(--rt-line);border-radius:0;padding:10px 5px 0;gap:8px}
body.device-desktop.rt-reference-ui .employee-side-user>div:last-child{min-width:0}
body.device-desktop.rt-reference-ui .employee-side-user .avatar{background:#e8f3ee;color:var(--rt-primary);width:30px;height:30px;font-size:.8125rem}
body.device-desktop.rt-reference-ui .employee-side-user b{font-size:.875rem}
body.device-desktop.rt-reference-ui .employee-side-user span{color:var(--rt-muted)}
body .employee-hero{background:#fff;color:var(--rt-ink);border:1px solid var(--rt-line);border-left:3px solid #68cda8;border-radius:var(--rt-radius);padding:12px 16px;box-shadow:none;margin:0 0 14px}
body .employee-hero h1{color:var(--rt-ink);margin:1px 0;font-weight:650}
body .employee-hero span,body .employee-hero p{color:var(--rt-muted);font-size:.8125rem}
body .employee-hero .btn{background:var(--rt-primary)}
body .employee-period-card,body [data-central-period-label]{border-radius:var(--rt-radius);box-shadow:none;padding:12px 14px}
body [data-central-period-label] p{margin:4px 0 0;font-size:.8125rem;color:var(--rt-muted)}
body .employee-home .home-kpi{padding:12px;border-radius:var(--rt-radius);box-shadow:none}
body .employee-home .home-kpi>span{font-size:.8125rem}
body .employee-home .home-kpi .kpi-note{font-size:.75rem}
body .employee-home .employee-period-summary{padding:10px 12px}
body .employee-home .employee-period-summary .result{margin:0;padding:8px 10px;font-size:.8125rem}
body .employee-home .compact-entry{padding:9px 0}
body .employee-home .card>.section-title{gap:10px;margin-bottom:6px}
body .employee-home .card>.section-title h2{margin:0}
body .password-control{grid-template-columns:minmax(0,1fr) auto;gap:8px}
body .password-control .password-toggle{width:auto;min-width:82px;min-height:var(--rt-control);padding:6px 10px;white-space:nowrap;overflow-wrap:normal;flex-shrink:0;font-size:.8125rem}
body :is(.op-overview-grid article,.employee-period-card) button,
body .table-wrap button:not(.btn):not(.smallbtn),body #openOwnVacationAccount{
  min-height:var(--rt-control);max-width:100%;padding:6px 10px;border:1px solid var(--rt-line);border-radius:5px;background:#fff;color:var(--rt-ink);font:inherit;font-size:.8125rem;line-height:1.35;cursor:pointer
}
body .employee-period-card button.active{background:#e5f5ec;border-color:#98cdb2;color:var(--rt-primary);font-weight:650}
body .employee-period-card>.toolbar{margin:8px 0}
body .hr-shell #hrMessage:empty{display:none}
body .hr-shell .hr-toolbar{gap:6px;flex-wrap:wrap}
body .hr-shell .hr-tabs{gap:6px;margin:12px 0}
body .hr-own-scope .hr-search-tools{grid-template-columns:minmax(0,1fr) auto;align-items:end}
body .hr-own-scope{max-width:640px}
body .rt-audit-value{max-width:min(480px,70vw)}
body .rt-audit-value summary{cursor:pointer;min-height:var(--rt-control);display:flex;align-items:center;color:var(--rt-primary);font-weight:600}
body .rt-audit-value pre{max-height:260px;max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem;background:#f5f8f7;padding:10px;border:1px solid var(--rt-line);border-radius:4px}
@media(min-width:761px){
  body .employee-home .empty{padding:14px 10px}
  body .employee-home .home-kpis{gap:10px;margin:12px 0}
  body .employee-home .employee-home-grid{gap:14px}
  body .op-overview-grid{gap:10px}
  body .op-overview-grid article{padding:12px;border-radius:var(--rt-radius)}
  body .op-overview-grid h3{font-size:.875rem}
  body .qm-metrics b{font-size:1.25rem}
}
@media(max-width:760px){
  body .hr-own-scope .hr-search-tools{grid-template-columns:minmax(0,1fr)}
  body .employee-hero{padding:12px}
  body .employee-hero h1{font-size:1.375rem}
  body .employee-hero .btn{margin-top:10px}
}

/* Guided capture uses normal web density and a readable, shared summary. */
body .shift-wizard .performance-form [data-field-wrap][hidden]{display:none!important}
body.shift-focus-mode #app{background:var(--rt-canvas)}
body.shift-focus-mode .shift-wizard{min-height:0;border-radius:var(--rt-radius);box-shadow:none}
body .shift-wizard .shift-focus-head{gap:12px;margin-bottom:16px}
body .shift-wizard .performance-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%;min-width:0;overflow:visible}
body .shift-wizard .performance-stepper span{padding:7px 9px;font-size:.75rem;font-weight:500;line-height:1.4;border-radius:5px;background:#eef3f0;color:var(--rt-muted);white-space:normal}
body .shift-wizard .performance-stepper span[aria-current=step]{background:#e0f3e9;color:#10593e;font-weight:700;box-shadow:inset 0 -2px #17684d}
body .shift-wizard .performance-choice-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:12px 0}
body .shift-wizard .performance-choice{min-height:44px;padding:10px 12px;border-radius:5px;font:inherit;font-size:.875rem;background:#fff;border:1px solid var(--rt-line);color:var(--rt-ink);box-shadow:none}
body .shift-wizard .performance-choice b{font-weight:600}
body .shift-wizard .performance-choice:hover,body .shift-wizard .performance-choice.active{background:#e9f6ef;border-color:#6da98d}
body .shift-wizard .performance-choice:focus-visible{outline:2px solid var(--rt-primary);outline-offset:2px}
body .shift-wizard .performance-form>.check-label{min-height:var(--rt-control);padding:8px 10px;border-radius:5px;border-color:var(--rt-line)}
body .shift-wizard .performance-blocks,body .shift-wizard .performance-block{border-radius:var(--rt-radius);border-color:var(--rt-line);padding:12px}
body .shift-wizard .performance-blocks{background:#f8faf9}
body .shift-wizard .performance-block-summary{background:#fff;color:var(--rt-ink);border:1px solid var(--rt-line);border-radius:var(--rt-radius);box-shadow:none;padding:12px}
body .shift-wizard .performance-block-summary h3{margin:0 0 10px;color:var(--rt-ink)}
body .shift-wizard .performance-block-summary :is(span,.muted){color:var(--rt-muted)}
body .shift-wizard .performance-block-summary>div{border-color:var(--rt-line);padding:7px 0}
body .shift-wizard .performance-block-summary hr{border:0;border-top:1px solid var(--rt-line)}
body .shift-wizard .performance-block-summary .warning :is(b,span){color:#7c480b}
body .shift-wizard .performance-pay-summary{margin-top:16px;padding-top:4px;border-top:1px solid var(--rt-line)}
body .shift-wizard #performancePreviewStatus{margin:12px 0}
@media(min-width:821px){
  body.shift-focus-mode #app>.wrap{padding:20px 24px 40px!important}
  body .shift-wizard .shift-focus-head>.btn{flex:0 0 auto;white-space:nowrap}
  body .shift-wizard>.btn.full,body .shift-wizard .toolbar>.btn.full{width:auto;flex:0 0 auto}
}
@media(max-width:820px){
  body .shift-wizard .performance-stepper{grid-template-columns:repeat(5,minmax(64px,1fr));overflow:auto}
  body .shift-wizard .performance-stepper span{padding:6px;font-size:.6875rem}
  body .shift-wizard .performance-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  body.shift-focus-mode .shift-wizard{border-radius:0}
}

/* One header layout: titles and controls may not compress each other. */
body.rt-reference-ui .admin-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;width:100%;border-radius:0;box-shadow:none}
body.rt-reference-ui .admin-top .shell-heading{display:flex;align-items:center;min-width:0;width:auto;gap:10px;margin:0}
body.rt-reference-ui .admin-top .shell-heading>div{min-width:0;flex:1}
body.rt-reference-ui .admin-top .shell-menu-button{width:auto;flex:0 0 auto;white-space:nowrap;min-width:44px;padding:6px 9px}
body.rt-reference-ui .admin-top #pageTitle{word-break:normal;overflow-wrap:normal;white-space:normal}
body.rt-reference-ui .admin-top .rt-tools-menu,body.rt-reference-ui .admin-top .ws-notification-button{width:auto;max-width:100%;justify-self:end;white-space:nowrap;margin:0}
body :is(#content,#adminContent,.ws-surface,.ws-dashboard,.employee-home){width:100%;min-width:0;max-width:100%;justify-self:stretch}
body :is(.qm-tabs,.performance-tabs,.doc-tabs){display:flex;flex-wrap:wrap;gap:6px;max-width:100%;min-width:0}
body :is(.qm-tabs,.performance-tabs,.doc-tabs)>button{flex:0 0 auto;width:auto;max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;min-height:var(--rt-control);padding:6px 10px;font-size:.875rem}
@media(max-width:760px){
  body.rt-reference-ui .admin-top{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:4px 0 8px;min-height:0}
  body.rt-reference-ui .admin-top .shell-heading{grid-column:1/-1;gap:8px}
  body.rt-reference-ui .admin-top #pageTitle{font-size:1.125rem;line-height:1.3}
  body.rt-reference-ui .admin-top .rt-tools-menu{justify-self:start}
  body.rt-reference-ui .admin-top .rt-tools-menu>summary{font-size:.8125rem;min-height:44px}
  body.rt-reference-ui .admin-top .ws-notification-button{min-height:44px}
  body.rt-reference-ui .admin-breadcrumb{font-size:.75rem;gap:5px;margin:0 0 10px;max-width:100%;overflow:auto}
  body :is(.employee-home .home-kpi,.cards>.card){padding:10px}
  body :is(.employee-home .home-kpi b,.cards>.card .metric){font-size:1.25rem;line-height:1.3}
  body .employee-home .home-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body :is(.qm-tabs,.performance-tabs,.doc-tabs){padding-bottom:4px}
}

/* Compact dashboard composition and readable touch controls. */
.rt-reference-ui .dash-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:12px}
.rt-reference-ui .dash-checks span{display:flex;flex-direction:column;gap:4px;font-size:13px}.rt-reference-ui .dash-checks b{font-size:22px}
.rt-reference-ui .dash-check-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--rt-line,#dce3eb)}
.rt-reference-ui .dash-check-row>span{min-width:0;overflow-wrap:anywhere}.rt-reference-ui .dash-check-row small{display:block;font-size:12px;color:#536375}.rt-reference-ui .dash-check-row button{flex:0 0 auto;width:auto}
.rt-reference-ui .dash-unknown{color:#855315}.rt-reference-ui .dash-setup-list{max-height:360px;overflow:auto}
.rt-reference-ui .dash-widget-list{margin-block:16px;padding:12px;border:1px solid #dce3eb;min-width:0}.rt-reference-ui .dash-widget-list>label{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:12px;align-items:center;padding:6px 0;margin:0}.rt-reference-ui .dash-widget-list input{width:68px}
.rt-reference-ui .dash-settings-columns,.rt-reference-ui .dash-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rt-reference-ui .dash-employee-grid>[data-employee-widget=period],.rt-reference-ui .dash-employee-grid>[data-employee-widget=kpis],.rt-reference-ui .dash-employee-grid>[data-employee-widget=summary]{grid-column:1/-1}
.rt-reference-ui .dash-settings .dash-checkbox{display:inline-flex;align-items:center;gap:8px;margin:8px 20px 8px 0}.rt-reference-ui .dash-checkbox input{width:auto}
.rt-reference-ui .settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}.rt-reference-ui .rule-card{margin:14px 0;padding:14px;border:1px solid #dce3eb;border-radius:8px}.rt-reference-ui .rule-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.rt-reference-ui .rule-head>input{flex:1;min-width:0}.rt-reference-ui .rule-head label,.rt-reference-ui .rule-sources label,.rt-reference-ui .rule-days label{display:inline-flex;align-items:center;gap:6px;width:auto}.rt-reference-ui .rule-head input[type=checkbox],.rt-reference-ui .advanced-settings input[type=checkbox]{width:auto}.rt-reference-ui .rule-head button{width:auto;flex:0 0 auto}.rt-reference-ui .advanced-settings fieldset{min-width:0}.rt-reference-ui .advanced-settings fieldset>label{display:flex;align-items:center;gap:8px}.rt-reference-ui .advanced-settings .toolbar{margin-block:12px}
@media(max-width:760px){.rt-reference-ui .dash-settings-columns,.rt-reference-ui .dash-employee-grid{grid-template-columns:minmax(0,1fr)}.rt-reference-ui .dash-checks{grid-template-columns:minmax(0,1fr)}.rt-reference-ui .dash-checks span{flex-direction:row;align-items:baseline}.rt-reference-ui .dash-checks b{font-size:18px;min-width:24px}.rt-reference-ui .rule-head{flex-wrap:wrap}.rt-reference-ui .rule-head>input{flex-basis:100%}.rt-reference-ui .dash-check-row button{min-height:44px}}

.dash-profile-data{display:grid;grid-template-columns:minmax(100px,200px) minmax(0,1fr);gap:8px 16px}.dash-profile-data dt,.dash-profile-data dd{margin:0;overflow-wrap:anywhere}

/* v221: records fit their pane; timeline geometry remains independent. */
body :is(#content,#adminContent,#operationsDialog,#drawer) .responsive-table-wrap{width:100%;min-width:0;max-width:100%;overflow:visible!important;max-height:none!important}
body table.responsive-table:not(.responsive-cards){width:100%!important;min-width:0!important;table-layout:fixed}
body table.responsive-table :is(th,td){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
body table.responsive-table :is(input,select,textarea,button,.btn,.smallbtn){min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
body table.responsive-table :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%}
body table.responsive-table.responsive-cards>tbody{gap:8px}
body table.responsive-table.responsive-cards tr{grid-template-columns:repeat(var(--record-columns,2),minmax(0,1fr));gap:8px 16px;padding:12px;border-radius:5px;box-shadow:none}
body table.responsive-table.responsive-cards :is(th,td){display:block;width:auto;padding:0!important;position:static!important;text-align:left}
body table.responsive-table.responsive-cards :is(th,td)::before{display:block;font-size:12px;font-weight:500;line-height:1.4;margin-bottom:3px;color:var(--rt-muted)}
body table.responsive-table.responsive-cards tr:not(.responsive-row-expanded)>.responsive-secondary-cell{display:block}
body table.responsive-table.responsive-cards .responsive-action-cell{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body table.responsive-table.responsive-cards .responsive-action-cell::before{flex-basis:100%;margin:0}
body table.responsive-table.responsive-cards .responsive-action-cell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){flex:1 1 180px}
body table.responsive-table.responsive-cards .responsive-summary-row{display:grid}
body table.responsive-table.responsive-cards .responsive-summary-row>*::before{display:block}
body table.responsive-table.responsive-cards .responsive-summary-row>td:only-child{grid-column:1/-1}
body table.responsive-table.responsive-cards .responsive-summary-row>td:only-child::before{display:none}
body table.responsive-table.responsive-cards.responsive-header-tools>thead{position:static!important;width:100%!important;height:auto!important;margin:0 0 8px!important;overflow:visible!important;clip:auto!important;white-space:normal!important;display:block}
body table.responsive-table.responsive-cards.responsive-header-tools>thead tr{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0;border:0}
body table.responsive-table.responsive-cards.responsive-header-tools>thead th{display:none}
body table.responsive-table.responsive-cards.responsive-header-tools>thead .responsive-header-control{display:flex;gap:6px;align-items:center}
body table.admin-calendar.responsive-cards tr{grid-template-columns:repeat(auto-fit,minmax(min(100%,64px),1fr))}
body table.admin-calendar.responsive-cards th:first-child{grid-column:1/-1}
body .rt-area-badge{background:#1767aa!important;color:#fff!important;font-size:12px;font-weight:700;line-height:1;min-width:21px;min-height:21px;padding:4px 6px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:6px}
body #nav [data-tab],body #nav [data-more]{position:relative}
body #nav .mobile-nav .rt-area-badge{position:absolute;top:1px;right:6px;font-size:11px;min-width:18px;min-height:18px;padding:3px}
body #nav .mobile-more-menu button{display:flex;align-items:center;justify-content:space-between;gap:6px}
body .rt-area-notices{width:100%;max-width:100%;min-width:0;margin:0 0 12px;padding:9px 12px;border:1px solid #dfdfe6;border-radius:5px;background:#fff;font-size:14px}
body .rt-area-notices summary{cursor:pointer;overflow-wrap:anywhere;line-height:1.5}
body .rt-area-notices article{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:9px 0;border-top:1px solid #e8edf3}
body .rt-area-notices article>div:first-child{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
body .rt-area-notices article p{margin:3px 0;color:var(--rt-muted)}
body .rt-area-notices article>div:last-child{display:flex;flex-wrap:wrap;gap:6px}
body :is(.hr-tabs,.performance-tabs,.qm-tabs,.doc-tabs){flex-wrap:wrap;overflow:visible;min-width:0;max-width:100%}

/* Retired sync overlay must never obscure an open form, including cached markup. */
body #operationsSyncNotice{display:none!important}

/* Unified notice severity; business tasks and read receipts remain independent. */
body .nav-badge[data-notice-severity="critical"],body .rt-area-badge[data-notice-severity="critical"],body .pill[data-notice-severity="critical"]{background:#c5223d!important;color:#fff!important}
body .nav-badge[data-notice-severity="warning"],body .rt-area-badge[data-notice-severity="warning"],body .pill[data-notice-severity="warning"]{background:#f3c355!important;color:#35280c!important}
body .nav-badge[data-notice-severity="info"],body .rt-area-badge[data-notice-severity="info"],body .pill[data-notice-severity="info"]{background:#1767aa!important;color:#fff!important}
body .notification[data-notice-severity],body article[data-notice-severity],body .ws-record[data-notice-severity]{border-left:3px solid #1767aa;padding-left:10px}
body .notification[data-notice-severity="critical"],body article[data-notice-severity="critical"],body .ws-record[data-notice-severity="critical"]{border-left-color:#c5223d}
body .notification[data-notice-severity="warning"],body article[data-notice-severity="warning"],body .ws-record[data-notice-severity="warning"]{border-left-color:#b77900}
body .rt-notice-status{display:inline-block;font-size:12px;font-weight:650;line-height:1.5;flex:0 0 auto;margin-right:6px}
body .rt-notice-legend{font-size:13px;line-height:1.5;color:var(--rt-muted);overflow-wrap:anywhere}
body .rt-notice-legend [data-notice-severity="critical"]{color:#a91a31}
body .rt-notice-legend [data-notice-severity="warning"]{color:#805500}
body .rt-notice-legend [data-notice-severity="info"]{color:#1767aa}
body .notification[data-notice-severity]{flex-wrap:wrap;max-width:100%;min-width:0}
body .notification[data-notice-severity]>div{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
body .notification[data-notice-severity]>button{max-width:100%;white-space:normal}
body .rt-settlement-tasks,body .rt-settlement-reasons{padding:9px 12px;border:1px solid #dec58b;border-radius:5px;background:#fffaf0;max-width:100%;min-width:0;overflow-wrap:anywhere}
body .rt-settlement-tasks h3{margin:0 0 5px;font-size:14px}
body .rt-settlement-tasks p,body .rt-settlement-reasons p{margin:4px 0;font-size:13px;line-height:1.5}

/* Dashboard metrics are keyboard-accessible links to their source records. */
.ws-hour-strip button {flex:1 1 150px;min-width:0;text-align:left;padding:12px 16px;border:1px solid var(--line,#dce5e1);border-radius:10px;background:var(--panel,#fff);color:inherit;cursor:pointer;font:inherit;}
.ws-hour-strip button span {display:block;}
.ws-hour-strip button b {display:block;font-size:1.35rem;margin-top:6px;}
.ws-hour-strip button:hover {border-color:var(--accent,#168164);}
.ws-hour-strip button:focus-visible {outline:3px solid #1674d1;outline-offset:2px;}
.ws-hour-strip button:disabled {cursor:default;opacity:.65;}

/* Compact administrative overview. Isolated from the protected timeline. */
body .rt-dash{--overview-green:#0b7257;display:grid;gap:18px;max-width:1600px;margin:auto;color:#213c37}
.rt-dash .overview-header{display:flex;justify-content:space-between;align-items:center;gap:18px}
.rt-dash .overview-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#5e786e}
body .rt-dash h2{font-size:clamp(23px,2.5vw,32px);line-height:1.2;margin:5px 0}
.rt-dash .overview-header p{margin:5px 0 0;color:#60746e;font-size:14px}
.rt-dash .overview-filters{padding:12px 16px;background:#fff;border:1px solid #dce7e1;border-radius:12px;box-shadow:0 2px 8px #183d2910}
body .rt-dash .admin-dashboard-period{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:none}
.rt-dash .admin-dashboard-period>.section-title{display:none}
.rt-dash .admin-dashboard-period h2,.rt-dash .admin-dashboard-period .muted,.rt-dash [data-central-period-label] p{display:none}
body .rt-dash .admin-dashboard-period .toolbar{margin:0;gap:4px}
body .rt-dash .admin-dashboard-period .ref-segment button{min-height:34px;padding:6px 15px;border-radius:7px;font-size:13px}
.rt-dash .admin-period-picker{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}
.rt-dash .admin-period-picker input{width:165px;min-height:34px;padding:5px 8px}
body .rt-dash [data-central-period-label]{padding:0;margin:0;border:0;box-shadow:none;background:none;font-size:12px}
.rt-dash .period-range{display:flex;align-items:center;gap:8px;margin:0}.rt-dash .period-range b{font-size:12px}
.rt-dash .overview-filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding-top:10px;margin-top:10px;border-top:1px solid #edf1ef}
.rt-dash .overview-filter-row label{font-size:12px;margin:0;min-width:180px;flex:0 1 240px}
.rt-dash .overview-filter-row select{min-height:35px;padding:6px 10px;margin-top:4px}
.rt-dash .overview-period-label{margin-left:auto;align-self:center;font-size:13px;font-weight:600;color:#436b5b}
.rt-dash .overview-attention{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rt-dash .overview-task{padding:12px 16px;border:1px solid #dfe7e2;border-left:3px solid #ba8b37;border-radius:8px;background:#fff;text-align:left;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.rt-dash .overview-task strong{font-size:20px;margin-right:5px}.rt-dash .overview-task>span{display:block;margin-top:4px;color:#6a7872;font-size:12px}
body .rt-dash .panel{margin:0;padding:20px;border:1px solid #dce7e1;border-radius:12px;box-shadow:0 2px 8px #183d2908}
.rt-dash .overview-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
body .rt-dash h3{font-size:18px;margin:0;font-weight:700}.rt-dash .overview-section-title p{font-size:12px;margin:5px 0 0;color:#6b7973}
.rt-dash .overview-money-grid,.rt-dash .overview-hour-grid,.rt-dash .overview-people{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rt-dash .overview-metric{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:17px 18px;border:1px solid #e0e8e3;border-radius:9px;background:#f7faf8;font:inherit;text-align:left;color:inherit;cursor:pointer}
.rt-dash .overview-money-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.rt-dash .overview-money-grid .overview-metric{padding:16px 12px}
.rt-dash .overview-money-grid .overview-metric strong{font-size:clamp(18px,1.65vw,27px)}
.rt-dash .overview-money-grid .overview-metric.unbilled{background:#eef4fb;border-color:#cfdfee}
.rt-dash .overview-money-grid .overview-metric:nth-child(-n+2){background:#edf6f0;border-color:#d2e6d9}
.rt-dash .overview-metric>span{font-size:12px;font-weight:600;line-height:1.4;color:#536b60;min-height:2.8em}
.rt-dash .overview-metric strong{font-size:clamp(20px,2.05vw,30px);line-height:1.25;font-weight:750;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
.rt-dash .overview-metric small{font-size:11px;color:#6a7870;margin-top:auto;line-height:1.45}.rt-dash .overview-metric.positive strong{color:#167050}.rt-dash .overview-metric.warning strong{color:#9b641a}
.rt-dash button:focus-visible,.rt-dash summary:focus-visible{outline:3px solid #2177c3;outline-offset:3px}.rt-dash .overview-metric:hover,.rt-dash .overview-task:hover{border-color:#458c6c;background:#f0f7f2}
.rt-dash .overview-finance-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:15px;font-size:12px;color:#61746b}
.rt-dash .overview-alert{border:1px solid #ecd7b0;border-radius:7px;padding:8px 12px;background:#fff8ec;color:#81511a;font:inherit;cursor:pointer}
.rt-dash .overview-footnote{color:#76847d;font-size:11px;line-height:1.55;margin:12px 0 0}
.rt-dash .overview-people .overview-metric{background:#fff;padding:13px 17px}.rt-dash .overview-people strong{font-size:24px}.rt-dash .overview-people .overview-metric>span{min-height:0}
.rt-dash .overview-text-link{border:0;padding:0;background:none;color:#126c50;font:inherit;font-weight:600;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px}
.rt-dash table{font-size:13px;width:100%}.rt-dash th{font-size:11px;letter-spacing:.015em;color:#627b6d;background:#f4f8f5}.rt-dash td,.rt-dash th{padding:11px 12px;vertical-align:middle}.rt-dash td:not(:first-child){font-variant-numeric:tabular-nums}
.rt-dash .overview-extra{padding:14px 18px;background:#f5f8f6;border:1px solid #dce7e1;border-radius:10px}.rt-dash .overview-extra>summary{cursor:pointer;font-size:14px;font-weight:600}.rt-dash .overview-extra>summary span{margin-left:6px;color:#78897e}.rt-dash .overview-extra .ws-dashboard-grid{margin-top:14px}
@media(max-width:1100px){.rt-dash .overview-money-grid,.rt-dash .overview-hour-grid,.rt-dash .overview-people{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-dash .overview-header{align-items:flex-start}}
@media(max-width:650px){body .rt-dash{gap:12px}.rt-dash .overview-header{flex-direction:column;gap:10px}.rt-dash .overview-header .toolbar{width:100%;flex-wrap:wrap}.rt-dash .overview-filters{padding:10px}.rt-dash .overview-filter-row label{min-width:0;flex:1 1 140px}.rt-dash .overview-period-label{margin-left:0}.rt-dash .overview-attention{grid-template-columns:1fr}.rt-dash .overview-task{padding:9px 12px}.rt-dash .overview-task>span{display:inline;margin-left:5px}body .rt-dash .panel{padding:14px}.rt-dash .overview-metric{padding:12px;gap:6px}.rt-dash .overview-money-grid,.rt-dash .overview-hour-grid,.rt-dash .overview-people{gap:8px}.rt-dash .overview-metric strong{font-size:21px}.rt-dash .overview-section-title{align-items:flex-start}.rt-dash .overview-section-title .btn{font-size:11px;padding:6px 9px;white-space:normal}.rt-dash .overview-extra{padding:12px}.rt-dash .admin-dashboard-period{gap:8px}.rt-dash .admin-dashboard-period .ref-segment{width:100%}}

/* Manual employee profitability workspace. */
.employee-economics{display:grid;gap:16px;max-width:1500px;margin:auto}.employee-economics>header h2{margin:0;font-size:26px}.employee-economics>header p{margin:6px 0;color:#65766d}
body .employee-economics .panel{margin:0;border-radius:12px;padding:20px}.employee-economics h3{font-size:19px;margin:0 0 10px}.employee-economics h4{margin:24px 0 8px;font-size:16px}.employee-economics p{line-height:1.5;font-size:13px}.employee-economics .econ-filter,.employee-economics .econ-upload{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.employee-economics .econ-filter label,.employee-economics .econ-upload label{flex:1 1 170px}.employee-economics #economicsStatus:empty{display:none}
.econ-metrics,.econ-hours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.econ-metrics>div,.econ-hours>div{background:#f1f7f3;border:1px solid #dce9df;border-radius:9px;padding:16px;min-width:0}.econ-metrics span,.econ-hours span{display:block;color:#577060;font-size:13px}.econ-metrics strong{display:block;font-size:clamp(24px,3vw,34px);margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.econ-metrics .econ-profit{background:#eaf6ee;color:#126443}.econ-metrics .econ-loss{background:#fff0ec;color:#9d3d29}.econ-hours{grid-template-columns:repeat(4,minmax(0,1fr))}.econ-hours b{display:block;font-size:21px;margin-top:7px}
.econ-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.employee-economics label{font-size:13px;min-width:0}.employee-economics input,.employee-economics select,.employee-economics textarea{box-sizing:border-box;min-width:0;max-width:100%}.employee-economics .econ-check{display:flex;align-items:center;gap:9px;margin:13px 0}.employee-economics .econ-check input{width:auto;min-height:auto;margin:0;flex:none}
.econ-documents article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e7eee9}.econ-documents small{display:block;margin-top:4px;color:#607369}.econ-upload{margin-top:15px}.econ-cost-row{display:grid;grid-template-columns:140px 145px minmax(160px,2fr) 125px minmax(160px,1fr) auto;gap:10px;align-items:end;border:1px solid #dce7e0;border-radius:9px;padding:12px;margin-bottom:10px}.econ-note-field{display:block;margin-top:16px}.econ-note{padding:10px 12px;background:#f4f7f5;border-left:3px solid #75a188}.employee-economics table{font-size:13px}.employee-economics td,.employee-economics th{padding:10px;vertical-align:middle}.employee-economics .table-wrap select{min-width:210px}.employee-economics button:focus-visible{outline:3px solid #297aba;outline-offset:2px}
@media(max-width:1100px){.econ-cost-row{grid-template-columns:repeat(3,minmax(0,1fr))}.econ-hours{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body .employee-economics .panel{padding:14px}.econ-metrics{grid-template-columns:1fr}.econ-metrics>div{padding:12px}.econ-metrics strong{font-size:27px}.econ-form-grid{grid-template-columns:1fr}.econ-cost-row{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-economics .section-title{flex-wrap:wrap}.econ-documents article{align-items:flex-start;flex-direction:column}.employee-economics .econ-upload label{flex-basis:100%}}
.employee-economics .econ-positive{color:#146544}.employee-economics .econ-negative{color:#a33f2d}

/* Approval configuration: one readable decision per section. */
.approval-settings{display:grid;gap:16px}
.approval-settings form{display:grid;gap:16px}
.approval-settings fieldset{min-width:0;border:1px solid var(--border,#dce3e8);border-radius:10px;padding:16px;margin:12px 0}
.approval-settings label{display:block;margin:8px 0}
.approval-settings input[type=checkbox]{width:auto;margin-right:8px}
.approval-settings #approvalLive{display:block;white-space:normal;padding:12px;background:#eaf3ff;color:#173e68}
.approval-settings fieldset:disabled{opacity:.65}
.approval-settings .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:700px){.approval-settings .settings-grid{grid-template-columns:1fr}}

/* Compact dashboard controls; management tasks occupy the space directly below. */
body .rt-dash .overview-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 12px;min-width:0}
body .rt-dash .overview-filters .admin-dashboard-period{flex:1 1 400px;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;gap:8px}
body .rt-dash .overview-filters [data-central-period-label]{min-width:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px}
body .rt-dash .overview-filters .overview-filter-row{display:flex;flex:1 1 480px;flex-wrap:wrap;align-items:end;gap:8px;margin:0;padding:0;border:0;min-width:0}
body .rt-dash .overview-filters .overview-filter-row label{display:grid;flex:1 1 150px;gap:3px;min-width:0;margin:0;font-size:12px}
body .rt-dash .overview-filters select{width:100%;min-width:0;margin:0;min-height:38px;padding:6px 8px}
body .rt-dash .overview-filters button{min-height:38px;padding:6px 10px;font-size:13px}
body .rt-dash .overview-filters .overview-period-label{display:none}
body .rt-dash #overviewManagement{min-width:0;margin-top:-8px}
body .rt-dash #overviewManagement>p{margin:0;font-size:13px}
body .rt-dash .overview-management-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body .rt-dash .overview-management-grid button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px;min-width:0;padding:12px 14px;background:#fff;border:1px solid #dce5e0;border-radius:8px;text-align:left;color:inherit;font:inherit;cursor:pointer}
body .rt-dash .overview-management-grid span{font-size:13px;overflow-wrap:anywhere}
body .rt-dash .overview-management-grid strong{font-size:26px;line-height:1.2;color:#17684d;font-variant-numeric:tabular-nums}
body .rt-dash .overview-management-grid button:nth-child(2) strong{color:#a53c39}
body .rt-dash .overview-management-grid small{grid-column:1/-1;font-size:11px;color:#60746e}
body .rt-dash .overview-management-grid button:hover{background:#f0f7f2;border-color:#458c6c}
@media(max-width:800px){body .rt-dash .overview-management-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body .rt-dash .overview-filters .admin-dashboard-period,body .rt-dash .overview-filters .overview-filter-row{flex-basis:100%}body .rt-dash .overview-filters button,body .rt-dash .overview-filters select,body .rt-dash .overview-filters input{min-height:44px}body .rt-dash .overview-management-grid{gap:8px}body .rt-dash .overview-management-grid button{padding:10px;gap:6px}body .rt-dash .overview-management-grid strong{font-size:23px}body .rt-dash #overviewManagement{margin-top:-4px}}

/* Company costs: compact summary, fluid forms and readable mobile records. */
.company-economics{width:100%;min-width:0}.company-economics header h2{overflow-wrap:anywhere}
.company-heading,.company-actions,.company-breakdown{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.company-heading{justify-content:space-between}.company-heading h3{margin:0}.company-breakdown{margin-top:16px}.company-breakdown span{padding:10px 14px;background:var(--bg,#f4f7f8);border-radius:8px}.company-breakdown b{margin-left:10px}.company-actions{margin:12px 0}.company-check{display:flex!important;align-items:flex-start;gap:10px}.company-check input{width:20px!important;min-width:20px;margin-top:3px}.company-economics details{margin-top:16px}.company-economics summary{cursor:pointer;font-weight:600}.company-records article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #dce5e4}.company-records article>div{min-width:0;overflow-wrap:anywhere}.company-records p{margin:6px 0}.company-economics .econ-metrics b{font-size:clamp(1.4rem,2.8vw,2rem)}.company-economics #companyReceiptForm{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:12px}.company-economics textarea{width:100%;min-height:80px}.company-economics .table-wrap{max-width:100%;overflow-x:auto}.company-economics .panel{min-width:0}
@media(max-width:650px){.company-records article{display:block}.company-economics .company-actions .btn{flex:1 1 auto}.company-heading{align-items:flex-start}.company-economics .econ-metrics{grid-template-columns:1fr}.company-economics .econ-filter{grid-template-columns:1fr 1fr}.company-economics .econ-filter>*{min-width:0}.company-economics .econ-filter input{width:100%}.company-economics .company-breakdown{display:grid;grid-template-columns:1fr;width:100%}}
.cost-center{width:100%;min-width:0}.cost-center .cost-item{padding:18px 0;border-top:1px solid #dce5e4;overflow-wrap:anywhere}.cost-center .cost-item-main{display:flex;gap:12px;align-items:flex-start}.cost-center .cost-select{flex:0 0 24px;display:block}.cost-center .cost-select input{width:20px;height:20px}.cost-center .cost-item p{margin:7px 0}.cost-center .cost-item-main>div{min-width:0;flex:1}.cost-center .company-actions{display:flex;gap:8px;flex-wrap:wrap}.cost-center .econ-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.cost-center .econ-filter label{flex:1 1 150px;min-width:0}.cost-center .econ-filter input,.cost-center .econ-filter select{width:100%}.cost-center details{margin:10px 0}.cost-center .notice{color:#9e361c}.cost-center .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:650px){.cost-center .company-actions .btn{flex:1 1 150px}.cost-center .econ-metrics{grid-template-columns:1fr}.cost-center .cost-item{padding:14px 0}}
