/* BrandWheels Billing - shared application stylesheet */
:root{--green:#0f5d43;--bg:#f4f7f5;--line:#dfe8e3}*{box-sizing:border-box}body{margin:0;font:15px system-ui,Segoe UI,Arial,sans-serif;background:var(--bg);color:#23332d}.shell{display:flex;min-height:100vh}aside{background:var(--green);color:white;width:235px;flex-shrink:0;padding:24px 15px}.brand{font-weight:800;font-size:19px;margin:5px 6px 35px}.brand small{display:block;font-size:12px;font-weight:400;opacity:.75;margin-top:5px}aside a{display:block;padding:12px 15px;margin:5px 0;color:#f1fff8;text-decoration:none;border-radius:8px}aside a:hover{background:#247b5d}main{width:100%;max-width:1300px;padding:32px;margin:0 auto}h1{font-size:27px;margin:0 0 20px}h2{font-size:19px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:21px;margin:0 0 18px;box-shadow:0 2px 7px #183f2710}.metric{font-size:26px;font-weight:750;color:var(--green);margin-top:10px}.muted{color:#6e7d74}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:12px;border-bottom:1px solid #e6ebe8;vertical-align:top}th{font-size:12px;color:#66796c;text-transform:uppercase}input,select,textarea{width:100%;border:1px solid #cbdad1;border-radius:7px;padding:10px;background:white;font:inherit}textarea{min-height:75px}label{display:block;font-weight:600;font-size:13px;margin:10px 0 5px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:8px 17px}button,.btn{cursor:pointer;background:var(--green);color:white;border:0;text-decoration:none;border-radius:8px;padding:10px 16px;display:inline-block;font:inherit;margin:8px 5px 0 0}.secondary{background:#e7f0ea;color:#205641}.notice{background:#ecf8ed;border:1px solid #aad3b7;padding:12px;border-radius:8px;margin-bottom:16px}.warning{background:#fff6df;padding:13px;border-radius:8px;margin:15px 0}.logout{background:transparent;border:1px solid #ffffff7a;width:100%;margin-top:26px}a{color:#0f5d43}.auth{max-width:420px;margin:9vh auto}@media(max-width:750px){.shell{display:block}aside{width:100%;padding:15px}aside a{display:inline-block;padding:7px}.brand{margin:0 0 12px}main{padding:18px}table{font-size:12px}}

/* Shared portal branding and demo banner. */
.brand-logo { max-width: 185px; width: 100%; height: auto; display: block; margin-bottom: 6px; }
.demo-banner { background: #9a3412; color: white; padding: 13px; border-radius: 8px; font-weight: 800; text-align: center; margin-bottom: 18px; }


/* V1.8: Sidebar menu icons and persistent selected-page highlight. */
.nav-svg-defs {position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.billing-nav {display:flex;flex-direction:column;gap:5px}
aside .billing-nav-link {display:flex;align-items:center;gap:12px;padding:12px 13px;margin:0;border:1px solid transparent;border-radius:10px;color:#e9fff3;font-weight:500;text-decoration:none;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.billing-nav-icon {width:19px;height:19px;min-width:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
aside .billing-nav-link:hover {background:#247b5d;color:white}
aside .billing-nav-link.active,aside .billing-nav-link[aria-current="page"] {background:#e6f7ed;color:#115b40;border-color:#bfebd0;font-weight:750;box-shadow:inset 4px 0 0 #3fbd82}
aside .billing-nav-link.active:hover {background:#d7f2e2;color:#115b40}
@media(max-width:750px){.billing-nav{flex-direction:row;overflow-x:auto;gap:7px;padding-bottom:5px}aside .billing-nav-link{flex-shrink:0;white-space:nowrap;padding:10px 12px}}

/* V1.9 harden sidebar icon layout against conflicting global SVG rules. */
aside .billing-nav-link svg.billing-nav-icon {width:19px !important;height:19px !important;min-width:19px !important;max-width:19px !important;flex:0 0 19px !important;display:block !important;fill:none;stroke:currentColor;vertical-align:middle}
aside .billing-nav-link span {display:inline-block;min-width:0;line-height:1.4}
