/* Shared finishing layer: layout and legibility, without changing module state. */
.ui-polished{--ui-ink:#172d45;--ui-muted:#52677d;--ui-line:#dbe4ef;font-family:"Segoe UI",Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
body.ui-polished.is365-themed{--app-bg:#f3f6fb;--app-ink:#172d45;--app-muted:#52677d;--app-teal:#185fc1;--app-navy:#10233e;--app-line:#dbe4ef}
.ui-polished *, .ui-polished *::before,.ui-polished *::after{box-sizing:border-box}
.ui-polished :is(input,select,textarea,button){font-family:inherit}
.ui-polished :is(input,select,textarea){color:var(--ui-ink)}
.ui-polished :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #2469ce;outline-offset:3px}
.ui-polished :is(button,input,select){min-height:44px}
.ui-polished button:disabled{cursor:not-allowed}
.ui-polished :is(.muted,.small,.caption){color:var(--ui-muted)}
.ui-polished>header{border-bottom:1px solid #26425e}
.ui-polished>header :is(a,h1,h2,strong){color:inherit}
.ui-polished table{font-variant-numeric:tabular-nums}
.ui-polished table th{font-weight:650}
.ui-polished tbody tr:not(.warning-row):not(.negative-row):hover{background:#f2f7fc}
.ui-polished :is(.card,section,article){min-width:0}
.ui-polished :is(#status,#report-status){overflow-wrap:anywhere}

/* Five aligned shortcuts leave the work summary visible on a desktop. */
.dashboard-live.ui-polished .i360-home-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}
.dashboard-live.ui-polished .i360-home-actions a{align-items:flex-start;min-height:136px;padding:18px;gap:8px;border-radius:16px;text-align:left;box-shadow:0 3px 12px #17314e07}
.dashboard-live.ui-polished .i360-home-actions :is(strong,small){align-self:auto;margin:0}
.dashboard-live.ui-polished .i360-home-actions strong{font-size:15px;line-height:1.4}
.dashboard-live.ui-polished .i360-home-actions small{font-size:12px;line-height:1.5;color:#4b6079}
.dashboard-live.ui-polished .i360-home-actions a>span{width:40px;height:40px;font-size:23px;border-radius:11px}
.dashboard-live.ui-polished .i360-home-actions svg{width:25px;height:25px}
.dashboard-live.ui-polished .workspace-intro h2{font-size:clamp(25px,2.2vw,33px)}
.dashboard-live.ui-polished .workspace-topbar{min-height:72px}
.dashboard-live.ui-polished .stat{padding:20px}
.dashboard-live.ui-polished .stat strong{font-size:36px}
.dashboard-live.ui-polished .workspace-main{padding-top:24px}
.dashboard-live.ui-polished .workspace-nav a,.dashboard-live.ui-polished .workspace-menu-group summary{line-height:1.6}
.dashboard-live.ui-polished .workspace-status{color:#52677d}
.dashboard-live.ui-polished .workspace-menu-status,.dashboard-live.ui-polished .workspace-sidebar small{color:#b1c3d6}

/* Reports use the same readable, restrained institutional style. */
.management-report.ui-polished{background:#f3f6fb}
.management-report.ui-polished>header{background:#10233e;padding:20px max(20px,calc((100vw - 1168px)/2))}
.management-report.ui-polished h1{font-size:clamp(25px,3vw,32px);letter-spacing:-.6px;margin-bottom:6px}
.management-report.ui-polished main>p{color:var(--ui-muted)}
.management-report.ui-polished .card,.management-report.ui-polished section{border-radius:16px;border-color:var(--ui-line)}
.management-report.ui-polished .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.management-report.ui-polished .cards .card{border-top:3px solid #2b6dcc;padding:20px}
.management-report.ui-polished .cards .card:nth-child(2){border-top-color:#237e67}
.management-report.ui-polished .cards .card:nth-child(4){border-top-color:#a56a16}
.management-report.ui-polished .cards .card span{font-size:14px;color:var(--ui-muted)}
.management-report.ui-polished .cards .card b{font-size:34px;line-height:1.25;color:var(--ui-ink);font-variant-numeric:tabular-nums}
.management-report.ui-polished :is(button,.action){background:#185fc1;color:white}
.management-report.ui-polished .filters label:first-child{flex:1;min-width:210px}
.management-report.ui-polished .actions button:not(:first-child){background:#edf3fc;color:#194b89;border-color:#cad9ed}
.management-report.ui-polished :is(th,td){padding:13px 12px}
.management-report.ui-polished #status{padding:13px 16px;border:1px solid #d9e5f3;background:#eaf2fc;border-radius:12px;color:#294c72}
.management-report.ui-polished #status.warn{background:#fff2e3;border-color:#eacdab;color:#894a11}

.ui-polished #request-form :is(input,select,textarea){border-color:#b8c9db}
.ui-polished #material-cart .material-line span{min-width:0;overflow-wrap:anywhere}
.ui-polished #material-cart .material-line button{flex:none}
.ui-polished #requests .device{border-radius:14px}
.ui-polished #status:empty{display:none}
.tender-page.ui-polished{background:#f3f6fb}
.tender-page.ui-polished>header{background:#10233e}
.tender-page.ui-polished :is(input,select,textarea){border-color:#b8c9db}
.tender-page.ui-polished .layout>aside{background:white!important;color:var(--ui-ink);box-shadow:0 4px 18px #172d4507}
.tender-page.ui-polished #list button{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1120px){.dashboard-live.ui-polished .i360-home-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.dashboard-live.ui-polished .i360-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .dashboard-live.ui-polished .i360-home-actions a{min-height:124px;padding:14px;gap:7px}
 .dashboard-live.ui-polished .i360-home-actions strong{font-size:14px}
 .dashboard-live.ui-polished .i360-home-actions small{font-size:12px}
 .dashboard-live.ui-polished .workspace-intro{align-items:flex-start}
 .management-report.ui-polished .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .management-report.ui-polished .cards .card{padding:15px;margin-bottom:4px}
 .management-report.ui-polished .cards .card span{font-size:13px}
 .management-report.ui-polished .cards .card b{font-size:29px}
 .management-report.ui-polished .actions button{flex:1 1 130px}
 .management-report.ui-polished .filters label:first-child{min-width:0}
 .ui-polished>header{gap:12px;flex-wrap:wrap}
 .tender-page.ui-polished>header{padding:20px 16px}
 .tender-page.ui-polished h1{font-size:26px}
}
@media(prefers-reduced-motion:reduce){.ui-polished *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.dashboard-live.ui-polished .i360-home-actions a:hover{transform:none}}
@media print{.management-report.ui-polished #status{background:white;border:0;padding:0}.ui-polished tbody tr:hover{background:transparent}}
/* Header actions retain a readable foreground on their light button surfaces. */
body.ui-polished>header :is(nav a,.inventory-action-links a){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #bfd3e3;border-radius:8px;background:#edf4fa;color:#234e6d;line-height:1.5;text-decoration:none}
body.ui-polished>header :is(nav a,.inventory-action-links a):hover{background:#dcecf8;color:#173d5a}
body.ui-polished>header nav{display:flex;flex-wrap:wrap;gap:8px}
