.agenda-pilot{color:#e7edf9;max-width:100%;padding:8px 0 24px}.agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.agenda-heading h2{font-size:1.65rem;margin:7px 0}.agenda-heading p{color:#aebed5}.agenda-warning{padding:13px 16px;border:1px solid #d9a94566;border-radius:12px;background:#382b173b;color:#f6d791}.agenda-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.agenda-toolbar label,.agenda-dialog label{display:grid;gap:6px;font-size:.83rem;color:#b9cae2;min-width:160px;flex:1}.agenda-pilot input:not([type=checkbox]),.agenda-pilot select,.agenda-dialog input,.agenda-dialog select{box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;background:#091529;color:#eef6ff;border:1px solid #496480;border-radius:8px;font:inherit}.agenda-pilot input:focus,.agenda-pilot select:focus,.agenda-dialog input:focus,.agenda-dialog select:focus{outline:2px solid #59e1d5;outline-offset:2px}.agenda-pilot input[type=checkbox]{width:18px;height:18px;accent-color:#55dccc}.agenda-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.agenda-stats>div{background:linear-gradient(120deg,#14263e,#0d1a2b);border:1px solid #35526f;border-radius:12px;padding:15px}.agenda-stats span{display:block;font-size:.8rem;color:#aebed5}.agenda-stats strong{font-size:1.4rem;display:block;margin-top:7px}.agenda-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.agenda-actions>span{font-size:.8rem;color:#acbcd3;margin-left:auto}.agenda-notice{min-height:1.4em;color:#8ee8dc}.agenda-table-scroll{overflow:auto;border:1px solid #354b67;border-radius:12px;background:#091525}.agenda-table{border-collapse:collapse;width:100%;min-width:1220px;font-size:.86rem}.agenda-table th{background:#172940;color:#bcd2ee;text-align:left;white-space:nowrap;padding:13px 10px}.agenda-table td{padding:12px 10px;border-bottom:1px solid #26394f;vertical-align:middle}.agenda-table tbody tr:nth-child(even){background:#102037}.agenda-table td:nth-child(3){min-width:190px;max-width:240px;overflow-wrap:anywhere}.agenda-table td small{display:block;font-size:.72rem;color:#a4b5ce;margin-top:5px;line-height:1.4}.agenda-table td:last-child .btn{display:block;margin:4px 0;min-width:65px;padding:7px 10px}.agenda-photo{height:84px;width:84px;display:grid;place-items:center;border:1px dashed #5f7b9d;border-radius:10px;background:#182c43;color:#b9d3ee;cursor:pointer;padding:3px}.agenda-photo img{width:100%;height:100%;max-height:76px;object-fit:contain;border-radius:6px}.agenda-photo>span{font-size:1.2rem}.agenda-photo small{font-size:.65rem!important}.agenda-photo.is-dragging{outline:3px solid #66efda;background:#244f57}.agenda-abono{color:#8de4cd}.agenda-debt{color:#ffc583}.agenda-paid{color:#85e0b7}.agenda-status{display:inline-block;border:1px solid #4a6282;background:#1b304b;border-radius:20px;padding:5px 10px;white-space:nowrap}.agenda-help{font-size:.8rem;color:#adbed4;line-height:1.5}.agenda-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-height:88vh;overflow:auto;background:#101e32;color:#eef4ff;border:1px solid #58799d;border-radius:18px;padding:24px;box-shadow:0 20px 100px #0009}.agenda-dialog::backdrop{background:#020711c9}.agenda-dialog h2{padding-right:25px;font-size:1.3rem}.agenda-dialog p,.agenda-dialog li{font-size:.9rem;line-height:1.5;color:#bdcde3}.agenda-dialog ul{max-height:34vh;overflow:auto;padding-left:22px}.agenda-dialog .btn{margin-top:12px}.agenda-dialog [data-error]{color:#ffb5a9}.agenda-close{position:absolute;right:14px;top:10px;font-size:28px;border:0;background:transparent;color:#dce8fa;cursor:pointer}.agenda-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.agenda-form p,.agenda-form>button{grid-column:1/-1}.agenda-large-photo{max-width:100%;max-height:50vh;display:block;margin:auto;object-fit:contain}.agenda-upload{margin-top:16px}.agenda-client-results{display:flex;gap:8px;flex-wrap:wrap}.agenda-pilot [hidden]{display:none!important}@media(max-width:650px){.agenda-heading{align-items:flex-start;flex-direction:column}.agenda-stats{grid-template-columns:1fr 1fr}.agenda-stats strong{font-size:1.15rem}.agenda-toolbar label{min-width:140px}.agenda-actions>span{width:100%;margin-left:0}.agenda-form{grid-template-columns:1fr}.agenda-dialog{padding:18px}.agenda-table-scroll{max-width:calc(100vw - 36px)}}
/* Private agenda v296: logistics color covers the entire row, independent of debt. */
.agenda-heading h2 small{font-size:.72rem;border:1px solid #6d849e;border-radius:20px;padding:4px 9px;vertical-align:middle;color:#bed1e8}.agenda-modes{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.agenda-modes button{background:#14263c;color:#bed1e7;border:1px solid #46607d;border-radius:9px;padding:10px 16px;cursor:pointer;font:inherit}.agenda-modes button.active{background:#87e2d2;color:#102f32;border-color:#9af9e7;font-weight:800}.agenda-table tbody tr.agenda-bought{background:#101e31}.agenda-table tbody tr.agenda-arrived{background:#d9efdd;color:#193b27}.agenda-table tbody tr.agenda-delivered{background:#ffe0bf;color:#51321d}.agenda-table tbody tr.agenda-arrived td,.agenda-table tbody tr.agenda-delivered td{border-bottom-color:#aec9b5}.agenda-table tbody tr.agenda-arrived small{color:#365844}.agenda-table tbody tr.agenda-delivered small{color:#745138}.agenda-table tbody tr.agenda-arrived .agenda-status{background:#b8dfc0;color:#163d25;border-color:#7db08a}.agenda-table tbody tr.agenda-delivered .agenda-status{background:#ffd1a0;color:#663b16;border-color:#d9a46c}.agenda-table tbody tr.agenda-arrived .btn,.agenda-table tbody tr.agenda-delivered .btn{background:#ffffffb8;color:#263e38;border-color:#779d8e}.agenda-table a{display:block;color:#85dff4;font-size:.78rem;margin-top:6px;max-width:220px;overflow-wrap:anywhere}.agenda-table .agenda-arrived a,.agenda-table .agenda-delivered a{color:#114a79}.agenda-money{display:inline-block;border-radius:18px;padding:5px 9px;font-size:.78rem;white-space:nowrap;font-weight:750;background:#263c52;color:#dce9fa}.agenda-money.agenda-abono{background:#c7ecd2;color:#125731;border:1px solid #68b285}.agenda-money.agenda-debt{background:#ffe0e0;color:#a32222;border:1px solid #d98b8b}.agenda-money.agenda-credit{background:#d8eaff;color:#144e9a;border:1px solid #7da7dc}.agenda-money.agenda-paid{background:#d5eedb;color:#1b6238;border:1px solid #8abd9a}.agenda-history,.agenda-copy-code,.agenda-client-link{display:block;background:transparent;border:0;cursor:pointer;text-align:left;color:inherit;text-decoration:underline;padding:5px 0;font:inherit;font-size:.76rem}.agenda-client-link{font-size:.85rem;font-weight:750;max-width:150px}.agenda-table td:nth-child(3){max-width:240px}.agenda-table td{max-width:260px}.agenda-candidate{border:1px dashed currentColor;padding:4px;border-radius:5px;max-width:150px}.agenda-payment-history article{padding:13px 0;border-bottom:1px solid #456078;line-height:1.6}.agenda-payment-history article small{display:block;color:#bfd0e4}.agenda-payment-history .agenda-abono{display:inline-block;background:#c7ecd2;color:#125731;border-radius:16px;padding:3px 8px}.agenda-annulled{text-decoration:line-through;color:#aeb7c8}.agenda-dialog li small{display:block;color:#a8bad3}.agenda-dialog [data-show-candidates]{margin-left:8px}.agenda-toolbar>.btn{align-self:end;min-height:42px}.agenda-pilot .agenda-table{min-width:1300px}.agenda-pilot .agenda-warning{font-size:.83rem;margin:10px 0}.agenda-pilot .agenda-heading p{margin:0}@media(max-width:650px){.agenda-modes button{flex:1;min-width:130px}.agenda-toolbar>.btn{width:100%}.agenda-table-scroll{max-width:100%}.agenda-pilot .agenda-actions .btn{min-height:42px}.agenda-modes{gap:8px}}

/* Isolate from the site-wide mobile nav height. */
.agenda-pilot .agenda-modes{height:auto;min-height:0;order:initial;align-self:auto;width:100%}
.agenda-invite-token{display:block;font-size:1rem;overflow-wrap:anywhere;padding:14px;background:#071324;border:1px solid #547591;border-radius:10px;user-select:all}.agenda-dialog .agenda-duplicate{display:flex;align-items:center;gap:8px;grid-column:1/-1}.agenda-dialog .agenda-duplicate[hidden]{display:none}.agenda-dialog .agenda-duplicate input{width:20px;min-height:20px}.agenda-dialog [data-phone-warning]{color:#ffd692}

.agenda-table tbody tr.agenda-cancelled{background:#fbdada;color:#711e27}.agenda-table tbody tr.agenda-cancelled td{border-bottom-color:#d59ca4}.agenda-table tbody tr.agenda-cancelled small{color:#813540}.agenda-table tbody tr.agenda-cancelled .agenda-status{background:#f3b8c1;color:#791c2a;border-color:#c36d7a}.agenda-table tbody tr.agenda-cancelled .btn{background:#fff7f7;color:#711e27;border-color:#c77d88}.agenda-table tbody tr.agenda-cancelled a{color:#812637}

.agenda-wallet{padding:16px;border:1px solid #7199c5;border-radius:12px;background:#152c45;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}.agenda-wallet strong{display:block;font-size:1.5rem;color:#badaff;margin:5px 0}.agenda-wallet small{display:block;color:#c7d8e9;max-width:440px}.agenda-wallet .agenda-actions{margin:0}.agenda-wallet .btn{min-height:44px}.agenda-dialog input[type=number]{font-size:16px}@media(max-width:650px){.agenda-wallet{flex-direction:column;align-items:stretch}.agenda-wallet .agenda-actions{display:flex;flex-direction:column}.agenda-wallet .btn{width:100%}}

/* Excel paste stays local until explicit batch confirmation. */
.agenda-import-controls{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.agenda-import-controls label{flex:1 1 180px;display:grid;gap:5px}.agenda-dialog textarea[data-import-paste]{display:block;width:100%;box-sizing:border-box;min-height:150px;font:16px sans-serif}.agenda-import-table input{min-width:130px;font-size:16px;max-width:220px}.agenda-import-table [data-field=link]{min-width:240px}.agenda-import-table td[data-row-errors]{min-width:180px;color:#b42318}.agenda-import-controls input,.agenda-import-controls select{min-height:44px;font-size:16px;max-width:100%;box-sizing:border-box}@media(max-width:600px){.agenda-import-controls{display:grid;grid-template-columns:1fr}.agenda-dialog [data-import-confirm],.agenda-dialog [data-import-read],.agenda-dialog [data-import-map],.agenda-dialog [data-import-review]{width:100%;min-height:46px}}
.agenda-dialog .agenda-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #405a79;border-radius:8px;margin:14px 0}.agenda-dialog .agenda-table-wrap table{border-collapse:collapse;width:max-content;min-width:100%;font-size:.85rem}.agenda-dialog .agenda-table-wrap th,.agenda-dialog .agenda-table-wrap td{padding:9px;white-space:nowrap;text-align:left}.agenda-dialog .agenda-table-wrap th{background:#172940}.agenda-dialog .agenda-table-wrap td[data-row-errors]{white-space:normal;color:#ffb5a9;max-width:240px}.agenda-dialog textarea[data-import-paste]{padding:10px;background:#091529;color:#eef6ff;border:1px solid #496480;border-radius:8px}.agenda-dialog [data-import-header]{width:22px;min-height:22px;justify-self:start}

.agenda-order-list{max-height:48vh;overflow:auto}.agenda-order-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #405a79}.agenda-order-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.agenda-order-row small{display:block;color:#b9cae2;font-size:.8rem;margin-top:4px}.agenda-order-row .btn,.agenda-order-handle{min-width:44px;min-height:44px;margin:0!important}.agenda-order-handle{touch-action:none;user-select:none;cursor:grab;background:#213e59;border:1px solid #5c7a98;border-radius:8px;color:#eef4ff;font-size:24px}.agenda-order-handle:active{cursor:grabbing}.agenda-order-row .btn{padding:8px}.agenda-dialog [data-order-state]{color:#a4efda}@media(max-width:600px){.agenda-order-row{gap:5px;font-size:.85rem}.agenda-order-handle{min-width:44px}.agenda-dialog [data-order-save],.agenda-dialog [data-order-cancel]{width:100%;min-height:44px}}

.agenda-shipping-badge{display:inline-block!important;width:fit-content;padding:3px 8px;border:1px solid currentColor;border-radius:12px;font-weight:650}.agenda-client-phone{max-width:100%;overflow-wrap:anywhere;font-size:.85rem}.agenda-toolbar [data-copy-phone]{min-height:44px}.agenda-dialog [data-copy-phone-fallback]{width:100%;min-height:44px;font-size:18px}.agenda-dialog [data-shipping-policy],.agenda-dialog [data-shipping-preview]{grid-column:1/-1}.agenda-dialog [data-shipping-box-warning]{grid-column:1/-1;color:#f7c68c}

.agenda-conflict-review{grid-column:1/-1;padding:14px;border:1px solid #d6a862;border-radius:10px;background:#152a3a}.agenda-conflict-review th,.agenda-conflict-review td{padding:8px;overflow-wrap:anywhere;vertical-align:top}.agenda-conflict-review .btn{min-height:44px;margin:6px 6px 0 0}.agenda-conflict-review h3{font-size:1rem}
.agenda-conflict-review{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}.agenda-conflict-review .agenda-table-wrap{min-width:0;max-width:100%;overflow-x:auto}.agenda-conflict-review table{min-width:0;width:100%;table-layout:fixed}.agenda-conflict-review .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}@media(max-width:600px){.agenda-conflict-review{padding:10px}.agenda-conflict-review th,.agenda-conflict-review td{padding:6px;font-size:.8rem}.agenda-conflict-review .btn{width:100%;margin-right:0}}

.agenda-global{margin:16px 0;padding:18px;border:1px solid #52778f;border-radius:14px;background:#14273d}.agenda-global-main{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.agenda-global-main>div>span{display:block;color:#c3d5ea;font-size:.9rem}.agenda-global-main>div>strong{display:block;font-size:1.8rem;color:#ffb5a9;margin-top:5px}.agenda-global-secondary{display:flex;gap:12px 24px;flex-wrap:wrap;color:#bdcfe4;font-size:.86rem}.agenda-global-secondary strong{color:#eef6ff}.agenda-debtors{list-style:none;margin:16px 0;padding:0;max-height:60vh;overflow:auto}.agenda-debtors li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #35526f}.agenda-debtors li>span{flex:1;min-width:140px}.agenda-debtors small{display:block;color:#b9cae2}.agenda-debtors li>strong{color:#ffb5a9}

.agenda-table .agenda-article-text{display:block;margin-top:6px;font-size:1rem;line-height:1.45;overflow-wrap:anywhere;color:inherit}

.agenda-coupon {font-size:.8rem;margin-top:.25rem;}
.agenda-coupon summary {cursor:pointer;color:#25664b;}

@media(min-width:651px){.agenda-text-field{grid-column:1}.agenda-coupon-field{grid-column:2}}

/* Abonos stay compact; their panel lives in the browser top layer, outside table overflow. */
.order-abonos-toggle{font:inherit;font-weight:700;color:#137d56;background:transparent;border:1px solid currentColor;border-radius:8px;min-height:44px;padding:6px 10px;white-space:nowrap;cursor:pointer}.order-abonos-toggle:focus-visible{outline:3px solid #398ceb;outline-offset:2px}.order-abonos-panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px);overflow:auto;padding:16px;border:1px solid #54777c;border-radius:12px;background:#fff;color:#17363b;box-shadow:0 8px 32px #0004;font:16px/1.5 system-ui;white-space:normal}.order-abonos-panel header,.order-abonos-panel li{display:flex;justify-content:space-between;gap:12px}.order-abonos-panel header>strong,.order-abonos-panel li>span{min-width:0;overflow-wrap:anywhere}.order-abonos-panel button{min-width:44px;min-height:44px;font:inherit;cursor:pointer;flex-shrink:0}.order-abonos-panel ul{list-style:none;padding:0;margin:12px 0}.order-abonos-panel li{padding:8px 0;border-bottom:1px solid #d5e2e5}.order-abonos-panel li>strong{white-space:nowrap}.order-abonos-panel small{display:block;font-size:14px;color:#476167}.order-abonos-panel footer{margin-bottom:8px}.order-abonos-panel::backdrop{background:#0003}

.order-abonos-panel [hidden]{display:none!important}.order-abonos-panel [data-abonos-history-toggle]{margin-top:10px;max-width:100%;white-space:normal}.order-abonos-panel [data-abonos-history]{overflow-wrap:anywhere}.order-abonos-panel .jpo-movement{padding:8px 0;border-bottom:1px solid #d5e2e5}.order-abonos-panel .jpo-movement p{margin:0 0 4px}.order-abonos-panel .jpo-annulled{color:#647176}
/* The history popover has a light surface, independent of the surrounding dark table. */
dialog.order-abonos-panel [data-abonos-history],dialog.order-abonos-panel [data-abonos-history] p{color:#17363b}
dialog.order-abonos-panel [data-abonos-history] .jpo-movement small{color:#476167}
dialog.order-abonos-panel [data-abonos-history] .jpo-annulled{color:#476167;opacity:1}

/* One transitional previous-weight debt, separate from article logistics. */
.agenda-table .agenda-legacy-weight{background:#fff5df;color:#4e3b16}.agenda-table .agenda-legacy-weight td{border-bottom-color:#d8c9a9}

/* Financial emphasis stays in the existing columns, with no amount badges. */
.agenda-table{--order-cost:#7dd3fc;--order-payment:#6ee7a0;--order-debt:#ff8c94;--order-credit:#86c5ff;--order-neutral:#d5dce7;--order-adjustment:#67e8f9;--order-muted:#bac6d6}
.agenda-table .agenda-arrived,.agenda-table .agenda-delivered,.agenda-table .agenda-cancelled,.agenda-table .agenda-legacy-weight:nth-child(odd){--order-cost:#075f80;--order-payment:#146c43;--order-debt:#b42332;--order-credit:#1558a6;--order-neutral:#425466;--order-adjustment:#09626f;--order-muted:#52606d}
.agenda-table .agenda-cost{display:block;white-space:nowrap;font-size:inherit;font-weight:800;color:var(--order-cost)}
.agenda-table .agenda-money{padding:0;border:0;border-radius:0;background:transparent;font-size:inherit;font-weight:800}
.agenda-table .agenda-money.agenda-debt{color:var(--order-debt)}
.agenda-table .agenda-money.agenda-credit{color:var(--order-credit)}
.agenda-table .agenda-money.agenda-paid{color:var(--order-neutral)}
.agenda-table .order-abonos-toggle,.agenda-table .order-abonos-zero{font-weight:800;color:var(--order-payment)}
.agenda-table .order-abonos-toggle{padding:6px 11px;border:0;border-radius:0;background:transparent;min-height:44px}
.agenda-table td .agenda-weight{font-weight:600}
.agenda-table td .agenda-weight.agenda-weight-amount{color:var(--order-adjustment)}
.agenda-table td .agenda-weight.agenda-weight-pending{color:var(--order-muted)}
.agenda-table .agenda-coupon{font-size:.72rem;margin-top:4px}
.agenda-table .agenda-coupon summary{color:var(--order-muted);font-weight:500}

/* Customer visibility stays secondary to the existing order controls. */
.agenda-table .agenda-hidden-note{color:var(--order-muted);font-size:11px;font-weight:500}
.agenda-table .agenda-visibility-menu{margin-top:5px;color:var(--order-muted);max-width:180px}
.agenda-visibility-menu>summary{cursor:pointer;list-style:none;font-size:18px;line-height:1;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;width:max-content;border-radius:5px}
.agenda-visibility-menu>summary:focus-visible{outline:2px solid #0284c7;outline-offset:2px}
.agenda-table .agenda-visibility-menu[open]{padding:4px;background:transparent;border:1px solid currentColor;border-radius:6px}
.agenda-table .agenda-visibility-menu button,.agenda-table .agenda-visibility-menu small{color:var(--order-muted);white-space:normal;text-align:left}
.agenda-table .agenda-visibility-menu button{min-height:44px}
.agenda-table .agenda-visibility-menu button:disabled{opacity:1;cursor:not-allowed;text-decoration:none}
