/* Eficuentas: shared identity. Semantic status colors retain their meaning. */
@font-face{font-family:MC;src:url('./miga-ui.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--miga-forest:#123F61;--miga-ink:#123F61;--miga-muted:#536B7D;--miga-bread:#FFD047;--miga-bread-hover:#F6C438;--miga-bread-light:#FFF1B5;--miga-page:#F3FAFE;--miga-surface:#FFF;--miga-soft:#F4FAFE;--miga-border:#D5E4ED;--miga-subtle:#E9F4FB;--ink:#123F61;--muted:#536B7D;--accent:#FFD047;--cream:#F3FAFE;--line:#D5E4ED}
html,body{background:#F3FAFE;color:#123F61;font-family:MC,system-ui,sans-serif}
h1,h2,h3,h4,input,select,textarea,button,.button,.primary{font-family:MC,system-ui,sans-serif}
body>aside,#appsidebar,.mobile-menu-bar{background:#123F61;color:#FFF}
.brand{gap:9px;align-items:center}.brand .brand-mark{width:62px;height:62px;object-fit:contain;margin:0}.brand>span{font-family:MC,system-ui,sans-serif;font-size:22px;letter-spacing:-.8px;line-height:1.1;color:white;font-weight:800}.brand small{font-family:MC,system-ui,sans-serif;font-size:10px;letter-spacing:2px;display:block;color:#C9EBFC;margin-top:7px}
#navtoggle,#nav button,button.primary,.button.primary,a.primary{background:#FFD047;color:#123F61;border-color:#FFD047;font-weight:800}
#nav button.active,#nav button[aria-current=page]{background:#FFF1B5;color:#123F61;border-color:#FFD047}
#nav button:hover,#navtoggle:hover,button.primary:hover,a.primary:hover{background:#F6C438;color:#123F61}
button,.button{border-radius:12px;font-weight:700}#app button,#app a.primary{font-family:MC,system-ui,sans-serif!important}#appsidebar .asidefoot,#appsidebar .asidefoot small{color:#C5E3F3}.brand>span{min-width:0}
main>header h1,.card h2,.card h3{color:#123F61}.eyebrow{color:#536B7D}.hero{background:#E2F3FD;color:#123F61}.card,details,fieldset{border-color:#D5E4ED}
input,select,textarea{border-color:#BDCFDC;color:#123F61;background:#FFF}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #29A6DF;outline-offset:3px}
footer,.muted{color:#536B7D}.miga-access{text-align:center}.miga-access .miga-access-logo,.installation-logo{width:min(100%,310px);height:auto;object-fit:contain;margin:12px auto 28px}.installation-shell{background:#F3FAFE}
.device-lock-screen,.miga-startup-screen{background:#F3FAFE!important;color:#123F61!important}
.miga-unlock-media{display:flex;align-items:center;justify-content:center;padding:40px 24px 210px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 40%,#DDF3FF 0,transparent 65%)}
.miga-unlock-media .mc-intro-logo,.miga-startup-screen .mc-intro-logo{position:static!important;inset:auto!important;width:min(82vw,540px)!important;height:auto!important;max-height:42vh;object-fit:contain!important}
.miga-startup-screen{display:flex;align-items:center;justify-content:center}.miga-unlock-footer{background:linear-gradient(0deg,#F3FAFE 82%,#F3FAFE00)!important;color:#123F61;padding-bottom:max(30px,env(safe-area-inset-bottom))}.miga-unlock-footer p{color:#536B7D}.miga-unlock-actions button{background:#FFD047!important;color:#123F61!important;border:1px solid #EABF3E!important;font-family:MC,system-ui,sans-serif!important;min-height:60px;font-size:16px;font-weight:800;border-radius:14px}.miga-unlock-actions button:hover{background:#F6C438!important}
.mc-brand-loop{animation:mc-breathe 3s ease-in-out infinite}.mc-brand-once{animation:mc-arrive .65s ease-out both}@keyframes mc-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes mc-arrive{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.admin-body{background:#F3FAFE}.admin-brand-logo{width:215px;height:auto;margin-bottom:28px}.admin-header h1{color:#123F61}.admin-pilot,.admin-notifications{background:#E9F6FE;border-color:#C4E3F5}.admin-main button.primary{background:#FFD047;color:#123F61}
@media(max-width:700px){.brand .brand-mark{width:52px;height:52px}.brand>span{font-size:19px}.brand small{font-size:9px}.mobile-menu-bar{gap:8px}#navtoggle{font-size:14px;padding:10px 13px;min-height:46px}.miga-unlock-media{padding-bottom:240px}.miga-unlock-footer{padding-left:24px;padding-right:24px}}
@media(prefers-reduced-motion:reduce){.mc-brand-loop,.mc-brand-once{animation:none}}
.miga-unlock-footer{text-shadow:none}.miga-unlock-media::after{display:none}
th{background:#EDF7FD}.productactions>summary{font-family:MC,system-ui,sans-serif;border-color:#BDCFDC}.productactions[open]>summary{background:#FFF1B5}.installation-page{background:#F3FAFE;color:#123F61}.installation-note{color:#536B7D}
#notice:not(:empty):not([data-tone]){background:#E9F6FE;border-color:#C5E2F3;color:#123F61}#appsidebar[data-menu-open] #nav{background:#123F61}.assistant-metrics>div,.reparto-address{background:#EDF7FD;border-color:#D5E4ED}#supplypreview:not(:empty),#costpreview:not(:empty),#assistant-order-total:not(:empty){background:#EDF7FD;border-color:#C5E2F3}
.app-exit-help{width:min(440px,calc(100% - 32px));box-sizing:border-box;border:1px solid #C5E2F3;border-radius:22px;padding:26px;background:#F3FAFE;color:#123F61;box-shadow:0 20px 70px #123F6140}.app-exit-help::backdrop{background:#123F6180}.app-exit-help h2{margin-top:0;font-size:1.4rem}.app-exit-help p{line-height:1.55}.app-exit-help button{width:100%}

.summary-trend{margin-bottom:28px}.summary-trend-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.summary-trend-heading h2{margin:8px 0 12px;font-size:1.65rem}.summary-trend-heading label{min-width:165px}.summary-trend-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 24px;margin:16px 0}.summary-trend-total strong{font-size:clamp(1.6rem,5vw,2.35rem);color:#123F61}.summary-trend-total span{color:#536B7D;font-size:.9rem}.summary-trend details{padding:12px 0;border:0;box-shadow:none;background:transparent}.summary-trend summary{cursor:pointer;font-weight:700}.summary-trend-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.summary-chart-wrap{margin:20px -8px 0}.summary-chart{display:block;width:100%;height:auto;min-height:165px;overflow:visible}.summary-chart text{fill:#536B7D;font:12px MC,system-ui,sans-serif}.summary-chart-grid{stroke:#D5E4ED;stroke-width:1}.summary-chart-area{fill:#29A6DF18}.summary-chart-line{fill:none;stroke:#1784BA;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.summary-chart-dot{fill:#123F61;stroke:#FFF;stroke-width:1.5}.summary-chart-note{font-size:.85rem;line-height:1.5;margin-bottom:0}.summary-chart-data .tablewrap{overflow:auto}.summary-chart-data th,.summary-chart-data td{white-space:nowrap;font-size:.85rem}.summary-chart-data caption{text-align:left;padding:12px 0;color:#536B7D}.summary-trend select{width:100%}@media(max-width:600px){.summary-trend-heading{display:block}.summary-trend-heading label{display:block;max-width:none}.summary-trend-total{display:block}.summary-trend-total span{display:block;margin-top:6px}.summary-chart-wrap{margin-left:-16px;margin-right:-16px}.summary-chart{min-height:145px}.summary-trend-actions button{width:100%}}

@media(max-width:600px){.summary-chart text{font-size:14px}.summary-chart-wrap{margin-top:12px}.summary-chart{min-height:190px}}
