:root{--ink:#14231e;--muted:#66766f;--green:#0c6649;--green-dark:#074434;--green-soft:#e2f1e9;--blue:#24719f;--blue-soft:#e5f1f8;--amber:#a76600;--amber-soft:#fff0cf;--red:#aa3434;--red-soft:#fff0f0;--line:#d8e1dc;--surface:#fff;--page:#f4f6f3;--shadow:0 12px 34px rgba(11,44,34,.1);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}html{min-height:100%;background:var(--page)}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(180deg,#eef4f0 0,#f7f8f6 230px);color:var(--ink)}button,input,textarea,select{font:inherit}button{touch-action:manipulation}.app-header{position:sticky;z-index:30;top:0;min-height:70px;padding:.62rem clamp(1rem,4vw,3.2rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(110deg,#061d19,#084b3d);color:#fff;box-shadow:0 4px 18px rgba(4,36,29,.25)}.brand{min-width:0;display:flex;align-items:center;gap:.72rem;color:inherit;text-decoration:none}.brand img{width:60px;height:46px;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.35))}.brand span,.brand strong,.brand small{display:block}.brand strong{font-size:.9rem;letter-spacing:.02em}.brand small{margin-top:.08rem;color:#b9d6cc;font-size:.62rem}.header-actions{display:flex;align-items:center;gap:.55rem}.ghost-button,.sync-button,.text-button{border:1px solid rgba(255,255,255,.35);border-radius:9px;background:transparent;color:inherit;font-size:.7rem;font-weight:800;cursor:pointer}.ghost-button,.sync-button{min-height:38px;padding:.5rem .72rem}.sync-button{display:flex;align-items:center;gap:.35rem;background:#ffffff12}.sync-button.syncing span:first-child{animation:spin .75s linear infinite}.sync-button:disabled{opacity:.65}.app-main{width:min(1440px,100%);margin:auto;padding:clamp(1rem,3vw,2.25rem)}.hero{position:relative;overflow:hidden;min-height:175px;padding:clamp(1.35rem,4vw,2.4rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;border-radius:20px;background:linear-gradient(120deg,#06382c,#0a6b4e);color:#fff;box-shadow:var(--shadow)}.hero::after{content:"1C";position:absolute;right:4%;top:50%;transform:translateY(-52%);color:#ffffff0c;font-size:11rem;font-weight:950}.hero>div,.hero-create{position:relative;z-index:1}.eyebrow{display:block;color:#3ed69d;text-transform:uppercase;letter-spacing:.16em;font-size:.62rem;font-weight:900}.hero h1{margin:.35rem 0 .45rem;font-size:clamp(2.15rem,5vw,4rem);line-height:1}.hero p{max-width:620px;margin:0;color:#d3e9e1;font-size:clamp(.78rem,1.5vw,1rem);line-height:1.5}.primary-button,.secondary-button{min-height:40px;padding:.58rem .86rem;border-radius:9px;font-size:.72rem;font-weight:900;cursor:pointer}.primary-button{border:1px solid var(--green);background:var(--green);color:#fff;box-shadow:0 5px 12px #063d2b2b}.primary-button:hover{background:var(--green-dark)}.secondary-button{border:1px solid #abc3b8;background:#fff;color:var(--green)}.secondary-button:hover{background:#eef6f2}.hero-create{border-color:#fff;background:#fff;color:var(--green-dark);box-shadow:0 8px 22px rgba(0,0,0,.2)}.hero-create:hover{background:#e9f6f0}.connection-panel{margin:.8rem 0;min-height:55px;padding:.65rem .8rem;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:12px;background:#fff}.connection-dot{width:11px;height:11px;border-radius:50%;background:#a5afa9;box-shadow:0 0 0 4px #a5afa922}.connection-panel.online .connection-dot{background:#20a465;box-shadow:0 0 0 4px #20a46522}.connection-panel.offline .connection-dot{background:#d58916;box-shadow:0 0 0 4px #d5891622}.connection-panel strong,.connection-panel small{display:block}.connection-panel strong{font-size:.72rem}.connection-panel small{margin-top:.12rem;color:var(--muted);font-size:.61rem}.pending-sync-badge{padding:.32rem .52rem;border-radius:999px;background:#eff4f1;color:#53655c;font-size:.61rem;font-weight:800}.pending-sync-badge.has-pending{background:var(--amber-soft);color:#8a5607}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-bottom:.8rem}.summary-card{min-width:0;min-height:90px;padding:.72rem;display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 5px 14px rgba(13,54,40,.06);transition:transform .16s ease,border-color .16s ease}.summary-card:hover{transform:translateY(-1px)}.summary-card.active{border-width:2px}.summary-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:11px;font-size:.72rem;font-weight:950}.summary-card>span:nth-child(2),.summary-card strong,.summary-card small{min-width:0;display:block}.summary-card strong{font-size:.78rem}.summary-card small{margin-top:.14rem;color:var(--muted);font-size:.59rem;line-height:1.25}.summary-card>b{font-size:1.55rem}.open-card{background:linear-gradient(135deg,#f4fbf7,#fff);border-color:#b8d5c7}.open-card .summary-icon{background:var(--green-soft);color:var(--green)}.open-card.active{border-color:var(--green)}.delayed-card{background:linear-gradient(135deg,#fff9ed,#fff);border-color:#ead19f}.delayed-card .summary-icon{background:var(--amber-soft);color:var(--amber)}.delayed-card>b{color:var(--amber)}.delayed-card.active{border-color:var(--amber)}.pending-card{background:linear-gradient(135deg,#f4f9fd,#fff);border-color:#c0d6e4}.pending-card .summary-icon{background:var(--blue-soft);color:var(--blue)}.pending-card>b{color:var(--blue)}.pending-card.active{border-color:var(--blue)}.red-outline-card{background:linear-gradient(135deg,#fff5f5,#fff);border-color:#f2b8b8;color:#8c2323}.red-outline-card .summary-icon{background:var(--red-soft);color:var(--red)}.red-outline-card>b{color:var(--red)}.red-outline-card.active{border-color:var(--red)}.records-panel{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(13,54,40,.06)}.records-toolbar{padding:.75rem .85rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-bottom:1px solid var(--line)}.records-toolbar h2,.records-toolbar small{display:inline}.records-toolbar h2{margin:0 .4rem 0 0;font-size:.94rem}.records-toolbar small{color:var(--muted);font-size:.62rem}.list-actions{display:flex;align-items:center;gap:.5rem}.search-field{position:relative;width:min(330px,38vw)}.search-field span{position:absolute;left:.65rem;top:50%;transform:translateY(-54%);color:var(--muted)}.search-field input{width:100%;height:38px;padding:.45rem .65rem .45rem 1.95rem;border:1px solid #cad6d0;border-radius:8px;background:#fbfcfb;font-size:.68rem}.text-button{min-height:36px;padding:.45rem .65rem;border-color:#b9cec4;color:var(--green);white-space:nowrap}.records-list{display:grid}.record-card{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(125px,.85fr) minmax(150px,1fr) minmax(220px,1.5fr) auto;gap:.7rem;align-items:center;padding:.78rem .85rem;border-bottom:1px solid var(--line)}.record-card:last-child{border-bottom:0}.record-card:hover{background:#f8fbf9}.record-cell small,.record-cell strong,.record-cell span{display:block}.record-cell small{margin-bottom:.16rem;color:var(--muted);font-size:.54rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.record-cell strong{font-size:.7rem;line-height:1.35}.record-cell span{color:#4f6259;font-size:.65rem;line-height:1.4}.record-product strong{overflow-wrap:anywhere}.record-status{display:inline-flex!important;width:max-content;padding:.28rem .5rem;border-radius:999px;font-size:.6rem!important;font-weight:900}.record-status.pending{background:var(--amber-soft);color:#895700}.record-status.completed{background:var(--green-soft);color:var(--green)}.record-actions{display:flex;gap:.35rem}.icon-button{width:35px;height:35px;display:grid;place-items:center;border:1px solid #b8cec3;border-radius:8px;background:#fff;color:var(--green);cursor:pointer}.icon-button.delete{border-color:#e0bcbc;color:var(--red)}.icon-button:hover{background:#eef6f2}.icon-button.delete:hover{background:var(--red-soft)}.record-defect{grid-column:1/-1;margin:-.28rem 0 0;padding:.5rem .65rem;border-radius:8px;background:#f4f7f5}.record-defect small{margin:0 0 .12rem;color:var(--muted);font-size:.54rem;text-transform:uppercase;font-weight:900}.record-defect strong{font-size:.67rem;line-height:1.45}.empty-state{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.32rem;color:var(--muted);text-align:center}.empty-state>span{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--green-soft);color:var(--green);font-size:.72rem;font-weight:900}.empty-state strong{color:var(--ink);font-size:.78rem}.empty-state small{font-size:.64rem}.mobile-create{display:none;position:fixed;z-index:35;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));width:54px;height:54px;border:0;border-radius:50%;background:var(--green);color:#fff;font-size:1.55rem;box-shadow:0 8px 22px rgba(5,63,44,.35)}dialog{border:0;padding:0}.editor-dialog{width:min(1180px,96vw);max-height:94vh;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.48)}dialog::backdrop{background:rgba(2,27,21,.72);backdrop-filter:blur(3px)}#oneCallForm{height:min(94vh,930px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.dialog-header{padding:.8rem 1rem;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}.dialog-header h2{margin:.25rem 0 0;font-size:1.2rem}.close-button{width:38px;height:38px;border:0;border-radius:50%;background:#edf2ef;color:#31483e;font-size:1.35rem;cursor:pointer}.form-scroll{overflow:auto;padding:.8rem 1rem}.form-section{margin-bottom:.72rem;padding:.72rem;border:1px solid var(--line);border-radius:12px;background:#fff}.basic-section{display:grid;gap:.65rem}.form-grid{display:grid;gap:.65rem}.four-columns{grid-template-columns:repeat(4,minmax(0,1fr))}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.form-section label,.participant-add label{display:grid;gap:.22rem;color:#263d33;font-size:.67rem;font-weight:850}.form-section input,.form-section textarea,.form-section select,.participant-add input,.cause-card input,.cause-card textarea,.cause-card select{width:100%;min-height:39px;padding:.48rem .58rem;border:1px solid #c9d5cf;border-radius:8px;background:#fff;color:var(--ink);font-size:.7rem}.form-section textarea,.cause-card textarea{resize:vertical}.form-section input:focus,.form-section textarea:focus,.form-section select:focus,.participant-add input:focus,.cause-card input:focus,.cause-card textarea:focus,.cause-card select:focus{outline:2px solid #2f88682b;border-color:#438e73}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.section-heading strong,.section-heading small{display:block}.section-heading strong{font-size:.76rem}.section-heading small{margin-top:.12rem;color:var(--muted);font-size:.59rem}.participant-add{display:grid;grid-template-columns:1.2fr .8fr auto;align-items:end;gap:.55rem}.chip-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.55rem}.participant-chip{display:flex;align-items:center;gap:.4rem;padding:.35rem .45rem;border:1px solid #bed2c8;border-radius:9px;background:#f4f9f6}.participant-chip>b{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:.58rem}.participant-chip span,.participant-chip strong,.participant-chip small{display:block}.participant-chip strong{font-size:.64rem}.participant-chip small{margin-top:.05rem;color:var(--muted);font-size:.54rem}.participant-chip button{border:0;background:transparent;color:var(--red);font-size:1rem;cursor:pointer}.camera-button{position:relative;overflow:hidden;min-height:38px;padding:.5rem .7rem;display:inline-flex!important;align-items:center;border:1px solid #aac7b9;border-radius:8px;background:#f7fbf9;color:var(--green);white-space:nowrap;cursor:pointer}.camera-button input{position:absolute!important;inset:0;opacity:0;cursor:pointer}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:.55rem}.image-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#f4f7f5}.image-card>button:first-child{width:100%;padding:0;border:0;background:#edf3ef;cursor:pointer}.image-card img{width:100%;height:105px;display:block;object-fit:cover}.image-card small{display:block;padding:.3rem .38rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.55rem}.image-card .remove-image{position:absolute;right:.28rem;top:.28rem;width:27px;height:27px;border:0;border-radius:50%;background:#9f2929;color:#fff;cursor:pointer}.causes-editor-list{display:grid;gap:.6rem}.cause-card{position:relative;padding:.65rem;border:1px solid #cbd8d2;border-radius:10px;background:#f8faf9}.cause-card header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.cause-card header strong{font-size:.69rem}.cause-card header button{border:0;background:transparent;color:var(--red);font-size:.7rem;font-weight:900;cursor:pointer}.cause-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.cause-grid label{display:grid;gap:.18rem;font-size:.59rem;font-weight:800}.cause-grid .wide{grid-column:span 2}.cause-grid textarea{min-height:66px}.validation-section{background:#f5faf7}.complete-toggle{margin-top:.65rem;padding:.58rem;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:.55rem;border:1px solid #bdd2c8;border-radius:9px;background:#fff}.complete-toggle input{width:18px!important;min-height:18px!important}.complete-toggle span,.complete-toggle strong,.complete-toggle small{display:block}.complete-toggle strong{font-size:.67rem}.complete-toggle small{color:var(--muted);font-size:.56rem}.form-error{margin-top:.65rem;padding:.62rem .7rem;border:1px solid #e2b5b5;border-left:4px solid var(--red);border-radius:8px;background:var(--red-soft);color:#842b2b;font-size:.67rem;font-weight:750}.dialog-actions{padding:.72rem 1rem;display:flex;align-items:center;justify-content:flex-end;gap:.55rem;border-top:1px solid var(--line);background:#fafcfb}.image-viewer{width:min(1100px,96vw);max-height:94vh;padding:.7rem;border-radius:14px;background:#07130f;color:#fff;box-shadow:0 25px 80px rgba(0,0,0,.65)}.image-viewer header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 0 .55rem}.image-viewer strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.viewer-close{padding:.45rem .68rem;border:1px solid #ffffff70;border-radius:8px;background:#fff;color:#16251f;font-size:.68rem;font-weight:900;cursor:pointer}.image-viewer img{width:100%;max-height:82vh;display:block;object-fit:contain;border-radius:8px;background:#020604}.toast{position:fixed;z-index:80;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));max-width:min(520px,90vw);padding:.65rem .85rem;transform:translate(-50%,30px);border-radius:9px;background:#122b22;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.28);font-size:.68rem;font-weight:750;opacity:0;pointer-events:none;transition:.2s ease}.toast.show{transform:translate(-50%,0);opacity:1}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.four-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.cause-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-card{grid-template-columns:repeat(4,minmax(0,1fr))}.record-actions{grid-column:4;grid-row:1}.record-status-cell{grid-column:3}.record-defect{grid-column:1/-1}}
@media(max-width:700px){.app-header{min-height:62px;padding:.45rem .72rem}.brand img{width:48px;height:39px}.brand strong{font-size:.76rem}.brand small{font-size:.54rem}.ghost-button{display:none}.sync-button span:last-child{display:none}.sync-button{width:40px;justify-content:center;padding:.45rem}.app-main{padding:.72rem .65rem 2rem}.hero{min-height:190px;padding:1.15rem;border-radius:15px;align-items:flex-start;justify-content:center;flex-direction:column}.hero h1{font-size:2.35rem}.hero p{padding-right:0;font-size:.72rem}.hero-create{width:100%;margin-top:.25rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.connection-panel{grid-template-columns:auto 1fr;padding:.55rem .65rem}.pending-sync-badge{grid-column:2;width:max-content}.summary-grid{grid-template-columns:1fr;gap:.55rem}.summary-card:last-child{grid-column:auto}.summary-card{min-height:76px}.records-toolbar{align-items:stretch;flex-direction:column}.list-actions{width:100%}.search-field{width:100%}.record-card{grid-template-columns:repeat(2,minmax(0,1fr));padding:.68rem}.record-actions{grid-column:2;grid-row:1;justify-content:flex-end}.record-status-cell{grid-column:auto}.record-defect{grid-column:1/-1}.mobile-create{display:none}.editor-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.editor-dialog #oneCallForm{height:100dvh}.dialog-header{padding:.65rem .72rem}.form-scroll{padding:.6rem}.form-section{padding:.58rem}.four-columns,.two-columns{grid-template-columns:1fr}.participant-add{grid-template-columns:1fr}.participant-add .secondary-button{width:100%}.section-heading{align-items:stretch;flex-direction:column}.camera-button,.section-heading .secondary-button{justify-content:center}.cause-grid{grid-template-columns:1fr}.cause-grid .wide{grid-column:auto}.dialog-actions{padding:calc(.65rem) .72rem calc(.65rem + env(safe-area-inset-bottom))}.dialog-actions>*{flex:1}.image-viewer{width:100vw;height:100dvh;max-height:none;border-radius:0}.image-viewer img{height:calc(100dvh - 65px);max-height:none}.toast{bottom:calc(1rem + env(safe-area-inset-bottom))}}
@media(max-width:420px){.brand span{max-width:150px}.record-card{grid-template-columns:1fr auto}.record-card>.record-cell:nth-child(2),.record-card>.record-cell:nth-child(3),.record-card>.record-cell:nth-child(4),.record-status-cell{grid-column:1}.record-actions{grid-column:2;grid-row:1/3}.record-defect{grid-column:1/-1}.image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.record-defect small,.record-defect strong{display:block}

.monthly-chart-panel{margin:.1rem 0 .9rem;padding:1rem;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(13,54,40,.06)}
.monthly-chart-header{display:flex;align-items:center;justify-content:center;gap:.55rem;flex-wrap:wrap}
.month-chart-controls{display:flex;align-items:center;justify-content:center;gap:.38rem}
.month-chart-nav{min-width:34px;height:34px;padding:0 .62rem;display:grid;place-items:center;border:1px solid #a7c1b6;border-radius:9px;background:#fff;color:var(--green);font-weight:900;cursor:pointer}
.month-chart-nav:disabled{opacity:.55;cursor:not-allowed}
.month-chart-title-wrap{min-width:180px;text-align:center}
.month-chart-month{display:block;font-size:.82rem;font-weight:900}
.month-chart-title-wrap small{display:block;color:var(--muted);font-size:.54rem;margin-top:.18rem}
.month-chart-filter-row{display:flex;align-items:center;gap:.38rem;margin:0;color:var(--muted);font-size:.56rem}
.month-chart-filter-row label{font-weight:800}
.month-chart-filter-row select{min-height:30px;padding:.28rem .5rem;border:1px solid #c2d0ca;border-radius:8px;background:#fff;color:var(--ink);font-size:.6rem}
.one-call-month-chart{border:1px solid #e0e6e2;border-radius:10px;padding:.7rem .6rem .6rem;background:#f8fbf8}
.month-chart-layout{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:stretch;gap:.42rem}
.month-chart-y-label{display:grid;place-items:center;color:var(--muted);font-size:.5rem;font-weight:850;writing-mode:vertical-rl;transform:rotate(180deg)}
.month-chart-axis{min-width:0;overflow:visible}
.month-chart-x-label{display:block;margin-top:.35rem;text-align:center;color:var(--muted);font-size:.5rem;font-weight:850}
.month-chart-grid{width:100%;min-width:0;height:180px;display:flex;align-items:flex-end;gap:clamp(.1rem,.35vw,.38rem);padding-bottom:.35rem;border-bottom:1px solid #cbd5d0}
.month-chart-column{flex:1 1 0;min-width:0;height:100%;padding:0;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:end;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.month-chart-bar{position:relative;display:grid;align-items:end;justify-items:center;background:linear-gradient(180deg,var(--green-soft),var(--green));border-radius:8px 8px 3px 3px;min-height:14px;border:1px solid #91c0a8}
.month-chart-bar.has-events{background:linear-gradient(180deg,#75d2aa,var(--green));border-color:#4c9b79;box-shadow:0 3px 8px rgba(12,102,73,.2)}
.month-chart-bar.empty{min-height:8px;background:#edf2ef;border-color:#d7e0dc;box-shadow:none}
.month-chart-bar span{position:absolute;top:-1.15rem;font-size:.54rem;color:var(--ink);font-weight:800}
.month-chart-bar::after{content:attr(data-tooltip);position:absolute;z-index:12;left:50%;bottom:calc(100% + 22px);width:max-content;max-width:230px;padding:.42rem .52rem;transform:translateX(-50%);border-radius:7px;background:#102a22;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.22);font-size:.52rem;font-weight:750;line-height:1.45;text-align:left;white-space:pre-line;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease}
.month-chart-column:hover .month-chart-bar::after,.month-chart-column:focus-visible .month-chart-bar::after{opacity:1;visibility:visible}
.month-chart-column:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:5px}
.month-chart-column small{margin-top:.32rem;display:block;text-align:center;color:var(--muted);font-size:.49rem;font-weight:900}
@media (max-width:1000px){
  .month-chart-grid{height:160px}
  .month-chart-column small{font-size:.46rem}
}
@media(max-width:700px){.monthly-chart-header{justify-content:flex-start}.month-chart-title-wrap{min-width:150px}.month-chart-filter-row{width:100%;justify-content:flex-end}.month-chart-axis{overflow-x:auto;overflow-y:hidden;padding-top:2.2rem}.month-chart-grid{width:max-content;min-width:620px;gap:.32rem}.month-chart-column{flex:0 0 20px;min-width:20px}.month-chart-bar::after{display:none}}

/* One Call workflow dashboard */
.process-hero{min-height:190px}.process-hero h1{max-width:850px;font-size:clamp(2rem,4.5vw,3.65rem)}.workflow-panel{margin:0 0 .8rem;padding:1rem;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(13,54,40,.06)}.workflow-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.workflow-heading h2{margin:.22rem 0 .22rem;font-size:1.08rem}.workflow-heading p{margin:0;color:var(--muted);font-size:.66rem;line-height:1.45}.workflow-total{flex:none;padding:.38rem .62rem;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:.64rem;font-weight:900}.workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.workflow-card{min-width:0;min-height:84px;padding:.62rem;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:.52rem;border:1px solid var(--line);border-radius:11px;background:#f8faf9;color:var(--ink);text-align:left}.workflow-card.available{border-color:#66a98d;background:linear-gradient(135deg,#eaf8f1,#fff);cursor:pointer;box-shadow:0 5px 14px rgba(11,99,70,.12)}.workflow-card.available:hover{transform:translateY(-1px);border-color:var(--green)}.workflow-card.next{border-color:#c0d6e4;background:linear-gradient(135deg,#f2f8fc,#fff)}.workflow-card.locked{opacity:.67}.workflow-number{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e7eeea;color:#58675f;font-size:.66rem;font-weight:950}.available .workflow-number{background:var(--green);color:#fff}.next .workflow-number{background:var(--blue-soft);color:var(--blue)}.workflow-card>span:nth-child(2),.workflow-card strong,.workflow-card small{min-width:0;display:block}.workflow-card strong{font-size:.69rem;line-height:1.3}.workflow-card small{margin-top:.12rem;color:var(--muted);font-size:.55rem;line-height:1.3}.workflow-card em{padding:.25rem .38rem;border-radius:999px;background:#edf1ef;color:#68766f;font-size:.5rem;font-style:normal;font-weight:900;white-space:nowrap}.workflow-card.available em{background:var(--green-soft);color:var(--green)}.workflow-card.next em{background:var(--blue-soft);color:var(--blue)}.icon-button.disabled{opacity:.5;cursor:not-allowed;background:#f2f4f3}

/* Activation form copied into Kubora from the current One Call form */
.activation-dialog{width:min(900px,96vw);max-height:94vh;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.48)}#activationForm{height:min(94vh,880px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.activation-header{background:linear-gradient(120deg,#062f27,#0a6249);color:#fff}.activation-header h2{font-size:1.35rem}.activation-header p{margin:.25rem 0 0;color:#d0e5dd;font-size:.66rem}.activation-header .close-button{background:#ffffff1c;color:#fff}.activation-scroll{overflow:auto;padding:1rem}.activation-notice{padding:.72rem .82rem;display:grid;grid-template-columns:auto 1fr;gap:.65rem;border-left:4px solid #d79220;border-radius:9px;background:#fff6e8;color:#704b12}.activation-notice strong{font-size:.68rem}.activation-notice span{font-size:.64rem;line-height:1.5}.required-note{margin:.65rem 0;color:var(--muted);font-size:.61rem}.required-note span,.choice-fieldset legend b,.activation-fields em{color:var(--red);font-style:normal}.choice-fieldset{margin:0 0 .7rem;padding:.72rem;border:1px solid var(--line);border-radius:12px}.choice-fieldset legend{padding:0 .3rem;color:#243b31;font-size:.69rem;font-weight:900}.choice-fieldset legend>span,.activation-fields label>span>b{width:24px;height:24px;margin-right:.3rem;display:inline-grid;place-items:center;border-radius:7px;background:var(--green-soft);color:var(--green);font-size:.58rem}.choice-grid{display:grid;gap:.48rem}.role-choices{grid-template-columns:repeat(5,minmax(0,1fr))}.shift-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.choice-grid label{position:relative;cursor:pointer}.choice-grid input{position:absolute;opacity:0;pointer-events:none}.choice-grid label>span{min-height:43px;padding:.5rem;display:grid;place-items:center;border:1px solid #c6d4cd;border-radius:9px;background:#fff;color:#41544b;text-align:center;font-size:.61rem;font-weight:850;transition:.15s}.choice-grid input:checked+span{border-color:var(--green);background:var(--green-soft);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.choice-grid input:focus-visible+span{outline:3px solid #2f88682b}.activation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.activation-fields label{display:grid;gap:.3rem;color:#263d33;font-size:.65rem;font-weight:850}.activation-fields label>span{display:flex;align-items:center}.activation-fields .full-width{grid-column:1/-1}.activation-fields input,.activation-fields select{width:100%;min-height:43px;padding:.52rem .62rem;border:1px solid #c9d5cf;border-radius:8px;background:#fff;color:var(--ink);font-size:.7rem}.activation-fields input:focus,.activation-fields select:focus{outline:2px solid #2f88682b;border-color:#438e73}.activation-save{min-width:220px}

@media(max-width:1050px){.workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.process-hero{min-height:155px}.workflow-panel{padding:.7rem}.workflow-heading{align-items:flex-start}.workflow-grid{grid-template-columns:1fr}.workflow-card{min-height:76px}.activation-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}#activationForm{height:100dvh}.activation-scroll{padding:.7rem}.role-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.activation-fields{grid-template-columns:1fr}.activation-fields .full-width{grid-column:auto}.activation-save{min-width:0}}
@media(max-width:420px){.workflow-card{grid-template-columns:34px minmax(0,1fr)}.workflow-card em{grid-column:2;width:max-content}.role-choices,.shift-choices{grid-template-columns:1fr}.activation-notice{grid-template-columns:1fr}}

.line-fieldset{margin-top:.7rem}.line-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.line-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.line-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.line-choices{grid-template-columns:1fr}}

/* Etapa 1-2 · Carga de defecto y evidencia */
.workflow-card.available-stage{cursor:pointer;transition:transform .16s ease,border-color .16s ease}.workflow-card.available-stage:hover{transform:translateY(-1px);border-color:var(--blue)}.records-panel.records-highlight{animation:recordsPulse 1.25s ease}.defect-dialog{width:min(920px,96vw);max-height:94vh;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.48)}#defectForm{height:min(94vh,860px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.defect-header{background:linear-gradient(120deg,#123d59,#176889);color:#fff}.defect-header h2{font-size:1.35rem}.defect-header p{margin:.25rem 0 0;color:#d5e8f1;font-size:.66rem}.defect-header .eyebrow{color:#9fe1ff}.defect-header .close-button{background:#ffffff1c;color:#fff}.defect-scroll{overflow:auto;padding:1rem}.defect-description{display:grid;gap:.35rem;color:#263d33;font-size:.7rem;font-weight:900}.defect-description b{color:var(--red)}.defect-description textarea{width:100%;min-height:130px;padding:.68rem;border:1px solid #c6d4cd;border-radius:10px;resize:vertical;color:var(--ink);font:inherit;font-size:.72rem;line-height:1.5}.defect-description textarea:focus{outline:2px solid #2c83ad2e;border-color:#3d89ab}.defect-photo-section{margin-top:.8rem;padding:.78rem;border:1px solid var(--line);border-radius:12px;background:#f9fbfc}.defect-photo-section>header{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.7rem}.defect-photo-section>header strong,.defect-photo-section>header small{display:block}.defect-photo-section>header strong{font-size:.76rem}.defect-photo-section>header small{margin-top:.12rem;color:var(--muted);font-size:.59rem}.photo-source-actions{display:flex;gap:.48rem}.photo-source-button{position:relative;overflow:hidden;min-width:105px;min-height:44px;padding:.5rem .65rem;display:flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid #a9c3d0;border-radius:9px;background:#fff;color:#176082;cursor:pointer}.photo-source-button:hover{background:#edf7fb}.photo-source-button span{font-size:1rem}.photo-source-button b{font-size:.64rem}.photo-source-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.camera-source{border-color:#76a996;color:var(--green)}.camera-source:hover{background:#eef8f3}.defect-images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:.58rem}.defect-image-card{overflow:hidden;border:1px solid #c9d8d1;border-radius:10px;background:#fff}.defect-image-card>img{width:100%;height:125px;display:block;object-fit:cover;background:#eaf0ed}.defect-image-card>div{padding:.38rem;display:flex;align-items:center;justify-content:space-between;gap:.35rem}.defect-image-card small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.55rem}.defect-image-card>div>span{display:flex;gap:.28rem}.defect-image-card button{width:30px;height:30px;border:1px solid #bad0c5;border-radius:7px;background:#fff;cursor:pointer}.defect-image-card button:last-child{border-color:#e2bcbc;color:var(--red)}.defect-images-empty{grid-column:1/-1;min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;border:1px dashed #bdcec6;border-radius:10px;color:var(--muted);text-align:center}.defect-images-empty>span{font-size:1.5rem}.defect-images-empty strong{color:var(--ink);font-size:.7rem}.defect-images-empty small{font-size:.58rem}.record-images{grid-column:1/-1;margin-top:-.2rem}.record-images>small{display:block;margin-bottom:.35rem;color:var(--muted);font-size:.54rem;font-weight:900;text-transform:uppercase}.record-images>div{display:flex;flex-wrap:wrap;gap:.4rem}.record-image-button{position:relative;overflow:hidden;width:74px;height:58px;padding:0;border:1px solid #b9cbc2;border-radius:8px;background:#edf2ef;cursor:pointer}.record-image-button img{width:100%;height:100%;display:block;object-fit:cover}.record-image-button span{position:absolute;right:.2rem;bottom:.2rem;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#073e31dc;color:#fff;font-size:.66rem;box-shadow:0 2px 6px #0004}@keyframes recordsPulse{0%,100%{box-shadow:0 8px 24px rgba(13,54,40,.06)}40%{box-shadow:0 0 0 4px #2b8a6726,0 10px 30px rgba(13,54,40,.12)}}
@media(max-width:700px){.defect-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}#defectForm{height:100dvh}.defect-scroll{padding:.7rem}.defect-photo-section>header{align-items:stretch;flex-direction:column}.photo-source-actions{display:grid;grid-template-columns:1fr 1fr}.photo-source-button{min-width:0}.defect-images-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.defect-images-grid{grid-template-columns:1fr}.defect-image-card{display:grid;grid-template-columns:105px 1fr}.defect-image-card>img{height:88px}.defect-image-card>div{align-items:flex-start;flex-direction:column;justify-content:center}}

/* Directorios y Punto 2 */
.main-tools{margin:.8rem 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.main-tool-button{min-height:68px;padding:.72rem .86rem;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:.7rem;border:1px solid #bfd2c9;border-radius:13px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 6px 18px rgba(13,54,40,.06);cursor:pointer}.main-tool-button:hover{border-color:var(--green);background:#f7fbf9}.main-tool-button>span:first-child{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--green-soft);font-size:1.15rem}.main-tool-button strong,.main-tool-button small{display:block}.main-tool-button strong{font-size:.75rem}.main-tool-button small{margin-top:.12rem;color:var(--muted);font-size:.58rem}.main-tool-button>b{color:var(--green);font-size:1.35rem}.directory-dialog,.point2-dialog{width:min(1050px,96vw);max-height:94vh;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.48)}.directory-dialog form,.directory-shell,.point2-shell{height:min(94vh,850px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.directory-header,.point2-header{background:linear-gradient(120deg,#062f27,#0a6249);color:#fff}.directory-header p,.point2-header p{margin:.2rem 0 0;color:#d0e5dd;font-size:.62rem}.directory-header .close-button,.point2-header .close-button{background:#ffffff1c;color:#fff}.directory-scroll,.point2-scroll,.user-form-scroll{overflow:auto;padding:.8rem}.directory-table-heading,.manager-roster-row{display:grid;grid-template-columns:minmax(145px,.7fr) repeat(2,minmax(180px,1fr));gap:.55rem;align-items:center}.directory-table-heading{padding:.3rem .55rem;color:var(--muted);font-size:.57rem;font-weight:900;text-transform:uppercase}.manager-roster-list{display:grid;gap:.42rem}.manager-roster-row{padding:.52rem;border:1px solid var(--line);border-radius:9px;background:#f9fbfa}.manager-roster-row strong{font-size:.66rem}.manager-roster-row select{width:100%;min-height:40px;padding:.45rem;border:1px solid #c6d4cd;border-radius:8px;background:#fff;font-size:.63rem}.users-dialog .directory-shell{grid-template-rows:auto auto minmax(0,1fr)}.users-toolbar{padding:.65rem .8rem;display:flex;justify-content:flex-end;border-bottom:1px solid var(--line)}.users-list{display:grid;gap:.45rem}.user-row{padding:.58rem .65rem;display:grid;grid-template-columns:1.2fr .9fr .8fr auto;align-items:center;gap:.7rem;border:1px solid var(--line);border-radius:9px;background:#fff}.user-row strong,.user-row small{display:block}.user-row strong{font-size:.66rem}.user-row small{margin-top:.1rem;color:var(--muted);font-size:.55rem}.user-row-actions{display:flex;gap:.3rem}.user-row-actions button{width:34px;height:34px;border:1px solid #bfd0c8;border-radius:8px;background:#fff;cursor:pointer}.user-row-actions button:last-child{border-color:#e2bcbc;color:var(--red)}.users-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;color:var(--muted)}.users-empty>span{font-size:1.8rem}.users-empty strong{color:var(--ink);font-size:.74rem}.users-empty small{font-size:.59rem}.user-editor-dialog,.catalog-dialog{width:min(700px,95vw);max-height:92vh;border-radius:15px;background:#fff;color:var(--ink)}.user-editor-dialog form{height:min(92vh,720px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.62rem}.user-form-grid label,.catalog-body label{display:grid;gap:.28rem;color:#294036;font-size:.63rem;font-weight:850}.user-form-grid .full-row{grid-column:1/-1}.user-form-grid input,.user-form-grid select,.catalog-body input{width:100%;min-height:42px;padding:.5rem .58rem;border:1px solid #c6d4cd;border-radius:8px;background:#fff}.user-form-grid small{color:var(--muted);font-size:.54rem}.catalog-body{padding:.85rem}.danger-button{min-height:40px;padding:.58rem .86rem;border:1px solid #c85050;border-radius:9px;background:#fff;color:#a52f2f;font-size:.72rem;font-weight:900;cursor:pointer}.danger-button:hover{background:var(--red-soft)}.point2-shell{grid-template-rows:auto minmax(0,1fr)}.point2-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.point2-summary-grid article,.point2-defect,.point2-pictures,.point2-decision,.manager-call-section{padding:.68rem;border:1px solid var(--line);border-radius:10px;background:#f9fbfa}.point2-summary-grid small,.point2-summary-grid strong,.point2-summary-grid span,.point2-defect small,.point2-defect strong,.point2-pictures>small{display:block}.point2-summary-grid small,.point2-defect small,.point2-pictures>small{color:var(--muted);font-size:.56rem;font-weight:900;text-transform:uppercase}.point2-summary-grid strong{margin:.18rem 0;font-size:.74rem}.point2-summary-grid span{color:var(--muted);font-size:.59rem}.point2-defect,.point2-pictures,.point2-decision,.manager-call-section{margin-top:.62rem}.point2-defect strong{margin-top:.3rem;font-size:.72rem;line-height:1.5}.point2-pictures>div{margin-top:.42rem;display:flex;flex-wrap:wrap;gap:.42rem}.point2-photo{position:relative;overflow:hidden;width:96px;height:72px;padding:0;border:1px solid #b9cbc2;border-radius:8px;background:#edf2ef;cursor:pointer}.point2-photo img{width:100%;height:100%;object-fit:cover}.point2-photo span{position:absolute;right:.2rem;bottom:.2rem;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#073e31dc;color:#fff}.point2-decision>strong,.point2-decision>p{display:block}.point2-decision>strong{font-size:.78rem}.point2-decision>p{margin:.2rem 0 .55rem;color:var(--muted);font-size:.62rem}.point2-decision>div{display:flex;gap:.5rem}.manager-call-section>header strong,.manager-call-section>header small{display:block}.manager-call-section>header strong{font-size:.78rem}.manager-call-section>header small{margin-top:.1rem;color:var(--muted);font-size:.58rem}.manager-call-list{margin-top:.6rem;display:grid;gap:.45rem}.manager-call-row{padding:.52rem;border:1px solid var(--line);border-radius:9px;background:#fff}.manager-call-row>header{margin-bottom:.38rem}.manager-call-row>header strong{font-size:.66rem}.manager-call-row>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem}.manager-call-row label{position:relative;cursor:pointer}.manager-call-row input{position:absolute;opacity:0}.manager-call-row label>span,.manager-missing{min-height:58px;padding:.46rem;display:flex;flex-direction:column;justify-content:center;border:1px solid #c6d4cd;border-radius:8px;background:#fff}.manager-call-row input:checked+span{border-color:var(--green);background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green)}.manager-call-row b,.manager-call-row strong,.manager-call-row small{display:block}.manager-call-row b{color:var(--green);font-size:.53rem;text-transform:uppercase}.manager-call-row strong{font-size:.64rem}.manager-call-row small{color:var(--muted);font-size:.53rem}.manager-missing{opacity:.65;border-style:dashed}.call-managers-button{width:100%;margin-top:.65rem}.record-status.cancelled{background:var(--red-soft);color:var(--red)}.point2-action{background:var(--blue-soft)!important;color:var(--blue)!important;font-weight:950}
.configuration-row{margin:.65rem 0;display:flex;justify-content:flex-end}.configuration-button{min-height:42px;padding:.52rem .72rem;display:flex;align-items:center;gap:.48rem;border:1px solid #b9cec4;border-radius:10px;background:#fff;color:var(--green-dark);box-shadow:0 5px 15px rgba(13,54,40,.06);cursor:pointer}.configuration-button:hover{border-color:var(--green);background:var(--green-soft)}.configuration-button span{font-size:1.2rem;line-height:1}.configuration-button strong{font-size:.65rem}.configuration-dialog{width:min(900px,95vw);max-height:92vh;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.48)}.configuration-shell{display:grid;grid-template-rows:auto minmax(0,1fr)}.configuration-options{padding:1rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.configuration-options .main-tool-button{grid-template-columns:42px minmax(0,1fr) auto}.user-row{grid-template-columns:1.15fr .8fr 1fr .75fr auto}.authorized-user-row{padding:.62rem .7rem;display:grid;grid-template-columns:1.25fr 1fr auto;align-items:center;gap:.7rem;border:1px solid var(--line);border-radius:9px;background:#fff}.authorized-user-row strong,.authorized-user-row small{display:block}.authorized-user-row strong{font-size:.66rem}.authorized-user-row small{margin-top:.1rem;color:var(--muted);font-size:.55rem}.authorized-user-row>button{width:36px;height:36px;border:1px solid #e2bcbc;border-radius:8px;background:#fff;color:var(--red);cursor:pointer}.catalog-body select{width:100%;min-height:42px;padding:.5rem .58rem;border:1px solid #c6d4cd;border-radius:8px;background:#fff}
.icon-only-configuration{width:44px;justify-content:center;padding:.4rem}.icon-only-configuration span{font-size:1.35rem}.record-cancelled{grid-column:1/-1;padding:.5rem .6rem;border:1px solid #e6bcbc;border-radius:8px;background:var(--red-soft);color:var(--red)}.record-cancelled small,.record-cancelled strong{display:block}.record-cancelled small{font-size:.54rem}.record-cancelled strong{margin-top:.16rem;font-size:.66rem}.workflow-action{background:var(--green-soft)!important;color:var(--green)!important;font-size:1.15rem;font-weight:950}.catalog-body textarea{width:100%;padding:.55rem;border:1px solid #c6d4cd;border-radius:8px;resize:vertical;font:inherit}.workflow-stage-dialog #workflowStageForm{height:min(94vh,880px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.workflow-stage-content{overflow:auto;padding:.85rem}.stage-counter{margin-bottom:.55rem;padding:.55rem .65rem;display:flex;align-items:baseline;gap:.4rem;border-radius:9px;background:var(--green-soft);color:var(--green)}.stage-counter strong{font-size:1.15rem}.stage-counter span{font-size:.62rem;font-weight:800}.team-heading,.team-row{display:grid;grid-template-columns:110px .7fr .9fr 1.3fr;gap:.5rem;align-items:center}.team-heading{padding:.35rem .55rem;color:var(--muted);font-size:.54rem;font-weight:900;text-transform:uppercase}.team-list{display:grid;gap:.38rem}.team-row{padding:.55rem;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:.62rem}.team-row input{width:18px;height:18px}.team-row>span{color:var(--green);font-weight:900}.stage-toolbar{margin-bottom:.6rem;display:flex;justify-content:flex-end}.stage-items{display:grid;gap:.55rem}.stage-card,.validation-row,.lesson-row{padding:.65rem;border:1px solid var(--line);border-radius:10px;background:#f9fbfa}.stage-card>label,.stage-action-row label,.validation-row label,.lesson-row label,.two-analysis label,[data-amef-section] label,[data-fivewhy-section] label{display:grid;gap:.25rem;color:#294036;font-size:.6rem;font-weight:850}.stage-card textarea,.stage-action-row input,.stage-action-row select,.validation-row select,.lesson-row textarea,.two-analysis textarea,[data-amef-section] textarea,[data-fivewhy-section] input{width:100%;min-height:40px;padding:.48rem .55rem;border:1px solid #c6d4cd;border-radius:8px;background:#fff;font:inherit}.stage-card>header,.corrective-section>header{margin:.6rem 0 .42rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.stage-card>header strong,.corrective-section>header strong{font-size:.67rem}.stage-action-row{padding:.5rem;display:grid;grid-template-columns:1.3fr 1fr auto;align-items:end;gap:.45rem;border:1px solid #d5dfda;border-radius:8px;background:#fff}.stage-action-row>button,.lesson-row>button{width:36px;height:40px;border:1px solid #e2bcbc;border-radius:8px;background:#fff;color:var(--red);cursor:pointer}.containment-row{grid-template-columns:1.2fr 1fr .7fr auto}.validation-notice{margin-bottom:.6rem;padding:.6rem;border-left:4px solid var(--blue);border-radius:8px;background:var(--blue-soft);color:#164f70;font-size:.63rem;font-weight:800}.validation-row{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:.6rem}.validation-row small,.validation-row strong,.validation-row span{display:block}.validation-row small,.validation-row span{color:var(--muted);font-size:.55rem}.validation-row strong{margin:.12rem 0;font-size:.66rem}.evaluation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.evaluation-options label{padding:.6rem;display:flex;align-items:center;gap:.4rem;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:.63rem;font-weight:900}.evaluation-options small{margin-left:auto;color:var(--amber);font-size:.5rem}.two-analysis{margin:.6rem 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}[data-amef-section],[data-fivewhy-section],.corrective-section{margin-top:.6rem;padding:.65rem;border:1px solid var(--line);border-radius:10px;background:#f9fbfa}[data-fivewhy-section]{display:grid;gap:.4rem}[data-fivewhy-section][hidden],[data-amef-section][hidden]{display:none}.lesson-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:.5rem}.closure-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.closure-summary article{padding:.65rem;border:1px solid var(--line);border-radius:9px;background:#f9fbfa}.closure-summary small,.closure-summary strong,.closure-summary span{display:block}.closure-summary small{color:var(--muted);font-size:.54rem;text-transform:uppercase}.closure-summary strong{margin:.16rem 0;font-size:.7rem}.closure-summary span{color:var(--muted);font-size:.57rem}
@media(max-width:700px){.main-tools,.configuration-options{grid-template-columns:1fr}.configuration-button strong{display:none}.configuration-button{width:44px;justify-content:center;padding:.4rem}.configuration-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.directory-dialog,.point2-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.directory-dialog form,.directory-shell,.point2-shell{height:100dvh}.directory-table-heading,.team-heading{display:none}.manager-roster-row{grid-template-columns:1fr}.user-row{grid-template-columns:1fr auto}.user-row>div:nth-child(2),.user-row>div:nth-child(3),.user-row>div:nth-child(4){grid-column:1}.user-row-actions{grid-column:2;grid-row:1/5}.authorized-user-row{grid-template-columns:1fr auto}.authorized-user-row>div:nth-child(2){grid-column:1}.authorized-user-row>button{grid-column:2;grid-row:1/3}.user-form-grid,.point2-summary-grid,.evaluation-options,.two-analysis,.closure-summary{grid-template-columns:1fr}.user-form-grid .full-row{grid-column:auto}.point2-decision>div{flex-direction:column}.manager-call-row>div{grid-template-columns:1fr}.team-row{grid-template-columns:auto 1fr 34px}.team-row>strong{grid-column:2}.stage-action-row,.containment-row,.validation-row{grid-template-columns:1fr}.stage-action-row>button{width:100%}}
.record-card.cancelled-record{border-color:#e0aaaa;background:#fff4f4;box-shadow:0 6px 18px rgba(145,40,40,.08)}

.team-heading,.team-row{grid-template-columns:110px .7fr .9fr 1fr 34px}
.team-edit-button{width:34px;height:34px;border:1px solid #d5dfda;border-radius:8px;background:#fff;color:var(--green);cursor:pointer}
.team-choice{display:flex!important;align-items:center;gap:.4rem}.team-choice b{font-size:.55rem}.immediate-list-heading,.immediate-list-row{display:grid;grid-template-columns:1fr 1.2fr 1fr auto;align-items:center;gap:.55rem}.immediate-list-heading{padding:.35rem .55rem;color:var(--muted);font-size:.54rem;font-weight:900;text-transform:uppercase}.immediate-list-row{padding:.6rem;border:1px solid var(--line);border-radius:9px;background:#fff}.immediate-list-row strong,.immediate-list-row span{font-size:.61rem}.immediate-list-row span{color:var(--muted)}.immediate-list-row>button{width:36px;height:36px;border:1px solid #e2bcbc;border-radius:8px;background:#fff;color:var(--red);cursor:pointer}.immediate-cause-fields{display:grid;gap:.6rem}.immediate-cause-fields label{display:grid;gap:.25rem}.confirmation-copy{margin:0 0 .6rem;color:var(--muted);font-size:.67rem}.confirmation-check{padding:.65rem;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:.5rem;border:1px solid #c7d8d0;border-radius:9px;background:#f8fbf9}.confirmation-check input{width:20px!important;min-height:20px!important}.confirmation-check span{font-size:.65rem}.immediate-empty{grid-column:1/-1}
@media(max-width:700px){.immediate-list-heading{display:none}.immediate-list-row{grid-template-columns:1fr auto}.immediate-list-row>strong,.immediate-list-row>span{grid-column:1}.immediate-list-row>button{grid-column:2;grid-row:1/4}}
.containment-list-heading,.containment-list-row{display:grid;grid-template-columns:1.3fr 1fr .7fr auto;align-items:center;gap:.55rem}.containment-list-heading{padding:.35rem .55rem;color:var(--muted);font-size:.54rem;font-weight:900;text-transform:uppercase}.containment-list-row{padding:.6rem;border:1px solid var(--line);border-radius:9px;background:#fff}.containment-list-row strong,.containment-list-row span{font-size:.61rem}.containment-list-row span{color:var(--muted)}.containment-list-row>button{width:36px;height:36px;border:1px solid #e2bcbc;border-radius:8px;background:#fff;color:var(--red);cursor:pointer}.validation-evidence-row{align-items:start}.action-evidence{grid-column:1/-1;padding-top:.55rem;border-top:1px solid var(--line)}.action-evidence>header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.action-evidence>header>strong{font-size:.61rem}.action-evidence>header>div{display:flex;gap:.35rem}.evidence-source-button{position:relative;overflow:hidden;width:38px;height:36px;display:grid!important;place-items:center;border:1px solid #afc9bd;border-radius:8px;background:#fff;cursor:pointer}.evidence-source-button.camera{color:var(--green)}.evidence-source-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.action-evidence>div{margin-top:.45rem;display:flex;flex-wrap:wrap;gap:.4rem}.action-evidence>div>small{color:var(--muted);font-size:.55rem}.evidence-thumb{position:relative;overflow:hidden;width:78px;height:60px;padding:0;border:1px solid #b9cbc2;border-radius:8px;background:#edf2ef;cursor:pointer}.evidence-thumb img{width:100%;height:100%;display:block;object-fit:cover}.evidence-thumb span{position:absolute;right:.18rem;bottom:.18rem;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#073e31dc;color:#fff;font-size:.62rem}
@media(max-width:700px){.containment-list-heading{display:none}.containment-list-row{grid-template-columns:1fr auto}.containment-list-row>strong,.containment-list-row>span{grid-column:1}.containment-list-row>button{grid-column:2;grid-row:1/4}}
.five-why-launchers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.five-why-launchers>button{min-height:115px;padding:.85rem;display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:.15rem .7rem;border:1px solid #bdd3c8;border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 7px 20px rgba(13,54,40,.07)}.five-why-launchers>button:hover{border-color:var(--green);background:var(--green-soft)}.five-why-launchers>button>span{grid-row:1/3;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:var(--green-soft);color:var(--green);font-size:1rem;font-weight:950}.five-why-launchers strong{align-self:end;font-size:.76rem}.five-why-launchers small{align-self:start;color:var(--muted);font-size:.57rem}.five-why-launchers b{grid-column:3;grid-row:1/3;color:var(--green);font-size:1.5rem}.five-why-dialog{width:min(1320px,98vw)}.five-why-shell{height:min(94vh,880px);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.five-why-board{overflow:auto;padding:.8rem;background:#f6f9f7}.five-why-grid{min-width:1050px;display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:.5rem}.five-why-heading{position:sticky;top:0;z-index:2;padding-bottom:.5rem;background:#f6f9f7}.five-why-heading>div{min-height:68px;padding:.5rem;display:flex;align-items:center;justify-content:space-between;gap:.4rem;border-radius:9px;background:#0b5b45;color:#fff}.five-why-heading strong{font-size:.63rem}.five-why-heading button{padding:.38rem .48rem;border:1px solid #ffffff66;border-radius:7px;background:#fff;color:var(--green);font-size:.58rem;font-weight:900;cursor:pointer}.five-why-rows{display:grid;gap:.5rem}.five-why-row{align-items:stretch}.five-why-row article{min-height:76px;padding:.55rem;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem;border:1px solid #c7d8d0;border-radius:9px;background:#fff;box-shadow:0 3px 10px rgba(13,54,40,.05)}.five-why-row article span{font-size:.61rem;line-height:1.45;overflow-wrap:anywhere}.five-why-row article button{width:30px;height:30px;border:1px solid #83b39f;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:1rem;font-weight:950;cursor:pointer}.five-why-empty-cell{min-height:76px;border:1px dashed #d8e3de;border-radius:9px;background:#fbfcfb}.five-why-empty{min-width:1050px;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #bdcec6;border-radius:10px;background:#fff;color:var(--muted)}.five-why-empty strong{color:var(--ink);font-size:.72rem}.five-why-empty small{margin-top:.15rem;font-size:.58rem}.why-entry-dialog textarea{width:100%;padding:.55rem;border:1px solid #c6d4cd;border-radius:8px;resize:vertical;font:inherit}@media(max-width:700px){.five-why-launchers{grid-template-columns:1fr}.five-why-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.five-why-shell{height:100dvh}}

/* Activación por número de nómina */
.employee-lookup-section{margin:0 0 .7rem;padding:.8rem;border:1px solid #a9cbbb;border-radius:12px;background:linear-gradient(135deg,#f1faf6,#fff)}.employee-number-field{display:grid;gap:.32rem;color:#263d33;font-size:.65rem;font-weight:850}.employee-number-field>label{display:flex;align-items:center}.employee-number-field>label>b{width:24px;height:24px;margin-right:.3rem;display:inline-grid;place-items:center;border-radius:7px;background:var(--green);color:#fff;font-size:.58rem}.employee-number-field em{color:var(--red);font-style:normal}.employee-number-field>small{color:var(--muted);font-size:.55rem;font-weight:650}.employee-number-control{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:.42rem}.employee-number-control input{width:100%;min-height:48px;padding:.55rem .68rem;border:1px solid #75a991;border-radius:9px;background:#fff;color:var(--ink);font-size:.8rem;font-weight:900;cursor:pointer}.employee-number-control input:focus{outline:3px solid #2f88682b;border-color:var(--green)}.employee-number-control button{border:1px solid var(--green);border-radius:9px;background:var(--green);color:#fff;font-size:1.15rem;cursor:pointer}.activation-user-details{margin-top:.7rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}.activation-user-details article{min-width:0;padding:.55rem;border:1px solid #d1ded8;border-radius:9px;background:#fff}.activation-user-details small,.activation-user-details strong{display:block}.activation-user-details small{color:var(--muted);font-size:.52rem;font-weight:900;text-transform:uppercase}.activation-user-details strong{margin-top:.15rem;overflow-wrap:anywhere;color:#7b8b84;font-size:.66rem}.activation-user-details.user-found article{border-color:#9bc7b2;background:#f7fcf9}.activation-user-details.user-found strong{color:var(--ink)}
.numeric-keypad-dialog{width:min(390px,94vw);border-radius:18px;background:#f7faf8;color:var(--ink);box-shadow:0 25px 80px rgba(0,23,17,.55)}.numeric-keypad-dialog form{padding:.85rem;display:grid;gap:.72rem}.numeric-keypad-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}.numeric-keypad-dialog header h2{margin:.14rem 0 0;font-size:1.05rem}.numeric-keypad-dialog header>button{width:38px;height:38px;border:1px solid #c5d5cd;border-radius:50%;background:#fff;color:var(--ink);font-size:1.25rem;cursor:pointer}.numeric-keypad-dialog output{min-height:68px;padding:.65rem;display:flex;align-items:center;justify-content:flex-end;border:2px solid #7dae98;border-radius:12px;background:#fff;color:#123f31;font-size:1.65rem;font-weight:950;letter-spacing:.08em;overflow-wrap:anywhere}.numeric-key-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.numeric-key-grid button{min-height:58px;border:1px solid #b7ccc2;border-radius:12px;background:#fff;color:#173d31;font-size:1.18rem;font-weight:950;box-shadow:0 3px 8px rgba(13,54,40,.06);cursor:pointer}.numeric-key-grid button:active{transform:scale(.97);background:var(--green-soft)}.numeric-key-grid .keypad-secondary{color:var(--green);font-size:.62rem}.numeric-key-grid .keypad-backspace{font-size:1.25rem}.numeric-keypad-dialog footer{display:grid;grid-template-columns:1fr 1.45fr;gap:.5rem}.numeric-keypad-dialog footer button{min-height:46px}
@media(max-width:700px){.activation-user-details{grid-template-columns:repeat(2,minmax(0,1fr))}.numeric-keypad-dialog{width:min(420px,96vw)}}
@media(max-width:420px){.activation-user-details{grid-template-columns:1fr 1fr}.numeric-key-grid button{min-height:54px}}

/* Teclado compacto de nómina y estado de paro en la lista */
.numeric-keypad-dialog{width:min(320px,90vw);border-radius:14px}.numeric-keypad-dialog form{padding:.62rem;gap:.48rem}.numeric-keypad-dialog header h2{margin:.08rem 0 0;font-size:.88rem}.numeric-keypad-dialog header .eyebrow{font-size:.5rem}.numeric-keypad-dialog header>button{width:31px;height:31px;font-size:1rem}.numeric-keypad-dialog output{min-height:48px;padding:.42rem .55rem;border-width:1px;border-radius:9px;font-size:1.22rem}.numeric-key-grid{gap:.34rem}.numeric-key-grid button{min-height:43px;border-radius:8px;font-size:.92rem;box-shadow:0 2px 5px rgba(13,54,40,.05)}.numeric-key-grid .keypad-secondary{font-size:.52rem}.numeric-key-grid .keypad-backspace{font-size:1rem}.numeric-keypad-dialog footer{gap:.35rem}.numeric-keypad-dialog footer button{min-height:38px;padding:.42rem;font-size:.6rem}
.record-line-cell{align-self:stretch}.record-line-state{margin-top:.42rem;padding:.4rem .46rem;border-radius:8px}.record-line-state small{margin:0 0 .1rem;font-size:.47rem}.record-line-state strong{font-size:.66rem;letter-spacing:.055em}.record-line-state span{margin-top:.04rem;font-size:.6rem;font-weight:850}.record-line-state em{display:block;margin-top:.2rem;font-size:.52rem;font-style:normal;font-weight:800}.record-line-state.stopped{border:1px solid #b31818;background:#d32f2f;color:#ffffff}.record-line-state.stopped small,.record-line-state.stopped strong,.record-line-state.stopped span,.record-line-state.stopped em{color:#ffffff}.record-line-state.restarted{border:1px solid #2e8f57;background:#d9f6dd;color:#0f172a}.record-line-state.restarted small,.record-line-state.restarted span,.record-line-state.restarted em{color:#0f172a}
@media(max-width:700px){.numeric-keypad-dialog{width:min(310px,90vw)}.numeric-key-grid button{min-height:41px}}

/* Teclado de nómina extra compacto */
.numeric-keypad-dialog{width:min(260px,86vw);border-radius:12px}.numeric-keypad-dialog form{padding:.48rem;gap:.34rem}.numeric-keypad-dialog header h2{font-size:.76rem}.numeric-keypad-dialog header .eyebrow{font-size:.43rem}.numeric-keypad-dialog header>button{width:27px;height:27px;font-size:.88rem}.numeric-keypad-dialog output{min-height:39px;padding:.3rem .42rem;border-radius:7px;font-size:1rem}.numeric-key-grid{gap:.25rem}.numeric-key-grid button{min-height:35px;border-radius:7px;font-size:.78rem}.numeric-key-grid .keypad-secondary{font-size:.44rem}.numeric-key-grid .keypad-backspace{font-size:.88rem}.numeric-keypad-dialog footer{gap:.28rem}.numeric-keypad-dialog footer button{min-height:32px;padding:.32rem .25rem;font-size:.5rem}

/* Captura obligatoria de acciones inmediatas y validación con fecha/hora */
.immediate-list-heading,.immediate-action-capture{grid-template-columns:minmax(120px,1fr) minmax(150px,1.2fr) minmax(120px,.9fr) minmax(125px,.72fr) auto}.immediate-action-capture{align-items:start}.immediate-actual-date{display:grid;gap:.22rem;color:#294036;font-size:.55rem;font-weight:850}.immediate-actual-date input,.immediate-validation-row input{width:100%;min-height:39px;padding:.42rem .48rem;border:1px solid #c6d4cd;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:.62rem}.immediate-action-evidence{grid-column:1/-1}.immediate-requirement-notice{border-left-color:var(--amber);background:var(--amber-soft);color:#754b08}.immediate-validation-row{grid-template-columns:minmax(180px,1.3fr) minmax(150px,.9fr) minmax(125px,.65fr) minmax(105px,.55fr);align-items:end}.immediate-validation-copy{align-self:center}.immediate-validation-row>label{min-width:0}.immediate-validation-row>label>b,.immediate-actual-date b{color:var(--red)}
.immediate-list-heading.immediate-initial-heading,.immediate-initial-capture{grid-template-columns:minmax(120px,1fr) minmax(150px,1.2fr) minmax(120px,1fr) auto}.immediate-action-evidence>header>strong>small{margin-left:.28rem;color:var(--muted);font-size:.5rem;font-weight:700}
@media(max-width:700px){.numeric-keypad-dialog{width:min(250px,84vw)}.numeric-key-grid button{min-height:34px}.immediate-list-heading{display:none}.immediate-action-capture,.immediate-validation-row{grid-template-columns:1fr}.immediate-action-capture>*{grid-column:1}.immediate-action-capture>button{width:100%}.immediate-validation-row>label{grid-column:1}}

/* Estado de conexión en la misma fila que configuración */
.configuration-row{align-items:center;gap:.55rem}
.configuration-row .connection-panel{flex:1;margin:0;min-height:44px;padding:.48rem .68rem}
@media(max-width:700px){.configuration-row{align-items:stretch}.configuration-row .connection-panel{min-width:0}.configuration-row .connection-panel small{display:none}.configuration-row .pending-sync-badge{grid-column:auto}}

/* Validación visible de datos obligatorios */
.missing-data-summary{margin:0 0 .7rem;padding:.68rem .75rem;display:grid;gap:.16rem;border:1px solid #dc7777;border-left:5px solid var(--red);border-radius:9px;background:#fff1f1;color:#842424}
.missing-data-summary strong{font-size:.7rem}.missing-data-summary span{font-size:.61rem;line-height:1.4}
.missing-field{border-color:#d83d3d!important;background:#fff7f7!important;box-shadow:0 0 0 2px rgba(216,61,61,.14)!important;outline:none!important}
.missing-field-group{border-color:#d83d3d!important;background:#fff7f7!important;box-shadow:0 0 0 2px rgba(216,61,61,.12)!important}
.choice-fieldset.missing-field-group,.analysis-method-selector.missing-field-group,.evaluation-approval fieldset.missing-field-group{border-width:2px}
.missing-field-group .choice-grid label>span,.missing-field-group .approval-choices label>span{border-color:#e2a2a2}


/* Cards superiores en etapa de acciones inmediatas */
.immediate-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.05rem 0 .65rem}
.immediate-summary-card{min-width:0;padding:.65rem .72rem;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;gap:.24rem}
.immediate-summary-card small{font-size:.54rem;color:var(--muted);font-weight:900;text-transform:uppercase}
.immediate-summary-card strong{font-size:.66rem;line-height:1.2}
.immediate-summary-card b{font-size:.92rem;color:var(--green)}
.immediate-summary-card-pending b{color:var(--amber)}
.immediate-summary-card-delayed b{color:var(--red)}
.corrective-summary-breakdown{display:flex;flex-wrap:wrap;gap:.32rem .65rem;padding-top:.38rem;border-top:1px solid var(--line);color:var(--muted)}
.corrective-summary-breakdown i{font-size:.56rem;font-style:normal;font-weight:800}
.corrective-summary-breakdown i b{margin-left:.12rem;font-size:.64rem}
.immediate-list-heading,.immediate-initial-heading,
.immediate-action-capture{grid-template-columns:minmax(120px,1fr) minmax(150px,1.3fr) minmax(120px,.9fr) minmax(125px,.8fr) auto auto}
.immediate-list-heading.immediate-initial-heading,.immediate-initial-capture{grid-template-columns:minmax(120px,1fr) minmax(150px,1.3fr) minmax(120px,.9fr) auto auto}
.immediate-list-row{grid-template-columns:minmax(120px,1fr) minmax(150px,1.3fr) minmax(120px,.9fr) minmax(125px,.8fr) auto auto}
.immediate-edit-button{color:#245e99;background:var(--blue-soft);border-color:#9dbad0}
.immediate-list-row>button{font-size:.85rem}
.immediate-list-row>.immediate-edit-button{justify-self:center}
.immediate-list-row.immediate-action-completed{border-color:#a9d7bd;background:#e9f7ef}
.immediate-list-row.immediate-action-completed .immediate-action-evidence{border-top-color:#bfdfcc}
.summary-grid-primary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:.7rem}
.summary-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
.containment-list-heading.containment-initial-heading,
.containment-list-row{grid-template-columns:minmax(150px,1.3fr) minmax(120px,1fr) minmax(105px,.7fr) auto auto}
.containment-list-heading.containment-completion-heading,
.containment-list-row.containment-completion-row{grid-template-columns:minmax(150px,1.25fr) minmax(120px,.9fr) minmax(105px,.7fr) minmax(120px,.75fr) auto auto}
.containment-list-row>.containment-edit-button{border-color:#9dbad0;background:var(--blue-soft);color:#245e99}
.containment-list-row.containment-action-completed{border-color:#a9d7bd;background:#e9f7ef}
.containment-action-evidence{grid-column:1/-1}
.containment-action-evidence>header>strong>small{margin-left:.28rem;color:var(--muted);font-size:.5rem;font-weight:700}
.containment-validation-evidence>header>strong>small{margin-left:.28rem;color:var(--muted);font-size:.5rem;font-weight:700}
.corrective-execution-heading,.corrective-execution-row{grid-template-columns:minmax(120px,1fr) minmax(150px,1.3fr) minmax(120px,.9fr) minmax(125px,.8fr)}
.corrective-execution-origin{grid-column:1/-1;width:max-content;max-width:100%;padding:.3rem .55rem;display:flex;align-items:center;gap:.42rem;border:1px solid #a9cdbb;border-radius:999px;background:#edf8f2;color:var(--green)}
.corrective-execution-origin.escape{border-color:#a9c4d7;background:#edf6fc;color:#245e99}
.corrective-execution-origin small{font-size:.5rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.corrective-execution-origin strong{font-size:.61rem}
.corrective-execution-row>span>small{display:block;margin-top:.2rem;color:var(--muted);font-size:.52rem}
@media(max-width:700px){.corrective-execution-heading{display:none}.corrective-execution-row{grid-template-columns:1fr}.corrective-execution-row>*{grid-column:1}}

@media(max-width:700px){
  .summary-grid-primary,.summary-grid-secondary{grid-template-columns:1fr}
  .immediate-summary-grid{grid-template-columns:1fr}
  .immediate-list-heading,.immediate-list-heading.immediate-initial-heading{display:none}
  .containment-list-heading.containment-initial-heading,.containment-list-heading.containment-completion-heading{display:none}
  .immediate-action-capture,
  .immediate-list-row,
  .containment-list-row,
  .containment-list-row.containment-completion-row{grid-template-columns:1fr}
  .immediate-action-capture>*{grid-column:1}
  .immediate-action-capture>button{width:100%}
  .containment-list-row>*{grid-column:1!important;grid-row:auto!important}
  .containment-list-row>button{width:100%}
}
.immediate-validation-row{grid-template-columns:minmax(180px,1.3fr) minmax(170px,.9fr)}
@media(max-width:700px){.immediate-validation-row{grid-template-columns:1fr}}

/* Usuario conectado y cierre de sesión. */
.header-left{min-width:0;display:flex;align-items:center;gap:1rem}
.current-user-card{min-width:0;padding:.42rem .62rem;display:flex;align-items:center;gap:.52rem;border:1px solid #ffffff2e;border-radius:10px;background:#ffffff10}
.current-user-card[hidden]{display:none!important}
.current-user-avatar{width:31px;height:31px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#ffffff1b;font-size:.8rem}
.current-user-card>div{min-width:0}.current-user-card strong,.current-user-card small{display:block}.current-user-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.67rem}.current-user-card small{margin-top:.08rem;color:#c7ddd5;font-size:.54rem;white-space:nowrap}
.logout-button{min-height:38px;padding:.5rem .7rem;display:flex;align-items:center;gap:.35rem;border:1px solid #ffffff55;border-radius:9px;background:#ffffff10;color:#fff;font-size:.65rem;font-weight:850;cursor:pointer}.logout-button:hover{background:#ffffff1d}.logout-button[hidden]{display:none!important}
@media(max-width:850px){.header-left{gap:.55rem}.brand span{display:none}.current-user-card{max-width:280px}}
@media(max-width:700px){.app-header{gap:.45rem}.header-left{flex:1;min-width:0}.brand img{width:42px;height:36px}.current-user-card{min-width:0;max-width:none;padding:.34rem .42rem;gap:.36rem}.current-user-avatar{width:27px;height:27px}.current-user-card strong{font-size:.6rem}.current-user-card small{font-size:.48rem}.header-actions{gap:.3rem}.logout-button{width:40px;padding:.45rem;justify-content:center}.logout-button span:last-child{display:none}}
@media(max-width:440px){.current-user-avatar{display:none}.current-user-card small{white-space:normal;line-height:1.25}.sync-button{display:none}}

/* Cierre seguro cuando se cancela el acceso o las credenciales son incorrectas. */
.application-closing body{pointer-events:none;opacity:.45}
.application-closed,.application-closed body{min-height:100%;background:#062f27}
.application-closed-screen{min-height:100vh;padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;background:radial-gradient(circle at 50% 35%,#0b6b50,#062f27 62%,#041c17)}
.application-closed-screen img{width:112px;height:112px;border-radius:24px;box-shadow:0 14px 36px rgba(0,0,0,.35)}
.application-closed-screen h1{margin:1.1rem 0 .35rem;font-size:1.5rem}.application-closed-screen p{margin:0;color:#c8dfd7;font-size:.78rem}

/* El acceso a instalación permanece visible también en pantallas pequeñas. */
.install-app-button:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:.34rem}
@media(max-width:700px){#installButton:not([hidden]){width:40px;display:flex!important;padding:.45rem}#installButton span:last-child{display:none}#installButton span:first-child{font-size:1rem}}

/* Avisos del sistema para usuarios autorizados a activar One Call. */
.notification-button:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:.34rem}
.notification-button.notification-enabled{border-color:#78d4ae;background:#ffffff18}.notification-button.notification-blocked{border-color:#e5a7a7;color:#ffd5d5}
@media(max-width:700px){#notificationButton:not([hidden]){width:40px;display:flex!important;padding:.45rem}#notificationButton span:last-child{display:none}#notificationButton span:first-child{font-size:.9rem}}


