.dashboard-wrap{max-width:1180px;margin:28px auto;padding:0 20px 48px}.login-panel{max-width:440px;margin:70px auto}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.page-heading h1,.login-panel h1{margin:0 0 6px}.date-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.date-filter label,.stack label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#34475b}.date-filter input,.stack input{min-height:42px;border:1px solid #d7e0e9;border-radius:9px;padding:9px 11px;font:inherit;background:#fff}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.metric{background:#fff;border:1px solid #e3eaf0;border-radius:14px;padding:18px;min-width:0}.metric span{display:block;color:#64748b;font-size:13px}.metric strong{display:block;font-size:clamp(20px,2.2vw,28px);margin:10px 0 5px;color:#102b46;overflow-wrap:anywhere}.metric small{color:#718096;font-size:12px}.content-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-top:14px}.panel{background:#fff;border:1px solid #e3eaf0;border-radius:14px;padding:20px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel h2{font-size:18px;margin:0 0 4px}.panel .muted,.muted{color:#718096;font-size:13px}.stack{display:grid;gap:13px}.stack .btn{width:100%}.daily-chart{display:flex;align-items:end;gap:8px;min-height:190px;padding-top:15px;overflow-x:auto}.day-bar{flex:1;min-width:25px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:7px;height:175px}.day-bar i{display:block;width:min(100%,32px);min-height:3px;background:#2374b9;border-radius:6px 6px 2px 2px}.day-bar b{font-size:10px;color:#536579;font-weight:500}.day-bar small{font-size:10px;color:#7b8794;white-space:nowrap}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:11px 8px;border-bottom:1px solid #edf1f5;white-space:nowrap}th{color:#718096;font-weight:600}.expense-list{display:grid;gap:10px}.expense-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f5;padding:9px 0}.expense-row strong{display:block;font-size:13px}.expense-row small{color:#718096}.expense-row b{white-space:nowrap;font-size:13px}.footnote{font-size:12px;color:#718096;margin:18px 2px;line-height:1.5}.notice{padding:12px;border-radius:9px;background:#fff5e8;color:#8a4b08}.error{color:#a12b22;font-size:13px;min-height:18px}.top-actions{display:flex;align-items:center;gap:10px}.top-actions a{text-decoration:none;display:inline-flex;align-items:center}.hidden{display:none!important}@media(max-width:850px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.page-heading{align-items:start;flex-direction:column}.date-filter{width:100%}}@media(max-width:480px){.dashboard-wrap{padding:0 12px 32px;margin-top:18px}.metric{padding:14px}.metric-grid{gap:9px}.panel{padding:15px}.top-actions{gap:6px}.top-actions #user-label{display:none}.topbar{padding:12px}}

.crm-panel{margin-top:16px}.crm-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:10px 0 14px}.crm-search label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#34475b}.crm-search input{min-height:42px;border:1px solid #d7e0e9;border-radius:9px;padding:9px 11px;font:inherit;background:#fff}#crm-rows td{vertical-align:middle}#crm-rows td strong{color:#102b46}#crm-rows td small{color:#718096}@media(max-width:520px){.crm-search{grid-template-columns:1fr}.crm-search button{width:100%}.crm-panel .panel-heading{align-items:flex-start;gap:10px;flex-direction:column}}

.quick-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:8px;background:#eaf0f5;border-radius:12px}.quick-nav a{display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;border-radius:8px;background:#fff;color:#24415c;text-decoration:none;font-size:12px;font-weight:700;border:1px solid #dce5ed}.quick-nav a:focus,.quick-nav a:hover{background:#e8f4ec;border-color:#9cc9ad;color:#176b4a}#overview-section,#payments-section,#customers-section,#expenses-section{scroll-margin-top:18px}


