/* PRO MENTANO G5.7 — Workspace Refresh. Presentation only; tenant, roles and REST untouched.
   Layered after premium-ui.css to preserve the existing G2/G4/G5 contracts. */
:root{--pmw-ink:#23374a;--pmw-muted:#607481;--pmw-turq:#117f7e;--pmw-border:#e2e9ec;--pmw-bg:#f4f7f8;--pmw-radius:13px;--pmw-shadow:0 3px 18px rgba(28,53,70,.035)}
body.pmw-page{background:#f3f6f7;color:#23394b;font-size:14px}
.pmw-app{min-height:100vh;line-height:1.5}
.pmw-app [hidden]{display:none!important}
.pmw-app button,.pmw-app select,.pmw-app input,.pmw-app textarea{font-family:inherit}
/* Navigation: more breathing room, denser rows, consistent newsletter-style visual hierarchy. */
.pmw-sidebar{width:250px;padding:20px 13px 19px;background:#172f41;color:#d9e5eb;border-right:1px solid #102637;box-shadow:none;z-index:50}
.pmw-sidebar__brand{padding:4px 13px 20px}
.pmw-sidebar__brand img{width:185px;max-width:100%;filter:brightness(0) invert(1)}
.pmw-sidebar__caption{color:#849da9;font-size:9px;letter-spacing:1.65px;padding:3px 12px 8px}
.pmw-sidebar__context{margin:0 1px 17px;background:#233e4f;border:1px solid #344f5f;border-radius:11px;padding:12px;gap:10px}
.pmw-sidebar__avatar{width:37px;height:37px;border-radius:10px;background:#1e8b89;color:#fff;font-size:16px}
.pmw-sidebar__context b{font-size:12.5px;font-weight:750;line-height:1.3}
.pmw-sidebar__context small{font-size:10.5px;margin-top:4px;color:#b8cad2}
.pmw-nav{gap:2px}
.pmw-nav__label{padding:20px 12px 6px;color:#8ba5b2;letter-spacing:1.35px;font-size:9px}
.pmw-nav__label--first{padding-top:5px}
.pmw-nav__item{min-height:40px;padding:9px 12px;border-radius:8px;font-size:12.4px;font-weight:570;gap:12px;color:#bdced6}
.pmw-nav__item svg{height:17px;width:17px;opacity:.85}
.pmw-nav__item:hover:not(.is-disabled){background:#29485b;color:white}
.pmw-nav__item.is-active{color:#fff;background:#2c5160;font-weight:710;box-shadow:inset 3px 0 #57cbbb}
.pmw-sidebar__bottom{padding:22px 11px 6px}
.pmw-sidebar__release{font-size:11px}
.pmw-sidebar__release small{font-size:10px}
.pmw-sidebar__bottom>a{font-size:12px;margin-top:18px}
.pmw-mainwrap{margin-left:250px;width:calc(100% - 250px);min-width:0}
/* Compact topbar with a real, authorized company switcher for multi-membership users. */
.pmw-topbar{height:70px;min-height:70px;padding:0 35px;background:#fff;border-color:#e5ebed;box-shadow:0 1px 1px rgba(14,42,60,.02);gap:15px}
.pmw-topbar__left,.pmw-topbar__right{display:flex;align-items:center;gap:17px;min-width:0}
.pmw-topbar__left{flex:1}
.pmw-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap;color:#617481;font-size:12.5px}
.pmw-breadcrumb__root{font-weight:550}
.pmw-breadcrumb__slash{color:#b2c1c8}
.pmw-breadcrumb strong{color:#203c4d;font-weight:740;overflow:hidden;text-overflow:ellipsis}
.pmw-topbar__company,.pmw-company-select{display:inline-flex;gap:9px;align-items:center;min-width:0;border:1px solid #e2e9ec;border-radius:9px;padding:9px 12px;background:#f9fbfb;color:#3c5665;max-width:285px;font-size:12px;font-weight:670;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmw-topbar__company svg{width:16px;height:16px;color:#137c79}
.pmw-company-select{padding:0}
.pmw-company-select select{max-width:250px;min-height:39px;padding:0 12px;background:transparent;border:0;color:#294b5b;font-size:12px;font-weight:680;cursor:pointer}
.pmw-topbar__user{display:flex;flex-direction:column;gap:0;text-align:right;line-height:1.4;font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmw-topbar__user small{display:block;font-size:10px;color:#80939c;font-weight:540}
.pmw-topbar__account{display:grid;place-items:center;width:37px;height:37px;flex-shrink:0;border:1px solid #e0e8eb;background:#fff;border-radius:9px;color:#567181;cursor:pointer}
.pmw-topbar__account:hover{background:#f1f8f7;color:#0f7e7b}
.pmw-topbar__account svg{width:17px;height:17px}
/* Unified canvas — full width on desktop, no artificial 1800px cap. */
.pmw-content{width:100%;max-width:none;margin:0;padding:31px clamp(22px,2.7vw,46px) 30px}
.pmw-banner{background:#fffaf0;border-color:#eee4cf;color:#745f3c;padding:10px 14px;margin-bottom:27px;border-radius:9px;font-size:11.5px}
.pmw-banner svg{width:15px;height:15px}
.pmw-banner>span{font-size:10px;color:#947d58;letter-spacing:.3px}
.pmw-panel__head{align-items:center;gap:20px;margin-bottom:22px;min-height:76px}
.pmw-panel__head h1{margin:5px 0 5px;letter-spacing:-.65px;font-size:clamp(23px,2.1vw,28px);font-weight:760;line-height:1.2;color:#213c4b}
.pmw-panel__head p{max-width:780px;font-size:13.5px;line-height:1.6;color:#667d89}
.pmw-panel__head strong{color:#284d5a}
.pmw-overline{font-size:9.5px;letter-spacing:1.4px;color:#187e7a;font-weight:820}
.pmw-date-pill{background:#fff;border:1px solid #e2e9ec;border-radius:9px;padding:9px 13px;font-size:12px;font-weight:660;display:flex;align-items:center;gap:9px;color:#547281;white-space:nowrap}
.pmw-date-pill svg{width:16px;height:16px;color:#18817d}
.pmw-button{min-height:41px;padding:10px 16px;font-size:12px;font-weight:735;border-radius:9px;background:#176c6d;box-shadow:none}
.pmw-button:hover:not(:disabled){background:#0f595b}
.pmw-button--create{background:#167a77!important;border:1px solid #147873!important;color:#fff!important;min-height:41px}
.pmw-button--create:hover{background:#0d635f!important}
.pmw-button:disabled{opacity:.54}
/* Quick actions live only where authorization allows. */
.pmw-quickbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;border:1px solid #dfebec;background:linear-gradient(105deg,#f5faf9 0%,#fff 70%);padding:17px 18px;border-radius:12px;margin-bottom:20px}
.pmw-quickbar__intro{display:flex;align-items:center;gap:12px;min-width:220px}
.pmw-quickbar__symbol{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#def0ed;color:#0d7773}
.pmw-quickbar__symbol svg{width:19px;height:19px}
.pmw-quickbar__intro strong,.pmw-quickbar__intro small{display:block}
.pmw-quickbar__intro strong{font-size:13px;color:#294859}
.pmw-quickbar__intro small{font-size:11.5px;color:#788c94;margin-top:2px}
.pmw-quickbar__actions{display:flex;gap:9px;flex-wrap:wrap}
.pmw-quickbar__action{border:1px solid #dce9ea;background:#fff;border-radius:8px;padding:10px 13px;color:#275566;font-size:12px;font-weight:720;cursor:pointer;min-height:40px}
.pmw-quickbar__action:hover{background:#edf7f5}
.pmw-quickbar__action--primary{color:#fff;background:#177977;border-color:#177977}
.pmw-quickbar__action--primary:hover{background:#11615d}
/* Overview metrics: equal visual weight, usable on wide screens and mobile. */
.pmw-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}
.pmw-metric{min-height:135px;border-radius:11px;padding:19px 20px;border:1px solid #e2e9ec;box-shadow:var(--pmw-shadow)}
.pmw-metric>span{font-size:12px;line-height:1.35;color:#607681;max-width:calc(100% - 35px)}
.pmw-metric strong{font-size:32px;line-height:1.25;margin:16px 0 6px;letter-spacing:-.7px;color:#1e3f52}
.pmw-metric small{font-size:10.5px;color:#8a9da7}
.pmw-metric i{background:#eaf6f3;color:#0f8a83;top:15px;right:15px;width:36px;height:36px;padding:9px}
.pmw-metric i svg{width:17px;height:17px}
.pmw-overview-grid{gap:16px}
/* Registries are full width. Editors open on demand and remain in existing forms. */
.pmw-panel[data-pmw-panel="customers"] .pmw-overview-grid,
.pmw-panel[data-pmw-panel="locations"] .pmw-overview-grid,
.pmw-panel[data-pmw-panel="assets"] .pmw-overview-grid,
.pmw-panel[data-pmw-panel="interventions"] .pmw-overview-grid,
.pmw-panel[data-pmw-panel="technicians"] .pmw-overview-grid{grid-template-columns:minmax(0,1fr)}
.pmw-card{border-radius:12px;padding:23px 24px;border-color:#e1e8eb;box-shadow:var(--pmw-shadow)}
.pmw-card h2{font-size:16px;font-weight:760;color:#253e50;letter-spacing:-.22px}
.pmw-card__heading{margin-bottom:17px}
.pmw-counter{font-size:11px;font-weight:670;color:#5d7785;border-radius:7px;padding:7px 11px;background:#f2f6f7}
.pmw-overview-grid--g5>.pmw-card:last-child{max-width:none;width:auto}
.pmw-editor-card{border:1px solid #d3e5e3!important;box-shadow:0 8px 26px rgba(28,75,75,.055);scroll-margin-top:24px}
.pmw-editor-card h2{margin-bottom:10px}
.pmw-editor-card .pmw-form{max-width:910px;gap:10px;margin-top:19px}
.pmw-editor-card .pmw-form .pmw-form__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.pmw-editor-card .pmw-muted{font-size:12.5px;color:#647d86}
.pmw-editor-close{border:1px solid #dbe8e7;background:#f4faf9;color:#28716f;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:11.5px;font-weight:700;margin:2px 0 8px}
.pmw-editor-close:hover{background:#eaf5f2}
/* Lists follow their own full width; overflow is limited to the table area. */
.pmw-tablewrap{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.pmw-table{font-size:12.5px;min-width:620px}
.pmw-table th{font-size:10px;padding:12px 14px;letter-spacing:.58px;color:#71828c;background:#f8fafb;white-space:nowrap}
.pmw-table td{padding:15px 14px;font-size:12.8px;color:#466372;vertical-align:middle}
.pmw-table td b,.pmw-table td strong{color:#2e4b5c;font-weight:720}
.pmw-table tbody tr:hover{background:#f7fbfa}
.pmw-table tbody tr[hidden]{display:none!important}
.pmw-status{padding:6px 9px;font-size:10.5px;border-radius:7px}
.pmw-inline-action{font-size:11.8px;min-height:35px;padding:8px 11px;white-space:nowrap;border-radius:8px}
.pmw-register-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 0 16px;flex-wrap:wrap}
.pmw-register-search{width:min(345px,100%);min-height:39px;border:1px solid #dce6ea;border-radius:9px;background:#fbfdfd;padding:9px 13px 9px 15px;color:#294e5e;font-size:12.5px}
.pmw-register-search:focus{border-color:#2a9c92;outline:3px solid #d5efeb}
.pmw-register-results{font-size:11.5px;font-weight:600;color:#7b919b}
.pmw-register-empty{font-size:12.5px;color:#6d8490;padding:19px;border:1px dashed #dfebec;border-radius:9px}
.pmw-card--help{background:#eaf5f3;color:#2d5361;border:1px solid #d6e8e5;box-shadow:none}
.pmw-card--help h2{font-size:21px;margin:10px 0;color:#2a4d5b}
.pmw-card--help p{color:#5f7e88;font-size:13px}
.pmw-steps{border-color:#d9e8e7}
.pmw-steps span{color:#426673}
.pmw-steps b{background:#d4eae7;color:#127873}
/* Typography and input rhythm */
.pmw-form label{font-size:12.5px;color:#34556a;font-weight:730}
.pmw-form input,.pmw-form select,.pmw-form textarea{font-size:13.5px;border-radius:9px;min-height:43px;padding:11px 13px;background:#fff}
.pmw-form textarea{min-height:86px;resize:vertical}
.pmw-form__cols>div{min-width:0}
.pmw-date-trigger{height:35px;width:37px}
.pmw-g5-register-actions{gap:9px}
.pmw-g5-register-actions .pmw-g5-new[hidden]{display:none!important}
.pmw-placeholder{padding:22px;font-size:13px;border-color:#d8e7e7}
.pmw-account-card{max-width:none}
.pmw-flash{font-size:12.5px}
.pmw-content__footer{margin-top:32px;font-size:10.8px}
.pmw-mobile-backdrop{display:none}
@media(max-width:1350px){
  .pmw-content{padding:26px 24px 26px}
  .pmw-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pmw-topbar{padding:0 24px}
  .pmw-topbar__company{max-width:185px}
}
@media(max-width:1040px){
  .pmw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pmw-topbar__user{display:none}
  .pmw-topbar__company{max-width:155px}
}
@media(max-width:900px){
  .pmw-mainwrap{width:100%;margin-left:0}
  .pmw-sidebar{width:min(290px,83vw);max-height:100dvh;box-shadow:18px 0 40px rgba(7,27,40,.23)}
  .pmw-mobile-backdrop:not([hidden]){position:fixed;inset:0;display:block;background:rgba(15,39,53,.46);z-index:40}
  .pmw-mobile-menu{display:block;border:1px solid #e2e9ec;border-radius:8px;min-width:38px;height:38px;padding:4px;background:#f7fafb;color:#294b5a}
  .pmw-content{padding:25px 22px}
}
@media(max-width:600px){
  .pmw-topbar{height:63px;min-height:63px;padding:0 13px}
  .pmw-topbar__left,.pmw-topbar__right{gap:8px}
  .pmw-topbar__company{max-width:120px;font-size:10px;padding:9px 8px}
  .pmw-topbar__company svg{display:none}
  .pmw-company-select{max-width:135px}
  .pmw-company-select select{max-width:132px;font-size:11px}
  .pmw-topbar__account{width:35px;height:35px}
  .pmw-breadcrumb{font-size:11.5px;gap:7px}
  .pmw-breadcrumb__root,.pmw-breadcrumb__slash{display:none}
  .pmw-content{padding:17px 13px 22px}
  .pmw-banner{align-items:flex-start;margin-bottom:20px;padding:11px 12px}
  .pmw-banner>span{display:none}
  .pmw-panel__head{display:flex;align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}
  .pmw-panel__head h1{font-size:23px}
  .pmw-panel__head p{font-size:12.7px}
  .pmw-panel__head .pmw-button{margin:0;width:100%}
  .pmw-date-pill{font-size:11px;padding:7px 11px}
  .pmw-quickbar{padding:13px;gap:15px}
  .pmw-quickbar__intro{min-width:0}
  .pmw-quickbar__actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .pmw-quickbar__action{font-size:11px;padding:9px 7px;min-width:0}
  .pmw-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .pmw-metric{padding:15px 14px;min-height:125px}
  .pmw-metric>span{font-size:11px}
  .pmw-metric strong{font-size:28px;margin:17px 0 5px}
  .pmw-metric small{font-size:10px}
  .pmw-metric i{position:absolute;right:11px;top:11px;padding:7px;width:31px;height:31px}
  .pmw-card{padding:17px 15px}
  .pmw-card__heading{align-items:flex-start;gap:10px;flex-wrap:wrap}
  .pmw-register-search{width:100%}
  .pmw-register-tools{align-items:stretch}
  .pmw-editor-card .pmw-form .pmw-form__cols{grid-template-columns:minmax(0,1fr);gap:10px}
  .pmw-g5-register-actions{justify-content:flex-start}
  .pmw-content__footer{gap:10px;flex-wrap:wrap}
}
@media(max-width:360px){
  .pmw-topbar__company{display:none}
  .pmw-breadcrumb{font-size:11px}
  .pmw-metric{min-height:122px}
  .pmw-card{padding:16px 12px}
}
@media(prefers-reduced-motion:reduce){.pmw-app *{scroll-behavior:auto!important;transition:none!important}}
/* Self-contained accessible-name hiding: WP's screen-reader-text styles do not load in the standalone shell. */
.pmw-company-select .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){.pmw-metrics>.pmw-metric:last-child:nth-child(odd){grid-column:span 2}}
