/* Work surfaces retain the retro frames, with readable text and a stable shell. */
@media screen {
:root,html[data-spheria-module]{--sph-display:Oxanium,Inter,sans-serif;--sph-font:Inter,'Segoe UI',sans-serif}
body :is(button,.btn,.button,.oc-button,.nav-link,input,select,textarea,th,td){font-family:var(--sph-font)!important;font-style:normal!important;letter-spacing:normal!important;text-shadow:none!important;line-height:1.4}
body :is(h1,h2,h3,.sph-window-title){font-family:var(--sph-display)!important;font-weight:600!important;text-shadow:none!important;letter-spacing:0!important;line-height:1.25}
body :is(button,.btn,.button,.nav-link){text-align:center}
body :is(.sph-percent,.sph-money,.sph-count-chip,.sph-kpi strong,.sph-console-clock,.sph-vital strong){font-family:var(--sph-font)!important;font-variant-numeric:tabular-nums;letter-spacing:normal!important;text-shadow:none!important}
.sph-console-chrome,.sph-console-footer,.sph-console-footer .sph-credit,.sph-module-name{font-family:Inter,sans-serif!important;letter-spacing:.01em}
.sph-console-footer .sph-console-clock{font-size:15px!important}.sph-console-footer .sph-credit{font-size:11px}
.sph-login-form h1{font-size:25px!important}.sph-login-form label{font:600 13px/1.4 Inter,sans-serif;text-transform:none}.sph-login-form>p:not(.error){font:13px/1.4 Inter,sans-serif}.sph-login-form button[type=submit]{font:600 17px Inter,sans-serif!important}.sph-login-mast p{font-size:23px}.sph-login-version{font:12px Inter,sans-serif}
.sph-oca-table :is(td,.sph-order-toggle,.sph-money,.sph-percent,.sph-status,.sph-oca-org){font:500 13px/1.5 Inter,sans-serif!important;letter-spacing:normal;text-transform:none}
.sph-oca-table .sph-order-toggle{font-weight:650!important;word-break:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start}
.sph-oca-table td>small{font:12px/1.5 Inter,sans-serif;color:#aabdce}.sph-oca-table .sph-percent{font-size:15px!important;white-space:nowrap}.sph-oca-table .sph-money{white-space:nowrap;overflow-wrap:normal}.sph-oca-table .sph-status{font-size:11px!important;display:inline-block;padding:4px 6px}
.sph-oca-table th{font:600 11px/1.35 Inter,sans-serif!important;text-transform:none;padding:7px 8px;position:static}.sph-oca-table td{padding:12px 8px}
.sph-oca-table th:nth-child(1){width:22%}.sph-oca-table th:nth-child(2){width:22%}.sph-oca-table th:nth-child(3){width:6%}.sph-oca-table th:nth-child(4){width:15%}.sph-oca-table th:nth-child(5){width:7%}.sph-oca-table th:nth-child(6){width:16%}.sph-oca-table th:nth-child(7){width:12%}
.sph-kpi>span{font:600 12px/1.4 Inter,sans-serif}.sph-kpi-line>strong{font-size:25px}.sph-kpis{margin:0 0 16px}.sph-window-title{font-size:18px;padding:12px}.sph-pagination,.sph-pagination button{font:600 13px Inter,sans-serif}.sph-pagination .sph-oca-actions button{min-width:0;text-transform:none}
.sph-console-controls button{font-family:Arial,sans-serif!important;line-height:1!important;font-size:17px!important;display:grid;place-items:center}
#appView .desktop-nav .nav-btn{font-family:Inter,sans-serif!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal;line-height:1.4!important;font-size:13px!important;position:relative;padding:10px 26px!important}
#appView .nav-btn .nav-badge{position:absolute;right:8px;top:50%;transform:translateY(-50%);margin:0}.spheria-section-label{font:600 10px Inter,sans-serif!important;letter-spacing:.1em}
/* OPERATIA keeps the same sidebar, brand, breadcrumb and content origin in every view. */
.flow-view .topbar,body[data-sph-view=cupos] .topbar{display:flex!important;min-height:48px;padding:10px 22px}
.flow-view .sidebar,body[data-sph-view=cupos] .sidebar{width:226px;padding:12px!important;background:#0b1625!important}
.flow-view .sidebar [data-brand-frame],body[data-sph-view=cupos] .sidebar [data-brand-frame]{display:block!important;width:100%!important;height:92px!important;min-height:92px!important;margin:0 0 14px!important;text-align:center}
.flow-view .sidebar .spheria-logo.brand-unified{width:100%!important;height:64px!important}.flow-view .sidebar .spheria-logo img{height:64px!important;max-width:100%!important}
.flow-view .sidebar nav,body[data-sph-view=cupos] .sidebar nav{margin:0!important;padding:0!important;gap:12px!important;border:0!important;box-shadow:none!important;background:none!important}
.flow-view .sidebar :is(.nav-link,.button),body[data-sph-view=cupos] .sidebar :is(.nav-link,.button){font:600 13px/1.4 Inter,sans-serif!important;height:48px!important;min-height:48px!important;padding:8px 12px!important;display:flex!important;align-items:center;justify-content:center;text-align:center;text-transform:none}
.flow-view .sidebar>.button,body[data-sph-view=cupos] .sidebar>.button{margin:12px 0 0!important}.flow-view .flow-legacy,body[data-sph-view=cupos] .flow-legacy{display:block!important}.flow-legacy>summary{font:12px Inter,sans-serif!important;padding:12px 4px!important}.flow-legacy:not([open])>.nav-link{display:none!important}
.flow-view .sidebar>.button,body[data-sph-view=cupos] .sidebar>.button{background:#293951!important;color:#dfeaf3!important;box-shadow:var(--retro-raised)!important;border:2px solid #040a14!important}.flow-view .sidebar-foot>span,body[data-sph-view=cupos] .sidebar-foot>span{display:block!important}
.sph-oca-sidebar-status{display:none!important}.flow-view main,body[data-sph-view=cupos] main{padding:16px 22px 48px!important;margin:0!important;max-width:none!important;width:100%}
.flow-view .global-tools,body[data-sph-view=cupos] .global-tools{display:flex!important;align-items:end;gap:12px;margin:0 0 18px!important;padding:0 0 12px!important;border-bottom:1px solid #30465e;flex-wrap:wrap}.flow-view .global-tools label{font-size:11px}.flow-view .global-tools :is(select,button){height:36px!important;min-height:36px!important;font-size:12px!important}.flow-view .filter-scope{display:none}.flow-view .filter-refresh{margin-left:auto}
.sph-page-heading,.sph-retro-oca-heading,body[data-sph-view=cupos] .sph-retro-oca-heading{height:auto!important;min-height:44px!important;margin:0 0 18px!important;width:100%!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;position:static!important;display:flex;justify-content:space-between;gap:16px;align-items:center}
.sph-page-heading h1,body[data-sph-view=cupos] .sph-retro-oca-heading h1{font-size:27px!important;text-transform:none!important;color:#cbe8ed}.sph-retro-system-version{display:none}
@media(min-width:900px){.flow-view,body[data-sph-view=cupos] .app{grid-template-columns:226px minmax(0,1fr)!important}.flow-view .workspace{min-width:0}.flow-view .sidebar-foot{margin-top:auto!important;padding:18px 4px 0!important}}
/* Orders come first; overview and telemetry no longer precede the work list. */
.sph-deadline-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.sph-deadline-filters button{min-height:42px;padding:8px 13px;font-size:13px;display:flex;align-items:center;gap:9px}.sph-deadline-filters b{font-variant-numeric:tabular-nums;font-size:16px;color:#a2e5ec}.sph-deadline-filters button[aria-pressed=true],.sph-work-view button[aria-pressed=true]{background:#23546a;color:#eafcff;outline:1px solid #72dbe4}.sph-deadline-filters .overdue b{color:#ffadb2}.sph-deadline-filters .soon b,.sph-deadline-filters .today b{color:#f7d785}
.sph-work-tools{display:flex;gap:12px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.sph-work-tools input{flex:1;min-width:240px;max-width:520px;height:40px}.sph-work-view{display:flex;gap:6px;margin-left:auto}.sph-work-view button{font-size:12px;min-height:40px}.sph-work-count{font-size:12px;color:#a8bdcf;margin:0 0 10px}
@media(min-width:900px){.sph-work-tools{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto}.sph-work-tools input{min-width:0;max-width:none;width:100%}.sph-work-tools select{width:170px;height:40px!important;min-height:40px!important;font-size:12px}.sph-work-view{margin:0}}
.sph-work-table-wrap{overflow:auto;border:1px solid #51677f;background:#101d2b}.sph-work-table{width:100%;border-collapse:collapse;font-size:13px;min-width:820px}.sph-work-table th{font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;padding:12px;background:#203247;color:#bbcedf;position:static}.sph-work-table td{padding:13px 12px;border-top:1px solid #2b4056;vertical-align:middle;line-height:1.5}.sph-work-table tr:hover td{background:#162b3b}.sph-work-table small{display:block;color:#a5bacd;font-size:11px;margin-top:3px}.sph-work-table button{background:none;box-shadow:none;border:0;min-height:30px;padding:0;color:#91e5ed;text-align:left;font-size:13px;font-weight:650;white-space:nowrap}.sph-work-table .sph-work-org{max-width:310px}.sph-work-money{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.sph-deadline{white-space:nowrap;font-size:12px;color:#acbecd}.sph-deadline.overdue{color:#ffadb2}.sph-deadline.today,.sph-deadline.soon{color:#f7d785}.sph-work-phase{white-space:nowrap;color:#b1e1df}.sph-work-progress{width:110px}.sph-work-progress .sph-segments{height:10px}.sph-work-progress small{font-size:10px}.flow-card{font-family:Inter,sans-serif!important;transform:none!important}.flow-card>strong{font-size:14px}.flow-column h2{font-size:16px!important}.flow-column header small{color:#a9bdcf}.flow-empty-column{color:#a5b8c9}.sph-empty-work{padding:30px;text-align:center;color:#b6cbdd}
/* Column arrows expose filtering and sorting without another toolbar. */
.sph-column-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.sph-column-heading button{padding:2px;min-height:28px;width:24px;flex:none;box-shadow:none;border:1px solid #5c748c;background:#263f55;font:14px Arial!important;color:#b4dce6}.sph-column-heading button.is-filtered{background:#3b748a;color:white;border-color:#9ef2ef}
.sph-column-menu{position:fixed;inset:auto;width:260px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 90px);overflow:auto;margin:0;padding:16px;border:1px solid #91aabb;background:#172a3c;color:#e6eff7;box-shadow:4px 6px 20px #0008;z-index:2001;font:13px Inter,sans-serif}.sph-column-menu::backdrop{background:transparent}.sph-column-menu h3{font:600 15px Inter,sans-serif!important;margin:0 0 12px}.sph-column-menu label{display:grid;gap:6px;margin:10px 0;font:12px Inter,sans-serif}.sph-column-menu input,.sph-column-menu select{width:100%;min-width:0;font-size:13px}.sph-column-menu .actions{display:flex;gap:8px;margin-top:14px}.sph-column-menu button{font-size:12px;min-height:36px;padding:7px 10px}.sph-active-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:8px 10px;font:12px Inter,sans-serif;color:#bbd8e1}.sph-active-filters:empty{display:none}.sph-active-filters button{min-height:28px;padding:4px 8px;font-size:11px}
#sphOcaExpanded{position:fixed;inset:34px 8px 38px;width:calc(100vw - 16px);height:calc(100dvh - 72px);max-width:none;max-height:none;margin:0;padding:0;border:0;background:#142134;overflow:hidden;box-shadow:0 0 0 2px #697e97;transform:none}#sphOcaExpanded::backdrop{background:#020712c9}#sphOcaExpanded .sph-oca-table-panel{margin:0;height:100%;width:100%;display:flex;flex-direction:column;border:0;box-shadow:none;overflow:hidden}#sphOcaExpanded .sph-oca-scroll{flex:1;min-height:0;overflow:auto}#sphOcaExpanded .sph-pagination{flex:none;margin:0}#sphOcaExpanded .sph-window-title{flex:none}#sphOcaExpanded .sph-window-collapsed>.sph-oca-scroll{display:none}
/* OFFICE header stays in a single row; the navigation owns any horizontal scroll. */
body[data-sph-app=office] .titlebar{height:76px!important;min-height:76px;display:flex!important;flex-wrap:nowrap!important;gap:12px;padding:0 12px;overflow:visible;flex-shrink:0}
body[data-sph-app=office] .title-brand{flex:0 0 242px!important;min-width:0!important;padding:0!important;gap:6px!important}.title-brand img{width:120px!important;height:48px!important}.title-brand .brand-edition{font:600 11px Inter,sans-serif!important;letter-spacing:.04em!important;max-width:none;white-space:nowrap}
body[data-sph-app=office] .topnav{display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;gap:6px!important;height:54px;overflow-x:auto;overflow-y:hidden;align-items:center;scrollbar-width:thin;padding:2px}
body[data-sph-app=office] .topnav button{flex:0 0 auto!important;display:flex!important;align-items:center;justify-content:center;text-align:center;white-space:nowrap;height:46px!important;min-height:46px!important;margin:0;padding:9px 12px!important;font-size:13px!important;gap:7px}.topnav .count{margin-left:0;font:600 10px Inter,sans-serif!important}
body[data-sph-app=office] .window-drag-region{display:none!important}body[data-sph-app=office] .window-actions{flex:0 0 auto!important;gap:6px;height:auto}.window-actions #connection{font-size:10px;margin:0 4px}.window-actions button{height:36px;min-height:36px;width:32px}.window-actions a{font:600 11px Inter,sans-serif!important;white-space:nowrap}
body[data-sph-app=office] .shell{height:calc(100% - 76px)!important}.flow-purchase-fields label{font-size:12px}.sph-spr-heading>span,.sph-spr-list>article>div:last-child,.sph-oca-financials{font:12px/1.5 Inter,sans-serif!important}
@media(max-width:1100px){body[data-sph-app=office] .title-brand{flex-basis:124px!important}.title-brand .brand-edition{display:none}.window-actions #connection{display:none!important}.sph-page-heading h1{font-size:23px!important}.sph-oca-table{min-width:870px}}
@media(max-width:899px){.flow-view .sidebar,body[data-sph-view=cupos] .sidebar{width:auto;height:auto!important;top:0;padding:10px 14px!important}.flow-view .sidebar [data-brand-frame],body[data-sph-view=cupos] .sidebar [data-brand-frame]{width:166px!important;height:70px!important;min-height:70px!important;margin:0!important}.flow-view .sidebar .spheria-logo.brand-unified{height:50px!important}.flow-view .sidebar .spheria-logo img{height:50px!important}.flow-view .sidebar:not(.open)>.button{display:none!important}.flow-view .sidebar:not(.open) nav{display:none!important}.flow-view main,body[data-sph-view=cupos] main{padding:14px!important}.flow-view .global-tools .filter-refresh{display:none}.sph-work-view{margin-left:0}.sph-work-tools input{min-width:100%;max-width:none}.sph-page-heading{flex-wrap:wrap}.sph-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sph-work-table{min-width:780px}}
@media(max-width:760px){.sph-oca-table{display:table;min-width:870px}.sph-oca-table thead{display:table-header-group}.sph-oca-table tbody{display:table-row-group}.sph-oca-table .sph-oca-main{display:table-row;border:0;padding:0}.sph-oca-table .sph-oca-main>td{display:table-cell;padding:12px 8px!important;border:1px solid #425570;background:#101d2b!important}.sph-oca-main td:before{display:none}.sph-oca-scroll{overflow:auto}.sph-oca-detail:not([hidden]){display:table-row}.sph-oca-detail>td{display:table-cell}.sph-window-title{font-size:15px}.sph-console-footer .sph-credit{display:none}.sph-deadline-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sph-deadline-filters button{justify-content:space-between;font-size:12px;padding:8px}.sph-work-tools{gap:8px}}
@media(max-width:600px){.sph-work-table-wrap{border:0;background:none;overflow:visible}.sph-work-table{display:block;min-width:0}.sph-work-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sph-work-table tbody{display:grid;gap:12px}.sph-work-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px;border:1px solid #4b637c;background:#132337}.sph-work-table td{display:block;padding:0;border:0}.sph-work-table td:nth-child(-n+2){grid-column:1/-1}.sph-work-table button{white-space:normal;font-size:14px}.sph-work-table td:nth-child(4){text-align:right}.sph-work-table .sph-work-money{font-size:12px;align-self:center}.sph-work-table small{font-size:11px}.sph-work-table .sph-work-org{max-width:none}.sph-work-table .sph-empty-work{grid-column:1/-1}.sph-work-progress{width:auto}.sph-work-table .sph-deadline{font-size:11px;white-space:normal}}
}
@media print{#sphOcaExpanded{position:static;width:auto;height:auto;border:0}.sph-column-heading button,.sph-column-menu,.sph-deadline-filters,.sph-work-tools{display:none!important}}