/* SWASS fintech dashboard refresh — Tuma-inspired navigation and workspace */
.dashboard-wrap{max-width:1440px;margin:0 auto;padding:24px 28px 48px}
.dashboard-wrap>.page-heading{padding:8px 2px 18px;border-bottom:1px solid #e8edf1;margin-bottom:18px}
.dashboard-wrap>.page-heading h1{font-size:30px;letter-spacing:-.045em;color:#122b40}
.dashboard-wrap>.page-heading .muted{margin:5px 0 0}
.dashboard-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:22px;align-items:start}
.dashboard-sidebar{position:sticky;top:18px;min-height:calc(100vh - 150px);background:#fff;border:1px solid #e6ebef;border-radius:16px;padding:18px 12px;display:flex;flex-direction:column;gap:6px;box-shadow:0 5px 20px #132d4010}
.sidebar-label{font-size:10px;letter-spacing:.14em;font-weight:800;color:#95a3ae;margin:3px 10px 10px}
.sidebar-link{display:flex;align-items:center;gap:11px;padding:12px 11px;border-radius:10px;text-decoration:none;color:#536678;font-size:13px;font-weight:700;transition:background .15s,color .15s}
.sidebar-link span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#f0f4f6;color:#557083;font-size:15px}
.sidebar-link:hover,.sidebar-link.active{background:#eaf5ee;color:#176b4a}
.sidebar-link.active span{background:#d6eddf;color:#176b4a}
.sidebar-help{margin-top:auto;padding:14px 12px;border-radius:12px;background:#f3f8f5;border:1px solid #e3efe7}
.sidebar-help strong{display:block;color:#1b4934;font-size:12px}
.sidebar-help small{display:block;color:#718078;font-size:11px;line-height:1.5;margin:6px 0 11px}
.sidebar-help a{font-size:11px;font-weight:800;color:#176b4a;text-decoration:none}
.dashboard-main{min-width:0}
.dashboard-main .metric-grid{gap:13px}
.dashboard-main .metric{border-radius:13px;padding:17px 18px;box-shadow:0 3px 14px #18334a08}
.dashboard-main .metric span{font-size:12px;font-weight:600;color:#708090}
.dashboard-main .metric strong{font-size:clamp(20px,2vw,27px);margin:12px 0 4px}
.dashboard-main .content-grid{gap:14px}
.dashboard-main .panel,.dashboard-main>.panel{border-radius:14px;box-shadow:0 3px 16px #18334a08}
.dashboard-main .panel-heading{align-items:flex-start}
.dashboard-main .panel h2{color:#17344b}
.dashboard-main .quick-nav{display:none}
.dashboard-main .footnote{background:#f5f8fa;padding:12px 14px;border-radius:10px}
.dashboard-wrap .topbar{box-shadow:0 2px 12px #0b26380c}
@media(max-width:900px){.dashboard-layout{grid-template-columns:190px minmax(0,1fr);gap:14px}.dashboard-wrap{padding-left:18px;padding-right:18px}}
@media(max-width:700px){
 .dashboard-wrap{padding:15px 12px 32px}
 .dashboard-layout{display:block}
 .dashboard-sidebar{position:sticky;top:0;z-index:4;min-height:0;flex-direction:row;overflow-x:auto;gap:5px;padding:8px;margin:0 0 14px;border-radius:12px;box-shadow:0 4px 12px #132d4010}
 .sidebar-label,.sidebar-help{display:none}
 .sidebar-link{flex:0 0 auto;white-space:nowrap;padding:9px 11px;font-size:11px;gap:7px}
 .sidebar-link span{width:19px;height:19px;font-size:13px}
 .dashboard-wrap>.page-heading{gap:12px;padding:4px 2px 14px}
 .dashboard-wrap>.page-heading h1{font-size:25px}
 .dashboard-main .metric{padding:13px}
 .dashboard-main .metric strong{font-size:20px}
}


/* Light sky-blue analytics theme */
.analytics-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:4px 0 15px;padding:4px 2px}
.analytics-intro .eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#3993c9}
.analytics-intro h2{font-size:21px;margin:5px 0;color:#153b58;letter-spacing:-.025em}
.analytics-intro p{font-size:12px;color:#71899a;margin:0}
.account-state,.channel-period,.setup-count{font-size:11px;color:#4c87aa;background:#edf8ff;border:1px solid #d8efff;padding:7px 10px;border-radius:20px;white-space:nowrap}
.account-state i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#45a6d8;margin-right:6px}
.headline-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:15px}
.headline-metrics .highlight-metric{background:linear-gradient(145deg,#fff 0%,#f1f9ff 100%);border:1px solid #d9edfa;min-height:120px}
.headline-metrics .metric strong{font-size:30px;color:#1877b5}
.headline-metrics .metric span{color:#50758e}
.channel-panel,.setup-panel{margin:0 0 15px;background:#fff;border-color:#dcecf6}
.channel-panel .panel-heading,.setup-panel .panel-heading{margin-bottom:14px}
.channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.channel-card{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:13px 11px;background:#f6fbff;border:1px solid #e3f1fa;border-radius:11px}
.channel-icon{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e4f4ff;color:#2588c2;font-size:16px}
.channel-card div{min-width:0}
.channel-card small{display:block;color:#6c8799;font-size:11px;font-weight:700}
.channel-card strong{display:block;color:#1b4e70;font-size:17px;margin:5px 0}
.channel-card em{display:block;color:#91a3af;font-size:10px;line-height:1.35;font-style:normal}
.setup-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.setup-steps li{display:flex;align-items:flex-start;gap:10px;padding:13px 11px;background:#f8fcff;border:1px solid #e5f1f8;border-radius:11px;min-width:0}
.step-number{flex:0 0 25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#dff2ff;color:#1877b5;font-weight:800;font-size:12px}
.setup-steps li div{min-width:0;flex:1}
.setup-steps li strong{display:block;font-size:11px;color:#31566f;line-height:1.4}
.setup-steps li small{display:block;font-size:10px;line-height:1.45;color:#8296a4;margin-top:4px}
.setup-steps li a{font-size:10px;font-weight:800;color:#2486bd;text-decoration:none;white-space:nowrap}
@media(max-width:900px){.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-steps{grid-template-columns:1fr}}
@media(max-width:520px){.analytics-intro{align-items:flex-start;flex-direction:column}.analytics-intro h2{font-size:19px}.headline-metrics{grid-template-columns:1fr;gap:9px}.headline-metrics .highlight-metric{min-height:0;padding:13px 15px}.headline-metrics .metric strong{font-size:25px;margin:6px 0}.channel-grid{grid-template-columns:1fr 1fr;gap:7px}.channel-card{padding:10px 8px;gap:7px}.channel-card strong{font-size:14px}.channel-card em{font-size:9px}.channel-icon{width:26px;height:26px;flex-basis:26px}.setup-steps{gap:7px}}


/* Operations-first workspace: quick actions, owner KPIs and module directory */
.command-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.global-search{display:flex;align-items:center;gap:9px;min-width:0;flex:1;background:#fff;border:1px solid #dceaf4;border-radius:11px;padding:0 12px;min-height:44px;color:#5793b7}
.global-search>span{font-size:23px;line-height:1}
.global-search input{border:0;outline:0;box-shadow:none!important;min-width:0;min-height:40px;padding:8px 0;background:transparent;font:inherit;font-size:13px}
.global-search kbd{font-size:10px;color:#8298a8;background:#f1f7fb;border:1px solid #e1edf5;border-radius:5px;padding:3px 6px;white-space:nowrap}
.command-actions{display:flex;align-items:center;gap:8px}
.network-status{font-size:11px;color:#23764e;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.network-status i{width:8px;height:8px;border-radius:50%;background:#25a36a;display:inline-block}
.network-status.offline{color:#b45309}.network-status.offline i{background:#e49a28}
.command-actions .btn{min-height:40px;padding:8px 11px;font-size:11px;white-space:nowrap}
.quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}
.quick-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:8px 12px;border-radius:9px;border:1px solid #dbe9f3;background:#fff;color:#315a75;text-decoration:none;font-size:11px;font-weight:800;cursor:pointer}
.quick-action.primary-action{background:#187bb8;border-color:#187bb8;color:#fff}
.quick-action.disabled-action{color:#91a0aa;background:#f6f9fb;cursor:not-allowed}
.owner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.owner-stat{padding:14px 15px;border:1px solid #dcecf6;border-radius:12px;background:linear-gradient(145deg,#fff,#f2f9ff);min-width:0}
.owner-stat span{display:block;color:#638198;font-size:11px;font-weight:700}
.owner-stat strong{display:block;color:#174f73;font-size:clamp(18px,2vw,25px);margin:7px 0 3px;overflow-wrap:anywhere}
.owner-stat small{display:block;color:#8a9eac;font-size:10px}
.module-hub{padding:17px;margin:0 0 16px;background:#fff;border:1px solid #dcecf6;border-radius:14px}
.module-hub-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:13px}
.module-hub-heading h2{font-size:19px;color:#173d59;margin:3px 0}
.module-hub-heading p{margin:0}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.module-tile{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid #e3edf4;border-radius:11px;background:#f9fcff;text-decoration:none;color:inherit}
.module-tile>span{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e8f5ff;color:#2385bc;font-size:17px}
.module-tile>div{flex:1;min-width:0}
.module-tile strong{display:block;color:#254d68;font-size:12px}
.module-tile small{display:block;color:#8296a5;font-size:10px;line-height:1.4;margin-top:3px}
.module-state{font-size:9px;white-space:nowrap;border-radius:20px;padding:5px 7px}
.module-state.ready{background:#e7f6ed;color:#27734c}
.module-state.planned-state{background:#fff4df;color:#986319}
.module-tile.planned{background:#fbfcfd;border-style:dashed}
.module-tile.planned>span{background:#f0f2f4;color:#81909b}
.module-tile.planned strong{color:#667987}
.module-tile:hover:not(.planned){border-color:#a9d3ec;background:#f1f9ff}
body.dashboard-dark{background:#0e1b27;color:#e4edf5}
body.dashboard-dark .dashboard-sidebar,body.dashboard-dark .metric,body.dashboard-dark .panel,body.dashboard-dark .module-hub,body.dashboard-dark .module-tile,body.dashboard-dark .global-search{background:#172838;border-color:#2b4356;color:#e4edf5}
body.dashboard-dark .dashboard-wrap>.page-heading h1,body.dashboard-dark .dashboard-main .panel h2,body.dashboard-dark .module-hub-heading h2,body.dashboard-dark .module-tile strong,body.dashboard-dark .dashboard-main .metric strong{color:#d9efff}
body.dashboard-dark .metric span,body.dashboard-dark .metric small,body.dashboard-dark .module-tile small,body.dashboard-dark .muted{color:#9fb2c1}
body.dashboard-dark .owner-stat{background:#172c3c;border-color:#294a62}
body.dashboard-dark .owner-stat strong{color:#8ed0ff}
body.dashboard-dark .owner-stat span,body.dashboard-dark .owner-stat small{color:#a3bdce}
body.dashboard-dark .quick-action{background:#1b3042;border-color:#355269;color:#d6eafa}
body.dashboard-dark .quick-action.primary-action{background:#187bb8;color:#fff}
body.dashboard-dark .quick-action.disabled-action{color:#8c9ba6}
body.dashboard-dark .global-search input{color:#e4edf5}
body.dashboard-dark .module-tile>span{background:#203e54;color:#91d4ff}
body.dashboard-dark .module-state.ready{background:#173f32;color:#9de0ba}
body.dashboard-dark .module-state.planned-state{background:#463a24;color:#f2ce88}
@media(max-width:850px){.owner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid{grid-template-columns:1fr}}
@media(max-width:520px){.command-bar{align-items:stretch;flex-direction:column}.command-actions{justify-content:space-between}.global-search kbd{display:none}.owner-stat{padding:11px}.owner-stat strong{font-size:18px}.module-hub{padding:13px}.module-tile{padding:10px}.module-state{font-size:8px}}

/* Unified dashboard navigation refinements */
.dashboard-sidebar .sidebar-link.hidden{display:none!important}
.dashboard-main [id$="-section"]{scroll-margin-top:22px}
.dashboard-sidebar .sidebar-link:focus-visible{outline:3px solid #7bc2ef;outline-offset:2px}
body.dashboard-dark .sidebar-link{color:#c4d4e0}
body.dashboard-dark .sidebar-link span{background:#20394b;color:#a9d9f7}
body.dashboard-dark .sidebar-link:hover,body.dashboard-dark .sidebar-link.active{background:#1d493d;color:#a9e6c3}
body.dashboard-dark .sidebar-help{background:#1b3a32;border-color:#2c5748}
body.dashboard-dark .sidebar-help strong,body.dashboard-dark .sidebar-help a{color:#a9e6c3}
body.dashboard-dark .sidebar-help small{color:#b2c9bf}

.workspace-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:10px;background:var(--panel,#fff);border:1px solid var(--line,#e5e7eb);border-radius:14px}
.workspace-nav button{border:0;background:transparent;padding:10px 14px;border-radius:9px;font:inherit;font-weight:600;color:inherit;cursor:pointer}
.workspace-nav button.active{background:var(--primary,#155e45);color:#fff}
#owner-dashboard-view{width:100%}
@media(max-width:760px){.workspace-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.workspace-nav button{padding:9px 5px;font-size:13px}}

/* SWASS single-workspace navigation and distinct section views */
#workspace-nav{display:flex;gap:8px;overflow-x:auto;padding:10px 0;position:sticky;top:0;z-index:20;background:var(--surface,#fff)}
#workspace-nav button{white-space:nowrap;border:1px solid var(--line,#dce5df);border-radius:10px;padding:10px 14px;background:transparent;color:inherit;font:inherit;font-weight:600}
#workspace-nav button.active{background:var(--primary,#123b2b);color:#fff;border-color:var(--primary,#123b2b)}
/* Dashboard is an analytics-only view; financial entry and wallet tools belong to Accounting. */
#owner-dashboard-view.workspace-dashboard #owner-overview-section,
#owner-dashboard-view.workspace-dashboard .secondary-metrics,
#owner-dashboard-view.workspace-dashboard #owner-expenses-section{display:none}
#owner-dashboard-view.workspace-dashboard #owner-payments-section{display:block}
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:first-child,
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:last-child{display:none}
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:nth-child(2){display:block}

/* Accounting contains financial totals, wallet/subscription, sales ledger chart and expense records. */
#owner-dashboard-view.workspace-accounting .owner-stats,
#owner-dashboard-view.workspace-accounting .period-comparison,
#owner-dashboard-view.workspace-accounting .analytics-intro,
#owner-dashboard-view.workspace-accounting .headline-metrics,
#owner-dashboard-view.workspace-accounting #owner-reports-section,
#owner-dashboard-view.workspace-accounting .setup-panel{display:none}
#owner-dashboard-view.workspace-accounting #owner-overview-section,
#owner-dashboard-view.workspace-accounting .secondary-metrics,
#owner-dashboard-view.workspace-accounting #owner-payments-section,
#owner-dashboard-view.workspace-accounting #owner-expenses-section{display:grid}
#owner-dashboard-view.workspace-accounting #owner-expenses-section>section:first-child{display:none}

/* Console keeps staff activity and audit-oriented tools separate from finance. */
#owner-dashboard-view.workspace-console .analytics-intro,
#owner-dashboard-view.workspace-console .headline-metrics,
#owner-dashboard-view.workspace-console #owner-reports-section,
#owner-dashboard-view.workspace-console .setup-panel,
#owner-dashboard-view.workspace-console #owner-payments-section,
#owner-dashboard-view.workspace-console #owner-overview-section,
#owner-dashboard-view.workspace-console .period-comparison,
#owner-dashboard-view.workspace-console .secondary-metrics{display:none}
#owner-dashboard-view.workspace-console .owner-stats{display:none}
#pos-view.workspace-logistics .cart-panel{display:none}
#pos-view.workspace-logistics #products-panel{width:100%}
@media(max-width:640px){#workspace-nav{margin:0 -8px;padding:9px 8px}#workspace-nav button{padding:9px 12px;font-size:13px}}

/* Dashboard period-to-period comparison */
.period-comparison{margin:0 0 20px;padding:18px}
.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.comparison-grid article{display:grid;gap:6px;padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--surface,#fff)}
.comparison-grid article>span{font-size:12px;color:var(--muted,#66736b);font-weight:600}
.comparison-grid article>strong{font-size:25px;line-height:1.2;color:var(--ink,#183126)}
.comparison-grid article>small{font-size:11px;color:var(--muted,#66736b)}
@media(max-width:520px){.comparison-grid{grid-template-columns:1fr}.comparison-grid article>strong{font-size:22px}}


/* Final separation: Dashboard is sales analytics only; Accounting owns finance tools. */
#owner-dashboard-view.workspace-dashboard>.dashboard-layout .command-bar,
#owner-dashboard-view.workspace-dashboard>.dashboard-layout .quick-actions,
#owner-dashboard-view.workspace-dashboard .owner-stats,
#owner-dashboard-view.workspace-dashboard .analytics-intro,
#owner-dashboard-view.workspace-dashboard .headline-metrics,
#owner-dashboard-view.workspace-dashboard #owner-reports-section,
#owner-dashboard-view.workspace-dashboard .setup-panel,
#owner-dashboard-view.workspace-dashboard .secondary-metrics,
#owner-dashboard-view.workspace-dashboard #owner-expenses-section,
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:first-child,
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:last-child,
#owner-dashboard-view.workspace-dashboard #owner-overview-section>article:not(:first-child){display:none!important}
#owner-dashboard-view.workspace-dashboard #owner-overview-section{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
#owner-dashboard-view.workspace-dashboard #owner-period-comparison{display:block!important}
#owner-dashboard-view.workspace-dashboard #owner-payments-section{display:block!important}
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:nth-child(2){display:block!important}
#owner-dashboard-view.workspace-accounting .owner-stats,
#owner-dashboard-view.workspace-accounting .period-comparison,
#owner-dashboard-view.workspace-accounting .analytics-intro,
#owner-dashboard-view.workspace-accounting .headline-metrics,
#owner-dashboard-view.workspace-accounting #owner-reports-section,
#owner-dashboard-view.workspace-accounting .setup-panel,
#owner-dashboard-view.workspace-accounting #owner-payments-section>section:nth-child(2){display:none!important}
#owner-dashboard-view.workspace-accounting #owner-overview-section,
#owner-dashboard-view.workspace-accounting .secondary-metrics{display:grid!important}
#owner-dashboard-view.workspace-accounting #owner-payments-section{display:grid!important}
#owner-dashboard-view.workspace-accounting #owner-payments-section>section:first-child,
#owner-dashboard-view.workspace-accounting #owner-payments-section>section:last-child{display:block!important}
#owner-dashboard-view.workspace-accounting #owner-expenses-section{display:grid!important}
#owner-dashboard-view.workspace-accounting #owner-expenses-section>section:first-child{display:none!important}


/* Focused mobile-first sales performance dashboard */
#pos-view:has(#owner-dashboard-view.workspace-dashboard)>.page-heading,
#pos-view:has(#owner-dashboard-view.workspace-dashboard)>#notice{display:none!important}
#owner-dashboard-view.workspace-dashboard .page-heading{align-items:flex-start;gap:18px;margin:8px 0 22px;padding:24px;border-radius:22px;background:linear-gradient(125deg,#103d2d 0%,#17684d 58%,#2b8a67 100%);color:#fff;box-shadow:0 14px 34px rgba(16,61,45,.16)}
#owner-dashboard-view.workspace-dashboard .page-heading h1{font-size:clamp(25px,4vw,36px);letter-spacing:-.8px;color:#fff;margin:4px 0 7px}
#owner-dashboard-view.workspace-dashboard .page-heading .muted{color:rgba(255,255,255,.78)}
#owner-dashboard-view.workspace-dashboard .date-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
#owner-dashboard-view.workspace-dashboard .date-filter label{color:#fff;font-size:12px}
#owner-dashboard-view.workspace-dashboard .date-filter input{min-height:44px;border:1px solid rgba(255,255,255,.35);border-radius:11px;background:#fff;color:#183126;padding:8px 10px}
#owner-dashboard-view.workspace-dashboard .date-filter .btn{min-height:44px;background:#d8f3e5;color:#104b35;border:0}
#owner-dashboard-view.workspace-dashboard .dashboard-layout{display:block}
#owner-dashboard-view.workspace-dashboard .dashboard-main{width:100%;max-width:none}
#owner-dashboard-view.workspace-dashboard .command-bar,
#owner-dashboard-view.workspace-dashboard .quick-actions,
#owner-dashboard-view.workspace-dashboard .owner-stats,
#owner-dashboard-view.workspace-dashboard .analytics-intro,
#owner-dashboard-view.workspace-dashboard .headline-metrics,
#owner-dashboard-view.workspace-dashboard #owner-reports-section,
#owner-dashboard-view.workspace-dashboard .setup-panel,
#owner-dashboard-view.workspace-dashboard .secondary-metrics,
#owner-dashboard-view.workspace-dashboard #owner-expenses-section,
#owner-dashboard-view.workspace-dashboard .footnote{display:none!important}
#owner-dashboard-view.workspace-dashboard #owner-overview-section{display:grid!important;grid-template-columns:1fr!important;gap:0;margin:0 0 16px}
#owner-dashboard-view.workspace-dashboard #owner-overview-section .metric{padding:22px 24px;border:0;border-radius:20px;background:linear-gradient(135deg,#e4f6ec,#f7fcf9);box-shadow:0 8px 24px rgba(18,65,47,.07)}
#owner-dashboard-view.workspace-dashboard #owner-overview-section .metric span{font-size:13px;color:#557064}
#owner-dashboard-view.workspace-dashboard #owner-overview-section .metric strong{font-size:clamp(28px,6vw,40px);color:#104b35;letter-spacing:-1px}
#owner-dashboard-view.workspace-dashboard #owner-period-comparison{border:1px solid #e1ebe5;border-radius:20px;padding:20px;background:#fff;box-shadow:0 8px 24px rgba(18,65,47,.05);margin:0 0 16px}
#owner-dashboard-view.workspace-dashboard #owner-period-comparison h2{font-size:18px}
#owner-dashboard-view.workspace-dashboard .comparison-grid article{border:1px solid #e6eee9;border-radius:15px;padding:16px;background:#f9fcfa}
#owner-dashboard-view.workspace-dashboard .comparison-grid article>strong{font-size:26px;color:#146044}
#owner-dashboard-view.workspace-dashboard #owner-payments-section{display:block!important;margin:0}
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:nth-child(2){display:block!important;border:1px solid #e1ebe5;border-radius:20px;padding:20px;background:#fff;box-shadow:0 8px 24px rgba(18,65,47,.05)}
#owner-dashboard-view.workspace-dashboard #owner-payments-section>section:nth-child(2) h2{font-size:18px}
#owner-dashboard-view.workspace-dashboard .daily-chart{min-height:190px;overflow-x:auto}
@media(max-width:640px){
 #owner-dashboard-view.workspace-dashboard .page-heading{display:block;padding:20px 16px}
 #owner-dashboard-view.workspace-dashboard .date-filter{display:grid;grid-template-columns:1fr 1fr;align-items:end;margin-top:16px}
 #owner-dashboard-view.workspace-dashboard .date-filter .btn{grid-column:1/-1;width:100%}
 #owner-dashboard-view.workspace-dashboard #owner-period-comparison{padding:15px}
 #owner-dashboard-view.workspace-dashboard .comparison-grid{grid-template-columns:1fr 1fr}
 #owner-dashboard-view.workspace-dashboard .comparison-grid article{padding:12px}
}


/* Navigation must never cover or pin itself over the active workspace content. */
#workspace-nav,.workspace-nav{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  overflow:visible;
  width:100%;
  box-sizing:border-box;
  margin:0 0 18px;
  padding:10px 0;
  background:transparent;
}
#workspace-nav button,.workspace-nav button{
  flex:0 0 auto;
  max-width:100%;
}
@media(max-width:700px){
  #workspace-nav,.workspace-nav{
    position:relative!important;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding:8px 0;
    margin-bottom:14px;
  }
  #workspace-nav button,.workspace-nav button{
    flex:0 0 auto;
    white-space:nowrap;
  }
}


/* Product sales mix pie chart and month-to-date KPI */
#owner-dashboard-view.workspace-dashboard .comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#owner-dashboard-view.workspace-dashboard .product-mix-heading{margin:24px 0 12px;padding-top:18px;border-top:1px solid #e8eee9}
#owner-dashboard-view.workspace-dashboard .product-mix-heading h3{font-size:16px;margin:0 0 4px;color:#173b2c}
#owner-dashboard-view.workspace-dashboard .product-mix-heading p{margin:0}
#owner-dashboard-view.workspace-dashboard .product-mix-layout{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(0,1.4fr);gap:22px;align-items:center}
#owner-dashboard-view.workspace-dashboard .product-pie{width:min(100%,220px);aspect-ratio:1;border-radius:50%;margin:8px auto;display:grid;place-items:center;background:#edf2ef;position:relative}
#owner-dashboard-view.workspace-dashboard .product-pie:before{content:"";position:absolute;inset:24%;background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.06)}
#owner-dashboard-view.workspace-dashboard .product-pie>span{position:relative;z-index:1;max-width:65%;text-align:center;font-size:13px;font-weight:800;color:#174a35;overflow-wrap:anywhere}
#owner-dashboard-view.workspace-dashboard .product-pie>span small{display:block;font-size:10px;font-weight:500;color:#728277;margin-top:3px}
#owner-dashboard-view.workspace-dashboard .product-legend{display:grid;gap:9px;min-width:0}
#owner-dashboard-view.workspace-dashboard .product-legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;align-items:center}
#owner-dashboard-view.workspace-dashboard .product-legend-row>i{width:10px;height:10px;border-radius:3px}
#owner-dashboard-view.workspace-dashboard .product-legend-row>span{min-width:0}
#owner-dashboard-view.workspace-dashboard .product-legend-row strong{display:block;font-size:12px;color:#30483a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#owner-dashboard-view.workspace-dashboard .product-legend-row small{display:block;font-size:10px;color:#718078;margin-top:2px}
#owner-dashboard-view.workspace-dashboard .product-legend-row>b{font-size:11px;color:#30483a;white-space:nowrap}
@media(max-width:640px){
 #owner-dashboard-view.workspace-dashboard .comparison-grid{grid-template-columns:1fr 1fr}
 #owner-dashboard-view.workspace-dashboard .product-mix-layout{grid-template-columns:1fr;gap:8px}
 #owner-dashboard-view.workspace-dashboard .product-pie{width:min(64vw,210px)}
 #owner-dashboard-view.workspace-dashboard .product-legend{gap:8px}
}


/* Four clear workspaces; phone navigation stays fixed at the bottom. */
#workspace-nav{position:relative!important;top:auto!important;z-index:5!important;display:flex;align-items:center;gap:8px;overflow:visible;width:100%;box-sizing:border-box;margin:0 0 18px;padding:10px 0;background:transparent}
#workspace-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;white-space:nowrap;border:1px solid var(--line,#dce5df);border-radius:12px;background:var(--surface,#fff);color:inherit;font:inherit;font-weight:700}
#workspace-nav button.active{background:var(--primary,#123b2b);color:#fff;border-color:var(--primary,#123b2b)}
#workspace-nav .nav-icon{font-size:21px;line-height:1}
#workspace-nav .nav-label{font-size:13px}
@media(max-width:700px){
  #workspace-nav{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;z-index:1000;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%;margin:0;padding:8px 5px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #dce6ee;background:rgba(255,255,255,.98);box-shadow:0 -5px 22px rgba(22,48,67,.12);overflow:visible}
  #workspace-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:60px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:#38546a}
  #workspace-nav button.active{background:#e7f3fb;color:#075b9b}
  #workspace-nav .nav-icon{font-size:25px;line-height:1.15}
  #workspace-nav .nav-label{display:block;font-size:10px;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:anywhere}
  #pos-view{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  #owner-dashboard-view{padding-bottom:12px}
}


/* Receipts landing screen: only Issue Receipt and Recover Receipt. */
.receipts-home{margin:10px 0 20px;padding:20px}
.receipt-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.receipt-choice{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:150px;padding:20px;border:0;border-radius:16px;background:#fff;color:#173d59;text-align:left;cursor:pointer}.declaration-choice{width:100%;margin:0;box-shadow:none}
.receipt-choice>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f5ff;color:#0874b5;font-size:27px}
.receipt-choice strong{font-size:17px}
.receipt-choice small{font-size:12px;color:#6b8190;line-height:1.45}
#pos-view .page-heading #back-to-receipts{margin-bottom:10px}
#pos-view .buyer-fields input:required{border-color:#b8cbd8}
@media(max-width:600px){.receipt-actions-grid{grid-template-columns:1fr}.receipt-choice{min-height:120px;padding:17px}}

#pos-view #back-to-receipts{display:none}
#pos-view.workspace-issue-mode #back-to-receipts{display:inline-flex}


/* Dashboard-owned business profile and first-time setup */
.dashboard-business-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 20px;border:1px solid #dce8e2;border-radius:18px;background:#fff}
.dashboard-business-identity{display:flex;align-items:center;gap:14px;min-width:0}
.dashboard-profile-image{width:64px;height:64px;flex:0 0 64px;border-radius:50%;object-fit:cover;border:1px solid #dce8e2;background:#f1f6f3}
.dashboard-business-card h2{margin:2px 0 5px;font-size:19px;color:#173b2c}
.dashboard-business-card p{margin:0}
#profile-panel{margin:0 0 20px}
@media(max-width:560px){.dashboard-business-card{align-items:stretch;flex-direction:column}.dashboard-business-card>.btn{width:100%}.dashboard-business-identity{align-items:flex-start}}

/* Dedicated owner-only Staff Reports workspace */

.owner-staff-area{margin:18px 0 24px}.owner-staff-tabs{display:flex;gap:8px;border-bottom:1px solid #e3eaf0;margin-bottom:12px}.owner-staff-tab{border:0;background:transparent;padding:12px 16px;color:#64748b;font:inherit;font-weight:650;border-bottom:3px solid transparent;cursor:pointer}.owner-staff-tab.active{color:#075bd8;border-bottom-color:#075bd8}.staff-profile-edit{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.staff-profile-preview{width:76px;height:76px;object-fit:cover;border-radius:50%;background:#eef2f7;border:1px solid #d7e0e9}@media(max-width:480px){.owner-staff-tab{padding:10px 12px;font-size:13px}}


/* Make staff names and performance figures high-contrast and readable. */
#owner-staff-performance,
#owner-staff-performance .panel-heading,
#owner-staff-performance .panel-heading h2,
#owner-staff-performance .panel-heading p,
#owner-staff-performance table,
#owner-staff-performance table thead th,
#owner-staff-performance table tbody td {
  opacity: 1 !important;
  color: #18364d !important;
}
#owner-staff-performance table thead th {
  color: #38566d !important;
  font-weight: 800 !important;
  background: #eef7fc;
}
#owner-staff-performance table tbody tr {
  background: #fff !important;
}
#owner-staff-performance table tbody td {
  color: #29465b !important;
  font-weight: 600;
}
#owner-staff-performance table tbody td:first-child strong {
  display: inline-block;
  color: #102f49 !important;
  opacity: 1 !important;
  font-size: 14px;
  font-weight: 800 !important;
  letter-spacing: .01em;
}
#owner-staff-performance table tbody tr:nth-child(even) {
  background: #f6fbff !important;
}
#owner-staff-performance .muted {
  color: #526d80 !important;
  opacity: 1 !important;
}
body.dashboard-dark #owner-staff-performance,
body.dashboard-dark #owner-staff-performance table,
body.dashboard-dark #owner-staff-performance table tbody tr {
  background: #172838 !important;
}
body.dashboard-dark #owner-staff-performance table thead th {
  color: #d9efff !important;
  background: #203b50 !important;
}
body.dashboard-dark #owner-staff-performance table tbody td,
body.dashboard-dark #owner-staff-performance table tbody td:first-child strong {
  color: #f0f7fc !important;
}
body.dashboard-dark #owner-staff-performance .muted {
  color: #bfd0dc !important;
}


/* Final mobile workspace layout: keep navigation in the page, never fixed over content. */
@media(max-width:760px){#workspace-nav{position:relative!important;inset:auto!important;z-index:5!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;width:100%!important;margin:0 0 12px!important;padding:6px 0!important;background:transparent!important;box-shadow:none!important;border:0!important}#workspace-nav button{flex:0 0 auto!important;min-height:42px!important;padding:8px 11px!important}#pos-view{padding-bottom:12px!important}}
#workspace-nav{position:relative!important;bottom:auto!important}

/* Referral cashback card */
.referral-card{margin:14px 0 16px;border-color:#d9eefa;background:linear-gradient(145deg,#fff 0%,#f3faff 100%)}
.referral-card h2{margin:4px 0;color:#173b56}
.referral-card>.muted{margin:5px 0 14px}
.referral-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.referral-stats article{padding:11px;background:#fff;border:1px solid #e1edf5;border-radius:10px;min-width:0}
.referral-stats span{display:block;font-size:11px;color:#71899a}
.referral-stats strong{display:block;margin-top:5px;font-size:19px;color:#1676ad;overflow-wrap:anywhere}
.referral-share-row,.referral-withdraw-row{display:flex;gap:8px;margin-top:9px}
.referral-share-row input,.referral-withdraw-row input{flex:1;min-width:0;min-height:42px;border:1px solid #d7e0e9;border-radius:9px;padding:9px 11px;font:inherit;background:#fff}
@media(max-width:520px){.referral-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-share-row,.referral-withdraw-row{flex-direction:column}.referral-share-row button,.referral-withdraw-row button{width:100%}}


/* AURORA referral spotlight: always visible at the top of the owner dashboard */
.referral-card{position:relative;isolation:isolate;overflow:hidden;margin:12px 0 14px;padding:16px;border:1px solid transparent;background:linear-gradient(white,white) padding-box,linear-gradient(115deg,#ec4899,#8b5cf6,#22d3ee,#ec4899) border-box;box-shadow:0 8px 28px #8b5cf626;animation:aurora-referral-pulse 4.8s ease-in-out infinite}
.referral-card:before{content:"";position:absolute;inset:-45%;z-index:-1;background:linear-gradient(110deg,transparent 35%,#f9a8d433 48%,#a5f3fc55 53%,transparent 66%);transform:translateX(-35%);animation:aurora-referral-shimmer 5.5s ease-in-out infinite}
.referral-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.referral-heading h2{margin:3px 0;color:#55306e;font-size:19px}
.referral-heading>.muted{margin:4px 0 10px}
.referral-glow-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;color:#fff;font-size:24px;background:linear-gradient(135deg,#ec4899,#8b5cf6,#06b6d4);box-shadow:0 0 20px #c084fc88;animation:aurora-mark-glow 2.6s ease-in-out infinite}
.referral-share-row{display:flex;gap:8px;margin-top:7px}
.referral-share-row input,.referral-withdraw-row input{flex:1;min-width:0;min-height:44px;border:1px solid #e8d7ef;border-radius:10px;padding:9px 11px;font:inherit;background:#fff;color:#3b2850}
.referral-share-row button{background:linear-gradient(110deg,#d946ef,#8b5cf6,#0ea5e9);border:0;color:#fff;white-space:nowrap}
.referral-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:11px 0}
.referral-stats article{padding:9px;background:#ffffffd9;border:1px solid #f0e4f5;border-radius:10px;min-width:0}
.referral-stats span{display:block;font-size:10px;color:#806d8c}
.referral-stats strong{display:block;margin-top:4px;font-size:17px;color:#7042a0;overflow-wrap:anywhere}
.referral-withdraw-row{display:flex;gap:8px;margin-top:8px}
.referral-withdraw-row button{white-space:nowrap}
.referral-card #referral-message{margin:8px 0 0}
.today-sales-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin:0 0 10px;padding:12px 15px;border:0;border-radius:13px;background:linear-gradient(110deg,#ec4899,#f472b6,#fb7185);color:#fff;text-align:left;font:inherit;font-weight:800;box-shadow:0 7px 18px #ec489933;cursor:pointer}
.today-sales-toggle strong{font-size:12px;font-weight:700}
.today-sales-toggle.is-open strong span{display:inline-block;transform:rotate(180deg)}
.today-sales-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 12px}
.today-sales-details article{padding:12px;border:1px solid #f4c5dc;border-radius:11px;background:#fff7fb}
.today-sales-details article span{display:block;color:#9d5275;font-size:11px}
.today-sales-details article strong{display:block;margin-top:5px;color:#b83272;font-size:19px}
@keyframes aurora-referral-pulse{0%,100%{box-shadow:0 7px 22px #8b5cf61c,0 0 0 1px #ec48991a}50%{box-shadow:0 10px 32px #8b5cf64d,0 0 18px #22d3ee33}}
@keyframes aurora-referral-shimmer{0%,100%{transform:translateX(-35%);opacity:.25}50%{transform:translateX(35%);opacity:.8}}
@keyframes aurora-mark-glow{0%,100%{filter:saturate(.8);opacity:.75}50%{filter:saturate(1.35);opacity:1}}
@media(prefers-reduced-motion:reduce){.referral-card,.referral-card:before,.referral-glow-mark{animation:none}}
@media(max-width:520px){.referral-card{padding:13px}.referral-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-share-row,.referral-withdraw-row{flex-direction:column}.referral-share-row button,.referral-withdraw-row button{width:100%}.today-sales-details{grid-template-columns:1fr 1fr}}


@media(max-width:600px){.today-sales-toggle{display:inline-flex;width:auto;min-height:32px;gap:12px;margin:2px 0 7px;padding:6px 10px;border-radius:9px;font-size:12px;box-shadow:none}.today-sales-toggle strong{font-size:10px}.today-sales-details{margin:0 0 8px}.today-sales-details article{padding:8px}.today-sales-details article strong{font-size:16px}.referral-card{margin:6px 0 8px;padding:10px;border-radius:13px}.referral-card>.muted{margin:3px 0 7px;font-size:11px;line-height:1.3}.referral-card h2{font-size:15px}.referral-heading{gap:7px}.referral-stats{gap:5px;margin:7px 0}.referral-stats article{padding:6px 8px}.referral-stats span{font-size:10px}.referral-stats strong{font-size:15px;margin-top:2px}.referral-share-row,.referral-withdraw-row{flex-direction:row;gap:6px;margin-top:6px}.referral-share-row input,.referral-withdraw-row input{min-height:34px;padding:6px 8px;font-size:11px}.referral-share-row button,.referral-withdraw-row button{width:auto;min-height:34px;padding:6px 9px;font-size:11px;white-space:nowrap}#referral-message{margin:4px 0 0;font-size:10px}#owner-home>.owner-home-card{padding:10px;margin-bottom:0}#owner-home>.owner-home-card h1{font-size:17px;margin:2px 0}#owner-home>.owner-home-card p{font-size:10px;margin:0}#owner-home-issue{min-height:38px;padding:8px 10px}}


/* Receipts screen: a restrained, softly moving aurora with distinct action cards. */
#receipts-home{
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  border:1px solid rgba(174,205,230,.48)!important;
  background:linear-gradient(135deg,rgba(250,253,255,.98),rgba(247,250,255,.96),rgba(255,250,246,.97))!important;
}
#receipts-home:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-35% -20%;
  pointer-events:none;
  background:linear-gradient(112deg,transparent 24%,rgba(117,190,220,.10) 38%,rgba(167,145,220,.13) 49%,rgba(245,184,150,.10) 59%,transparent 74%);
  transform:translateX(-22%) rotate(-5deg);
  animation:receipt-aurora-drift 9s ease-in-out infinite alternate;
}
#receipts-home:after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 12% 8%,rgba(115,190,220,.10),transparent 43%),radial-gradient(ellipse at 88% 92%,rgba(226,166,128,.09),transparent 42%);
  animation:receipt-aurora-fade 7s ease-in-out infinite alternate;
}
#receipts-home .section-head,
#receipts-home #staff-sales-summary,
#receipts-home .receipt-actions-grid{position:relative;z-index:1}
#receipts-home .receipt-actions-grid{gap:12px!important}
#receipts-home .receipt-choice{
  box-sizing:border-box;
  min-height:126px!important;
  border-radius:16px!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:7px;
  text-align:left;
  transition:box-shadow .35s ease,background-color .35s ease,transform .35s ease;
}
#receipts-home #open-issue-receipt{
  color:#554a39!important;
  border:1px solid #e9dfc9!important;
  background:#f5efdf!important;
  box-shadow:0 7px 18px rgba(143,119,76,.09)!important;
}
#receipts-home #open-issue-receipt>span{color:#9c8254!important}
#receipts-home #open-issue-receipt strong{color:#51452f!important}
#receipts-home #open-issue-receipt small{color:#786d58!important}
#receipts-home #open-recover-receipt{
  color:#754b32!important;
  border:1px solid rgba(226,151,99,.38)!important;
  background:linear-gradient(115deg,rgba(255,238,220,.82),rgba(255,218,190,.68),rgba(255,245,229,.82))!important;
  box-shadow:0 7px 20px rgba(217,133,79,.10)!important;
  animation:recover-orange-breathe 5.5s ease-in-out infinite;
}
#receipts-home #open-recover-receipt>span{color:#c77b45!important}
#receipts-home #open-recover-receipt strong{color:#794b2c!important}
#receipts-home #open-recover-receipt small{color:#966c50!important}
#receipts-home .receipt-choice:active{transform:scale(.985)}
@keyframes receipt-aurora-drift{0%{transform:translateX(-24%) rotate(-5deg);opacity:.45}50%{opacity:.9}100%{transform:translateX(24%) rotate(-5deg);opacity:.5}}
@keyframes receipt-aurora-fade{0%{opacity:.35}100%{opacity:.85}}
@keyframes recover-orange-breathe{0%,100%{background-color:rgba(255,235,216,.68);box-shadow:0 6px 16px rgba(217,133,79,.07)}50%{background-color:rgba(255,218,190,.88);box-shadow:0 9px 22px rgba(217,133,79,.15)}}
@media(max-width:600px){
  #receipts-home{padding:12px!important;border-radius:16px!important}
  #receipts-home .receipt-actions-grid{grid-template-columns:1fr!important;gap:10px!important}
  #receipts-home .receipt-choice{min-height:112px!important;padding:14px!important}
}
@media(prefers-reduced-motion:reduce){
  #receipts-home:before,#receipts-home:after,#receipts-home #open-recover-receipt{animation:none!important}
}

/* AURORA profile: three compact, softly animated sections */
@keyframes aurora-profile-glow{0%{background-position:0% 50%;filter:saturate(.9)}100%{background-position:100% 50%;filter:saturate(1.12)}}
@keyframes aurora-invite-glow{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){#profile-panel,#owner-dashboard-view>#owner-staff-area{animation:none}}

/* The three profile cards are separate siblings inside the profile workspace. */
#owner-dashboard-view.profile-workspace-mode{display:flex;flex-direction:column;gap:9px}
#owner-dashboard-view.profile-workspace-mode>#profile-panel{display:flex;flex-direction:column;gap:9px}
#owner-dashboard-view.profile-workspace-mode .profile-shop-card,#owner-dashboard-view.profile-workspace-mode .profile-account-summary{color:#243044}
#owner-dashboard-view.profile-workspace-mode>#owner-staff-area .panel{background:transparent;border:0;box-shadow:none;padding:4px}

/* Independent profile disclosure cards. */
#owner-dashboard-view.profile-workspace-mode .profile-card{margin:0!important}
#owner-dashboard-view.profile-workspace-mode .profile-card-summary{list-style:none;cursor:pointer}
#owner-dashboard-view.profile-workspace-mode .profile-card-summary::-webkit-details-marker{display:none}


/* Keep the AURORA header visually consistent on dashboard and nested pages. */
.topbar{position:sticky;top:0;z-index:1200;min-height:68px;height:auto;background:linear-gradient(115deg,#071d38,#075b74,#493b80,#087c79,#071d38);background-size:320% 320%;animation:auroraHeaderFlow 13s ease-in-out infinite;box-shadow:0 5px 26px rgba(42,220,208,.24),0 2px 18px rgba(132,102,255,.2);border-bottom:1px solid rgba(255,255,255,.24)}
.brand{font-size:clamp(20px,3vw,25px);font-weight:900;letter-spacing:.09em;text-shadow:0 0 16px rgba(139,255,244,.45),0 0 25px rgba(174,142,255,.32)}
.global-back-btn{margin-left:auto;min-height:40px;padding:8px 14px;border:1px solid rgba(255,255,255,.48);border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font:700 13px system-ui,sans-serif;backdrop-filter:blur(10px)}
@media(prefers-reduced-motion:reduce){.topbar{animation:none}}


/* Compact green subscription shortcuts on the home dashboard. */
.dashboard-payment-tabs{display:flex;gap:8px;align-items:center;margin:10px 0 12px}
.dashboard-payment-tab{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:1px solid rgba(35,132,83,.25);border-radius:13px;background:linear-gradient(135deg,#e5f8eb,#c9efd7);color:#17663c;padding:8px 12px;font:700 11px/1.2 system-ui,sans-serif;box-shadow:0 3px 10px rgba(25,120,70,.09);cursor:pointer}.dashboard-payment-tab small{font-size:9px;font-weight:600;opacity:.85}.dashboard-payment-intro{margin:0 0 10px;color:#37634a;font-size:11px;line-height:1.45}
.dashboard-payment-tab.active,.dashboard-payment-tab:focus-visible{background:linear-gradient(135deg,#16864e,#2caf6b);color:#fff;outline:none}
.dashboard-payment-panel{position:relative;margin:0 0 14px;padding:12px;border:1px solid #ccebd6;border-radius:16px;background:linear-gradient(145deg,#f4fff7,#fff);box-shadow:0 8px 24px rgba(31,115,69,.1)}
.dashboard-payment-panel .panel{margin:0;box-shadow:none;border:0;background:transparent;padding:4px}
.dashboard-payment-panel .panel-heading h2{font-size:16px}
.dashboard-payment-close{display:block;margin:0 0 8px auto;border:0;border-radius:999px;background:#e4f5e9;color:#17663c;padding:5px 10px;font-size:11px;font-weight:700}
@media(max-width:520px){.dashboard-payment-tabs{gap:6px}.dashboard-payment-tab{padding:7px 11px;font-size:10px}}

.dashboard-payment-tab.vendor-access-tab{background:linear-gradient(135deg,#f0e9ff,#ded2ff);border-color:rgba(119,83,190,.28);color:#56358c}.dashboard-payment-tab.vendor-access-tab.active,.dashboard-payment-tab.vendor-access-tab:focus-visible{background:linear-gradient(135deg,#6945a8,#9270d5);color:#fff}


/* AURORA dashboard correction: keep the home screen compact and self-contained. */
body.workspace-active #owner-home{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr) auto auto!important;
  align-content:stretch!important;
  gap:7px!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  padding:0 2px 3px!important;
}
body.workspace-active #owner-home>*{min-width:0!important;width:100%!important;margin:0!important}
body.workspace-active #owner-home>.owner-home-card{
  padding:9px 12px!important;border-radius:12px!important;
}
body.workspace-active #owner-home>.owner-home-card .eyebrow{font-size:9px!important;margin:0 0 2px!important}
body.workspace-active #owner-home>.owner-home-card h1{font-size:17px!important;line-height:1.2!important;margin:0!important}
body.workspace-active #owner-home>.owner-home-card p{font-size:10px!important;line-height:1.25!important;margin:3px 0 0!important}
body.workspace-active .dashboard-payment-tabs{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0!important;
}
body.workspace-active .dashboard-payment-tab{
  min-height:48px!important;padding:6px 4px!important;border-radius:10px!important;gap:2px!important;
}
body.workspace-active .dashboard-payment-tab strong{font-size:10px!important;line-height:1.1!important}
body.workspace-active .dashboard-payment-tab small{font-size:9px!important;line-height:1.1!important}
body.workspace-active #dashboard-payment-panel{max-height:42vh!important;overflow-y:auto!important}
body.workspace-active #referral-card{
  min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;gap:5px!important;
  margin:0!important;padding:9px 10px!important;border-radius:13px!important;
}
body.workspace-active #referral-card .referral-heading{gap:5px!important;align-items:center!important}
body.workspace-active #referral-card .referral-heading>div{min-width:0!important}
body.workspace-active #referral-card .eyebrow{font-size:9px!important;margin:0!important}
body.workspace-active #referral-card h2{font-size:14px!important;line-height:1.15!important;margin:2px 0!important}
body.workspace-active #referral-card .referral-heading .muted{font-size:10px!important;line-height:1.25!important;margin:2px 0!important}
body.workspace-active #referral-card .referral-glow-mark{width:28px!important;height:28px!important;flex-basis:28px!important;font-size:16px!important;border-radius:9px!important}
body.workspace-active #referral-card .referral-share-row{gap:5px!important;margin:2px 0!important}
body.workspace-active #referral-card .referral-share-row input{min-width:0!important;min-height:30px!important;padding:5px 7px!important;font-size:10px!important}
body.workspace-active #referral-card .referral-share-row button{min-height:30px!important;padding:5px 8px!important;font-size:10px!important}
body.workspace-active #referral-card .referral-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:2px 0!important}
body.workspace-active #referral-card .referral-stats article{padding:5px 7px!important;border-radius:8px!important}
body.workspace-active #referral-card .referral-stats span{font-size:9px!important;line-height:1.1!important}
body.workspace-active #referral-card .referral-stats strong{font-size:14px!important;margin-top:2px!important;line-height:1.1!important}
body.workspace-active #referral-card .referral-redemption-panel{min-height:0!important;gap:7px!important;margin:2px 0!important;padding:7px 8px!important;border-radius:9px!important}
body.workspace-active #referral-card .referral-redemption-panel>div{font-size:9px!important;gap:1px!important}
body.workspace-active #referral-card .referral-redemption-panel>div strong{font-size:19px!important}
body.workspace-active #referral-card #referral-redeem{min-height:34px!important;padding:6px 9px!important;font-size:10px!important}
body.workspace-active #referral-card #referral-message{font-size:9px!important;line-height:1.15!important;margin:1px 0 0!important}
body.workspace-active #referral-card .referral-history{display:none!important}
body.workspace-active #today-sales-toggle{min-height:32px!important;padding:6px 10px!important;margin:0!important;font-size:11px!important}
body.workspace-active #owner-home-issue{min-height:38px!important;padding:7px 10px!important;font-size:12px!important}
body.workspace-active #today-sales-details.hidden,
body.workspace-active #dashboard-payment-panel.hidden{display:none!important}
@media(max-width:390px){
 body.workspace-active #owner-home{gap:5px!important}
 body.workspace-active #referral-card{padding:7px 8px!important}
 body.workspace-active #referral-card .referral-heading .muted{font-size:9px!important}
 body.workspace-active #referral-card .referral-stats strong{font-size:13px!important}
 body.workspace-active #referral-card .referral-redemption-panel{flex-wrap:nowrap!important}
 body.workspace-active #referral-card #referral-redeem{font-size:9px!important;padding:5px 7px!important}
}


/* Strict tab isolation. Several workspace roots use display:...!important;
   so a plain .hidden class alone cannot override their layout declarations. */
body.workspace-active #owner-home.hidden,
body.workspace-active #receipts-home.hidden,
body.workspace-active #pos-view.hidden,
body.workspace-active #owner-dashboard-view.hidden,
body.workspace-active #shop-home.hidden,
body.workspace-active #dashboard-business-card.hidden,
body.workspace-active #platform-referral-admin.hidden,
body.workspace-active #staff-sales-summary.hidden,
body.workspace-active #staff-profile-panel.hidden,
body.workspace-active #profile-panel.hidden,
body.workspace-active #history-panel.hidden,
body.workspace-active #owner-customers-section.hidden,
body.workspace-active .customer-lookup-panel.hidden,
body.workspace-active #account-profile-menu.hidden {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.workspace-active #owner-home:not(.hidden),
body.workspace-active #receipts-home:not(.hidden),
body.workspace-active #pos-view:not(.hidden),
body.workspace-active #shop-home:not(.hidden),
body.workspace-active #owner-dashboard-view.profile-workspace-mode:not(.hidden) {
  visibility:visible!important;
  pointer-events:auto!important;
}


/* HARD PAGE ISOLATION: prevent layout-specific display rules from leaking other tabs.
   Profile is nested in the legacy dashboard container; POS also contains legacy CRM/history panels. */
html body.workspace-active .shell > #owner-home.hidden,
html body.workspace-active .shell > #receipts-home.hidden,
html body.workspace-active .shell > #shop-home.hidden,
html body.workspace-active .shell > #platform-referral-admin.hidden,
html body.workspace-active .shell > #dashboard-business-card.hidden,
html body.workspace-active .shell > #pos-view.hidden,
html body.workspace-active .shell > #owner-dashboard-view.hidden,
html body.workspace-active .shell > #staff-profile-panel.hidden,
html body.workspace-active .shell > #account-profile-menu.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The issue-receipt screen must not append history, CRM or customer-lookup pages underneath it. */
html body.workspace-active #pos-view.workspace-issue-mode > #history-panel,
html body.workspace-active #pos-view.workspace-issue-mode > #owner-customers-section,
html body.workspace-active #pos-view.workspace-issue-mode > .customer-lookup-panel {
  display: none !important;
}

/* Profile mode contains only the three profile cards, never the analytics dashboard below them. */
html body.workspace-active #owner-dashboard-view.profile-workspace-mode > :not(#profile-panel):not(#owner-staff-area) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html body.workspace-active #owner-dashboard-view.profile-workspace-mode > #profile-panel.hidden,
html body.workspace-active #owner-dashboard-view.profile-workspace-mode > #owner-staff-area.hidden {
  display: none !important;
}


/* Compact receipt-history shortcut beneath Issue / Recover actions. */
.receipt-history-panel{margin:12px 0 0}
.receipt-history-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 15px;border:0;border-radius:10px;background:linear-gradient(110deg,#ec4899,#f472b6,#fb7185);color:#fff;font:inherit;font-size:12px;font-weight:800;box-shadow:0 5px 14px #ec489933;cursor:pointer}
.receipt-history-toggle:active{transform:scale(.985)}
#history-content.history-panel{margin-top:10px}
#history-content.history-panel.hidden{display:none!important}


/* Keep the Receipt workspace scrollable so the history shortcut below the two action cards is reachable on phones. */
html body.workspace-active #receipts-home:not(.hidden){overflow-y:auto!important;overflow-x:hidden!important;max-height:100%!important;min-height:0!important;padding-bottom:18px!important}
html body.workspace-active #receipts-home .receipt-history-panel{display:block!important;position:relative!important;z-index:5!important;margin:12px 0 8px!important;visibility:visible!important}
html body.workspace-active #receipts-home .receipt-history-toggle{display:inline-flex!important;visibility:visible!important;min-height:40px!important;padding:9px 15px!important;font-size:12px!important}


/* Elegant animated aurora wordmark for the platform header. */
.topbar .brand{
  display:inline-flex;
  align-items:center;
  min-height:68px;
  max-width:calc(100vw - 28px);
  text-decoration:none;
  font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;
  font-size:clamp(14px,3.25vw,23px);
  font-weight:950;
  letter-spacing:clamp(.035em,.22vw,.105em);
  line-height:1.15;
  white-space:nowrap;
  color:#fff;
  background:linear-gradient(100deg,#fff 0%,#8ffcff 18%,#c6a7ff 38%,#fff0a8 56%,#8fffd9 76%,#fff 100%);
  background-size:240% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:auroraWordmarkFlow 6s linear infinite,auroraWordmarkGlow 3.2s ease-in-out infinite;
}
@keyframes auroraWordmarkFlow{0%{background-position:0% center}100%{background-position:240% center}}
@keyframes auroraWordmarkGlow{
  0%,100%{filter:brightness(.78);text-shadow:0 0 2px rgba(0,0,0,.85);opacity:.88}
  50%{filter:brightness(1.5);text-shadow:0 0 5px #fff,0 0 13px #55f5ef,0 0 25px #a78bfa,0 0 36px #fb70d5;opacity:1}
}
@media(max-width:380px){.topbar .brand{font-size:12px;letter-spacing:.025em}}
@media(prefers-reduced-motion:reduce){.topbar .brand{animation:none;filter:none;text-shadow:0 0 10px rgba(143,252,255,.55)}}


/* Second-hand phone seller declaration card and compact evidence form. */
.secondhand-entry-card{width:100%;display:flex;align-items:center;gap:13px;margin:13px 0 0;padding:16px;text-align:left;border:1px solid rgba(91,73,168,.22);border-radius:17px;background:linear-gradient(120deg,#f2edff 0%,#e6f9ff 52%,#fff0f6 100%);box-shadow:0 8px 22px rgba(69,80,150,.10);color:#25314b;cursor:pointer}
.secondhand-entry-card:active{transform:scale(.99)}
.secondhand-entry-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#6656bd,#219eaa);font-size:22px;box-shadow:0 5px 15px #4c55a333}
.secondhand-entry-copy{display:grid;gap:5px;min-width:0}
.secondhand-entry-copy strong{font-size:13px;font-weight:850;line-height:1.3}
.secondhand-entry-copy small{font-size:11px;line-height:1.45;color:#657087}
.secondhand-entry-arrow{margin-left:auto;font-size:28px;color:#6958ad}
.secondhand-panel{max-width:780px;margin:0 auto;padding:12px 0 28px}
.secondhand-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.secondhand-panel-heading h2{margin:3px 0;font-size:20px}
.secondhand-panel-heading .btn{white-space:nowrap;min-height:36px;padding:7px 10px;font-size:11px}
.secondhand-warning{margin:10px 0 14px;padding:12px 14px;border:1px solid #f0d59a;border-radius:12px;background:#fff8e8;color:#79541b;font-size:12px;line-height:1.5}
.secondhand-form{display:grid;gap:12px}
.secondhand-form fieldset{min-width:0;margin:0;padding:13px;border:1px solid #dfe6f0;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 4px 15px rgba(30,52,88,.045)}
.secondhand-form legend{padding:0 7px;color:#45558b;font-size:12px;font-weight:850;letter-spacing:.035em}
.secondhand-form label{display:grid;gap:6px;margin:8px 0;color:#35435a;font-size:11px;font-weight:700}
.secondhand-form input:not([type=file]):not([type=checkbox]),.secondhand-form select,.secondhand-form textarea{box-sizing:border-box;width:100%;min-height:40px;padding:9px 10px;border:1px solid #d8e0ec;border-radius:9px;background:#fbfcff;color:#1d2a3d;font:500 13px system-ui,sans-serif}
.secondhand-form input[type=file]{width:100%;font-size:11px;color:#536176}
.secondhand-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.secondhand-legal-copy{padding:12px;border-radius:10px;background:#f4f6fb;color:#3d4b62;font-size:12px;line-height:1.65}
.secondhand-consent{display:flex!important;grid-template-columns:20px 1fr;align-items:start;gap:9px!important;line-height:1.5}
.secondhand-consent input{width:18px;height:18px;margin:1px 0 0;accent-color:#6555b8}
.secondhand-pad-wrap{margin:12px 0}
.secondhand-pad-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;color:#34435d;font-size:12px}
.secondhand-pad{display:block;width:100%;height:118px;border:1px dashed #9daac0;border-radius:10px;background:repeating-linear-gradient(0deg,#fff,#fff 29px,#f1f4f9 30px);touch-action:none;cursor:crosshair}
.secondhand-biometric-status{padding:10px 12px;border-radius:10px;background:#f2f4f8;color:#4b5870;font-size:11px;line-height:1.5}
.secondhand-biometric-status.available{background:#e9f8ef;color:#206743}
.secondhand-photo-preview{display:block;max-width:180px;max-height:130px;object-fit:contain;padding:4px;border:1px solid #dce3ed;border-radius:9px;background:#fff}
.secondhand-history-tools{margin:14px 0}
.secondhand-history{display:grid;gap:8px}
.secondhand-history-row{display:grid;gap:4px;width:100%;padding:11px;text-align:left;border:1px solid #e0e6ef;border-radius:11px;background:#fff;color:#27364d}
.secondhand-history-row strong{font-size:12px}.secondhand-history-row span,.secondhand-history-row small{font-size:10px;color:#66738a}
.secondhand-saved-record{margin-top:14px}
.secondhand-record-print{padding:18px;border:1px solid #dce3ed;border-radius:13px;background:#fff;color:#1c293b}
.secondhand-record-head{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:2px solid #243c68;padding-bottom:10px}
.secondhand-record-head h2{font-size:17px;margin:3px 0}
.secondhand-record-stamp{padding:7px 10px;border:2px solid #21835c;border-radius:7px;color:#21835c;font-size:11px;font-weight:900;transform:rotate(-5deg)}
.secondhand-record-print h3{margin:16px 0 6px;font-size:13px;color:#304b79}
.secondhand-record-print p{font-size:11px;line-height:1.55;margin:5px 0}
.secondhand-record-images,.secondhand-record-signatures{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.secondhand-record-images figure,.secondhand-record-signatures figure{display:grid;gap:5px;margin:0;max-width:180px;font-size:10px}
.secondhand-record-images img{max-width:170px;max-height:130px;object-fit:contain;border:1px solid #e0e5ed;border-radius:6px}
.secondhand-record-signatures img{width:170px;height:65px;object-fit:contain;border:1px solid #dce3ed;border-radius:6px;background:#fff}
@media(max-width:520px){.secondhand-fields{grid-template-columns:1fr;gap:2px}.secondhand-panel-heading{align-items:flex-start;flex-direction:column}.secondhand-panel-heading .btn{align-self:flex-start}.secondhand-form fieldset{padding:11px}.secondhand-entry-card{padding:13px}}
@media print{
  body *{visibility:hidden!important}
  #secondhand-saved-record,#secondhand-saved-record *{visibility:visible!important}
  #secondhand-saved-record{display:block!important;position:absolute!important;inset:0!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important}
  #secondhand-saved-record .secondhand-record-print{border:0!important;box-shadow:none!important;padding:0!important}
  #secondhand-saved-record #secondhand-print-button{display:none!important}
}


/* The seller declaration is a long, guided form inside the Shop workspace; keep it scrollable on phones. */
html body.workspace-active #shop-home.shop-home:not(.hidden){overflow-y:auto!important;overflow-x:hidden!important;max-height:100%!important;min-height:0!important;padding-bottom:20px!important;overscroll-behavior:contain}


/* Small-print liability notice printed on every second-hand phone declaration receipt. */
.secondhand-receipt-notice{margin:14px 0 8px;padding:9px 11px;border:1px solid #d9dce5;border-radius:7px;background:#f7f7fa;color:#30384a;font-size:9px;line-height:1.5;text-align:justify}
.secondhand-receipt-notice strong{font-size:9px;letter-spacing:.025em}
@media print{.secondhand-receipt-notice{break-inside:avoid;background:#fff!important;border:1px solid #999!important;color:#111!important;font-size:8.5px!important}}


.secondhand-record-images figure{min-width:0;max-width:100%}.secondhand-record-images img{max-width:100%;height:auto;object-fit:contain}.secondhand-receipt-mode-note{font-size:12px;color:#64748b}

.secondhand-receipt-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.secondhand-receipt-option{display:flex;align-items:flex-start;gap:8px;padding:12px 10px;border:1px solid var(--border,#d9e1eb);border-radius:12px;min-width:0;cursor:pointer;transition:border-color .35s ease,box-shadow .35s ease,filter .35s ease;animation:secondhandTabAura 3.8s ease-in-out infinite alternate}.secondhand-receipt-option:first-child{background:linear-gradient(135deg,rgba(255,220,237,.94),rgba(255,241,248,.78));border-color:#f2a9ce}.secondhand-receipt-option:last-child{background:linear-gradient(135deg,rgba(211,239,255,.96),rgba(235,249,255,.82));border-color:#8dcdf3;animation-delay:1.2s}.secondhand-receipt-option input{flex:0 0 auto;margin-top:3px}.secondhand-receipt-option span{display:grid;gap:5px;min-width:0}.secondhand-receipt-option strong{font-size:11px;line-height:1.3}.secondhand-receipt-option small{font-size:11px;line-height:1.4;color:var(--muted,#64748b)}.secondhand-receipt-option.selected:first-child{border-color:#e75b9e;box-shadow:inset 0 0 0 1px #e75b9e,0 0 13px rgba(231,91,158,.2)}.secondhand-receipt-option.selected:last-child{border-color:#299bdc;box-shadow:inset 0 0 0 1px #299bdc,0 0 13px rgba(41,155,220,.2)}@keyframes secondhandTabAura{from{filter:saturate(.88);background-position:0% 50%}to{filter:saturate(1.18);background-position:100% 50%}}.secondhand-declaration-copy{margin:0 0 10px;border:1px solid transparent;transition:background .35s ease,box-shadow .35s ease}.secondhand-declaration-pink{background:linear-gradient(125deg,rgba(255,226,240,.96),rgba(255,243,249,.92));border-color:#f0a6c9;box-shadow:0 0 15px rgba(239,116,174,.12);animation:secondhandDeclarationPink 4s ease-in-out infinite alternate}.secondhand-declaration-blue{background:linear-gradient(125deg,rgba(218,241,255,.98),rgba(240,250,255,.94));border-color:#9bd4f5;box-shadow:0 0 15px rgba(77,174,229,.12);animation:secondhandDeclarationBlue 4s ease-in-out infinite alternate}@keyframes secondhandDeclarationPink{from{filter:saturate(.92);box-shadow:0 0 8px rgba(239,116,174,.10)}to{filter:saturate(1.12);box-shadow:0 0 18px rgba(239,116,174,.24)}}@keyframes secondhandDeclarationBlue{from{filter:saturate(.92);box-shadow:0 0 8px rgba(77,174,229,.10)}to{filter:saturate(1.12);box-shadow:0 0 18px rgba(77,174,229,.24)}}@media(prefers-reduced-motion:reduce){.secondhand-receipt-option,.secondhand-declaration-copy{animation:none}}@media(max-width:420px){.secondhand-receipt-options{gap:6px}.secondhand-receipt-option{padding:9px 7px}.secondhand-receipt-option strong{font-size:10px}}

.dashboard-payment-tabs{flex-wrap:wrap;align-items:stretch}
.dashboard-payment-tab{flex:1 1 145px;min-height:52px;justify-content:center}
#dashboard-payment-panel .stack{max-width:520px;margin:0 auto}
#dashboard-payment-panel input[readonly]{font-weight:800;font-size:18px;color:#075bd8;background:#f2f7ff;border:1px solid #cbdcf7}
#dashboard-payment-panel input[type=tel],#dashboard-payment-panel input[type=number]{min-height:44px}

/* Compact, isolated Issue Receipt flow: only its own screen is visible. */
html body.workspace-active #pos-view.workspace-issue-mode > :not(.page-heading):not(#notice):not(.pos-grid){display:none!important;visibility:hidden!important;pointer-events:none!important}
html body.workspace-active #pos-view.workspace-issue-mode .pos-grid > :not(.cart-panel){display:none!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel{display:block!important;width:100%!important;max-width:680px!important;margin:0 auto!important}
.simple-sale-item-form{display:grid;gap:10px}
.simple-serial-row,.simple-cart-serial{display:flex;gap:7px;align-items:center}
.simple-serial-row input,.simple-cart-serial input{flex:1;min-width:0}
.add-sale-product-btn{justify-self:start;min-height:34px;padding:6px 14px!important;font-size:12px!important}
.simple-cart-row{padding:10px 0!important}
.simple-cart-serial{margin-top:7px}
.simple-cart-serial input{min-height:34px;font-size:12px}
#add-another-item{min-height:34px!important;padding:6px 10px!important;font-size:12px!important}
#checkout-open{margin-top:10px}
#product-modal .modal-card{max-width:440px!important}


/* Issue Receipt: keep the customer-details action a compact button, never a full-width blue bar. */
html body.workspace-active #pos-view.workspace-issue-mode #checkout-open.compact-next-btn{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:max-content!important;min-height:36px!important;padding:8px 15px!important;margin:12px 0 0!important;border-radius:10px!important;font-size:13px!important;line-height:1.2!important;flex:0 0 auto!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .totals{margin-bottom:8px!important}


/* Dedicated Subscription workspace: isolated from Dashboard and other tabs. */
html body.workspace-active #subscription-home.hidden{display:none!important;visibility:hidden!important;pointer-events:none!important}
html body.workspace-active #subscription-home:not(.hidden){display:block!important;visibility:visible!important;pointer-events:auto!important;max-width:760px!important;margin:0 auto!important;overflow-y:auto!important;max-height:100%!important;padding:12px 0 24px!important}
.subscription-heading{margin:4px 0 14px;padding:15px;border:1px solid #dce6f4;border-radius:15px;background:linear-gradient(120deg,#eef6ff,#f8f2ff,#effcff)}
.subscription-heading h1{margin:3px 0 5px;font-size:21px}
#subscription-home .dashboard-payment-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}
#subscription-home .dashboard-payment-tab{min-width:0;min-height:62px;padding:11px;text-align:left;border-radius:12px}
#subscription-home #dashboard-payment-panel{margin-top:10px}
@media(max-width:390px){#subscription-home .dashboard-payment-tab{padding:9px;font-size:11px}}


/* Receipt builder: product entry opens from a compact Add Product tab. */
html body.workspace-active #pos-view.workspace-issue-mode .receipt-add-product-tab{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:40px!important;max-width:max-content!important;margin:2px 0 12px!important;padding:9px 15px!important;border:1px solid #c9d8eb!important;border-radius:11px!important;background:#f4f8ff!important;color:#174b83!important;font-weight:700!important}
html body.workspace-active #pos-view.workspace-issue-mode #product-form.hidden{display:none!important}
html body.workspace-active #pos-view.workspace-issue-mode #product-form:not(.hidden){display:grid!important;padding:13px!important;margin:0 0 14px!important;border:1px solid #dce6f4!important;border-radius:14px!important;background:#f8fbff!important}
html body.workspace-active #pos-view.workspace-issue-mode #cart-list{margin-top:8px!important}
html body.workspace-active #pos-view.workspace-issue-mode #checkout-open{margin-top:14px!important}


/* Subscription shortcut lives with the business heading, not in the main tab strip. */
.owner-home-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.owner-home-topline .eyebrow{margin:0}
.owner-subscription-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid rgba(72,151,205,.38);border-radius:999px;background:linear-gradient(115deg,#eaf6ff,#f3edff,#e8fbf6);color:#185783;font:inherit;font-size:12px;font-weight:800;box-shadow:0 3px 12px rgba(51,117,166,.12);cursor:pointer;transition:filter .25s ease,transform .25s ease}
.owner-subscription-tab>span:first-child{font-size:14px;color:#7c63c8}
.owner-subscription-tab:hover{filter:saturate(1.2);transform:translateY(-1px)}
.owner-subscription-arrow{font-size:13px;opacity:.75}
@media(max-width:420px){.owner-home-topline{gap:7px}.owner-subscription-tab{min-height:32px;padding:6px 10px;font-size:11px}}
/* Keep the last card/action clear of navigation and phone safe-area edges. */
@media(max-width:760px){
  #owner-home,#subscription-home,#receipts-home,#shop-home,#owner-dashboard-view,#pos-view{box-sizing:border-box;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  #workspace-nav{margin-bottom:14px!important}
}


/* AURORA receipt workflow: compact paired actions below Product Details. */
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important;margin:2px 0 10px!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open,
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #receipt-add-product-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:32px!important;margin:0!important;padding:6px 11px!important;border-radius:9px!important;font-size:11px!important;line-height:1.2!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #receipt-add-product-toggle{border:1px solid #c9d8eb!important;background:#f4f8ff!important;color:#174b83!important;font-weight:750!important} html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open{min-height:29px!important;padding:5px 13px!important;font-size:11px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .section-head{margin-bottom:10px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .section-head h2{font-size:19px!important;margin:0!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .section-head .eyebrow{font-size:9px!important;margin:0 0 3px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .cart-list{min-height:44px!important;max-height:min(27vh,220px)!important;overflow-y:auto!important}
html body.workspace-active #pos-view.workspace-issue-mode #product-form:not(.hidden){max-height:42vh!important;overflow-y:auto!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading{margin:0 0 8px!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading h1{font-size:20px!important;margin:3px 0!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading .muted{font-size:11px!important;margin:3px 0!important}
html body.workspace-active #pos-view.workspace-issue-mode .pos-grid{display:block!important;min-height:0!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel{padding:12px!important}
html body.workspace-active #pos-view.workspace-issue-mode .totals{margin:8px 0 10px!important;padding-top:7px!important}
html body.workspace-active #pos-view.workspace-issue-mode .totals>div,
html body.workspace-active #pos-view.workspace-issue-mode .totals .discount-line{margin:5px 0!important}
html body.workspace-active #pos-view.workspace-issue-mode .tiny{margin-top:5px!important}

/* Dashboard keeps its Issue Receipt action visible in the available screen height. */
body.workspace-active #owner-home{grid-template-rows:auto minmax(0,1fr) auto!important;gap:7px!important}
body.workspace-active #owner-home>#owner-home-issue{display:flex!important;visibility:visible!important;position:relative!important;z-index:2!important;align-self:end!important;width:100%!important}
body.workspace-active #owner-home>#referral-card{min-height:0!important;height:auto!important;max-height:100%!important}
body.workspace-active .shell{padding-bottom:0!important}
body.workspace-active #workspace-nav{flex:0 0 auto!important;position:relative!important;top:auto!important;max-height:58px!important;overflow:hidden!important}
body.workspace-active .shell>.bottom-nav{display:none!important}
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden),
html body.workspace-active #owner-dashboard-view.profile-workspace-mode:not(.hidden){
  flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #pos-view.workspace-issue-mode{display:block!important}
@media(max-width:760px){
 html body.workspace-active .shell{height:calc(100dvh - 64px - 70px)!important;min-height:0!important;padding:8px 10px 0!important;gap:5px!important}
 html body.workspace-active #workspace-nav{margin:0!important;padding:4px 0!important}
 html body.workspace-active #pos-view.workspace-issue-mode .page-heading>div{display:grid!important;grid-template-columns:auto 1fr;align-items:center;column-gap:9px!important}
 html body.workspace-active #pos-view.workspace-issue-mode .page-heading>div #back-to-receipts{grid-row:1 / span 3!important;grid-column:1!important;min-height:34px!important;padding:6px 9px!important;font-size:10px!important}
 html body.workspace-active #pos-view.workspace-issue-mode .page-heading .eyebrow,
 html body.workspace-active #pos-view.workspace-issue-mode .page-heading h1,
 html body.workspace-active #pos-view.workspace-issue-mode .page-heading .muted{grid-column:2!important}
}


/* Small green shortcut for recovering a second-hand goods declaration. */
.secondhand-recovery-shortcut{display:flex;justify-content:flex-start;margin:9px 0 4px;position:relative;z-index:2}
.secondhand-recovery-tab{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:6px 11px;border:1px solid #a9dfbf;border-radius:9px;background:linear-gradient(110deg,#e7fff0,#c9f3d8,#eafff0);color:#17683b;text-decoration:none;font-size:11px;font-weight:800;box-shadow:0 3px 10px rgba(32,140,77,.12);transition:filter .3s ease,box-shadow .3s ease}
.secondhand-recovery-tab:hover{filter:brightness(1.04);box-shadow:0 5px 14px rgba(32,140,77,.2)}
@media(prefers-reduced-motion:no-preference){.secondhand-recovery-tab{animation:secondhandRecoveryFade 6s ease-in-out infinite}}
@keyframes secondhandRecoveryFade{0%,100%{filter:brightness(.96)}50%{filter:brightness(1.08)}}


/* Compact green Next tab directly below Add Product on the issue-receipt page */
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;margin:2px 0 8px!important;padding:0!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:max-content!important;min-height:24px!important;height:24px!important;padding:3px 10px!important;margin:0 0 0 2px!important;border:1px solid #16834b!important;border-radius:7px!important;background:#16a05a!important;color:#fff!important;font-size:10px!important;font-weight:750!important;line-height:1!important;box-shadow:0 2px 5px rgba(22,160,90,.16)!important;flex:0 0 auto!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn:disabled{opacity:.48!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #receipt-add-product-toggle{min-height:29px!important;height:29px!important;padding:5px 10px!important;margin:0!important;font-size:10px!important;border-radius:8px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel{padding:10px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .section-head{margin-bottom:7px!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading{margin:0 0 5px!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading h1{font-size:18px!important}


/* Final Issue Receipt refinement: hide price summaries here (they remain calculated for the receipt),
   and make the customer-details action comfortably tappable without becoming a full-width bar. */
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .totals,
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel > .tiny{display:none!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;margin:3px 0 10px!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;max-width:100%!important;min-height:36px!important;height:36px!important;
  margin:0 0 0 2px!important;padding:8px 14px!important;border:1px solid #128348!important;border-radius:9px!important;
  background:linear-gradient(110deg,#159653,#20ad68)!important;color:#fff!important;
  font-size:12px!important;font-weight:800!important;line-height:1.15!important;letter-spacing:.01em!important;
  box-shadow:0 3px 8px rgba(22,145,78,.18)!important;flex:0 0 auto!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn:disabled{opacity:.5!important}


/* Final compact receipt actions: lift them closer to Product Details and keep both as small tabs. */
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .section-head{margin-bottom:5px!important}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:flex-start!important;gap:5px!important;margin:-2px 0 7px!important;padding:0!important;
  width:auto!important;max-width:100%!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #receipt-add-product-toggle,
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn{
  display:inline-flex!important;align-self:flex-start!important;flex:0 0 auto!important;
  width:auto!important;min-width:0!important;max-width:max-content!important;height:auto!important;
  min-height:32px!important;margin:0!important;padding:6px 11px!important;border-radius:8px!important;
  white-space:nowrap!important;font-size:11px!important;line-height:1.15!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn{
  min-height:34px!important;padding:7px 12px!important;background:#159653!important;
  border:1px solid #128348!important;color:#fff!important;font-weight:800!important;
  box-shadow:0 2px 7px rgba(22,145,78,.16)!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions #checkout-open.compact-next-btn:disabled{opacity:.48!important}
html body.workspace-active #pos-view.workspace-issue-mode .page-heading{margin-bottom:4px!important}

/* Keep added receipt goods visible above the continue action. */
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel > #receipt-add-product-toggle{display:inline-flex!important;width:auto!important;max-width:max-content!important;margin:0 0 8px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel > #cart-list{display:block!important;position:relative!important;z-index:1!important;overflow-y:auto!important;max-height:min(32vh,260px)!important;min-height:44px!important;margin:6px 0 10px!important;padding:4px!important;visibility:visible!important;opacity:1!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel > .receipt-product-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;margin:4px 0 8px!important;padding:0!important}
html body.workspace-active #pos-view.workspace-issue-mode #product-form .add-sale-product-btn{width:auto!important;min-width:0!important;max-width:max-content!important}

/* Cream Items on Loan card */
.loan-items-card{margin:14px 0;background:#fff8e8;border:1px solid #ead8b4;border-radius:16px;padding:0 16px;color:#55452d;box-shadow:0 5px 18px rgba(111,82,32,.07)}
.loan-items-card>summary{list-style:none;cursor:pointer;display:grid;gap:4px;padding:15px 2px}.loan-items-card>summary::-webkit-details-marker{display:none}.loan-items-card>summary strong{font-size:19px;color:#62491f}.loan-items-card>summary small{font-size:12px;color:#8a7653}.loan-card-body{padding:0 0 15px}.loan-item-form{display:grid;gap:10px}.loan-item-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#5f4c2d}.loan-item-form input,.loan-item-form textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #e3d4b6;border-radius:9px;padding:9px;background:#fffdf8;font:inherit}.loan-item-form .form-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.loan-items-list-head{display:flex;justify-content:space-between;align-items:center;margin:16px 0 8px}.loan-item-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0;border-top:1px solid #eadfc9}.loan-item-row>div:first-child{display:grid;gap:4px;min-width:0}.loan-item-row small{font-size:11px;color:#887653;overflow-wrap:anywhere}.loan-item-status{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;align-items:center}.loan-item-status span{font-size:11px;color:#946c27;font-weight:800}.loan-item-status b{font-size:11px;color:#26734b}@media(max-width:520px){.loan-item-form .form-two{grid-template-columns:1fr}.loan-item-row{align-items:flex-start;flex-direction:column}.loan-item-status{justify-content:flex-start}}

/* When Second-Hand Receipt is opened, show its form alone; keep the parent workspace visible. */
#receipts-home.secondhand-active>:not(.receipt-actions-grid){display:none!important}
#receipts-home.secondhand-active .receipt-actions-grid>:not(.declaration-card){display:none!important}
#receipts-home.secondhand-active .declaration-card{display:block!important;width:100%!important;grid-column:1/-1!important}
#receipts-home.secondhand-active .declaration-card>#secondhand-open-card{display:flex!important;width:100%!important}
#receipts-home.secondhand-active .declaration-card>#secondhand-panel{display:block!important;visibility:visible!important;opacity:1!important}

/* Keep the two second-hand receipt choices as separate, readable tabs. */
.secondhand-form .secondhand-receipt-options{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch;
  gap:8px;
  width:100%;
}
.secondhand-form label.secondhand-receipt-option{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:8px!important;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:0!important;
  padding:11px 9px;
  white-space:normal!important;
  overflow:hidden;
}
.secondhand-form .secondhand-receipt-option>input{
  flex:0 0 16px!important;
  width:16px!important;
  min-width:16px;
  height:16px;
  margin:2px 0 0!important;
}
.secondhand-form .secondhand-receipt-option>span{
  display:flex!important;
  flex:1 1 auto;
  flex-direction:column;
  gap:5px;
  min-width:0;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.secondhand-form .secondhand-receipt-option strong,
.secondhand-form .secondhand-receipt-option small{
  display:block;
  max-width:100%;
  white-space:normal!important;
  overflow-wrap:anywhere;
  line-height:1.4;
}
@media(max-width:380px){
  .secondhand-form .secondhand-receipt-options{grid-template-columns:1fr!important}
  .secondhand-form label.secondhand-receipt-option{padding:11px 12px}
}

/* Receipt status is a two-button landing screen; reveal the form only after a choice. */
.secondhand-receipt-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.secondhand-receipt-option{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;min-height:58px;padding:12px 8px!important;margin:0!important;border:1px solid #a9b8cc!important;border-radius:12px!important;font-size:13px!important;font-weight:850!important;letter-spacing:.02em;text-align:center!important;line-height:1.25!important;white-space:normal!important;color:#25314b!important;cursor:pointer}
.secondhand-receipt-option[data-secondhand-mode="with_receipt"]{background:#fff0f7!important;border-color:#e99bc1!important}
.secondhand-receipt-option[data-secondhand-mode="without_receipt"]{background:#eaf7ff!important;border-color:#91c9ed!important}
.secondhand-receipt-option.selected{outline:2px solid #4d70b5;outline-offset:2px}
.secondhand-form.hidden{display:none!important}
@media(max-width:380px){.secondhand-receipt-options{grid-template-columns:1fr!important}}

/* Hard-hide second-hand details until a receipt option is explicitly selected. */
#secondhand-form[hidden],#secondhand-form.hidden{display:none!important;visibility:hidden!important;}
#secondhand-form:not([hidden]){display:grid!important;visibility:visible!important;}


/* Subscription cards: authoritative rules loaded after dashboard.css base styles */
html body.workspace-active #subscription-home .subscription-choice-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important;margin:16px 0!important;width:100%!important}
html body.workspace-active #subscription-home .subscription-choice-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:19px!important;border:1px solid rgba(36,66,100,.14)!important;border-radius:21px!important;box-shadow:0 10px 28px rgba(26,54,93,.13)!important;background-size:250% 250%!important;overflow:hidden!important;animation:auroraSubscriptionFade 11s ease-in-out infinite!important}
html body.workspace-active #subscription-home .subscription-plan-card{background-image:linear-gradient(120deg,#d8eaff 0%,#a9d2ff 35%,#f0f7ff 70%,#b9d9ff 100%)!important}
html body.workspace-active #subscription-home .subscription-buy-card{background-image:linear-gradient(120deg,#d8f8e7 0%,#a4eac4 35%,#f0fff6 70%,#b5f0d0 100%)!important;animation-delay:-3.5s!important}
html body.workspace-active #subscription-home .subscription-balance-card{background-image:linear-gradient(120deg,#fff0d5 0%,#ffd28e 35%,#fff8e9 70%,#ffe0aa 100%)!important;animation-delay:-7s!important}
html body.workspace-active #subscription-home .subscription-choice-card h2{margin:0!important;font-size:21px!important;line-height:1.2!important;color:#142b46!important}
html body.workspace-active #subscription-home .subscription-choice-card>p:not(.eyebrow){margin:0!important;font-size:13px!important;line-height:1.45!important;color:#3b5269!important}
html body.workspace-active #subscription-home .subscription-choice-action{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:64px!important;box-sizing:border-box!important;padding:12px 14px!important;border:1px solid rgba(35,83,135,.17)!important;border-radius:13px!important;background:rgba(255,255,255,.82)!important;color:#153e67!important;text-align:left!important;white-space:normal!important}
html body.workspace-active #subscription-home .subscription-choice-action span{display:flex!important;flex-direction:column!important;gap:4px!important}
html body.workspace-active #subscription-home .subscription-choice-action strong{font-size:15px!important}
html body.workspace-active #subscription-home .subscription-choice-action small{font-size:12px!important}
html body.workspace-active #subscription-home .subscription-choice-action b{font-size:12px!important;white-space:nowrap!important}
html body.workspace-active #subscription-home .receipt-unit-price{display:flex!important;align-items:baseline!important;gap:8px!important}
html body.workspace-active #subscription-home .receipt-unit-price strong{font-size:34px!important;color:#12613d!important}
html body.workspace-active #subscription-home .subscription-main-action{display:block!important;width:100%!important;min-height:48px!important;margin-top:3px!important;padding:12px 15px!important;border:0!important;border-radius:13px!important;background:#16764b!important;color:#fff!important;font-weight:800!important}
html body.workspace-active #subscription-home .subscription-count-number{font-size:42px!important;font-weight:900!important;color:#78420a!important;line-height:1.1!important}
html body.workspace-active #subscription-home .subscription-count-meta{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:9px 0!important;font-size:13px!important}
html body.workspace-active #subscription-home .subscription-expiry-countdown{display:grid!important;gap:5px!important;padding:12px!important;border-radius:13px!important;background:rgba(255,255,255,.75)!important}
html body.workspace-active #subscription-home .subscription-expiry-countdown strong{font-size:18px!important;font-variant-numeric:tabular-nums!important}
html body.workspace-active #subscription-home .subscription-payment-view{max-width:520px!important;margin:10px auto!important;padding:18px!important;border:1px solid #d6e6f5!important;border-radius:19px!important;background:linear-gradient(145deg,#f7fbff,#e9f5ff)!important;box-shadow:0 12px 35px rgba(25,76,125,.12)!important}
@keyframes auroraSubscriptionFade{0%,100%{background-position:0% 50%;filter:saturate(.96) brightness(1)}50%{background-position:100% 50%;filter:saturate(1.12) brightness(1.035)}}
@media(prefers-reduced-motion:reduce){html body.workspace-active #subscription-home .subscription-choice-card{animation:none!important}}


/* Owner dashboard: remove excess vertical space and make the return action intentional. */
body.workspace-active #owner-home>.dashboard-login-return-row{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  min-height:0!important;margin:0 0 2px!important;padding:0!important;
}
body.workspace-active #owner-home .dashboard-back-to-login{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:36px!important;padding:7px 14px!important;margin:0!important;border-radius:12px!important;
  border:1px solid #b9d8ec!important;background:linear-gradient(135deg,#eaf6ff,#d6ebfb)!important;
  color:#20577d!important;font-size:12px!important;font-weight:800!important;
  box-shadow:0 3px 10px rgba(31,91,133,.08)!important;
}
body.workspace-active #owner-home>.owner-home-card{
  min-height:0!important;height:auto!important;max-height:none!important;
  padding:13px 15px!important;margin:0!important;border-radius:17px!important;
  box-shadow:0 5px 18px rgba(27,61,91,.07)!important;
}
body.workspace-active #owner-home>.owner-home-card .owner-home-topline{align-items:center!important;margin-bottom:8px!important}
body.workspace-active #owner-home>.owner-home-card .eyebrow{font-size:10px!important;letter-spacing:.15em!important}
body.workspace-active #owner-home>.owner-home-card h1{font-size:clamp(20px,4vw,25px)!important;line-height:1.2!important;margin:0!important}
body.workspace-active #owner-home>.owner-home-card p{font-size:13px!important;line-height:1.35!important;margin:4px 0 0!important}
body.workspace-active #owner-home>#referral-card{
  margin:0!important;border-radius:17px!important;padding:13px!important;
  box-shadow:0 6px 20px rgba(71,83,130,.09)!important;
}
@media(max-width:600px){
 body.workspace-active #owner-home>.dashboard-login-return-row{margin-top:-4px!important;margin-bottom:0!important}
 body.workspace-active #owner-home>.owner-home-card{padding:12px!important}
 body.workspace-active #owner-home>#referral-card{padding:11px!important}
}


/* AURORA owner home: clear hierarchy, concise rewards and no duplicate metrics. */
body.workspace-active #owner-home{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  align-content:initial!important;gap:10px!important;height:auto!important;min-height:0!important;
  max-height:none!important;overflow:visible!important;padding:0 2px 18px!important;
}
body.workspace-active #owner-home>.dashboard-login-return-row{
  order:0!important;display:flex!important;justify-content:flex-end!important;
  margin:0!important;padding:0!important;min-height:0!important
}
body.workspace-active #owner-home>.owner-home-card{
  order:1!important;display:block!important;min-height:0!important;height:auto!important;
  padding:15px 16px!important;border-radius:18px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f1f8ff 100%)!important;
  border:1px solid #dceaf4!important;box-shadow:0 8px 24px rgba(24,68,104,.08)!important
}
body.workspace-active #owner-home>.owner-home-card .owner-home-topline{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;margin:0 0 13px!important
}
body.workspace-active #owner-home>.owner-home-card .eyebrow{
  color:#4285c5!important;font-size:10px!important;letter-spacing:.14em!important;font-weight:850!important
}
body.workspace-active #owner-home>.owner-home-card h1{
  color:#172b40!important;font-size:clamp(22px,5vw,28px)!important;
  font-weight:850!important;line-height:1.16!important;margin:0!important
}
body.workspace-active #owner-home>.owner-home-card p{
  color:#728091!important;font-size:13px!important;line-height:1.35!important;margin:5px 0 0!important
}
body.workspace-active #owner-home .owner-subscription-tab{
  flex:0 0 auto!important;min-height:38px!important;padding:8px 13px!important;
  border-radius:999px!important;font-size:12px!important;font-weight:800!important;
  box-shadow:0 4px 12px rgba(65,113,160,.10)!important
}
body.workspace-active #owner-home>#referral-card{
  order:2!important;display:flex!important;flex-direction:column!important;gap:9px!important;
  height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
  padding:14px!important;margin:0!important;border:1px solid #e4e8f2!important;
  border-radius:18px!important;background:linear-gradient(145deg,#fff 0%,#f7f8ff 58%,#f1fbff 100%)!important;
  box-shadow:0 8px 24px rgba(58,66,116,.07)!important;animation:none!important
}
body.workspace-active #referral-card:before{display:none!important}
body.workspace-active #referral-card .referral-heading{align-items:center!important;gap:8px!important}
body.workspace-active #referral-card .referral-heading .eyebrow{font-size:10px!important;letter-spacing:.15em!important;margin:0 0 3px!important}
body.workspace-active #referral-card .referral-heading h2{font-size:17px!important;line-height:1.2!important;margin:0!important;color:#27365b!important}
body.workspace-active #referral-card .referral-heading .muted{font-size:11px!important;line-height:1.35!important;margin:4px 0 0!important;color:#758095!important}
body.workspace-active #referral-card .referral-glow-mark{
  flex:0 0 40px!important;width:40px!important;height:40px!important;
  border-radius:13px!important;box-shadow:none!important
}
body.workspace-active #referral-card .referral-share-row{display:flex!important;gap:7px!important;margin:0!important}
body.workspace-active #referral-card .referral-share-row input{min-width:0!important;min-height:38px!important;font-size:11px!important;border-radius:10px!important}
body.workspace-active #referral-card .referral-share-row button{min-height:38px!important;border-radius:10px!important;font-size:11px!important}
body.workspace-active #referral-card .referral-stats{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;margin:0!important
}
body.workspace-active #referral-card .referral-stats article{
  padding:9px!important;border:1px solid #e5eaf3!important;border-radius:11px!important;background:#fff!important
}
body.workspace-active #referral-card .referral-stats span{font-size:10px!important;line-height:1.2!important}
body.workspace-active #referral-card .referral-stats strong{font-size:16px!important;color:#4d5d96!important;margin-top:3px!important}
body.workspace-active #referral-card .referral-redemption-panel{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;padding:11px!important;margin:0!important;border-radius:13px!important;
  border:1px solid #cfe4f4!important;background:linear-gradient(120deg,#eaf6ff,#f1f8ff)!important
}
body.workspace-active #referral-card .referral-redemption-panel>div{font-size:11px!important;line-height:1.3!important}
body.workspace-active #referral-card .referral-redemption-panel>div>strong{font-size:25px!important;line-height:1!important;color:#176d9b!important}
body.workspace-active #referral-card #referral-redeem{min-height:40px!important;padding:9px 13px!important;border-radius:11px!important;font-size:11px!important}
body.workspace-active #referral-card #referral-message{font-size:10px!important;margin:0!important}
body.workspace-active #referral-card .referral-history{margin-top:2px!important}
@media(max-width:600px){
 body.workspace-active #owner-home{gap:8px!important;padding-bottom:20px!important}
 body.workspace-active #owner-home>.owner-home-card{padding:13px!important}
 body.workspace-active #owner-home .owner-subscription-tab{min-height:34px!important;padding:7px 10px!important;font-size:11px!important}
 body.workspace-active #referral-card .referral-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.workspace-active #referral-card .referral-redemption-panel{align-items:stretch!important}
 body.workspace-active #referral-card #referral-redeem{width:100%!important}
}


/* Receipt issue flow: compact step-one controls followed by a clear step-two action. */
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;margin:10px 0 4px!important;padding:0!important
}
html body.workspace-active #pos-view.workspace-issue-mode #checkout-open.compact-next-btn{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 position:static!important;inset:auto!important;float:none!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;max-width:100%!important;min-height:38px!important;
 margin:0!important;padding:8px 15px!important;border-radius:10px!important;
 background:linear-gradient(135deg,#2467dc,#3986f4)!important;color:#fff!important;
 box-shadow:0 3px 9px rgba(38,103,220,.14)!important;font-size:12px!important;font-weight:800!important
}
html body.workspace-active #pos-view.workspace-issue-mode #checkout-open.compact-next-btn:disabled{
 opacity:.45!important;filter:none!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions:before{
 content:"STEP 2";display:inline-flex;align-items:center;color:#6d8296;
 font-size:9px;font-weight:850;letter-spacing:.12em
}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel>.totals{margin:10px 0 5px!important}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel>.tiny{font-size:10px!important;line-height:1.3!important;margin:4px 0!important}
#receipt-modal{z-index:3000!important}
#receipt-modal .receipt-card{width:min(80mm,calc(100vw - 24px))!important;max-width:80mm!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important}
#receipt-modal #receipt-paper{width:100%!important;max-width:72mm!important;margin:0 auto!important;padding:3px!important;font-size:9px!important;line-height:1.25!important}
#receipt-modal .receipt-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:center!important}
#receipt-modal .receipt-actions button{min-height:34px!important;padding:7px 10px!important;font-size:11px!important}
@media(max-width:600px){
 html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{flex-wrap:wrap!important}
 html body.workspace-active #pos-view.workspace-issue-mode #checkout-open.compact-next-btn{min-height:36px!important}
 #receipt-modal{padding:8px!important}
 #receipt-modal .receipt-card{max-height:calc(100dvh - 16px)!important}
}


/* Simple AURORA referral link and scan card */
body.workspace-active #referral-card{background:linear-gradient(145deg,#fff,#f1f9ff)!important;border:1px solid #d7eaf7!important;box-shadow:0 5px 18px rgba(32,104,145,.08)!important;animation:none!important;padding:16px!important}
body.workspace-active #referral-card:before{display:none!important}
body.workspace-active #referral-card .referral-stats,body.workspace-active #referral-card .referral-redemption-panel,body.workspace-active #referral-card .referral-history{display:none!important}
body.workspace-active #referral-card .referral-heading h2{color:#174b70!important;font-size:18px!important}
body.workspace-active #referral-card .referral-heading .muted{font-size:12px!important}
body.workspace-active #referral-card .referral-share-row{display:flex!important;gap:8px!important;margin:10px 0!important}
body.workspace-active #referral-card .referral-share-row input{min-width:0!important;min-height:40px!important;font-size:11px!important}
body.workspace-active #referral-card .referral-share-row button{min-height:40px!important}
.referral-qr-area{display:flex;align-items:center;gap:12px;margin:10px auto 2px;width:max-content;max-width:100%;padding:9px 14px;background:#fff;border:1px solid #dcecf6;border-radius:12px;color:#23658b;font-size:11px;font-weight:800;letter-spacing:.12em}
.referral-qr{width:144px;min-height:144px;display:grid;place-items:center}.referral-qr img,.referral-qr canvas{display:block;max-width:144px;height:auto}
body.workspace-active #referral-card #referral-message{font-size:11px!important;margin:7px 0 0!important}
@media(max-width:520px){.referral-qr-area{gap:9px;padding:8px 10px}.referral-qr{width:124px;min-height:124px}.referral-qr img,.referral-qr canvas{max-width:124px}.referral-qr-area span{font-size:10px}}


/* Simple, colourful Refer & Earn cards */
.referral-area{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 16px}
.referral-area>.panel{position:relative;overflow:hidden;margin:0;padding:17px;border:1px solid transparent;border-radius:17px;box-shadow:0 8px 22px #102b4518}
.referral-earn-card{background:linear-gradient(135deg,#eff6ff,#dbeafe 55%,#bfdbfe);border-color:#93c5fd!important;color:#153e75}
.referral-earn-card h2,.referral-invite-card h2{margin:3px 0 8px;font-size:19px;color:inherit}
.referral-earn-card>p:not(.eyebrow){margin:0;color:#315a86;font-size:13px;line-height:1.5}
.referral-earn-card .eyebrow{color:#2563a6}
.referral-simple-icon{float:right;display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#2563eb;color:white;font-size:22px;box-shadow:0 5px 14px #2563eb40}
.referral-conversion-note{display:inline-block;margin-top:13px;padding:7px 10px;border-radius:20px;background:#fff9;color:#174a84;font-size:11px;font-weight:800}
.referral-balance-card{background:linear-gradient(135deg,#ecfdf5,#d1fae5 55%,#a7f3d0);border-color:#6ee7b7!important;color:#065f46}
.referral-balance-card .eyebrow{color:#047857}
.referral-balance-number{display:flex;align-items:baseline;gap:8px;margin:7px 0 0}
.referral-balance-number strong{font-size:36px;line-height:1;color:#047857}
.referral-balance-number span{font-size:12px;font-weight:800;color:#166b50}
.referral-balance-caption{margin:6px 0 12px;color:#28745a;font-size:11px}
.referral-redeem-btn{width:100%;background:linear-gradient(110deg,#047857,#10b981);color:#fff;font-weight:900;box-shadow:0 5px 14px #05966935}
.referral-redeem-btn:disabled{opacity:.55}
.referral-balance-card #referral-message{margin:8px 0 0;color:#236b54;font-size:10px;line-height:1.35}
.referral-invite-card{grid-column:1/-1;background:linear-gradient(120deg,#fff7ed,#ffedd5 52%,#fce7f3);border-color:#fdba74!important;color:#854d0e}
.referral-invite-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.referral-invite-card .eyebrow{color:#b45309}
.referral-qr{display:grid;place-items:center;flex:0 0 112px;width:112px;height:112px;padding:7px;background:white;border:1px solid #fed7aa;border-radius:12px}
.referral-qr img,.referral-qr canvas{display:block;max-width:100%;height:auto}
.referral-share-row{display:flex;gap:8px;margin-top:12px}
.referral-share-row input{flex:1;min-width:0;color:#533b27;background:#fff;border:1px solid #fdba74}
.referral-share-row button{background:linear-gradient(110deg,#ea580c,#db2777);color:#fff;white-space:nowrap}
.referral-hidden-data{display:none!important}
@media(max-width:560px){.referral-area{grid-template-columns:1fr;gap:9px;margin:8px 0 12px}.referral-area>.panel{padding:13px;border-radius:14px}.referral-earn-card h2,.referral-invite-card h2{font-size:17px}.referral-balance-number strong{font-size:31px}.referral-invite-head{gap:10px}.referral-qr{width:100px;height:100px;flex-basis:100px}.referral-share-row{flex-direction:row}.referral-share-row input{font-size:11px;padding:8px}.referral-share-row button{width:auto;padding:8px 10px;font-size:11px}}
.global-back-row{display:flex;align-items:center;max-width:1240px;margin:7px auto 0;padding:0 20px;min-height:40px}
.global-back-btn{margin-left:0;background:linear-gradient(110deg,#075bd8,#087c79);border:0;box-shadow:0 4px 12px #075bd833}
@media(max-width:430px){.global-back-row{padding:0 12px;margin-top:5px;min-height:36px}.global-back-btn{min-height:34px;padding:6px 12px}}


/* AURORA home cards: richer colour, depth and clear separation. */
#owner-home .owner-home-card{border:1px solid #cfe4f5!important;border-radius:20px!important;background:linear-gradient(135deg,#f1f8ff 0%,#e5f3ff 48%,#fff8ee 100%)!important;box-shadow:0 12px 28px rgba(21,75,119,.12)!important}
#owner-home .referral-earn-card{background:linear-gradient(135deg,#d9edff,#8fcaff 55%,#edf7ff)!important;border:1px solid #a8d5f4!important;box-shadow:0 12px 28px rgba(20,95,155,.15)!important}
#owner-home .referral-balance-card{background:linear-gradient(135deg,#d9ffeb,#8ee3b7 55%,#f2fff7)!important;border:1px solid #a8e8c4!important;box-shadow:0 12px 28px rgba(22,130,80,.14)!important}
#owner-home .referral-invite-card{background:linear-gradient(135deg,#fff0d8,#ffc879 55%,#fff9ed)!important;border:1px solid #f0cf9d!important;box-shadow:0 12px 28px rgba(156,99,28,.14)!important}
#owner-home .referral-area>article{border-radius:20px!important;overflow:hidden!important}
#owner-home .referral-area h2{font-weight:850!important;letter-spacing:-.02em!important}
#owner-home .referral-area button{border-radius:12px!important;box-shadow:0 5px 14px rgba(18,60,95,.12)!important}


/* AURORA Receipts: three equal bordered cards on a fixed, non-scrolling page. */
html body.workspace-active #receipts-home:not(.hidden){
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  margin:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  padding:clamp(10px,2vh,20px)!important;
}
html body.workspace-active #receipts-home:not(.hidden) .section-head{flex:0 0 auto!important;margin:0 0 12px!important}
html body.workspace-active #receipts-home .receipt-actions-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:1fr!important;
  align-items:stretch!important;
  gap:12px!important;
  flex:0 0 auto!important;
  min-height:0!important;
}
html body.workspace-active #receipts-home .receipt-choice{
  width:100%!important;
  min-width:0!important;
  min-height:clamp(108px,17vh,150px)!important;
  height:clamp(108px,17vh,150px)!important;
  margin:0!important;
  padding:clamp(10px,1.6vw,18px)!important;
  border:1px solid rgba(137,169,197,.58)!important;
  border-radius:15px!important;
  box-sizing:border-box!important;
  box-shadow:0 5px 15px rgba(31,73,108,.08)!important;
  overflow:hidden!important;
}
html body.workspace-active #receipts-home .receipt-choice strong{font-size:clamp(12px,1.3vw,16px)!important;line-height:1.2!important}
html body.workspace-active #receipts-home .receipt-choice small{font-size:clamp(10px,1vw,12px)!important;line-height:1.3!important}
@media(max-width:600px){
  html body.workspace-active #receipts-home:not(.hidden){padding:9px!important}
  html body.workspace-active #receipts-home .receipt-actions-grid{grid-template-columns:1fr!important;gap:8px!important}
  html body.workspace-active #receipts-home .receipt-choice{
    height:clamp(86px,13vh,104px)!important;
    min-height:clamp(86px,13vh,104px)!important;
    padding:9px 12px!important;
    gap:4px!important;
    border-radius:12px!important;
  }
  html body.workspace-active #receipts-home .receipt-choice>span{width:30px!important;height:30px!important;font-size:20px!important;border-radius:9px!important}
  html body.workspace-active #receipts-home .receipt-choice strong{font-size:13px!important}
  html body.workspace-active #receipts-home .receipt-choice small{font-size:10px!important;line-height:1.2!important}
}


/* Desktop receipt layout: three full-width cards stacked in a clear 1-2-3 hierarchy.
   Preserve each card's existing colour treatment, but remove borders. */
@media(min-width:601px){
  html body.workspace-active #receipts-home .receipt-actions-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice{
    grid-column:1!important;
    width:100%!important;
    min-height:clamp(112px,15vh,138px)!important;
    height:auto!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:16px!important;
  }
}


/* Receipt action cards stay borderless on both desktop and mobile. */
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice{
  border:0!important;
  outline:0!important;
}


/* Shop: keep product entry fields collapsed until the Add Products card is tapped. */
.shop-add-product-disclosure{margin-top:10px;border:0!important;border-radius:12px;background:rgba(255,255,255,.58);overflow:hidden}
.shop-add-product-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:11px 14px;list-style:none;cursor:pointer;color:#155b91;font-weight:750}
.shop-add-product-disclosure>summary::-webkit-details-marker{display:none}
.shop-add-product-disclosure>summary:after{content:"＋";font-size:19px;font-weight:800}
.shop-add-product-disclosure[open]>summary:after{content:"−"}
.shop-add-product-disclosure>summary small{margin-left:auto;color:#718096;font-size:11px;font-weight:500}
.shop-add-product-disclosure .shop-add-products{padding:4px 14px 14px}

/* Keep the Shop Add Product action card aligned with the other Shop cards. */
#shop-home .shop-add-product-entry{width:100%;min-height:64px;display:flex;align-items:center;justify-content:flex-start;text-align:left;box-sizing:border-box;cursor:pointer;font:inherit;color:inherit;background:#fff;border:1px solid #e5eaf1;border-radius:16px;padding:0 16px;margin:14px 0;box-shadow:0 5px 18px rgba(30,60,90,.06)}
#shop-home .shop-add-product-entry .shop-directory-heading{display:flex;align-items:center;width:100%;margin:0;padding:15px 2px}
#shop-home .shop-add-product-entry #shop-directory-title{font-size:19px;font-weight:800;color:#26384d}

/* AURORA Shop: product discovery card opens the shop-search form in place. */
#shop-home details.shop-add-product-entry{display:block;width:100%;margin:14px 0;background:#f9e3e8!important;border:0!important;border-radius:16px!important;box-shadow:0 0 0 1px rgba(190,125,145,.18),0 5px 14px rgba(150,85,105,.12)!important;overflow:hidden;}
#shop-home details.shop-add-product-entry>summary{display:flex;align-items:center;justify-content:flex-start;min-height:64px;padding:12px 16px;list-style:none;cursor:pointer;color:#704653!important;}
#shop-home details.shop-add-product-entry>summary::-webkit-details-marker{display:none;}
#shop-home details.shop-add-product-entry>summary>div{display:flex;flex-direction:column;gap:4px;}
#shop-home details.shop-add-product-entry #shop-directory-title{font-size:19px;font-weight:800;color:#704653!important;}
#shop-home details.shop-add-product-entry>summary small{display:block;color:#805b65!important;font-size:12px;line-height:1.35;font-weight:500;}
#shop-home details.shop-add-product-entry[open]>summary{border-bottom:1px solid rgba(190,125,145,.18);}
#shop-home details.shop-add-product-entry .shop-product-search-form{padding:12px 16px 14px;}

/* Align Sales Declaration Form content to the left like the other receipt cards. */
html body.workspace-active #receipts-home .receipt-actions-grid .declaration-choice{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;}
html body.workspace-active #receipts-home .receipt-actions-grid .declaration-choice strong,html body.workspace-active #receipts-home .receipt-actions-grid .declaration-choice small{display:block!important;width:100%!important;text-align:left!important;margin-left:0!important;margin-right:0!important;}


/* Receipts: replace hard card borders with soft shadow-defined edges. */
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice{
  border:0!important;
  outline:0!important;
  box-shadow:0 0 0 1px rgba(128,166,198,.20),0 5px 16px rgba(31,73,108,.14)!important;
}


/* Shop cards: matching wider touch targets and a larger, consistent card height. */
#shop-home details.shop-add-product-entry,
#shop-home details.loan-items-card{
  width:100%!important;
  min-height:88px!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
}
#shop-home details.shop-add-product-entry>summary,
#shop-home details.loan-items-card>summary{
  min-height:88px!important;
  box-sizing:border-box!important;
  padding:18px 16px!important;
  align-content:center!important;
}
#shop-home details.shop-add-product-entry>summary>div,
#shop-home details.loan-items-card>summary{
  gap:6px!important;
}
#shop-home details.shop-add-product-entry #shop-directory-title,
#shop-home details.loan-items-card>summary strong{
  font-size:20px!important;
  line-height:1.25!important;
}
#shop-home details.shop-add-product-entry>summary small,
#shop-home details.loan-items-card>summary small{
  font-size:13px!important;
  line-height:1.4!important;
}


/* Shop registration card: match the Find Products and Loan an Item cards. */
#shop-home details.shop-register-product-card{
  display:block;width:100%;min-height:88px;box-sizing:border-box;margin:14px 0;
  border:0;border-radius:18px;background:#e8f1ff;color:#26384d;
  box-shadow:0 0 0 1px rgba(128,166,198,.20),0 5px 16px rgba(31,73,108,.14);
  overflow:hidden;
}
#shop-home details.shop-register-product-card>summary{
  display:flex;flex-direction:column;justify-content:center;gap:6px;
  min-height:88px;box-sizing:border-box;padding:18px 16px;list-style:none;cursor:pointer;
}
#shop-home details.shop-register-product-card>summary::-webkit-details-marker{display:none}
#shop-home details.shop-register-product-card>summary strong{
  font-size:20px;line-height:1.25;font-weight:800;color:#26384d;
}
#shop-home details.shop-register-product-card>summary small{
  font-size:13px;line-height:1.4;color:#526a85;font-weight:500;
}
#shop-home details.shop-register-product-card[open]>summary{border-bottom:1px solid rgba(128,166,198,.2)}
#shop-home .shop-register-product-body{padding:12px 16px 14px}
#shop-home .shop-add-products-form{display:grid;gap:10px}
#shop-home .shop-add-products-form label{display:grid;gap:5px;font-size:12px;font-weight:700}
#shop-home .shop-add-products-form input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d6e1ef;border-radius:9px;padding:10px;background:#fff;font:inherit}
#shop-home .shop-register-product-card[hidden],
#shop-home .shop-register-product-card.hidden{display:none!important}
@media(max-width:520px){#shop-home .shop-add-products-form .form-two{grid-template-columns:1fr}}


/* FINAL HOME CANVAS FIX — soft creamy yellow stays outside the cards only. */
html:has(body.workspace-active), body.workspace-active{
  background:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
  background-color:#fffdf4!important;
  background-image:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
  animation:none!important;
}
body.workspace-active:before{display:none!important;content:none!important}
body.workspace-active .shell{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  height:calc(100dvh - 126px)!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:5px 12px 4px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
}
body.workspace-active #owner-home:not(.hidden){
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-content:initial!important;
  gap:7px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:0 1px!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.workspace-active #owner-home>.dashboard-login-return-row{
  flex:0 0 auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
body.workspace-active #owner-home>.owner-home-card{
  flex:0 0 auto!important;
  margin:0!important;
  padding:10px 13px!important;
  background:#fff!important;
  border:1px solid #edf0f3!important;
  border-radius:14px!important;
  box-shadow:0 3px 12px rgba(45,65,82,.055)!important;
}
body.workspace-active #owner-home>.owner-home-card h1{color:#203246!important}
body.workspace-active #owner-home>.owner-home-card p{color:#758293!important}
body.workspace-active #owner-home .referral-area{
  display:grid!important;
  flex:0 0 auto!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  gap:7px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body.workspace-active #owner-home .referral-area>.panel{
  display:flex!important;
  flex:0 0 auto!important;
  flex-direction:column!important;
  justify-content:center!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:10px 12px!important;
  overflow:visible!important;
  color:#263648!important;
  background:#fff!important;
  border:1px solid #edf0f3!important;
  border-radius:14px!important;
  box-shadow:0 3px 12px rgba(45,65,82,.055)!important;
}
body.workspace-active #owner-home .referral-earn-card h2,
body.workspace-active #owner-home .referral-invite-card h2{color:#263648!important}
body.workspace-active #owner-home .referral-earn-card>p:not(.eyebrow){color:#647386!important}
body.workspace-active #owner-home .referral-conversion-note{
  color:#4b6380!important;background:#f5f9fd!important;border:1px solid #e7eef5!important;
}
body.workspace-active #owner-home .referral-balance-card .referral-balance-caption,
body.workspace-active #owner-home .referral-balance-card #referral-message{color:#647386!important}
body.workspace-active #owner-home .referral-qr{background:#fff!important}
body.workspace-active #workspace-nav{flex:0 0 auto!important;margin:0!important}
html,body.workspace-active{overscroll-behavior:none!important}
@media(max-width:600px){
  body.workspace-active .shell{
    height:calc(100dvh - 116px)!important;
    padding:4px 10px 3px!important;
    gap:5px!important;
  }
  body.workspace-active #owner-home:not(.hidden){gap:6px!important}
  body.workspace-active #owner-home>.owner-home-card{padding:9px 11px!important}
  body.workspace-active #owner-home .referral-area{gap:6px!important}
  body.workspace-active #owner-home .referral-area>.panel{padding:8px 10px!important;border-radius:12px!important}
}
@media(prefers-reduced-motion:reduce){
  html:has(body.workspace-active),body.workspace-active{animation:none!important}
}


/* AURORA receipt landing page: fixed phone-screen layout, no vertical scrolling.
   The workspace canvas remains creamy yellow; the receipt surface is sky blue,
   and each action card stays white. The declaration form can still scroll when opened. */
html,body.workspace-active{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.workspace-active .shell{
  overflow:hidden!important;
  min-height:0!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active){
  display:flex!important;
  flex:1 1 0!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:clamp(9px,1.5vh,16px)!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  border:1px solid #c9e4f5!important;
  border-radius:16px!important;
  box-shadow:0 4px 16px rgba(48,105,145,.08)!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .section-head{
  flex:0 0 auto!important;
  margin:0 0 8px!important;
  padding:0!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid{
  display:grid!important;
  flex:0 0 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:repeat(3,84px)!important;
  grid-auto-rows:84px!important;
  gap:8px!important;
  overflow:hidden!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice{
  display:flex!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:84px!important;
  height:84px!important;
  max-height:84px!important;
  margin:0!important;
  padding:7px 10px!important;
  gap:4px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:13px!important;
  box-shadow:0 2px 9px rgba(39,88,122,.08)!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice>span{
  width:clamp(27px,4vh,36px)!important;
  height:clamp(27px,4vh,36px)!important;
  flex:0 0 auto!important;
  font-size:clamp(17px,2.6vh,23px)!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice strong{
  font-size:clamp(12px,1.7vh,15px)!important;
  line-height:1.15!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice small{
  font-size:clamp(9px,1.35vh,11px)!important;
  line-height:1.2!important;
}
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-history-panel{
  flex:0 0 auto!important;
  margin:5px 0 0!important;
}
html body.workspace-active #receipts-home.secondhand-active{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  min-height:0!important;
  max-height:100%!important;
  overscroll-behavior:contain!important;
}
@media(prefers-reduced-motion:reduce){
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active){animation:none!important}
}


/* GLOBAL AURORA WORKSPACE FRAME — apply the same phone-screen treatment to EVERY page.
   Creamy yellow is the desktop surround; sky blue is the complete app canvas;
   existing white cards and page-specific feature colours remain untouched. */
html:has(body.workspace-active){
  min-height:100%!important;
  background:#fffbed!important;
  background-image:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
}
body.workspace-active{
  min-height:100dvh!important;
  background:#fffbed!important;
  background-image:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
  color:#243b50!important;
}
body.workspace-active .shell{
  box-sizing:border-box!important;
  width:min(100% - 24px,460px)!important;
  max-width:460px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:8px!important;
  background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  background-color:#eaf7ff!important;
  border:1px solid #c9e4f5!important;
  border-radius:20px!important;
  box-shadow:0 8px 28px rgba(67,111,143,.10)!important;
  overflow:hidden!important;
}
body.workspace-active .shell > :not(.hidden){
  min-width:0!important;
}
body.workspace-active .shell > .panel:not(.hidden),
body.workspace-active .shell > section:not(.hidden){
  box-sizing:border-box!important;
}
@media(max-width:600px){
  body.workspace-active .shell{
    width:calc(100% - 12px)!important;
    max-width:460px!important;
    padding:5px!important;
    border-radius:16px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html:has(body.workspace-active),body.workspace-active{animation:none!important}
}


/* AURORA FIX: Shop and Flagged Items must use the same blue inner canvas.
   Keep their individual action/content cards white, never creamy yellow. */
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #shop-lost-items-panel:not(.hidden){
  box-sizing:border-box!important;
  background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  background-color:#eaf7ff!important;
  background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  border-radius:14px!important;
}
html body.workspace-active #shop-home:not(.hidden) .shop-section-tabs,
html body.workspace-active #shop-home:not(.hidden) .shop-register-product-card,
html body.workspace-active #shop-home:not(.hidden) .panel,
html body.workspace-active #shop-home:not(.hidden) .shop-product-card,
html body.workspace-active #shop-lost-items-panel:not(.hidden) .panel,
html body.workspace-active #shop-lost-items-panel:not(.hidden) .lost-items-list-head,
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-items-list{
  background-color:#fff!important;
  background-image:none!important;
}
/* Preserve the original individual Flagged Items action-card colours. */
html body.workspace-active #shop-home:not(.hidden) .shop-section-tabs,
html body.workspace-active #shop-home:not(.hidden) .shop-register-product-card,
html body.workspace-active #shop-home:not(.hidden) .panel,
html body.workspace-active #shop-lost-items-panel:not(.hidden) .panel{
  border-color:#e7edf2!important;
}


/* AURORA PHONE VIEW: remove the desktop-only creamy surround entirely.
   Keep the creamy yellow surround for wider PC screens only. */
@media(max-width:600px){
  html:has(body.workspace-active),
  html body.workspace-active{
    min-height:100dvh!important;
    height:100dvh!important;
    background:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
  }
  html body.workspace-active .shell{
    width:100%!important;
    max-width:none!important;
    min-height:100dvh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:5px 8px calc(5px + env(safe-area-inset-bottom))!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
    overflow:hidden!important;
  }
}


/* AURORA correction: restore colour to the Home cards without changing their layout. */
html body.workspace-active #owner-home>.owner-home-card{
  background:linear-gradient(135deg,#ffffff 0%,#eaf4ff 100%)!important;
  border:1px solid #cfe2f4!important;
}
html body.workspace-active #owner-home #referral-card>.referral-earn-card{
  background:linear-gradient(135deg,#f3eaff 0%,#e5d5ff 100%)!important;
  border:1px solid #d6c2f5!important;
}
html body.workspace-active #owner-home #referral-card>.referral-invite-card{
  background:linear-gradient(135deg,#e8f7ff 0%,#d8edff 100%)!important;
  border:1px solid #c6e2f5!important;
}
html body.workspace-active #owner-home #referral-card>.referral-balance-card{
  background:linear-gradient(135deg,#e8fbf2 0%,#d5f4e5 100%)!important;
  border:1px solid #bfe8d2!important;
}

/* Lost Goods page: the page canvas is sky blue, never the desktop creamy yellow.
   Keep its red, blue, gold and purple feature cards individually coloured. */
@supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
  html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    animation:none!important;
  }
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  }
}
html body.workspace-active #shop-lost-items-panel:not(.hidden){
  background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  background-color:#eaf7ff!important;
  background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  animation:none!important;
}
@media(max-width:600px){
  html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  }
}

/* Login tagline: keep both brand phrases on one elegant, centred line. */
body:not(.workspace-active) #login-view .aurora-tagline{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  width:100%!important;
  white-space:nowrap!important;
  text-align:center!important;
  font-size:clamp(10px,2.65vw,13px)!important;
  line-height:1.25!important;
  letter-spacing:.015em!important;
  margin:4px auto 0!important;
}
body:not(.workspace-active) #login-view .aurora-tagline span,
body:not(.workspace-active) #login-view .aurora-tagline strong{
  display:inline!important;
  white-space:nowrap!important;
  font-size:inherit!important;
}
body:not(.workspace-active) #login-view .aurora-tagline span{font-weight:750!important}
body:not(.workspace-active) #login-view .aurora-tagline strong{font-weight:850!important}


/* Desktop/phone split for Lost Goods: creamy outer surround on PC only,
   blue shell and blue Lost Goods page on every screen. */
@supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
  html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
    background:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
    background-color:#fffbed!important;
    background-image:linear-gradient(135deg,#fffdf4 0%,#fffbed 52%,#fff9e9 100%)!important;
    animation:none!important;
  }
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  }
}
@media(max-width:600px){
  @supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
    html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
    body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
      background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
      background-color:#eaf7ff!important;
      background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    }
  }
}


/* AURORA desktop navigation: dock the four tabs INSIDE the blue workspace.
   The phone keeps its existing full-width bottom navigation behaviour. */
@media(min-width:761px){
  html body.workspace-active .shell{
    position:relative!important;
    box-sizing:border-box!important;
    padding-bottom:66px!important;
  }
  html body.workspace-active #workspace-nav.bottom-nav{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:9px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    z-index:30!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:center!important;
    gap:6px!important;
    width:calc(100% - 24px)!important;
    max-width:420px!important;
    margin:0!important;
    padding:5px 7px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(151,190,218,.55)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 3px 12px rgba(36,86,120,.12)!important;
    backdrop-filter:blur(10px)!important;
    overflow:visible!important;
  }
  html body.workspace-active #workspace-nav.bottom-nav button,
  html body.workspace-active #workspace-nav.bottom-nav button.receipt-nav{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    min-height:42px!important;
    height:42px!important;
    margin:0!important;
    padding:4px 3px!important;
    border-radius:9px!important;
    font-size:10px!important;
    line-height:1.1!important;
    box-shadow:none!important;
    transform:none!important;
  }
  html body.workspace-active #workspace-nav.bottom-nav .nav-icon{
    font-size:16px!important;
    line-height:1!important;
  }
  html body.workspace-active #workspace-nav.bottom-nav button>span:not(.nav-icon){
    display:block!important;
    font-size:9px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  html body.workspace-active #workspace-nav.bottom-nav button.active{
    transform:translateY(-1px)!important;
    box-shadow:0 2px 7px rgba(30,80,120,.14)!important;
  }
}


/* Flagged Items on PC: stack every action card vertically, in one column.
   Keep each card's existing individual colour and leave the phone layout alone. */
@media(min-width:761px){
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:none!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    gap:12px!important;
    width:100%!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}


/* PC polish: purple belongs ONLY to the distant outer surround.
   Keep the complete working shell and page canvases sky blue. */
@media(min-width:761px){
  html:has(body.workspace-active),
  html body.workspace-active,
  html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
    background:#eee7ff!important;
    background-color:#eee7ff!important;
    background-image:linear-gradient(135deg,#f4efff 0%,#eee7ff 52%,#e8ddff 100%)!important;
  }
  html body.workspace-active .shell,
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-color:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
  }

  /* Prevent Flagged Items content and cards from overflowing the workspace. */
  html body.workspace-active #shop-lost-items-panel:not(.hidden){
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:13px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:146px!important;
    padding:18px!important;
    box-sizing:border-box!important;
    overflow-wrap:anywhere!important;
  }
}


/* AURORA SHOP PAGE BACKGROUND OVERRIDE — keep the PC surround purple,
   but force the Shop working shell and Shop canvas to sky blue.
   This outranks older :has() rules in styles.css that made the shell transparent. */
@supports selector(body:has(#shop-home:not(.hidden))){
  @media(min-width:761px){
    html:has(body.workspace-active #shop-home:not(.hidden)),
    body.workspace-active:has(#shop-home:not(.hidden)){
      background:#eee7ff!important;
      background-color:#eee7ff!important;
      background-image:linear-gradient(135deg,#f4efff 0%,#eee7ff 52%,#e8ddff 100%)!important;
      animation:none!important;
    }
    body.workspace-active:has(#shop-home:not(.hidden)) .shell,
    html body.workspace-active .shell:has(> #shop-home:not(.hidden)),
    body.workspace-active:has(#shop-home:not(.hidden)) .shell #shop-home:not(.hidden){
      background:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
      background-color:#eaf7ff!important;
      background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    }
    body.workspace-active:has(#shop-home:not(.hidden)) .shell{
      border-color:#c9e4f5!important;
    }
  }
}


/* HARD OVERRIDE: remove every creamy-yellow layer from the Shop working area.
   Only the distant desktop page surround is purple; Shop header, shell and page
   canvas stay sky blue. Feature cards keep their own authored backgrounds. */
@supports selector(body:has(#shop-home:not(.hidden))){
  html:has(body.workspace-active #shop-home:not(.hidden)),
  body.workspace-active:has(#shop-home:not(.hidden)){
    background:#eee7ff!important;
    background-color:#eee7ff!important;
    background-image:linear-gradient(135deg,#f4efff 0%,#eee7ff 52%,#e8ddff 100%)!important;
    animation:none!important;
  }
  html body.workspace-active:has(#shop-home:not(.hidden)) .topbar,
  html body.workspace-active:has(#shop-home:not(.hidden)) .shell,
  html body.workspace-active:has(#shop-home:not(.hidden)) .shell > #shop-home:not(.hidden){
    background:#eaf7ff!important;
    background-color:#eaf7ff!important;
    background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
    background-repeat:no-repeat!important;
    box-shadow:none!important;
  }
  html body.workspace-active:has(#shop-home:not(.hidden)) .shell{
    border:1px solid #c9e4f5!important;
  }
  html body.workspace-active:has(#shop-home:not(.hidden)) #shop-home:not(.hidden){
    border-radius:14px!important;
    min-width:0!important;
  }
}
@media(max-width:760px){
  @supports selector(body:has(#shop-home:not(.hidden))){
    html:has(body.workspace-active #shop-home:not(.hidden)),
    html body.workspace-active:has(#shop-home:not(.hidden)),
    html body.workspace-active:has(#shop-home:not(.hidden)) .topbar,
    html body.workspace-active:has(#shop-home:not(.hidden)) .shell,
    html body.workspace-active:has(#shop-home:not(.hidden)) .shell > #shop-home:not(.hidden){
      background:#eaf7ff!important;
      background-color:#eaf7ff!important;
      background-image:linear-gradient(145deg,#eaf7ff 0%,#dff1ff 52%,#eaf6ff 100%)!important;
      animation:none!important;
    }
  }
}
/* Desktop workspace: the authenticated canvas starts at the viewport's top edge.
   The later fixed-position rule below anchors it independently of document flow. */

/* Flagged Items: keep every action card inside the workspace on desktop and phone.
   The page itself scrolls internally; the cards never force the shell wider/taller. */
html body.workspace-active #shop-lost-items-panel:not(.hidden){
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:100%!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:0!important;
}
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 12px!important;
  padding:0!important;
  gap:10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  grid-column:1!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:96px!important;
  height:auto!important;
  margin:0!important;
  padding:13px 15px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  transform:none!important;
}
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card strong,
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card small{
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:760px){
  html body.workspace-active #shop-lost-items-panel:not(.hidden){
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 10px!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    min-height:78px!important;
    padding:10px 12px!important;
    border-radius:13px!important;
    gap:5px!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card strong{
    font-size:14px!important;
    line-height:1.25!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card small{
    font-size:11px!important;
    line-height:1.35!important;
  }
}
@media(min-width:761px){
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    min-height:100px!important;
    padding:13px 16px!important;
  }
}

/* FINAL Flagged Items containment: anchor the page to the workspace, not the viewport.
   This prevents the fixed Lost Goods panel from escaping the blue shell on PC. */
@media(min-width:761px){
  html body.workspace-active .shell{
    position:relative!important;
    overflow:hidden!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden){
    position:absolute!important;
    inset:0 12px 62px 12px!important;
    left:12px!important;
    right:12px!important;
    top:0!important;
    bottom:62px!important;
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    height:auto!important;
    margin:0!important;
    padding:0 4px 10px!important;
    display:block!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    box-sizing:border-box!important;
    z-index:10!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    margin:0 0 8px!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    min-height:82px!important;
    height:auto!important;
    padding:10px 14px!important;
    border-radius:13px!important;
  }
}
@media(max-width:760px){
  html body.workspace-active #shop-lost-items-panel:not(.hidden){
    position:fixed!important;
    top:64px!important;
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:6px 9px 10px!important;
    display:block!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    box-sizing:border-box!important;
    z-index:20!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;
    margin:0 0 8px!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card{
    min-height:70px!important;
    padding:9px 11px!important;
    border-radius:12px!important;
    gap:4px!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card strong{
    font-size:13px!important;
    line-height:1.2!important;
  }
  html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards>.lost-goods-card small{
    font-size:10.5px!important;
    line-height:1.3!important;
  }
}


/* Compact the three main Receipts action cards; preserve their existing colours. */
html body.workspace-active #receipts-home .receipt-actions-grid{
  align-items:start!important;
}
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice{
  box-sizing:border-box!important;
  min-height:84px!important;
  height:84px!important;
  max-height:84px!important;
  padding:7px 10px!important;
  gap:4px!important;
  overflow:hidden!important;
}
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice>span{
  font-size:17px!important;
  line-height:1!important;
}
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice strong{
  font-size:13px!important;
  line-height:1.15!important;
}
html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice small{
  font-size:10px!important;
  line-height:1.2!important;
}
@media(max-width:600px){
  html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice{
    min-height:70px!important;
    height:70px!important;
    max-height:70px!important;
    padding:5px 8px!important;
    gap:2px!important;
  }
  html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice>span{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    font-size:16px!important;
    border-radius:7px!important;
  }
  html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice strong{
    font-size:11.5px!important;
    line-height:1.1!important;
  }
  html body.workspace-active #receipts-home .receipt-actions-grid .receipt-choice small{
    font-size:9px!important;
    line-height:1.1!important;
  }
}


/* PC workspace starts flush against the upper edge.
   The top bar is hidden in the authenticated workspace, so do not reserve
   its old 72px height. Keep the desktop navigation inside the shell. */
@media(min-width:761px){
  html,body.workspace-active{
    margin-top:0!important;
    padding-top:0!important;
  }
  html body.workspace-active .topbar{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  html body.workspace-active .global-back-row:not(:has(.global-back-dock:not(.hidden))){
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  html body.workspace-active .shell{
    position:relative!important;
    top:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    padding-top:0!important;
    box-sizing:border-box!important;
    transform:none!important;
  }
}


/* DESKTOP TOP EDGE: remove the reserved height above the workspace.
   Keep the optional Back control floating over the workspace instead of
   allowing its wrapper to push the workspace down. */
@media(min-width:761px){
  html body.workspace-active .global-back-row{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    z-index:50!important;
  }
  html body.workspace-active .global-back-row .global-back-dock:not(.hidden){
    position:absolute!important;
    top:8px!important;
    left:12px!important;
    margin:0!important;
  }
  html body.workspace-active .shell{
    top:0!important;
    margin-top:0!important;
    padding-top:0!important;
    transform:translateY(0)!important;
  }
}


/* FINAL PC TOP-EDGE ANCHOR: prevent any preceding wrapper or browser flow
   from leaving a strip above the workspace. Preserve the existing desktop
   workspace width and keep its internal navigation attached to the shell. */
@media(min-width:761px){
  html,body.workspace-active{
    margin:0!important;
    padding-top:0!important;
  }
  html body.workspace-active .shell{
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    left:50%!important;
    right:auto!important;
    width:min(calc(100vw - 24px),520px)!important;
    max-width:520px!important;
    margin:0!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    padding-top:0!important;
    transform:translateX(-50%)!important;
    box-sizing:border-box!important;
  }
  html body.workspace-active .global-back-row{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    z-index:100!important;
  }
}

/* Final Receipts sizing: fixed compact cards instead of stretching to fill the page. */
@media(max-width:600px){
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid{
    grid-template-rows:repeat(3,70px)!important;
    grid-auto-rows:70px!important;
    gap:7px!important;
  }
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice{
    min-height:70px!important;
    height:70px!important;
    max-height:70px!important;
    padding:5px 8px!important;
    gap:2px!important;
  }
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice>span{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    font-size:16px!important;
  }
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice strong{
    font-size:11.5px!important;
    line-height:1.1!important;
  }
  html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active) .receipt-actions-grid .receipt-choice small{
    font-size:9px!important;
    line-height:1.1!important;
  }
}

/* Registration layout restored: one scroll area, compact phone-width card on desktop. */


/* Desktop workspace pages: straight, square top and bottom edges.
   Leave individual buttons, inputs and feature cards unchanged. */
@media(min-width:761px){
  html body.workspace-active .shell,
  html body.workspace-active .shell>#shop-home:not(.hidden),
  html body.workspace-active .shell>#owner-dashboard-view:not(.hidden),
  html body.workspace-active .shell>section:not(.hidden),
  html body.workspace-active .shell>main:not(.hidden){
    border-radius:0!important;
  }
  html body.workspace-active:has(#shop-home:not(.hidden)) .shell>#shop-home:not(.hidden){
    border-radius:0!important;
  }
}


/* Goods on Repair — distinct warm-gold service desk card */
.shop-goods-on-repair-card{display:block;margin:14px 0 24px;padding:clamp(14px,2.5vw,22px);color:#4b3510;background:linear-gradient(145deg,#fff9e8 0%,#fff1c7 48%,#f8e0a0 100%);border:1px solid #d6a43d;border-top:5px solid #c28a19;border-radius:18px;box-shadow:0 12px 30px rgba(120,82,14,.13)}
.shop-goods-on-repair-card.hidden{display:none!important}
.repair-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.repair-card-kicker{display:block;font-size:10px;font-weight:850;letter-spacing:1.5px;color:#90600d}
.repair-card-heading h2{margin:4px 0 5px;color:#67450b;font-size:clamp(20px,3vw,25px)}
.repair-card-heading p{margin:0;color:#755c2c;font-size:13px;line-height:1.5}
.repair-gold-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#e4b84f;color:#65440b;font-size:23px}
.shop-repair-form{display:grid;gap:12px;padding:14px;background:rgba(255,255,255,.74);border:1px solid rgba(190,143,45,.38);border-radius:14px}
.shop-repair-form label{display:grid;gap:6px;min-width:0;color:#62470f;font-size:12px;font-weight:750}
.shop-repair-form input,.shop-repair-form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:43px;padding:10px 11px;border:1px solid #d9c18b;border-radius:9px;background:#fff;color:#29251d;font:inherit;font-size:14px}
.shop-repair-form input:focus,.shop-repair-form textarea:focus{outline:3px solid rgba(195,143,28,.2);border-color:#b77d12}
.shop-repair-form .btn{background:#9a680c;border-color:#9a680c;color:#fff;min-height:46px;font-weight:800}
.repair-records-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}
.repair-records-heading h3{margin:0;color:#67450b;font-size:16px}
.repair-records-list{display:grid;gap:9px}
.repair-record-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;background:rgba(255,255,255,.82);border:1px solid #e5ca8c;border-radius:12px}
.repair-record-main{display:grid;gap:5px;min-width:0}
.repair-record-main strong{color:#4c350c;font-size:14px}
.repair-record-main small{color:#6b572e;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.repair-status{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f1e4c4;color:#70500e;font-size:10px;font-weight:800}
.repair-status-ready{background:#d8f2df;color:#176333}
.repair-status-collected{background:#e7e7e7;color:#555}
.repair-status-cancelled{background:#f9dddd;color:#8d2929}
@media(max-width:520px){.shop-repair-form .form-two{display:grid;grid-template-columns:minmax(0,1fr)}.repair-record-row{flex-direction:column}.repair-status{align-self:flex-start}}


.repair-record-tools{display:grid;gap:7px;min-width:min(220px,38%);max-width:260px}
.repair-record-tools select,.repair-record-tools textarea{box-sizing:border-box;width:100%;min-width:0;padding:8px;border:1px solid #d9c18b;border-radius:8px;background:#fff;color:#4b3510;font:inherit;font-size:12px}
.repair-record-tools textarea{resize:vertical;min-height:54px}
.repair-record-tools .btn{min-height:34px;font-size:11px}
@media(max-width:520px){.repair-record-tools{width:100%;max-width:none;min-width:0}}


/* AURORA responsive layout hardening: compact laptops, tablets and phones.
   Content-first breakpoints avoid assuming a particular device model. */
html{max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,video,canvas,svg,iframe{max-width:100%}
input,select,textarea,button{max-width:100%;font:inherit}
input,select,textarea{min-width:0}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
table{max-width:100%}
td,th{overflow-wrap:anywhere;word-break:normal}
.panel,.card,.metric,.owner-stat,.content-grid>*,
.dashboard-layout>* ,.dashboard-main,.dashboard-sidebar,
.profile-panel,.shop-panel,.modal-card{min-width:0;max-width:100%}
.dashboard-layout,.dashboard-main,.dashboard-sidebar,
.content-grid,.dashboard-grid,.metric-grid,.owner-stats,
.channel-grid,.comparison-grid,.form-two,.buyer-fields,
.profile-grid,.shop-grid{min-width:0}
@media (max-width:1100px){
  .shell{width:min(100% - 32px,1100px);max-width:100%}
  .dashboard-layout{grid-template-columns:minmax(0,1fr)!important;gap:16px}
  .dashboard-sidebar{position:static!important;width:100%;max-width:none}
  .dashboard-main,.dashboard-layout>main,.dashboard-layout>section{width:100%;min-width:0}
  .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-heading,.panel-heading,.section-heading{flex-wrap:wrap;align-items:flex-start}
}
@media (max-width:760px){
  html,body{width:100%;min-width:0}
  body.workspace-active{overflow-x:hidden}
  .shell,.container,.workspace,.workspace-shell{width:100%;max-width:100%;margin-left:auto;margin-right:auto}
  .shell{padding-left:12px;padding-right:12px}
  .dashboard-layout,.content-grid,.dashboard-grid,.profile-grid,
  .shop-grid,.form-two,.buyer-fields,.referral-area,
  .content-grid,.dashboard-main-grid{grid-template-columns:minmax(0,1fr)!important}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-heading,.panel-heading,.section-heading,.toolbar,.command-bar,
  .command-actions,.form-actions,.staff-invite-actions{flex-wrap:wrap;min-width:0}
  .page-heading>* ,.panel-heading>*{min-width:0;max-width:100%}
  .modal{padding:10px!important;align-items:flex-start!important;overflow-y:auto}
  .modal-card{width:100%!important;max-width:620px!important;max-height:calc(100dvh - 20px);overflow-y:auto;margin:auto}
  .table-wrap,.table-responsive,.history-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:560px}
  .btn,button{min-height:40px}
  input,select,textarea{width:100%;max-width:100%}
  .topbar,.workspace-header{height:auto;min-height:0;flex-wrap:wrap}
  .topbar>* ,.workspace-header>*{min-width:0}
}
@media (max-width:520px){
  .shell{width:100%;padding-left:10px;padding-right:10px}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:minmax(0,1fr)!important}
  .panel,.card{padding:12px!important;border-radius:13px}
  .page-heading h1{font-size:clamp(20px,6vw,27px);overflow-wrap:anywhere}
  .page-heading p,.panel p,.muted{overflow-wrap:anywhere}
  .date-filter{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
  .date-filter label,.date-filter input{width:100%;min-width:0}
  .command-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .command-actions{display:flex;flex-wrap:wrap}
  .modal-card{padding:14px!important;border-radius:15px}
  .receipt-paper{max-width:100%;overflow-wrap:anywhere}
  .staff-invite-form,.staff-team-card{padding:12px!important}
}
@media (max-height:700px) and (min-width:761px){
  .modal-card{max-height:calc(100dvh - 24px);overflow-y:auto}
  .workspace-active .shell{min-height:0}
}


/* Stable workspace flow: keep every page in normal document flow so short
   laptop screens and mobile browsers scroll the page instead of clipping it
   inside a fixed-height shell. Navigation no longer causes scroll jumps. */
html,body{scroll-behavior:auto!important;overflow-anchor:none}
body.workspace-active{height:auto!important;min-height:100vh;overflow-x:hidden!important;overflow-y:auto!important}
html body.workspace-active .shell{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:min(100% - 24px,1280px)!important;max-width:1280px!important;
  height:auto!important;min-height:calc(100vh - 70px)!important;min-height:calc(100dvh - 70px)!important;
  max-height:none!important;overflow:visible!important;gap:12px!important;
  margin:0 auto!important;padding:12px 12px 28px!important;box-sizing:border-box!important;
}
html body.workspace-active #workspace-nav,
html body.workspace-active #workspace-nav.bottom-nav{
  position:sticky!important;top:0!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;order:0!important;z-index:40!important;
  display:flex!important;flex:0 0 auto!important;align-items:center!important;
  width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;
  margin:0 0 8px!important;padding:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
  flex-wrap:nowrap!important;gap:8px!important;border-radius:12px!important;
  background:rgba(255,255,255,.97)!important;backdrop-filter:blur(8px);
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;
}
html body.workspace-active #workspace-nav button,
html body.workspace-active #workspace-nav.bottom-nav button{
  position:static!important;transform:none!important;flex:0 0 auto!important;
  min-width:max-content!important;min-height:42px!important;height:auto!important;
  padding:9px 13px!important;white-space:nowrap!important;
}
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden),
html body.workspace-active #owner-dashboard-view.profile-workspace-mode:not(.hidden),
html body.workspace-active #platform-referral-admin:not(.hidden),
html body.workspace-active #staff-profile-panel:not(.hidden),
html body.workspace-active #staff-sales-summary:not(.hidden){
  display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-x:clip!important;overflow-y:visible!important;
  contain:none!important;overscroll-behavior:auto!important;
  scroll-margin-top:76px;
}
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden){padding-bottom:24px!important}
html body.workspace-active .shell>*{min-width:0!important;max-width:100%!important}
html body.workspace-active .shell>*:not(.hidden){scroll-margin-top:76px}
html body.workspace-active .shell>*{animation:none!important;transition:none!important}
html body.workspace-active #workspace-nav button.active{transform:none!important}
@media(max-width:760px){
  html body.workspace-active .shell{
    width:100%!important;min-height:calc(100dvh - 56px)!important;
    margin:0!important;padding:8px 10px calc(18px + env(safe-area-inset-bottom))!important;
    gap:8px!important;
  }
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav{
    position:sticky!important;top:0!important;bottom:auto!important;
    display:flex!important;flex-wrap:nowrap!important;max-height:none!important;
    margin:0 0 6px!important;padding:6px!important;overflow-x:auto!important;
  }
  html body.workspace-active #workspace-nav button,
  html body.workspace-active #workspace-nav.bottom-nav button{
    flex:0 0 auto!important;min-width:max-content!important;min-height:42px!important;
    height:auto!important;padding:8px 11px!important;
  }
}
@media(max-height:620px) and (min-width:761px){
  html body.workspace-active .shell{min-height:0!important;padding-bottom:24px!important}
  html body.workspace-active #workspace-nav{position:relative!important;top:auto!important}
}


/* Cross-device layout pass: preserve each page's structure while making every
   workspace fit compact laptops, standard laptops, tablets and phones. */
html,body{width:100%;max-width:100%;min-width:0}
body{overflow-x:hidden}
#app,.app,.main-content,.workspace-content,.shell{min-width:0;max-width:100%}
.shell{width:min(100% - 24px,1280px);margin-inline:auto}
.shell>*,
.dashboard-layout>*,
.dashboard-main>*,
.dashboard-sidebar>*,
.profile-grid>*,
.shop-grid>*,
.content-grid>*,
.metric-grid>*,
.owner-stats>*{min-width:0;max-width:100%}
button,.btn,a.button{overflow-wrap:anywhere}
input,select,textarea{box-sizing:border-box;min-width:0;max-width:100%}
.table-wrap,.table-responsive,.history-table-wrap,.data-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
@media (min-width:761px) and (max-width:1440px){
  .shell{width:calc(100% - 32px);max-width:1280px;padding-inline:clamp(12px,2vw,24px)}
  .dashboard-layout{grid-template-columns:minmax(220px, min(27%,300px)) minmax(0,1fr);gap:clamp(12px,1.8vw,22px)}
  .dashboard-main,.dashboard-sidebar{min-width:0;width:auto}
  .content-grid,.dashboard-grid,.profile-grid,.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
  .page-heading,.panel-heading,.section-heading,.toolbar,.command-bar{min-width:0;flex-wrap:wrap}
  .panel,.card,.modal-card,.profile-panel,.shop-panel{min-width:0;max-width:100%}
}
@media (min-width:761px) and (max-width:1024px){
  .dashboard-layout{grid-template-columns:minmax(0,1fr)!important}
  .dashboard-sidebar{position:static!important;width:100%!important}
  .dashboard-main{width:100%!important}
  .content-grid,.dashboard-grid,.profile-grid,.shop-grid,.form-two,.buyer-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:760px){
  html,body{min-width:320px;width:100%;overflow-x:hidden}
  .shell{width:100%!important;max-width:100%!important;margin:0!important;padding-inline:10px!important}
  .dashboard-layout,.dashboard-main,.dashboard-sidebar{width:100%;min-width:0}
  .content-grid,.dashboard-grid,.profile-grid,.shop-grid,.form-two,.buyer-fields,
  .dashboard-main-grid{grid-template-columns:minmax(0,1fr)!important}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel,.card,.profile-panel,.shop-panel{width:100%;min-width:0}
  .table-wrap,.table-responsive,.history-table-wrap,.data-table-wrap{max-width:100%;overflow-x:auto}
  .modal{max-width:100vw}
}
@media (max-width:420px){
  .shell{padding-inline:8px!important}
  .metric-grid,.owner-stats,.channel-grid,.comparison-grid{grid-template-columns:minmax(0,1fr)!important}
  .page-heading h1{font-size:clamp(19px,6vw,24px)}
  .form-actions,.command-actions,.staff-invite-actions{display:flex;flex-wrap:wrap}
  .form-actions>* ,.command-actions>* ,.staff-invite-actions>*{flex:1 1 130px;min-width:0}
}
@media (max-height:760px) and (min-width:761px){
  body.workspace-active{overflow-y:auto!important}
  body.workspace-active .shell{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  body.workspace-active .modal-card{max-height:calc(100dvh - 24px);overflow:auto}
}


/* PC phone-frame mode: centred phone-width workspace on desktop monitors. */
@media (min-width:761px){
  html body.workspace-active .shell{
    width:min(100% - 40px,430px)!important;max-width:430px!important;
    min-height:calc(100dvh - 32px)!important;margin:16px auto!important;
    padding:10px 9px 26px!important;border:1px solid #d8e2eb!important;
    border-radius:24px!important;background:#fff!important;
    box-shadow:0 16px 55px rgba(16,42,67,.16)!important;
    container-name:aurora-phone-workspace;container-type:inline-size;
  }
  body.workspace-active{background:#edf2f7!important}
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav{
    width:100%!important;max-width:100%!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;border-radius:14px!important;
  }
}
@container aurora-phone-workspace (max-width:600px){
  .dashboard-layout,.content-grid,.dashboard-grid,.profile-grid,.shop-grid,
  .form-two,.buyer-fields,.dashboard-main-grid,.comparison-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .metric-grid,.owner-stats,.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-layout{gap:10px!important}
  .dashboard-sidebar{position:static!important;width:100%!important;max-width:100%!important}
  .dashboard-main,.dashboard-layout>main,.dashboard-layout>section{width:100%!important;min-width:0!important}
  .page-heading,.panel-heading,.section-heading,.toolbar,.command-bar,
  .command-actions,.form-actions,.staff-invite-actions{min-width:0!important;flex-wrap:wrap!important}
  .page-heading h1{font-size:clamp(20px,6cqi,25px)!important}
  .panel,.card,.profile-panel,.shop-panel{width:100%!important;min-width:0!important;padding:12px!important}
  .table-wrap,.table-responsive,.history-table-wrap,.data-table-wrap{
    width:100%!important;max-width:100%!important;overflow-x:auto!important;
  }
  input,select,textarea{width:100%;max-width:100%;min-width:0}
  .modal{padding:8px!important}
  .modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
}


/* FINAL AURORA SCROLL FIX
   Older phone and desktop layout rules fixed the shell to the viewport and
   hid overflow. Restore the document as the single vertical scroll owner,
   while keeping the requested centred phone-width desktop workspace. */
html:has(body.workspace-active),
html body.workspace-active {
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
}
html body.workspace-active .shell {
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  height:auto!important;
  min-height:calc(100dvh - 32px)!important;
  max-height:none!important;
  overflow:visible!important;
}
html body.workspace-active #workspace-nav,
html body.workspace-active #workspace-nav.bottom-nav {
  position:sticky!important;
  top:0!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  max-height:none!important;
}
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden),
html body.workspace-active #owner-dashboard-view.profile-workspace-mode:not(.hidden),
html body.workspace-active #platform-referral-admin:not(.hidden),
html body.workspace-active #staff-profile-panel:not(.hidden),
html body.workspace-active #staff-sales-summary:not(.hidden) {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  contain:none!important;
}
@media (min-width:761px) {
  html body.workspace-active .shell {
    width:min(calc(100% - 40px),430px)!important;
    max-width:430px!important;
    min-height:calc(100dvh - 32px)!important;
    margin:16px auto!important;
    padding:10px 9px 28px!important;
    border-radius:24px!important;
  }
}
@media (max-width:760px) {
  html:has(body.workspace-active),
  html body.workspace-active {
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
  }
  html body.workspace-active .shell {
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    margin:0!important;
    padding:8px 10px calc(24px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }
}


/* AURORA FINAL PAGE-SCROLL CORRECTION — overrides the older fixed-screen
   receipt layout and any nested Shop/Receipt viewport-height constraints.
   The document is the vertical scroll owner on phones and desktop. */
html:has(body.workspace-active),
html body.workspace-active{
  height:auto!important;min-height:100%!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
}
html body.workspace-active .shell{
  position:relative!important;inset:auto!important;transform:none!important;
  display:flex!important;flex-direction:column!important;
  height:auto!important;min-height:100dvh!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;
}
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden):not(.secondhand-active),
html body.workspace-active #receipts-home.secondhand-active,
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden){
  display:block!important;position:relative!important;flex:0 0 auto!important;
  width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;overflow:visible!important;
  overflow-x:clip!important;overflow-y:visible!important;
  contain:none!important;overscroll-behavior:auto!important;
}
html body.workspace-active #receipts-home:not(.hidden) .receipt-actions-grid{
  height:auto!important;min-height:0!important;max-height:none!important;
  grid-template-rows:none!important;grid-auto-rows:minmax(84px,auto)!important;
  overflow:visible!important;
}
html body.workspace-active #receipts-home:not(.hidden) .receipt-actions-grid .receipt-choice{
  height:auto!important;min-height:84px!important;max-height:none!important;
  overflow:visible!important;
}
html body.workspace-active #receipts-home:not(.hidden) .receipt-history-panel,
html body.workspace-active #receipts-home:not(.hidden) .receipt-history-panel>*{
  height:auto!important;max-height:none!important;overflow:visible!important;
}
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel]:not([hidden]){
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;
  contain:none!important;
}
html body.workspace-active #shop-home:not(.hidden) .shop-section-tabs{
  max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
}
html body.workspace-active #shop-home:not(.hidden) .shop-product-list,
html body.workspace-active #shop-home:not(.hidden) .shop-products-grid,
html body.workspace-active #shop-home:not(.hidden) .shop-content,
html body.workspace-active #shop-home:not(.hidden) .shop-panel,
html body.workspace-active #shop-home:not(.hidden) .panel{
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;
}
@media(max-width:760px){
  html:has(body.workspace-active),
  html body.workspace-active{height:auto!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important}
  html body.workspace-active .shell{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important;padding-bottom:calc(32px + env(safe-area-inset-bottom))!important}
  html body.workspace-active #receipts-home:not(.hidden),
  html body.workspace-active #shop-home:not(.hidden),
  html body.workspace-active #pos-view:not(.hidden){height:auto!important;max-height:none!important;overflow:visible!important}
}


/* Keep the primary workspace navigation anchored to the bottom on phones.
   The page itself remains document-scrollable; reserve space so the fixed
   navigation never covers the final controls or receipt history. */
@media(max-width:760px){
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav{
    position:fixed!important;
    top:auto!important;bottom:0!important;left:0!important;right:0!important;
    z-index:2000!important;
    display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;
    width:100%!important;max-width:100%!important;
    height:auto!important;max-height:none!important;
    margin:0!important;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    background:rgba(255,255,255,.98)!important;
    border-top:1px solid #cfe0eb!important;
    border-radius:0!important;
    box-shadow:0 -5px 18px rgba(22,48,67,.12)!important;
    backdrop-filter:blur(10px);
    -webkit-overflow-scrolling:touch;
  }
  html body.workspace-active #workspace-nav button,
  html body.workspace-active #workspace-nav.bottom-nav button{
    position:static!important;transform:none!important;
    flex:1 0 auto!important;min-width:max-content!important;
    min-height:48px!important;height:auto!important;
    padding:7px 10px!important;white-space:nowrap!important;
  }
  html body.workspace-active .shell{
    padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;
  }
}


/* AURORA FORM COMPLETION FIX — ensure long customer, product, staff and
   checkout forms can always reach their final fields and submit controls. */
html body.workspace-active .modal,
html body.workspace-active [role="dialog"],
html body.workspace-active .dialog,
html body.workspace-active .modal-overlay {
  box-sizing:border-box!important;
  max-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  align-items:flex-start!important;
}
html body.workspace-active .modal-card,
html body.workspace-active [role="dialog"] .modal-card,
html body.workspace-active .dialog-card {
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  flex:0 0 auto!important;
  margin-top:max(8px,env(safe-area-inset-top))!important;
  margin-bottom:max(8px,env(safe-area-inset-bottom))!important;
}
html body.workspace-active .modal-card form,
html body.workspace-active [role="dialog"] form,
html body.workspace-active form {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  touch-action:pan-y!important;
}
html body.workspace-active .modal-card fieldset,
html body.workspace-active .modal-card .form-section,
html body.workspace-active .modal-card .form-fields,
html body.workspace-active .modal-card .form-body {
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
html body.workspace-active .modal-card button[type="submit"],
html body.workspace-active .modal-card .form-actions,
html body.workspace-active .modal-card .form-actions:last-child {
  position:static!important;
  flex-shrink:0!important;
  margin-bottom:8px!important;
}
@media(max-width:760px){
  html body.workspace-active .modal,
  html body.workspace-active [role="dialog"],
  html body.workspace-active .dialog,
  html body.workspace-active .modal-overlay {
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding:calc(8px + env(safe-area-inset-top)) 8px calc(12px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }
  html body.workspace-active .modal-card,
  html body.workspace-active [role="dialog"] .modal-card,
  html body.workspace-active .dialog-card {
    width:100%!important;
    max-width:620px!important;
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    margin:0 auto!important;
    padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html body.workspace-active .modal-card input,
  html body.workspace-active .modal-card select,
  html body.workspace-active .modal-card textarea {
    scroll-margin-bottom:24px!important;
  }
}


/* TARGETED FIX: Sales Declaration and Issued Receipt must scroll to their
   actual final field/action on Android as well as desktop. */
html body.workspace-active #receipts-home #secondhand-panel:not(.hidden),
html body.workspace-active #receipts-home #secondhand-panel[aria-label="Sales declaration form"]{
  display:block!important;
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
  padding-bottom:calc(36px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form fieldset,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form .secondhand-fields,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form .secondhand-pad-wrap{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form{
  padding-bottom:28px!important;
}
html body.workspace-active #receipt-modal.modal:not(.hidden){
  position:fixed!important;
  inset:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100dvh!important;
  max-height:100dvh!important;
  padding:calc(8px + env(safe-area-inset-top)) 8px calc(12px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
html body.workspace-active #receipt-modal .receipt-card{
  position:relative!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:620px!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  margin:0 auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #receipt-modal #receipt-paper,
html body.workspace-active #receipt-modal .receipt-actions{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* AURORA SCROLLING BASELINE — one vertical page scroller, cards stay in flow.
   Only modal overlays and horizontal tab strips own their own overflow. */
html:has(body.workspace-active){
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
}
html body.workspace-active{
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
}
html body.workspace-active .shell{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  display:flex!important;
  flex:0 0 auto!important;
  flex-direction:column!important;
  width:100%!important;
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  margin:0 auto!important;
  overflow:visible!important;
  padding-bottom:calc(104px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #owner-dashboard-view:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden){
  position:relative!important;
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #receipts-home:not(.hidden) #secondhand-panel:not(.hidden){
  display:block!important;
  position:relative!important;
  flex:none!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
  transform:none!important;
  /* Keep this as the ordinary in-page declaration card, not a full-screen view. */
  border-radius:16px;
  scroll-margin-top:16px;
  padding-bottom:24px!important;
}
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form fieldset,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form .secondhand-fields,
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form .secondhand-pad-wrap{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #receipts-home #secondhand-panel .secondhand-form{
  padding-bottom:24px!important;
}
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel]:not([hidden]),
html body.workspace-active #shop-home:not(.hidden) .shop-product-list,
html body.workspace-active #shop-home:not(.hidden) .shop-products-grid,
html body.workspace-active #shop-home:not(.hidden) .shop-content,
html body.workspace-active #shop-home:not(.hidden) .shop-panel,
html body.workspace-active #shop-home:not(.hidden) .panel,
html body.workspace-active #receipts-home:not(.hidden) .receipt-history-panel{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #shop-home:not(.hidden) .shop-section-tabs{
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
}
html body.workspace-active #workspace-nav,
html body.workspace-active #workspace-nav.bottom-nav{
  z-index:2000!important;
}
@media(max-width:760px){
  html body.workspace-active .shell{
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    padding-bottom:calc(108px + env(safe-area-inset-bottom))!important;
  }
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav{
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important;
    touch-action:pan-x!important;
  }
}
/* A modal overlay is the single scroll owner for a long dialog. Its card and
   form remain natural-height content, avoiding competing nested scroll areas. */
html body.workspace-active .modal:not(.hidden),
html body.workspace-active [role="dialog"]:not(.hidden),
html body.workspace-active .dialog:not(.hidden),
html body.workspace-active .modal-overlay:not(.hidden){
  box-sizing:border-box!important;
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  max-width:100%!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:calc(8px + env(safe-area-inset-top)) 8px calc(16px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active .modal-card,
html body.workspace-active [role="dialog"] .modal-card,
html body.workspace-active .dialog-card{
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:620px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  touch-action:pan-y!important;
}
html body.workspace-active .modal-card form,
html body.workspace-active [role="dialog"] form,
html body.workspace-active form{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  touch-action:pan-y!important;
}
html body.workspace-active .modal-card fieldset,
html body.workspace-active .modal-card .form-section,
html body.workspace-active .modal-card .form-fields,
html body.workspace-active .modal-card .form-body{
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
html body.workspace-active .modal-card button[type="submit"],
html body.workspace-active .modal-card .form-actions{
  position:static!important;
  flex-shrink:0!important;
  margin-bottom:8px!important;
}
html body.workspace-active .modal-card input,
html body.workspace-active .modal-card select,
html body.workspace-active .modal-card textarea{
  scroll-margin-bottom:28px!important;
}

/* TARGETED REPAIR: Lost Items and Shop Profile are normal page content.
   Earlier legacy rules pinned Lost Items to the viewport and made it its own
   scroll box; release it back into the document so the page scrolls naturally. */
html body.workspace-active #shop-lost-items-panel:not(.hidden){
  position:relative!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  display:block!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:8px 4px 28px!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
  overscroll-behavior:auto!important;
  z-index:auto!important;
}
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-goods-cards,
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-item-register,
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-item-checker,
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-items-list,
html body.workspace-active #shop-lost-items-panel:not(.hidden) [data-lost-panel]:not(.hidden){
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-item-register[open],
html body.workspace-active #shop-lost-items-panel:not(.hidden) #lost-item-checker:not(.hidden){
  display:block!important;
  padding-bottom:24px!important;
}
html body.workspace-active #shop-home:not(.hidden) #owner-staff-area[data-shop-tab-panel]:not(.hidden),
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel="profile"]:not(.hidden){
  position:relative!important;
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
  padding-bottom:calc(32px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #shop-home:not(.hidden) #owner-staff-area *,
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel="profile"] *{
  max-height:none;
}
@media(max-width:760px){
  html:has(body.workspace-active),
  html body.workspace-active{
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html body.workspace-active .shell{
    position:relative!important;
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* SHOP SCROLL FIX — Products, Goods on Repair and Profile all grow with
   their content. The document remains the only vertical page scroller. */
html body.workspace-active #shop-home:not(.hidden){
  position:relative!important;
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
  padding-bottom:calc(34px + env(safe-area-inset-bottom))!important;
}
html body.workspace-active #shop-home:not(.hidden) > *,
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel]:not(.hidden),
html body.workspace-active #shop-home:not(.hidden) .shop-panel,
html body.workspace-active #shop-home:not(.hidden) .shop-content,
html body.workspace-active #shop-home:not(.hidden) .shop-product-list,
html body.workspace-active #shop-home:not(.hidden) .shop-products-grid{
  position:relative!important;
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
}
html body.workspace-active #shop-home:not(.hidden) details.shop-goods-on-repair-card,
html body.workspace-active #shop-home:not(.hidden) details.shop-register-product-card,
html body.workspace-active #shop-home:not(.hidden) details.shop-find-products-card,
html body.workspace-active #shop-home:not(.hidden) details.loan-items-card,
html body.workspace-active #shop-home:not(.hidden) details.shop-business-details-card,
html body.workspace-active #shop-home:not(.hidden) details#shop-receipt-history-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #shop-home:not(.hidden) details[open] > :not(summary),
html body.workspace-active #shop-home:not(.hidden) .repair-card-content,
html body.workspace-active #shop-home:not(.hidden) .shop-repair-form,
html body.workspace-active #shop-home:not(.hidden) .repair-records-list,
html body.workspace-active #shop-home:not(.hidden) .repair-record-row,
html body.workspace-active #shop-home:not(.hidden) #owner-staff-area,
html body.workspace-active #shop-home:not(.hidden) .shop-business-details-card,
html body.workspace-active #shop-home:not(.hidden) .shop-register-product-card,
html body.workspace-active #shop-home:not(.hidden) #product-list,
html body.workspace-active #shop-home:not(.hidden) .shop-product-list{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #shop-home:not(.hidden) .repair-card-content,
html body.workspace-active #shop-home:not(.hidden) #owner-staff-area,
html body.workspace-active #shop-home:not(.hidden) .shop-business-details-card,
html body.workspace-active #shop-home:not(.hidden) .shop-repair-form{
  padding-bottom:26px!important;
}
html body.workspace-active #shop-home:not(.hidden) .shop-section-tabs{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
}
@media(max-width:760px){
  html:has(body.workspace-active),
  html body.workspace-active{
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
  }
  html body.workspace-active .shell{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;
  }
  html body.workspace-active #shop-home:not(.hidden){
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav{
    position:fixed!important;
    inset:auto 0 0 0!important;
    z-index:2000!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    touch-action:pan-x!important;
    padding-bottom:calc(7px + env(safe-area-inset-bottom))!important;
  }
}

/* SINGLE SCROLL OWNER FOR ALL DEVICES.
   The app shell is the only vertical scroller; workspace pages, tabs,
   cards and forms remain natural-height content inside it. */
html, body {
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body.workspace-active {
  position:relative!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
html body.workspace-active main.shell,
html body.workspace-active .shell {
  box-sizing:border-box!important;
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:min(100%,1280px)!important;
  max-width:1280px!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0 auto!important;
  padding:12px 12px calc(116px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable;
}
html body.workspace-active .shell > * {
  flex-shrink:0!important;
}
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #owner-dashboard-view:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden),
html body.workspace-active #shop-lost-items-panel:not(.hidden) {
  position:relative!important;
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:none!important;
  transform:none!important;
}
html body.workspace-active #shop-home:not(.hidden) > *,
html body.workspace-active #shop-home:not(.hidden) [data-shop-tab-panel]:not(.hidden),
html body.workspace-active #shop-home:not(.hidden) details[open] > :not(summary),
html body.workspace-active #shop-lost-items-panel:not(.hidden) > *,
html body.workspace-active #receipts-home:not(.hidden) > * {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html body.workspace-active #workspace-nav,
html body.workspace-active #workspace-nav.bottom-nav {
  z-index:2000!important;
}
@media(max-width:760px) {
  html body.workspace-active main.shell,
  html body.workspace-active .shell {
    width:100%!important;
    max-width:100%!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:8px 10px calc(120px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav {
    position:fixed!important;
    inset:auto 0 0 0!important;
    z-index:3000!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    touch-action:pan-x!important;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important;
  }
}
@media(min-width:761px) {
  html body.workspace-active main.shell,
  html body.workspace-active .shell {
    width:min(100%,1280px)!important;
    max-width:1280px!important;
    padding:18px 20px 36px!important;
  }
  html body.workspace-active #workspace-nav {
    position:sticky!important;
    top:0!important;
    z-index:100!important;
  }
}

/* Native scrolling without the old scrollbar arrow buttons.
   Keep the scrollbar thumb available on desktop; hide only arrow controls. */
html, body, body *, body *::before, body *::after {
  scrollbar-width:thin;
  scrollbar-color:rgba(72,105,132,.42) transparent;
}
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
body *::-webkit-scrollbar-button,
html::-webkit-scrollbar-button:single-button,
body::-webkit-scrollbar-button:single-button,
body *::-webkit-scrollbar-button:single-button {
  display:none!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  width:8px;
  height:8px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
body *::-webkit-scrollbar-thumb {
  background:rgba(72,105,132,.42);
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:99px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
body *::-webkit-scrollbar-track {
  background:transparent;
}


/* RESTORE THE ORIGINAL NATIVE PAGE SCROLLING.
   Remove the later fixed-height shell scrollbars that introduced the narrow
   side rail/arrow controls. Let the browser document scroll naturally. */
html,
body,
html body.workspace-active {
  width:100%!important;
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  position:static!important;
  overscroll-behavior-y:auto!important;
  scrollbar-width:auto!important;
  scrollbar-color:auto!important;
}
html body.workspace-active .shell,
html body.workspace-active main.shell {
  box-sizing:border-box!important;
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:1280px!important;
  height:auto!important;
  min-height:100vh!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:12px 12px 36px!important;
  overflow:visible!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
  scrollbar-width:auto!important;
  scrollbar-color:auto!important;
}
html body.workspace-active .shell > * {
  flex-shrink:initial!important;
}
@media(max-width:760px) {
  html body.workspace-active .shell,
  html body.workspace-active main.shell {
    width:100%!important;
    max-width:100%!important;
    min-height:100vh!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:8px 10px calc(112px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }
  html body.workspace-active #workspace-nav,
  html body.workspace-active #workspace-nav.bottom-nav {
    position:fixed!important;
    inset:auto 0 0 0!important;
    z-index:3000!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
}
@media(min-width:761px) {
  html body.workspace-active .shell,
  html body.workspace-active main.shell {
    padding:18px 20px 36px!important;
  }
}
/* Do not draw a custom scrollbar rail or arrow buttons on app containers. */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
html body.workspace-active .shell::-webkit-scrollbar,
html body.workspace-active main.shell::-webkit-scrollbar {
  all:revert!important;
}
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
html body.workspace-active .shell::-webkit-scrollbar-button,
html body.workspace-active main.shell::-webkit-scrollbar-button {
  all:revert!important;
}


/* FINAL NORMAL DOCUMENT SCROLL — remove viewport locking on every device. */
html, body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
  scroll-behavior: auto !important;
  touch-action: auto !important;
}
body.workspace-active {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y !important;
}
html body.workspace-active .shell {
  position: static !important;
  display: block !important;
  width: min(100% - 24px, 1280px) !important;
  max-width: 1280px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 12px 12px 40px !important;
  overflow: visible !important;
  contain: none !important;
}
html body.workspace-active #workspace-nav,
html body.workspace-active #workspace-nav.bottom-nav {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
html body.workspace-active #owner-home:not(.hidden),
html body.workspace-active #receipts-home:not(.hidden),
html body.workspace-active #pos-view:not(.hidden),
html body.workspace-active #shop-home:not(.hidden),
html body.workspace-active #subscription-home:not(.hidden),
html body.workspace-active #owner-dashboard-view:not(.hidden),
html body.workspace-active #profile-panel:not(.hidden),
html body.workspace-active #staff-profile-panel:not(.hidden),
html body.workspace-active #staff-sales-summary:not(.hidden),
html body.workspace-active #platform-referral-admin:not(.hidden),
html body.workspace-active [data-workspace-page]:not(.hidden) {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
}
html body.workspace-active form,
html body.workspace-active .form-scroll,
html body.workspace-active .declaration-form,
html body.workspace-active #register-form,
html body.workspace-active #profile-form {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
}
html body.workspace-active .bottom-nav {
  position: static !important;
  inset: auto !important;
}
html, body, body.workspace-active, body.workspace-active .shell {
  scrollbar-width: auto !important;
}
@media (max-width: 760px) {
  html body.workspace-active .shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px calc(28px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* Keep the original dashboard invite-card layout; enlarge only its QR code. */
#owner-home .referral-invite-card .referral-qr{
  width:248px!important;height:248px!important;min-height:248px!important;
  flex:0 0 248px!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#owner-home .referral-invite-card .referral-qr img,
#owner-home .referral-invite-card .referral-qr canvas{
  display:block!important;width:240px!important;height:240px!important;
  max-width:none!important;max-height:none!important;image-rendering:pixelated;
}
@media(max-width:520px){
  #owner-home .referral-invite-card .referral-qr{
    width:228px!important;height:228px!important;min-height:228px!important;flex-basis:228px!important;
  }
  #owner-home .referral-invite-card .referral-qr img,
  #owner-home .referral-invite-card .referral-qr canvas{width:220px!important;height:220px!important}
}


/* Dashboard subscription countdown: show the golden expiry card on the main dashboard. */
#owner-home .subscription-expiry-countdown{
  display:grid!important;gap:5px!important;margin:12px 0 16px!important;padding:16px!important;
  border:0!important;border-radius:17px!important;
  background:linear-gradient(125deg,#fff0c2 0%,#f4c96b 48%,#fff5d9 100%)!important;
  box-shadow:0 9px 22px rgba(140,95,24,.16)!important;color:#68430b!important;
}
#owner-home .subscription-expiry-countdown strong{font-size:25px!important;color:#68430b!important}
#receipts-home .receipt-actions-grid>.receipt-choice,
#receipts-home .receipt-actions-grid>.declaration-card>.receipt-choice{
  min-height:160px!important;padding:21px!important;
}
@media(max-width:600px){
  #receipts-home .receipt-actions-grid>.receipt-choice,
  #receipts-home .receipt-actions-grid>.declaration-card>.receipt-choice{
    min-height:132px!important;padding:18px!important;
  }
}


/* Super-admin private cybersecurity maintenance workspace */
.platform-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:5px;border:1px solid #dce8f0;border-radius:13px;background:#f5f9fc}
.platform-admin-tab{flex:1;min-width:140px;padding:11px 14px;border:0;border-radius:9px;background:transparent;color:#526b7d;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.platform-admin-tab.active{background:#fff;color:#126a9a;box-shadow:0 2px 10px rgba(24,78,112,.1)}
.maintenance-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.maintenance-category{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:104px;padding:13px;border:1px solid #dce8f0;border-radius:12px;background:#fbfdff;color:#29485e;text-align:left;cursor:pointer}
.maintenance-category>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e9f5fc;color:#147eaf;font-size:18px}
.maintenance-category strong{font-size:13px;line-height:1.3}
.maintenance-category small{color:#718797;font-size:11px;line-height:1.4}
.maintenance-category.active{border-color:#1688bd;background:#eef8ff;box-shadow:0 0 0 2px rgba(22,136,189,.09)}
.maintenance-request-form{padding:15px;border:1px solid #dce8f0;border-radius:13px;background:#fff}
.maintenance-request-form>label{display:block;margin-bottom:8px;color:#29485e;font-size:13px;font-weight:800}
.maintenance-request-form textarea{display:block;width:100%;min-height:112px;resize:vertical;padding:12px;border:1px solid #cfdee8;border-radius:10px;background:#fbfdff;color:#1d3547;font:inherit;font-size:13px;line-height:1.5}
.maintenance-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.maintenance-submit-row .btn{flex:0 0 auto}
.maintenance-result{margin-top:16px;padding:15px;border:1px solid #cfe2ef;border-radius:13px;background:#f8fcff}
.maintenance-result-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:#244a64}
.maintenance-result-head span{padding:4px 8px;border-radius:20px;background:#e7f3fa;color:#176e9d;font-size:10px;font-weight:800}
.maintenance-result-answer{color:#294254;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.maintenance-result-note{margin:12px 0 0;padding-top:10px;border-top:1px solid #dceaf2}
body.dashboard-dark .platform-admin-tabs,body.dashboard-dark .maintenance-request-form,body.dashboard-dark .maintenance-category,body.dashboard-dark .maintenance-result{background:#172838;border-color:#304a5e;color:#e3edf5}
body.dashboard-dark .platform-admin-tab{color:#afc0cd}
body.dashboard-dark .platform-admin-tab.active,body.dashboard-dark .maintenance-category.active{background:#203e54;color:#bfe6ff}
body.dashboard-dark .maintenance-category small,body.dashboard-dark .maintenance-request-form>label,body.dashboard-dark .maintenance-result-answer{color:#c1d0db}
body.dashboard-dark .maintenance-request-form textarea{background:#102131;border-color:#3b586d;color:#f1f6fa}
@media(max-width:520px){.maintenance-category-grid{grid-template-columns:1fr}.maintenance-category{min-height:82px}.maintenance-submit-row{align-items:stretch;flex-direction:column}.maintenance-submit-row .btn{width:100%}.platform-admin-tabs{gap:5px}.platform-admin-tab{min-width:0;padding:10px 8px;font-size:12px}}

/* Private cybersecurity maintenance control-room display */
.maintenance-control-room{margin:0 0 20px;padding:18px;border:1px solid #243c56;border-radius:16px;background:linear-gradient(145deg,#071626,#102b43);color:#e8f4ff;box-shadow:0 12px 28px rgba(5,20,36,.16)}
.maintenance-monitor-head,.maintenance-monitor-actions,.maintenance-monitor-readings,.maintenance-monitor-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.maintenance-monitor-head h2{margin:0 0 5px;color:#f4f9ff;font-size:19px}.maintenance-monitor-head .eyebrow{color:#73bce8;margin:0 0 5px}.maintenance-monitor-head .muted{color:#a8bfd2}
.maintenance-monitor-actions{flex-shrink:0}.maintenance-alert-light{width:12px;height:12px;border-radius:50%;background:#8495a5;box-shadow:0 0 0 4px rgba(132,149,165,.14)}
.maintenance-monitor-screen{margin-top:14px;padding:14px;border:1px solid rgba(120,170,205,.22);border-radius:12px;background:rgba(1,10,20,.72);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.maintenance-monitor-topline{color:#8caec6;font-size:10px;letter-spacing:.16em}.maintenance-wave-wrap{height:104px;position:relative;overflow:hidden;margin:10px 0;border-radius:8px;background:linear-gradient(rgba(43,113,150,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(43,113,150,.08) 1px,transparent 1px);background-size:18px 18px}
.maintenance-wave{position:absolute;inset:0;width:200%;height:100%;overflow:visible;animation:maintenance-wave-flow 4s linear infinite}
.maintenance-wave path{fill:none;stroke:#44d8c3;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px rgba(68,216,195,.65))}
.maintenance-monitor-readings{justify-content:flex-start;gap:clamp(14px,5vw,48px);flex-wrap:wrap}.maintenance-monitor-readings div{display:grid;gap:3px}.maintenance-monitor-readings strong{font-size:20px;color:#70e4d0}.maintenance-monitor-readings span{font-family:inherit;font-size:10px;color:#91a9bc;letter-spacing:.04em}
.maintenance-monitor-disclaimer{margin:9px 2px 0;color:#8ca4b8;font-size:10px}
.maintenance-control-room[data-state="running"] .maintenance-alert-light{background:#ff334f;box-shadow:0 0 0 4px rgba(255,51,79,.18),0 0 18px #ff334f;animation:maintenance-red-alert .8s infinite}
.maintenance-control-room[data-state="running"] .maintenance-monitor-phase{color:#ff6478}
.maintenance-control-room[data-state="complete"] .maintenance-alert-light{background:#f5c84b;box-shadow:0 0 0 4px rgba(245,200,75,.18),0 0 14px rgba(245,200,75,.7)}
.maintenance-control-room[data-state="complete"] .maintenance-wave path{stroke:#f5c84b;filter:drop-shadow(0 0 5px rgba(245,200,75,.6))}
.maintenance-control-room[data-state="failed"] .maintenance-alert-light{background:#ff334f;box-shadow:0 0 0 4px rgba(255,51,79,.18),0 0 16px #ff334f}
@keyframes maintenance-wave-flow{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes maintenance-red-alert{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.maintenance-wave,.maintenance-alert-light{animation:none}}
@media(max-width:520px){.maintenance-control-room{padding:14px}.maintenance-monitor-head{align-items:flex-start}.maintenance-monitor-actions{gap:8px}.maintenance-monitor-readings{gap:16px}.maintenance-monitor-readings strong{font-size:17px}}


/* Platform Admin control centre stays phone-width on desktop and fluid on mobile. */
html body.workspace-active #platform-referral-admin:not(.hidden){
  width:min(100%,430px)!important;
  max-width:430px!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
}
html body.workspace-active #platform-security-panel:not(.hidden){
  display:block!important;
  width:100%!important;
  max-width:430px!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
}
#platform-referral-admin,
#platform-referral-admin *,
#platform-security-panel,
#platform-security-panel *{min-width:0;box-sizing:border-box}
#platform-security-panel .section-head{align-items:flex-start;flex-direction:column;gap:8px}
#platform-security-panel .maintenance-control-room,
#platform-security-panel .maintenance-request-form,
#platform-security-panel .maintenance-result{width:100%;max-width:100%}
#platform-security-panel .maintenance-monitor-head{align-items:flex-start;flex-wrap:wrap}
#platform-security-panel .maintenance-monitor-status{overflow-wrap:anywhere}
#platform-security-panel .maintenance-submit-row{align-items:flex-start}
#platform-security-panel .maintenance-submit-row #maintenance-request-status{min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){
  html body.workspace-active #platform-referral-admin:not(.hidden){width:100%!important;max-width:430px!important;padding:12px!important}
  #platform-security-panel .maintenance-submit-row{flex-direction:column}
  #platform-security-panel .maintenance-submit-row .btn{width:100%}
}


/* Keep the Home invite QR compact so it never pushes the subscription bar or workspace tabs down. */
@media (min-width: 1024px){
  body.workspace-active #owner-home .referral-invite-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-content:start!important;
    gap:5px!important;
    height:104px!important;
    min-height:104px!important;
    max-height:104px!important;
    box-sizing:border-box!important;
    padding:7px 9px!important;
    overflow:hidden!important;
  }
  body.workspace-active #owner-home .referral-invite-head{
    min-height:54px!important;
    max-height:54px!important;
    align-items:center!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  body.workspace-active #owner-home .referral-invite-head h2{
    margin:0!important;
    font-size:13px!important;
    line-height:1.15!important;
  }
  body.workspace-active #owner-home .referral-qr{
    flex:0 0 52px!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    padding:3px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body.workspace-active #owner-home .referral-qr img,
  body.workspace-active #owner-home .referral-qr canvas{
    width:46px!important;
    height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
    object-fit:contain!important;
  }
  body.workspace-active #owner-home .referral-share-row{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    min-height:27px!important;
    max-height:27px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body.workspace-active #owner-home .referral-share-row input{
    min-width:0!important;
    height:27px!important;
    min-height:27px!important;
    padding:4px 6px!important;
    font-size:9px!important;
  }
  body.workspace-active #owner-home .referral-share-row button{
    flex:0 0 auto!important;
    width:auto!important;
    min-height:27px!important;
    height:27px!important;
    padding:4px 7px!important;
    font-size:9px!important;
    line-height:1!important;
  }
}


/* Shared AURORA Loans workspace — one ledger UI for every party role. */
.loans-home{box-sizing:border-box;width:100%;max-width:980px;margin:0 auto;padding:8px 0 28px;min-width:0}
.loans-page-heading{padding:20px 22px;margin:0 0 16px;border:1px solid #dce6f0;border-radius:18px;background:linear-gradient(135deg,#f7fbff,#edf5fc)}
.loans-page-heading h1{margin:4px 0 8px;color:#173b5d;font-size:clamp(24px,4vw,34px)}
.loans-page-heading p:last-child{max-width:680px;margin-bottom:0}
.loans-create-card,.loans-list-section{border:1px solid #dce5ee;border-radius:16px;background:#fff;margin:0 0 16px;overflow:hidden;box-shadow:0 5px 18px rgba(24,55,84,.055)}
.loans-create-card>summary{cursor:pointer;list-style:none;padding:17px 18px;display:flex;flex-direction:column;gap:5px}
.loans-create-card>summary::-webkit-details-marker{display:none}
.loans-create-card>summary strong{color:#17466d;font-size:16px}
.loans-create-card>summary small{color:#6a7b8b}
.loans-offer-form{padding:4px 18px 18px;display:grid;gap:12px}
.loans-permission-check{display:flex;align-items:flex-start;gap:10px;font-weight:650}
.loans-permission-check input{width:18px;min-width:18px;margin-top:3px}
.loans-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;border-bottom:1px solid #e6edf3}
.loans-section-heading h2{margin:2px 0 0;font-size:19px;color:#183c5d}
.loans-section-heading .eyebrow{margin:0;color:#6c8297;font-size:10px;letter-spacing:.12em;font-weight:800}
.loans-count{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border-radius:20px;background:#eaf3fb;color:#18517d;font-weight:800}
.loans-list{display:grid;gap:10px;padding:14px}
.loan-record-card{border:1px solid #e0e8ef;border-radius:13px;padding:14px;background:#fff;min-width:0}
.loan-record-card.is-overdue{border-color:#e4a4a0;background:#fffafa}
.loan-record-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.loan-record-top .eyebrow{margin:0 0 4px;font-size:10px;color:#73879a;letter-spacing:.1em}
.loan-record-top h3{margin:0;font-size:17px;color:#173b5d;overflow-wrap:anywhere}
.loan-status{flex:0 0 auto;border-radius:20px;padding:5px 8px;background:#edf3f8;color:#36536d;font-size:9px;font-weight:850;letter-spacing:.04em;text-align:center}
.loan-record-card.is-overdue .loan-status{background:#fde8e6;color:#a52f28}
.loan-party-line{margin:10px 0 8px;color:#526779;font-size:13px}
.loan-party-line span{color:#8393a1}
.loan-record-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.loan-record-facts span{display:grid;gap:3px;color:#748596;font-size:10px}
.loan-record-facts strong{color:#263f55;font-size:12px;overflow-wrap:anywhere}
.loan-record-meta{margin:8px 0 0;color:#6b7c8b;font-size:11px;overflow-wrap:anywhere}
.loan-record-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.loan-record-actions .btn{min-height:34px}
.loans-empty{margin:0;padding:18px;text-align:center;color:#788b9d;font-size:13px}
@media(max-width:600px){.loans-page-heading{padding:16px;border-radius:14px}.loans-section-heading{padding:14px}.loans-list{padding:10px}.loan-record-facts{gap:5px}.loan-record-facts strong{font-size:11px}.loan-record-top{flex-wrap:wrap}}

.customer-loans-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:18px;border:1px solid #d9e5f0;border-radius:16px;background:linear-gradient(120deg,#f5faff,#edf5fc);box-shadow:0 5px 18px rgba(24,55,84,.05)}
.customer-loans-card h2{margin:3px 0 5px;color:#173b5d;font-size:18px}
.customer-loans-card .eyebrow{margin:0;color:#66809a;font-size:10px;font-weight:800;letter-spacing:.12em}
.customer-loans-card p{margin:0}
@media(max-width:520px){.customer-loans-card{align-items:flex-start;flex-direction:column}.customer-loans-card .btn{width:100%}}


/* Scan to Invite QR: keep one fixed compact footprint at every desktop
   window size. Resizing/minimising the browser must never enlarge it. */
html body.workspace-active #owner-home #referral-card .referral-invite-head {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
}
html body.workspace-active #owner-home #referral-card .referral-qr {
  box-sizing:border-box!important;
  flex:0 0 52px!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  padding:3px!important;
  overflow:hidden!important;
}
html body.workspace-active #owner-home #referral-card .referral-qr img,
html body.workspace-active #owner-home #referral-card .referral-qr canvas {
  display:block!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  object-fit:contain!important;
  image-rendering:pixelated;
}
html body.workspace-active #owner-home #referral-card .referral-invite-head h2 {
  min-width:0!important;
  overflow-wrap:anywhere;
}

/* Home page — minimal colourful daily sales pie chart. */
.home-daily-sales{margin:12px 0 22px;padding:16px 18px;border:1px solid #e0e8f1;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(30,55,90,.06)}
.home-sales-title{margin:0 0 12px;color:#24364b;font-size:16px;font-weight:800}
.home-sales-pie-layout{display:flex;align-items:center;justify-content:center;gap:24px;min-height:170px}
.home-sales-chart{display:flex;align-items:center;justify-content:center;flex:0 0 160px;min-width:0}
.home-sales-pie{width:154px;height:154px;border-radius:50%;display:grid;place-items:center;background:#e9eef4;position:relative}
.home-sales-pie-center{width:82px;height:82px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 1px 6px rgba(25,45,70,.08);padding:5px}
.home-sales-pie-center strong{font-size:13px;color:#263b55;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-sales-pie-center small{font-size:9px;color:#758399}
.home-sales-pie.is-empty{background:#e9eef4}
.home-sales-legend{display:grid;grid-template-columns:repeat(2,minmax(74px,1fr));gap:10px 16px;min-width:0}
.home-sales-legend-item{display:grid;grid-template-columns:9px auto auto;align-items:center;gap:6px;font-size:11px;color:#65758a;white-space:nowrap}
.home-sales-legend-item i{width:8px;height:8px;border-radius:50%}
.home-sales-legend-item strong{color:#263b55;font-size:11px}
@media(max-width:480px){.home-daily-sales{padding:13px 11px}.home-sales-pie-layout{gap:13px;min-height:145px}.home-sales-chart{flex-basis:126px}.home-sales-pie{width:122px;height:122px}.home-sales-pie-center{width:68px;height:68px}.home-sales-pie-center strong{font-size:11px}.home-sales-legend{gap:9px 8px;grid-template-columns:repeat(2,minmax(60px,1fr))}.home-sales-legend-item{font-size:10px;gap:4px}.home-sales-legend-item strong{font-size:10px}}



/* AURORA unified workspace canvas and flowing card system.
   The workspace itself is a single pure-white surface; colour belongs to cards. */
html body.workspace-active,
html body.workspace-active main.shell,
html body.workspace-active main.shell > section:not(.hidden),
html body.workspace-active main.shell > section.panel:not(.hidden) {
  background-color:#fff !important;
  background-image:none !important;
}
html body.workspace-active main.shell > section:not(.hidden) {
  border-color:transparent !important;
  box-shadow:none !important;
}
html body.workspace-active main.shell > #receipts-home:not(.hidden),
html body.workspace-active main.shell > #loans-home:not(.hidden),
html body.workspace-active main.shell > #shop-home:not(.hidden),
html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden),
html body.workspace-active main.shell > #owner-home:not(.hidden),
html body.workspace-active main.shell > #pos-view:not(.hidden) {
  background:#fff !important;
  background-image:none !important;
}

/* Shared card finish: softly flowing colour, rounded corners and gentle depth. */
html body.workspace-active main.shell .panel:not(#receipts-home),
html body.workspace-active main.shell .receipt-choice,
html body.workspace-active main.shell .aurora-history-workspace,
html body.workspace-active main.shell .declaration-card,
html body.workspace-active main.shell .channel-card,
html body.workspace-active main.shell .setup-steps > li,
html body.workspace-active main.shell .owner-home-card,
html body.workspace-active main.shell .home-daily-sales,
html body.workspace-active main.shell .shop-product-action-grid > button,
html body.workspace-active main.shell .shop-section-tabs > button {
  border:1px solid rgba(125,151,181,.22) !important;
  border-radius:19px !important;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(115,190,255,.16), transparent 58%),
    linear-gradient(132deg, #ffffff 0%, #f5f9ff 52%, #f4fbfa 100%) !important;
  box-shadow:0 7px 22px rgba(35,66,100,.075), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html body.workspace-active main.shell .receipt-choice,
html body.workspace-active main.shell .shop-product-action-grid > button,
html body.workspace-active main.shell .shop-section-tabs > button {
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
html body.workspace-active main.shell .receipt-choice:active,
html body.workspace-active main.shell .shop-product-action-grid > button:active {
  transform:translateY(1px) scale(.99);
}
html body.workspace-active main.shell .receipt-choice:nth-child(4n+2),
html body.workspace-active main.shell .shop-product-action-grid > button:nth-child(4n+2) {
  background:radial-gradient(ellipse at 0% 0%,rgba(91,199,222,.18),transparent 60%),linear-gradient(132deg,#fff 0%,#f0faff 58%,#f2fbfa 100%) !important;
}
html body.workspace-active main.shell .receipt-choice:nth-child(4n+3),
html body.workspace-active main.shell .shop-product-action-grid > button:nth-child(4n+3) {
  background:radial-gradient(ellipse at 0% 0%,rgba(174,139,255,.17),transparent 60%),linear-gradient(132deg,#fff 0%,#f7f3ff 58%,#f4f8ff 100%) !important;
}
html body.workspace-active main.shell .receipt-choice:nth-child(4n+4),
html body.workspace-active main.shell .shop-product-action-grid > button:nth-child(4n+4) {
  background:radial-gradient(ellipse at 0% 0%,rgba(255,174,122,.18),transparent 60%),linear-gradient(132deg,#fff 0%,#fff7f1 58%,#fff9f5 100%) !important;
}

/* Loans: colour fills the complete card face, not just its outline. */
html body.workspace-active #loans-home .loans-page-heading {
  border:1px solid rgba(94,142,194,.20) !important;
  border-radius:22px !important;
  background:
    radial-gradient(ellipse at 5% 0%,rgba(94,177,255,.30),transparent 58%),
    linear-gradient(125deg,#eef6ff 0%,#f2f1ff 52%,#edf9f8 100%) !important;
  box-shadow:0 8px 24px rgba(31,73,119,.08),inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html body.workspace-active #loans-home .loans-create-card,
html body.workspace-active #loans-home .loans-list-section {
  border:1px solid rgba(107,139,183,.22) !important;
  border-radius:21px !important;
  overflow:hidden !important;
  box-shadow:0 8px 24px rgba(36,66,103,.09),inset 0 1px 0 rgba(255,255,255,.55) !important;
}
html body.workspace-active #loans-home .loans-create-card {
  background:
    radial-gradient(ellipse at 0% 0%,rgba(177,151,255,.42),transparent 66%),
    linear-gradient(128deg,#e9eaff 0%,#f0edff 48%,#eaf5ff 100%) !important;
}
html body.workspace-active #loans-home .loans-list-section:nth-of-type(1) {
  background:
    radial-gradient(ellipse at 0% 0%,rgba(89,207,174,.34),transparent 68%),
    linear-gradient(128deg,#e8faf3 0%,#effbf7 52%,#eaf8ff 100%) !important;
}
html body.workspace-active #loans-home .loans-list-section:nth-of-type(2) {
  background:
    radial-gradient(ellipse at 0% 0%,rgba(106,173,255,.34),transparent 68%),
    linear-gradient(128deg,#eaf4ff 0%,#f0f2ff 52%,#f5efff 100%) !important;
}
html body.workspace-active #loans-home .loans-create-card>summary,
html body.workspace-active #loans-home .loans-section-heading {
  background:transparent !important;
}
html body.workspace-active #loans-home .loans-section-heading {
  border-bottom-color:rgba(75,111,151,.13) !important;
}
html body.workspace-active #loans-home .loans-count {
  background:rgba(255,255,255,.72) !important;
  border:1px solid rgba(91,130,177,.16);
  border-radius:12px !important;
}
html body.workspace-active #loans-home .loan-record-card {
  border:1px solid rgba(84,133,169,.18) !important;
  border-radius:17px !important;
  background:
    radial-gradient(ellipse at 0% 0%,rgba(101,192,218,.22),transparent 66%),
    linear-gradient(130deg,#f0fbff 0%,#f4f8ff 58%,#f1fbf8 100%) !important;
  box-shadow:0 5px 16px rgba(37,82,111,.075),inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html body.workspace-active #loans-home .loan-record-card:nth-child(3n+2) {
  background:
    radial-gradient(ellipse at 0% 0%,rgba(173,146,255,.22),transparent 66%),
    linear-gradient(130deg,#f7f2ff 0%,#f4f6ff 58%,#f1f8ff 100%) !important;
}
html body.workspace-active #loans-home .loan-record-card.is-overdue {
  border-color:rgba(211,93,93,.25) !important;
  background:
    radial-gradient(ellipse at 0% 0%,rgba(255,145,132,.24),transparent 66%),
    linear-gradient(130deg,#fff0ee 0%,#fff6f3 58%,#fff9f6 100%) !important;
}
html body.workspace-active #loans-home .loan-record-facts {
  border-top-color:rgba(67,108,143,.14) !important;
  border-bottom-color:rgba(67,108,143,.14) !important;
}
html body.workspace-active #loans-home .loan-status {
  background:rgba(255,255,255,.72) !important;
  border:1px solid rgba(80,124,162,.14);
}

/* Keep card contents readable and form controls clean white. */
html body.workspace-active #loans-home input,
html body.workspace-active #loans-home textarea,
html body.workspace-active #loans-home select {
  background:#fff !important;
  border-radius:11px !important;
}
@media(max-width:760px) {
  html body.workspace-active main.shell > section:not(.hidden) {
    border-radius:0 !important;
  }
  html body.workspace-active main.shell .panel:not(#receipts-home),
  html body.workspace-active main.shell .receipt-choice,
  html body.workspace-active main.shell .aurora-history-workspace,
  html body.workspace-active main.shell .declaration-card,
  html body.workspace-active #loans-home .loans-page-heading,
  html body.workspace-active #loans-home .loans-create-card,
  html body.workspace-active #loans-home .loans-list-section,
  html body.workspace-active #loans-home .loan-record-card {
    border-radius:17px !important;
  }
  html body.workspace-active #loans-home .loans-page-heading {
    padding:16px !important;
  }
}
