@font-face{font-family:system;src:local('Segoe UI')}*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f5f5f0;color:#223d40;font-family:system,'Segoe UI',sans-serif;line-height:1.45}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.5;cursor:wait}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#153c41;color:#dce8e5;padding:28px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:248px;z-index:5}.brand{display:flex;gap:12px;align-items:center;padding:0 12px 30px;text-decoration:none}.brand-icon{background:#f1bb86;color:#173b40;border-radius:10px;width:40px;height:42px;display:grid;place-items:center;font-weight:800;font-size:20px;letter-spacing:-2px}.brand strong{display:block;color:white;font-size:17px}.brand small{display:block;font-size:12px;letter-spacing:1.5px;color:#afc6c1;margin-top:3px}.brand img{width:42px;height:42px;object-fit:contain}.nav-group{font-size:11px;letter-spacing:1.4px;color:#92b1ad;margin:20px 14px 10px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:3px 0;border-radius:7px;text-decoration:none;font-size:14px;font-weight:500;color:#c4d9d5}.nav-link:hover{background:#214b50}.nav-link.active{background:#f0f5ef;color:#153c41;font-weight:650}.sidebar-bottom{margin-top:auto;padding-top:24px}.local-tag{display:flex;gap:9px;font-size:12px;color:#c5d5cf;padding:12px 14px}.dot{width:7px;height:7px;border-radius:50%;background:#a8cbb8;display:inline-block;margin-top:5px}.user{border-top:1px solid #315358;padding:18px 10px 0;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#2b5358;color:#e5ece5;border-radius:50%;font-size:12px}.user strong{display:block;font-size:13px}.user span{display:block;font-size:11px;color:#a6c3bc}.user button{margin-left:auto;background:none;border:0;color:#c5d5cf;padding:4px}.main{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid #e1e5de;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fafbf7;font-size:13px;color:#74817b}.crumb{display:flex;align-items:center;gap:10px}.crumb b{color:#26474a;font-weight:500}.topbar-right{display:flex;align-items:center;gap:18px}.environment{border:1px solid #dbe3d7;border-radius:30px;padding:5px 11px;font-size:11px;letter-spacing:.6px;color:#527163;background:#f1f5ec}.content{padding:38px 42px 60px;max-width:1580px;margin:0 auto}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:#809087;margin-bottom:9px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}h1{font-size:32px;font-weight:600;letter-spacing:-1.1px;margin:0 0 7px;line-height:1.2}h2{font-size:18px;font-weight:600;margin:0 0 14px}h3{font-size:15px;margin:0 0 8px}.sub{margin:0;color:#7b8781;font-size:14px}.btn{border:1px solid #d5ded5;background:white;color:#294c4d;border-radius:6px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap}.btn.primary{background:#1d5053;border-color:#1d5053;color:white}.btn.primary:hover{background:#123a3c}.btn.accent{background:#f0be8b;border-color:#f0be8b;color:#3e4033}.btn.subtle{background:transparent}.btn.small{padding:7px 10px;font-size:12px}.btn.icon{padding:7px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 30px}.stat{border:1px solid #e1e5dc;background:#fffefa;border-radius:10px;padding:22px}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#718178}.stat-icon{padding:8px;border-radius:8px;background:#eef4ee;color:#426662;display:flex}.stat strong{display:block;margin:18px 0 4px;font-size:31px;letter-spacing:-1px;font-weight:550}.stat small{font-size:12px;color:#8b958d}.panel{border:1px solid #dfe4da;background:#fffefa;border-radius:10px;overflow:hidden;margin-bottom:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;border-bottom:1px solid #e8ebe3;gap:16px}.panel-head h2{margin:0;font-size:16px}.panel-body{padding:24px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.quick-link{display:flex;justify-content:space-between;align-items:center;text-decoration:none;padding:16px 0;border-bottom:1px solid #e9ece5}.quick-link:last-child{border:0}.quick-title{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:550}.soft-icon{width:36px;height:36px;display:grid;place-items:center;background:#edf2e8;color:#507364;border-radius:7px}.soft-icon.orange{background:#faeddd;color:#ae7950}.soft-icon.blue{background:#e8f0f1;color:#557d86}.connection{padding:20px 22px;background:#edf2e8;border:1px solid #dce6d5;border-radius:9px;margin-top:16px}.connection h3{display:flex;align-items:center;gap:9px}.connection p{font-size:13px;color:#637564;margin:10px 0 15px;overflow-wrap:anywhere}.section-foot{display:flex;justify-content:space-between;padding:14px 23px;color:#8a938b;font-size:12px;border-top:1px solid #eceee7}.empty{text-align:center;padding:50px 20px;color:#8b968c}.empty .empty-icon{width:50px;height:50px;background:#f1f4ee;border:1px solid #e3e8dd;border-radius:14px;display:grid;place-items:center;margin:0 auto 14px;color:#8ca093}.empty h3{color:#516357;margin:0 0 6px;font-weight:550}.empty p{font-size:13px;margin:0 auto 18px;max-width:360px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:#859185;font-weight:500;font-size:11px;letter-spacing:.6px;text-transform:uppercase;background:#f8f9f4;padding:13px 20px;white-space:nowrap}td{padding:16px 20px;border-top:1px solid #eef0e8;vertical-align:middle}td a.record-title{font-weight:600;color:#2c4b4b;text-decoration:none}td a.record-title:hover{text-decoration:underline}td small{display:block;color:#8b958c;font-size:11px;margin-top:3px}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:4px;padding:4px 8px;white-space:nowrap;background:#eff2e9;color:#6e7e66}.badge.en_curso{background:#e6efec;color:#43756b}.badge.finalizado{background:#e7efe0;color:#587c4c}.badge.pendiente{background:#fff0dc;color:#ab7a3e}.badge.archivado{background:#eeeeea;color:#85877d}.badge.error{background:#fce9e4;color:#a85645}.filters{display:flex;flex-wrap:wrap;gap:10px;padding:18px 22px;align-items:center}.filters input,.filters select{font-size:13px;padding:9px 11px;min-width:0;border:1px solid #dce2d7;border-radius:6px;background:#fffefa;color:#486059}.filters .search{flex:1;min-width:200px}.filters label{font-size:11px;display:flex;align-items:center;gap:5px;color:#74816f}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#586c60}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #d4ddd0;background:white;border-radius:6px;color:#254447}.field textarea{resize:vertical;min-height:95px}.field small,.help{font-size:12px;color:#86917f}.notice{padding:13px 16px;border-radius:6px;background:#fff3df;border:1px solid #eddfc6;color:#8f703f;font-size:13px;margin-bottom:20px}.notice.info{background:#edf4f1;border-color:#d8e6df;color:#53736a}.notice.error{background:#fceee9;border-color:#edd4ca;color:#a15b4b}.tabs{display:flex;gap:22px;border-bottom:1px solid #dce2d5;margin-bottom:25px;overflow:auto}.tab{padding:0 0 13px;border:0;border-bottom:2px solid transparent;background:none;color:#82907e;white-space:nowrap;font-size:13px}.tab.active{color:#295951;border-bottom-color:#295951;font-weight:600}.line-table{min-width:1100px}.line-table th{padding:10px 7px}.line-table td{padding:6px 5px}.line-table input,.line-table select{width:100%;border:1px solid #dfe5d9;border-radius:4px;padding:8px 6px;color:#354f42;background:white;font-size:12px}.line-table .description{min-width:240px}.line-table .wide{min-width:130px}.line-table .narrow{width:90px;min-width:85px}.line-table .line-total{min-width:90px}.line-table input[type=date]{min-width:132px}.line-footer{padding:17px 24px;display:flex;justify-content:space-between;align-items:center;background:#f7f9f2}.line-footer strong{font-size:21px}.sticky-actions{position:sticky;bottom:0;background:#f5f5f0f5;border-top:1px solid #dce3d5;padding:15px 0;display:flex;justify-content:space-between;align-items:center;z-index:3}.upload-area{border:1.5px dashed #b8cbb7;border-radius:9px;padding:35px;text-align:center;background:#f8faf4}.upload-area input{max-width:100%;margin-top:18px;font-size:13px}.upload-area h3{margin:12px 0 5px}.upload-area p{font-size:13px;color:#7e8d79;margin:0}.check{display:flex;gap:9px;align-items:center;font-size:13px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.check input{accent-color:#225550;width:16px;height:16px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid #edf0e7;gap:20px;font-size:13px}.setting-row:last-child{border:0}.setting-row small{display:block;color:#87927f;margin-top:4px}.muted{color:#859180}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-art{background:#153c41;color:#e7eee3;padding:70px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art .brand{padding:0}.auth-copy{position:relative;z-index:1}.auth-copy h1{font-size:48px;max-width:480px;font-weight:450;letter-spacing:-1.5px;line-height:1.15}.auth-copy p{color:#afc8bd;font-size:16px;max-width:370px;line-height:1.7}.auth-art:after{content:'';width:350px;height:500px;border:1px solid #608576;transform:rotate(35deg);position:absolute;right:-130px;top:140px;border-radius:100px;box-shadow:0 0 0 60px #20474c,0 0 0 61px #3d635a,0 0 0 120px #1b4248,0 0 0 121px #34594f}.auth-footer{font-size:12px;color:#8fb0a4;z-index:1}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{max-width:370px;width:100%}.auth-card h1{font-size:28px}.auth-card form{display:grid;gap:20px;margin:30px 0}.auth-card .btn{padding:13px}.auth-card .help{margin-top:22px;text-align:center}.loading{padding:100px;text-align:center;color:#758975}#toast{position:fixed;bottom:24px;right:24px;max-width:420px;background:#254e4d;color:white;padding:14px 20px;border-radius:7px;box-shadow:0 6px 30px #19392a22;z-index:50;font-size:14px;display:none}#toast.visible{display:block}#toast.error{background:#914f42}.mobile-menu{display:none}details{font-size:13px;margin:10px 0}summary{cursor:pointer;color:#5c7966}details ul{max-height:150px;overflow:auto;color:#8b7c63}.inline-code{font-family:Consolas,monospace;font-size:12px;padding:3px 6px;background:#edf1e7;overflow-wrap:anywhere}.backup-icon{display:flex;align-items:center;gap:10px}.large-number{font-size:38px;margin:12px 0}.break{overflow-wrap:anywhere}.table-hint{padding:10px 22px;font-size:12px;color:#8c9787}.dialog{border:1px solid #dce3d5;border-radius:12px;padding:28px;max-width:640px;width:calc(100% - 32px);color:#254345;background:#fffefa}.dialog::backdrop{background:#143a3a66}.dialog .actions{justify-content:flex-end;margin-top:24px}
.sidebar{overflow-y:auto}.upload-actions{margin-top:18px}.table-wrap td{min-width:90px}
@media(min-width:1600px){.content{padding-top:48px}}@media(max-width:1200px){.content{padding:30px 25px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:1fr}.stats{gap:12px}.stat{padding:18px}.auth-art{padding:45px}.auth-copy h1{font-size:38px}}@media(max-width:1050px){.stats{grid-template-columns:1fr 1fr}}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none;box-shadow:10px 0 50px #0004}.main{grid-column:1}.mobile-menu{display:inline-flex;border:0;background:none;color:#416354;padding:5px}.topbar{height:64px;padding:0 18px}.content{padding:26px 18px}.stats{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}.topbar-right time{display:none}h1{font-size:27px}.auth{grid-template-columns:1fr}.auth-art{min-height:210px;padding:28px}.auth-copy{display:none}.auth-footer{margin-top:45px}.auth-art:after{top:-150px}.auth-form{padding:35px 22px}.form-grid{grid-template-columns:1fr}.auth-art .brand{z-index:1}.filters{padding:15px}.panel-body{padding:18px}.panel-head{padding:18px}.dashboard-grid{gap:0}.page-head .btn{font-size:12px}.checks{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Agent administration */
.delivery-card{margin:20px;border:1px solid #dce5df;border-radius:10px;background:#fff;overflow:hidden}.delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#f2f6f1}.delivery-heading h3{margin:0}.delivery-header{display:grid;grid-template-columns:160px 170px minmax(140px,1fr) minmax(180px,1.5fr);gap:16px;padding:18px 20px}.article-table{min-width:1120px}.article-table th{padding:12px 10px;letter-spacing:.2px}.article-table th small{display:block;font-size:10px;text-transform:none;letter-spacing:0;margin-top:4px}.article-table td{padding:9px 7px;vertical-align:top}.article-table .article-description{min-width:230px;width:24%}.article-table .article-notes{min-width:190px;width:20%}.article-table .article-number{width:100px;min-width:90px}.article-table input,.article-table textarea{width:100%;border:1px solid #d4ddd0;border-radius:5px;padding:9px 8px;font:13px system-ui;color:#254447;background:#fff}.article-table textarea{resize:vertical;min-height:58px}.article-table input{text-align:right}.article-table [data-amount]{padding-top:18px;font-variant-numeric:tabular-nums}.article-table [data-amount=net]{font-weight:600;color:#204f48}.delivery-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 20px;background:#f8faf5;border-top:1px solid #e0e7dc;font-size:13px}.delivery-footer strong{margin-left:8px;font-size:17px}@media(max-width:1100px){.delivery-header{grid-template-columns:1fr 1fr}}@media(max-width:600px){.delivery-card{margin:12px}.delivery-header{grid-template-columns:1fr;padding:14px}.delivery-heading,.delivery-footer{padding:14px}.delivery-footer .btn{white-space:normal;text-align:left}.line-footer{gap:15px;flex-wrap:wrap}}
.log-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.log-filters .field{min-width:0}.log-filters input,.log-filters select{width:100%;min-width:0}.log-filters .actions{flex-wrap:wrap}@media(max-width:900px){.log-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.log-filters{grid-template-columns:minmax(0,1fr)}}
.channel-access{border-top:1px solid #dce5df;padding-top:16px}.access-person{min-width:0;border:1px solid #dce5df;border-radius:10px;padding:16px;margin:12px 0}.access-person legend{font-weight:600;padding:0 8px}.access-person .actions{margin-top:12px}
.agent-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#123e3a;color:#fff;border-radius:18px;padding:28px 30px;margin-bottom:20px}.agent-banner h2{font-size:25px;margin:8px 0}.agent-banner p{margin:0;color:#c6dbd6}.agent-banner .eyebrow{color:#a2cbc0;font-size:11px;letter-spacing:1.5px}.agent-banner .badge{background:#2a5750;color:white;white-space:nowrap}.agent-tabs{overflow-x:auto}.agent-tabs button{background:none;border:0;white-space:nowrap;font:inherit;cursor:pointer}.agent-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;padding:20px}.agent-card{border:1px solid #dce5df;border-radius:12px;padding:20px;margin-bottom:12px;background:#fff}.agent-card .panel-head{padding:0;border:0;gap:10px}.agent-card h3{margin:0}.agent-dialog{width:min(860px,calc(100vw - 32px));max-height:90vh;overflow-y:auto}.agent-config{max-height:300px;overflow:auto;background:#f2f5f2;padding:16px;border-radius:10px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.tool-list .setting-row{gap:18px;align-items:start}.tool-list strong{font-size:12px;min-width:190px;overflow-wrap:anywhere}.tool-list .help{max-width:70%}.whatsapp-qr{display:flex;align-items:center;flex-direction:column;gap:16px;min-height:120px;padding:20px}.whatsapp-qr img{max-width:100%;height:auto}.agent-chat{max-height:350px;overflow:auto;margin:16px 0}.chat-message{border-radius:12px;padding:16px;background:#f0f4f1;margin:10px 0}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.chat-message.from-user{background:#e1efe9}.wide{grid-column:1/-1}@media(max-width:700px){.agent-banner{display:block;padding:22px}.agent-banner .badge{display:inline-block;margin-top:18px}.agent-cards{grid-template-columns:1fr;padding:12px}.tool-list .setting-row{display:block}.tool-list .help{max-width:100%}.agent-card .actions{flex-wrap:wrap}}

#google-watch-alert:not(:empty){margin:24px 32px 0}#google-watch-alert .notice{margin:0}
.release-notes{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font:13px/1.6 system-ui;padding:18px;background:#f5f7f8}.agent-tabs{flex-wrap:wrap}.agent-tabs .tab{white-space:normal}#hermes-prompt-append{margin-top:28px;padding-top:24px;border-top:1px solid var(--border,#dde5e9)}#hermes-prompt-form textarea{font:14px/1.7 system-ui;resize:vertical}
.address-field{position:relative;align-self:start}.address-suggestions{position:absolute;top:76px;left:0;right:0;z-index:20;background:#fff;border:1px solid #b8ceca;border-radius:10px;box-shadow:0 10px 30px #173e4026;overflow:hidden}.address-suggestions[hidden]{display:none}.address-suggestions [role=option]{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #e0e8e5;border-radius:0;padding:12px 14px;white-space:normal;cursor:pointer;color:#183e40}.address-suggestions [role=option]:hover,.address-suggestions [aria-selected=true]{background:#e5f0ec}.maps-attribution{padding:6px 12px;text-align:right;font-family:Arial,sans-serif;font-weight:400;font-size:12px;font-style:normal;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}.address-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}

.drive-destination-head{padding:16px 22px;border-bottom:0}.drive-destination-panel.expanded .drive-destination-head{border-bottom:1px solid #e8ebe3}.drive-destination-summary{min-width:0}.drive-destination-summary h2{font-size:14px;margin:0 0 5px}#drive-destination-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:13px}#drive-destination-summary a{overflow-wrap:anywhere}#drive-destination-details[hidden]{display:none}.drive-destination-panel .actions{flex-wrap:wrap}.drive-destination-panel #drive-scan-status{margin-top:22px}.drive-destination-head>button{flex-shrink:0}@media(max-width:600px){.drive-destination-head{padding:14px;align-items:flex-start;gap:10px}#drive-destination-summary .help{flex-basis:100%}.drive-destination-head>button{padding:8px 10px;font-size:12px}}
.customer-modes{margin-bottom:18px;flex-wrap:wrap}.customer-choice{display:flex;flex-direction:column;gap:5px;width:100%;padding:12px 16px;margin:8px 0;text-align:left;border:1px solid #dce5df;border-radius:9px;background:#fff;color:#183e40;cursor:pointer;font:inherit}.customer-choice:hover,.customer-choice:focus-visible{background:#edf4f0;border-color:#598b7f}.customer-choice span{font-size:13px;color:#63756b}#record-customer-results{max-height:320px;overflow:auto;margin-top:12px}#customer-delete-confirm[hidden]{display:none}
/* Price catalogue */
.tariff-sections{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.tariff-fields{grid-template-columns:minmax(120px,1fr) minmax(220px,3fr) minmax(120px,1fr)}
.tariff-picked{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tariff-client-chip{display:inline-flex;align-items:center;gap:10px;background:#edf2e9;border-radius:6px;padding:7px 10px;font-size:14px}
.tariff-client-chip button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:20px;line-height:1;padding:2px 5px}
.tariff-customer-results{max-height:220px;overflow:auto;margin-top:8px}
.tariff-discount{border:1px solid var(--border,#d9dfd3);border-radius:8px;padding:18px;margin-bottom:16px}
.tariff-discount-head{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.tariff-discount-head .field{max-width:150px}
.tariff-net{font-weight:600}
@media(max-width:760px){.tariff-fields{grid-template-columns:1fr}.tariff-discount-head{gap:12px}.tariff-sections .btn{flex-grow:1}}
/* Per-expediente documentation keeps previews small and originals in Drive. */
.documentation-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;margin-top:20px}
.documentation-card{border:1px solid var(--line,#dce2d8);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.documentation-card strong{overflow-wrap:anywhere}.documentation-card small{color:#667b76}
.documentation-card img,.documentation-placeholder{width:100%;height:170px;object-fit:contain;background:#f5f6f1;border-radius:6px}
.documentation-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#48675e}
.documentation-placeholder svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.5}
.documentation-card .notice{margin:0;font-size:13px}
.record-customer-inline{grid-column:1/-1;padding-bottom:22px;border-bottom:1px solid #e1e5dc;margin-bottom:4px}
.customer-numbering-details{margin-top:12px}.customer-numbering-details summary{cursor:pointer;color:#1d5053;font-weight:600}.customer-numbering-details form{margin-top:20px}

.customer-numbering-details .full{grid-column:1/-1}

/* Installed app controls and device safe areas. */
.pwa-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.pwa-controls [hidden]{display:none!important}
.sidebar .pwa-controls{margin:8px 10px}.sidebar .pwa-controls .btn{width:100%;white-space:normal}.sidebar .pwa-controls .subtle{color:#dce8e5;border-color:#52706f}
.pwa-dialog{width:min(520px,calc(100% - 32px));max-height:85dvh;padding:0;border:1px solid #dfe4da;border-radius:12px;background:#fffefa;color:#223d40;box-shadow:0 24px 80px #0004}
.pwa-dialog::backdrop{background:#153c4199}.pwa-dialog .panel-head{position:sticky;top:0;background:#fffefa}.pwa-dialog li{margin-bottom:12px}.pwa-dialog ol{padding-left:22px}.pwa-install-logo{display:block;width:112px;height:112px;object-fit:contain;margin:0 auto 18px}
@supports(height:100dvh){.shell,.auth{min-height:100dvh}}
@media(display-mode:standalone),(display-mode:fullscreen){body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.sidebar{top:env(safe-area-inset-top);bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left)}}

.customer-contacts{grid-column:1/-1;min-width:0}.customer-contact{min-width:0;margin:0 0 16px;padding:18px;border:1px solid #dce5df;border-radius:8px;background:#fff}.customer-contact legend{padding:0 6px;font-size:13px;color:#586c60}.customer-contact .actions{margin-top:12px}.customer-contact-summary{overflow-wrap:anywhere;margin:5px 0;font-size:13px}.customer-contact .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.customer-contact .form-grid{grid-template-columns:minmax(0,1fr)}.customer-contact{padding:12px}.customer-contacts .btn{white-space:normal}}

#app-refresh{white-space:nowrap}@media(max-width:600px){.topbar{gap:8px}.topbar-right{gap:6px}.topbar-right .environment,.crumb>span{display:none}.crumb{min-width:0}.crumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#app-refresh{padding:8px;font-size:11px}}
/* Delivery-note review: original and editable draft, independent scroll panes. */
.doc-review-thumb{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
dialog.delivery-review{width:calc(100vw - 32px);max-width:1800px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid var(--line,#dce2d5);border-radius:16px;color:var(--ink,#163d42);background:#fffef9;overflow:hidden}
.delivery-review::backdrop{background:#102e37bb}
.delivery-review[open]{display:flex;flex-direction:column}
.review-top{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #dce2d5;gap:12px}
.review-top h2{margin:3px 0;font-size:23px}.review-top .eyebrow{font-size:11px;letter-spacing:.12em}
.review-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,1fr);min-height:0;flex:1}
.review-original{min-width:0;min-height:0;background:#e7e9e3;display:flex;flex-direction:column;border-right:1px solid #dce2d5}
.review-tools{display:flex;align-items:center;gap:14px;padding:12px;flex-wrap:wrap;background:#f5f6f0}
.review-tools label{display:flex;align-items:center;gap:8px}.review-tools input{width:100px;padding:0}
.review-tools button{padding:7px 12px}.review-tools a{margin-left:auto;font-size:13px}
.review-canvas{overflow:auto;flex:1;min-height:0;padding:16px;text-align:center;overscroll-behavior:contain}
.review-canvas img{max-width:none;width:100%;height:auto;transform-origin:center center;box-shadow:0 2px 12px #152e3826}
.review-canvas iframe{width:100%;height:100%;min-height:300px;border:0}
.review-original-help{padding:8px 14px;margin:0;font-size:12px}
.review-editor{padding:20px 24px;overflow:auto;overscroll-behavior:contain;min-width:0}
.review-intro p{font-size:14px;line-height:1.5}.review-fields{border:0;margin:0;padding:0;min-width:0}.review-fields legend{font-size:18px;font-weight:650;margin:12px 0}
.review-header-fields,.review-row-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.review-fields input,.review-fields textarea{width:100%;min-width:0;font-size:14px}.review-fields .field{font-size:13px}
.review-wide{grid-column:1/-1}.review-article{border:1px solid #dce2d5;border-radius:12px;background:white;padding:16px;margin:16px 0}
.review-article header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.review-article h3{margin:0;font-size:16px}.review-article header button{font-size:12px;padding:5px 9px}
.review-mismatch{border-color:#c98331;background:#fffdf7}.review-line-total{display:flex;justify-content:space-between;padding-top:12px;font-size:14px}
.review-calculation{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:2px solid #254f52;margin-top:20px;padding-top:16px}.review-calculation strong{font-size:22px}.review-calculation small{grid-column:1/-1}
.review-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 24px;border-top:1px solid #dce2d5;background:#fffef9}.review-bottom a{font-size:13px}.review-confirm-label{display:flex;align-items:center;gap:8px;font-size:13px}.review-confirm-label input{width:18px;height:18px}.review-bottom .actions{margin:0}
.review-context{padding:12px 0;border-bottom:1px solid #dce2d5}.review-context .field{margin-bottom:8px}
.review-bottom [data-feedback]{flex-basis:100%;margin:0;font-size:13px}.review-bottom [data-feedback]:empty{display:none}
@media(max-width:900px){dialog.delivery-review{width:100vw;height:100dvh;border:0;border-radius:0;max-width:100vw}.review-workspace{grid-template-columns:1fr;display:block;overflow:auto}.review-original{height:45dvh;border-right:0}.review-editor{overflow:visible;padding:16px}.review-top{padding:10px 16px}.review-top h2{font-size:19px}.review-bottom{padding:10px 16px}.review-bottom .actions{display:flex;flex-wrap:wrap}.review-bottom button{font-size:12px;padding:9px}.review-original-help{display:none}}

.record-name-block{min-width:0}.record-excel-link{margin-top:10px}

/* A gentle rose tint identifies material delivery notes; labour keeps its palette. */
.delivery-card.delivery-material{background:#fffafa;border-color:#e8d3cf}
.delivery-material .delivery-heading{background:#f9eeec}
.delivery-material .delivery-heading .badge{background:#f5e3df;color:#80534d}
.delivery-material .article-table th{background:#fbf1ef}
.delivery-material .article-table td{border-color:#eee1de}
.delivery-material .article-table tbody tr:hover{background:#fff5f3}
.delivery-material .delivery-footer{background:#fcf3f1;border-color:#e8d3cf}
.version-entry{padding:18px 0;border-bottom:1px solid var(--border,#dce3d9);overflow-wrap:anywhere}
.version-entry:last-child{border-bottom:0}
.version-meta{display:flex;justify-content:space-between;gap:8px 24px;flex-wrap:wrap}
.version-meta time,.version-author{color:#576c69;font-size:.9rem}
.version-author{margin-top:6px}.version-summary{margin:10px 0}
.version-entry summary{cursor:pointer;color:#1d4f53;width:fit-content}
.version-changes{padding-left:22px}.version-changes li{margin:10px 0;white-space:pre-wrap}
.record-order{display:flex;flex-direction:column;gap:4px;font-size:.8rem;color:#576c69;max-width:100%}
.record-order select{font-size:.9rem;min-width:185px;max-width:100%}
#app-back{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){#app-back{padding:8px;font-size:11px;gap:4px}.topbar-right{flex-shrink:0}}

#record-documentation{scroll-margin-top:24px}
.record-actions-dialog{width:min(580px,calc(100% - 32px))}
.record-actions-dialog [hidden]{display:none!important}
.record-actions-dialog .actions{flex-wrap:wrap}
[data-record-actions]{margin-left:12px}

/* Workspace amounts and calendar periods */
.workspace-periods .panel-head .help{margin:7px 0 0}.workspace-period-form{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16px;padding:20px 24px 12px}.workspace-period-form .field{min-width:185px;flex:1;max-width:320px}.workspace-period-form .field[hidden]{display:none}.workspace-period-form .btn{align-self:flex-start;margin-top:24px}.workspace-period-result{padding:0 24px 20px;font-size:13px;color:#53695e;line-height:1.6}.workspace-period-result.error{color:#9d4437}.workspace-amount{margin-top:18px;padding-top:15px;border-top:1px solid #e3e9df;display:flex;flex-direction:column;gap:4px}.workspace-amount b{font-size:23px;font-weight:600;color:#1d5053;letter-spacing:-.5px;overflow-wrap:anywhere}.workspace-amount span{font-size:11px;color:#718178}.workspace-amount-total b{color:#596d4a}#workspace-stats[aria-busy=true]{opacity:.65}@media(max-width:600px){.workspace-period-form{padding:16px;gap:12px}.workspace-period-form .field{max-width:none;min-width:100%}.workspace-period-form .btn{margin-top:0}.workspace-period-result{padding:0 16px 16px}.workspace-amount b{font-size:20px}}

/* Compact amounts and prominent incoming Hermes contributions. */
.workspace-periods{margin-bottom:14px}.workspace-periods>summary{cursor:pointer;display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:12px 18px;font-size:13px;color:#53695e}.workspace-periods>summary strong{font-size:14px;color:#294c4d}.workspace-period-toggle{margin-left:auto;text-decoration:underline}.workspace-periods[open]>summary{border-bottom:1px solid #e1e5dc}.workspace-periods[open] .workspace-period-toggle:after{content:' ▴'}.workspace-periods:not([open]) .workspace-period-toggle:after{content:' ▾'}.workspace-stats{gap:12px;margin-bottom:22px}.workspace-stats .stat{padding:14px 18px}.workspace-stats .stat>strong{font-size:24px;margin:8px 0 0}.workspace-stats .stat-icon{padding:5px}.workspace-stats .workspace-amount{margin-top:10px;padding-top:8px;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 10px}.workspace-stats .workspace-amount b{font-size:18px}.workspace-activity{border-top:3px solid #1d5053}.workspace-activity h2{margin:0}.workspace-activity .panel-head{padding:18px 22px;gap:12px;flex-wrap:wrap}.workspace-activity .help{margin:5px 0 0}.workspace-activity-status{padding:10px 22px!important;margin:0!important}.workspace-activity-status.error{color:#9d4437}.workspace-seen{display:flex;gap:6px;align-items:center;font-size:12px;white-space:nowrap}.workspace-seen input{width:auto}.workspace-news{display:flex;justify-content:space-between;gap:14px;padding:16px 22px;border-top:1px solid #e1e5dc;background:#f7fbf8}.workspace-news.seen{background:transparent}.workspace-news>div:first-child{min-width:0;overflow-wrap:anywhere}.workspace-news-record{font-weight:650;font-size:16px}.workspace-news p{margin:4px 0;font-size:14px}.workspace-news .workspace-news-detail{font-size:13px;color:#53695e}.workspace-news time{display:block;margin-top:7px;font-size:12px;color:#687b72}.workspace-news>.actions{flex-shrink:0;align-self:center}#workspace-activity [data-activity-items]{max-height:450px;overflow:auto}@media(max-width:700px){.workspace-news{flex-direction:column;padding:14px 16px}.workspace-news>.actions{align-self:flex-start}.workspace-activity .panel-head{padding:16px}.workspace-periods>summary{gap:6px 12px}.workspace-stats .stat{padding:12px}.workspace-activity-status{padding:10px 16px!important}}

/* Shared module palette for recent records and quick access. */
.badge.module-asistencias,.soft-icon.module-asistencias{background:#edf2e8;color:#507364}
.badge.module-reformas,.soft-icon.module-reformas{background:#faeddd;color:#ae7950}
.badge.module-obras,.soft-icon.module-obras{background:#e8f0f1;color:#557d86}

.record-details{margin:0 0 24px}
.record-details>summary{padding:18px 24px;color:#223d40;font-size:15px;overflow-wrap:anywhere}
.record-details>summary strong{font-weight:700}
.record-details[open]>summary{border-bottom:1px solid #e8ebe3}
