
/* RC168 source: style.css */
:root{
 --bg:#f6f8fc;--surface:#ffffff;--surface2:#f9fbff;--txt:#0f1b33;--muted:#667085;--line:#e5eaf3;--brand:#174ea6;--brand2:#2563eb;--brandSoft:#eaf2ff;--ok:#16a34a;--warn:#f59e0b;--bad:#dc2626;--shadow:0 10px 30px rgba(16,24,40,.07);--radius:16px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--txt);font-size:14px}a{color:var(--brand2);text-decoration:none}b,strong{font-weight:700}.layout{display:flex;min-height:100vh}.side{width:260px;background:#fff;color:var(--txt);padding:18px 14px;position:fixed;top:0;bottom:0;overflow:auto;border-right:1px solid var(--line);box-shadow:8px 0 24px rgba(16,24,40,.035);z-index:2}.brand{height:58px;margin:0 4px 18px;display:flex;flex-direction:column;justify-content:center;line-height:1}.brand-main{font-size:26px;letter-spacing:1.8px;font-weight:800;color:#12264a}.brand-sub{font-size:13px;font-weight:800;color:#12264a;text-align:right;margin-right:8px}.side a{display:flex;align-items:center;gap:10px;color:#26364f;padding:11px 13px;border-radius:12px;margin:4px 0;font-weight:650}.side a:hover{background:var(--brandSoft);color:var(--brand)}.side a.active{background:linear-gradient(135deg,#1d4ed8,#4f46e5);color:#fff;box-shadow:0 8px 22px rgba(37,99,235,.24)}.side-footer{margin:28px 6px 10px;padding:16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#f7faff);font-size:12px}.side-footer span{display:block;color:var(--muted);margin-top:4px}.logout{margin-top:8px!important;color:#9b1c1c!important}.main{margin-left:260px;flex:1;padding:0 28px 32px}.topbar{height:66px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line);background:rgba(246,248,252,.88);position:sticky;top:0;z-index:1;backdrop-filter:blur(12px)}.global-search{display:flex;align-items:center;gap:10px;width:min(720px,64vw)}.global-search input{width:100%;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;padding:0 14px;box-shadow:0 2px 8px rgba(16,24,40,.03)}.global-search input:focus,input:focus,select:focus,textarea:focus{outline:3px solid #dbeafe;border-color:#93c5fd}.userbox{display:flex;align-items:center;gap:12px;white-space:nowrap}.userbox small{display:block;color:var(--muted);font-size:12px}.bell{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:#fff}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin:24px 0 18px}.page-head h1{margin:0;font-size:27px;letter-spacing:-.02em}.page-head p{margin:5px 0 0}.date-pill{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 13px;color:#344054;box-shadow:0 2px 8px rgba(16,24,40,.03)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.stat{font-size:32px;font-weight:800;letter-spacing:-.03em}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:var(--brand2);color:white!important;padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:700;box-shadow:0 7px 18px rgba(37,99,235,.17);line-height:1}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.gray{background:#64748b;box-shadow:none}.btn.green{background:var(--ok)}.btn.red{background:var(--bad)}table{width:100%;border-collapse:separate;border-spacing:0;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);margin:10px 0 18px}th,td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}tr:last-child td{border-bottom:0}th{background:#fbfcff;color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:800}.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#475467;font-weight:800}.field.full{grid-column:1/-1}input,select,textarea{padding:11px 12px;border:1px solid #d7deea;border-radius:12px;font:inherit;background:white;color:var(--txt)}textarea{min-height:92px}.badge{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:999px;background:#edf2f7;font-size:12px;font-weight:750}.p1{background:#fee2e2;color:#991b1b}.p2{background:#ffedd5;color:#9a3412}.p3{background:#fef3c7;color:#92400e}.p4{background:#dcfce7;color:#166534}.alert{padding:13px 15px;border-radius:14px;margin-bottom:16px;background:#dbeafe;border:1px solid #bfdbfe;color:#1e3a8a}.error{background:#fee2e2;border-color:#fecaca;color:#991b1b}.sign{border:1px solid #cbd5e1;border-radius:14px;background:white;touch-action:none;width:100%;height:160px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px}.print-report{background:white;padding:25px;max-width:900px;margin:auto}.hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;background:linear-gradient(135deg,#ffffff,#f2f7ff);border:1px solid var(--line);border-radius:20px;padding:20px;margin-bottom:20px;box-shadow:var(--shadow)}.hero h2{margin:7px 0 0;font-size:21px}.legend{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}.dash-card{display:flex;align-items:center;gap:15px;background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow);color:var(--txt);border:1px solid var(--line);transition:.16s ease}.dash-card:hover{border-color:#bfdbfe;transform:translateY(-2px);box-shadow:0 14px 34px rgba(37,99,235,.10)}.dash-card.prio1{border-color:#fecaca;background:#fffafa}.dash-icon{width:52px;height:52px;border-radius:17px;background:#eaf2ff;display:flex;align-items:center;justify-content:center;font-size:25px}.dash-card.prio1 .dash-icon{background:#fee2e2}.dash-card .stat{font-size:29px}.click-row{cursor:pointer;transition:background .12s ease,transform .12s ease}.click-row:hover{background:#f4f8ff}.click-row:active{transform:scale(.998)}.detail-table{box-shadow:none;border-radius:14px}.detail-table th{width:230px;background:#fbfcff;color:#475467}.detail-table td{background:#fff}h2{margin:24px 0 12px;font-size:18px}.top{display:none}@media(max-width:900px){.side{position:relative;width:100%;bottom:auto}.layout{display:block}.main{margin:0;padding:0 16px 24px}.topbar{height:auto;padding:12px 0;display:block}.global-search{width:100%;min-width:0}.userbox{margin-top:10px}.page-head{display:block}.date-pill{display:inline-block;margin-top:10px}.hero{display:block}.legend{justify-content:flex-start;margin-top:12px}table{display:block;overflow-x:auto}.form{grid-template-columns:1fr}}@media print{.side,.topbar,.page-head,.noprint,.actions{display:none}.main{margin:0;padding:0}.print-report{box-shadow:none}}
.filter-form{margin:0 0 16px;align-items:end;background:linear-gradient(180deg,#ffffff,#fbfdff)}
.filter-form .field label{color:#344054}
.filter-actions{flex-direction:row;align-items:end;gap:8px}
.filter-actions label{display:none}
.filter-actions .btn{height:42px}

/* Rapporti V2 - ricambi dinamici, foto e allegati */
.report-form .part-row{display:grid;grid-template-columns:1fr 2fr .7fr .8fr .8fr auto;gap:10px;align-items:center;margin:8px 0;padding:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px}
.report-form .part-row input{width:100%}
.report-form .row-total{font-weight:800;text-align:right;color:#0f172a}
.btn.small{padding:8px 12px;min-width:38px}
.attachment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:10px}
.attachment-grid label{display:block;padding:16px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;font-weight:700;color:#0f172a}
.attachment-grid input{margin-top:10px;width:100%}
.preview-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.previews{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;min-height:44px}
.preview-item{border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:6px;font-size:12px;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.preview-item img{width:90px;height:70px;object-fit:cover;border-radius:8px;display:block}
.totals-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:14px}
.totals-grid{display:grid;grid-template-columns:1fr auto;gap:8px 20px;max-width:420px}
.totals-grid b:last-child{font-size:20px;color:#0b65c2}
.attachment-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:12px 0 24px}
.attachment-card{border:1px solid #e5e7eb;border-radius:16px;padding:12px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);page-break-inside:avoid}
.attachment-card img{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:8px 0}
.attachment-card a{display:block;margin-top:8px;word-break:break-word}
.file-icon{font-size:42px;padding:20px;text-align:center;background:#f8fafc;border-radius:12px;margin:8px 0}
@media(max-width:900px){.report-form .part-row{grid-template-columns:1fr}.attachment-grid,.preview-wrap{grid-template-columns:1fr}}
@media print{.attachment-card{box-shadow:none}.attachment-card a{color:#111;text-decoration:none}.report-form,.noprint{display:none!important}}


/* Branding Perinotto */
.brand{height:auto;min-height:62px;margin:0 4px 18px;align-items:center}
.brand-logo{width:100%;height:auto;display:block;object-fit:contain;background:#fff;border-radius:10px;padding:4px}
.print-logo-wrap{text-align:center;margin-bottom:16px;border-bottom:1px solid #e5e7eb;padding-bottom:12px}
.print-logo{max-width:520px;width:100%;height:auto}
@media print{.print-logo{max-width:480px}.print-logo-wrap{display:block}}

/* Fase 2: magazzino, calendario, QR */
.calendar-list{display:grid;gap:12px;margin-top:16px}
.calendar-card{display:block;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;text-decoration:none;color:#0f172a;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.calendar-card b{display:block;margin-bottom:6px}.calendar-card span{display:block;color:#64748b}.calendar-card em{display:inline-block;margin-top:8px;background:#e0f2fe;color:#075985;border-radius:999px;padding:4px 9px;font-style:normal;font-size:12px}
.qr-img{width:96px;height:96px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;padding:4px}
@media print{.qr-img{width:120px;height:120px}.side,.topbar,.page-head,.actions,.mobile-install-tip,.install-app-btn{display:none!important}.main{margin:0;padding:0}}


/* V15 AI Integrata */
.ai-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#ffffff,#eef6ff)}
.ai-badge{font-size:28px;font-weight:900;background:#111827;color:#fff;border-radius:18px;padding:16px 18px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.ai-answer pre{white-space:pre-wrap;font-family:inherit;line-height:1.55;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:0}
.ai-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-bottom:20px}
.ai-result{display:block;color:var(--txt)}
.ai-result h3{margin:8px 0 6px;font-size:17px}.ai-result p{margin:0;color:var(--muted)}
@media(max-width:900px){.ai-hero{display:block}.ai-badge{display:inline-block;margin-top:12px}.ai-results{grid-template-columns:1fr}}
/* V16 Gestione Mezzi */
.badge.green{background:#dcfce7;color:#166534;border:1px solid #86efac;padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}
.badge.orange{background:#ffedd5;color:#9a3412;border:1px solid #fdba74;padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}
.badge.gray{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}
@media(max-width:760px){
  table td .badge{display:inline-block;margin-top:4px}
}

/* V17 billing */
@media print{.side,.topbar,.page-head,.actions,.mobile-appbar,.mobile-install-tip,.install-app-btn{display:none!important}.main{margin:0!important;padding:0!important}.card{box-shadow:none!important;border:1px solid #ddd!important}}

/* RC3 - Filtri live automatici */
.live-filter-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 8px;
  flex-wrap:wrap;
}
.live-filter-input{
  width:min(100%, 520px);
  padding:11px 13px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font:inherit;
  background:#fff;
}
.live-filter-input:focus{
  outline:2px solid rgba(37,99,235,.18);
  border-color:#2563eb;
}
.live-filter-count{
  font-size:.9rem;
}
tr[hidden]{display:none!important;}
@media(max-width:720px){
  .live-filter-wrap{display:block;}
  .live-filter-input{width:100%;}
  .live-filter-count{margin-top:6px;}
}

/* RC55J - Template PDF foglio di lavoro Perinotto, HTML/CSS reale */
.perinotto-workorder-pdf{background:#fff;color:#0f172a;max-width:1050px;margin:0 auto 24px;padding:28px;border:1px solid #cbd5e1;box-shadow:0 12px 28px rgba(15,23,42,.08);font-family:Inter,Arial,sans-serif}.wo-top{display:grid;grid-template-columns:1.25fr .8fr;gap:28px;align-items:start}.wo-logo{max-width:410px;width:100%;height:auto;display:block;margin-bottom:8px}.wo-claim{font-size:14px;line-height:1.28;margin:4px 0}.wo-red{font-size:14px;line-height:1.28;color:#d40000;font-weight:800;margin:8px 0}.wo-small{font-size:12px;line-height:1.42;margin:10px 0 0}.wo-doc{max-width:330px;margin-left:auto}.wo-blue,.wo-machine-title{background:#003e68;color:#fff;font-weight:900;border-radius:7px 7px 0 0;padding:8px 14px;letter-spacing:.02em}.wo-num{font-size:30px;color:#d40000;font-weight:900;margin:10px 0 4px}.wo-date{font-size:16px}.wo-line{height:1px;background:#333;margin:11px 0 17px}.wo-label{font-size:12px}.wo-tech{font-size:18px;font-weight:800;margin-top:6px}.wo-row{display:grid;grid-template-columns:1.05fr .8fr;gap:28px;align-items:start;margin-top:16px}.wo-mini{width:100%;border-collapse:collapse!important;box-shadow:none!important;border:1px solid #111!important;border-radius:0!important;margin:0!important}.wo-mini td{border:1px solid #111!important;padding:7px 10px!important;font-size:12px}.wo-mini td:not(:first-child){text-align:center}.wo-client{border:1px solid #111;border-radius:8px;padding:14px 16px;min-height:120px;font-size:15px;line-height:1.38}.wo-client b{font-size:17px}.wo-piva{margin:14px 0 12px;margin-left:auto;width:390px;border:1px solid #111;padding:9px 12px;display:flex;gap:18px;align-items:center}.wo-piva span{flex:1;letter-spacing:3px;border-bottom:1px dotted #777;min-height:16px}.wo-machine{border:2px solid #003e68;border-radius:8px;margin:8px 0 14px;position:relative;padding:38px 16px 14px}.wo-machine-title{position:absolute;top:-2px;left:-2px;border-radius:6px 0 7px 0;padding:8px 14px}.wo-machine-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px 22px}.wo-machine-grid div{display:flex;gap:8px;align-items:end;border-bottom:1px dotted #64748b;min-height:24px}.wo-machine-grid b{font-size:12px;color:#0b3154;min-width:84px}.wo-machine-grid span{font-size:12px;white-space:pre-line}.wo-lines{width:100%;border-collapse:collapse!important;box-shadow:none!important;border:1px solid #111!important;border-radius:0!important;margin:0!important}.wo-lines th{background:#003e68!important;color:#fff!important;border:1px solid #111!important;text-align:center!important;padding:8px!important;font-size:12px!important}.wo-lines td{border:1px solid #111!important;padding:7px 8px!important;height:26px;font-size:12px!important}.wo-lines tbody td{border-top:1px dotted #999!important;border-bottom:1px dotted #999!important}.wo-lines th:first-child,.wo-lines td:first-child{width:62%}.wo-lines th:nth-child(2),.wo-lines td:nth-child(2){width:10%;text-align:center}.wo-lines th:nth-child(3),.wo-lines td:nth-child(3){width:14%;text-align:right}.wo-lines th:nth-child(4),.wo-lines td:nth-child(4){width:14%;text-align:right}.wo-lines tfoot td{height:28px;background:#fff!important;border:1px solid #111!important}.wo-lines .wo-total td,.wo-lines tr.wo-total td{background:#d40000!important;color:#fff!important;font-weight:900!important;font-size:14px!important}.wo-watermark{background:linear-gradient(135deg,rgba(212,0,0,.05),rgba(0,62,104,.05))!important}.wo-notes{border:1px solid #111;margin-top:18px;padding:10px 12px;min-height:80px}.wo-notes b{color:#d40000}.wo-notes div{border-top:1px dotted #aaa;margin-top:9px;padding-top:8px;min-height:48px;font-size:12px;white-space:pre-line}.wo-sign{display:grid;grid-template-columns:1fr .72fr 1fr;border:1px solid #111;margin-top:12px}.wo-sign>div{min-height:54px;padding:10px;border-right:1px solid #111;font-size:12px}.wo-sign>div:last-child{border-right:0}.wo-invoice{display:flex;align-items:center;justify-content:center;color:#d40000;font-weight:900;font-size:20px!important}.wo-bottom-line{display:grid;grid-template-columns:1fr 1fr;height:8px;margin-top:12px}.wo-bottom-line span:first-child{background:#d40000}.wo-bottom-line span:last-child{background:#003e68}
@media(max-width:760px){.perinotto-workorder-pdf{padding:14px;margin:0 -2px}.wo-top,.wo-row{grid-template-columns:1fr;gap:14px}.wo-doc{margin:0;max-width:none}.wo-piva{width:auto;margin-left:0}.wo-machine-grid{grid-template-columns:1fr}.wo-lines{font-size:11px}.wo-lines th,.wo-lines td{padding:5px!important}.wo-sign{grid-template-columns:1fr}.wo-sign>div{border-right:0;border-bottom:1px solid #111}.wo-sign>div:last-child{border-bottom:0}}
@media print{@page{size:A4;margin:8mm}html,body{background:#fff!important}.side,.topbar,.page-head,.actions,.mobile-appbar,.mobile-bottom-nav,.mobile-fab-wrap,.mobile-install-tip,.install-app-btn,.rc43-connection,.noprint{display:none!important}.layout,.main{display:block!important;margin:0!important;padding:0!important;width:100%!important}.perinotto-workorder-pdf{box-shadow:none!important;border:0!important;margin:0!important;padding:0!important;max-width:none!important;width:100%!important;font-size:11px!important;break-inside:avoid}.wo-logo{max-width:290px}.wo-top{grid-template-columns:1.1fr .75fr;gap:18px}.wo-claim,.wo-red{font-size:10.5px;margin:4px 0}.wo-small{font-size:9px;line-height:1.25}.wo-blue,.wo-machine-title{padding:5px 10px;font-size:11px}.wo-num{font-size:22px;margin:6px 0 2px}.wo-date,.wo-tech{font-size:12px}.wo-label{font-size:9px}.wo-line{margin:7px 0 11px}.wo-row{grid-template-columns:1.05fr .8fr;gap:18px;margin-top:10px}.wo-mini td{font-size:8.5px!important;padding:4px 6px!important}.wo-client{min-height:78px;font-size:10px;padding:9px 11px}.wo-client b{font-size:12px}.wo-piva{width:315px;padding:5px 8px;margin:8px 0 8px auto;font-size:10px}.wo-machine{padding:27px 11px 9px;margin:6px 0 10px}.wo-machine-grid{grid-template-columns:1fr 1fr 1fr;gap:7px 14px}.wo-machine-grid b,.wo-machine-grid span{font-size:8.5px}.wo-machine-grid b{min-width:60px}.wo-lines th{font-size:8.5px!important;padding:5px!important}.wo-lines td{font-size:8.5px!important;padding:3px 5px!important;height:18px}.wo-lines .wo-total td,.wo-lines tr.wo-total td{font-size:10px!important}.wo-notes{min-height:52px;margin-top:10px;padding:6px 8px}.wo-notes div{min-height:32px;font-size:8.5px}.wo-sign{margin-top:8px}.wo-sign>div{min-height:36px;padding:6px;font-size:8.5px}.wo-invoice{font-size:14px!important}.wo-bottom-line{height:5px;margin-top:8px}}


/* 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}
  }
}

