/* EMURA POS / Version B — common visual system for Developer Admin pages.
 * All controllers, methods, routes and form field names are unchanged. */
:root{--cream:#F3F7FC;--bg:#F3F7FC;--surface:#fff;--surface2:#FAFCFF;--panel:#fff;--line:#DDE7F4;--border:#DDE7F4;--green:#0A2258;--green2:#0867F4;--sage:#A7CFFF;--text:#101D38;--muted:#6A7B96;--gold:#0867F4;--red:#CE4356;--danger:#CE4356;--shadow:0 8px 25px rgba(13,47,105,.035)}
html{background:#F3F7FC!important;color-scheme:light}body{background:#F3F7FC!important;color:#101D38!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;line-height:1.5}body *{box-sizing:border-box}a{color:#0859cf}h1,h2,h3,h4,.section h2,.card h2{color:#0A2258!important;letter-spacing:-.025em}
.shell{max-width:1360px!important;margin:auto!important;padding:30px 26px!important}.section,details.panel,.stat,.biz-card,.card,.panel,.box,.sub-box,.subscription,.metric,.branch,.owner,.info{border-color:#DDE7F4!important;box-shadow:0 8px 25px rgba(13,47,105,.035)!important}.section,.card,details.panel,.biz-card,.stat{border-radius:18px!important;background:white!important}.stat .num,.metric b,.biz-title,.stat>b{color:#0A2258!important}.stat .label,.hint,.sub,.help,.muted,.brand p{color:#6A7B96!important}.stat .num{font-size:30px!important}.stats{gap:13px!important}.biz-card:hover{border-color:#78B0FF!important;box-shadow:0 14px 35px rgba(8,103,244,.09)!important}
.btn:not(.danger),button.btn:not(.danger){background:#0867F4!important;color:white!important;border-radius:11px!important;box-shadow:none!important}.btn.secondary{background:white!important;color:#0A2258!important;border:1px solid #DDE7F4!important}.btn.danger{background:#FFF0F3!important;color:#B93650!important;border:1px solid #F5CBD4!important}button:not(:disabled),summary{cursor:pointer}.input,input,select,textarea{background:white!important;color:#101D38!important;border-color:#D4E0EE!important;border-radius:11px!important}.input:focus,input:focus,select:focus,textarea:focus{outline:2px solid #9CCBFF!important;outline-offset:1px;box-shadow:0 0 0 3px rgba(8,103,244,.07)!important}input[type=checkbox],input[type=radio]{accent-color:#0867F4}
.notice{background:#ECF7F1!important;border-color:#C4E8D1!important;color:#1B7455!important}.error{background:#FFF1F3!important;border-color:#F1C9D0!important;color:#AD3049!important}.badge.active,.badge.trial{background:#E8F8EF!important;border-color:#C5EBD6!important;color:#157B55!important}.badge.expiring{background:#FFF5DF!important;color:#A76E16!important}.badge.expired,.badge.disabled{background:#FFF0F3!important;color:#B93650!important}.chip{background:#EDF5FF!important;border-color:#DCEAFB!important;color:#345D98!important}.open{color:#0867F4!important}.logo{background:linear-gradient(140deg,#0A2258,#0867F4)!important}.brand h1{font-size:25px!important;font-weight:850}.brand .emura-header-mark{width:41px;height:41px;border-radius:12px;object-fit:cover;box-shadow:0 6px 20px rgba(8,103,244,.17)}.brand .emura-wordmark{display:block;width:177px;max-width:100%;height:auto;object-fit:contain;margin-bottom:7px}.brand .page-title{font-size:12px;color:#597291;font-weight:700}.topbar{padding:19px 20px!important;background:#fff;border:1px solid #DDE7F4;border-radius:17px;box-shadow:0 5px 22px rgba(13,47,105,.03);margin-bottom:22px!important}
/* Desktop navigation on the main Developer Dashboard; includes real in-page anchors. */
body.emura-admin-vb{--side-width:230px}body.emura-admin-vb .emura-dev-sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:var(--side-width);background:linear-gradient(170deg,#091D48,#0C357B);padding:28px 16px;display:flex;flex-direction:column;box-shadow:8px 0 35px rgba(9,29,72,.055)}body.emura-admin-vb .emura-dev-sidebar .rail-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:850;font-size:15px;padding:3px 8px 30px;white-space:nowrap}body.emura-admin-vb .rail-brand img{width:36px;height:36px;border-radius:9px;object-fit:cover}body.emura-admin-vb .rail-caption{font-size:10px;letter-spacing:.14em;color:#9FB9E9;margin:8px 13px 12px;font-weight:850}body.emura-admin-vb .rail-nav{display:flex;flex-direction:column;gap:7px}body.emura-admin-vb .rail-nav a{padding:12px 13px;border-radius:11px;color:#CADDF8;font-size:13px;font-weight:690;text-decoration:none}body.emura-admin-vb .rail-nav a:hover,body.emura-admin-vb .rail-nav a.active{background:#2458B4;color:white}body.emura-admin-vb .rail-foot{margin-top:auto;border-top:1px solid #45669C;padding:16px 10px 0;color:#C1D4F2;font-size:11px;line-height:1.7}body.emura-admin-vb .shell{margin-left:var(--side-width)!important;max-width:none!important;padding:27px 30px!important}body.emura-admin-vb .stats{grid-template-columns:repeat(5,minmax(0,1fr))}body.emura-admin-vb .stat .num{font-size:28px!important}body.emura-admin-vb .business-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.emura-admin-vb #businesses{scroll-margin-top:28px}body.emura-admin-vb details.panel{scroll-margin-top:28px}
/* Keep login clear and visually linked to the same product. */
body.emura-admin-login{background:radial-gradient(circle at 95% 0,#D8EBFF 0,transparent 34%),#F3F7FC!important}body.emura-admin-login .card{border:1px solid #DDE7F4;box-shadow:0 20px 68px rgba(10,34,88,.09)!important}body.emura-admin-login .brand img{width:min(245px,100%)!important;height:auto!important;max-height:95px!important;object-fit:contain}body.emura-admin-login .foot{background:#EAF3FF!important;color:#315E9A!important}body.emura-admin-login .version{color:#7694B6!important}
/* Detail / backup pages: preserve existing forms, only neutralize dark and old green styles. */
body.emura-admin-detail,body.emura-admin-backups{background:#F3F7FC!important}body.emura-admin-detail .hero{background:linear-gradient(125deg,#fff,#F0F7FF)!important;color:#0A2258!important;border:1px solid #DDE7F4!important;border-radius:20px!important;box-shadow:none!important}body.emura-admin-detail .hero h1,body.emura-admin-detail .hero p{color:#0A2258!important}body.emura-admin-detail .card,body.emura-admin-detail .branch,body.emura-admin-detail .owner,body.emura-admin-detail .sub-box,body.emura-admin-detail .stat{background:white!important;color:#101D38!important;border-color:#DDE7F4!important}body.emura-admin-detail .back{color:#0867F4!important}body.emura-admin-detail .info{background:#F0F6FE!important;color:#304F80!important}body.emura-admin-detail .progress{background:#E7F1FF!important}body.emura-admin-detail .progress i{background:#0867F4!important}body.emura-admin-detail .preset.selected{background:#E7F1FF!important;color:#0867F4!important}body.emura-admin-backups .warn{color:#926016!important}body.emura-admin-backups .top{margin-bottom:23px!important}body.emura-admin-backups .card{border:1px solid #DDE7F4!important}
@media(max-width:1450px){body.emura-admin-vb .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.emura-admin-vb .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:1040px){body.emura-admin-vb .emura-dev-sidebar{position:static;width:auto;padding:12px 16px;background:#091D48;display:block}body.emura-admin-vb .rail-brand{padding:0!important}body.emura-admin-vb .rail-caption,body.emura-admin-vb .rail-foot{display:none}body.emura-admin-vb .rail-nav{flex-direction:row;gap:5px;overflow:auto;margin-top:9px}body.emura-admin-vb .rail-nav a{padding:8px 10px;white-space:nowrap}body.emura-admin-vb .shell{margin:0!important;padding:19px!important}}
@media(max-width:700px){.shell{padding:14px!important}body.emura-admin-vb .shell{padding:14px!important}body.emura-admin-vb .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.emura-admin-vb .business-grid{grid-template-columns:1fr!important}.topbar{padding:15px!important}.brand .emura-wordmark{width:155px}.brand h1{font-size:20px!important}.stat .num{font-size:24px!important}.actions{flex-wrap:wrap!important}.form-grid,.toolbar{grid-template-columns:1fr!important}}
@media(max-width:380px){body.emura-admin-vb .stats{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Version B platform summary & quick controls (real controller metrics) */
.emura-overview-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin:3px 0 18px}.emura-overview-card{background:white;border:1px solid #DDE7F4;padding:20px;border-radius:18px;min-width:0}.emura-overview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:15px}.emura-overview-heading h2{font-size:16px!important;margin:0}.emura-overview-heading>span{color:#7B91B0;font-size:11px}.emura-progress-line{margin-top:14px}.emura-progress-line>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#516682}.emura-progress-line b{color:#19335D}.emura-progress-track{background:#EDF3FC;border-radius:999px;height:8px;margin-top:8px;overflow:hidden}.emura-progress-track>i{display:block;height:100%;border-radius:999px;background:#0867F4}.emura-progress-line.warning i{background:#E8AA48}.emura-progress-line.danger i{background:#CE4356}.emura-quick>a{display:flex;align-items:center;gap:12px;border:1px solid #E0E9F6;border-radius:11px;margin-top:8px;padding:11px;color:#0A2258;text-decoration:none;font-size:12px}.emura-quick>a:hover{background:#F0F6FF}.emura-quick>a>span:first-child{width:27px;height:27px;border-radius:8px;background:#E9F3FF;color:#0867F4;display:grid;place-items:center}.emura-quick>a>span:last-child{margin-left:auto;color:#0867F4}.emura-quick>a b{font-weight:750}
@media(max-width:950px){.emura-overview-grid{grid-template-columns:1fr}}@media(max-width:520px){.emura-overview-heading{align-items:start;flex-direction:column;gap:2px}}

/* RC4: official developer support contact */
.emura-developer-support{scroll-margin-top:26px}.emura-developer-support .section-head{align-items:center}.emura-support-email{margin:0;font-size:16px;font-weight:800}.emura-support-email a{color:#0867F4;text-decoration:underline;text-decoration-color:#BDD6FC;text-underline-offset:3px;overflow-wrap:anywhere}@media(max-width:520px){.emura-developer-support .section-head{align-items:flex-start;flex-direction:column}}
