/* ATENEA: componentes adaptables del panel. */
[x-cloak] {
    display: none !important;
}

/* Ficha integral de Clientes. */
.atenea-customer-profile { display:grid; gap:1.25rem; }
.atenea-dispatch-geolocation-alert { border-color:#fbbf24!important; background:#fffbeb; }.atenea-dispatch-geolocation-alert-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:.15rem 0 .85rem; }.atenea-dispatch-geolocation-alert-head strong,.atenea-dispatch-geolocation-alert-head span { display:block; }.atenea-dispatch-geolocation-alert-head strong { color:#92400e; font-size:1rem; }.atenea-dispatch-geolocation-alert-head>div>span { margin-top:.25rem; color:#a16207; font-size:.8rem; }.atenea-dispatch-geolocation-issues { display:grid; gap:.55rem; }.atenea-dispatch-geolocation-issues article { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .8rem; border:1px solid #fde68a; border-radius:.65rem; background:#fff; }.atenea-dispatch-geolocation-issues strong,.atenea-dispatch-geolocation-issues span,.atenea-dispatch-geolocation-issues small { display:block; }.atenea-dispatch-geolocation-issues strong { color:#334155; font-size:.82rem; }.atenea-dispatch-geolocation-issues span { margin-top:.12rem; color:#64748b; font-size:.75rem; }.atenea-dispatch-geolocation-issues small { margin-top:.12rem; color:#b45309; font-size:.72rem; }.atenea-dispatch-geolocation-issues a { flex:none; border-radius:.45rem; background:#2563eb; color:#fff; font-size:.74rem; font-weight:700; padding:.45rem .6rem; text-decoration:none; white-space:nowrap; }.atenea-dispatch-geolocation-missing-link { color:#b45309!important; font-size:.72rem!important; font-weight:700; white-space:nowrap; }
.atenea-dispatch-origin-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; padding:0 1.35rem .85rem; }.atenea-dispatch-origin-fields label { display:grid; gap:.3rem; color:#475569; font-size:.72rem; font-weight:800; text-transform:uppercase; }.atenea-dispatch-origin-fields input[type=text],.atenea-dispatch-origin-fields input[type=number] { min-height:2.35rem; border:1px solid #cbd5e1; border-radius:.45rem; padding:.45rem .55rem; color:#1e293b; font:inherit; font-size:.85rem; text-transform:none; }.atenea-dispatch-origin-fields .atenea-dispatch-origin-return { grid-column:1/-1; display:flex; align-items:center; gap:.5rem; font-size:.78rem; text-transform:none; }.atenea-dispatch-origin-modal .atenea-geolocation-actions { display:block; padding:0 1.35rem .9rem; }.atenea-dispatch-origin-modal .atenea-geolocation-map { padding:0; }.atenea-dispatch-origin-footer { display:flex; justify-content:flex-end; gap:.5rem; padding:.9rem 1.35rem 1.2rem; border-top:1px solid #e2e8f0; }
.atenea-dispatch-origin-modal .atenea-geolocation-details { display:grid; gap:.28rem; padding:0 1.35rem .85rem; }.atenea-dispatch-origin-modal .atenea-geolocation-details strong { color:#0f172a; font-size:.9rem; line-height:1.35; }.atenea-dispatch-origin-modal .atenea-geolocation-details span { color:#475569; font-size:.82rem; line-height:1.45; }
.atenea-transformation-flow{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:.15rem 0 .25rem;padding:1rem 1.15rem;border:1px solid #dbe4ef;border-radius:.85rem;background:linear-gradient(90deg,#fffaf5 0%,#f8fafc 47%,#f4fbf6 100%);overflow:hidden}.atenea-transformation-flow-label{display:flex;align-items:center;gap:.5rem;min-width:10.7rem}.atenea-transformation-flow-label>span{display:grid;flex:none;width:1.7rem;height:1.7rem;place-items:center;border-radius:50%;font-size:.68rem;font-weight:800}.atenea-transformation-flow-label strong,.atenea-transformation-flow-label small{display:block}.atenea-transformation-flow-label strong{color:#1e293b;font-size:.8rem}.atenea-transformation-flow-label small{margin-top:.08rem;color:#64748b;font-size:.68rem}.atenea-transformation-flow-label.is-input>span{background:#ffedd5;color:#c2410c}.atenea-transformation-flow-label.is-output>span{background:#dcfce7;color:#15803d}.atenea-transformation-conveyor{display:flex;align-items:center;gap:.12rem;min-width:8.5rem;height:2.25rem;padding:.25rem .35rem;border-top:3px solid #94a3b8;border-bottom:3px solid #94a3b8;background:#e2e8f0}.atenea-transformation-conveyor i{display:block;flex:1;height:.6rem;border-radius:999px;background:#64748b}.atenea-transformation-crate{display:grid;z-index:1;flex:none;width:1.65rem;height:1.65rem;place-items:center;border:2px solid #c2410c;border-radius:.25rem;background:#fed7aa;color:#9a3412;font-size:1.05rem;font-weight:900}.atenea-transformation-conveyor.is-output .atenea-transformation-crate{border-color:#15803d;background:#bbf7d0;color:#166534}.atenea-transformation-machine{position:relative;display:grid;flex:none;width:5.4rem;height:4.4rem;place-items:center;padding-top:.15rem;border:3px solid #334155;border-radius:.65rem .65rem .28rem .28rem;background:linear-gradient(145deg,#e2e8f0,#94a3b8);box-shadow:inset 0 0 0 3px #cbd5e1}.atenea-transformation-machine:before,.atenea-transformation-machine:after{position:absolute;bottom:-.45rem;width:.7rem;height:.55rem;border-radius:0 0 .18rem .18rem;background:#334155;content:''}.atenea-transformation-machine:before{left:.65rem}.atenea-transformation-machine:after{right:.65rem}.atenea-transformation-machine-top{position:absolute;top:-.8rem;left:1.55rem;width:2.2rem;height:.9rem;border:3px solid #334155;border-bottom:0;border-radius:.35rem .35rem 0 0;background:#cbd5e1}.atenea-transformation-machine-light{position:absolute;top:.42rem;right:.48rem;width:.38rem;height:.38rem;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px rgb(255 255 255 / .45)}.atenea-transformation-machine-gear{color:#1e3a5f;font-size:1.75rem;line-height:1}.atenea-transformation-machine-label{position:absolute;bottom:.35rem;color:#1e293b;font-size:.48rem;font-weight:900;letter-spacing:.08em}.atenea-transformation-stage{border-left:3px solid #94a3b8}.atenea-transformation-stage.is-input{border-left-color:#f97316}.atenea-transformation-stage.is-output{border-left-color:#22c55e}@media(max-width:850px){.atenea-transformation-flow{gap:.35rem;padding:.8rem}.atenea-transformation-flow-label{min-width:8.6rem}.atenea-transformation-conveyor{min-width:4rem}.atenea-transformation-machine{width:4.7rem}}@media(max-width:700px){.atenea-transformation-flow{align-items:stretch;flex-direction:column}.atenea-transformation-flow-label{width:100%}.atenea-transformation-conveyor{min-width:0;width:100%}.atenea-transformation-machine{align-self:center}.atenea-transformation-conveyor.is-output{flex-direction:row-reverse}}
.atenea-customer-geolocation-panel { overflow:hidden; }
.atenea-geolocation-actions { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.atenea-geolocation-status { display:inline-flex; align-items:center; min-height:2rem; padding:0 .7rem; border-radius:999px; font-size:.78rem; font-weight:700; background:#f3f4f6; color:#4b5563; }
.atenea-geolocation-status.is-verified { background:#dcfce7; color:#166534; }
.atenea-geolocation-status.is-review { background:#fef3c7; color:#92400e; }
.atenea-geolocation-status.is-unverified { background:#dbeafe; color:#1d4ed8; }
.atenea-geolocation-map { padding:0 1.15rem 1rem; position:relative; z-index:0; isolation:isolate; }
.atenea-geolocation-map-frame { position:relative; z-index:0; isolation:isolate; }
.atenea-geolocation-map-canvas { height:245px; width:100%; overflow:hidden; border:1px solid #dbe2ea; border-radius:.75rem; background:#eef3f8; }
.atenea-geolocation-map .leaflet-pane { z-index:1; }.atenea-geolocation-map .leaflet-top,.atenea-geolocation-map .leaflet-bottom { z-index:2; }
.atenea-geolocation-fullscreen { position:absolute; z-index:3; top:.55rem; right:.55rem; border:1px solid #cbd5e1; border-radius:.45rem; background:#fff; color:#334155; box-shadow:0 1px 3px rgb(15 23 42 / .18); cursor:pointer; font-size:.75rem; font-weight:700; padding:.42rem .58rem; }.atenea-geolocation-fullscreen:hover { border-color:#60a5fa; color:#1d4ed8; }.atenea-geolocation-map-frame:fullscreen { display:block; width:100vw; height:100vh; padding:1rem; background:#fff; }.atenea-geolocation-map-frame:fullscreen .atenea-geolocation-map-canvas { height:calc(100vh - 2rem); border-radius:.5rem; }.atenea-geolocation-map-frame:fullscreen .atenea-geolocation-fullscreen { top:1.55rem; right:1.55rem; }
.atenea-geolocation-note { display:block; padding:0 1.15rem 1.15rem; color:#64748b; }
.atenea-active-only-toggle { display:inline-flex; align-items:center; gap:.48rem; margin-left:.55rem; color:rgb(55 65 81); font-size:.78rem; font-weight:700; vertical-align:middle; white-space:nowrap; }.atenea-active-only-toggle button { position:relative; width:2.15rem; height:1.22rem; border:0; border-radius:999px; background:rgb(203 213 225); cursor:pointer; transition:background .16s ease; }.atenea-active-only-toggle button span { position:absolute; top:.17rem; left:.17rem; width:.88rem; height:.88rem; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgb(0 0 0 / .2); transition:transform .16s ease; }.atenea-active-only-toggle button.is-active { background:rgb(34 197 94); }.atenea-active-only-toggle button.is-active span { transform:translateX(.93rem); }
.atenea-customer-identity-card,.atenea-customer-kpi,.atenea-customer-panel { border:1px solid rgb(229 231 235); border-radius:.9rem; background:#fff; box-shadow:0 1px 2px rgb(0 0 0 / .04); }
.atenea-customer-identity-card { display:grid; grid-template-columns:auto minmax(13rem,1.55fr) repeat(2,minmax(9rem,1fr)) minmax(16rem,1.15fr); gap:1.15rem; align-items:center; padding:1.25rem 1.4rem; }
.atenea-customer-location-preview { align-self:stretch; min-height:148px; display:flex; flex-direction:column; gap:.45rem; }.atenea-customer-location-preview-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.6rem; color:#64748b; font-size:.72rem; font-weight:700; }.atenea-customer-location-preview-head>div { min-width:0; display:grid; gap:.14rem; }.atenea-customer-location-preview-head strong { overflow:hidden; color:#334155; font-size:.78rem; font-weight:700; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }.atenea-customer-location-preview .atenea-geolocation-status { flex:none; min-height:1.45rem; padding:0 .45rem; font-size:.65rem; white-space:nowrap; }.atenea-geolocation-preview-button { position:relative; flex:1; min-height:112px; overflow:hidden; border:1px solid #dbe2ea; border-radius:.7rem; background:#eef3f8; cursor:pointer; text-align:left; }.atenea-geolocation-preview-button .atenea-geolocation-map { height:100%; padding:0; pointer-events:none; }.atenea-geolocation-preview-button .atenea-geolocation-map-canvas { height:100%; min-height:112px; border:0; border-radius:0; }.atenea-geolocation-preview-button>span { position:absolute; right:.45rem; bottom:.45rem; padding:.3rem .5rem; border-radius:.4rem; background:rgb(15 23 42 / .83); color:#fff; font-size:.68rem; font-weight:700; }.atenea-geolocation-modal-backdrop { position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:1rem; background:rgb(15 23 42 / .56); }.atenea-geolocation-modal { width:min(760px,100%); max-height:calc(100vh - 2rem); overflow:auto; border-radius:1rem; background:#fff; box-shadow:0 25px 60px rgb(0 0 0 / .25); }.atenea-geolocation-modal>header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1.25rem 1.35rem .85rem; }.atenea-geolocation-modal h3 { margin:0; color:#172554; font-size:1.1rem; }.atenea-geolocation-modal p { margin:.25rem 0 0; color:#64748b; font-size:.85rem; }.atenea-geolocation-modal>header button { border:0; background:transparent; color:#64748b; font-size:1.7rem; line-height:1; cursor:pointer; }.atenea-geolocation-modal .atenea-geolocation-actions { padding:0 1.35rem .75rem; }.atenea-geolocation-modal .atenea-geolocation-map-canvas { height:min(420px,52vh); }
.atenea-customer-avatar { display:grid; width:3.4rem; height:3.4rem; place-items:center; border-radius:.85rem; background:rgb(239 246 255); color:rgb(29 78 216); font-size:1.45rem; font-weight:800; }
.atenea-customer-primary h2 { margin:.15rem 0 .45rem; color:rgb(17 24 39); font-size:1.35rem; font-weight:750; }
.atenea-customer-eyebrow,.atenea-customer-contact>span,.atenea-customer-kpi>span { color:rgb(107 114 128); font-size:.72rem; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.atenea-customer-tags { display:flex; flex-wrap:wrap; gap:.35rem; }.atenea-customer-tag { display:inline-flex; padding:.2rem .48rem; border-radius:999px; background:rgb(243 244 246); color:rgb(75 85 99); font-size:.72rem; font-weight:650; }.atenea-customer-tag.is-wc { background:rgb(236 253 245); color:rgb(4 120 87); }.atenea-customer-tag.is-warning { background:rgb(255 247 237); color:rgb(180 83 9); }.atenea-customer-tag.is-danger { background:rgb(254 242 242); color:rgb(185 28 28); }
.atenea-customer-contact { display:grid; gap:.22rem; min-width:0; }.atenea-customer-contact>strong { overflow-wrap:anywhere; color:rgb(31 41 55); font-size:.9rem; font-weight:650; }
.atenea-customer-kpis { display:grid; grid-template-columns:repeat(6,minmax(10rem,1fr)); gap:.8rem; }.atenea-customer-kpi { display:flex; min-height:7.7rem; flex-direction:column; justify-content:center; padding:1rem 1.05rem; }.atenea-customer-kpi>strong { margin:.35rem 0 .18rem; color:rgb(17 24 39); font-size:1.4rem; line-height:1.1; }.atenea-customer-kpi>small { color:rgb(107 114 128); font-size:.76rem; }.atenea-customer-kpi.is-debt { border-color:rgb(253 186 116); background:rgb(255 247 237); }.atenea-customer-kpi.is-debt>strong { color:rgb(194 65 12); }
.atenea-customer-insights { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(18rem,.85fr); gap:1.25rem; }.atenea-customer-panel { overflow:hidden; }.atenea-customer-panel>header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.2rem; border-bottom:1px solid rgb(229 231 235); }.atenea-customer-panel h3 { margin:0; color:rgb(31 41 55); font-size:1rem; font-weight:750; }.atenea-customer-panel header p { margin:.15rem 0 0; color:rgb(107 114 128); font-size:.78rem; }
.atenea-customer-bars { display:grid; grid-template-columns:repeat(12,minmax(2.25rem,1fr)); gap:.45rem; height:16.5rem; padding:1.05rem 1.1rem .8rem; overflow-x:auto; }.atenea-customer-bar-column { display:grid; grid-template-rows:1.25rem 11rem auto; min-width:2.25rem; gap:.28rem; align-items:end; }.atenea-customer-bar-value { overflow:hidden; color:rgb(75 85 99); font-size:.62rem; text-align:center; text-overflow:ellipsis; white-space:nowrap; }.atenea-customer-bar-track { display:flex; height:11rem; align-items:end; border-bottom:1px solid rgb(229 231 235); background:linear-gradient(to top,rgb(249 250 251),transparent); }.atenea-customer-bar { width:100%; min-height:0; border-radius:.35rem .35rem 0 0; background:linear-gradient(180deg,rgb(96 165 250),rgb(37 99 235)); }.atenea-customer-bar-label { color:rgb(107 114 128); font-size:.66rem; text-align:center; white-space:nowrap; }
.atenea-customer-top-products { display:grid; margin:0; padding:0; list-style:none; }.atenea-customer-top-products li { display:grid; grid-template-columns:1.55rem minmax(0,1fr) auto; gap:.65rem; align-items:center; padding:.78rem 1.1rem; }.atenea-customer-top-products li+li { border-top:1px solid rgb(243 244 246); }.atenea-customer-product-rank { display:grid; width:1.45rem; height:1.45rem; place-items:center; border-radius:50%; background:rgb(239 246 255); color:rgb(29 78 216); font-size:.7rem; font-weight:750; }.atenea-customer-top-products strong { display:block; color:rgb(55 65 81); font-size:.8rem; line-height:1.25; }.atenea-customer-top-products small { color:rgb(107 114 128); font-size:.72rem; }.atenea-customer-top-products b { color:rgb(31 41 55); font-size:.8rem; white-space:nowrap; }
.atenea-customer-payments-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(18rem,.85fr); gap:1.25rem; align-items:start; }.atenea-customer-table-wrap { overflow-x:auto; }.atenea-customer-debt-table { width:100%; border-collapse:collapse; table-layout:fixed; }.atenea-customer-debt-table th,.atenea-customer-debt-table td { padding:.65rem .58rem; border-bottom:1px solid rgb(243 244 246); color:rgb(55 65 81); font-size:.8rem; text-align:left; vertical-align:top; }.atenea-customer-debt-table th { background:rgb(249 250 251); color:rgb(107 114 128); font-size:.65rem; font-weight:750; letter-spacing:.025em; text-transform:uppercase; }.atenea-customer-debt-table th:first-child,.atenea-customer-debt-table td:first-child { width:2.2rem; text-align:center; }.atenea-customer-debt-table th:nth-child(2),.atenea-customer-debt-table td:nth-child(2) { width:4.7rem; }.atenea-customer-debt-table th:nth-child(3),.atenea-customer-debt-table td:nth-child(3) { width:34%; }.atenea-customer-debt-table th:nth-last-child(-n+3),.atenea-customer-debt-table td:nth-last-child(-n+3) { width:5.5rem; text-align:right; white-space:nowrap; }.atenea-customer-debt-table td strong,.atenea-customer-debt-table td small { display:block; }.atenea-customer-debt-table td small { margin-top:.18rem; color:rgb(107 114 128); font-size:.7rem; line-height:1.25; }.atenea-customer-debt-table tfoot td { border:0; background:rgb(255 247 237); color:rgb(154 52 18); font-size:.84rem; font-weight:800; }.atenea-customer-received-panel>header>strong { color:rgb(5 150 105); font-size:.95rem; white-space:nowrap; }.atenea-received-payments-list { display:grid; }.atenea-received-payments-list article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.65rem; align-items:start; padding:.78rem 1rem; }.atenea-received-payments-list article+article { border-top:1px solid rgb(243 244 246); }.atenea-received-payments-list strong,.atenea-received-payments-list small { display:block; }.atenea-received-payments-list strong { color:rgb(55 65 81); font-size:.8rem; }.atenea-received-payments-list small { margin-top:.18rem; color:rgb(107 114 128); font-size:.7rem; line-height:1.3; }.atenea-received-payments-list b { color:rgb(5 150 105); font-size:.82rem; white-space:nowrap; }
.atenea-ledger-panel { border-color:rgb(191 219 254); }.atenea-ledger-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.45rem; align-items:center; }.atenea-ledger-total { color:rgb(153 27 27); font-size:.84rem; font-weight:800; margin-right:.2rem; }.atenea-copy-secondary { background:rgb(71 85 105); }.atenea-copy-secondary:hover { background:rgb(51 65 85); }.atenea-ledger-summary { display:grid; grid-template-columns:repeat(3,minmax(10rem,1fr)); border-bottom:1px solid rgb(229 231 235); }.atenea-ledger-summary>div { display:grid; gap:.18rem; padding:.75rem 1.15rem; }.atenea-ledger-summary>div+div { border-left:1px solid rgb(229 231 235); }.atenea-ledger-summary span { color:rgb(100 116 139); font-size:.68rem; font-weight:750; letter-spacing:.03em; text-transform:uppercase; }.atenea-ledger-summary strong { color:rgb(30 41 59); font-size:1rem; }.atenea-ledger-summary .is-overdue strong { color:rgb(194 65 12); }.atenea-ledger-table { width:100%; min-width:52rem; border-collapse:collapse; }.atenea-ledger-table th,.atenea-ledger-table td { padding:.62rem .7rem; border-bottom:1px solid rgb(241 245 249); color:rgb(51 65 85); font-size:.78rem; vertical-align:top; }.atenea-ledger-table th { background:rgb(248 250 252); color:rgb(100 116 139); font-size:.64rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase; text-align:left; }.atenea-ledger-table td:nth-child(5),.atenea-ledger-table td:nth-child(6),.atenea-ledger-table td:nth-child(7) { text-align:right; white-space:nowrap; }.atenea-ledger-table td small { display:block; margin-top:.16rem; color:rgb(100 116 139); font-size:.68rem; }.atenea-ledger-row.is-payment { background:rgb(240 253 244); }.atenea-ledger-kind,.atenea-ledger-status { display:inline-flex; border-radius:999px; padding:.18rem .42rem; font-size:.68rem; font-weight:750; white-space:nowrap; }.atenea-ledger-kind.is-order { background:rgb(239 246 255); color:rgb(29 78 216); }.atenea-ledger-kind.is-payment { background:rgb(220 252 231); color:rgb(21 128 61); }.atenea-ledger-status.is-pagado,.atenea-ledger-status.is-imputado { background:rgb(220 252 231); color:rgb(21 128 61); }.atenea-ledger-status.is-pendiente { background:rgb(255 237 213); color:rgb(194 65 12); }.atenea-ledger-status.is-pago-parcial,.atenea-ledger-status.is-saldo-a-favor { background:rgb(254 249 195); color:rgb(161 98 7); }.atenea-ledger-table .is-balance { color:rgb(194 65 12); font-weight:800; }.atenea-ledger-details summary { color:rgb(37 99 235); cursor:pointer; font-size:.72rem; font-weight:750; }.atenea-ledger-details>div { display:grid; gap:.25rem; min-width:15rem; padding:.55rem 0 .1rem; }.atenea-ledger-details p { display:flex; justify-content:space-between; gap:.6rem; margin:0; color:rgb(71 85 105); font-size:.72rem; }.atenea-ledger-details p.is-link { color:rgb(37 99 235); }
.atenea-ledger-view-selector{display:inline-flex;overflow:hidden;border:1px solid rgb(191 219 254);border-radius:.5rem;background:#fff}.atenea-ledger-view-selector button{border:0;border-right:1px solid rgb(191 219 254);background:#fff;color:rgb(51 65 85);padding:.42rem .62rem;cursor:pointer;font-size:.72rem;font-weight:750}.atenea-ledger-view-selector button:last-child{border-right:0}.atenea-ledger-view-selector button:hover{background:rgb(239 246 255)}.atenea-ledger-view-selector button.is-active{background:rgb(37 99 235);color:#fff}.atenea-ledger-table th button{border:0;background:transparent;padding:0;color:inherit;cursor:pointer;font:inherit;text-transform:inherit;letter-spacing:inherit;font-weight:inherit}.atenea-ledger-table th button:hover{color:rgb(37 99 235)}
.atenea-ledger-detail-sort{display:flex;justify-content:flex-end;align-items:center;gap:.45rem;padding:.65rem 1rem;border-bottom:1px solid rgb(226 232 240);background:rgb(248 250 252)}.atenea-ledger-detail-sort label{color:rgb(71 85 105);font-size:.72rem;font-weight:750}.atenea-ledger-detail-sort select,.atenea-ledger-detail-sort button{min-height:2rem;border:1px solid rgb(191 219 254);border-radius:.4rem;background:#fff;padding:.25rem .5rem;color:rgb(51 65 85);font-size:.72rem;font-weight:700}.atenea-ledger-detail-sort button{cursor:pointer}.atenea-ledger-detail-list{display:grid;gap:.7rem;padding:.75rem}.atenea-ledger-order-card{overflow:hidden;border:1px solid rgb(203 213 225);border-radius:.65rem;background:#fff}.atenea-ledger-order-card-head{display:grid;grid-template-columns:repeat(7,minmax(6.3rem,1fr));gap:.55rem;padding:.75rem 1rem;background:rgb(241 245 249)}.atenea-ledger-order-card-head>div{display:grid;gap:.15rem}.atenea-ledger-order-card-head span,.atenea-ledger-order-card-products>span{color:rgb(100 116 139);font-size:.63rem;font-weight:800;letter-spacing:.035em;text-transform:uppercase}.atenea-ledger-order-card-head strong,.atenea-ledger-order-card-head button{color:rgb(30 41 59);font-size:.78rem;font-weight:800}.atenea-ledger-order-card-head button{width:max-content;border:0;background:transparent;padding:0;color:rgb(37 99 235);cursor:pointer}.atenea-ledger-order-card-head .is-balance{color:rgb(194 65 12)}.atenea-ledger-order-card-products{padding:.7rem 1rem}.atenea-ledger-order-card-products>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1.25rem;margin-top:.45rem}.atenea-ledger-order-card-products p{margin:0;color:rgb(51 65 85);font-size:.78rem}.atenea-ledger-order-card-products p b{color:rgb(15 23 42)}.atenea-ledger-order-card footer{padding:.52rem 1rem;border-top:1px solid rgb(226 232 240);color:rgb(71 85 105);font-size:.72rem}.atenea-ledger-order-card footer b{color:rgb(30 41 59)}@media(max-width:900px){.atenea-ledger-order-card-head{grid-template-columns:repeat(3,minmax(0,1fr))}.atenea-ledger-order-card-products>div{grid-template-columns:1fr}}@media(max-width:560px){.atenea-ledger-detail-sort{justify-content:flex-start;flex-wrap:wrap}.atenea-ledger-order-card-head{grid-template-columns:repeat(2,minmax(0,1fr))}}
.atenea-ledger-order-link { border:0; background:transparent; color:rgb(29 78 216); cursor:pointer; font:inherit; font-weight:800; padding:0; }.atenea-ledger-order-link:hover { text-decoration:underline; }.atenea-ledger-relations { display:flex; flex-wrap:wrap; gap:.28rem; }.atenea-ledger-relations span { display:inline-flex; gap:.28rem; border-radius:.35rem; background:rgb(239 246 255); color:rgb(30 64 175); font-size:.68rem; padding:.2rem .35rem; white-space:nowrap; }.atenea-ledger-row.is-payment .atenea-ledger-relations span { background:rgb(220 252 231); color:rgb(21 128 61); }.atenea-ledger-expanded td { padding:0!important; background:rgb(248 250 252); }.atenea-ledger-expanded-card { margin:.65rem .8rem; border:1px solid rgb(191 219 254); border-radius:.6rem; background:#fff; overflow:hidden; }.atenea-ledger-expanded-card>div:first-child,.atenea-ledger-expanded-footer { display:flex; justify-content:space-between; gap:1rem; padding:.65rem .8rem; color:rgb(51 65 85); font-size:.76rem; }.atenea-ledger-expanded-card>div:first-child { background:rgb(239 246 255); color:rgb(30 64 175); font-weight:750; }.atenea-ledger-expanded-card table { width:100%; border-collapse:collapse; }.atenea-ledger-expanded-card th,.atenea-ledger-expanded-card td { padding:.45rem .8rem; border-bottom:1px solid rgb(241 245 249); color:rgb(71 85 105); font-size:.73rem; text-align:left; }.atenea-ledger-expanded-card th { color:rgb(100 116 139); font-size:.62rem; letter-spacing:.03em; text-transform:uppercase; }.atenea-ledger-expanded-card th:nth-last-child(-n+3),.atenea-ledger-expanded-card td:nth-last-child(-n+3) { text-align:right; }.atenea-ledger-expanded-footer { background:rgb(255 247 237); color:rgb(154 52 18); }.atenea-ledger-expanded-footer b { color:rgb(29 78 216); }
.atenea-payment-modal-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:1rem;background:rgba(15,23,42,.52)}.atenea-payment-editor{width:min(100%,42rem);max-height:calc(100vh - 2rem);overflow:auto;border:1px solid rgb(191 219 254);border-radius:.85rem;background:#fff;box-shadow:0 24px 65px rgba(15,23,42,.3)}.atenea-payment-editor header{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid rgb(226 232 240);background:rgb(248 251 255)}.atenea-payment-editor header span{display:block;color:rgb(37 99 235);font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.atenea-payment-editor header h3{margin:.12rem 0;color:rgb(15 23 42);font-size:1.08rem}.atenea-payment-editor header p{margin:0;color:rgb(100 116 139);font-size:.78rem}.atenea-payment-modal-close{width:2rem;height:2rem;border:0;border-radius:.45rem;background:transparent;color:rgb(71 85 105);cursor:pointer;font-size:1.5rem;line-height:1}.atenea-payment-modal-close:hover{background:rgb(226 232 240)}.atenea-payment-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;padding:1rem 1.15rem}.atenea-payment-editor label{display:block;margin-bottom:.28rem;color:rgb(71 85 105);font-size:.68rem;font-weight:800;text-transform:uppercase}.atenea-payment-editor input,.atenea-payment-editor select{width:100%;min-height:2.3rem;border:1px solid rgb(203 213 225);border-radius:.45rem;background:#fff;padding:.42rem .55rem;color:rgb(30 41 59);font-size:.84rem}.atenea-payment-editor small{display:block;margin-top:.22rem;color:rgb(220 38 38);font-size:.68rem}.atenea-payment-editor-note{grid-column:span 2}.atenea-payment-editor-actions{display:flex;justify-content:flex-end;gap:.45rem;align-items:center;padding:.85rem 1.15rem;border-top:1px solid rgb(226 232 240);background:rgb(248 250 252)}.atenea-payment-editor-actions button,.atenea-payment-row-actions button{border:0;border-radius:.4rem;padding:.42rem .65rem;background:rgb(37 99 235);color:#fff;cursor:pointer;font-size:.72rem;font-weight:750}.atenea-payment-editor-actions .atenea-copy-secondary{background:rgb(100 116 139)}.atenea-payment-row-actions{display:flex;gap:.35rem;align-items:center}.atenea-payment-row-actions .is-delete{background:rgb(220 38 38)}.atenea-ledger-table th:last-child,.atenea-ledger-table td:last-child{white-space:nowrap}
.atenea-payment-editor{width:min(100%,48rem)}.atenea-payment-editor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;padding:.85rem 1.15rem;border-top:1px solid rgb(241 245 249);border-bottom:1px solid rgb(226 232 240);background:rgb(248 250 252)}.atenea-payment-editor-summary>div{display:grid;gap:.15rem;padding:.55rem .65rem;border:1px solid rgb(219 234 254);border-radius:.5rem;background:#fff}.atenea-payment-editor-summary span{color:rgb(100 116 139);font-size:.64rem;font-weight:800;letter-spacing:.025em;text-transform:uppercase}.atenea-payment-editor-summary strong{color:rgb(30 64 175);font-size:1rem}.atenea-payment-editor-summary .is-debt{border-color:rgb(254 215 170);background:rgb(255 247 237)}.atenea-payment-editor-summary .is-debt span,.atenea-payment-editor-summary .is-debt strong{color:rgb(194 65 12)}.atenea-payment-editor-summary .is-excess{border-color:rgb(254 202 202);background:rgb(254 242 242)}.atenea-payment-editor-summary .is-excess span,.atenea-payment-editor-summary .is-excess strong{color:rgb(185 28 28)}.atenea-payment-allocation-section{padding:1rem 1.15rem}.atenea-payment-allocation-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.65rem}.atenea-payment-allocation-heading label{margin:0}.atenea-payment-allocation-heading p{max-width:33rem;margin:.22rem 0 0;color:rgb(100 116 139);font-size:.78rem;line-height:1.4}.atenea-payment-allocation-heading>strong{padding:.25rem .45rem;border-radius:999px;background:rgb(239 246 255);color:rgb(30 64 175);font-size:.7rem;white-space:nowrap}.atenea-payment-allocation-table-wrap{overflow:auto;border:1px solid rgb(226 232 240);border-radius:.55rem}.atenea-payment-allocation-table{width:100%;border-collapse:collapse;min-width:35rem}.atenea-payment-allocation-table th{padding:.52rem .65rem;background:rgb(248 250 252);color:rgb(71 85 105);font-size:.64rem;font-weight:800;letter-spacing:.035em;text-align:left;text-transform:uppercase}.atenea-payment-allocation-table td{padding:.48rem .65rem;border-top:1px solid rgb(241 245 249);color:rgb(30 41 59);font-size:.8rem}.atenea-payment-allocation-table th:nth-child(2),.atenea-payment-allocation-table td:nth-child(2){text-align:right;white-space:nowrap}.atenea-payment-allocation-table th:last-child,.atenea-payment-allocation-table td:last-child{width:10.5rem}.atenea-payment-allocation-input{display:flex;align-items:center;overflow:hidden;border:1px solid rgb(203 213 225);border-radius:.42rem;background:#fff}.atenea-payment-allocation-input span{padding:0 .48rem;color:rgb(100 116 139);font-size:.8rem}.atenea-payment-editor .atenea-payment-allocation-input input{min-height:2.1rem;border:0;border-left:1px solid rgb(226 232 240);border-radius:0;padding:.35rem .45rem;text-align:right}.atenea-payment-allocation-error{margin:.55rem 0 0;color:rgb(185 28 28);font-size:.76rem;font-weight:700}@media(max-width:720px){.atenea-payment-editor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.atenea-payment-editor-summary{grid-template-columns:1fr}.atenea-payment-allocation-section{padding:.85rem}.atenea-payment-allocation-heading{display:block}.atenea-payment-allocation-heading>strong{display:inline-block;margin-top:.45rem}}
@media(max-width:620px){.atenea-payment-editor-fields{grid-template-columns:1fr}.atenea-payment-editor-note{grid-column:auto}}
.atenea-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.atenea-collection-list { display:grid; }.atenea-collection-list article { display:flex; justify-content:space-between; gap:.75rem; padding:.8rem 1rem; }.atenea-collection-list article+article { border-top:1px solid rgb(241 245 249); }.atenea-collection-list article.is-overdue { background:rgb(255 247 237); }.atenea-collection-list strong,.atenea-collection-list small { display:block; }.atenea-collection-list strong { color:rgb(51 65 85); font-size:.8rem; }.atenea-collection-list small { margin-top:.15rem; color:rgb(100 116 139); font-size:.71rem; line-height:1.35; }.atenea-promise-actions { display:flex; align-items:flex-start; gap:.3rem; }.atenea-promise-actions button { border:1px solid rgb(203 213 225); border-radius:.42rem; background:#fff; color:rgb(51 65 85); cursor:pointer; font-size:.68rem; font-weight:700; padding:.32rem .45rem; }.atenea-promise-actions button:first-child { border-color:rgb(134 239 172); color:rgb(21 128 61); }.atenea-promise-actions button:hover { background:rgb(248 250 252); }
.atenea-copy-button,.atenea-note-save { border:0; border-radius:.55rem; background:rgb(37 99 235); color:#fff; cursor:pointer; font-size:.8rem; font-weight:700; padding:.6rem .8rem; white-space:nowrap; }.atenea-copy-button:hover,.atenea-note-save:hover { background:rgb(29 78 216); }.atenea-debt-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem; }.atenea-debt-actions input { min-height:2.25rem; border:1px solid rgb(209 213 219); border-radius:.55rem; padding:0 .55rem; color:rgb(55 65 81); font:inherit; font-size:.8rem; }.atenea-select-order { border:0; background:transparent; color:rgb(37 99 235); cursor:pointer; font:inherit; font-weight:750; padding:0; }.atenea-select-order:hover { text-decoration:underline; }.atenea-debt-validation { padding:.5rem 1.2rem; }.atenea-customer-note-composer { display:grid; gap:.55rem; padding:1rem 1.15rem; border-bottom:1px solid rgb(229 231 235); }.atenea-customer-note-composer textarea { width:100%; resize:vertical; border:1px solid rgb(209 213 219); border-radius:.6rem; padding:.7rem .8rem; color:rgb(31 41 55); font:inherit; }.atenea-note-save { justify-self:end; }.atenea-customer-validation { margin:0; color:rgb(185 28 28); font-size:.78rem; }.atenea-customer-notes-list { display:grid; }.atenea-customer-notes-list article { padding:.9rem 1.15rem; }.atenea-customer-notes-list article+article { border-top:1px solid rgb(243 244 246); }.atenea-customer-notes-list article div { display:flex; gap:.55rem; color:rgb(107 114 128); font-size:.72rem; }.atenea-customer-notes-list article p { margin:.35rem 0 0; color:rgb(55 65 81); font-size:.86rem; line-height:1.45; white-space:pre-wrap; }.atenea-customer-empty { display:block!important; padding:1rem 1.15rem!important; color:rgb(107 114 128); font-size:.84rem; text-align:left!important; }
@media (max-width:1199px) { .atenea-customer-identity-card { grid-template-columns:auto minmax(14rem,1fr) repeat(2,minmax(10rem,1fr)); }.atenea-customer-location-preview { grid-column:2 / -1; max-width:22rem; }.atenea-customer-kpis { grid-template-columns:repeat(3,minmax(10rem,1fr)); } }
@media (max-width:1000px) { .atenea-customer-payments-grid { grid-template-columns:1fr; } }
@media (max-width:767px) { .atenea-customer-identity-card { grid-template-columns:auto 1fr; padding:1rem; }.atenea-customer-primary { grid-column:2; }.atenea-customer-contact,.atenea-customer-location-preview { grid-column:1 / -1; max-width:none; }.atenea-customer-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.atenea-customer-insights { grid-template-columns:1fr; }.atenea-customer-panel>header { align-items:flex-start; flex-direction:column; }.atenea-copy-button,.atenea-debt-actions { width:100%; }.atenea-debt-actions .atenea-note-save,.atenea-debt-actions .atenea-copy-button { flex:1; }.atenea-customer-debt-table { min-width:31rem; }.atenea-geolocation-actions { width:100%; }.atenea-geolocation-map { padding:0 .85rem .85rem; }.atenea-geolocation-map-canvas { height:220px; }.atenea-geolocation-note { padding:0 .85rem 1rem; }.atenea-geolocation-modal { max-height:calc(100vh - 1rem); }.atenea-geolocation-modal>header,.atenea-geolocation-modal .atenea-geolocation-actions { padding-right:1rem; padding-left:1rem; } }
.atenea-customer-note-fields { display:flex; flex-wrap:wrap; gap:.75rem; }.atenea-customer-note-fields label { display:grid; gap:.25rem; color:rgb(71 85 105); font-size:.75rem; font-weight:700; }.atenea-customer-note-fields input,.atenea-customer-note-fields select { min-height:2.25rem; border:1px solid rgb(209 213 219); border-radius:.55rem; background:#fff; padding:0 .6rem; color:rgb(31 41 55); font:inherit; font-size:.84rem; }.atenea-customer-notes-list article div { flex-wrap:wrap; align-items:center; }.atenea-customer-observation-type { border-radius:999px; padding:.15rem .48rem; font-size:.68rem; font-weight:800; }.atenea-customer-observation-type-general { background:rgb(241 245 249); color:rgb(71 85 105); }.atenea-customer-observation-type-reclamo { background:rgb(254 226 226); color:rgb(185 28 28); }.atenea-customer-observation-type-felicitacion { background:rgb(220 252 231); color:rgb(21 128 61); }.atenea-customer-observation-type-producto_destacado { background:rgb(254 249 195); color:rgb(161 98 7); }
.atenea-customer-products-label { display:grid; gap:.3rem; color:rgb(71 85 105); font-size:.75rem; font-weight:700; }.atenea-customer-products-label span { color:rgb(100 116 139); font-weight:500; }.atenea-customer-products-label select { min-height:6.5rem; border:1px solid rgb(209 213 219); border-radius:.55rem; background:#fff; padding:.35rem .6rem; color:rgb(31 41 55); font:inherit; font-size:.84rem; }.atenea-customer-observation-products { display:flex!important; flex-wrap:wrap; gap:.35rem!important; margin-top:.55rem; }.atenea-customer-observation-products span { border-radius:999px; background:rgb(239 246 255); color:rgb(30 64 175); padding:.18rem .5rem; font-size:.7rem; font-weight:750; }
.atenea-customer-product-picker { display:grid; gap:.45rem; }.atenea-customer-product-picker>label { color:rgb(71 85 105); font-size:.75rem; font-weight:700; }.atenea-customer-product-picker>label span { color:rgb(100 116 139); font-weight:500; }.atenea-customer-product-picker>input { min-height:2.25rem; border:1px solid rgb(209 213 225); border-radius:.55rem; background:#fff; padding:0 .65rem; color:rgb(31 41 55); font:inherit; font-size:.84rem; }.atenea-customer-selected-products { display:flex; flex-wrap:wrap; gap:.35rem; }.atenea-customer-selected-products button { border:0; border-radius:999px; background:rgb(219 234 254); color:rgb(30 64 175); cursor:pointer; padding:.25rem .5rem; font-size:.74rem; font-weight:750; }.atenea-customer-selected-products button span { margin-left:.2rem; font-size:1rem; line-height:.5; }.atenea-customer-product-results { overflow:auto; max-height:11rem; border:1px solid rgb(226 232 240); border-radius:.55rem; background:rgb(248 250 252); }.atenea-customer-product-results button { display:flex; width:100%; align-items:center; justify-content:space-between; gap:.75rem; border:0; border-bottom:1px solid rgb(226 232 240); background:transparent; color:rgb(51 65 85); cursor:pointer; padding:.55rem .65rem; text-align:left; font-size:.8rem; }.atenea-customer-product-results button:last-child { border-bottom:0; }.atenea-customer-product-results button:hover { background:rgb(239 246 255); }.atenea-customer-product-results button.is-selected { background:rgb(220 252 231); color:rgb(21 128 61); }.atenea-customer-product-results small { color:rgb(100 116 139); font-size:.7rem; }.atenea-customer-product-results b { font-size:.7rem; white-space:nowrap; }.atenea-customer-product-results p { margin:0; padding:.65rem; color:rgb(100 116 139); font-size:.78rem; }
.atenea-customer-observation-edit { margin-left:auto; border:0; background:transparent; color:rgb(37 99 235); cursor:pointer; font:inherit; font-size:.72rem; font-weight:800; padding:0; }.atenea-customer-observation-edit:hover { text-decoration:underline; }.atenea-observation-modal-backdrop { position:fixed; inset:0; z-index:70; display:grid; place-items:center; padding:1rem; background:rgba(15,23,42,.52); }.atenea-observation-editor { width:min(100%,40rem); max-height:calc(100vh - 2rem); overflow:auto; border:1px solid rgb(191 219 254); border-radius:.85rem; background:#fff; box-shadow:0 24px 65px rgba(15,23,42,.3); }.atenea-observation-editor header { display:flex; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid rgb(226 232 240); background:rgb(248 251 255); }.atenea-observation-editor header span { display:block; color:rgb(37 99 235); font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }.atenea-observation-editor h3 { margin:.12rem 0; color:rgb(15 23 42); font-size:1.08rem; }.atenea-observation-editor header>button { width:2rem; height:2rem; border:0; border-radius:.45rem; background:transparent; color:rgb(71 85 105); cursor:pointer; font-size:1.5rem; line-height:1; }.atenea-observation-editor header>button:hover { background:rgb(226 232 240); }.atenea-observation-editor-body { display:grid; gap:.75rem; padding:1rem 1.15rem; }.atenea-observation-editor-body>label { display:grid; gap:.3rem; color:rgb(71 85 105); font-size:.75rem; font-weight:700; }.atenea-observation-editor-body textarea { width:100%; resize:vertical; border:1px solid rgb(209 213 219); border-radius:.6rem; padding:.7rem .8rem; color:rgb(31 41 55); font:inherit; }.atenea-observation-editor footer { display:flex; justify-content:flex-end; gap:.5rem; padding:.85rem 1.15rem; border-top:1px solid rgb(226 232 240); background:rgb(248 250 252); }.atenea-observation-cancel { border:1px solid rgb(203 213 225); border-radius:.55rem; background:#fff; color:rgb(71 85 105); cursor:pointer; font:inherit; font-size:.8rem; font-weight:700; padding:.55rem .8rem; }
.atenea-customer-observation-reply { border:0; background:transparent; color:rgb(21 128 61); cursor:pointer; font:inherit; font-size:.72rem; font-weight:800; padding:0; }.atenea-customer-observation-reply:hover { text-decoration:underline; }.atenea-customer-observation-responses { display:grid; gap:.5rem; margin-top:.75rem; padding-left:1rem; border-left:2px solid rgb(191 219 254); }.atenea-customer-observation-responses article { padding:.65rem .75rem!important; border:1px solid rgb(219 234 254); border-radius:.55rem; background:rgb(248 251 255); }.atenea-customer-observation-responses article+article { border-top:1px solid rgb(219 234 254)!important; }.atenea-customer-observation-responses article div { color:rgb(71 85 105); }.atenea-customer-observation-responses article p { margin:.3rem 0 0; color:rgb(51 65 85); font-size:.82rem; }
.mp-expense-row td { background:rgb(255 247 237)!important; }

.fi-header-actions-ctn {
    min-width: 0;
    flex-shrink: 1;
}

.fi-header-actions-ctn > .fi-ac {
    justify-content: flex-end;
}

/* Cuenta corriente: se consulta sin extender indefinidamente la ficha. */
.atenea-ledger-search { min-width:13.5rem; min-height:2.35rem; border:1px solid rgb(191 219 254); border-radius:.55rem; padding:0 .7rem; color:rgb(30 41 59); font-size:.8rem; }
.atenea-ledger-scroll { max-height:34rem; overflow:auto; }
.atenea-ledger-scroll .atenea-ledger-table thead th { position:sticky; top:0; z-index:2; box-shadow:0 1px 0 rgb(226 232 240); }
.atenea-customer-bars { position:relative; }
.atenea-customer-average-line { position:absolute; right:1.1rem; left:1.1rem; z-index:1; border-top:2px dashed rgb(100 116 139 / .72); pointer-events:none; }
.atenea-customer-average-line span { position:absolute; right:0; top:-1.3rem; border-radius:.3rem; background:rgb(255 255 255 / .94); color:rgb(71 85 105); font-size:.62rem; font-weight:750; padding:.08rem .3rem; white-space:nowrap; }
@media(max-width:767px){.atenea-ledger-search{width:100%;min-width:0}.atenea-ledger-scroll{max-height:28rem}.atenea-customer-average-line{right:.85rem;left:.85rem}}

/* Cabecera de cliente: identidad, contacto y contexto operativo. */
.atenea-customer-identity-card { display:block; padding:1.55rem 1.7rem; }
.atenea-customer-summary-grid { display:grid; grid-template-columns:auto minmax(17rem,1.55fr) repeat(3,minmax(10rem,1fr)); gap:1.4rem; align-items:center; }
.atenea-customer-summary-grid .atenea-customer-contact { min-height:4.4rem; padding-left:1.35rem; border-left:1px solid rgb(226 232 240); align-content:center; }
.atenea-customer-summary-grid .atenea-customer-contact>span,.atenea-customer-notes-preview>span { color:rgb(100 116 139); font-size:.7rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.atenea-customer-summary-grid .atenea-customer-contact>strong { margin-top:.35rem; color:rgb(30 41 59); font-size:1rem; }
.atenea-customer-detail-grid { display:grid; grid-template-columns:minmax(18rem,.9fr) minmax(22rem,1.1fr); gap:2.2rem; margin-top:1.5rem; padding-top:1.45rem; border-top:1px solid rgb(226 232 240); }
.atenea-customer-detail-grid .atenea-customer-location-preview { min-height:235px; max-width:none; }
.atenea-customer-detail-grid .atenea-customer-location-preview-head strong { overflow:visible; white-space:normal; font-size:1rem; }
.atenea-customer-detail-grid .atenea-geolocation-preview-button { min-height:190px; isolation:isolate; z-index:0; }
.atenea-customer-context { display:grid; align-content:start; gap:1.35rem; padding-top:.15rem; }
.atenea-customer-notes-preview { display:grid; gap:.65rem; }
.atenea-customer-notes-preview p { min-height:6.1rem; margin:0; padding:1rem 1.1rem; border:1px solid rgb(226 232 240); border-radius:.75rem; background:rgb(248 250 252); color:rgb(51 65 85); font-size:.9rem; line-height:1.5; white-space:pre-wrap; }
.atenea-customer-meta { display:grid; gap:.65rem; color:rgb(100 116 139); font-size:.86rem; }
.atenea-customer-meta strong { margin-left:.25rem; color:rgb(30 41 59); }
/* Leaflet crea capas internas altas: se encapsulan bajo cualquier modal Filament. */
.atenea-customer-location-preview,.atenea-geolocation-preview-button,.atenea-geolocation-preview-button .leaflet-container { isolation:isolate; z-index:0; }
.fi-modal { z-index:10000!important; }
@media (max-width:1199px) { .atenea-customer-summary-grid { grid-template-columns:auto minmax(16rem,1.45fr) repeat(2,minmax(10rem,1fr)); }.atenea-customer-summary-grid .atenea-customer-contact:last-child { grid-column:2 / -1; }.atenea-customer-detail-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:767px) { .atenea-customer-identity-card { padding:1rem; }.atenea-customer-summary-grid { grid-template-columns:auto 1fr; gap:1rem; }.atenea-customer-summary-grid .atenea-customer-primary { grid-column:2; }.atenea-customer-summary-grid .atenea-customer-contact { grid-column:1 / -1; min-height:auto; padding:.75rem 0 0; border-top:1px solid rgb(226 232 240); border-left:0; }.atenea-customer-summary-grid .atenea-customer-contact:last-child { grid-column:1 / -1; }.atenea-customer-detail-grid { grid-template-columns:1fr; gap:1.25rem; }.atenea-customer-detail-grid .atenea-customer-location-preview { min-height:210px; }.atenea-customer-detail-grid .atenea-geolocation-preview-button { min-height:165px; } }

.atenea-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 1.5rem;
}

.atenea-history {
    overflow: hidden;
    border: 1px solid rgb(229 231 235);
    border-radius: .75rem;
}

.atenea-history-header,
.atenea-history-row {
    display: grid;
    grid-template-columns: minmax(18rem, 2fr) minmax(9rem, .8fr) minmax(14rem, 1.2fr) minmax(8rem, .7fr);
    align-items: center;
    column-gap: 1rem;
}

.atenea-history-header {
    padding: .65rem 1rem;
    background: rgb(249 250 251);
    color: rgb(107 114 128);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.atenea-history-row {
    min-height: 4.5rem;
    padding: .8rem 1rem;
    color: rgb(17 24 39);
    text-decoration: none;
    transition: background-color 120ms ease;
}

.atenea-history-row + .atenea-history-row {
    border-top: 1px solid rgb(229 231 235);
}

.atenea-history-row:hover {
    background: rgb(249 250 251);
}

.atenea-history-origin {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .38rem;
}

.atenea-source-badge,
.atenea-result-badge,
.atenea-status-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.atenea-source-badge {
    background: rgb(239 246 255);
    color: rgb(29 78 216);
}

.atenea-history-filename {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgb(55 65 81);
    font-size: .86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atenea-history-cell {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    color: rgb(75 85 99);
    font-size: .86rem;
    white-space: nowrap;
}

.atenea-history-result {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.atenea-result-valid {
    background: rgb(236 253 245);
    color: rgb(4 120 87);
}

.atenea-result-warning {
    background: rgb(255 247 237);
    color: rgb(194 65 12);
}

.atenea-result-neutral {
    background: rgb(243 244 246);
    color: rgb(75 85 99);
}

.atenea-history-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.atenea-status-badge {
    background: rgb(239 246 255);
    color: rgb(29 78 216);
    text-transform: capitalize;
}

.atenea-history-arrow {
    color: rgb(156 163 175);
    font-size: 1.5rem;
    line-height: 1;
}

.atenea-mobile-label {
    display: none;
}

.atenea-dispatch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 1rem;
}

.atenea-dispatch-stat {
    display: flex;
    min-height: 8.2rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .85rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}

.atenea-dispatch-stat > span,
.atenea-dispatch-stat > small {
    color: rgb(107 114 128);
}

.atenea-dispatch-stat > span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.atenea-dispatch-stat > strong {
    margin: .35rem 0 .1rem;
    color: rgb(17 24 39);
    font-size: 1.65rem;
    line-height: 1.15;
}

.atenea-dispatch-stat > small {
    font-size: .78rem;
}

.atenea-dispatch-stat.is-alert {
    border-color: rgb(252 165 165);
    background: rgb(254 242 242);
}

.atenea-dispatch-stat.is-alert > strong,
.atenea-dispatch-stat.is-alert > span {
    color: rgb(185 28 28);
}

.atenea-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.atenea-dispatch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.atenea-dispatch-search {
    display: flex;
    width: min(100%, 28rem);
}

.atenea-dispatch-search > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.atenea-search-input-wrap {
    position: relative;
    width: 100%;
}

.atenea-print-button {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .55rem;
    background: white;
    color: rgb(55 65 81);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.atenea-print-buttons {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.atenea-routing-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
}

.atenea-commune-planner {
    margin-bottom: 1rem;
}

.atenea-commune-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.atenea-commune-intro p,
.atenea-routing-note {
    margin: 0;
    color: rgb(75 85 99);
    font-size: .82rem;
}

.atenea-commune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .65rem;
}

.atenea-commune-rule {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .65rem .75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .55rem;
    background: rgb(249 250 251);
}

.atenea-commune-rule > span {
    display: grid;
    min-width: 0;
}

.atenea-commune-rule strong {
    overflow: hidden;
    color: rgb(31 41 55);
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atenea-commune-rule small {
    color: rgb(107 114 128);
    font-size: .68rem;
}

.atenea-commune-rule input {
    width: 4rem;
    min-height: 2.15rem;
    padding: .3rem .4rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .45rem;
    background: white;
    color: rgb(17 24 39);
    text-align: center;
}

.atenea-commune-rule.is-missing {
    border-color: rgb(253 230 138);
    background: rgb(255 251 235);
}

.atenea-commune-rule em {
    color: rgb(180 83 9);
    font-size: .7rem;
    font-style: normal;
    font-weight: 700;
}

.atenea-routing-note {
    margin-top: .8rem;
    font-size: .74rem;
}

.atenea-apply-communes {
    border-color: rgb(147 197 253);
    background: rgb(239 246 255);
    color: rgb(29 78 216);
}

.atenea-day-filter {
    display: grid;
    gap: .2rem;
    color: rgb(75 85 99);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.atenea-day-filter select {
    min-width: 8rem;
    min-height: 2.55rem;
    padding: .45rem 2rem .45rem .7rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .55rem;
    background: white;
    color: rgb(31 41 55);
    font-size: .8rem;
    text-transform: none;
}

.atenea-dispatch-global-filter {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid #dbe4f0;
    border-radius: .9rem;
    background: #f8fbff;
}

.atenea-dispatch-global-filter > div {
    display: grid;
    gap: .18rem;
    margin-right: auto;
}

.atenea-dispatch-global-filter strong {
    color: #1e293b;
    font-size: .92rem;
}

.atenea-dispatch-global-filter span {
    color: #64748b;
    font-size: .78rem;
}

.atenea-day-filter input {
    min-height: 2.25rem;
    padding: .38rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: #fff;
}
.atenea-dispatch-workflow-card .atenea-dispatch-filter-clear{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-width:4.25rem}

.atenea-dispatch-filter-clear {
    min-height: 2.25rem;
    padding: .38rem .7rem;
    border: 1px solid #bfdbfe;
    border-radius: .5rem;
    background: #fff;
    color: #1d4ed8;
    font-weight: 600;
}

.atenea-routing-input {
    width: 3.15rem;
    min-height: 2.2rem;
    padding: .35rem .45rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .45rem;
    background: white;
    color: rgb(17 24 39);
    text-align: center;
}

.atenea-routing-column {
    width: 3.8rem;
    min-width: 3.8rem;
    text-align: center;
}

.atenea-units-column {
    width: 4.25rem;
    min-width: 4.25rem;
    text-align: center;
}

.atenea-order-link {
    color: rgb(37 99 235);
    text-decoration: none;
    white-space: nowrap;
}

.atenea-order-link:hover {
    text-decoration: underline;
}

.atenea-sort-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: .3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    text-transform: inherit;
}

.atenea-routing-column .atenea-sort-button,
.atenea-units-column .atenea-sort-button {
    justify-content: center;
}

.atenea-sort-indicator {
    color: rgb(156 163 175);
    font-size: .8rem;
}

.atenea-sort-button.is-active .atenea-sort-indicator {
    color: rgb(37 99 235);
}

.atenea-clear-hierarchy {
    border-color: rgb(253 186 116);
    background: rgb(255 247 237);
    color: rgb(194 65 12);
}

.atenea-clear-hierarchy:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.atenea-custom-hierarchy-help {
    margin: -.35rem 0 .8rem;
    color: rgb(75 85 99);
    font-size: .75rem;
}

.atenea-sort-controls {
    display: inline-flex;
    align-items: center;
    gap: .18rem;
}

.atenea-sort-direction {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(191 219 254);
    border-radius: .35rem;
    background: rgb(239 246 255);
    color: rgb(37 99 235);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.atenea-sort-direction:hover {
    background: rgb(219 234 254);
}

.atenea-routing-input:focus {
    border-color: rgb(59 130 246);
    outline: 2px solid rgb(191 219 254);
    outline-offset: 1px;
}

.atenea-delivery-date-column {
    width: 8.6rem;
    min-width: 8.6rem;
}

.atenea-delivery-date-input {
    width: 8.2rem;
    min-height: 2.2rem;
    padding: .35rem .4rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .45rem;
    background: white;
    color: rgb(17 24 39);
    font-size: .76rem;
}

.atenea-delivery-date-input:focus {
    border-color: rgb(59 130 246);
    outline: 2px solid rgb(191 219 254);
    outline-offset: 1px;
}

.atenea-orders-table tr.is-unplanned > td {
    background: rgb(255 251 235);
}

.atenea-dispatch-expandable-row {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.atenea-dispatch-expandable-row:hover > td {
    background: rgb(239 246 255);
}

.atenea-dispatch-inline-detail-cell {
    padding: .7rem !important;
    background: rgb(248 250 252) !important;
}

.atenea-dispatch-inline-detail-cell .atenea-screen-order {
    box-shadow: 0 8px 22px rgb(15 23 42 / .08);
}

.dark .atenea-dispatch-expandable-row:hover > td,
.dark .atenea-dispatch-inline-detail-cell {
    background: rgb(30 41 59) !important;
}

.atenea-save-routing {
    border-color: rgb(134 239 172);
    background: rgb(240 253 244);
    color: rgb(21 128 61);
}

.atenea-copy-addresses {
    border-color: rgb(196 181 253);
    background: rgb(245 243 255);
    color: rgb(109 40 217);
}

.atenea-order-address {
    min-width: 13rem;
    max-width: 20rem;
    white-space: normal;
}

.atenea-screen-order-list {
    display: grid;
    gap: .85rem;
}

.atenea-orders-detailed-list {
    display: grid;
    gap: .85rem;
    padding: .85rem;
}

.atenea-order-expandable-row {
    cursor: pointer;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.atenea-order-expandable-row:hover > td,
.atenea-order-expandable-row:focus-visible > td {
    background: rgb(239 246 255);
}

.atenea-order-expandable-row.is-expanded {
    display: none;
}

.atenea-order-expandable-row:focus-visible {
    outline: 2px solid rgb(59 130 246);
    outline-offset: -2px;
}

.atenea-order-number-trigger {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: rgb(37 99 235);
    font-weight: 650;
    white-space: nowrap;
}

.atenea-order-number-chevron {
    color: rgb(107 114 128);
    font-size: .9rem;
    transition: transform 140ms ease;
}

.atenea-order-expandable-row.is-expanded .atenea-order-number-chevron {
    transform: rotate(180deg);
}

.atenea-order-inline-detail-cell {
    padding: .75rem !important;
    background: rgb(248 250 252) !important;
}

.atenea-order-inline-detail-row {
    cursor: pointer;
}

.atenea-orders-inline-card {
    box-shadow: 0 8px 22px rgb(15 23 42 / .08);
}

.atenea-orders-detailed-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
}

.atenea-orders-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.95rem;
    padding: .32rem .8rem;
    border-radius: .5rem;
    background: rgb(37 99 235);
    color: white;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 140ms ease;
}

.atenea-orders-detailed-summary .atenea-screen-order-field {
    gap: .08rem;
}

.atenea-orders-detailed-summary .atenea-screen-order-field > strong {
    line-height: 1.25;
}

.atenea-orders-open-button:hover {
    background: rgb(29 78 216);
}

.dark .atenea-order-expandable-row:hover > td,
.dark .atenea-order-expandable-row:focus-visible > td,
.dark .atenea-order-inline-detail-cell {
    background: rgb(30 41 59) !important;
}

.atenea-order-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
    padding: .85rem;
    border-bottom: 1px solid rgb(229 231 235);
}

.atenea-page-title {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.atenea-page-title > img,
.atenea-page-title > svg {
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.atenea-page-title > img {
    filter: drop-shadow(0 2px 3px rgb(17 24 39 / .12));
}

.atenea-page-title > svg {
    color: rgb(107 114 128);
    stroke-width: 1.15;
}

.atenea-page-title > span {
    line-height: 1;
}

.dark .atenea-page-title > svg {
    color: rgb(156 163 175);
}

.atenea-order-kpi {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: .65rem;
    padding: .72rem .8rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .65rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / .035);
    appearance: none;
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.atenea-order-kpi:hover {
    border-color: rgb(96 165 250);
    box-shadow: 0 4px 12px rgb(37 99 235 / .12);
    transform: translateY(-1px);
}

.atenea-order-kpi-content {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.atenea-order-kpi-content > .atenea-order-kpi-label {
    overflow: hidden;
    color: rgb(107 114 128);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.atenea-order-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .55rem;
    color: rgb(37 99 235);
    background: rgb(239 246 255);
}

.atenea-order-kpi-icon > svg {
    width: 1.1rem;
    height: 1.1rem;
}

.atenea-order-kpi.is-ticket .atenea-order-kpi-icon {
    color: rgb(126 34 206);
    background: rgb(250 245 255);
}

.atenea-order-kpi.is-paid .atenea-order-kpi-icon {
    color: rgb(21 128 61);
    background: rgb(220 252 231);
}

.atenea-order-kpi.is-alert .atenea-order-kpi-icon {
    color: rgb(190 24 93);
    background: rgb(255 228 230);
}

.atenea-order-kpi.is-pending .atenea-order-kpi-icon {
    color: rgb(180 83 9);
    background: rgb(255 251 235);
}

.atenea-order-quick-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .1rem 0;
}

.atenea-order-quick-filters > span {
    margin-right: .1rem;
    color: rgb(75 85 99);
    font-size: .78rem;
    font-weight: 700;
}

.atenea-order-quick-filters button {
    border: 1px solid rgb(191 219 254);
    border-radius: 999px;
    background: white;
    color: rgb(30 64 175);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1;
    padding: .42rem .7rem;
}

.atenea-order-quick-filters button:hover,
.atenea-order-quick-filters button.is-active {
    border-color: rgb(37 99 235);
    background: rgb(37 99 235);
    color: white;
}

.atenea-order-quick-filters .atenea-order-quick-clear {
    border-color: transparent;
    background: transparent;
    color: rgb(107 114 128);
}

.atenea-order-kpi-content > strong {
    color: rgb(17 24 39);
    font-size: 1.2rem;
    line-height: 1.15;
}

.atenea-order-kpi-content > small {
    overflow: hidden;
    color: rgb(107 114 128);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atenea-order-kpi.is-paid {
    border-color: rgb(187 247 208);
    background: rgb(240 253 244);
}

.atenea-order-kpi.is-alert {
    border-color: rgb(254 202 202);
    background: rgb(254 242 242);
}

.dark .atenea-order-kpis {
    border-color: rgb(55 65 81);
}

.dark .atenea-order-quick-filters {
}

.dark .atenea-order-quick-filters > span {
    color: rgb(209 213 219);
}

.dark .atenea-order-quick-filters button {
    border-color: rgb(30 64 175);
    background: rgb(30 41 59);
    color: rgb(191 219 254);
}

.dark .atenea-order-kpi {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.dark .atenea-order-kpi-content > strong {
    color: rgb(243 244 246);
}

.dark .atenea-order-kpi.is-paid {
    border-color: rgb(21 128 61);
    background: rgb(20 83 45);
}

.dark .atenea-order-kpi.is-alert {
    border-color: rgb(185 28 28);
    background: rgb(127 29 29);
}

.atenea-order-kpi-modal-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgb(15 23 42 / .42);
    overscroll-behavior: contain;
}

html:has(.atenea-order-kpi-modal),
body:has(.atenea-order-kpi-modal) {
    overflow: hidden;
}

.atenea-order-kpi-modal {
    position: fixed;
    z-index: 91;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100vh - 2rem));
    overflow: hidden;
    border: 1px solid rgb(226 232 240);
    border-radius: .85rem;
    background: white;
    box-shadow: 0 24px 70px rgb(15 23 42 / .28);
    transform: translate(-50%, -50%);
}

.atenea-order-kpi-modal > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgb(226 232 240);
}

.atenea-order-kpi-modal h3 { margin: 0; color: rgb(15 23 42); font-size: 1rem; font-weight: 750; }
.atenea-order-kpi-modal p { margin: .2rem 0 0; color: rgb(100 116 139); font-size: .82rem; }
.atenea-order-kpi-modal > header button { border: 0; background: transparent; color: rgb(100 116 139); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.atenea-order-kpi-modal-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.atenea-order-kpi-modal-list a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 8rem 7.5rem; gap: .75rem; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid rgb(241 245 249); color: rgb(51 65 85); font-size: .84rem; text-decoration: none; }
.atenea-order-kpi-modal-list a:hover { background: rgb(248 250 252); }
.atenea-order-kpi-modal-list a > strong { color: rgb(37 99 235); }
.atenea-order-kpi-modal-list a > b { text-align: right; }
.atenea-order-kpi-modal-empty { padding: 1.25rem; }

@media (max-width: 1200px) {
    .atenea-order-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .atenea-order-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .6rem;
    }
}

.atenea-orders-detailed-summary {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: .45rem .65rem;
    padding: .55rem .75rem;
    background: rgb(239 241 244);
}

.atenea-orders-detailed-summary.is-delivered-paid {
    background: rgb(220 252 231);
}

.atenea-orders-detailed-summary.is-delivered-unpaid {
    background: rgb(254 226 226);
}

.atenea-orders-detailed-summary .atenea-orders-detail-customer,
.atenea-orders-detailed-summary .atenea-orders-detail-email,
.atenea-orders-detailed-summary .atenea-orders-detail-phone,
.atenea-orders-detailed-summary .atenea-orders-detail-address {
    min-width: 0;
}

.atenea-orders-detail-number { grid-column: span 1; }
.atenea-orders-detail-delivery { grid-column: span 2; }
.atenea-orders-detail-customer { grid-column: span 2; }
.atenea-orders-detail-phone { grid-column: span 2; }
.atenea-orders-detail-address { grid-column: span 3; }
.atenea-orders-detail-status { grid-column: span 2; }
.atenea-orders-detail-email { grid-column: span 3; }
.atenea-orders-detail-units { grid-column: span 1; }
.atenea-orders-detail-total { grid-column: span 2; }
.atenea-orders-detail-paid { grid-column: span 1; }
.atenea-orders-detail-payment-method { grid-column: span 2; }
.atenea-orders-detail-payment-date { grid-column: span 2; }
.atenea-orders-detail-receipt { grid-column: span 1; }

.atenea-orders-payment-state {
    width: fit-content;
    padding: .18rem .45rem;
    border-radius: 999px;
    font-size: .72rem !important;
}

.atenea-orders-payment-state.is-paid {
    background: rgb(220 252 231);
    color: rgb(21 128 61) !important;
}

.atenea-orders-payment-state.is-unpaid {
    background: rgb(243 244 246);
    color: rgb(107 114 128) !important;
}

.atenea-orders-product-count {
    color: rgb(107 114 128);
    font-size: .72rem;
    font-weight: 700;
}

.atenea-orders-detailed-empty {
    padding: 2.5rem 1rem;
    color: rgb(107 114 128);
    text-align: center;
}

.dark .atenea-orders-detailed-summary {
    background: rgb(24 33 46);
}

.dark .atenea-orders-detailed-summary.is-delivered-paid {
    background: rgb(20 83 45);
}

.dark .atenea-orders-detailed-summary.is-delivered-unpaid {
    background: rgb(127 29 29);
}

@media (max-width: 900px) {
    .atenea-orders-detailed-summary {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .atenea-orders-detailed-summary .atenea-screen-order-field {
        grid-column: span 2;
    }

    .atenea-orders-detailed-summary .atenea-orders-detail-customer,
    .atenea-orders-detailed-summary .atenea-orders-detail-email,
    .atenea-orders-detailed-summary .atenea-orders-detail-address {
        grid-column: span 3;
    }
}

@media (max-width: 800px) {
    .atenea-orders-detailed-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .atenea-orders-detailed-summary .atenea-orders-detail-customer,
    .atenea-orders-detailed-summary .atenea-orders-detail-email,
    .atenea-orders-detailed-summary .atenea-orders-detail-address {
        grid-column: span 2;
    }

    .atenea-orders-detailed-list {
        padding: .55rem;
    }

    .atenea-orders-detailed-card .atenea-screen-order-products ul {
        columns: 1;
    }
}

.atenea-screen-order {
    overflow: hidden;
    border: 1px solid rgb(209 213 219);
    border-radius: .7rem;
    background: white;
}

.atenea-screen-order.is-unplanned {
    border-color: rgb(253 230 138);
}

.atenea-screen-order-summary {
    display: grid;
    grid-template-columns: minmax(4.5rem, .55fr) minmax(8.5rem, .85fr) 4rem 4rem minmax(9rem, 1.15fr) minmax(8rem, 1fr) minmax(13rem, 2fr) 4.5rem minmax(6rem, .7fr);
    align-items: center;
    gap: .65rem;
    padding: .75rem .85rem;
    background: rgb(243 244 246);
}

.atenea-screen-order.is-unplanned .atenea-screen-order-summary {
    background: rgb(255 251 235);
}

.atenea-screen-order-field {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.atenea-screen-order-field > span {
    color: rgb(107 114 128);
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.atenea-screen-order-field > strong,
.atenea-screen-order-field > a {
    overflow-wrap: anywhere;
    color: rgb(31 41 55);
    font-size: .79rem;
}

.atenea-screen-order-field > .atenea-routing-input,
.atenea-screen-order-field > .atenea-delivery-date-input {
    min-height: 2rem;
}

.atenea-screen-order-small {
    justify-items: center;
    text-align: center;
}

.atenea-screen-order-products {
    padding: .48rem .75rem .55rem;
}

.atenea-screen-order-products h3 {
    margin: 0 0 .45rem;
    color: rgb(75 85 99);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.atenea-screen-order-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}

.atenea-screen-order-products-heading h3 {
    margin: 0;
}

.atenea-dispatch-order-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}

.atenea-actions-column {
    width: 9.5rem;
    min-width: 9.5rem;
    text-align: right;
}

.atenea-order-note-button,
.atenea-order-delivered-button,
.atenea-order-navigate-button {
    display: inline-flex;
    min-height: 1.95rem;
    align-items: center;
    justify-content: center;
    padding: .3rem .52rem;
    border: 1px solid;
    border-radius: .45rem;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.atenea-order-navigate-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #36c86a;
    color: #083b20;
    text-decoration: none;
}

.atenea-order-navigate-button svg {
    width: 1rem;
    height: 1rem;
}

.atenea-order-navigate-button:hover {
    background: #22ad56;
    color: #062a17;
}

.atenea-order-navigate-button.is-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.atenea-order-navigate-button.is-google-maps {
    background: #e8f0fe;
    color: #174ea6;
}

.atenea-order-navigate-button.is-google-maps:hover {
    background: #d2e3fc;
    color: #0b3b87;
}

.atenea-navigation-column {
    min-width: 8.4rem;
}

.atenea-navigation-heading {
    display: block;
    margin-bottom: .38rem;
}

.atenea-navigation-selector {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}

.atenea-navigation-selector label {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0 .48rem;
    color: #64748b;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    text-transform: none;
}

.atenea-navigation-selector input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.atenea-navigation-selector label.is-selected:first-child {
    background: #dcfce7;
    color: #166534;
}

.atenea-navigation-selector label.is-selected:last-child {
    background: #e8f0fe;
    color: #174ea6;
}

.atenea-order-note-button {
    border-color: rgb(196 181 253);
    background: rgb(245 243 255);
    color: rgb(109 40 217);
}

.atenea-order-note-button.has-note {
    border-color: rgb(167 139 250);
    background: rgb(237 233 254);
}

.atenea-order-delivered-button {
    border-color: rgb(134 239 172);
    background: rgb(240 253 244);
    color: rgb(21 128 61);
}

.atenea-order-note-button:hover {
    background: rgb(237 233 254);
}

.atenea-order-delivered-button:hover {
    background: rgb(220 252 231);
}

.atenea-recent-deliveries {
    margin-top: 1rem;
}

.atenea-order-restore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #86efac;
    border-radius: .5rem;
    background: #f0fdf4;
    color: #166534;
    padding: .42rem .7rem;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.atenea-order-restore-button:hover {
    background: #dcfce7;
}

.atenea-dispatch-note-preview {
    margin: .55rem 0 0;
    padding: .5rem .65rem;
    border-left: 3px solid rgb(167 139 250);
    border-radius: .25rem;
    background: rgb(245 243 255);
    color: rgb(76 29 149);
    font-size: .76rem;
    white-space: pre-wrap;
}

.atenea-note-modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(17 24 39 / .55);
    backdrop-filter: blur(2px);
}

.atenea-note-modal {
    width: min(100%, 34rem);
    padding: 1.25rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .85rem;
    background: white;
    box-shadow: 0 20px 45px rgb(0 0 0 / .22);
}

.atenea-note-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.atenea-note-modal-heading span,
.atenea-note-modal > label {
    color: rgb(107 114 128);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.atenea-note-modal-heading h2 {
    margin: .15rem 0 0;
    color: rgb(17 24 39);
    font-size: 1.15rem;
    font-weight: 750;
}

.atenea-note-modal-heading > button {
    width: 2rem;
    height: 2rem;
    border-radius: .4rem;
    color: rgb(107 114 128);
    font-size: 1.4rem;
}

.atenea-note-modal textarea {
    width: 100%;
    margin-top: .35rem;
    padding: .7rem .8rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .55rem;
    background: white;
    color: rgb(17 24 39);
    resize: vertical;
}

.atenea-note-modal textarea:focus {
    border-color: rgb(59 130 246);
    outline: 2px solid rgb(191 219 254);
}

.atenea-note-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    margin-top: 1rem;
}

.atenea-note-modal-actions button {
    min-height: 2.35rem;
    padding: .45rem .8rem;
    border-radius: .5rem;
    font-size: .8rem;
    font-weight: 700;
}

.atenea-note-cancel {
    border: 1px solid rgb(209 213 219);
    background: white;
    color: rgb(55 65 81);
}

.atenea-note-save {
    background: rgb(37 99 235);
    color: white;
}

.atenea-note-error {
    margin: .35rem 0 0;
    color: rgb(185 28 28);
    font-size: .75rem;
}

.dark .atenea-note-modal {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.dark .atenea-note-modal-heading h2 {
    color: rgb(243 244 246);
}

.dark .atenea-note-modal textarea {
    border-color: rgb(75 85 99);
    background: rgb(31 41 55);
    color: rgb(243 244 246);
}

.atenea-screen-order-products ul {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
    padding-left: 1.15rem;
    color: rgb(31 41 55);
    font-size: .8rem;
}

.atenea-screen-order-products li {
    padding: .12rem 0;
    break-inside: avoid;
}

.dark .atenea-screen-order {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.dark .atenea-screen-order-summary {
    background: rgb(27 36 50);
}

.dark .atenea-screen-order-field > strong,
.dark .atenea-screen-order-field > a,
.dark .atenea-screen-order-products ul {
    color: rgb(243 244 246);
}

@media (max-width: 1200px) {
    .atenea-screen-order-summary {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .atenea-screen-order-field:nth-child(1) { grid-column: span 2; }
    .atenea-screen-order-field:nth-child(2) { grid-column: span 3; }
    .atenea-screen-order-field:nth-child(3),
    .atenea-screen-order-field:nth-child(4) { grid-column: span 1; }
    .atenea-screen-order-field:nth-child(5) { grid-column: span 3; }
    .atenea-screen-order-field:nth-child(6) { grid-column: span 2; }
    .atenea-screen-order-field:nth-child(7) { grid-column: span 7; }
    .atenea-screen-order-field:nth-child(8) { grid-column: span 2; }
    .atenea-screen-order-field:nth-child(9) { grid-column: span 3; }
}

.atenea-save-routing:disabled {
    cursor: wait;
    opacity: .65;
}

.atenea-print-button:hover {
    border-color: rgb(147 197 253);
    background: rgb(239 246 255);
    color: rgb(29 78 216);
}

.atenea-print-button > svg {
    width: 1.05rem;
    height: 1.05rem;
}

.atenea-print-heading {
    display: none;
}

.atenea-search-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: .8rem;
    width: 1.05rem;
    height: 1.05rem;
    color: rgb(107 114 128);
    pointer-events: none;
    transform: translateY(-50%);
}

.atenea-search-input-wrap > input {
    width: 100%;
    height: 2.55rem;
    padding: 0 2.35rem 0 2.35rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .55rem;
    background: white;
    color: rgb(17 24 39);
    font-size: .84rem;
    outline: none;
}

.atenea-search-input-wrap > input:focus {
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 3px rgb(59 130 246 / .14);
}

.atenea-search-input-wrap > button {
    position: absolute;
    top: 50%;
    right: .65rem;
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    color: rgb(107 114 128);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-50%);
}

.atenea-search-input-wrap > button:hover {
    background: rgb(243 244 246);
    color: rgb(31 41 55);
}

.atenea-dispatch-table {
    width: 100%;
    min-width: 58rem;
    border-collapse: collapse;
    color: rgb(31 41 55);
    font-size: .84rem;
}

.atenea-dispatch-table th {
    padding: .7rem .8rem;
    border-bottom: 1px solid rgb(209 213 219);
    background: rgb(249 250 251);
    color: rgb(75 85 99);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.atenea-dispatch-table td {
    padding: .8rem;
    border-bottom: 1px solid rgb(229 231 235);
    vertical-align: middle;
}

.atenea-dispatch-table tbody tr:last-child td {
    border-bottom: 0;
}

.atenea-dispatch-table tbody tr:hover {
    background: rgb(249 250 251);
}

.atenea-dispatch-table tr.has-shortage {
    background: rgb(254 242 242);
}

.atenea-dispatch-table tr.has-shortage:hover {
    background: rgb(254 226 226);
}

.atenea-product-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.atenea-product-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    color: rgb(107 114 128);
    transition: transform 150ms ease;
}

.atenea-product-toggle svg.is-open {
    transform: rotate(180deg);
}

.atenea-product-toggle:hover strong {
    color: rgb(37 99 235);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.atenea-product-row.is-open td {
    border-bottom-color: transparent;
}

.atenea-product-detail > td {
    padding: 0;
    background: rgb(248 250 252);
}

.atenea-product-detail-panel {
    margin: 0 .75rem .85rem;
    overflow: hidden;
    border: 1px solid rgb(203 213 225);
    border-radius: .7rem;
    background: white;
}

.atenea-product-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid rgb(226 232 240);
    background: rgb(241 245 249);
}

.atenea-product-detail-heading > span {
    color: rgb(100 116 139);
    font-size: .76rem;
}

.atenea-subtable-wrap {
    overflow-x: auto;
}

.atenea-product-subtable {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.atenea-product-subtable th {
    background: white;
}

.atenea-product-subtable tbody tr:hover {
    background: rgb(248 250 252);
}

.atenea-code,
.atenea-stock-badge,
.atenea-order-status {
    display: inline-flex;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .72rem;
    font-weight: 650;
    white-space: nowrap;
}

.atenea-code {
    background: rgb(243 244 246);
    color: rgb(55 65 81);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.atenea-stock-badge.is-danger {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.atenea-stock-badge.is-ok {
    background: rgb(220 252 231);
    color: rgb(21 128 61);
}

.atenea-order-status {
    background: rgb(239 246 255);
    color: rgb(29 78 216);
}

.atenea-row-action {
    text-align: right;
}

.atenea-row-action a {
    color: rgb(37 99 235);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.atenea-row-action a:hover {
    text-decoration: underline;
}

.atenea-empty-cell {
    padding: 2rem !important;
    color: rgb(107 114 128);
    text-align: center;
}

.dark .atenea-dispatch-stat {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.dark .atenea-search-input-wrap > input {
    border-color: rgb(75 85 99);
    background: rgb(17 24 39);
    color: rgb(243 244 246);
}

.dark .atenea-print-button {
    border-color: rgb(75 85 99);
    background: rgb(17 24 39);
    color: rgb(229 231 235);
}

.dark .atenea-dispatch-stat > strong,
.dark .atenea-dispatch-table {
    color: rgb(243 244 246);
}

.dark .atenea-dispatch-stat.is-alert,
.dark .atenea-dispatch-table tr.has-shortage {
    border-color: rgb(127 29 29);
    background: rgb(69 10 10 / .45);
}

.dark .atenea-dispatch-table th {
    border-color: rgb(75 85 99);
    background: rgb(31 41 55);
    color: rgb(209 213 219);
}

.dark .atenea-dispatch-table td {
    border-color: rgb(55 65 81);
}

.dark .atenea-dispatch-table tbody tr:hover {
    background: rgb(31 41 55);
}

.dark .atenea-product-detail > td,
.dark .atenea-product-detail-panel,
.dark .atenea-product-subtable th {
    background: rgb(17 24 39);
}

.dark .atenea-product-detail-panel,
.dark .atenea-product-detail-heading {
    border-color: rgb(55 65 81);
}

.dark .atenea-product-detail-heading {
    background: rgb(31 41 55);
}

.atenea-history-empty {
    padding: 1rem;
    color: rgb(107 114 128);
    font-size: .875rem;
}

.dark .atenea-history {
    border-color: rgb(55 65 81);
}

.dark .atenea-history-header {
    background: rgb(31 41 55);
    color: rgb(156 163 175);
}

.dark .atenea-history-row {
    color: rgb(243 244 246);
}

.dark .atenea-history-row + .atenea-history-row {
    border-color: rgb(55 65 81);
}

.dark .atenea-history-row:hover {
    background: rgb(31 41 55);
}

.dark .atenea-history-filename,
.dark .atenea-history-cell {
    color: rgb(209 213 219);
}

.dark .atenea-source-badge,
.dark .atenea-status-badge {
    background: rgb(30 58 138 / .45);
    color: rgb(147 197 253);
}

.dark .atenea-result-valid {
    background: rgb(6 78 59 / .45);
    color: rgb(110 231 183);
}

.dark .atenea-result-warning {
    background: rgb(124 45 18 / .45);
    color: rgb(253 186 116);
}

.dark .atenea-result-neutral {
    background: rgb(55 65 81);
    color: rgb(209 213 219);
}

@media (max-width: 900px) {
    .atenea-history-header {
        display: none;
    }

    .atenea-history-row {
        grid-template-columns: 1fr auto;
        row-gap: .8rem;
    }

    .atenea-history-origin {
        grid-column: 1 / -1;
    }

    .atenea-history-result {
        grid-column: 1 / 2;
    }

    .atenea-history-status {
        grid-column: 2 / 3;
        grid-row: 2 / 4;
    }
}

@media (max-width: 639px) {
    .fi-header-actions-ctn,
    .fi-header-actions-ctn > .fi-ac {
        width: 100%;
    }

    .fi-header-actions-ctn > .fi-ac {
        justify-content: flex-start;
    }

    .atenea-history-row {
        grid-template-columns: 1fr;
    }

    .atenea-history-origin,
    .atenea-history-result,
    .atenea-history-status {
        grid-column: 1;
        grid-row: auto;
    }

    .atenea-history-status {
        justify-content: flex-start;
    }

    .atenea-history-arrow {
        margin-left: auto;
    }

    .atenea-mobile-label {
        display: block;
        color: rgb(107 114 128);
        font-size: .7rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .atenea-dispatch-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .atenea-dispatch-search,
    .atenea-search-input-wrap {
        width: 100%;
    }

    .atenea-dispatch-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .atenea-print-button {
        width: 100%;
    }

    .atenea-print-buttons {
        width: 100%;
        flex-direction: column;
    }

    .atenea-routing-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .atenea-commune-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .atenea-commune-intro .atenea-print-button {
        width: 100%;
    }

    .atenea-day-filter select,
    .atenea-routing-actions .atenea-print-button {
        width: 100%;
    }

    .atenea-dispatch-stat {
        min-height: 7rem;
        padding: .9rem;
    }

    .atenea-dispatch-stat > strong {
        font-size: 1.3rem;
    }

    .atenea-dispatch-table,
    .atenea-dispatch-table tbody,
    .atenea-dispatch-table tr,
    .atenea-dispatch-table td {
        display: block;
        width: 100%;
    }

    .atenea-dispatch-table {
        min-width: 0;
    }

    .atenea-dispatch-table thead {
        display: none;
    }

    .atenea-dispatch-table tr {
        padding: .55rem 0;
        border-bottom: 1px solid rgb(229 231 235);
    }

    .atenea-dispatch-table td {
        display: grid;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        gap: .65rem;
        padding: .38rem .7rem;
        border: 0;
    }

    .atenea-dispatch-table td::before {
        content: attr(data-label);
        color: rgb(107 114 128);
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .atenea-dispatch-table .atenea-row-action {
        display: block;
        padding-top: .7rem;
        text-align: left;
    }

    .atenea-dispatch-table .atenea-row-action::before,
    .atenea-empty-cell::before,
    .atenea-product-detail > td::before {
        display: none;
    }

    .atenea-product-detail > td {
        display: block;
        padding: 0;
    }

    .atenea-product-detail-panel {
        margin: 0 .45rem .75rem;
    }

    .atenea-product-detail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .15rem;
    }

    .atenea-product-subtable {
        min-width: 0;
    }
}

.atenea-reconcile-source {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .85rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.dark .atenea-reconcile-source {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.atenea-reconcile-source > div:not(.atenea-reconcile-arrow) {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.atenea-reconcile-source span,
.atenea-reconcile-stat span,
.atenea-reconcile-count span {
    color: rgb(107 114 128);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.atenea-reconcile-source strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atenea-reconcile-source small,
.atenea-reconcile-stat small,
.atenea-reconcile-table small {
    color: rgb(107 114 128);
}

.atenea-reconcile-arrow {
    color: rgb(37 99 235);
    font-size: 1.5rem;
    font-weight: 700;
}

.atenea-reconcile-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
}

.atenea-reconcile-stat {
    display: grid;
    gap: .18rem;
    min-height: 6.8rem;
    padding: .9rem;
    border: 1px solid rgb(229 231 235);
    border-radius: .75rem;
    background: white;
}

.dark .atenea-reconcile-stat {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.atenea-reconcile-stat.is-alert {
    border-color: rgb(253 186 116);
    background: rgb(255 247 237);
}

.dark .atenea-reconcile-stat.is-alert {
    border-color: rgb(154 52 18);
    background: rgb(67 20 7 / 45%);
}

.atenea-reconcile-stat strong {
    align-self: end;
    font-size: 1.65rem;
    line-height: 1;
}

.atenea-reconcile-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(13rem, .45fr) auto;
    align-items: end;
    gap: .8rem;
    margin-bottom: .75rem;
}

.atenea-reconcile-toolbar label {
    display: grid;
    gap: .35rem;
    color: rgb(75 85 99);
    font-size: .78rem;
    font-weight: 700;
}

.atenea-reconcile-toolbar input,
.atenea-reconcile-toolbar select {
    width: 100%;
    min-height: 2.45rem;
    padding: .5rem .7rem;
    border: 1px solid rgb(209 213 219);
    border-radius: .55rem;
    background: white;
    color: rgb(17 24 39);
    font-weight: 400;
}

.dark .atenea-reconcile-toolbar input,
.dark .atenea-reconcile-toolbar select {
    border-color: rgb(75 85 99);
    background: rgb(31 41 55);
    color: white;
}

.atenea-reconcile-count {
    display: grid;
    min-width: 5rem;
    gap: .2rem;
    text-align: right;
}

.atenea-reconcile-count strong {
    font-size: 1.3rem;
}

.atenea-reconcile-note {
    margin-bottom: .9rem;
    color: rgb(107 114 128);
    font-size: .8rem;
}

.atenea-reconcile-table-wrap {
    overflow-x: auto;
}

.atenea-reconcile-table {
    width: 100%;
    min-width: 72rem;
    border-collapse: collapse;
    font-size: .82rem;
}

.atenea-reconcile-table th {
    padding: .65rem .7rem;
    border-bottom: 1px solid rgb(209 213 219);
    color: rgb(75 85 99);
    font-size: .7rem;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
}

.atenea-reconcile-table td {
    padding: .72rem .7rem;
    border-bottom: 1px solid rgb(229 231 235);
    vertical-align: top;
}

.dark .atenea-reconcile-table th,
.dark .atenea-reconcile-table td {
    border-color: rgb(55 65 81);
}

.atenea-reconcile-table td:nth-child(2),
.atenea-reconcile-table td:nth-child(4) {
    display: table-cell;
    min-width: 15rem;
}

.atenea-reconcile-table td:nth-child(2) strong,
.atenea-reconcile-table td:nth-child(4) strong,
.atenea-reconcile-table td:nth-child(2) small,
.atenea-reconcile-table td:nth-child(4) small {
    display: block;
    margin-top: .28rem;
}

.atenea-reconcile-price {
    white-space: nowrap;
}

.atenea-reconcile-badge {
    display: inline-flex;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: rgb(243 244 246);
    color: rgb(55 65 81);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
}

.atenea-reconcile-badge.is-match {
    background: rgb(220 252 231);
    color: rgb(21 128 61);
}

.atenea-reconcile-badge.is-different,
.atenea-reconcile-badge.is-duplicate_sku,
.atenea-reconcile-badge.is-missing_sku {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.atenea-reconcile-badge.is-only_excel,
.atenea-reconcile-badge.is-only_woo {
    background: rgb(254 249 195);
    color: rgb(161 98 7);
}

.atenea-reconcile-badge.is-variable_parent {
    background: rgb(219 234 254);
    color: rgb(29 78 216);
}

.atenea-reconcile-type {
    display: block;
    margin-top: .35rem;
}

.atenea-reconcile-action {
    min-width: 17rem;
}

.atenea-reconcile-action ul {
    margin: 0 0 .4rem 1rem;
    color: rgb(185 28 28);
    list-style: disc;
}

.atenea-reconcile-action strong {
    display: block;
    font-size: .78rem;
}

.atenea-reconcile-muted {
    color: rgb(156 163 175);
    font-style: italic;
}

@media (max-width: 1100px) {
    .atenea-reconcile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .atenea-reconcile-source {
        grid-template-columns: 1fr;
    }

    .atenea-reconcile-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .atenea-reconcile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .atenea-reconcile-toolbar {
        grid-template-columns: 1fr;
    }

    .atenea-reconcile-count {
        text-align: left;
    }

    .atenea-reconcile-table,
    .atenea-reconcile-table tbody,
    .atenea-reconcile-table tr,
    .atenea-reconcile-table td {
        display: block;
        width: 100%;
    }

    .atenea-reconcile-table {
        min-width: 0;
    }

    .atenea-reconcile-table thead {
        display: none;
    }

    .atenea-reconcile-table tr {
        margin-bottom: .75rem;
        padding: .35rem;
        border: 1px solid rgb(229 231 235);
        border-radius: .7rem;
    }

    .atenea-reconcile-table td,
    .atenea-reconcile-table td:nth-child(2),
    .atenea-reconcile-table td:nth-child(4) {
        display: grid;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        min-width: 0;
        gap: .65rem;
        padding: .48rem;
        border: 0;
    }

    .atenea-reconcile-table td::before {
        content: attr(data-label);
        color: rgb(107 114 128);
        font-size: .66rem;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
    }
}

@media print {
    @page {
        size: landscape;
        margin: 10mm;
    }

    body[data-atenea-print] .fi-sidebar,
    body[data-atenea-print] .fi-topbar,
    body[data-atenea-print] .fi-page-header-main-ctn > .fi-header,
    body[data-atenea-print] .atenea-dispatch-stats,
    body[data-atenea-print] .atenea-print-area,
    body[data-atenea-print] .fi-no {
        display: none !important;
    }

    body[data-atenea-print='products'] .atenea-print-area[data-print-area='products'],
    body[data-atenea-print='orders'] .atenea-print-area[data-print-area='orders'] {
        display: block !important;
    }

    body[data-atenea-print] .fi-main,
    body[data-atenea-print] .fi-main-ctn,
    body[data-atenea-print] .fi-page,
    body[data-atenea-print] .fi-page-main,
    body[data-atenea-print] .fi-page-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body[data-atenea-print] .atenea-dispatch-toolbar,
    body[data-atenea-print] .atenea-row-action,
    body[data-atenea-print] .fi-section-header-icon-ctn {
        display: none !important;
    }

    body[data-atenea-print] .atenea-print-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8mm;
        color: #111827;
        font-size: 11pt;
    }

    body[data-atenea-print] .atenea-print-heading > span {
        color: #6b7280;
        font-size: 8pt;
    }

    body[data-atenea-print] .fi-section,
    body[data-atenea-print] .atenea-product-detail-panel {
        border: 0 !important;
        background: white !important;
        box-shadow: none !important;
    }

    body[data-atenea-print] .fi-section-content,
    body[data-atenea-print] .fi-section-header {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body[data-atenea-print] .atenea-table-wrap,
    body[data-atenea-print] .atenea-subtable-wrap {
        overflow: visible !important;
    }

    body[data-atenea-print] .atenea-dispatch-table,
    body[data-atenea-print] .atenea-product-subtable {
        min-width: 0 !important;
        color: #111827 !important;
        font-size: 8pt;
    }

    body[data-atenea-print] .atenea-dispatch-table th,
    body[data-atenea-print] .atenea-dispatch-table td {
        padding: 4px 5px !important;
        border-color: #d1d5db !important;
        background: white !important;
        color: #111827 !important;
    }

    body[data-atenea-print] .atenea-dispatch-table thead {
        display: table-header-group;
    }

    body[data-atenea-print] .atenea-dispatch-table {
        display: table;
    }

    body[data-atenea-print] .atenea-dispatch-table tbody {
        display: table-row-group;
    }

    body[data-atenea-print] .atenea-dispatch-table tr {
        display: table-row;
    }

    body[data-atenea-print] .atenea-dispatch-table td {
        display: table-cell;
        width: auto;
    }

    body[data-atenea-print] .atenea-dispatch-table td::before {
        display: none !important;
    }

    body[data-atenea-print] .atenea-product-group,
    body[data-atenea-print] .atenea-dispatch-table tr,
    body[data-atenea-print] .atenea-dispatch-table td {
        break-inside: avoid;
    }

    body[data-atenea-print] .atenea-product-toggle svg {
        display: none;
    }

    body[data-atenea-print] a {
        color: inherit !important;
        text-decoration: none !important;
    }
}
.atenea-route-simulation{margin:1rem 0}.atenea-route-simulation-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.atenea-route-simulation-head strong,.atenea-route-simulation-head span{display:block}.atenea-route-simulation-head span,.atenea-route-simulation-empty,.atenea-route-simulation-blocked,.atenea-route-simulation-note,.atenea-route-simulation-context,.atenea-route-map-note{color:#64748b;font-size:.875rem}.atenea-route-simulation-blocked{margin-top:1rem;color:#9a3412}.atenea-route-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}.atenea-route-comparison article{border:1px solid #dbe4ef;border-radius:.7rem;padding:.85rem 1rem;background:#fff}.atenea-route-comparison article span,.atenea-route-comparison article strong,.atenea-route-comparison article small{display:block}.atenea-route-comparison article span{text-transform:uppercase;font-size:.7rem;font-weight:800;letter-spacing:.05em;color:#64748b}.atenea-route-comparison article strong{font-size:1.25rem;color:#1e293b;margin:.2rem 0}.atenea-route-comparison article.is-proposed{border-color:#86efac;background:#f0fdf4}.atenea-route-comparison article.is-proposed strong{color:#15803d}.atenea-route-comparison article.is-saving{border-color:#bfdbfe;background:#eff6ff}.atenea-route-comparison article.is-saving strong{color:#1d4ed8}.atenea-route-simulation-context{margin:.85rem 0}.atenea-route-map{border:1px solid #dbe4ef;border-radius:.7rem;overflow:hidden;background:#fff}.atenea-route-map-canvas{height:380px}.atenea-route-map-note{margin:0;padding:.6rem .8rem;border-top:1px solid #e2e8f0}.atenea-route-marker{background:transparent!important;border:0!important}.atenea-route-marker span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#2563eb;color:#fff;border:2px solid #fff;box-shadow:0 1px 5px rgba(15,23,42,.45);font-weight:800;font-size:.8rem}.atenea-route-marker.origin span{width:34px;height:34px;background:#0f766e}.atenea-route-simulation-orders{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.atenea-route-simulation-orders article{border:1px solid #e2e8f0;border-radius:.65rem;padding:.8rem}.atenea-route-simulation-orders article.is-proposed{border-color:#93c5fd;background:#eff6ff}.atenea-route-simulation-orders h4{margin:0 0 .5rem;font-weight:700}.atenea-route-simulation-orders ol{margin:0;padding-left:1.4rem;columns:2;gap:1.5rem}.atenea-route-simulation-orders li{margin:.25rem 0;break-inside:avoid}.atenea-route-simulation-note{margin-top:.75rem}@media(max-width:768px){.atenea-route-simulation-head{align-items:flex-start;flex-direction:column}.atenea-route-comparison,.atenea-route-simulation-orders{grid-template-columns:1fr}.atenea-route-map-canvas{height:300px}.atenea-route-simulation-orders ol{columns:1}}
.atenea-route-comparison dl{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem;margin:.7rem 0 0;border-top:1px solid #dbe4ef;padding-top:.55rem}.atenea-route-comparison dt{font-size:.67rem;color:#64748b}.atenea-route-comparison dd{margin:.1rem 0 0;font-size:.75rem;font-weight:700;color:#334155}.atenea-route-recalculate-warning{margin:.8rem 0;padding:.65rem .8rem;border-radius:.55rem;background:#fff7ed;color:#9a3412;font-size:.875rem}.atenea-route-proposal-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.atenea-route-proposal-head span{font-size:.75rem;color:#64748b}.atenea-route-sortable{columns:1!important;padding:0!important;list-style:none}.atenea-route-sortable li{display:flex;align-items:center;gap:.5rem;padding:.45rem;border:1px solid #bfdbfe;background:#fff;border-radius:.45rem}.atenea-route-stop-copy{min-width:0;flex:1}.atenea-route-move-actions{display:flex;gap:.25rem;margin-left:auto}.atenea-route-move-actions button{width:1.9rem;height:1.9rem;border:1px solid #93c5fd;border-radius:.4rem;background:#fff;color:#1d4ed8;font-size:1rem;font-weight:800;cursor:pointer}.atenea-route-move-actions button:disabled{cursor:not-allowed;opacity:.35}.atenea-route-recalculate-top{margin:.65rem 0}.atenea-route-sortable li+li{margin-top:.35rem}.atenea-route-drag-handle{border:0;background:transparent;cursor:grab;color:#64748b;font-size:1.05rem;line-height:1;padding:.2rem;touch-action:none}.atenea-route-drag-handle:active{cursor:grabbing}.atenea-route-sortable li.is-dragging{position:relative;z-index:3;border-color:#2563eb;background:#eff6ff;box-shadow:0 10px 22px rgba(30,64,175,.25);opacity:.88;cursor:grabbing;transform:scale(1.015)}.atenea-route-sortable li.is-dragging~li{transition:transform .12s ease}.atenea-route-adjusting-overlay[hidden]{display:none!important}.atenea-route-proposal-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.75rem}.atenea-route-apply{background:#15803d!important}.sortable-ghost{opacity:.38}.sortable-chosen{box-shadow:0 5px 13px rgba(30,64,175,.18)}.atenea-dispatch-operating-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;grid-column:1/-1;border-top:1px solid #e2e8f0;padding-top:.8rem}.atenea-dispatch-operating-times strong,.atenea-dispatch-operating-times span{grid-column:1/-1}.atenea-dispatch-operating-times span{font-size:.8rem;color:#64748b}.atenea-dispatch-operating-times label{display:grid;gap:.3rem;font-size:.8rem;font-weight:600}@media(max-width:768px){.atenea-route-comparison dl,.atenea-dispatch-operating-times{grid-template-columns:1fr}.atenea-dispatch-operating-times strong,.atenea-dispatch-operating-times span{grid-column:auto}}
.atenea-route-anchors{margin:.9rem 0;padding:.85rem;border:1px solid #c7d7fe;border-radius:.7rem;background:#f8fbff}.atenea-route-anchors-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.atenea-route-anchors-head strong,.atenea-route-anchors-head span{display:block}.atenea-route-anchors-head strong{color:#1e3a8a;font-size:.88rem}.atenea-route-anchors-head strong small{color:#64748b;font-size:.75rem;font-weight:600}.atenea-route-anchors-head span{max-width:48rem;margin-top:.2rem;color:#64748b;font-size:.78rem;line-height:1.4}.atenea-route-anchors-head button{padding:.35rem .55rem;border:1px solid #bfdbfe;border-radius:.45rem;background:#fff;color:#1d4ed8;font-size:.75rem;font-weight:700;white-space:nowrap;cursor:pointer}.atenea-route-anchor-options{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem;max-height:10rem;overflow:auto}.atenea-route-anchor-options button{display:inline-flex;align-items:center;gap:.35rem;max-width:100%;padding:.38rem .5rem;border:1px solid #dbe4ef;border-radius:999px;background:#fff;color:#475569;font-size:.76rem;cursor:pointer}.atenea-route-anchor-options button:hover{border-color:#93c5fd;background:#eff6ff}.atenea-route-anchor-options button.is-anchor{border-color:#2563eb;background:#e8f0ff;color:#1d4ed8}.atenea-route-anchor-options button>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.atenea-route-anchor-plus,.atenea-route-anchor-number{display:grid;width:1.1rem;height:1.1rem;place-items:center;border-radius:50%;background:#e2e8f0;color:#475569;font-size:.74rem;font-weight:800}.atenea-route-anchor-options .is-anchor .atenea-route-anchor-number{background:#2563eb;color:#fff}.atenea-route-sortable li.is-anchor{border-color:#60a5fa;background:#eff6ff}.atenea-route-proposal-anchor{margin-left:auto;padding:.18rem .38rem;border-radius:999px;background:#2563eb;color:#fff;font-size:.68rem;white-space:nowrap}@media(max-width:768px){.atenea-route-anchors-head{flex-direction:column}.atenea-route-anchors-head button{width:100%}.atenea-route-anchor-options{max-height:13rem}}
.atenea-route-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .85rem;border-bottom:1px solid #e2e8f0}.atenea-route-map-fullscreen{position:fixed;inset:0;z-index:10050!important;padding:1.5rem;background:rgb(15 23 42 /.72);display:grid;place-items:center}.atenea-route-map-fullscreen section{width:min(1280px,100%);height:min(880px,calc(100vh - 3rem));display:grid;grid-template-rows:auto 1fr;overflow:hidden;border-radius:.9rem;background:#fff;box-shadow:0 20px 60px rgb(15 23 42 /.4)}.atenea-route-map-fullscreen header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid #e2e8f0}.atenea-route-map-fullscreen header strong,.atenea-route-map-fullscreen header span{display:block}.atenea-route-map-fullscreen header span{font-size:.8rem;color:#64748b}.atenea-route-map-fullscreen header button{border:0;background:transparent;font-size:1.8rem;line-height:1;cursor:pointer;color:#334155}.atenea-route-map-fullscreen-canvas{min-height:0}.atenea-route-apply-modal{max-width:640px}.atenea-route-apply-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;padding:1rem}.atenea-route-apply-summary>strong{grid-column:1/-1;font-size:.9rem;color:#166534}.atenea-route-apply-summary div{padding:.65rem;border:1px solid #dbe4ef;border-radius:.55rem;background:#f8fafc}.atenea-route-apply-summary span,.atenea-route-apply-summary b{display:block}.atenea-route-apply-summary span{font-size:.73rem;font-weight:700;text-transform:uppercase;color:#64748b}.atenea-route-apply-summary b{margin-top:.25rem;font-size:.84rem;color:#1e293b}.atenea-route-apply-summary .is-saving{border-color:#bbf7d0;background:#f0fdf4}.atenea-route-apply-summary .is-saving b{color:#15803d}.atenea-route-apply-safety{margin:0 1rem 1rem;padding:.7rem .8rem;border-radius:.5rem;background:#eff6ff;color:#1e3a8a;font-size:.85rem}.atenea-route-applied-status{margin:.65rem 0 0;padding:.55rem .7rem;border-radius:.5rem;background:#ecfdf5;color:#166534;font-size:.82rem}@media(max-width:768px){.atenea-route-map-fullscreen{padding:.6rem}.atenea-route-map-fullscreen section{height:calc(100vh - 1.2rem)}.atenea-route-apply-summary{grid-template-columns:1fr}.atenea-route-map-toolbar{align-items:flex-start;flex-direction:column}}
.atenea-mobile-tracking-heading,.atenea-mobile-tracking-route>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.atenea-mobile-tracking-heading h2,.atenea-mobile-tracking-route h3{margin:.15rem 0;color:#172033}.atenea-mobile-tracking-heading>div>p:last-child,.atenea-mobile-tracking-route header>div>p:last-child{margin:0;color:#64748b}.atenea-mobile-tracking-eyebrow{margin:0;color:#15803d;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.atenea-mobile-tracking-route{margin-top:1rem;padding:1.1rem;border:1px solid #dbe4ef;border-radius:.8rem;background:#fff}.atenea-mobile-tracking-summary{display:flex;gap:.45rem;flex-wrap:wrap}.atenea-mobile-tracking-summary span,.atenea-mobile-tracking-stops .status{display:inline-flex;align-items:center;border-radius:999px;padding:.3rem .55rem;font-size:.76rem;font-weight:800}.atenea-mobile-tracking-summary .pending,.atenea-mobile-tracking-stops article.is-pending .status{background:#dbeafe;color:#1d4ed8}.atenea-mobile-tracking-summary .delivered,.atenea-mobile-tracking-stops article.is-delivered .status{background:#e5e7eb;color:#475569}.atenea-mobile-tracking-summary .undelivered,.atenea-mobile-tracking-stops article.is-undelivered .status{background:#ffedd5;color:#c2410c}.atenea-mobile-tracking-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:1rem;margin-top:1rem}.atenea-mobile-tracking-stops{display:grid;gap:.55rem;align-content:start}.atenea-mobile-tracking-stops h4{margin:0 0 .1rem}.atenea-mobile-tracking-stops article{display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;align-items:start;padding:.7rem;border:1px solid #e2e8f0;border-radius:.6rem}.atenea-mobile-tracking-stops .sequence{width:1.8rem;height:1.8rem;display:grid;place-items:center;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-size:.8rem;font-weight:800}.atenea-mobile-tracking-stops article.is-delivered .sequence{background:#e5e7eb;color:#475569}.atenea-mobile-tracking-stops article.is-undelivered .sequence{background:#ffedd5;color:#c2410c}.atenea-mobile-tracking-stops strong,.atenea-mobile-tracking-stops p,.atenea-mobile-tracking-stops small{display:block}.atenea-mobile-tracking-stops p{margin:.15rem 0;color:#64748b;font-size:.85rem}.atenea-mobile-tracking-stops small{color:#475569;font-size:.78rem}.atenea-mobile-tracking-map{border:1px solid #dbe4ef;border-radius:.7rem;overflow:hidden}.atenea-map-key{display:inline-block;width:.7rem;height:.7rem;margin:0 .25rem 0 .7rem;border-radius:50%;vertical-align:middle}.atenea-map-key:first-child{margin-left:0}.atenea-map-key.pending{background:#2563eb}.atenea-map-key.delivered{background:#64748b}.atenea-map-key.undelivered{background:#ea580c}.atenea-mobile-tracking-marker{background:transparent!important;border:0!important}.atenea-mobile-tracking-marker span{width:32px;height:32px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:#2563eb;font-size:.82rem;font-weight:800;box-shadow:0 1px 5px rgb(15 23 42 /.45)}.atenea-mobile-tracking-marker.delivered span{background:#64748b}.atenea-mobile-tracking-marker.undelivered span{background:#ea580c}.atenea-mobile-map-empty{padding:1rem;color:#64748b}.atenea-mobile-tracking-empty{padding:2rem;text-align:center;border:1px dashed #cbd5e1;border-radius:.7rem;color:#64748b}@media(max-width:900px){.atenea-mobile-tracking-grid{grid-template-columns:1fr}.atenea-mobile-tracking-heading,.atenea-mobile-tracking-route>header{flex-direction:column}.atenea-mobile-tracking-stops article{grid-template-columns:auto 1fr}.atenea-mobile-tracking-stops .status{grid-column:2}}
.atenea-dispatch-operational-header,.atenea-dispatch-route-day,.atenea-dispatch-preparation,.atenea-dispatch-orders-block{margin:0 0 1.3rem;padding:1rem 1.1rem;border:1px solid #e2e8f0;border-radius:.9rem;background:#fff}.atenea-dispatch-route-day{border-color:#bfdbfe;background:linear-gradient(180deg,#f8fbff,#fff)}.atenea-dispatch-block-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 .9rem}.atenea-dispatch-block-heading span{display:block;color:#2563eb;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.atenea-dispatch-block-heading h2{margin:.15rem 0 0;color:#1e293b;font-size:1.18rem;font-weight:800}.atenea-dispatch-block-heading p{margin:0;color:#64748b;font-size:.82rem;text-align:right}.atenea-dispatch-secondary-panel{margin:0 0 1.1rem;border:1px solid #e2e8f0;border-radius:.75rem;background:#fff;overflow:hidden}.atenea-dispatch-secondary-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:.8rem;cursor:pointer;padding:.8rem 1rem;list-style:none}.atenea-dispatch-secondary-panel>summary::-webkit-details-marker{display:none}.atenea-dispatch-secondary-panel>summary strong,.atenea-dispatch-secondary-panel>summary small{display:block}.atenea-dispatch-secondary-panel>summary strong{font-size:.9rem;color:#334155}.atenea-dispatch-secondary-panel>summary small{margin-top:.1rem;color:#64748b;font-size:.77rem}.atenea-dispatch-secondary-panel[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}.atenea-route-history-modal{width:min(1420px,calc(100vw - 3rem));max-width:none;max-height:calc(100vh - 3rem);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.atenea-route-history-layout{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:0}.atenea-route-history-layout>aside{padding:.9rem;border-right:1px solid #e2e8f0;overflow:auto;background:#f8fafc}.atenea-route-history-list{display:grid;gap:.45rem;margin-top:.7rem}.atenea-route-history-list button{text-align:left;padding:.65rem;border:1px solid #dbe4ef;border-radius:.55rem;background:#fff;cursor:pointer}.atenea-route-history-list button:hover,.atenea-route-history-list button.is-selected{border-color:#60a5fa;background:#eff6ff}.atenea-route-history-list b,.atenea-route-history-list span,.atenea-route-history-list small{display:block}.atenea-route-history-list span{margin-top:.2rem;font-size:.8rem;color:#475569}.atenea-route-history-list small{margin-top:.3rem;color:#64748b;font-size:.72rem}.atenea-route-history-detail{min-width:0;overflow:auto;padding:1rem}.atenea-route-history-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.55rem}.atenea-route-history-summary div{padding:.6rem;border:1px solid #e2e8f0;border-radius:.5rem;background:#fff}.atenea-route-history-summary span,.atenea-route-history-summary strong{display:block}.atenea-route-history-summary span{font-size:.68rem;font-weight:800;text-transform:uppercase;color:#64748b}.atenea-route-history-summary strong{margin-top:.2rem;font-size:.84rem;color:#1e293b}.atenea-route-history-origin{margin:.8rem 0 .45rem;color:#475569;font-size:.84rem}.atenea-route-history-time-breakdown{display:flex;flex-wrap:wrap;gap:.65rem;margin:0 0 .8rem;color:#64748b;font-size:.8rem}.atenea-route-history-time-breakdown b{color:#334155}.atenea-route-history-stops{display:grid;gap:.45rem;margin:1rem 0 0;padding:0;list-style:none}.atenea-route-history-stops li{display:flex;gap:.6rem;padding:.55rem .65rem;border:1px solid #e2e8f0;border-radius:.5rem;background:#fff}.atenea-route-history-stops li>b{display:grid;width:1.65rem;height:1.65rem;flex:0 0 1.65rem;place-items:center;border-radius:50%;background:#2563eb;color:#fff;font-size:.78rem}.atenea-route-history-stops strong,.atenea-route-history-stops small{display:block}.atenea-route-history-stops small{margin-top:.15rem;color:#64748b;font-size:.78rem}.atenea-route-history-empty{padding:.8rem;color:#64748b;font-size:.85rem}@media(max-width:900px){.atenea-dispatch-block-heading{align-items:flex-start;flex-direction:column}.atenea-dispatch-block-heading p{text-align:left}.atenea-route-history-modal{width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.atenea-route-history-layout{grid-template-columns:1fr}.atenea-route-history-layout>aside{max-height:250px;border-right:0;border-bottom:1px solid #e2e8f0}.atenea-route-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.atenea-dispatch-workflow-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 1.3rem}.atenea-dispatch-workflow-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:122px;padding:1rem 1.1rem;border:1px solid #dbe4ef;border-radius:.85rem;background:#fff;text-align:left}.atenea-dispatch-workflow-card strong,.atenea-dispatch-workflow-card span{display:block}.atenea-dispatch-workflow-card strong{color:#1e293b;font-size:.98rem}.atenea-dispatch-workflow-copy>span{margin-top:.35rem;color:#64748b;font-size:.78rem;line-height:1.35}.atenea-dispatch-workflow-icon{display:grid!important;width:3.65rem;height:3.65rem;place-items:center;border-radius:1rem;box-shadow:inset 0 0 0 1px rgb(15 23 42 /.04)}.atenea-dispatch-workflow-icon svg{width:2rem;height:2rem;stroke-width:2}.atenea-dispatch-workflow-card.is-date .atenea-dispatch-workflow-icon{background:#d1fae5;color:#047857}.atenea-dispatch-workflow-card.is-route .atenea-dispatch-workflow-icon{background:#dbeafe;color:#1d4ed8}.atenea-dispatch-workflow-card.is-products .atenea-dispatch-workflow-icon{background:#ffedd5;color:#c2410c}.atenea-dispatch-workflow-card.is-communes .atenea-dispatch-workflow-icon{background:#ede9fe;color:#6d28d9}.atenea-dispatch-workflow-status{padding:.34rem .48rem;border-radius:.45rem;background:#f1f5f9;color:#475569!important;font-size:.72rem!important;font-weight:700;white-space:nowrap}.atenea-dispatch-workflow-card.is-button{cursor:pointer}.atenea-dispatch-workflow-card.is-button:hover{border-color:#60a5fa;background:#f8fbff}.atenea-dispatch-date-modal{width:min(520px,calc(100vw - 2rem));max-width:520px}.atenea-dispatch-date-modal-content{display:grid;gap:1rem;padding:1.2rem}.atenea-dispatch-date-modal-content .atenea-day-filter{display:grid;gap:.4rem;color:#334155;font-size:.82rem;font-weight:700;text-transform:uppercase}.atenea-dispatch-date-modal-content .atenea-day-filter input{width:100%;min-height:2.65rem;font-size:.96rem}.atenea-dispatch-date-modal-actions{display:flex;justify-content:flex-end;gap:.6rem}.atenea-dispatch-preparation>summary{cursor:pointer;list-style:none}.atenea-dispatch-preparation>summary::-webkit-details-marker{display:none}.atenea-dispatch-preparation:not([open]){padding-bottom:0}.atenea-dispatch-preparation:not([open])>summary{padding-bottom:1rem}.atenea-dispatch-mobile-actions{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}.atenea-dispatch-mobile-actions .atenea-copy-button{display:inline-flex;align-items:center;gap:.4rem;height:2.45rem;white-space:nowrap}.atenea-dispatch-mobile-actions .atenea-copy-button svg{width:1rem;height:1rem;flex:0 0 1rem}.atenea-mobile-sync-button{position:relative}.atenea-mobile-sync-count{position:absolute;top:-.45rem;right:-.45rem;z-index:1;display:grid;min-width:1.35rem;height:1.35rem;place-items:center;padding:0 .25rem;border:2px solid #fff;border-radius:999px;background:#dc2626;color:#fff;font-size:.72rem;font-weight:800;line-height:1;box-shadow:0 1px 3px rgb(15 23 42 /.25)}.atenea-dispatch-section-description{margin:-.25rem 0 .8rem;color:#64748b;font-size:.82rem}.atenea-route-map-empty-message{margin:0 0 1rem;padding:1rem;border:1px dashed #cbd5e1;border-radius:.7rem;color:#64748b;font-size:.86rem}.atenea-mobile-user-checks{display:grid;gap:.45rem;margin-top:.7rem}.atenea-mobile-user-checks label{color:#334155;font-size:.85rem}@media(max-width:1100px){.atenea-dispatch-workflow-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.atenea-dispatch-workflow-cards{grid-template-columns:1fr}.atenea-dispatch-mobile-actions{align-items:stretch;flex-direction:column}.atenea-dispatch-mobile-actions .atenea-copy-button{justify-content:center}}@media(max-width:560px){.atenea-dispatch-workflow-card{grid-template-columns:auto minmax(0,1fr)}.atenea-dispatch-workflow-status{grid-column:2}.atenea-dispatch-date-modal-actions{align-items:stretch;flex-direction:column-reverse}.atenea-dispatch-date-modal-actions button{width:100%}}
.atenea-mobile-publication-modal{width:min(720px,100%);max-width:720px}.atenea-mobile-publication-users{margin:0 1.35rem 1rem;padding:1rem;border:1px solid #dbe4ef;border-radius:.7rem;background:#f8fafc}.atenea-mobile-publication-route-name{display:grid;gap:.35rem}.atenea-mobile-publication-route-name strong{color:#172033;font-size:.95rem}.atenea-mobile-publication-route-name span{color:#64748b;font-size:.84rem}.atenea-mobile-publication-route-name input{width:100%;min-height:2.55rem;margin-top:.25rem;padding:.55rem .7rem;border:1px solid #b9c9dd;border-radius:.5rem;background:#fff;color:#172033}.atenea-mobile-publication-users-heading strong,.atenea-mobile-publication-users-heading span{display:block}.atenea-mobile-publication-users-heading strong{color:#172033;font-size:.95rem}.atenea-mobile-publication-users-heading span{margin-top:.2rem;color:#64748b;font-size:.84rem}.atenea-mobile-publication-users .atenea-mobile-user-checks{margin-top:.8rem;gap:.5rem}.atenea-mobile-publication-users .atenea-mobile-user-checks label{display:flex;align-items:center;gap:.55rem;padding:.55rem .65rem;border:1px solid #dbe4ef;border-radius:.5rem;background:#fff;font-size:.9rem;line-height:1.3;cursor:pointer}.atenea-mobile-publication-users .atenea-mobile-user-checks input{width:1rem;height:1rem;flex:none}.atenea-mobile-publication-users .atenea-mobile-user-checks p{margin:0;color:#64748b}@media(max-width:767px){.atenea-mobile-publication-users{margin-right:1rem;margin-left:1rem}}
.atenea-mobile-inbox-modal{width:min(680px,100%);max-width:680px;overflow:hidden}.atenea-mobile-inbox-list{display:grid;gap:.55rem;max-height:min(52vh,30rem);margin:0 1.35rem 1rem;overflow:auto;padding:.1rem .15rem .1rem 0}.atenea-mobile-inbox-row{display:grid;grid-template-columns:auto 1.8rem minmax(0,1fr);align-items:center;gap:.7rem;padding:.75rem .8rem;border:1px solid #dbe4ef;border-radius:.7rem;background:#fff;cursor:pointer}.atenea-mobile-inbox-row:hover{border-color:#93c5fd;background:#f8fbff}.atenea-mobile-inbox-row>input{width:1rem;height:1rem;margin:0}.atenea-mobile-inbox-icon{display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:999px;background:#e8f1ff;color:#2563eb;font-size:.9rem;font-weight:800}.atenea-mobile-inbox-content{display:grid;gap:.18rem;min-width:0}.atenea-mobile-inbox-content strong{overflow:hidden;color:#172033;font-size:.92rem;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.atenea-mobile-inbox-content small{color:#64748b;font-size:.8rem}.atenea-mobile-inbox-modal .atenea-route-apply-safety{margin-top:0}@media(max-width:767px){.atenea-mobile-inbox-list{max-height:45vh;margin-right:1rem;margin-left:1rem}.atenea-mobile-inbox-row{grid-template-columns:auto 1.65rem minmax(0,1fr);padding:.65rem}.atenea-mobile-inbox-content strong{white-space:normal}}
.atenea-mobile-inbox-accept[disabled]{cursor:wait;filter:saturate(.72);opacity:.82}.atenea-mobile-inbox-processing{display:inline-flex;align-items:center;gap:.5rem}.atenea-mobile-inbox-spinner{display:inline-block;width:1rem;height:1rem;flex:0 0 1rem;border:2px solid rgb(255 255 255 /.4);border-top-color:#fff;border-right-color:#fff;border-radius:50%;animation:atenea-mobile-inbox-spin .7s linear infinite}@keyframes atenea-mobile-inbox-spin{to{transform:rotate(360deg)}}
.atenea-dispatch-mobile-actions .atenea-copy-button.is-mobile-action{background:#15803d;color:#fff}.atenea-dispatch-mobile-actions .atenea-copy-button.is-mobile-action:hover{background:#166534}.atenea-dispatch-mobile-actions .atenea-copy-button.is-route-action{background:#2563eb;color:#fff}.atenea-dispatch-mobile-actions .atenea-copy-button.is-route-action:hover{background:#1d4ed8}.atenea-dispatch-mobile-actions .atenea-copy-button.is-mobile-action svg,.atenea-dispatch-mobile-actions .atenea-copy-button.is-route-action svg{width:1.05rem;height:1.05rem;stroke-linecap:round;stroke-linejoin:round}
.atenea-route-history-list-item{position:relative}.atenea-route-history-list .atenea-route-history-list-item .atenea-route-history-select{width:100%;min-width:0;padding-right:.65rem;padding-bottom:2.05rem}.atenea-route-history-list-item.is-selected .atenea-route-history-select{border-color:#60a5fa;background:#eff6ff}.atenea-route-history-list .atenea-route-history-delete{position:absolute;right:.45rem;bottom:.4rem;display:grid;width:1.65rem;height:1.65rem;place-items:center;padding:0;text-align:center;border:0;border-radius:.42rem;background:transparent;color:#dc2626;cursor:pointer;line-height:1}.atenea-route-history-list .atenea-route-history-delete:hover{background:#fff1f2;color:#be123c}.atenea-route-history-delete svg{width:1rem;height:1rem;stroke-linecap:round;stroke-linejoin:round}
.atenea-route-map{position:relative;z-index:0;isolation:isolate}.atenea-route-map .leaflet-pane{z-index:1}.atenea-route-map .leaflet-top,.atenea-route-map .leaflet-bottom{z-index:2}.atenea-route-map .leaflet-popup-pane{z-index:3}
.atenea-legacy-print-action{display:none!important}.atenea-print-options-trigger{display:inline-flex!important;align-items:center;gap:.42rem}.atenea-print-options-trigger svg{width:1rem;height:1rem;stroke-linecap:round;stroke-linejoin:round}.atenea-dispatch-print-modal{width:min(560px,calc(100vw - 2rem));max-width:560px}.atenea-dispatch-print-options{display:grid;gap:.65rem;padding:1.1rem}.atenea-dispatch-print-options button{display:grid;gap:.2rem;width:100%;padding:.85rem .9rem;border:1px solid #dbe4ef;border-radius:.65rem;background:#fff;color:#1e293b;text-align:left;cursor:pointer}.atenea-dispatch-print-options button:hover{border-color:#60a5fa;background:#f8fbff}.atenea-dispatch-print-options strong{font-size:.9rem}.atenea-dispatch-print-options span{color:#64748b;font-size:.78rem;line-height:1.35}
.atenea-dispatch-workflow-modal{width:min(1500px,calc(100vw - 3rem));max-width:none;max-height:calc(100vh - 3rem);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}.atenea-dispatch-modal-content{min-height:0;overflow:auto;padding:1rem;background:#f8fafc}.atenea-dispatch-workflow-modal .atenea-dispatch-route-day,.atenea-dispatch-workflow-modal .atenea-dispatch-preparation{margin:0;background:#fff}.atenea-dispatch-workflow-modal .atenea-dispatch-preparation{border:0;padding:0}.atenea-dispatch-workflow-modal .atenea-dispatch-preparation>summary{display:none}@media(max-width:900px){.atenea-dispatch-workflow-modal{width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}}
.atenea-dispatch-stat{appearance:none;width:100%;cursor:pointer;text-align:left}.atenea-dispatch-stat:hover{border-color:#93c5fd;box-shadow:0 5px 15px rgb(37 99 235 / .1)}.atenea-dispatch-stat:focus-visible{outline:3px solid rgb(37 99 235 / .35);outline-offset:2px}.atenea-dispatch-summary-modal{width:min(760px,100%)}.atenea-dispatch-summary-detail{padding:0 1.35rem 1.1rem;display:grid;gap:.55rem}.atenea-dispatch-summary-total{display:flex;align-items:baseline;justify-content:space-between;padding:.8rem .9rem;border-radius:.65rem;background:#eff6ff;color:#1e3a8a}.atenea-dispatch-summary-total strong{font-size:.86rem}.atenea-dispatch-summary-total b{font-size:1.1rem}.atenea-dispatch-summary-detail article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem .9rem;border:1px solid #e2e8f0;border-radius:.65rem}.atenea-dispatch-summary-detail article>div{min-width:0;display:grid;gap:.18rem}.atenea-dispatch-summary-detail article strong{color:#1e293b;font-size:.88rem}.atenea-dispatch-summary-detail article span{color:#64748b;font-size:.76rem}.atenea-dispatch-summary-detail article>b{flex:none;color:#1e3a8a;font-size:.82rem;text-align:right}.atenea-dispatch-summary-detail article.is-alert{border-color:#fecaca;background:#fff7f7}.atenea-dispatch-summary-detail article.is-alert>b{color:#b91c1c}.atenea-dispatch-summary-empty{padding:.9rem;border-radius:.65rem;background:#f0fdf4;color:#166534;text-align:center}
.fi-fo-repeater-table tbody td{vertical-align:top!important}
.atenea-order-items-repeater .fi-fo-repeater-table tbody td{vertical-align:top!important}.atenea-order-items-repeater .fi-fo-field-wrp{margin-top:0!important}

/* Registro manual de inventario: las etiquetas pueden ocupar dos líneas,
   pero todos los controles comienzan a la misma altura y se leen como fila. */
.atenea-manual-inventory-lines [data-field-wrapper]{display:flex;flex-direction:column;align-items:stretch}.atenea-manual-inventory-lines .fi-fo-field-label-col{min-height:2.65rem;display:flex;align-items:flex-start}.atenea-manual-inventory-lines .fi-input-wrp,.atenea-manual-inventory-lines .fi-select-input{min-height:3.9rem}.atenea-manual-inventory-lines .fi-input-wrp input,.atenea-manual-inventory-lines .fi-select-input{height:3.9rem}.atenea-manual-inventory-lines .fi-fo-field-label{align-items:flex-start}.atenea-manual-inventory-lines .fi-fo-field-label-content{line-height:1.25rem}

/* Cinta ejecutiva de clientes */
.atenea-customers-ribbon{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;margin:0 0 1rem;padding:0}.atenea-customer-card{position:relative;min-width:0;min-height:142px;padding:1rem;border:1px solid #e7ebf2;border-radius:.85rem;background:linear-gradient(145deg,#fff,#fcfdff);box-shadow:0 3px 10px rgb(15 23 42 /.05);color:#526078}.atenea-customer-card h3{min-height:0;margin:.05rem 0 .25rem 2.45rem;color:#536078;font-size:.83rem;font-weight:800;line-height:1.25}.atenea-customer-card>strong{display:block;margin-left:2.45rem;color:#13203a;font-size:2rem;font-weight:850;letter-spacing:-.055em;line-height:1.05}.atenea-customer-card>p{min-height:2.1em;margin:.65rem 0 0;color:#64748b;font-size:.7rem;font-weight:560;line-height:1.4}.atenea-customer-card-icon{position:absolute;top:.95rem;left:1rem;display:grid;width:1.9rem;height:1.9rem;place-items:center;border-radius:.62rem}.atenea-customer-card-icon svg{width:1.05rem;height:1.05rem}.tone-blue .atenea-customer-card-icon{background:#e6f0ff;color:#2563eb}.tone-green .atenea-customer-card-icon{background:#e7f8e9;color:#159447}.tone-violet .atenea-customer-card-icon{background:#f1e8ff;color:#8535bf}.tone-emerald .atenea-customer-card-icon{background:#e4f8ec;color:#159447}.tone-orange .atenea-customer-card-icon{background:#fff0e2;color:#eb7916}.tone-green>strong,.tone-emerald>strong{color:#16a35c}.tone-violet>strong{color:#8535bf}.tone-orange>strong{color:#df913f}.atenea-customer-card.has-breakdown{min-height:142px}.atenea-customer-card.has-breakdown>p{margin-top:.45rem;min-height:0}.atenea-customer-breakdown{display:grid;gap:.32rem;margin:.5rem 0 0;padding-top:.45rem;border-top:1px solid #e6ebf1}.active-breakdown .atenea-customer-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.other-breakdown .atenea-customer-breakdown{grid-template-columns:repeat(3,minmax(0,1fr))}.atenea-customer-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:.25rem}.atenea-customer-breakdown dt{display:flex;align-items:center;gap:.28rem;min-width:0;color:#536078;font-size:.65rem;font-weight:650}.atenea-customer-breakdown dd{margin:0;color:#23314a;font-size:.68rem;font-weight:800}.atenea-customer-breakdown .dot{width:.43rem;height:.43rem;flex:0 0 .43rem;border-radius:50%;background:#94a3b8}.atenea-customer-breakdown .green{background:#2fc477}.atenea-customer-breakdown .light-green{background:#a9e59a}.atenea-customer-breakdown .orange{background:#f4a247}.atenea-customer-breakdown .red{background:#f04452}.atenea-customer-breakdown .yellow{background:#fbbd23}.atenea-customer-breakdown .violet{background:#9647c7}.atenea-customer-breakdown .blue{background:#5d91e5}.dark .atenea-customer-card{border-color:#334155;background:linear-gradient(145deg,#172033,#111827);color:#cbd5e1}.dark .atenea-customer-card h3,.dark .atenea-customer-card>strong,.dark .atenea-customer-breakdown dd{color:#f8fafc}.dark .atenea-customer-card>p,.dark .atenea-customer-breakdown dt{color:#aebbd0}.dark .atenea-customer-breakdown{border-color:#334155}@media(max-width:1100px){.atenea-customers-ribbon{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.atenea-customers-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}.other-breakdown .atenea-customer-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.atenea-customers-ribbon{grid-template-columns:1fr}.atenea-customer-card,.atenea-customer-card.has-breakdown{min-height:0}}

/* Mercado Pago: movimientos descartados de la conciliaci\u00f3n */
.fi-ta-table tbody tr.mp-not-trufken-row > td{background:#f1f3f5!important;color:#6b7280!important}.fi-ta-table tbody tr.mp-not-trufken-row > td:first-child{box-shadow:inset 4px 0 0 #9ca3af}.fi-ta-table tbody tr.mp-not-trufken-row:hover > td{background:#e5e7eb!important}.dark .fi-ta-table tbody tr.mp-not-trufken-row > td{background:#273142!important;color:#aeb8c6!important}.dark .fi-ta-table tbody tr.mp-not-trufken-row:hover > td{background:#344155!important}

/* Íconos de los encabezados de grupo sin activar el modo jerárquico de Filament. */
.fi-sidebar-group[data-group-label]>.fi-sidebar-group-btn::before{content:'';display:block;width:1.1rem;height:1.1rem;flex:0 0 1.1rem;background:#9ca3af;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat}.fi-sidebar-group[data-group-label='Inventario']>.fi-sidebar-group-btn::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4V7zm0 0l9 4 9-4m-9 4v10' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4V7zm0 0l9 4 9-4m-9 4v10' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E")}.fi-sidebar-group[data-group-label='Pagos y Cobranza']>.fi-sidebar-group-btn::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='12' rx='2' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='2.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='12' rx='2' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='2.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E")}.fi-sidebar-group[data-group-label='Administración']>.fi-sidebar-group-btn::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a4 4 0 100 8 4 4 0 000-8zM3 12h3m12 0h3M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1m0-12.8-2.1 2.1m-8.6 8.6-2.1 2.1' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a4 4 0 100 8 4 4 0 000-8zM3 12h3m12 0h3M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1m0-12.8-2.1 2.1m-8.6 8.6-2.1 2.1' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Configuración central */
.atenea-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.atenea-settings-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1.2rem;border:1px solid #e2e8f0;border-radius:1rem;background:#fff;box-shadow:0 4px 15px rgb(15 23 42/.045)}.atenea-settings-card__icon{display:grid;width:3rem;height:3rem;place-items:center;border-radius:.85rem}.atenea-settings-card__icon svg{width:1.55rem}.atenea-settings-card__icon.tone-blue{background:#e8f0ff;color:#2563eb}.atenea-settings-card__icon.tone-violet{background:#f1eaff;color:#7c3aed}.atenea-settings-card__icon.tone-orange{background:#fff1df;color:#d97706}.atenea-settings-card__icon.tone-green{background:#e9f9ef;color:#15803d}.atenea-settings-card span{display:block;color:#64748b;font-size:.68rem;font-weight:800;letter-spacing:.07em}.atenea-settings-card h3{margin:.22rem 0;color:#1e293b;font-size:1.02rem;font-weight:800}.atenea-settings-card p{margin:0;color:#64748b;font-size:.8rem;line-height:1.45}.atenea-settings-card button,.atenea-settings-card>a{border:1px solid #bfdbfe;border-radius:.55rem;background:#fff;color:#2563eb;font-size:.78rem;font-weight:700;padding:.52rem .7rem;white-space:nowrap;cursor:pointer;text-decoration:none}.atenea-settings-card button:hover,.atenea-settings-card>a:hover{background:#eff6ff}.atenea-settings-note{margin-top:1rem;padding:1rem 1.15rem;border:1px solid #dbeafe;border-radius:.8rem;background:#f8fbff;color:#475569}.atenea-settings-note strong{color:#1e3a8a}.atenea-settings-note p{margin:.25rem 0 0;font-size:.84rem}@media(max-width:900px){.atenea-settings-grid{grid-template-columns:1fr}}@media(max-width:600px){.atenea-settings-card{grid-template-columns:auto minmax(0,1fr)}.atenea-settings-card button,.atenea-settings-card>a{grid-column:1/-1;width:100%;text-align:center}}

/* Burbuja de novedades Mobile: no hereda el color del botón. */
.atenea-mobile-sync-count,.atenea-mobile-sync-count *{color:#fff!important}.atenea-mobile-sync-count{background:#dc2626!important;border-color:#fff!important}

/* Ficha expandida de despacho: estado y acciones operativas siempre visibles. */
.atenea-screen-order-operational{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem .75rem;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;background:#f8fafc}.atenea-screen-order-current-status{display:inline-flex;align-items:center;gap:.35rem;color:#1d4ed8;font-size:.82rem;font-weight:700}.atenea-screen-order-current-status strong{color:#475569;font-weight:700}@media(max-width:640px){.atenea-screen-order-operational{align-items:flex-start;flex-direction:column}.atenea-screen-order-operational .atenea-dispatch-order-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}}

/* Acciones de cada pedido: siempre en una sola fila compacta. */
.atenea-screen-order-operational .atenea-dispatch-order-actions{flex-wrap:nowrap;gap:.25rem;white-space:nowrap}.atenea-screen-order-operational .atenea-order-note-button,.atenea-screen-order-operational .atenea-order-delivered-button,.atenea-screen-order-operational .atenea-order-navigate-button,.atenea-screen-order-operational .atenea-orders-open-button{min-height:1.82rem;padding:.32rem .48rem;font-size:.72rem;line-height:1}.atenea-screen-order-operational .atenea-order-navigate-button svg{width:.82rem;height:.82rem}.atenea-mobile-sync-count{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;text-align:center!important;text-indent:0!important;line-height:1!important}

/* Punto de inicio de la ruta en los mapas de seguimiento. */
.atenea-map-key.origin{background:#15803d}.atenea-mobile-tracking-marker.origin span{background:#15803d;font-size:.72rem}
.atenea-route-marker.delivered span{background:#64748b}.atenea-route-marker.undelivered span{background:#ea580c}
.atenea-order-delivered-button.is-complete{cursor:default;background:#64748b!important;color:#fff!important}

/* Leaflet usa capas altas; los diálogos de ATENEA deben quedar por encima. */
.atenea-geolocation-modal-backdrop,.atenea-note-modal-backdrop,.atenea-payment-modal-backdrop,.atenea-order-kpi-modal-backdrop{z-index:10010!important}
.atenea-channel-delivery-location-backdrop{z-index:10020!important}

/* Preparación: equivalencias de packs y lista plegable para armar bolsas. */
.atenea-products-required-layout{display:flex;flex-direction:column}.atenea-products-required-layout>.atenea-dispatch-toolbar{order:1}.atenea-products-required-layout>.atenea-products-detail-table{order:2;margin-bottom:.9rem}.atenea-products-required-layout>.atenea-dispatch-packing-list{order:3}.atenea-dispatch-packing-list{margin:0 0 .9rem;border:1px solid #dbe4ef;border-radius:.7rem;background:#fff;overflow:hidden}.atenea-dispatch-packing-list>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;cursor:pointer;list-style:none}.atenea-dispatch-packing-list>summary::-webkit-details-marker{display:none}.atenea-dispatch-packing-list>summary strong,.atenea-dispatch-packing-list>summary span{display:block}.atenea-dispatch-packing-list>summary strong{color:#334155;font-size:.9rem}.atenea-dispatch-packing-list>summary div>span{margin-top:.15rem;color:#64748b;font-size:.77rem}.atenea-dispatch-packing-count{padding:.22rem .45rem;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;font-weight:800;white-space:nowrap}.atenea-dispatch-packing-list[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}.atenea-dispatch-packing-content{padding:.85rem 1rem}.atenea-dispatch-packing-actions{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.75rem}.atenea-dispatch-packing-actions p{margin:0;color:#64748b;font-size:.78rem}.atenea-dispatch-packing-table-wrap{max-height:26rem;overflow:auto}.atenea-dispatch-packing-table{width:100%;border-collapse:collapse;font-size:.8rem}.atenea-dispatch-packing-table th{position:sticky;top:0;z-index:1;padding:.6rem .65rem;background:#f8fafc;border-bottom:1px solid #cbd5e1;color:#475569;font-size:.7rem;font-weight:800;letter-spacing:.02em;text-align:left;text-transform:uppercase}.atenea-dispatch-packing-table td{padding:.65rem;border-bottom:1px solid #e2e8f0;color:#475569;vertical-align:top}.atenea-dispatch-packing-table tbody tr:last-child td{border-bottom:0}.atenea-dispatch-packing-table td:first-child{color:#1e3a8a;white-space:nowrap}.atenea-dispatch-packing-table ul{display:grid;gap:.15rem;margin:0;padding-left:1rem}.atenea-dispatch-packing-table .is-eggs-only{color:#a16207;font-style:italic}@media(max-width:700px){.atenea-dispatch-packing-list>summary,.atenea-dispatch-packing-actions{align-items:flex-start;flex-direction:column}.atenea-dispatch-packing-actions .atenea-print-button{width:100%;justify-content:center}.atenea-dispatch-packing-table th{display:none}.atenea-dispatch-packing-table,.atenea-dispatch-packing-table tbody,.atenea-dispatch-packing-table tr,.atenea-dispatch-packing-table td{display:block;width:100%}.atenea-dispatch-packing-table tr{padding:.45rem 0;border-bottom:1px solid #e2e8f0}.atenea-dispatch-packing-table td{display:grid;grid-template-columns:8.6rem 1fr;gap:.45rem;padding:.22rem .65rem;border:0}.atenea-dispatch-packing-table td::before{content:attr(data-label);color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase}}
.atenea-packing-check-column{width:3.5rem;text-align:center!important}.atenea-packing-check{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.atenea-packing-check input{width:1.15rem;height:1.15rem;accent-color:#15803d;cursor:pointer}.atenea-dispatch-packing-table tbody tr.is-prepared td{background:#ecfdf3;border-bottom-color:#bbf7d0;color:#166534}.atenea-dispatch-packing-table tbody tr.is-prepared td:first-child{color:#166534}.atenea-dispatch-packing-table tbody tr.is-prepared strong{color:#166534}@media(max-width:700px){.atenea-dispatch-packing-table td.atenea-packing-check-column{display:flex;align-items:center;justify-content:flex-start}.atenea-dispatch-packing-table td.atenea-packing-check-column::before{content:attr(data-label)}}
.atenea-products-required-layout>.atenea-eggs-equivalent-summary{order:2}.atenea-products-required-layout>.atenea-products-detail-table{order:3}.atenea-products-required-layout>.atenea-dispatch-packing-list{order:4}.atenea-eggs-equivalent-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.75rem 0;padding:.65rem .8rem;border:1px solid #bbf7d0;border-radius:.6rem;background:#f0fdf4}.atenea-eggs-equivalent-summary strong{color:#166534;font-size:.84rem}.atenea-eggs-equivalent-summary span{color:#166534;font-size:1rem;font-weight:800}.atenea-eggs-equivalent-summary small{margin-left:.25rem;color:#15803d;font-size:.78rem;font-weight:600}@media(max-width:700px){.atenea-eggs-equivalent-summary{align-items:flex-start;flex-direction:column}}

/* El mapa embebido debe conservar un área visible mientras Leaflet calcula su tamaño. */
.atenea-mobile-tracking-map .atenea-route-map-canvas{display:block;position:relative;width:100%;min-height:380px;background:#f8fafc;z-index:0}@media(max-width:768px){.atenea-mobile-tracking-map .atenea-route-map-canvas{min-height:300px}}
.atenea-mobile-publication-switch{position:relative;display:inline-flex;align-items:center;gap:.42rem;color:#64748b;font-size:.78rem;font-weight:700;user-select:none}.atenea-mobile-publication-switch:before{content:'';width:2.2rem;height:1.25rem;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgb(15 23 42 /.08);transition:background .15s}.atenea-mobile-publication-switch-knob{position:absolute;width:.92rem;height:.92rem;margin-left:.16rem;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(15 23 42 /.35);transition:transform .15s}.atenea-mobile-publication-switch.is-published{color:#15803d}.atenea-mobile-publication-switch.is-published:before{background:#22c55e}.atenea-mobile-publication-switch.is-published .atenea-mobile-publication-switch-knob{transform:translateX(.78rem)}

/* Reoptimización después de mover una parada: respuesta visual inmediata. */
.atenea-route-proposal-list{position:relative}.atenea-route-adjusting-overlay{position:absolute;z-index:5;inset:0;display:flex;min-height:11rem;align-items:center;justify-content:center;gap:.35rem;padding:1rem;border-radius:.65rem;background:rgb(255 255 255 /.9);color:#1e3a8a;text-align:center;backdrop-filter:blur(1px)}.atenea-route-adjusting-overlay strong,.atenea-route-adjusting-overlay span{display:block}.atenea-route-adjusting-overlay strong{font-size:.95rem}.atenea-route-adjusting-overlay span:last-child{max-width:25rem;color:#64748b;font-size:.78rem}.atenea-route-adjusting-spinner{width:1.8rem;height:1.8rem;border:3px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:atenea-route-adjusting-spin .75s linear infinite}@keyframes atenea-route-adjusting-spin{to{transform:rotate(360deg)}}
.atenea-route-confirm-overlay{background:rgb(239 246 255 /.96);border:1px solid #93c5fd}.atenea-route-confirm-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:.45rem}.atenea-route-confirm-actions button{border:1px solid #bfdbfe;border-radius:.5rem;background:#fff;color:#1d4ed8;padding:.45rem .7rem;font-size:.78rem;font-weight:800;cursor:pointer}.atenea-route-confirm-actions button.is-confirm{border-color:#15803d;background:#15803d;color:#fff}.atenea-route-recalculate-panel{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 .65rem;padding:.7rem .8rem;border:1px solid #bfdbfe;border-radius:.6rem;background:#eff6ff;color:#1e3a8a;font-size:.8rem;font-weight:700}.atenea-route-recalculate-panel button{flex:0 0 auto;border:1px solid #15803d;border-radius:.5rem;background:#15803d;color:#fff;padding:.45rem .7rem;font-size:.78rem;font-weight:800;cursor:pointer}.atenea-route-recalculate-panel button:disabled{cursor:not-allowed;opacity:.45}.atenea-route-recalculate-panel.is-ready{border-color:#86efac;background:#f0fdf4;color:#166534}@media(max-width:640px){.atenea-route-recalculate-panel{align-items:stretch;flex-direction:column}.atenea-route-recalculate-panel button{width:100%}}
.atenea-route-stop-position{display:grid!important;width:1.45rem;height:1.45rem;flex:0 0 1.45rem;place-items:center;border-radius:50%;background:#2563eb;color:#fff!important;font-size:.72rem;font-weight:800;line-height:1;box-shadow:0 1px 3px rgb(30 64 175 /.28)}

/* Navegación: las áreas principales se identifican por color; sus opciones internas
   permanecen neutras para no competir visualmente con la jerarquía. */
.fi-sidebar .fi-sidebar-group[data-group-label] .fi-sidebar-item-icon { color:#94a3b8!important; }
.fi-sidebar-group[data-group-label='CRM']>.fi-sidebar-group-btn::before { background:#8b5cf6; }
.fi-sidebar-group[data-group-label='Canales de distribución']>.fi-sidebar-group-btn::before { background:#06b6d4; }
.fi-sidebar-group[data-group-label='Inventario']>.fi-sidebar-group-btn::before { background:#d97706; }
.fi-sidebar-group[data-group-label='Pagos y Cobranza']>.fi-sidebar-group-btn::before { background:#16a34a; }
.fi-sidebar-group[data-group-label='Financiero']>.fi-sidebar-group-btn::before { background:#7c3aed; }
.fi-sidebar-group[data-group-label='Usuarios Móviles']>.fi-sidebar-group-btn::before { background:#2563eb; }
.fi-sidebar-group[data-group-label='Administración']>.fi-sidebar-group-btn::before { background:#475569; }

.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href$='/admin'] .fi-sidebar-item-icon { color:#2563eb!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/woo-customers'] .fi-sidebar-item-icon { color:#8b5cf6!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/products'] .fi-sidebar-item-icon { color:#d97706!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/woo-orders'] .fi-sidebar-item-icon { color:#ea580c!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/despachos'] .fi-sidebar-item-icon { color:#16a34a!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/mobile-loads'] .fi-sidebar-item-icon { color:#0891b2!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/tasks'] .fi-sidebar-item-icon { color:#db2777!important; }
.fi-sidebar .fi-sidebar-group:not([data-group-label]) a[href*='/subscriptions'] .fi-sidebar-item-icon { color:#7c3aed!important; }

/* Cinta operativa del módulo Tareas */
.atenea-tasks-ribbon{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin:0 0 1rem}.atenea-task-kpi{display:flex;align-items:center;gap:.7rem;min-width:0;padding:.82rem .9rem;border:1px solid #e2e8f0;border-radius:.8rem;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 2px 8px rgb(15 23 42/.04)}.atenea-task-kpi-icon{display:grid;width:2.25rem;height:2.25rem;flex:0 0 2.25rem;place-items:center;border-radius:.7rem}.atenea-task-kpi-icon svg{width:1.22rem;height:1.22rem}.atenea-task-kpi h3,.atenea-task-kpi strong,.atenea-task-kpi p{display:block;margin:0}.atenea-task-kpi h3{color:#475569;font-size:.76rem;font-weight:800}.atenea-task-kpi strong{margin-top:.08rem;color:#172033;font-size:1.45rem;font-weight:850;letter-spacing:-.04em;line-height:1.05}.atenea-task-kpi p{margin-top:.18rem;color:#64748b;font-size:.68rem;line-height:1.25}.atenea-task-kpi.tone-blue .atenea-task-kpi-icon{background:#e6f0ff;color:#2563eb}.atenea-task-kpi.tone-violet .atenea-task-kpi-icon{background:#f1e8ff;color:#7c3aed}.atenea-task-kpi.tone-red .atenea-task-kpi-icon{background:#feecef;color:#dc2626}.atenea-task-kpi.tone-orange .atenea-task-kpi-icon{background:#fff1df;color:#d97706}.atenea-task-kpi.tone-green .atenea-task-kpi-icon{background:#e8f8ee;color:#15803d}.atenea-task-kpi.tone-red strong{color:#dc2626}.atenea-task-kpi.tone-green strong{color:#15803d}@media(max-width:1100px){.atenea-tasks-ribbon{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.atenea-tasks-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:460px){.atenea-tasks-ribbon{grid-template-columns:1fr}}

/* Listado de tareas: las prioridades actúan como cabeceras y sus filas se anidan visualmente. */
.fi-resource-tasks .fi-ta-group-header-row>td{background:#e2e8f0!important;border-color:#cbd5e1!important}.fi-resource-tasks .fi-ta-group-header-row .fi-ta-group-header{min-height:2.55rem;padding:.48rem .72rem;border-left:4px solid #64748b;border-radius:.28rem;background:#d7dee8}.fi-resource-tasks .fi-ta-group-header-row .fi-ta-group-heading{color:#1e293b;font-size:.82rem;font-weight:850;letter-spacing:.015em;text-transform:uppercase}.fi-resource-tasks .fi-ta-group-header-row .fi-icon-btn{color:#475569}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row):has(.fi-ta-record-checkbox[data-group])>td:nth-child(3){padding-left:2.2rem}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row):has(.fi-ta-record-checkbox[data-group])>td:nth-child(3)::before{content:'↳';display:inline-block;margin-right:.55rem;color:#94a3b8;font-size:.8rem;font-weight:800}.dark .fi-resource-tasks .fi-ta-group-header-row>td{background:#273449!important;border-color:#475569!important}.dark .fi-resource-tasks .fi-ta-group-header-row .fi-ta-group-header{background:#334155;border-left-color:#94a3b8}.dark .fi-resource-tasks .fi-ta-group-header-row .fi-ta-group-heading{color:#f1f5f9}@media(max-width:700px){.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row):has(.fi-ta-record-checkbox[data-group])>td:nth-child(3){padding-left:1.3rem}}
.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td{padding-top:.28rem!important;padding-bottom:.28rem!important;line-height:1.2}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-col,.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row) .fi-ac-link-action{min-height:0!important;padding-top:0!important;padding-bottom:0!important;line-height:1.2}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-text-item{line-height:1.2}
.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row)>td{height:2.35rem!important;padding-block:0!important}.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-col,.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-actions,.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row) .fi-ac-link-action{min-height:1.65rem!important;height:auto!important;align-content:center;align-items:center}.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-actions{gap:.35rem!important}.fi-resource-tasks .fi-ta-table tbody>.fi-ta-row:not(.fi-ta-group-header-row) .fi-ta-cell-title .fi-ta-col{padding-block:.1rem!important}
.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row):has(.fi-ta-record-checkbox[data-group])>td:nth-child(2)::before{display:none!important;content:none!important}

/* Colores de navegación (declarados al final para prevalecer sobre estilos heredados). */
.fi-sidebar a[href$='/admin'] .fi-sidebar-item-icon{color:#2563eb!important}.fi-sidebar a[href*='/woo-customers'] .fi-sidebar-item-icon{color:#8b5cf6!important}.fi-sidebar a[href*='/products'] .fi-sidebar-item-icon{color:#d97706!important}.fi-sidebar a[href*='/woo-orders'] .fi-sidebar-item-icon{color:#ea580c!important}.fi-sidebar a[href*='/despachos'] .fi-sidebar-item-icon{color:#16a34a!important}.fi-sidebar a[href*='/mobile-loads'] .fi-sidebar-item-icon{color:#0891b2!important}.fi-sidebar a[href*='/tasks'] .fi-sidebar-item-icon{color:#db2777!important}.fi-sidebar a[href*='/subscriptions'] .fi-sidebar-item-icon{color:#7c3aed!important}
.fi-sidebar-group[data-group-label] .fi-sidebar-item-icon{color:#94a3b8!important}
.fi-sidebar a[href$='/admin'] .fi-icon{color:#2563eb!important}.fi-sidebar a[href*='/woo-customers'] .fi-icon{color:#8b5cf6!important}.fi-sidebar a[href*='/products'] .fi-icon{color:#d97706!important}.fi-sidebar a[href*='/woo-orders'] .fi-icon{color:#ea580c!important}.fi-sidebar a[href*='/despachos'] .fi-icon{color:#16a34a!important}.fi-sidebar a[href*='/mobile-loads'] .fi-icon{color:#0891b2!important}.fi-sidebar a[href*='/tasks'] .fi-icon{color:#db2777!important}.fi-sidebar a[href*='/subscriptions'] .fi-icon{color:#7c3aed!important}
.fi-sidebar-group[data-group-label] .fi-sidebar-item-btn>.fi-icon{color:#94a3b8!important}
.fi-sidebar a[href$='/admin'] .fi-sidebar-item-icon{color:#2563eb!important;stroke:#2563eb!important}.fi-sidebar a[href*='/woo-customers'] .fi-sidebar-item-icon{color:#8b5cf6!important;stroke:#8b5cf6!important}.fi-sidebar a[href*='/products'] .fi-sidebar-item-icon{color:#d97706!important;stroke:#d97706!important}.fi-sidebar a[href*='/woo-orders'] .fi-sidebar-item-icon{color:#ea580c!important;stroke:#ea580c!important}.fi-sidebar a[href*='/despachos'] .fi-sidebar-item-icon{color:#16a34a!important;stroke:#16a34a!important}.fi-sidebar a[href*='/mobile-loads'] .fi-sidebar-item-icon{color:#0891b2!important;stroke:#0891b2!important}.fi-sidebar a[href*='/tasks'] .fi-sidebar-item-icon{color:#db2777!important;stroke:#db2777!important}.fi-sidebar a[href*='/subscriptions'] .fi-sidebar-item-icon{color:#7c3aed!important;stroke:#7c3aed!important}.fi-sidebar a[href*='/configuracion'] .fi-sidebar-item-icon{color:#475569!important;stroke:#475569!important}
.fi-sidebar-group[data-group-label] .fi-sidebar-item-icon{color:#94a3b8!important;stroke:#94a3b8!important}
.fi-sidebar-group[data-group-label='CRM']>.fi-sidebar-group-btn::before{background:#8b5cf6!important}.fi-sidebar-group[data-group-label='Canales de distribución']>.fi-sidebar-group-btn::before{background:#06b6d4!important}.fi-sidebar-group[data-group-label='Inventario']>.fi-sidebar-group-btn::before{background:#d97706!important}.fi-sidebar-group[data-group-label='Pagos y Cobranza']>.fi-sidebar-group-btn::before{background:#16a34a!important}.fi-sidebar-group[data-group-label='Financiero']>.fi-sidebar-group-btn::before{background:#7c3aed!important}.fi-sidebar-group[data-group-label='Usuarios Móviles']>.fi-sidebar-group-btn::before{background:#2563eb!important}.fi-sidebar-group[data-group-label='Administración']>.fi-sidebar-group-btn::before{background:#475569!important}

/* Íconos de grupos: se dibujan por CSS para conservar los íconos de cada submódulo. */
.fi-sidebar-group[data-group-label='CRM']>.fi-sidebar-group-btn::before{background:#64748b;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 20v-1.5a4.5 4.5 0 00-4.5-4.5h-4A4.5 4.5 0 003 18.5V20m13-12a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm2.5 6a3.5 3.5 0 013 3.5V20m-3.5-6a3.5 3.5 0 000-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 20v-1.5a4.5 4.5 0 00-4.5-4.5h-4A4.5 4.5 0 003 18.5V20m13-12a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm2.5 6a3.5 3.5 0 013 3.5V20m-3.5-6a3.5 3.5 0 000-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.fi-sidebar-group[data-group-label='Canales de distribución']>.fi-sidebar-group-btn::before{background:#64748b;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8 11l7-4M8 13l7 4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8 11l7-4M8 13l7 4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E")}.fi-sidebar-group[data-group-label='Financiero']>.fi-sidebar-group-btn::before{background:#64748b;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v9h9A9 9 0 0012 3zM10 5a8 8 0 108 8H10V5z' fill='black'/%3E%3C/svg%3E");-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v9h9A9 9 0 0012 3zM10 5a8 8 0 108 8H10V5z' fill='black'/%3E%3C/svg%3E")}.fi-sidebar-group[data-group-label='Usuarios Móviles']>.fi-sidebar-group-btn::before{background:#64748b;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='3' width='10' height='18' rx='2' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M11 18h2' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='3' width='10' height='18' rx='2' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M11 18h2' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

.atenea-route-recalculate-bottom{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}.atenea-route-recalculate-bottom:disabled{background:#cbd5e1!important;border-color:#cbd5e1!important;color:#64748b!important;cursor:not-allowed}

/* Los grupos son módulos principales; las opciones dentro de cada grupo conservan peso normal. */
.fi-sidebar .fi-sidebar-group[data-group-label] > .fi-sidebar-group-btn,
.fi-sidebar .fi-sidebar-group[data-group-label] > .fi-sidebar-group-btn > span {
    font-weight: 700 !important;
}

/* El título está separado del botón de despliegue en Filament. */
.fi-sidebar .fi-sidebar-group[data-group-label] > .fi-sidebar-group-label {
    font-weight: 700 !important;
}

/* Jerarquía visual: las opciones hijas se desplazan respecto de su módulo. */
.fi-sidebar .fi-sidebar-group[data-group-label] > .fi-sidebar-group-items {
    padding-inline-start: 1rem !important;
}
.atenea-order-total-below-items{display:flex!important;justify-content:flex-end;padding-right:4.5rem;margin-top:-.3rem;margin-bottom:.55rem}.atenea-order-total-inline{display:grid;width:8rem;gap:.14rem;text-align:right}.atenea-order-total-inline span{color:#64748b;font-size:.72rem;font-weight:700;line-height:1.2}.atenea-order-total-inline strong{color:#1e293b;font-size:1rem;line-height:1.2}@media(max-width:800px){.atenea-order-total-below-items{padding-right:0}.atenea-order-total-inline{width:auto}}


/* Registro de pago desde la cuenta corriente: productos seleccionados. */
.atenea-payment-selected-lines{margin:0 1.15rem 1rem;border:1px solid rgb(219 234 254);border-radius:.65rem;overflow:hidden;background:rgb(248 251 255)}
.atenea-payment-selected-lines>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.75rem .85rem;border-bottom:1px solid rgb(219 234 254);background:rgb(239 246 255)}
.atenea-payment-selected-lines label{margin:0;color:rgb(30 64 175)}
.atenea-payment-selected-lines p{margin:.18rem 0 0;color:rgb(100 116 139);font-size:.75rem}
.atenea-payment-selected-lines>header>strong{color:rgb(30 64 175);font-size:1rem;white-space:nowrap}
.atenea-payment-selected-lines-list{max-height:15rem;overflow:auto;padding:.38rem}
.atenea-payment-selected-lines-list article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.52rem .58rem;border-radius:.42rem}
.atenea-payment-selected-lines-list article:nth-child(odd){background:#fff}
.atenea-payment-selected-lines-list article>div{display:grid;gap:.08rem;min-width:0}
.atenea-payment-selected-lines-list span{color:rgb(100 116 139);font-size:.68rem;font-weight:700}
.atenea-payment-selected-lines-list strong{overflow:hidden;color:rgb(30 41 59);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.atenea-payment-selected-lines-list b{flex:0 0 auto;color:rgb(15 23 42);font-size:.84rem}
@media(max-width:620px){.atenea-payment-selected-lines{margin:.1rem .85rem .85rem}.atenea-payment-selected-lines-list{max-height:12rem}}

/* Imputación Mercado Pago: conserva el ancho legible de cada columna y desplaza la grilla, sin cortar montos ni estados. */
.mp-payment-allocation-rows.fi-fo-table-repeater,
.mp-payment-allocation-rows .fi-fo-table-repeater{
    display:block;
    max-width:100%;
    overflow-x:auto;
    overflow-y:visible;
    padding-bottom:.55rem;
    scrollbar-color:#94a3b8 transparent;
    scrollbar-width:thin;
}
.mp-payment-allocation-rows.fi-fo-table-repeater>table,
.mp-payment-allocation-rows .fi-fo-table-repeater>table{
    width:97rem!important;
    min-width:97rem!important;
    table-layout:fixed;
}
.mp-payment-allocation-rows.fi-fo-table-repeater>table>tbody>tr>td,
.mp-payment-allocation-rows .fi-fo-table-repeater>table>tbody>tr>td{
    white-space:nowrap;
    vertical-align:middle;
}
.mp-payment-allocation-rows.fi-fo-table-repeater>table>tbody>tr>td:nth-child(2),
.mp-payment-allocation-rows .fi-fo-table-repeater>table>tbody>tr>td:nth-child(2){
    white-space:normal;
}
.mp-payment-allocation-rows .fi-input-wrp{
    min-width:8.5rem;
}

/* Interruptor de imputación completa por pedido. */
.atenea-payment-allocation-table th:nth-child(3),.atenea-payment-allocation-table td:nth-child(3){width:9.5rem;text-align:center;white-space:nowrap}.atenea-payment-allocation-switch{display:inline-flex;align-items:center;gap:.42rem;border:0;background:transparent;color:#64748b;font-size:.72rem;font-weight:750;cursor:pointer}.atenea-payment-allocation-switch>span{position:relative;display:block;width:2.25rem;height:1.28rem;border-radius:999px;background:#cbd5e1;transition:background .18s}.atenea-payment-allocation-switch>span::after{content:'';position:absolute;top:.16rem;left:.16rem;width:.96rem;height:.96rem;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(15 23 42 / .2);transition:transform .18s}.atenea-payment-allocation-switch.is-on{color:#15803d}.atenea-payment-allocation-switch.is-on>span{background:#22c55e}.atenea-payment-allocation-switch.is-on>span::after{transform:translateX(.97rem)}.atenea-payment-allocation-switch:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.atenea-payment-allocation-switch em{font-style:normal}

.atenea-route-marker.new span{background:#16a34a}.atenea-map-key.new{background:#16a34a}

.atenea-route-sortable li.is-new{border-color:#86efac;background:#f0fdf4}.atenea-route-stop-position.is-new{background:#16a34a}.atenea-route-new-stop-label{display:inline-flex;align-items:center;margin-left:.4rem;padding:.12rem .4rem;border-radius:999px;background:#dcfce7;color:#15803d;font-size:.68rem;font-weight:800;vertical-align:middle}
.atenea-route-history-list-item.is-unpublished{background:#e5e7eb;border-color:#cbd5e1}.atenea-route-history-list-item.is-unpublished .atenea-route-history-select{background:#e5e7eb}.atenea-route-history-card-status{position:absolute;left:.65rem;bottom:.42rem;display:flex;align-items:center;gap:.45rem;font-size:.72rem;font-weight:700;color:#475569}.atenea-route-publication-switch{width:2.15rem!important;height:1.2rem!important;min-width:2.15rem;padding:.12rem!important;border:0!important;border-radius:999px!important;background:#94a3b8!important;cursor:pointer!important}.atenea-route-publication-switch i{display:block;width:.96rem;height:.96rem;border-radius:50%;background:#fff;transition:transform .16s ease}.atenea-route-publication-switch.is-published{background:#16a34a!important}.atenea-route-publication-switch.is-published i{transform:translateX(.95rem)}.atenea-route-history-assignees{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.6rem 0;padding:.65rem .75rem;border:1px solid #dbe4ef;border-radius:.55rem;background:#f8fafc}.atenea-route-history-assignees span,.atenea-route-history-assignees strong{display:block}.atenea-route-history-assignees span{font-size:.7rem;font-weight:800;text-transform:uppercase;color:#64748b}.atenea-route-history-assignees strong{margin-top:.15rem;font-size:.88rem;color:#1e293b}.atenea-route-assignment-modal{width:min(540px,calc(100vw - 2rem))}.atenea-route-assignment-options{display:grid;gap:.5rem;padding:1rem}.atenea-route-assignment-options label{display:flex;align-items:center;gap:.65rem;padding:.65rem;border:1px solid #dbe4ef;border-radius:.55rem;cursor:pointer}.atenea-route-assignment-options input{width:1rem;height:1rem}.atenea-route-assignment-options strong,.atenea-route-assignment-options small{display:block}.atenea-route-assignment-options small{margin-top:.12rem;color:#64748b}.atenea-route-assignment-modal footer{display:flex;justify-content:flex-end;gap:.6rem;padding:0 1rem 1rem}@media(max-width:600px){.atenea-route-history-assignees{align-items:flex-start;flex-direction:column}.atenea-route-history-assignees .atenea-copy-button{width:100%}}
.atenea-route-history-assignee-actions{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}@media(max-width:600px){.atenea-route-history-assignee-actions{width:100%}.atenea-route-history-assignee-actions .atenea-copy-button{flex:1 1 auto}}
.atenea-route-history-route-actions{display:flex;align-items:stretch;gap:.7rem;margin:.6rem 0}.atenea-route-history-route-actions>.atenea-route-history-assignees{flex:1;margin:0}.atenea-route-history-route-actions>.atenea-copy-button{align-self:center;white-space:nowrap}.atenea-route-history-assignee-actions{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}@media(max-width:600px){.atenea-route-history-route-actions{align-items:stretch;flex-direction:column}.atenea-route-history-route-actions>.atenea-copy-button{width:100%}.atenea-route-history-assignee-actions{width:100%}.atenea-route-history-assignee-actions .atenea-copy-button{flex:1 1 auto}}
.atenea-route-history-route-actions{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:center!important;width:100%!important}.atenea-route-history-route-actions>.atenea-route-history-assignees{width:auto!important;min-width:0!important}.atenea-route-history-route-actions>.atenea-copy-button{grid-column:2!important;grid-row:1!important;justify-self:end!important;align-self:center!important}@media(max-width:600px){.atenea-route-history-route-actions{display:flex!important}.atenea-route-history-route-actions>.atenea-copy-button{width:100%!important}}
.atenea-route-history-counts{display:flex;align-items:baseline;gap:.5rem}.atenea-route-history-counts strong{font-size:1rem;color:#111827}.atenea-route-history-counts span{font-size:.78rem;color:#64748b;font-weight:700}.atenea-route-assignment-label{margin:0 0 .45rem;font-size:.84rem;font-weight:700;color:#1e293b}.atenea-route-assignment-label b{color:#dc2626}.atenea-route-assignment-options{padding:1rem}.atenea-route-assignment-chips{display:flex;min-height:2.45rem;align-items:center;flex-wrap:wrap;gap:.4rem;padding:.45rem;border:1px solid #dbe4ef;border-radius:.55rem;background:#fff}.atenea-route-assignment-chip{display:inline-flex;align-items:center;gap:.3rem;border:1px solid #bfdbfe;border-radius:.35rem;background:#e0f2fe;color:#2563eb;padding:.24rem .46rem;font-size:.78rem;line-height:1;cursor:pointer}.atenea-route-assignment-chip b{font-size:1rem;font-weight:500;line-height:.7}.atenea-route-assignment-chip.is-admin{border-color:#cbd5e1;background:#e5e7eb;color:#475569;cursor:default}.atenea-route-assignment-empty{font-size:.8rem;color:#64748b}.atenea-route-assignment-options>.atenea-route-assignment-label:not(:first-child){margin-top:1rem}.atenea-route-assignment-available{display:flex;flex-wrap:wrap;gap:.4rem}.atenea-route-assignment-available button{border:1px solid #bfdbfe;border-radius:.35rem;background:#fff;color:#2563eb;padding:.32rem .55rem;font-size:.78rem;cursor:pointer}.atenea-route-assignment-available button:hover{background:#eff6ff}
.atenea-route-history-user-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.25rem}.atenea-route-history-user-chip{display:inline-flex;align-items:center;gap:.28rem;border:1px solid #bfdbfe;border-radius:.35rem;background:#e0f2fe;color:#2563eb;padding:.24rem .46rem;font-size:.78rem;line-height:1;cursor:pointer}.atenea-route-history-user-chip b{font-size:1rem;font-weight:500;line-height:.7}.atenea-route-history-user-chip.is-admin{border-color:#cbd5e1;background:#e5e7eb;color:#475569;cursor:default}
.atenea-route-history-list .atenea-route-history-duplicate{position:absolute;right:2.3rem;bottom:.4rem;display:grid;width:1.65rem;height:1.65rem;place-items:center;padding:0;text-align:center;border:0;border-radius:.42rem;background:transparent;color:#2563eb;cursor:pointer;line-height:1}.atenea-route-history-list .atenea-route-history-duplicate:hover{background:#eff6ff;color:#1d4ed8}.atenea-route-history-duplicate svg{width:1rem;height:1rem;stroke-linecap:round;stroke-linejoin:round}.atenea-route-duplicate-modal{width:min(540px,calc(100vw - 2rem))}.atenea-route-duplicate-form{display:grid;gap:.45rem;padding:1rem}.atenea-route-duplicate-form label{font-size:.85rem;font-weight:700;color:#1e293b}.atenea-route-duplicate-form input{width:100%;border:1px solid #cbd5e1;border-radius:.5rem;padding:.65rem .7rem;color:#1e293b}.atenea-route-duplicate-modal footer{display:flex;justify-content:flex-end;gap:.6rem;padding:0 1rem 1rem}
.atenea-route-action-tooltip{position:absolute;z-index:20;right:0;bottom:calc(100% + .25rem);display:block;width:max-content;max-width:9rem;pointer-events:none;opacity:0;transform:translateY(.2rem);border-radius:.3rem;background:#0f172a;color:#fff;padding:.25rem .42rem;font-size:.68rem;font-weight:700;line-height:1;transition:opacity .12s ease,transform .12s ease}.atenea-route-history-delete:hover .atenea-route-action-tooltip,.atenea-route-history-delete:focus-visible .atenea-route-action-tooltip,.atenea-route-history-duplicate:hover .atenea-route-action-tooltip,.atenea-route-history-duplicate:focus-visible .atenea-route-action-tooltip{opacity:1;transform:translateY(0)}
.atenea-route-action-tooltip{display:none!important;opacity:1!important;transform:none!important}.atenea-route-history-delete:hover .atenea-route-action-tooltip,.atenea-route-history-delete:focus-visible .atenea-route-action-tooltip,.atenea-route-history-duplicate:hover .atenea-route-action-tooltip,.atenea-route-history-duplicate:focus-visible .atenea-route-action-tooltip{display:block!important}
.atenea-route-action-tooltip{color:#fff!important;background:#0f172a!important;text-align:center!important}
@media(max-width:600px){.atenea-route-history-modal{width:calc(100vw - .5rem)!important;max-height:calc(100vh - .5rem)!important}.atenea-route-history-layout{display:block!important}.atenea-route-history-layout>aside{max-height:none!important;height:calc(100vh - 5.5rem);border:0!important;padding:.7rem!important}.atenea-route-history-detail{display:none!important}.atenea-route-history-list{padding-bottom:.5rem}}
@media(max-width:900px),(hover:none) and (pointer:coarse){.atenea-route-history-layout{display:block!important}.atenea-route-history-layout>aside{height:calc(100vh - 5.5rem)!important;max-height:none!important;border-right:0!important;border-bottom:0!important}.atenea-route-history-detail{display:none!important}}
.atenea-saved-routes-page{overflow:hidden;border:1px solid #e2e8f0;border-radius:.8rem;background:#fff}.atenea-saved-routes-page .atenea-route-history-layout{min-height:calc(100vh - 16rem)}.atenea-route-history-start{display:none!important}@media(max-width:900px),(hover:none) and (pointer:coarse){.atenea-saved-routes-page .atenea-route-history-layout>aside{height:calc(100vh - 12rem)!important;max-height:none!important}.atenea-saved-routes-page .atenea-route-history-start{position:absolute;right:4.25rem;bottom:.4rem;display:block!important;padding:.22rem .42rem!important;border-color:#bfdbfe!important;background:#eff6ff!important;color:#2563eb!important;font-size:.68rem!important;font-weight:700!important}.atenea-saved-routes-page .atenea-route-history-list-item .atenea-route-history-select{padding-bottom:2.25rem!important}}
@media(max-width:900px),(hover:none) and (pointer:coarse){.atenea-saved-routes-page{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}.atenea-saved-routes-page .atenea-route-history-layout{display:block!important;min-height:0!important}.atenea-saved-routes-page .atenea-route-history-layout>aside{height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;background:transparent!important}.atenea-saved-routes-page .atenea-route-history-list{gap:.65rem!important;margin-top:.65rem!important}.atenea-saved-routes-page .atenea-route-history-list-item{min-height:7.15rem}.atenea-saved-routes-page .atenea-route-history-list .atenea-route-history-list-item .atenea-route-history-select{min-height:7.15rem;padding:.78rem .78rem 2.25rem!important}.atenea-saved-routes-page .atenea-route-history-card-status{left:.78rem!important;bottom:.52rem!important}.atenea-saved-routes-page .atenea-route-history-start{right:4.55rem!important;bottom:.43rem!important;min-width:auto!important}.atenea-saved-routes-page .atenea-route-history-duplicate{right:2.45rem!important;bottom:.42rem!important}.atenea-saved-routes-page .atenea-route-history-delete{right:.5rem!important;bottom:.42rem!important}.atenea-saved-routes-page .atenea-route-history-detail{display:none!important}}


/* Elección de guardado de rutas: panel cómodo y táctil en teléfono. */
.atenea-route-save-mode-modal{width:min(520px,calc(100vw - 2rem))}
@media(max-width:600px){
  .atenea-route-name-inline-backdrop:has(.atenea-route-save-mode-modal){align-items:flex-end!important;padding:.5rem!important}
  .atenea-route-save-mode-modal{width:100%!important;max-width:100%!important;margin:0!important;border-radius:.9rem .9rem .45rem .45rem!important}
  .atenea-route-save-mode-modal .atenea-dispatch-modal-content{padding:0!important}
  .atenea-route-save-mode-actions{display:grid!important;grid-template-columns:1fr!important;gap:.6rem!important;padding:.85rem 1rem 1rem!important}
  .atenea-route-save-mode-actions .atenea-copy-button{width:100%!important;min-height:2.8rem!important;justify-content:center!important}
}


/* Acción principal para comenzar una ruta. */
.atenea-route-start-primary{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:2.35rem!important;padding:.48rem .82rem!important;border:1px solid #15803d!important;border-radius:.52rem!important;background:#16a34a!important;color:#fff!important;font-size:.82rem!important;font-weight:850!important;line-height:1!important;box-shadow:0 3px 8px rgb(21 128 61 / .24)!important;cursor:pointer!important;white-space:nowrap!important}.atenea-route-start-primary:hover{background:#15803d!important;border-color:#166534!important;box-shadow:0 4px 11px rgb(21 128 61 / .3)!important}.atenea-route-start-primary:focus-visible{outline:3px solid rgb(74 222 128 / .45)!important;outline-offset:2px!important}@media(max-width:900px),(hover:none) and (pointer:coarse){.atenea-saved-routes-page .atenea-route-history-start.atenea-route-start-primary{right:4.3rem!important;bottom:.42rem!important;min-height:2rem!important;padding:.34rem .58rem!important;font-size:.74rem!important;background:#16a34a!important;color:#fff!important;border-color:#15803d!important;box-shadow:0 2px 6px rgb(21 128 61 / .24)!important}}
.atenea-route-start-header{background:#16a34a!important;border-color:#15803d!important;color:#111827!important;box-shadow:0 3px 8px rgb(21 128 61 / .28)!important}.atenea-route-start-header:hover{background:#15803d!important;border-color:#166534!important}.atenea-route-start-header .fi-btn-label{color:#111827!important}.atenea-route-start-header svg,.atenea-route-start-header .fi-btn-icon{color:#fff!important;fill:#fff!important}

/* Rutas de reparto: la banda móvil nunca debe exceder el ancho de pantalla. */
@media(max-width:900px),(hover:none) and (pointer:coarse){
  html,body{max-width:100%;overflow-x:hidden!important}
  .fi-main,.fi-main-ctn,.fi-page,.fi-page-content{max-width:100%;overflow-x:hidden}
  .atenea-saved-routes-page,.atenea-saved-routes-page .atenea-route-history-layout,.atenea-saved-routes-page .atenea-route-history-layout>aside,.atenea-saved-routes-page .atenea-route-history-list{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .atenea-saved-routes-page .atenea-route-history-list>article{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .atenea-saved-routes-page .atenea-route-history-list>article>button{max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere}
  .atenea-saved-routes-page .atenea-route-history-list>article>div{max-width:100%!important;min-width:0!important;flex-wrap:wrap!important}
  .atenea-saved-routes-page .atenea-route-history-list>article>div>span[style*="flex:1"]{min-width:0!important}
}

button.atenea-route-start-header > svg.fi-icon:first-child{color:#fff!important;fill:#fff!important;filter:brightness(0) invert(1)!important}


/* Configuración: centro de ajustes por área */
.fi-page:has(.atenea-config-hub) .fi-header-actions{display:none!important}
.atenea-config-hub{max-width:1200px;margin:0 auto}
.atenea-config-hub__intro{margin:0 0 1.25rem;color:#64748b;font-size:.95rem}
.atenea-config-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;border-bottom:1px solid #dbe4ef;margin-bottom:1.35rem}
.atenea-config-tabs button{display:flex;align-items:center;justify-content:center;gap:.5rem;border:0;border-bottom:3px solid transparent;background:transparent;padding:.85rem .65rem;color:#64748b;font-weight:750;cursor:pointer}
.atenea-config-tabs button svg{width:1.1rem;height:1.1rem}
.atenea-config-tabs button:hover{color:#2563eb;background:#f8fbff}
.atenea-config-tabs button.is-active{border-bottom-color:#2563eb;color:#2563eb}
.atenea-config-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1.25rem;align-items:stretch}
.atenea-config-summary{display:grid;gap:1rem}
.atenea-config-feature,.atenea-config-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1.2rem;border:1px solid #e2e8f0;border-radius:1rem;background:#fff;box-shadow:0 4px 15px rgb(15 23 42/.045)}
.atenea-config-feature span{display:block;color:#64748b;font-size:.68rem;font-weight:800;letter-spacing:.07em}
.atenea-config-feature h3,.atenea-config-card h3{margin:.18rem 0;color:#1e293b;font-size:1.05rem;font-weight:800}
.atenea-config-feature p,.atenea-config-card p{margin:0;color:#64748b;font-size:.84rem;line-height:1.45}
.atenea-config-feature button,.atenea-config-card button,.atenea-config-card>a{border:1px solid #bfdbfe;border-radius:.55rem;background:#fff;color:#2563eb;font-size:.8rem;font-weight:750;padding:.55rem .75rem;white-space:nowrap;cursor:pointer;text-decoration:none}
.atenea-config-feature button:hover,.atenea-config-card button:hover,.atenea-config-card>a:hover{background:#eff6ff}
.atenea-config-quick{display:flex;flex-direction:column;gap:.7rem;padding:1.2rem;border:1px solid #dbe4ef;border-radius:1rem;background:#fbfdff;box-shadow:0 4px 15px rgb(15 23 42/.035)}
.atenea-config-quick h2{margin:0 0 .25rem;color:#1e293b;font-size:1rem;font-weight:800}
.atenea-config-quick button{display:flex;align-items:center;justify-content:flex-start;gap:.6rem;width:100%;border:1px solid #bfdbfe;border-radius:.6rem;background:#fff;padding:.78rem;color:#334155;font-size:.83rem;font-weight:750;cursor:pointer}
.atenea-config-quick button:hover{background:#eff6ff;color:#1d4ed8}
.atenea-config-quick button:disabled{cursor:not-allowed;opacity:.55}
.atenea-config-quick button svg{width:1.15rem;height:1.15rem;color:#2563eb}
.atenea-config-quick b{margin-left:auto;display:grid;min-width:1.25rem;height:1.25rem;place-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.68rem}
.atenea-config-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.atenea-config-card{min-height:8.25rem}
@media(max-width:900px){.atenea-config-layout{grid-template-columns:1fr}.atenea-config-cards{grid-template-columns:1fr}}
@media(max-width:600px){.atenea-config-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.atenea-config-tabs button{justify-content:flex-start;padding:.75rem .4rem;font-size:.8rem}.atenea-config-feature,.atenea-config-card{grid-template-columns:auto minmax(0,1fr)}.atenea-config-feature button,.atenea-config-card button,.atenea-config-card>a{grid-column:1/-1;width:100%;text-align:center}.atenea-config-quick{padding:1rem}.atenea-config-hub__intro{font-size:.87rem}}

/* Oculta las acciones duplicadas del encabezado en Configuración. */
body:has(.atenea-config-hub) .fi-header-actions-ctn{display:none!important}

.fi-resource-tasks .fi-ta-table-body [data-column="completion_action"] svg,.fi-resource-tasks .fi-ta-table-body [data-column="google_sync_status"] svg,.fi-resource-tasks .fi-ta-table-body [data-column="toodledo_sync_status"] svg,.fi-resource-tasks .fi-ta-table-body .fi-ta-actions svg{width:1.125rem!important;height:1.125rem!important}

.fi-resource-tasks .fi-ta-table tbody td svg{width:1.125rem!important;height:1.125rem!important}

/* Accion principal de cada tarea. */
.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2)>button{display:inline-flex!important;width:2rem!important;height:2rem!important;align-items:center!important;justify-content:center!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.28)!important}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2)>button:hover{background:#15803d!important}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2)>button svg{width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}

.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2) button{display:inline-flex!important;width:2rem!important;height:2rem!important;align-items:center!important;justify-content:center!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.28)!important}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2) button:hover{background:#15803d!important}.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row)>td:nth-child(2) button svg{width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}

.fi-resource-tasks .fi-ta-table tbody tr td:nth-child(2) .fi-icon-btn{width:2rem!important;height:2rem!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.28)!important}.fi-resource-tasks .fi-ta-table tbody tr td:nth-child(2) .fi-icon-btn:hover{background:#15803d!important}.fi-resource-tasks .fi-ta-table tbody tr td:nth-child(2) .fi-icon-btn .fi-icon{width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}

/* Boton principal para completar una tarea. */
.fi-resource-tasks .atenea-task-complete-cell .fi-icon-btn,.fi-resource-tasks .atenea-task-complete-cell a,.fi-resource-tasks .atenea-task-complete-cell button{display:inline-flex!important;width:2rem!important;height:2rem!important;align-items:center!important;justify-content:center!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.3)!important}.fi-resource-tasks .atenea-task-complete-cell .fi-icon-btn:hover,.fi-resource-tasks .atenea-task-complete-cell a:hover,.fi-resource-tasks .atenea-task-complete-cell button:hover{background:#15803d!important}.fi-resource-tasks .atenea-task-complete-cell svg{width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}
/* Solo las filas de tareas llevan la accion verde; los grupos conservan su control normal. */
.fi-resource-tasks .fi-ta-group-header-row td:nth-child(2) .fi-icon-btn{width:auto!important;height:auto!important;background:transparent!important;color:#475569!important;box-shadow:none!important}
.fi-resource-tasks .atenea-task-complete-cell .fi-ta-col{display:grid!important;place-items:center!important;width:2rem!important;min-width:2rem!important;max-width:2rem!important;height:2rem!important;min-height:2rem!important;max-height:2rem!important;padding:0!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.3)!important}
.fi-resource-tasks .atenea-task-complete-cell .fi-ta-col:hover{background:#15803d!important}
.fi-resource-tasks .atenea-task-complete-cell .fi-ta-icon{display:grid!important;place-items:center!important;width:1.2rem!important;height:1.2rem!important}
.fi-resource-tasks .atenea-task-complete-cell .fi-ta-icon svg{display:block!important;width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}

/* Ajuste final del control Completar. */
.fi-resource-tasks .fi-ta-table tbody tr.fi-ta-group-header-row td:nth-child(2) .fi-icon-btn{width:auto!important;height:auto!important;background:transparent!important;color:#475569!important;box-shadow:none!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col{display:grid!important;place-items:center!important;width:2rem!important;min-width:2rem!important;max-width:2rem!important;height:2rem!important;min-height:2rem!important;max-height:2rem!important;padding:0!important;line-height:1!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:0 2px 5px rgb(22 163 74/.3)!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:hover{background:#15803d!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon{display:grid!important;place-items:center!important;width:1.2rem!important;height:1.2rem!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon svg{display:block!important;width:1.2rem!important;height:1.2rem!important;color:#fff!important;stroke:#fff!important}

/* Control compacto de completar, alineado con los iconos de la tabla. */
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col{width:1.25rem!important;min-width:1.25rem!important;max-width:1.25rem!important;height:1.25rem!important;min-height:1.25rem!important;max-height:1.25rem!important;border-radius:.38rem!important;box-shadow:0 1px 3px rgb(22 163 74/.22)!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon svg{width:.82rem!important;height:.82rem!important}

/* Completar: icono destacado sin bloque de fondo. */
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;background:transparent!important;color:#16a34a!important;box-shadow:none!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon svg{width:1.35rem!important;height:1.35rem!important;color:#16a34a!important;stroke:#16a34a!important}

/* Completar: check directo, legible y sin superficie de hover. */
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:hover,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:focus{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;background:transparent!important;color:#16a34a!important;box-shadow:none!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon svg{width:1.45rem!important;height:1.45rem!important;color:#16a34a!important;stroke:#16a34a!important;stroke-width:3!important}

/* Accion Completar: boton circular compacto con check blanco visible. */
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:hover,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:focus{display:grid!important;place-items:center!important;width:1.5rem!important;min-width:1.5rem!important;max-width:1.5rem!important;height:1.5rem!important;min-height:1.5rem!important;max-height:1.5rem!important;padding:0!important;border-radius:9999px!important;background:#16a34a!important;color:#fff!important;box-shadow:none!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col:hover{background:#15803d!important}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon,.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-icon svg{width:1rem!important;height:1rem!important;color:#fff!important;stroke:#fff!important;stroke-width:3!important}

/* El icono de completar debe permanecer centrado dentro de su boton. */
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col .fi-ta-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col .fi-ta-icon svg {
    display: block !important;
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    transform: none !important;
}

.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col { position: relative !important; }
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col .fi-ta-icon {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}
.fi-resource-tasks .fi-ta-table tbody tr:not(.fi-ta-group-header-row) td.atenea-task-complete-cell .fi-ta-col .fi-ta-icon svg {
    position: absolute !important;
    left: .25rem !important;
    top: .25rem !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* Las filas agrupadas no requieren marcador previo al título. */
.fi-resource-tasks .fi-ta-row:not(.fi-ta-group-header-row):has(.fi-ta-record-checkbox[data-group]) > td:nth-child(3)::before {
    content: none !important;
    display: none !important;
}

/* Sistema de botones KERIA: acciones disponibles, secundarias, destructivas y bloqueadas. */
.fi-main .fi-btn.fi-color-success:not([disabled]):not(.fi-disabled),
.fi-main .fi-btn.fi-color-primary:not([disabled]):not(.fi-disabled) {
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
    box-shadow:0 1px 2px rgb(37 99 235 / .22) !important;
}
.fi-main .fi-btn.fi-color-success:not([disabled]):not(.fi-disabled):hover,
.fi-main .fi-btn.fi-color-primary:not([disabled]):not(.fi-disabled):hover {
    background:#1d4ed8 !important;
    border-color:#1d4ed8 !important;
}
.fi-main .fi-btn.fi-color-success:not([disabled]):not(.fi-disabled) .fi-btn-label,
.fi-main .fi-btn.fi-color-success:not([disabled]):not(.fi-disabled) .fi-icon,
.fi-main .fi-btn.fi-color-primary:not([disabled]):not(.fi-disabled) .fi-btn-label,
.fi-main .fi-btn.fi-color-primary:not([disabled]):not(.fi-disabled) .fi-icon {
    color:#ffffff !important;
}
.fi-main .fi-btn.fi-color-gray:not([disabled]):not(.fi-disabled) {
    background:#ffffff !important;
    border:1px solid #93c5fd !important;
    color:#1d4ed8 !important;
    box-shadow:none !important;
}
.fi-main .fi-btn.fi-color-gray:not([disabled]):not(.fi-disabled):hover {
    background:#eff6ff !important;
    border-color:#2563eb !important;
}
.fi-main .fi-btn.fi-color-gray:not([disabled]):not(.fi-disabled) .fi-btn-label,
.fi-main .fi-btn.fi-color-gray:not([disabled]):not(.fi-disabled) .fi-icon {
    color:#1d4ed8 !important;
}
/* Sin permiso: gris inequívoco, sin transparencia que lo confunda con una acción disponible. */
.fi-main .fi-btn[disabled],
.fi-main .fi-btn.fi-disabled {
    background:#e2e8f0 !important;
    border:1px solid #cbd5e1 !important;
    color:#64748b !important;
    opacity:1 !important;
    box-shadow:none !important;
    cursor:not-allowed !important;
}
.fi-main .fi-btn[disabled] .fi-btn-label,
.fi-main .fi-btn[disabled] .fi-icon,
.fi-main .fi-btn.fi-disabled .fi-btn-label,
.fi-main .fi-btn.fi-disabled .fi-icon {
    color:#64748b !important;
}
