.aey-r73-modal{position:fixed;inset:0;z-index:23000;display:grid;place-items:center;padding:18px;background:rgba(7,31,49,.42);backdrop-filter:blur(2px)}
.aey-r73-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #cbdce8;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(4,33,54,.30);font-family:Montserrat,Arial,sans-serif;color:#173a53}
.aey-r73-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dbe6ee;background:#f8fbfd}
.aey-r73-dialog header small{display:block;color:#0e568f;font-size:10px;font-weight:800;letter-spacing:.12em}.aey-r73-dialog h2{margin:3px 0 0;color:#092f4d;font-size:20px}.aey-r73-dialog header p{margin:5px 0 0;color:#688094;font-size:11px}.aey-r73-dialog header button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:#eaf2f7;color:#31536a;cursor:pointer}.aey-r73-dialog svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aey-r73-dialog form{padding:18px 20px}.aey-r73-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aey-r73-form-grid label{display:grid;gap:5px;color:#173d58;font-size:11px;font-weight:700}.aey-r73-form-grid .span-2{grid-column:1/-1}.aey-r73-form-grid input,.aey-r73-form-grid textarea,.aey-r73-form-grid select{box-sizing:border-box;width:100%;border:1px solid #c7d8e4;border-radius:9px;background:#fff;color:#183b54;padding:10px 11px;font:inherit;outline:0}.aey-r73-form-grid input:focus,.aey-r73-form-grid textarea:focus,.aey-r73-form-grid select:focus{border-color:#0e568f;box-shadow:0 0 0 3px rgba(14,86,143,.10)}.aey-r73-check{align-content:center;grid-template-columns:auto 1fr!important;align-items:center;padding-top:20px}.aey-r73-check input{width:17px!important;height:17px}.aey-r73-callout{margin-top:14px;padding:10px 12px;border:1px solid #cfe1ee;border-radius:9px;background:#eef7fd;color:#365b74;font-size:10px;line-height:1.5}.aey-r73-dialog footer{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.aey-r73-dialog footer button{display:inline-flex;align-items:center;gap:7px;border:1px solid #cbdce8;border-radius:9px;padding:9px 14px;font-weight:750;cursor:pointer}.aey-r73-dialog footer .light{background:#fff;color:#31536a}.aey-r73-dialog footer .primary{background:#0e568f;border-color:#0e568f;color:#fff}.aey-r73-dialog footer button:disabled{opacity:.55;cursor:wait}.aey-r73-toast{position:fixed;right:92px;top:78px;z-index:24000;max-width:420px;transform:translateY(-12px);opacity:0;pointer-events:none;padding:11px 14px;border:1px solid #a7d7be;border-radius:10px;background:#eaf8f0;color:#17683f;box-shadow:0 10px 28px rgba(10,48,74,.16);font:700 11px Montserrat,Arial,sans-serif;transition:.18s}.aey-r73-toast.show{transform:none;opacity:1}.aey-r73-toast.error{border-color:#efb8bb;background:#fff0f1;color:#a02f36}.aey-r73-modal-open{overflow:hidden}
.aey-delivery-card-actions button svg,.aey-deliveries-commandbar button svg,.aey-delivery-modal svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.aey-delivery-card-actions button{display:grid!important;place-items:center!important}.aey-delivery-card-name{font-size:13px!important}.aey-delivery-card-number{font-size:9px;color:#7a8d9d}.aey-delivery-edit-modal .aey-r73-dialog{width:min(760px,calc(100vw - 28px))}
@media(max-width:680px){.aey-r73-form-grid{grid-template-columns:1fr}.aey-r73-form-grid .span-2{grid-column:auto}.aey-r73-dialog form,.aey-r73-dialog>header{padding:15px}.aey-r73-toast{right:12px;left:12px;top:70px;max-width:none}}

html[data-aey-cash-r73="1"] .cash-book-shell,
html[data-aey-cash-r73="1"] .cash-book-shell button,
html[data-aey-cash-r73="1"] .cash-book-shell input,
html[data-aey-cash-r73="1"] .cash-book-shell select{font-size:13px}
html[data-aey-cash-r73="1"] .cash-entry-row strong{font-size:14px}
html[data-aey-cash-r73="1"] .cash-entry-row small{font-size:12px}
html[data-aey-cash-r73="1"] .cash-book-summary strong{font-size:15px}

/* R73 · Plantillas versionadas de presupuesto */
.settings-react-nav [data-aey-budget-templates-nav] svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.aey-budget-templates-settings{display:grid;gap:18px;color:#173a53}
.aey-budget-template-toolbar{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(220px,1fr) auto;gap:12px;align-items:end;padding:16px;border:1px solid #d5e2eb;border-radius:14px;background:#f8fbfd}
.aey-budget-template-toolbar label{display:grid;gap:6px;font-size:11px;font-weight:750;color:#31536a}
.aey-budget-template-toolbar input,.aey-budget-template-toolbar select{min-height:39px;border:1px solid #c7d8e4;border-radius:9px;background:#fff;padding:8px 10px;font:600 12px Montserrat,Arial,sans-serif;color:#173a53}
.aey-budget-template-toolbar button{min-height:39px;white-space:nowrap}
.aey-budget-template-notice{padding:11px 13px;border:1px solid #bcd8ea;border-radius:10px;background:#edf7fd;color:#315d78;font-size:11px;line-height:1.55}
.aey-budget-template-group{display:grid;gap:10px}.aey-budget-template-group>h3{margin:0;color:#0b4775;font-size:14px}
.aey-budget-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aey-budget-template-card{display:grid;gap:12px;padding:14px;border:1px solid #d5e2eb;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(8,52,82,.04)}
.aey-budget-template-card.is-active{border-color:#68af89;box-shadow:0 0 0 2px rgba(44,148,91,.08)}
.aey-budget-template-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.aey-budget-template-card>header span{display:block;color:#6b8395;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.aey-budget-template-card h3{margin:3px 0 0;font-size:14px;color:#0a3555}.aey-budget-template-card>header b{padding:5px 8px;border-radius:999px;background:#eaf2f7;color:#325a74;font-size:9px;white-space:nowrap}.aey-budget-template-card.is-active>header b{background:#e8f7ef;color:#1d7045}
.aey-budget-template-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.aey-budget-template-card dl div{min-width:0}.aey-budget-template-card dt{font-size:9px;color:#7890a0}.aey-budget-template-card dd{overflow:hidden;margin:2px 0 0;color:#21465f;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.aey-template-health{display:flex;flex-wrap:wrap;gap:6px}.aey-template-health-pill{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid;border-radius:999px;font-size:9px;font-weight:800;line-height:1.2}.aey-template-health-pill.is-ok{border-color:#b7dec8;background:#edf9f2;color:#216b45}.aey-template-health-pill.is-bad{border-color:#efc0bb;background:#fff1ef;color:#9a3027}
.aey-budget-template-card footer{display:flex;justify-content:flex-end;gap:8px}.aey-budget-template-card footer a,.aey-budget-template-card footer button{border:1px solid #bfd2df;border-radius:8px;padding:8px 10px;font:750 10px Montserrat,Arial,sans-serif;text-decoration:none;cursor:pointer}.aey-budget-template-card footer .light{background:#fff;color:#31536a}.aey-budget-template-card footer .primary{border-color:#0e568f;background:#0e568f;color:#fff}
.aey-budget-template-empty,.aey-budget-template-error{padding:18px;border:1px dashed #c6d7e3;border-radius:12px;background:#fbfdfe;color:#668093;font-size:11px}.aey-budget-template-error button{margin-top:8px}
.aey-settings-loading{display:grid;gap:12px}.aey-settings-loading span{display:block;height:72px;border-radius:12px;background:linear-gradient(90deg,#edf3f7 25%,#f8fbfd 45%,#edf3f7 65%);background-size:240% 100%;animation:aeyTemplatePulse 1.2s linear infinite}.aey-settings-loading span:first-child{height:52px}.aey-settings-loading span:last-child{height:130px}@keyframes aeyTemplatePulse{to{background-position:-240% 0}}
@media(max-width:900px){.aey-budget-template-toolbar{grid-template-columns:1fr 1fr}.aey-budget-template-toolbar button{grid-column:1/-1}.aey-budget-template-grid{grid-template-columns:1fr}}
@media(max-width:620px){.aey-budget-template-toolbar{grid-template-columns:1fr}.aey-budget-template-toolbar button{grid-column:auto}.aey-budget-template-card dl{grid-template-columns:1fr}}

/* R73 CashAEY - pago agrupado de reembolsos */
.aey-r73-cash-batch-button{position:relative;color:#0e5790!important}
.aey-r73-cash-batch-button em{position:absolute;right:-2px;top:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#d83c41;color:#fff;font-size:9px;font-style:normal;font-weight:800;border:2px solid #fff}
.aey-r73-cash-batch-dialog{width:min(920px,calc(100vw - 28px))}
.aey-r73-cash-batch-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.aey-r73-cash-batch-controls label,.aey-r73-cash-batch-notes{display:grid;gap:6px;color:#173f5e;font-size:12px;font-weight:700}
.aey-r73-cash-batch-controls select,.aey-r73-cash-batch-controls input,.aey-r73-cash-batch-notes textarea{width:100%;min-height:40px;border:1px solid #cfdde7;border-radius:9px;padding:8px 10px;background:#fff;color:#173f5e;font:inherit;font-weight:500}
.aey-r73-cash-batch-list{display:grid;gap:7px;max-height:300px;overflow:auto;margin:14px 0;padding-right:3px}
.aey-r73-cash-batch-list label{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d7e3ec;border-radius:10px;background:#fff;cursor:pointer}
.aey-r73-cash-batch-list label:hover,.aey-r73-cash-batch-list label:has(input:checked){border-color:#17639a;background:#eef7fc}
.aey-r73-cash-batch-list label[hidden]{display:none}
.aey-r73-cash-batch-list input{width:17px;height:17px;accent-color:#0e5790}
.aey-r73-cash-batch-list span strong,.aey-r73-cash-batch-list span small{display:block}.aey-r73-cash-batch-list span strong{font-size:12px;color:#153d5a}.aey-r73-cash-batch-list span small{font-size:10px;color:#708491;margin-top:3px}.aey-r73-cash-batch-list b{font-size:12px;color:#0e5790}
.aey-r73-cash-batch-total{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:12px 14px;border-radius:10px;background:#edf6fb;color:#173f5e}.aey-r73-cash-batch-total span{font-size:11px}.aey-r73-cash-batch-total strong{font-size:14px}
html[data-aey-cash-r73="1"] .cash-day-group h3{font-size:12px!important;padding:8px 10px!important}
html[data-aey-cash-r73="1"] .cash-ledger-row{padding:11px 10px!important;min-height:52px}
html[data-aey-cash-r73="1"] .cash-ledger-main strong,html[data-aey-cash-r73="1"] .cash-ledger-money strong{font-size:13px!important}
html[data-aey-cash-r73="1"] .cash-ledger-main small,html[data-aey-cash-r73="1"] .cash-ledger-method,html[data-aey-cash-r73="1"] .cash-ledger-money small{font-size:11px!important;line-height:1.35}
html[data-aey-cash-r73="1"] .cash-totals-expanded{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html[data-aey-cash-r73="1"] .cash-totals-expanded span{font-size:10px!important;line-height:1.2;min-height:24px}
html[data-aey-cash-r73="1"] .cash-totals-expanded strong{font-size:12px!important}
@media(max-width:720px){.aey-r73-cash-batch-controls{grid-template-columns:1fr}.aey-r73-cash-batch-dialog{width:100%;max-height:94vh}.aey-r73-cash-batch-list{max-height:250px}html[data-aey-cash-r73="1"] .cash-totals-expanded{grid-template-columns:repeat(2,1fr)!important}html[data-aey-cash-r73="1"] .cash-totals-expanded>div:last-child{grid-column:1/-1}}

.aey-budget-template-editor-action{grid-template-columns:minmax(0,1fr) auto;align-items:center}.aey-budget-template-editor-action>div{display:grid;gap:5px}.aey-budget-template-editor-action strong{font-size:13px;color:#0a4775}.aey-budget-template-editor-action span{font-size:10px;line-height:1.55;color:#5c7789}.aey-budget-template-card footer:empty{display:none}
/* R81 · Formulario React nativo para cargar revisiones XLSX */
.aey-budget-template-upload{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(190px,1fr) minmax(230px,1.2fr) auto;gap:10px;align-items:center;padding:14px}
.aey-budget-template-upload input,.aey-budget-template-upload select{box-sizing:border-box;width:100%;min-width:0;height:39px;border:1px solid #c7d8e4;border-radius:9px;background:#fff;padding:8px 10px;color:#173a53;font:600 11px Montserrat,Arial,sans-serif}
.aey-budget-template-upload input[type=file]{padding:7px 9px}
.aey-budget-template-upload button{height:39px;white-space:nowrap}
.aey-template-source-note{align-self:center;color:#667f91;font-size:10px;font-weight:700}
@media(max-width:1050px){.aey-budget-template-upload{grid-template-columns:repeat(2,minmax(0,1fr))}.aey-budget-template-upload button{width:100%}}
@media(max-width:620px){.aey-budget-template-upload{grid-template-columns:1fr}}
