
/* RC168 source: rc155-magazzino-theme.css */
/*
 * PERINOTTO APP2 RC155 — tema unico ispirato al Gestionale Magazzino Perinotto.
 * Skin visuale: nessuna dipendenza JavaScript, nessuna modifica a markup interattivo,
 * autorizzazioni, campi, gestione documenti o logica applicativa.
 * Il tema riguarda il gestionale a schermo; modelli di stampa e PDF sono esclusi.
 */
body.pwh-theme {
  --bg:#0b1220; --surface:#121d2e; --surface2:#172438;
  --txt:#e8eef7; --muted:#91a2b9; --line:#263750;
  --brand:#3979d8; --brand2:#3979d8; --brandSoft:#192941;
  --ok:#25b77a; --warn:#e5a33b; --bad:#d94b55;
  --shadow:0 12px 35px rgba(0,0,0,.13); --radius:13px;
  --pwh-bg:#0b1220;--pwh-sidebar:#0e1929;--pwh-panel:#121d2e;
  --pwh-panel2:#172438;--pwh-panel3:#1c2b42;--pwh-line:#263750;
  --pwh-ink:#e8eef7;--pwh-muted:#91a2b9;--pwh-blue:#3979d8;
  --pwh-green:#25b77a;--pwh-red:#d94b55;--pwh-amber:#e5a33b;
  color-scheme:dark;
  background:#0b1220!important;color:#e8eef7!important;
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;
}
html:has(body.pwh-theme){background:#0b1220!important;color-scheme:dark}
body.pwh-theme .layout{background:#0b1220!important}
body.pwh-theme .main{background:transparent!important;color:#e8eef7!important}
body.pwh-theme :is(h1,h2,h3,h4,h5,h6){color:#eef3fa}
body.pwh-theme :is(.muted,.hint,small){color:#91a2b9!important}
body.pwh-theme a:not(.btn):not(.ux-nav-link):not(.mobile-bottom-item){color:#91bdf8}
body.pwh-theme a:not(.btn):hover{color:#c5dcff}
body.pwh-theme hr{border-color:#2b3d57}
/* Navigazione verticale: stessa architettura del magazzino originale. */
body.pwh-theme .side.ux-side{
  background:#0e1929!important;color:#aebdd0!important;
  border-right:1px solid #203047!important;box-shadow:none!important;
  backdrop-filter:none!important;padding:24px 15px 20px!important;
}
body.pwh-theme .side .brand{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;gap:5px!important;
  margin:0 3px 21px!important;padding:7px 7px 18px!important;
  background:transparent!important;border:0!important;border-bottom:1px solid #203047!important;
  box-shadow:none!important;border-radius:0!important;height:auto!important;min-height:0!important;
}
body.pwh-theme .side .brand-logo{
  background:transparent!important;padding:0!important;border-radius:0!important;
  width:100%!important;max-height:62px!important;object-fit:contain!important;
  object-position:left center!important;filter:none!important;
}
body.pwh-theme .side .ux-brand-sub{
  color:#8396b0!important;font-size:10px!important;font-weight:800!important;
  letter-spacing:1.4px!important;text-align:left!important;text-transform:uppercase!important;
}
body.pwh-theme .side .ux-nav-group{margin:16px 0 20px!important}
body.pwh-theme .side .ux-nav-title{
  color:#71849d!important;font-size:10px!important;font-weight:800!important;
  letter-spacing:1.5px!important;text-transform:uppercase!important;
  padding:0 10px 10px!important;
}
body.pwh-theme .side a.ux-nav-link{
  color:#aebdd0!important;background:transparent!important;
  border:1px solid transparent!important;box-shadow:none!important;
  border-radius:9px!important;padding:11px 12px!important;
  font-size:13px!important;margin:3px 0!important;transform:none!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease!important;
}
body.pwh-theme .side a.ux-nav-link b{font-size:13px!important;font-weight:650!important;color:inherit!important}
body.pwh-theme .side a.ux-nav-link .ux-nav-ico{
  display:grid!important;place-items:center!important;width:25px!important;
  min-width:25px!important;height:25px!important;background:transparent!important;
  border:0!important;border-radius:7px!important;color:#b3c5df!important;font-size:17px!important;
}
body.pwh-theme .side a.ux-nav-link:hover{
  background:#19283d!important;color:#fff!important;border-color:#263a54!important;
}
body.pwh-theme .side a.ux-nav-link.active{
  color:#fff!important;background:linear-gradient(100deg,#263b59,#1a2b43)!important;
  border-color:#344c6c!important;box-shadow:inset 3px 0 #e25360!important;
}
body.pwh-theme .side a.ux-nav-link.active .ux-nav-ico{color:#fff!important;background:transparent!important}
body.pwh-theme .side .side-footer{
  background:transparent!important;color:#a3b3c9!important;
  border:0!important;border-top:1px solid #203047!important;
  border-radius:0!important;box-shadow:none!important;
  margin:20px 5px 0!important;padding:16px 7px 8px!important;
}
body.pwh-theme .side .side-footer b{color:#d9e7f9}
body.pwh-theme .side .side-footer span{color:#7588a1!important}
/* Testata: etichette, barra di ricerca, profilo. */
body.pwh-theme .main .topbar{
  background:#0b1220!important;color:#dce8f6!important;
  border:0!important;border-bottom:1px solid #263750!important;
  border-radius:0!important;box-shadow:none!important;
  backdrop-filter:none!important;padding:13px 0!important;
  margin:0 0 19px!important;
}
body.pwh-theme .global-search{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
body.pwh-theme .global-search input,
body.pwh-theme .main .topbar input{
  background:#101d30!important;color:#edf3fb!important;
  border:1px solid #30435d!important;border-radius:8px!important;
  box-shadow:none!important;min-height:41px!important;
}
body.pwh-theme .global-search input::placeholder,
body.pwh-theme input::placeholder,body.pwh-theme textarea::placeholder{color:#8498b1!important;opacity:1}
body.pwh-theme .userbox{
  color:#dce8f6!important;background:#111d2d!important;
  border:1px solid #263750!important;border-radius:25px!important;
  padding:7px 13px!important;box-shadow:none!important;
}
body.pwh-theme .userbox b{color:#f0f4fb}
body.pwh-theme .userbox small{color:#91a2b9!important}
body.pwh-theme .bell{
  background:#182c41!important;color:#9abef5!important;
  border:1px solid #304561!important;border-radius:50%!important;
}
body.pwh-theme .page-head{
  border:0!important;border-bottom:1px solid #263750!important;
  padding:0 0 18px!important;margin:16px 0 22px!important;
}
body.pwh-theme .page-head h1{
  background:none!important;-webkit-text-fill-color:#f1f5fb!important;
  color:#f1f5fb!important;font-size:clamp(23px,2.5vw,31px)!important;
  font-weight:750!important;letter-spacing:-.7px!important;
}
body.pwh-theme .page-head p{color:#91a2b9!important;font-size:12px!important}
body.pwh-theme .date-pill{
  color:#b8c8dd!important;background:#111d2d!important;
  border:1px solid #263750!important;border-radius:25px!important;
  box-shadow:none!important;
}
/* Componenti e contenitori, senza alterarne disposizione o eventi. */
body.pwh-theme :is(.card,.panel,.box,.hero,.dash-card,.filter-form,.totals-box,.attachment-card,.reset-card,.account-logout-card,.rc67-panel,.rc67-wide,.rc67-kpi-card,.rc67-hero-metric){
  color:#dce7f4!important;background:#121d2e!important;
  border:1px solid #263750!important;border-radius:13px!important;
  box-shadow:0 12px 35px rgba(0,0,0,.12)!important;
  backdrop-filter:none!important;
}
body.pwh-theme .card{border-top:2px solid #3a6eae!important}
body.pwh-theme :is(.card,.panel,.box,.hero,.dash-card,.rc67-panel,.rc67-wide) :is(h1,h2,h3,h4){color:#eef3fa!important}
body.pwh-theme .hero{background:linear-gradient(110deg,#15243a,#111e2f)!important;border-left:4px solid #3979d8!important}
body.pwh-theme .dash-card{color:#e4edf8!important}
body.pwh-theme .dash-card:hover{border-color:#476993!important;box-shadow:0 15px 32px rgba(0,0,0,.22)!important}
body.pwh-theme .dash-icon,
body.pwh-theme .rc67-kpi-icon{
  background:#192941!important;color:#b6d4ff!important;border:1px solid #2a3d59!important;
  box-shadow:none!important;border-radius:12px!important;
}
body.pwh-theme :is(.stat,.rc67-kpi-card b){color:#f0f5fc!important;-webkit-text-fill-color:#f0f5fc!important}
/* Form, filtri, checkbox. Non si cambiano gli input name/id/type. */
body.pwh-theme :is(input,select,textarea){
  background:#0d1828!important;color:#edf3fb!important;
  border:1px solid #30435d!important;border-radius:7px!important;
  box-shadow:none!important;outline:none;
}
body.pwh-theme :is(input,select,textarea):focus{
  outline:none!important;border-color:#578bd6!important;
  box-shadow:0 0 0 3px rgba(57,121,216,.16)!important;
}
body.pwh-theme input:disabled,body.pwh-theme select:disabled,body.pwh-theme textarea:disabled{opacity:.57!important;cursor:not-allowed}
body.pwh-theme :is(input[type="checkbox"],input[type="radio"]){accent-color:#3979d8!important;box-shadow:none!important}
body.pwh-theme :is(input[type="file"],input[type="date"]){color-scheme:dark}
body.pwh-theme option{background:#111d2d;color:#edf3fb}
body.pwh-theme :is(.field label,.form-group label,label){color:#a9bad0!important;font-size:11px!important;font-weight:700!important;letter-spacing:.3px!important}
body.pwh-theme :is(.part-row,.rc33-part-row,.totals-box,.attachment-grid label,.preview-item,.attachment-card){
  background:#172438!important;color:#dbe7f5!important;border-color:#30425b!important;
}
body.pwh-theme .row-total{color:#f0f5fc!important}
/* Pulsanti standard e specifici; stati semantici conservati. */
body.pwh-theme :is(.btn,button.btn,a.btn,input[type="submit"].btn,.install-app-btn){
  color:#fff!important;background:#245b9b!important;border:1px solid #356daf!important;
  border-radius:8px!important;box-shadow:none!important;
  font-weight:700!important;transition:filter .18s ease,background .18s ease!important;
}
body.pwh-theme :is(.btn,button.btn,a.btn):hover{background:#2f72bf!important;filter:brightness(1.08);transform:none!important}
body.pwh-theme :is(.btn.green,button.btn.green,a.btn.green){
  color:#fff!important;background:linear-gradient(100deg,#16865d,#20a875)!important;
  border-color:#248f69!important;
}
body.pwh-theme :is(.btn.red,.btn.danger,button.btn.red,.delete-btn){
  color:#fff!important;background:#b73a47!important;border-color:#d15664!important;
}
body.pwh-theme :is(.btn.gray,button.btn.gray,a.btn.gray){
  color:#dce5f1!important;background:#34445a!important;border-color:#52647b!important;
}
body.pwh-theme button:disabled,body.pwh-theme .btn:disabled{opacity:.56!important;cursor:not-allowed!important}
/* Tabelle a contrasto elevato, nessuna alterazione di righe o colonne. */
body.pwh-theme table:not(.wo-mini):not(.wo-lines){
  background:#111d2d!important;color:#dce5f1!important;
  border:1px solid #293b54!important;border-radius:9px!important;
  box-shadow:none!important;
}
body.pwh-theme table:not(.wo-mini):not(.wo-lines) th{
  background:#1b2c43!important;color:#b9cbe1!important;
  border-bottom:1px solid #344861!important;
  text-transform:uppercase!important;font-size:10px!important;letter-spacing:.7px!important;
}
body.pwh-theme table:not(.wo-mini):not(.wo-lines) td{
  background:#111d2d!important;color:#d4deeb!important;
  border-bottom:1px solid #25364d!important;
}
body.pwh-theme table:not(.wo-mini):not(.wo-lines) tbody tr:nth-child(even) td{background:#142237!important}
body.pwh-theme table:not(.wo-mini):not(.wo-lines) tbody tr:hover td{background:#1c304a!important}
body.pwh-theme .detail-table th{background:#1c3049!important;color:#b9cbe1!important}
body.pwh-theme :is(.badge,.pill,.status){
  color:#cfdef0!important;background:#24405e!important;
  border:1px solid #385476!important;border-radius:20px!important;box-shadow:none!important;
}
body.pwh-theme .badge.p1{color:#ffd5da!important;background:#71343b!important;border-color:#84424d!important}
body.pwh-theme .badge.p2{color:#ffe6c0!important;background:#624722!important;border-color:#806035!important}
body.pwh-theme .badge.p3{color:#fff1b8!important;background:#605525!important;border-color:#85723a!important}
body.pwh-theme .badge.p4{color:#cdfce4!important;background:#1b5743!important;border-color:#30775c!important}
body.pwh-theme .alert{background:#172f4b!important;color:#d6ebff!important;border:1px solid #30567f!important;box-shadow:none!important;border-radius:9px!important}
body.pwh-theme .alert.error{background:#4b2631!important;color:#ffe1e4!important;border-color:#8d4655!important}
/* Dashboard: il layout attuale resta utilizzabile, cambia solo l'aspetto. */
body.pwh-theme .rc67-dashboard-hero{
  background:linear-gradient(110deg,#30202c 0%,#20253b 52%,#172941 100%)!important;
  border:1px solid #594053!important;border-radius:14px!important;
  box-shadow:inset 4px 0 0 #d94b55,0 12px 28px rgba(0,0,0,.22)!important;
}
body.pwh-theme .rc67-dashboard-hero :is(h1,h2,h3,b,strong){color:#fff1f2!important}
body.pwh-theme .rc67-dashboard-hero p{color:#d1bfcf!important}
body.pwh-theme .rc67-dashboard-hero .btn{background:#245b9b!important;color:#fff!important;border-color:#346dab!important}
body.pwh-theme .rc67-dashboard-hero .btn.green{background:#16865d!important;color:#fff!important}
body.pwh-theme .rc67-dashboard-hero .btn.gray{background:#34445a!important;color:#fff!important}
body.pwh-theme .rc67-hero-metric{background:#2b2a43!important;border-color:#5d4b65!important}
body.pwh-theme .rc67-hero-metric :is(b,strong){color:#fff!important}
body.pwh-theme .rc67-hero-metric :is(span,small){color:#c2b5d0!important}
body.pwh-theme :is(.rc67-quick-strip a,.rc67-todo a,.rc67-mini-row .mini-kpi,.rc67-advanced-card,.rc67-kpi-card,.rc67-panel,.rc67-wide){
  background:#15243a!important;color:#dfebfa!important;border:1px solid #2a3e59!important;
  border-radius:11px!important;box-shadow:none!important;
}
body.pwh-theme :is(.rc67-quick-strip a,.rc67-todo a,.rc67-mini-row .mini-kpi,.rc67-kpi-card) :is(b,strong){color:#f0f5fc!important}
body.pwh-theme .rc67-quick-strip span{color:#bdd5fb!important;background:#213952!important;border-color:#34577b!important}
body.pwh-theme :is(.rc67-section-label,.rc67-eyebrow,.rc67-panel .rc67-section-label,.rc67-wide .rc67-section-label){
  background:#21334d!important;color:#a9cbf2!important;border-color:#3b5474!important;
}
body.pwh-theme .rc67-panel-head{border-color:#2a3f58!important}
body.pwh-theme .rc67-kpi-card>span:not(.rc67-kpi-icon){color:#91a7c3!important}
/* Riepiloghi, clienti, filtri, calendari ed elenchi attrezzature. */
body.pwh-theme :is(.rc93-customer-search,.rc93-customer-card,.rc94-suggestions,.calendar-card,.rc99-card,.ux-home-launcher,.rc51-tile,.rc62-card){
  background:#15243a!important;color:#dbe7f4!important;
  border:1px solid #2a3e59!important;border-radius:12px!important;box-shadow:none!important;
}
body.pwh-theme :is(.rc93-customer-search,.rc93-customer-card,.rc94-suggestions,.calendar-card) :is(b,strong,h3){color:#eef4fd!important}
body.pwh-theme :is(.rc93-customer-card,.calendar-card) :is(small,span,p){color:#9db1ca!important}
body.pwh-theme .rc93-customer-card:hover,body.pwh-theme .calendar-card:hover{background:#1c304a!important;border-color:#41628a!important}
body.pwh-theme .rc93-search-row input{color:#edf3fb!important;background:#0d1828!important;border-color:#30435d!important}
body.pwh-theme .rc93-search-row button{color:#bed7f8!important;background:#1a2c43!important;border-color:#36577f!important}
body.pwh-theme .rc94-suggestion{background:#15243a!important;border-bottom-color:#2b3c54!important}
body.pwh-theme .rc94-suggestion:hover{background:#1c304a!important}
body.pwh-theme .rc94-suggestion :is(strong,small){color:#e6effa!important}
body.pwh-theme .rc93-results-meta{color:#91a2b9!important}
body.pwh-theme .eqw-card{background:#121d2e!important;border-color:#263750!important}
body.pwh-theme .eqw-header{border-color:#263750!important}
body.pwh-theme .eqw-stats>div{background:#172438!important}
body.pwh-theme .eqw-stats>div.eqw-total{background:#33264e!important}
/* Intestazioni per tipo attrezzatura riprese dal programma originale. */
body.pwh-theme .eqw-header{background:linear-gradient(110deg,#15243a,#111e2f)!important;border:1px solid #2a3f59!important;border-radius:13px!important;padding:18px!important;box-shadow:inset 4px 0 #3979d8!important}
body.pwh-theme .eqw-header h1{color:#f1f5fb!important}
body.pwh-theme .eqw-header p{color:#a8b8cd!important}
body.pwh-theme:has(.eqw-tabs a.active[href*="tab=ma"]) .eqw-header{background:linear-gradient(110deg,#421d25,#2e1c25 54%,#192334)!important;border-color:#873b43!important;box-shadow:inset 4px 0 #d64049!important}
body.pwh-theme:has(.eqw-tabs a.active[href*="tab=mc"]) .eqw-header{background:linear-gradient(110deg,#302318,#241d1a 54%,#192334)!important;border-color:#63452f!important;box-shadow:inset 4px 0 #a66a3d!important}
body.pwh-theme:has(.eqw-tabs a.active[href*="tab=ad"]) .eqw-header{background:linear-gradient(110deg,#102c40,#132b40 54%,#19283c)!important;border-color:#285b78!important;box-shadow:inset 4px 0 #36a9cf!important}
body.pwh-theme:has(.eqw-tabs a.active[href*="tab=stats"]) .eqw-header{background:linear-gradient(110deg,#33264e,#1b2338)!important;border-color:#57417b!important;box-shadow:inset 4px 0 #8c6bc2!important}
body.pwh-theme .eqw-tabs a{background:#17263c!important;color:#cad8e9!important;border-color:#2b415f!important}
body.pwh-theme .eqw-tabs a:hover,body.pwh-theme .eqw-tabs a.active{background:#294261!important;border-color:#58759e!important;color:#fff!important}
body.pwh-theme .eqw-card h2{color:#eef4fb!important}
body.pwh-theme :is(.eqw-field input,.eqw-field select,.eqw-filters input,.eqw-filters select,.eqw-import input){background:#0d1828!important;color:#edf3fb!important;border-color:#354961!important}
/* Modalità offline: stessi pannelli, senza toccare la coda di sincronizzazione. */
body.pwh-theme .rc44-card{background:#121d2e!important;border:1px solid #263750!important;border-radius:13px!important;color:#e8eef7!important;box-shadow:0 12px 35px rgba(0,0,0,.13)!important}
body.pwh-theme .rc44-card :is(h1,h2,h3,b){color:#edf3fa!important}
body.pwh-theme .rc44-muted{color:#91a2b9!important}
body.pwh-theme .rc44-pill{color:#cbdaf0!important;background:#233c59!important}
body.pwh-theme .rc44-tabs button{color:#cbdaf0!important;background:#1b2c43!important;border:1px solid #30435d!important;border-radius:8px!important}
body.pwh-theme .rc44-tabs button.active{background:#245b9b!important;color:#fff!important;border-color:#3979d8!important}
body.pwh-theme .rc44-btn{color:#fff!important;background:#245b9b!important;border-radius:8px!important}
body.pwh-theme .rc44-btn.green{background:#16865d!important}
/* Nav e azioni mobili: il comportamento esistente resta invariato. */
body.pwh-theme .mobile-appbar{
  color:#ecf4ff!important;background:#0e1929!important;
  border-bottom:1px solid #263750!important;box-shadow:0 5px 18px rgba(0,0,0,.20)!important;
}
body.pwh-theme .mobile-app-title{color:#f2f5fa!important}
body.pwh-theme :is(.mobile-menu-btn,.mobile-home-btn,.mobile-account-btn){
  background:#192b44!important;color:#e4effe!important;border:1px solid #345074!important;
  border-radius:8px!important;box-shadow:none!important;
}
body.pwh-theme :is(.mobile-bottom-nav-pro,.ux-bottom-nav,.bottom-nav){
  background:#0e1929!important;color:#c6d5e8!important;
  border-top:1px solid #263750!important;box-shadow:0 -7px 26px rgba(0,0,0,.30)!important;
  border-radius:14px 14px 0 0!important;
}
body.pwh-theme .mobile-bottom-item,body.pwh-theme .mobile-bottom-item *{color:#aebdd0!important}
body.pwh-theme .mobile-bottom-item.active,body.pwh-theme .mobile-bottom-item:hover{
  color:#fff!important;background:#263b59!important;border-radius:9px!important;
}
body.pwh-theme .mobile-bottom-item.active *{color:#fff!important}
body.pwh-theme :is(.mobile-more-drawer,.ux-more-drawer,.mobile-new-drawer){
  background:#111e2f!important;color:#e4eef9!important;
  border:1px solid #2d415c!important;box-shadow:0 -20px 50px rgba(0,0,0,.38)!important;
}
body.pwh-theme :is(.ux-drawer-title,.mobile-drawer-head){color:#cad8eb!important}
body.pwh-theme :is(.mobile-more-drawer,.mobile-new-drawer) a{
  background:#1a2b43!important;color:#e2edfa!important;border-color:#304961!important;
}
body.pwh-theme :is(.mobile-fab,.mobile-fab-main){background:#245b9b!important;color:#fff!important;border-color:#326fb0!important}
body.pwh-theme .mobile-fab-menu{background:#111e2f!important;border-color:#2d415c!important}
body.pwh-theme .mobile-fab-menu a{background:#1b2d46!important;color:#dbe8f8!important;border-color:#344b69!important}
body.pwh-theme .rc43-connection{color:#c7d8ee!important}
/* Login, recupero password. */
body.pwh-theme.pwh-login{min-height:100vh;background:radial-gradient(circle at 70% 0%,#162842 0,transparent 45%),#0b1220!important}
body.pwh-theme.pwh-login >.card{
  background:#121d2e!important;border:1px solid #30435d!important;
  border-top:4px solid #d94b55!important;box-shadow:0 24px 70px rgba(0,0,0,.36)!important;
  border-radius:13px!important;
}
body.pwh-theme.pwh-login >.card h2{color:#eef3fa!important}
/* Le aree di stampa hanno uno sfondo bianco proprio, sempre. */
body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4,.rc12-document-paper){
  background:#fff!important;color:#111!important;color-scheme:light!important;
}
body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4,.rc12-document-paper) :is(p,span,b,strong,label,h1,h2,h3,h4,small){color:inherit}
body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4) table td{color:#111!important;background:#fff!important}
body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4) table th{color:#fff!important}
@media(max-width:900px){
  body.pwh-theme .main .topbar{background:#0b1220!important;padding:10px 0!important;margin:0 0 12px!important}
  body.pwh-theme .page-head{margin:14px 0 14px!important}
  /* Su smartphone la sidebar resta gestita dalla logica esistente di apertura/chiusura. */
  body.pwh-theme .side.ux-side{padding:15px 13px!important}
  body.pwh-theme .side .brand-logo{max-height:46px!important}
  body.pwh-theme .card{border-radius:12px!important}
}
@media(max-width:560px){
  body.pwh-theme .page-head h1{font-size:24px!important}
  body.pwh-theme .main .topbar{border-radius:0!important}
  body.pwh-theme .side .ux-nav-link b{font-size:13px!important}
}
@media print{
  html:has(body.pwh-theme),body.pwh-theme{background:#fff!important;color:#111!important;color-scheme:light!important}
  body.pwh-theme .layout,body.pwh-theme .main{background:#fff!important;color:#111!important}
  body.pwh-theme :is(.side,.topbar,.page-head,.mobile-appbar,.mobile-bottom-nav-pro,.ux-bottom-nav,.mobile-fab-wrap){display:none!important}
  body.pwh-theme :is(.card,.panel,.hero,table){box-shadow:none!important}
  body.pwh-theme :is(.card,.panel,.hero){color:#111!important;background:#fff!important;border-color:#bbb!important}
  body.pwh-theme :is(.card,.panel,.hero) :is(p,span,b,strong,h1,h2,h3,h4,small){color:#111!important;-webkit-text-fill-color:initial!important}
  body.pwh-theme table:not(.wo-mini):not(.wo-lines){background:#fff!important;color:#111!important;border-color:#bbb!important}
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) td,
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) tbody tr:nth-child(even) td{background:#fff!important;color:#111!important;border-color:#bbb!important}
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) th{background:#f1f1f1!important;color:#111!important;border-color:#bbb!important}
  body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4,.rc12-document-paper){color:#111!important;background:#fff!important}
  body.pwh-theme :is(.print-report,.perinotto-workorder-pdf,.wo-base-a4,.rc12-document-paper) :is(td,th){border-color:#333!important}
  body.pwh-theme .perinotto-workorder-pdf :is(.wo-lines th,.wo-blue,.wo-machine-title){background:#003e68!important;color:#fff!important}
  body.pwh-theme .perinotto-workorder-pdf .wo-total td{background:#d40000!important;color:#fff!important}
}


/* RC168 source: rc156-leggibilita.css */
/*
 * PERINOTTO APP2 RC156 — leggibilità del tema Magazzino.
 * Solo colori/contrasto e tipografia. Non modifica struttura, eventi, nomi dei
 * campi, form, JS, API, permessi, database, PDF o layout di stampa.
 * @media screen esclude la stampa A4/PDF e le regole di impaginazione stampate.
 */
@media screen {
  body.pwh-theme {
    --muted:#c3d2e5;
    --pwh-muted:#c3d2e5;
    --txt:#f0f5fc;
    --text:#f0f5fc;
    color:#edf4fd!important;
    font-size:15px!important;
    line-height:1.52!important;
  }
  /* Secondari e link: leggibili su ogni pannello scuro. */
  body.pwh-theme :is(.muted,.hint,small,.help,.help-text,.text-muted,.form-help,.field-help) {
    color:#c2d0e3!important;
  }
  body.pwh-theme :is(.card,.panel,.box,.dash-card,.eqw-card,.rc67-panel,.rc67-wide,.rc67-kpi-card) {
    color:#e7f0fc!important;
    line-height:1.55!important;
  }
  body.pwh-theme :is(.card,.panel,.box,.dash-card,.rc67-panel,.rc67-wide) > p,
  body.pwh-theme :is(.card,.panel,.box,.dash-card,.rc67-panel,.rc67-wide) :is(li,summary) {
    color:#dae7f6!important;
    font-size:15px!important;
    line-height:1.55!important;
  }
  body.pwh-theme a:not(.btn):not(.ux-nav-link):not(.mobile-bottom-item) { color:#b5d5ff!important; }
  body.pwh-theme a:not(.btn):not(.ux-nav-link):not(.mobile-bottom-item):hover { color:#e0efff!important; }

  /* Menu desktop: nessuna etichetta microscopica o grigio troppo spento. */
  body.pwh-theme .side.ux-side {color:#d3e1f2!important}
  body.pwh-theme .side .ux-brand-sub {
    color:#c4d4e9!important;font-size:12px!important;letter-spacing:.8px!important;
    line-height:1.4!important;
  }
  body.pwh-theme .side .ux-nav-title {
    color:#b9cbe3!important;font-size:12px!important;letter-spacing:1px!important;
    line-height:1.4!important;
  }
  body.pwh-theme .side a.ux-nav-link,
  body.pwh-theme .side a.ux-nav-link b {
    color:#d8e6f6!important;font-size:14.5px!important;line-height:1.45!important;
    font-weight:650!important;
  }
  body.pwh-theme .side a.ux-nav-link:is(:hover,.active),
  body.pwh-theme .side a.ux-nav-link:is(:hover,.active) b {color:#fff!important}
  body.pwh-theme .side .side-footer,
  body.pwh-theme .side .side-footer span {color:#c6d6e9!important;font-size:13px!important}

  /* Titoli, didascalie e ricerca globale. */
  body.pwh-theme .page-head p {color:#c4d4e7!important;font-size:14px!important;line-height:1.5!important}
  body.pwh-theme .date-pill {color:#e0eafa!important;font-size:14px!important}
  body.pwh-theme .userbox b {color:#fff!important;font-size:14.5px!important}
  body.pwh-theme .userbox small {color:#c4d5ea!important;font-size:13px!important}
  body.pwh-theme .global-search input,
  body.pwh-theme .main .topbar input {font-size:15px!important;line-height:1.5!important}
  body.pwh-theme input::placeholder,
  body.pwh-theme textarea::placeholder,
  body.pwh-theme .global-search input::placeholder {
    color:#bacce2!important;opacity:1!important;
  }

  /* Campi: etichette mai a 10/11px; valori e selezioni leggibili. */
  body.pwh-theme :is(.field label,.form-group label,.filter-form label,.eqw-field,.eqw-filters label),
  body.pwh-theme :is(.card,.panel,.eqw,.filter-form,.reset-card) label {
    color:#d5e3f6!important;font-size:13.5px!important;
    font-weight:700!important;line-height:1.45!important;
    letter-spacing:.12px!important;
  }
  body.pwh-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {
    color:#f3f8ff!important;background:#0e1b2d!important;
    border-color:#49617e!important;font-size:15px!important;
    line-height:1.5!important;min-height:42px;
  }
  body.pwh-theme input:disabled,
  body.pwh-theme select:disabled,
  body.pwh-theme textarea:disabled {opacity:.78!important}
  body.pwh-theme :is(.btn,button.btn,a.btn,input[type="submit"].btn,.install-app-btn) {
    font-size:14px!important;line-height:1.4!important;
    font-weight:750!important;min-height:40px;
  }
  body.pwh-theme :is(.btn.gray,button.btn.gray,a.btn.gray) {color:#eff5ff!important}
  body.pwh-theme :is(.badge,.pill,.status) {
    color:#e7f1ff!important;font-size:12.5px!important;
    line-height:1.3!important;font-weight:700!important;
  }
  body.pwh-theme :is(.alert,.alert.error) {font-size:14.5px!important;line-height:1.5!important}

  /* Tabelle/elenchi: intestazioni e dati non restano a 9-12px. */
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) {
    font-size:14px!important;line-height:1.5!important;
  }
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) th {
    color:#dbe9fc!important;font-size:12.5px!important;
    line-height:1.4!important;letter-spacing:.35px!important;
  }
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) td {
    color:#e6f0fc!important;font-size:14px!important;line-height:1.5!important;
  }
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) :is(td,th) {padding-top:11px;padding-bottom:11px}
  body.pwh-theme table:not(.wo-mini):not(.wo-lines) td small {
    color:#c4d4e7!important;font-size:12.5px!important;
  }

  /* Dashboard e riquadri: contrasto delle statistiche e testi descrittivi. */
  body.pwh-theme :is(.rc67-kpi-card,.rc67-hero-metric,.rc67-quick-strip a,.rc67-mini-row .mini-kpi) :is(span,small,p) {
    color:#d1e0f2!important;font-size:13.5px!important;line-height:1.5!important;
  }
  body.pwh-theme .rc67-kpi-card>span:not(.rc67-kpi-icon) {color:#cee0f6!important;font-size:14px!important}
  body.pwh-theme .rc67-dashboard-hero p {color:#e1cedc!important;font-size:14.5px!important}
  body.pwh-theme :is(.rc67-section-label,.rc67-eyebrow,.rc67-panel .rc67-section-label,.rc67-wide .rc67-section-label) {
    color:#d3e7ff!important;font-size:12.5px!important;line-height:1.4!important;
  }
  body.pwh-theme :is(.rc93-customer-card,.calendar-card) :is(small,span,p) {
    color:#d3e1f1!important;font-size:13.5px!important;line-height:1.5!important;
  }
  body.pwh-theme :is(.rc93-results-meta,.stats-list-note,.live-filter-count) {
    color:#c6d8ed!important;font-size:13.5px!important;
  }
  body.pwh-theme .rc94-suggestion :is(strong,small) {color:#eef5fe!important;font-size:14px!important}

  /* Magazzino attrezzature del dipendente: etichette, schede, filtri, storico. */
  body.pwh-theme .eqw-header p {color:#cbdcf0!important;font-size:14.5px!important}
  body.pwh-theme .eqw-header .eqw-kicker {
    color:#ffc0c7!important;font-size:12.5px!important;letter-spacing:1px!important;
  }
  body.pwh-theme .eqw-tabs a {
    color:#e4effd!important;font-size:14px!important;line-height:1.4!important;
  }
  body.pwh-theme .eqw-card :is(p,.eqw-small),
  body.pwh-theme .eqw-small {
    color:#cbdcf0!important;font-size:13.5px!important;line-height:1.5!important;
  }
  body.pwh-theme .eqw-field,
  body.pwh-theme .eqw-filters label {
    color:#d5e5f9!important;font-size:13.5px!important;
    line-height:1.4!important;letter-spacing:.15px!important;
  }
  body.pwh-theme .eqw .btn.small {font-size:13px!important;min-height:36px}
  body.pwh-theme .eqw-status {font-size:12.5px!important;line-height:1.4!important}
  body.pwh-theme .eqw-stats span {color:#d1e1f4!important;font-size:13.5px!important}
  body.pwh-theme .eqw-flash {font-size:14.5px!important;line-height:1.5!important}
  body.pwh-theme .eqw table:not(.wo-mini):not(.wo-lines) :is(th,td) {padding:12px 11px}

  /* Barra mobile e icone: conservare gli stessi pulsanti e comportamenti. */
  body.pwh-theme .mobile-app-title {color:#fff!important;font-size:16px!important}
  body.pwh-theme :is(.mobile-menu-btn,.mobile-home-btn,.mobile-account-btn) {
    color:#e8f2fe!important;font-size:14px!important;
  }
  body.pwh-theme .mobile-bottom-item,
  body.pwh-theme .mobile-bottom-item * {
    color:#d2e0f0!important;font-size:13px!important;
  }
  body.pwh-theme .mobile-bottom-item.active,
  body.pwh-theme .mobile-bottom-item.active * {color:#fff!important}
  body.pwh-theme :is(.ux-drawer-title,.mobile-drawer-head) {color:#e5efff!important;font-size:15px!important}
  body.pwh-theme :is(.mobile-more-drawer,.mobile-new-drawer) a,
  body.pwh-theme .mobile-fab-menu a {font-size:14.5px!important}
  body.pwh-theme .rc43-connection {color:#d6e5f7!important;font-size:13.5px!important}

  /* Portale clienti e archivio offline: stessa leggibilita' dell'app. */
  body.pwh-theme .main > p {color:#d9e7f7!important;font-size:15px!important}
  body.pwh-theme .rc44-offline-app :is(p,.rc44-muted) {
    color:#d0e1f6!important;font-size:14.5px!important;line-height:1.55!important;
  }
  body.pwh-theme .rc44-offline-app :is(.rc44-btn,.rc44-tab,.rc44-kpi) {
    color:#eaf3ff!important;font-size:14px!important;line-height:1.5!important;
  }
  body.pwh-theme .rc44-offline-app :is(.rc44-input,.rc44-search,.rc44-textarea) {
    color:#f2f7ff!important;font-size:15px!important;
  }
  body.pwh-theme .rc44-offline-app :is(.rc44-card,.rc44-card h1,.rc44-card h2) {color:#f0f6ff!important}

  /* Da tastiera, il focus deve essere chiaramente riconoscibile. */
  body.pwh-theme :is(a,button,input,select,textarea):focus-visible {
    outline:2px solid #8fc2ff!important;outline-offset:2px!important;
  }
  @media (max-width:700px) {
    body.pwh-theme {font-size:15px!important}
    /* 16px sugli input evita lo zoom automatico su molti telefoni. */
    body.pwh-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {
      font-size:16px!important;min-height:44px;
    }
    body.pwh-theme .eqw-card {line-height:1.55!important}
    body.pwh-theme table:not(.wo-mini):not(.wo-lines) td {font-size:13.5px!important}
    body.pwh-theme table:not(.wo-mini):not(.wo-lines) th {font-size:12px!important}
    body.pwh-theme .page-head p {font-size:14px!important}
  }
}

