/* Phase 22V - progetto stabile, sezioni visibili, distinta materiali leggibile */
:root{--p22v-bg:#f3f7fb;--p22v-card:#fff;--p22v-border:#cfdfef;--p22v-strong:#b7cde6;--p22v-text:#17283a;--p22v-muted:#5b728d;--p22v-blue:#1467ff;--p22v-shadow:0 14px 34px rgba(25,60,100,.07)}
html,body{width:100%!important;max-width:none!important;min-width:0!important;overflow-x:auto!important;background:var(--p22v-bg)!important}body,input,select,textarea,button{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}body main,body .main,body .content,body .page,body .page-content,body .container,body .app-container,body .app-shell,body .site-shell,body .workspace,body .dashboard,body .layout,body .shell{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}body main,body .content,body .page,body .page-content,body .workspace{padding-left:clamp(12px,.85vw,28px)!important;padding-right:clamp(12px,.85vw,28px)!important}
body.p22v-project .page-head{width:100%!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;box-sizing:border-box!important}body.p22v-project .editor-shell,body.p22v-project .editor-shell-wide,body.p22v-project .editor-main,body.p22v-project .project-form,body.p22v-project form.project-form{width:100%!important;max-width:none!important;min-width:0!important;display:block!important;box-sizing:border-box!important}body.p22v-project .editor-side,body.p22v-project .side-card,body.p22v-project .p22o-actionbar,body.p22v-project .p22m-project-actions,body.p22v-project .p22n-project-actions,body.p22v-project .p22q-project-actions,body.p22v-project .p22r-project-actions{display:none!important}
body.p22v-project .summary-strip{width:100%!important;display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:14px!important;margin:14px 0 18px!important;box-sizing:border-box!important}body.p22v-project .summary-chip{flex:1 1 180px!important;min-width:170px!important;max-width:260px!important;min-height:92px!important;text-align:left!important;border:1px solid var(--p22v-border)!important;border-radius:14px!important;padding:16px!important;background:#e8f0fa!important;color:var(--p22v-text)!important;box-shadow:none!important;cursor:default!important;box-sizing:border-box!important}body.p22v-project button.summary-chip{cursor:pointer!important}body.p22v-project button.summary-chip:hover{box-shadow:var(--p22v-shadow)!important;transform:translateY(-1px)!important}body.p22v-project .summary-chip span{display:block!important;margin-bottom:8px!important;color:#4a6682!important;font-weight:800!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.04em!important}body.p22v-project .summary-chip strong{display:block!important;font-size:18px!important;line-height:1.18!important}.chip-green{background:#e0f7e8!important;border-color:#b9eac9!important;color:#096c31!important}.chip-amber{background:#fff0c8!important;border-color:#ffd890!important;color:#8b5d00!important}.chip-red{background:#ffe1e1!important;border-color:#ffc3c3!important;color:#9c1b1b!important}.chip-blue{background:#e0edff!important;border-color:#bdd5ff!important;color:#0757db!important}.chip-docs{background:#eadffd!important;border-color:#d1bdf8!important;color:#6336c6!important}.chip-slate{background:#e7eef6!important;border-color:#d1deeb!important;color:#344b63!important}
body.p22v-project .p22v-project-actions{width:100%!important;display:flex!important;flex-direction:column!important;gap:10px!important;margin:8px 0 18px!important}body.p22v-project .p22v-legend-line,body.p22v-project .p22v-action-line{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:9px!important}body.p22v-project .p22v-legend-line{width:max-content!important;max-width:100%!important;padding:8px 12px!important;border:1px solid var(--p22v-border)!important;border-radius:999px!important;background:#fff!important;box-shadow:0 8px 20px rgba(32,70,115,.05)!important}body.p22v-project .p22v-legend-title{color:var(--p22v-muted)!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-size:13px!important;font-weight:950!important}body.p22v-project .p22v-pill{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:4px 10px!important;border-radius:999px!important;font-size:13px!important;font-weight:850!important;white-space:nowrap!important}.p22v-green{background:#dff8e8!important;color:#087534!important;border:1px solid #b9eccd!important}.p22v-yellow{background:#fff1c7!important;color:#945f00!important;border:1px solid #ffd98b!important}.p22v-red{background:#ffe0e0!important;color:#a71717!important;border:1px solid #ffc1c1!important}.p22v-blue{background:#dceaff!important;color:#0957d8!important;border:1px solid #bed6ff!important}.p22v-gray{background:#edf2f7!important;color:#44566b!important;border:1px solid #d7e1ec!important}body.p22v-project .p22v-action-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:40px!important;padding:8px 18px!important;border-radius:999px!important;border:1px solid var(--p22v-strong)!important;background:#fff!important;color:var(--p22v-text)!important;font-weight:900!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:0 8px 18px rgba(32,70,115,.055)!important;cursor:pointer!important}.p22v-help-icon{width:20px!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:#e8f1ff!important;color:var(--p22v-blue)!important;font-weight:950!important}
body.p22v-project .project-form>.card,body.p22v-project .project-form>section.card,body.p22v-project .section-card,body.p22v-project .sticky-actions{width:100%!important;max-width:none!important;min-width:0!important;margin:0 0 22px!important;box-sizing:border-box!important;border:1px solid var(--p22v-border)!important;border-radius:16px!important;background:#fff!important;overflow:hidden!important}body.p22v-project .section-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;padding:18px 22px!important;background:#edf5ff!important;border-bottom:1px solid var(--p22v-border)!important}body.p22v-project .section-head h3{margin:0 0 6px!important;font-size:21px!important;line-height:1.15!important;color:var(--p22v-text)!important}body.p22v-project .section-head p{margin:0!important;color:var(--p22v-muted)!important;line-height:1.32!important}body.p22v-project .section-grid,body.p22v-project .form-grid{width:100%!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:18px 22px!important;padding:18px 22px!important;align-items:start!important;box-sizing:border-box!important}body.p22v-project .field,body.p22v-project .form-field{min-width:0!important;max-width:none!important;box-sizing:border-box!important}body.p22v-project .field-wide{grid-column:span 2!important}body.p22v-project label{font-weight:900!important;color:#21364d!important}body.p22v-project input,body.p22v-project select,body.p22v-project textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}body.p22v-project .help-text{display:block!important;max-width:100%!important;margin-top:6px!important;color:var(--p22v-muted)!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.p22v-project .p22v-existing-sections-note{display:none;margin:18px 22px 0!important;padding:14px 16px!important;border:1px dashed #b8cfe8!important;border-radius:14px!important;background:#f7fbff!important;color:#344b63!important}body.p22v-project .p22v-existing-sections-note strong{display:block!important;margin-bottom:4px!important;color:#17283a!important}body.p22v-project .p22v-existing-sections-card:not(.is-integration) .p22v-existing-sections-note{display:block!important}body.p22v-project .p22v-existing-sections-card:not(.is-integration) .p22v-existing-sections-body{display:none!important}body.p22v-project .p22v-existing-sections-body{padding:18px 22px 22px!important}body.p22v-project .p22v-existing-topline{display:grid!important;grid-template-columns:minmax(260px,360px) minmax(260px,1fr)!important;gap:16px!important;margin-bottom:16px!important}body.p22v-project .p22v-count-field,body.p22v-project .p22v-project-section-summary{border:1px solid var(--p22v-border)!important;border-radius:14px!important;background:#f8fbff!important;padding:14px!important;box-sizing:border-box!important}body.p22v-project .p22v-count-field input{max-width:160px!important}body.p22v-project .p22v-existing-section-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(620px,100%),1fr))!important;gap:16px!important}body.p22v-project .p22v-existing-section-item{display:grid!important;grid-template-columns:180px minmax(220px,320px) minmax(360px,1fr)!important;gap:16px!important;align-items:start!important;border:1px solid var(--p22v-border)!important;border-radius:16px!important;background:#eef6ff!important;padding:16px!important;box-sizing:border-box!important}body.p22v-project .p22v-section-number{min-height:100%!important;border:1px solid var(--p22v-border)!important;border-radius:14px!important;padding:12px!important;background:#fff!important}body.p22v-project .p22v-section-number strong{display:block!important;font-size:17px!important;line-height:1.1!important;color:#1b3148!important}body.p22v-project .p22v-section-number span{display:inline-flex!important;margin-top:10px!important;padding:5px 9px!important;border-radius:999px!important;background:#e6eef8!important;color:#48617c!important;font-size:12px!important;font-weight:800!important}body.p22v-project .p22v-slot-hidden{display:none!important}body.p22v-project .p22v-existing-section-item textarea{min-height:92px!important;resize:vertical!important}
body.p22v-project .section-materials-advanced{overflow:hidden!important;background:#fffdf8!important}body.p22v-project .tag-cloud{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:16px 22px!important;border-bottom:1px solid var(--p22v-border)!important}.tag-chip{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:5px 12px!important;border-radius:999px!important;border:1px solid #cfe0f2!important;background:#edf5ff!important;color:#20466f!important;font-weight:700!important;white-space:nowrap!important}body.p22v-project .material-table,body.p22v-project .material-table-v2{width:100%!important;max-width:none!important;overflow-x:auto!important;overflow-y:visible!important;box-sizing:border-box!important;padding:14px 22px 12px!important}body.p22v-project .material-table-row-v2{display:grid!important;grid-template-columns:170px 380px minmax(760px,1fr) 120px 160px minmax(340px,.7fr) 90px!important;gap:14px!important;align-items:start!important;width:max(100%,2040px)!important;min-width:2040px!important;box-sizing:border-box!important;transform:none!important}body.p22v-project .material-table-head.material-table-row-v2{padding:12px 14px!important;background:#edf4fd!important;border:1px solid var(--p22v-border)!important;border-radius:12px 12px 0 0!important;color:var(--p22v-text)!important;font-weight:950!important}body.p22v-project .material-form-row.material-table-row-v2{padding:14px!important;min-height:136px!important;background:#edf5ff!important;border-left:1px solid var(--p22v-border)!important;border-right:1px solid var(--p22v-border)!important;border-bottom:1px solid var(--p22v-border)!important;border-radius:0!important;overflow:visible!important}body.p22v-project .material-cell{min-width:0!important;max-width:none!important;box-sizing:border-box!important;position:static!important;transform:none!important;overflow:visible!important}.material-cell-category{grid-column:1!important}.material-cell-product{grid-column:2!important}.material-cell-detail{grid-column:3!important}.material-cell-qty{grid-column:4!important}.material-cell-status{grid-column:5!important}.material-cell-notes{grid-column:6!important}.material-row-actions{grid-column:7!important;position:static!important;transform:none!important;min-width:0!important}body.p22v-project .material-cell-category select,body.p22v-project .material-cell-product select,body.p22v-project .material-cell-qty input,body.p22v-project .material-cell-status select,body.p22v-project .material-cell-notes input,body.p22v-project .material-cell-notes textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}body.p22v-project .material-cell-detail{display:grid!important;grid-template-columns:minmax(280px,.78fr) minmax(560px,1.45fr)!important;gap:12px 16px!important;align-items:start!important}body.p22v-project .material-detail-summary{grid-column:1!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;border:1px dashed #c9ddef!important;background:#f7fbff!important;border-radius:12px!important;padding:12px!important}body.p22v-project .material-detail-manual-grid{grid-column:2!important;display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(280px,1.35fr) 110px!important;gap:10px 14px!important;align-items:start!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}body.p22v-project .material-detail-manual-grid>div{min-width:0!important;max-width:none!important;position:static!important;transform:none!important}body.p22v-project .material-detail-manual-grid label{display:block!important;margin:0 0 6px!important;line-height:1.15!important;white-space:normal!important;font-size:13px!important;color:#4e6680!important}body.p22v-project .material-detail-manual-grid input,body.p22v-project .material-detail-manual-grid select{width:100%!important;max-width:100%!important;min-width:0!important;position:static!important;transform:none!important}body.p22v-project .material-detail-summary strong{display:block!important;margin-bottom:6px!important;color:#17283a!important;line-height:1.15!important}body.p22v-project .material-detail-summary small{display:block!important;color:#58718c!important;line-height:1.25!important}body.p22v-project .material-form-row small,body.p22v-project .material-form-row .help-text{display:block!important;max-width:100%!important;margin-top:6px!important;white-space:normal!important;overflow-wrap:anywhere!important}body.p22v-project .material-actions{display:flex!important;justify-content:flex-end!important;padding:14px 22px 20px!important}.mini-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:6px 10px!important;border-radius:999px!important;background:#dfeeff!important;color:#0c60e8!important;font-weight:900!important;font-size:12px!important}
body .filter-card,body .filter-panel,body .filters-card,body .table-card,body .dashboard-card,body .list-card{max-width:none!important;width:100%!important}body .filter-grid,body .filters,body .filter-panel form,body form.filters,body .table-filters{width:100%!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:14px 18px!important;box-sizing:border-box!important}body .filter-grid .field,body .filters .field,body form.filters .field,body .table-filters .field{flex:0 1 240px!important;min-width:170px!important;max-width:360px!important}.p22v-modal[hidden]{display:none!important}.p22v-modal{position:fixed!important;inset:0!important;z-index:99999!important;display:grid!important;place-items:center!important;padding:28px!important}.p22v-modal__backdrop{position:absolute!important;inset:0!important;background:rgba(8,22,38,.45)!important}.p22v-modal__dialog{position:relative!important;width:min(940px,calc(100vw - 56px))!important;max-height:calc(100vh - 80px)!important;overflow:auto!important;background:#fff!important;border:1px solid var(--p22v-border)!important;border-radius:18px!important;box-shadow:0 30px 90px rgba(0,0,0,.24)!important}.p22v-modal__head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;padding:18px 22px!important;background:#f7fbff!important;border-bottom:1px solid var(--p22v-border)!important}.p22v-modal__head h2{margin:0!important;font-size:22px!important}.p22v-modal__close{width:38px!important;height:38px!important;border-radius:50%!important;border:1px solid var(--p22v-strong)!important;background:#fff!important;font-size:24px!important;font-weight:900!important;cursor:pointer!important}.p22v-modal__body{padding:22px!important;color:var(--p22v-text)!important;line-height:1.45!important}@media(max-width:1200px){body.p22v-project .field-wide{grid-column:1/-1!important}body.p22v-project .p22v-existing-topline,body.p22v-project .p22v-existing-section-item{grid-template-columns:1fr!important}body.p22v-project .material-table-row-v2{width:1780px!important;min-width:1780px!important;grid-template-columns:150px 330px 690px 110px 145px 275px 80px!important}body.p22v-project .material-cell-detail{grid-template-columns:245px 430px!important}body.p22v-project .material-detail-manual-grid{grid-template-columns:140px 210px 80px!important}}
