/* Operational requests, site visit creation and detailed transport loads · 16/10/2026 */
.pm-interventions-panel .panelhead{align-items:center;gap:12px}
.pm-interventions-panel .panelhead button{min-height:36px}
.pm-intervention-group{display:grid;gap:8px;margin:8px 0 20px}
.pm-intervention-group h3{font-size:13px;margin:0 0 4px;color:var(--text,#27384a)}
.pm-intervention-group h3 small{font-size:10px;opacity:.7}
.pm-intervention-card{
 border:1px solid #9da5ad;border-radius:11px;padding:11px 12px;
 background:linear-gradient(120deg,#bfc8d1,#b3bfcb);color:#243243;min-width:0;
}
.pm-intervention-card.is-urgent{border-left:4px solid #c23447}
.pm-intervention-summary{display:flex;gap:10px;align-items:center;min-width:0}
.pm-intervention-icon{display:grid;place-items:center;flex:0 0 23px;height:23px;border-radius:7px;background:#954257;color:#fff;font-size:15px;font-weight:800}
.pm-intervention-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pm-intervention-main strong{font-size:12px;line-height:1.25;color:#263343}
.pm-intervention-main small{font-size:10px;color:#46586b}
.pm-intervention-priority{font-size:10px;font-weight:800;padding:3px 7px;border-radius:6px;background:#d0bac1;color:#7a2c3c}
.pm-intervention-meta{display:flex;gap:5px;flex-wrap:wrap;padding:8px 0 3px}
.pm-intervention-meta span{font-size:10px;padding:3px 7px;border-radius:6px;background:#d0d6dc;color:#3c4e5e}
.pm-intervention-card p{margin:5px 0 8px;font-size:11px;line-height:1.4;color:#435366}
.pm-intervention-card button{min-height:32px;font-size:11px;padding:5px 10px}
.pm-intervention-history{margin:10px 0}
.pm-intervention-history summary{cursor:pointer;font-size:12px;font-weight:750;margin:9px 0}
.pm-intervention-form>label,.pm-load-form>label,.survey-new-form>label{display:grid;gap:6px;font-size:12px;font-weight:700}
.pm-intervention-form textarea{min-height:72px;margin:0;line-height:1.4}
.pm-intervention-form .pm-form-grid,.survey-new-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pm-intervention-form .pm-form-grid label,.survey-new-cols label{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:0}
.pm-intervention-form small{font-size:11px;line-height:1.45;color:var(--muted,#707988)}
.pm-intervention-form [hidden]{display:none!important}
.survey-new-head p{font-size:12px;line-height:1.5;margin:0 0 14px}
.survey-new-form{gap:12px}
.survey-new-actions{display:flex;justify-content:flex-end;gap:9px}
.pm-load-heading{background:#383f49;color:#f3f4f7;margin:-6px -8px 13px;padding:12px;border-radius:10px}
.pm-load-heading h2{font-size:20px;letter-spacing:-.4px;color:#fff;margin:4px 0}
.pm-load-heading p{font-size:12px;margin:3px 0;color:#d8e1ed}
.pm-load-progress{font-size:12px;font-weight:700}
.pm-load-table{margin:12px 0}
.pm-load-table table{font-size:12px;min-width:0}
.pm-load-table td,.pm-load-table th{padding:9px 8px}
.pm-load-table td:last-child{white-space:nowrap}
.pm-load-table td button{font-size:10px;padding:4px 7px}
.pm-load-note{display:block;white-space:normal;font-size:10px;color:var(--muted,#697889)}
.pm-load-form{background:rgba(125,135,146,.16);border:1px solid var(--line,#7a8a9a);border-radius:11px;padding:12px;gap:9px}
.pm-load-form h3,.pm-load-notes h3{font-size:14px}
.pm-load-form textarea{min-height:64px;margin:0}
.pm-load-inputs{display:grid;grid-template-columns:minmax(0,2fr) 100px 86px;gap:9px}
.pm-load-inputs label{display:grid;gap:5px;min-width:0}
.pm-load-notes,.pm-load-logistics{border-top:1px solid var(--line,#a0a0ad);padding:12px 0;margin:10px 0}
.pm-load-notes p{font-size:12px;line-height:1.5}
.pm-load-notes a{display:inline-block;padding:10px;font-size:12px}
.pm-load-noterow{padding:9px 0;border-bottom:1px solid var(--line,#888)}
.pm-load-logistics summary{font-size:12px;font-weight:800;cursor:pointer}
.pm-load-logistics textarea{min-height:65px;margin:0}
.pm-request-backlog .panelbody{display:grid;gap:6px}
.pm-request-backlog-row{display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:10px 12px;border:1px solid #7b8693;border-radius:9px;text-decoration:none;background:#363f4a;color:#fff}
.pm-request-backlog-row>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.pm-request-backlog-row strong{font-size:12px;color:#f3f5f7}
.pm-request-backlog-row small{font-size:11px;color:#d2dce5}
.pm-request-backlog-row>span:last-child{color:#e46a7e}
@media(max-width:700px){
 .pm-intervention-form .pm-form-grid,.survey-new-cols{grid-template-columns:1fr;gap:8px}
 .pm-intervention-card{padding:9px;border-radius:9px}
 .pm-intervention-meta span{font-size:9px}
 .pm-load-inputs{grid-template-columns:minmax(0,1fr) 83px 77px;gap:5px}
 .pm-load-table td,.pm-load-table th{padding:6px 4px;font-size:10px}
 .pm-load-table td button{padding:4px 5px}
 .survey-new-actions button{min-height:42px}
 .pm-interventions-panel .panelhead h2{font-size:16px}
 .pm-interventions-panel .panelhead button{font-size:11px;min-height:35px;padding:6px 10px}
}

/* 22/10/2026 — clear save actions in survey forms and safe in-app back button. */
#editor .survey-save-bar{
 position:sticky;top:0;z-index:12;display:grid;gap:6px;
 background:var(--panel,#b5bfca);border:1px solid var(--line,#8d99a8);
 border-radius:11px;padding:11px;box-shadow:0 5px 18px rgba(18,27,38,.18);
 margin:0 0 12px;
}
#editor .survey-save-help{font-size:12px;line-height:1.35;color:var(--pm-ink-soft,#37465a);margin:0}
#editor .survey-save-controls{display:flex;gap:10px;align-items:center}
#editor .survey-save-controls button{min-height:46px}
#editor .survey-save-controls [data-survey-submit]{flex:1;font-weight:800}
#editor .survey-save-error{margin:0;line-height:1.4}
#editor .survey-save-error:empty{display:none}
.page-message.is-success:not(:empty){background:#e9f6ec;border:1px solid #98c9ab;color:#1e613d;border-radius:9px}
.shell header{position:relative}
.shell header .pm-nav-back{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 border:1px solid #afbbc9;border-radius:9px;background:rgba(225,232,239,.9);
 color:#223346;font-size:13px;font-weight:700;min-height:39px;padding:8px 13px;
}
.shell header .pm-nav-back:hover{background:#eff3f7;color:#15283a}
@media(min-width:701px){.shell header .pm-nav-back{position:absolute;left:20px;top:16px;z-index:3}}
@media(max-width:700px){
 .shell header .pm-nav-back{order:-2;flex:0 0 auto;margin:0;font-size:13px;min-height:42px}
 #editor .survey-save-bar{padding:10px;top:0}
 #editor .survey-save-controls button{font-size:14px}
}
.workspace-navigation{display:flex;flex-direction:row;align-items:center;margin:0 0 18px;gap:8px;flex-wrap:wrap}
.workspace-navigation a{min-height:44px;display:inline-flex;align-items:center}
.workspace-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 24px}
.workspace-cards>a{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #84909e;border-radius:14px;background:var(--panel,#e5e9ee);color:inherit;text-decoration:none;min-height:140px}
.workspace-cards strong{font-size:1.15rem}.workspace-cards small{margin-top:auto;font-weight:700}
.workspace-cards a:hover,.workspace-cards a:focus-visible{border-color:#a6193c;box-shadow:0 0 0 2px #a6193c33}
.quote-views{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.summary-row{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #9ba5b0;padding:14px 4px;color:inherit;text-decoration:none}
.summary-row p{margin:0}.summary-detail-content{max-width:100%;overflow-wrap:anywhere}
button.stat,button.account-summary,button.inventory-summary{cursor:pointer;text-align:left;color:inherit;background:var(--panel,#e5e9ee);border:1px solid #84909e;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;min-height:110px}
button.stat strong,button.account-summary strong{font-size:1.55rem}
button.stat small,button.account-summary small{font-size:.8rem;font-weight:600}
button[data-summary]:hover,button[data-summary]:focus-visible{border-color:#a6193c;box-shadow:0 0 0 2px #a6193c33}
.settings-link{display:block;padding:12px 0;color:inherit;font-size:.9rem}
.document-nav label{min-width:min(100%,280px)}
@media(max-width:700px){.workspace-cards{grid-template-columns:1fr;gap:10px}.workspace-cards>a{min-height:110px;padding:16px}.workspace-navigation{gap:5px;margin-bottom:12px}.workspace-navigation a{padding:8px 11px;font-size:.9rem}.stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}button.stat,button.account-summary{padding:12px;min-height:100px}}
.shell>header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;min-height:82px;padding:10px 24px!important}
.shell>header .pm-nav-back{position:static;flex:0 0 auto;margin:0}
.shell>header .desktop-logo{display:block;flex:0 1 210px;max-width:210px}
.shell>header .desktop-logo img{display:block;width:100%;max-height:60px;object-fit:contain}
.shell>header>span{display:none}
aside .account-actions{position:static!important;justify-content:flex-end;width:100%;margin:0 0 10px;gap:4px}
.asidebottom{display:block}
.workspace-cards a,.workspace-cards a span,.workspace-cards a small{color:#243344!important}
button[data-summary],button[data-summary] span,button[data-summary] small{color:#243344!important}
.pm-h3-event[href]{color:inherit;text-decoration:none}
.pm-h3-event[href]:hover,.pm-h3-event[href]:focus-visible{outline:2px solid #a6193c;outline-offset:2px}
@media(max-width:700px){.shell>header{min-height:54px;padding:6px 12px!important}.shell>header .desktop-logo{display:none}body[data-area] aside{min-height:94px;padding:4px 12px 10px}body[data-area] aside .brand{max-width:190px;width:60%;padding:0;margin:0 auto}aside .account-actions{margin-bottom:2px;min-height:30px}aside .account-actions button{min-height:30px}.workspace-navigation a{color:#243344}.settings-link{min-height:44px}}

.pm-operation-context{margin:1rem 0}.pm-operation-context>summary{cursor:pointer;font-weight:700;list-style:disclosure-closed}.pm-operation-context[open]>summary{list-style:disclosure-open}.pm-context-dialog{width:min(680px,94vw);max-height:88vh;overflow:auto;padding:1.25rem}.pm-context-dialog .fields{display:grid;gap:.8rem}

.context-document>strong{display:block;line-height:1.35;overflow-wrap:anywhere;font-size:1rem}.context-original-path{font-size:.85rem;margin:.25rem 0}.context-document{margin:.65rem 0;padding:.85rem}.context-document>p{margin:.5rem 0}

.pm-document-editor{width:min(1080px,96vw);max-height:94vh;overflow:auto}.pm-document-editor textarea[name=body]{min-height:44vh;white-space:pre-wrap;font-size:16px;line-height:1.55}.document-editor-actions{position:sticky;top:0;background:var(--surface,#e2e8ef);padding:12px;z-index:2;flex-wrap:wrap}.pm-document-editor .note-body{white-space:pre-wrap;max-height:45vh;overflow:auto}


/* Office task navigation: clear action, consistent with the approved grey theme. */
.pm-office-tasks{padding:14px 0 20px}
.pm-office-tasks>h2{font-size:1.3rem;margin:0 0 6px;font-weight:800;color:#f5f8fc}
.pm-office-tasks>p{font-size:.96rem;line-height:1.5;margin:0 0 12px;color:#f5f8fc}
.pm-office-tasks .workspace-cards{margin:0 0 10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.pm-office-tasks .workspace-cards>a{
 min-height:119px;padding:17px 19px;gap:5px;
 border:1px solid #8494a4;background:#c1cad4;color:#203040;
 box-shadow:0 3px 10px rgba(24,35,49,.08);
}
.pm-office-tasks .workspace-cards>a:hover,.pm-office-tasks .workspace-cards>a:focus-visible{
 background:#d1d8df;border-color:#657687;outline:2px solid #a72d43;outline-offset:2px;
}
.pm-office-tasks .workspace-cards strong{font-size:1.08rem}
.pm-office-tasks .workspace-cards span{font-size:.93rem;line-height:1.45;color:#3a4a5b}
.pm-office-tasks .workspace-cards small{font-size:.83rem;color:#843044;margin-top:auto}
/* The indexed full-archive search still differs from the Documents folder browser. */
.pm-office-archive-search{margin:0 0 16px}
.pm-office-archive-search>summary{display:list-item;min-height:44px;padding:11px 14px;color:#182432;line-height:1.35}
.pm-office-archive-search>summary:hover{background:#c5cfd9}
.pm-office-archive-search>summary:focus-visible{outline:3px solid #182432;outline-offset:-4px}
.pm-office-archive-search[open]>summary{border-bottom:1px solid #8d99a8}
.pm-office-archive-search .actions>a{min-height:44px}

@media(max-width:700px){
 .pm-office-tasks{padding:8px 0 13px}
 .pm-office-tasks .workspace-cards{grid-template-columns:1fr;gap:9px}
 .pm-office-tasks .workspace-cards>a{padding:15px;min-height:98px}
}


/* Cantieri: immediate task shortcuts instead of scanning every detail panel. */
.pm-site-shortcuts{display:grid;gap:10px;padding:13px 16px;margin:6px 0 16px;border:1px solid rgba(90,107,120,.38);border-radius:12px;background:rgba(125,141,152,.15)}
.pm-site-shortcuts>strong{font-size:1rem}
.pm-site-shortcuts .actions{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.pm-site-shortcuts button{min-height:47px;padding:10px 14px;line-height:1.35;border-radius:9px}
.pm-site-shortcuts button:focus-visible{outline:3px solid #a72d43;outline-offset:2px}
.site-quantity-section,.pm-site-materials,.pm-site-accounting,.chappy-files{scroll-margin-top:20px}
@media(max-width:650px){
 .pm-site-shortcuts{padding:11px 12px}
 .pm-site-shortcuts .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .pm-site-shortcuts button{width:100%;min-height:54px;padding:8px 9px;font-size:.92rem}
}

/* Cantieri detail only: primary action stays visible, secondary actions are a disclosure. */
#page .pm-site-detail-back {display:inline-flex;align-items:center;min-height:28px;margin-bottom:6px;color:#f4f6f9}
#page .pm-site-detail-back:hover {text-decoration:underline}
#page .pm-site-detail-heading .pm-site-detail-title {min-width:0;overflow-wrap:anywhere}
#page .pm-site-detail-title p>strong {color:inherit}
#page .pm-site-detail-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%;flex-shrink:0}
#page .pm-site-detail-actions>button,#page .pm-site-detail-menu>summary {
 min-height:44px;white-space:nowrap;padding:8px 12px;font-size:.875rem;
}
#page .pm-site-detail-menu {position:relative}
#page .pm-site-detail-menu>summary {
 display:flex;align-items:center;gap:8px;cursor:pointer;border:1px solid #929eac;border-radius:10px;list-style:none;
}
#page .pm-site-detail-menu>summary::-webkit-details-marker {display:none}
#page .pm-site-detail-menu>summary::after {
 content:"";inline-size:6px;block-size:6px;margin-inline-start:2px;
 border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);
}
#page .pm-site-detail-menu[open]>summary::after {transform:translateY(2px) rotate(225deg)}
#page .pm-site-detail-options {
 position:absolute;z-index:10;inset-block-start:calc(100% + 5px);inset-inline-end:0;
 display:grid;gap:3px;min-width:min(198px,calc(100vw - 40px));
 padding:5px;border:1px solid #8997a5;border-radius:10px;background:#e1e7ed;box-shadow:0 8px 22px #121b2a40;
}
@media (max-width:950px) {
 #page .pm-site-detail-menu:first-child .pm-site-detail-options {inset-inline-start:0;inset-inline-end:auto}
}
#page .pm-site-detail-options button {
 width:100%;min-height:44px;padding:8px 10px;border:1px solid transparent;background:transparent;
 color:#17212e;text-align:start;
}
#page .pm-site-detail-options button:hover {background:#c9d4df}
#page .pm-site-detail-heading .pm-site-detail-actions :is(button,summary):focus-visible {
 outline:2px solid #17212e;outline-offset:2px;box-shadow:0 0 0 2px #f4f6f9;
}
@media (min-width:701px) {
 #page .pm-site-detail-facts {grid-template-columns:minmax(0,min(34%,17rem)) minmax(0,1fr)}
}
/* The edit sheet's floated close button must not be covered by its heading on touch screens. */
@media (max-width:700px) {
 #editor:has(#siteform[data-site-detail-edit]) {width:min(100%,100svw);max-width:100svw}
 #editor:has(#siteform[data-site-detail-edit])>form[method="dialog"] {display:flow-root}
}
