:root{font-family:Segoe UI,Arial,sans-serif;color:#19314a;background:#f3f6fa;font-size:16px;--blue:#145ec5;--ink:#102942;--line:#dbe3ed}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid transparent;background:var(--blue);color:white;padding:.68rem 1rem;border-radius:7px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #eeaa37;outline-offset:3px}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}[hidden]{display:none!important}.brand{font-size:1.32rem;font-weight:800;letter-spacing:.06em}.brand span{display:block;font-size:.68rem;font-weight:500;letter-spacing:.17em;margin-top:.6rem;color:#a2b8d0}aside{position:fixed;inset:0 auto 0 0;width:245px;background:var(--ink);color:white;padding:2.1rem 1.25rem;display:flex;flex-direction:column}aside .brand{padding:0 .6rem}nav{display:grid;gap:.5rem;margin-top:3rem}nav button{text-align:left;background:none;color:#cbd8e6;font-weight:500;padding:.9rem 1rem}nav button.active{background:#264764;color:white;box-shadow:inset 3px 0 #66a5ff}.aside-bottom{margin-top:auto;display:grid;gap:1rem;font-size:.82rem;padding:.6rem}main{margin-left:245px;padding:2.4rem 3rem;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:2rem}h1{font-size:2.1rem;letter-spacing:-.04em;margin:.35rem 0}h2{font-size:1.4rem;margin:0 0 1rem}.eyebrow{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#65788e;margin:0}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}.stat{background:white;padding:1.4rem;border:1px solid var(--line);border-radius:9px}.stat strong{font-size:2rem;display:block;margin-bottom:.3rem}.stat span{color:#67788b;font-size:.9rem}.panel{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.panel-head{padding:1.2rem 1.4rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:1rem}.panel-head h2{margin:0;font-size:1.05rem}input,select,textarea{width:100%;border:1px solid #b7c6d8;border-radius:6px;padding:.65rem .75rem;color:var(--ink);background:white;min-height:42px}input:focus,textarea:focus,select:focus{outline:2px solid #98beee;outline-offset:1px}.search{width:300px;max-width:100%}label{display:grid;gap:.4rem;font-size:.88rem;font-weight:600;align-content:start}.field-label{display:block}.field-label .req{margin-left:.2rem}table{border-collapse:collapse;width:100%}th{text-align:left;background:#f8fafc;color:#697d91;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;padding:1rem}td{padding:1rem;border-top:1px solid #e8edf3;font-size:.91rem;vertical-align:top}td small{display:block;color:#75859a;margin-top:.35rem}td button{font-size:.8rem;padding:.4rem .65rem}td .actions{display:flex;gap:.35rem;flex-wrap:wrap}.table-wrap{overflow:auto}.badge{font-size:.75rem;display:inline-block;padding:.3rem .55rem;background:#eaf1fc;color:#285688;border-radius:5px}.badge.warn{background:#fff0d1;color:#795418}.empty{padding:3rem;text-align:center;color:#64768a}.notice{padding:1rem;background:#fff4db;border:1px solid #e9d8af;border-radius:7px;font-size:.9rem;line-height:1.5;margin-bottom:1rem}.notice button{padding:.3rem .6rem;margin-left:.5rem}.muted{color:#64768a;font-size:.88rem}.section{padding:1.5rem}.section p{line-height:1.6}.section ul{line-height:1.7;padding-left:1.2rem}.login{min-height:100vh;display:grid;place-items:center;background:var(--ink);padding:2rem}.login-card{max-width:460px;width:100%;padding:2.5rem;background:white;border-radius:12px}.login .brand{color:var(--blue);margin-bottom:2.7rem}.login .brand span{color:#65809c}.login h1{font-size:1.8rem}.login p{line-height:1.6;color:#64768a}.login form{display:grid;gap:1rem;margin-top:1.5rem}#demo-access button{width:100%;margin-top:.7rem}dialog{border:1px solid var(--line);border-radius:12px;width:min(850px,94vw);max-height:92vh;padding:1.6rem;box-shadow:0 20px 90px #10294240}dialog::backdrop{background:#10294280}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.2rem}.dialog-head h2{margin:0}.close{background:#f0f3f7;color:var(--ink);font-size:1.6rem;padding:0 .7rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.wide{grid-column:1/-1}textarea{min-height:90px;resize:vertical}footer{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1rem}#toast{position:fixed;bottom:1.5rem;right:2rem;max-width:550px;background:var(--ink);color:white;padding:1rem 1.3rem;border-radius:8px;box-shadow:0 6px 25px #10294233}#form-error,#login-error,.error{color:#a82323;line-height:1.5}.product-card{padding:1rem;background:#f6f8fb;border:1px solid var(--line);border-radius:7px;margin:1rem 0}.product-card h3{font-size:1rem;display:flex;justify-content:space-between;margin-top:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;background:#f6f8fb;padding:1rem;border-radius:6px}.conflict{border:1px solid #e2b572;padding:1rem;border-radius:7px;margin:1rem 0}.compare{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.pdf-frame{width:100%;height:65vh;border:1px solid var(--line);margin-top:1rem}details{margin:.7rem 0}summary{cursor:pointer}.tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}a{color:var(--blue)}@media(max-width:1050px){main{padding:1.6rem}header{align-items:flex-start;flex-direction:column}aside{width:205px}.brand{font-size:1.1rem}main{margin-left:205px}}@media(max-width:700px){aside{position:static;width:auto;padding:1rem}aside .brand{padding:0}nav{margin-top:1rem;display:flex;overflow:auto;gap:.2rem}nav button{white-space:nowrap;padding:.6rem}.aside-bottom{display:flex;padding:0;align-items:center;margin-top:.7rem}main{margin:0;padding:1rem}.stats{gap:.5rem}.stat{padding:.8rem}.stat strong{font-size:1.6rem}.form-grid,.compare{grid-template-columns:1fr}.wide{grid-column:auto}.panel-head{align-items:flex-start;flex-direction:column}.search{width:100%}h1{font-size:1.8rem}.toolbar button{font-size:.8rem}td,th{padding:.7rem}.login-card{padding:1.5rem}}
.pdf-pages{max-height:65vh;overflow:auto;background:#e6edf5;padding:1rem;margin-top:1rem}.pdf-pages figure{margin:0 0 1.3rem}.pdf-pages figcaption{font-size:.8rem;margin-bottom:.5rem;color:#536b83}.pdf-pages img{display:block;width:100%;height:auto;background:white;box-shadow:0 1px 6px #18304a22}
.map-links{display:flex;flex-wrap:wrap;gap:.7rem;font-size:.8rem;margin-top:.7rem}.stats-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;align-items:end}.statistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:1.2rem;margin-bottom:1.2rem}.pest-options{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.pest-options label,.checkline{display:flex;align-items:center;gap:.6rem;font-weight:400}.pest-options input,.checkline input{width:18px;min-height:18px}.classification{margin:1.5rem 0;padding:1rem;background:#eef4fc;border-radius:8px}.conflict article{padding:.7rem 0;border-bottom:1px solid #e2caa1}

.related-row,.requirement{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.related-row p{margin:.4rem 0}.related-row .actions{flex-wrap:wrap}.match-reasons{font-size:.86rem;color:#52667e;max-width:65ch}.focus-service{border:2px solid #769ddb}.document-row{padding:.6rem 0;border-bottom:1px solid var(--line)}#products-section{margin-top:1.4rem;padding:1rem;border:2px solid #b7cbe5;border-radius:8px}#phrases-section textarea{min-height:140px}#client-search{max-width:900px}#detail-content pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:550px}.section{margin-bottom:1.2rem}.requirement p{margin:0}.requirement{background:#fff7e5;padding:.8rem;border-radius:6px;margin-bottom:.5rem}@media(max-width:650px){.related-row,.requirement{align-items:flex-start;flex-direction:column}.related-row button{max-width:100%}}

#situation-section fieldset { border:1px solid #cbd7d1; border-radius:8px; margin:16px 0; padding:14px; }
#situation-section legend { font-weight:650; padding:0 6px; }
.situation-row { border-bottom:1px solid #dbe3de; padding:10px 0 14px; margin-bottom:10px; }

.situation-observations { margin-top: 24px; width: 100%; }
.situation-observations > label { display: block; font-weight: 650; }
.situation-observations textarea { display: block; width: 100%; min-height: 280px; margin-top: 8px; line-height: 1.6; resize: vertical; }

.field-error {color:#9c2727;font-size:.9rem;} #operations-section fieldset {margin:12px 0;padding:12px;border:1px solid #cbd7d1;}

.replacement-dialog {max-width:560px;padding:24px;}

#app-update {position:fixed;top:0;left:0;right:0;z-index:10000;margin:0;padding:15px;text-align:center;}
#environment .version-link{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.release-notes{border-top:1px solid #d8e0ec;padding:16px 0}.release-notes h4{margin-bottom:6px}.release-notes li{margin:6px 0}

.check-dropdown{border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;margin:10px 0;background:#fff}
.check-dropdown summary{cursor:pointer;font-weight:600}
.check-dropdown .pest-options{padding-top:10px;display:flex;flex-wrap:wrap;gap:12px}
.check-dropdown label{display:flex;align-items:center;gap:8px;min-width:180px}
.check-dropdown input[type=checkbox]{width:auto}
textarea[name=diagnosis_observations]{min-height:240px;resize:vertical}
[data-diagnosis-pest],[data-followup-pest]{margin:18px 0;padding:16px;border:1px solid #cbd5e1;border-radius:8px}

.evaluation-text{white-space:pre-line;line-height:1.6}

/* 1.3.1 */
#menu-toggle{display:none}
@media(max-width:700px){aside{display:block}#menu-toggle{display:inline-block;margin-top:.7rem;padding:.5rem .8rem}nav{display:none;flex-wrap:wrap;overflow:visible}aside.menu-open nav{display:flex}}
.legacy{background:#f6f8fb}.legacy p{margin:.3rem 0}
#areas-section .check-dropdown{margin-top:0}
label input[readonly]{background:#f3f6fa;color:#52667e}
.aside-link{background:none;border:0;color:#cbd8e6;padding:.2rem 0;text-align:left;font-weight:500;font-size:.85rem;text-decoration:underline}.aside-link:hover,.aside-link.active{color:#fff;filter:none}.aside-link.active{font-weight:700}
#hours-section .form-grid{gap:.6rem}
.auto-hint{font-weight:400;display:block;margin-bottom:.2rem}
.req{color:#c0392b;margin-left:.2rem;font-weight:700}
button.small{font-size:.8rem;padding:.35rem .6rem}.check-dropdown [data-close-dropdown]{margin-top:.6rem}
/* 1.4.0: Inicio, listas y Configuración */
.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:1.2rem;margin:1rem 0}
.home-block{margin-bottom:0}.home-block .panel-head{padding:0 0 .8rem;margin-bottom:.4rem}.home-block .related-row:last-child{border-bottom:0}
.count{font-size:1.4rem;font-weight:800;color:var(--blue);background:#eaf1fc;border-radius:8px;padding:.1rem .7rem}
.list-filters{align-items:end}.list-filters .toolbar{grid-column:1/-1;justify-content:flex-start}
.config-tabs{margin:0 0 1.2rem}
.copy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.copy-grid h3{margin-top:0}
.inactive-row td{color:#8795a6}
#forgot-password{margin:0;font-weight:400;font-size:.85rem}
label{position:relative}.suggest{position:absolute;top:100%;left:0;right:0;z-index:20;margin:0;padding:.3rem 0;list-style:none;background:#fff;border:1px solid #b7c6d8;border-radius:6px;box-shadow:0 8px 24px #10294226;max-height:260px;overflow:auto;font-weight:400}.suggest li{padding:.5rem .75rem;cursor:pointer}.suggest li:hover{background:#eaf1fc}
.client-filters{margin-top:.8rem;max-width:620px}
.audit-summary{font-size:1.05rem;line-height:1.5;background:#eef4fc;padding:.8rem 1rem;border-radius:8px}.audit-changes{line-height:1.7;padding-left:1.2rem}.audit-changes li{margin:.25rem 0}
.inspection-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1rem 0}.inspection-blocks fieldset{border:1px solid var(--line);border-radius:8px;padding:.8rem}.inspection-blocks legend{font-weight:700}.inspection-blocks label{display:flex;gap:.5rem;align-items:center;font-weight:400;padding:.15rem 0}.inspection-blocks input[type=checkbox]{width:18px;min-height:18px}
/* 1.5.0: ficha del servicio por pestañas (petición 20) */
#editor{width:min(1000px,96vw)}
.editor-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 1.2rem;padding-bottom:.8rem;border-bottom:1px solid var(--line);position:sticky;top:-1.6rem;background:#fff;z-index:5}
.editor-tabs button{padding:.55rem .85rem;display:inline-flex;align-items:center;gap:.45rem}
.tab-mark{font-size:.72rem;font-weight:700;border-radius:999px;padding:.1rem .5rem;background:#e6edf5;color:#52667e;min-width:1.5rem;text-align:center}
.tab-mark.pending{background:#fff0d1;color:#795418}.tab-mark.done{background:#dff3e4;color:#1f6b3a}.tab-mark.optional{background:#eef1f5;color:#64768a;font-weight:500}
.editor-tabs button:not(.secondary) .tab-mark{background:#ffffff33;color:#fff}
.tab-panel{display:none}.tab-panel.active{display:block}
.tab-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.2rem;padding-top:.8rem;border-top:1px solid var(--line)}
.locked-method{background:#f3f6fa;border-color:#b7cbe5!important}.locked-method legend label{color:#1f4f9c}
.amount-input{max-width:130px;min-height:36px;padding:.4rem .5rem}
.tab-panel .classification:first-child,.tab-panel #products-section{margin-top:0}
/* 1.5.0: pasada de diseño (petición 73 / INFORME_IGEO_IDEAS §3): estados por color, tarjetas de Inicio, acciones a la derecha */
/* Colores reforzados (prueba del propietario, 02/11/2026: «demasiado sutiles»): fondo lleno y texto blanco en los estados. */
.badge{font-weight:700;padding:.35rem .65rem;border-left:4px solid transparent}
.badge.warn{background:#f0a21a;color:#2b1d00;border-left-color:#b56f00}.badge.ok{background:#2e8b57;color:#fff;border-left-color:#1b5e3a}.badge.plan{background:#1f5fc9;color:#fff;border-left-color:#123d85}.badge.off{background:#7a8795;color:#fff;border-left-color:#4e5966;text-decoration:line-through}
.home-block{border-top:8px solid var(--blue);box-shadow:0 2px 6px #10294222}.home-block:nth-child(1){border-top-color:#2e8b57;background:#f1faf4}.home-block:nth-child(2){border-top-color:#1f5fc9;background:#eff4fd}.home-block:nth-child(3),.home-block:nth-child(4){border-top-color:#f0a21a;background:#fff8ea}.home-block:nth-child(5),.home-block:nth-child(6){border-top-color:#c62828;background:#fdf1f1}
.home-block .count{font-size:2rem;padding:.15rem 1rem;color:#fff;background:var(--blue)}.home-block:nth-child(1) .count{background:#2e8b57}.home-block:nth-child(2) .count{background:#1f5fc9}.home-block:nth-child(3) .count,.home-block:nth-child(4) .count{background:#f0a21a;color:#2b1d00}.home-block:nth-child(5) .count,.home-block:nth-child(6) .count{background:#c62828}
.tab-mark.pending{background:#f0a21a;color:#2b1d00}.tab-mark.done{background:#2e8b57;color:#fff}
td:last-child .actions{justify-content:flex-end}
.stock-negative td{color:#a82323}
.totals{display:flex;gap:2rem;flex-wrap:wrap;margin:1rem 0}.totals strong{font-size:1.5rem;display:block}
.product-card h3{align-items:center;gap:.5rem;flex-wrap:wrap}.product-card .product-title{font-weight:500;flex:1}.product-card h3 .actions{display:flex;gap:.35rem}.product-card.collapsed .product-body{display:none}.product-card.collapsed{border-left:4px solid #2e8b57}.confirm-product{margin-top:.6rem}
