/* Byteobill shop dashboard. Scoped so the single-shop live app keeps its existing dashboard. */
body:has(#boDashboard) { --nav-w: 232px; background: #e8eef5; }
body:has(#boDashboard) .topbar { background: #fff; color: #17233c; border-bottom: 1px solid #dce4ee; box-shadow: none; }
body:has(#boDashboard) .topbar .brand { color: #123d68; }
body:has(#boDashboard) .topbar .brand span { color: #d88905; }
body:has(#boDashboard) .topbar .app-ver-top { color: #64748b; }
body:has(#boDashboard) .topbar .badge { background: #eaf1f8; color: #254563; }
body:has(#boDashboard) .topbar .btn.light { background: #eef5fb; color: #0f4c81; border-color: #d7e5f2; }
body:has(#boDashboard) main { padding: 0; }
.bo-dashboard { min-width: 0; color: #182642; }
.bo-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bo-dash-toolbar { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 60px; padding: .55rem 1rem; background: #f8fafc; border-bottom: 1px solid #d5dfeb; }
.bo-dash-search { display: flex; align-items: center; gap: .55rem; max-width: 650px; min-width: 180px; flex: 1; margin: 0; color: #7b8ba7; }
.bo-dash-search > span:first-child { font-size: 1.7rem; line-height: 1; }
.bo-dash-search input { border: 0; outline: none; box-shadow: none; background: transparent; padding: .45rem .1rem; color: #203451; font-size: .93rem; }
.bo-dash-search input:focus { outline: none; border: 0; }
.bo-dash-search input::placeholder { color: #8493ae; }
.bo-search-key { white-space: nowrap; font-size: .68rem; border: 1px solid #dbe4ef; border-radius: 5px; padding: .2rem .35rem; }
.bo-dash-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.bo-dash-action { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 999px; padding: .35rem .9rem; background: #e3f0fd; color: #0b60ad; text-decoration: none; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.bo-dash-action:hover { background: #cfe6fb; }
.bo-action-sale { background: #e6f1fb; color: #0f4c81; }
.bo-action-more { width: 36px; padding: 0; border: 1px solid #d4e3f2; font-size: 1.25rem; }
.bo-dash-results { position: absolute; z-index: 12; left: .8rem; top: calc(100% - 2px); width: min(650px, calc(100vw - 2rem)); background: #fff; border: 1px solid #d4dfeb; box-shadow: 0 12px 28px rgba(22, 39, 65, .16); border-radius: 0 0 8px 8px; }
.bo-dash-results[hidden] { display: none; }
.bo-dash-results a { display: flex; justify-content: space-between; align-items: center; gap: .8rem; color: #183354; padding: .65rem .9rem; text-decoration: none; border-bottom: 1px solid #edf1f6; }
.bo-dash-results a:hover { background: #f0f6fc; }
.bo-dash-results a span { display: grid; gap: .15rem; }
.bo-dash-results small { color: #70819b; }
.bo-dash-results p { margin: 0; padding: .8rem; color: #65748d; }
.bo-dash-notices:empty { display: none; }
.bo-dash-notices > .card, .bo-dash-notices > .banner { margin: .45rem .55rem 0; }
.bo-dash-grid { display: grid; grid-template-columns: minmax(0, 2.06fr) minmax(290px, .96fr); gap: 4px; padding: 4px; min-height: calc(100dvh - 118px); }
.bo-dash-main, .bo-dash-side { min-width: 0; }
.bo-dash-main { display: grid; align-content: start; gap: 4px; }
.bo-dash-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.bo-balance, .bo-sales-panel, .bo-reports-panel, .bo-dash-side { background: #fff; border: 1px solid #d7e0eb; border-radius: 4px; }
.bo-balance { display: flex; flex-direction: column; min-height: 153px; padding: 1.1rem 1.2rem; text-decoration: none; color: #1e3152; }
.bo-balance:hover { border-color: #9dbde0; }
.bo-widget-label { color: #617695; font-size: .85rem; font-weight: 500; }
.bo-balance strong { margin-top: .35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 750; line-height: 1.2; }
.bo-balance-foot { display: flex; align-items: center; gap: .3rem; margin-top: auto; color: #7184a0; font-size: .81rem; }
.bo-balance-foot b { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 35px; height: 35px; border-radius: 50%; background: #dff4eb; color: #087e58; font-size: 1.2rem; }
.bo-balance:nth-child(2) .bo-balance-foot b { background: #fae7e9; color: #c64a58; }
.bo-sales-panel { min-height: 410px; padding: 1.2rem 1.2rem .4rem; }
.bo-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bo-sales-panel .bo-panel-head > div { display: flex; flex-direction: column; align-items: flex-start; }
.bo-sales-panel strong { margin: .3rem 0 0; font-size: 1.75rem; line-height: 1.2; }
.bo-panel-sub { color: #74839b; font-size: .8rem; margin-top: .2rem; }
.bo-sales-panel select { width: auto; min-width: 120px; padding: .4rem 1.7rem .4rem .75rem; border: 0; background: #e9f3fd; color: #214d7b; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.bo-sales-chart { display: block; width: 100%; height: auto; max-height: 302px; margin-top: 1.2rem; overflow: visible; }
.bo-chart-grid { stroke: #e3eaf2; stroke-width: 1; }
.bo-chart-label { fill: #8b9bb2; font-size: 11px; }
.bo-chart-area { fill: #e8f3ff; opacity: .75; }
.bo-chart-line { fill: none; stroke: #1682e7; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.bo-chart-point { fill: #1682e7; stroke: #fff; stroke-width: 1.5; }
.bo-reports-panel { padding: 1.1rem 1.2rem; }
.bo-reports-panel h3, .bo-side-head h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.bo-reports-panel .bo-panel-head a, .bo-side-head a, .bo-widget-more { color: #0866ba; font-size: .8rem; text-decoration: none; }
.bo-report-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1.1rem; }
.bo-report-links a { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 70px; border: 1px solid #e0e7ef; border-radius: 7px; padding: .75rem .8rem; color: #243450; font-size: .83rem; text-decoration: none; }
.bo-report-links a:hover { border-color: #9fc4e9; background: #f6faff; }
.bo-report-links a span { color: #0874cf; font-size: 1.4rem; }
.bo-dash-side { display: flex; flex-direction: column; }
.bo-side-widget { padding: 1.1rem 1.15rem; border-bottom: 1px solid #e3eaf2; }
.bo-side-widget:last-child { border-bottom: 0; }
.bo-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.bo-side-head > span { color: #8a9ab1; font-size: .72rem; white-space: nowrap; }
.bo-side-widget > strong { display: block; font-size: 1.3rem; margin-top: .6rem; }
.bo-side-widget > a { display: inline-block; margin-top: .6rem; font-size: .8rem; text-decoration: none; }
.bo-side-widget p { color: #74839b; font-size: .82rem; margin: .7rem 0 0; }
.bo-widget-list { margin-top: .7rem; }
.bo-widget-list > a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; padding: .3rem 0; text-decoration: none; color: #455d7e; font-size: .8rem; border-bottom: 1px solid #eef2f6; }
.bo-widget-list > a:last-child { border-bottom: 0; }
.bo-widget-list > a:hover span:first-child { color: #0d6bb9; text-decoration: underline; }
.bo-widget-list > a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-widget-list > a b { font-variant-numeric: tabular-nums; }
.bo-widget-list .bo-out { color: #c12e42; }
.bo-widget-more { display: inline-block; margin-top: .6rem; }
.bo-side-recent .bo-widget-list > a span { display: grid; gap: .18rem; }
.bo-side-recent .bo-widget-list > a span:first-child { white-space: normal; }
.bo-side-recent .bo-widget-list small { color: #8a9ab1; font-size: .72rem; }
.bo-side-recent .bo-widget-list strong { flex: none; color: #253b60; font-size: .85rem; }
.bo-dayend { margin-top: auto; }
@media (max-width: 1190px) { .bo-dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, .95fr); } .bo-report-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bo-dash-grid { grid-template-columns: 1fr; } .bo-dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-side-widget { border-right: 1px solid #e3eaf2; } .bo-dayend { margin-top: 0; } }
@media (max-width: 768px) { body:has(#boDashboard) { --nav-w: 0px; } .bo-dash-toolbar { align-items: stretch; flex-wrap: wrap; padding: .65rem .7rem; } .bo-dash-search { flex-basis: 100%; max-width: none; min-height: 38px; } .bo-search-key { display: none; } .bo-dash-actions { width: 100%; margin: 0; } .bo-dash-action { flex: 1; min-width: 0; padding: .4rem .55rem; } .bo-action-more { flex: 0 0 36px; } .bo-dash-grid { padding: 4px; } .bo-balance { min-height: 126px; padding: .8rem; } .bo-balance strong { font-size: 1.22rem; overflow-wrap: anywhere; } .bo-balance-foot { font-size: .72rem; } .bo-balance-foot b { width: 27px; height: 27px; } .bo-sales-panel { min-height: 0; padding: .9rem .7rem; } .bo-sales-panel strong { font-size: 1.4rem; } .bo-sales-chart { margin-top: .5rem; } .bo-report-links { gap: .45rem; } .bo-report-links a { min-height: 56px; padding: .55rem; } .bo-dash-side { grid-template-columns: 1fr; } .bo-side-widget { border-right: 0; } }

/* Reference-inspired Byteobill overview. The existing navigation and data remain functional. */
body:has(#boDashboard) { background: #f5f7fb; }
body:has(#boDashboard) .topbar { border-bottom-color: #e5eaf2; }
body:has(#boDashboard) main { padding: 0; background: #f5f7fb; }
.bo-dash-toolbar { min-height: 58px; padding: 8px clamp(16px, 2.5vw, 34px); background: #fff; border-bottom: 1px solid #e5eaf2; }
.bo-dash-search { width: min(400px, 100%); max-width: 400px; height: 39px; padding: 0 12px; background: #f5f7fa; border: 1px solid #edf0f5; border-radius: 9px; transition: border-color .16s ease, box-shadow .16s ease; }
.bo-dash-search:focus-within { border-color: #91b7ef; box-shadow: 0 0 0 3px #2563eb1a; }
.bo-dash-search input { width: 100%; min-width: 0; }
.bo-search-key { color: #a5b0c1; border: 0; }
.bo-dash-results { left: clamp(16px, 2.5vw, 34px); width: min(400px, calc(100vw - 2rem)); max-height: min(430px, 65vh); overflow-y: auto; border-radius: 0 0 10px 10px; }
.bo-dash-results a:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; background: #eef5ff; }
.bo-dash-content { width: min(100%, 1800px); margin: 0 auto; padding: 28px clamp(16px, 2.5vw, 34px) 38px; }
.bo-dash-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.bo-dash-heading h1 { margin: 0 0 5px; color: #16243b; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.035em; }
.bo-dash-heading p { margin: 0; color: #7d8ca3; font-size: .84rem; }
.bo-dash-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; }
.bo-dash-action { min-height: 39px; padding: .55rem .9rem; border: 1px solid #dfe6f0; border-radius: 9px; background: #fff; color: #1c385b; transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.bo-dash-action:hover { background: #f4f8ff; border-color: #a8c7f8; transform: translateY(-1px); box-shadow: 0 4px 10px #15243b0b; }
.bo-action-sale { background: #2563eb; border-color: #2563eb; color: #fff; }
.bo-action-sale:hover { background: #1e54cd; border-color: #1e54cd; color: #fff; }
.bo-dash-notices:not(:empty) { margin-bottom: 20px; }
.bo-dash-notices > .card, .bo-dash-notices > .banner { margin: 0 0 10px; }
.bo-dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.bo-kpi, .bo-sales-panel, .bo-reports-panel, .bo-side-widget { min-width: 0; background: #fff; border: 1px solid #e5eaf2; border-radius: 13px; box-shadow: 0 3px 13px #182b4a06; }
.bo-kpi { display: flex; flex-direction: column; min-height: 154px; padding: 20px 21px; color: #16243b; text-decoration: none; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.bo-kpi:hover { transform: translateY(-2px); border-color: #b6cef7; box-shadow: 0 9px 22px #203f7020; }
.bo-kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #77869c; font-size: .78rem; font-weight: 650; }
.bo-kpi-icon { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 10px; background: #eaf1ff; color: #2563eb; font-size: 1.2rem; font-style: normal; }
.bo-icon-green { background: #e9f8ef; color: #16a34a; }
.bo-icon-red { background: #fff0f0; color: #de5b64; }
.bo-icon-purple { background: #f1eeff; color: #7c67da; }
.bo-kpi strong { margin: 11px 0 6px; font-size: clamp(1.25rem, 1.65vw, 1.7rem); line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bo-kpi small { margin-top: auto; color: #7d8ca3; font-size: .74rem; line-height: 1.35; }
.bo-dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; gap: 20px; min-height: 0; padding: 0; }
.bo-dash-main, .bo-dash-side { display: grid; align-content: start; min-width: 0; gap: 20px; }
.bo-dash-side { background: none; border: 0; border-radius: 0; }
.bo-panel-head, .bo-side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bo-panel-head { padding: 21px 23px 0; }
.bo-panel-head h2, .bo-side-head h2, .bo-dayend h2 { margin: 0; font-size: .98rem; line-height: 1.25; letter-spacing: -.015em; }
.bo-panel-head p, .bo-side-head p, .bo-dayend p { margin: 5px 0 0; color: #7d8ca3; font-size: .75rem; line-height: 1.4; }
.bo-panel-head a, .bo-side-head a { flex: none; color: #2563eb; font-size: .78rem; font-weight: 650; text-decoration: none; }
.bo-panel-head a:hover, .bo-side-head a:hover { text-decoration: underline; }
.bo-sales-panel { min-height: 0; padding: 0; }
.bo-sales-panel select { min-width: 117px; padding: .45rem 1.7rem .45rem .7rem; border: 1px solid #e5eaf2; border-radius: 8px; background: #fff; color: #586c85; font-size: .77rem; }
.bo-chart-wrap { padding: 8px 23px 14px; }
.bo-sales-chart { max-height: 330px; margin: 0; }
.bo-chart-grid { stroke: #e9edf4; }
.bo-chart-area { fill: #e8f3ff; opacity: .8; }
.bo-chart-line { stroke: #2563eb; stroke-width: 2.5; }
.bo-chart-point { fill: #2563eb; }
.bo-chart-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 15px 23px; border-top: 1px solid #e5eaf2; color: #7d8ca3; font-size: .76rem; }
.bo-chart-foot strong { margin: 0; color: #16243b; font-size: .86rem; }
.bo-reports-panel { padding: 0; }
.bo-report-links { gap: 12px; margin: 0; padding: 19px 22px 22px; }
.bo-report-links a { flex-direction: column; align-items: flex-start; min-width: 0; min-height: 93px; padding: 12px; border-radius: 10px; color: #273b56; font-size: .74rem; font-weight: 650; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.bo-report-links a:hover { border-color: #aac5fc; background: #f9fbff; transform: translateY(-1px); }
.bo-report-icon { color: #2563eb !important; font-size: 1.35rem !important; line-height: 1; margin-bottom: auto; }
.bo-report-links a > span:nth-child(2) { color: #273b56; font-size: .74rem; }
.bo-report-links b { align-self: flex-end; margin-top: -1.1rem; color: #2563eb; font-size: .85rem; }
.bo-side-widget { padding: 20px 22px; border-bottom: 1px solid #e5eaf2; }
.bo-widget-list { margin-top: 12px; }
.bo-widget-list > a { min-height: 47px; padding: 8px 0; border-bottom-color: #f0f2f6; color: #263a55; font-size: .78rem; }
.bo-widget-list > a span:first-child { font-weight: 650; }
.bo-widget-list > a b { flex: none; padding: 5px 9px; border-radius: 7px; background: #fff4e4; color: #aa651e; font-size: .72rem; }
.bo-widget-list > a b.bo-out { background: #fff0f0; color: #c12e42; }
.bo-side-recent .bo-widget-list small { color: #7d8ca3; font-weight: 400; }
.bo-side-recent .bo-widget-list > a span:first-child b { padding: 0; background: none; color: #263a55; font-size: inherit; }
.bo-side-recent .bo-widget-list strong { font-size: .77rem; font-variant-numeric: tabular-nums; }
.bo-empty { margin: 16px 0 0; color: #7d8ca3; font-size: .8rem; }
.bo-service-widget > p { margin: 14px 0 0; color: #667991; font-size: .8rem; }
.bo-dayend { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; }
.bo-status-badge { flex: none; margin-top: 0 !important; padding: 7px 10px; border-radius: 8px; background: #fff4e6; color: #a66b1c; font-size: .72rem; font-weight: 700; text-decoration: none; }
.bo-status-badge.is-closed { background: #e9f8ef; color: #16834e; }
.bo-dashboard :is(a, input, select):focus-visible { outline: 3px solid #79aafb; outline-offset: 2px; }
@media (max-width: 1320px) { .bo-dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-report-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .bo-dash-grid { grid-template-columns: 1fr; } .bo-dash-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-dayend { grid-column: 1 / -1; } }
@media (max-width: 768px) { .bo-dash-toolbar { min-height: 55px; padding: 8px 14px; } .bo-dash-search { width: 100%; max-width: none; padding: 0 12px; } .bo-dash-content { padding: 20px 14px 28px; } .bo-dash-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; } .bo-dash-heading h1 { font-size: 1.36rem; } .bo-dash-actions { width: 100%; } .bo-dash-action { flex: 1; } .bo-dash-kpis { gap: 10px; margin-bottom: 14px; } .bo-kpi { min-height: 136px; padding: 14px; } .bo-kpi-icon { width: 31px; height: 31px; font-size: 1rem; } .bo-kpi strong { font-size: 1.2rem; } .bo-kpi small { font-size: .68rem; } .bo-dash-grid, .bo-dash-main, .bo-dash-side { gap: 14px; } .bo-dash-side { grid-template-columns: 1fr; } .bo-dayend { grid-column: auto; } .bo-panel-head { padding: 17px 16px 0; } .bo-chart-wrap { padding: 10px 7px; } .bo-chart-foot { padding: 13px 16px; } .bo-report-links { gap: 10px; padding: 15px 16px 17px; } .bo-report-links a { min-height: 78px; } .bo-side-widget { padding: 17px 16px; } }
@media (max-width: 360px) { .bo-dash-kpis { grid-template-columns: 1fr; } .bo-kpi { min-height: 115px; } }
@media (max-width: 768px) { .bo-dash-results { left: 14px; right: 14px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .bo-dashboard *, body:has(#boDashboard) .sidebar a { transition-duration: .01ms !important; } }
