/* Shared workspace surfaces: tablet-like cards, readable values and one main scroll. */
.panel:has(.account-grid),.panel:has(.purchase-grid),.panel:has(.analytics),.panel:has(.sales-history){display:block;overflow:auto!important;scrollbar-gutter:stable}
.panel>.page-heading h1{letter-spacing:-.045em}.page-heading p{max-width:780px;line-height:1.55}
.overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.overview-metric{background:#f6f8fa;border:1px solid #dfe6eb;border-radius:20px;padding:22px;display:grid;gap:9px;min-width:0}
.overview-metric>span{color:#586778;font-size:13px;font-weight:600}.overview-metric strong{font-size:clamp(25px,3vw,36px);letter-spacing:-.045em;font-variant-numeric:tabular-nums}.overview-metric small{color:#657487;font-size:12px}
.overview-metric.accent{background:#eaf3ef;border-color:#d0e5d9}.overview-metric.accent strong{color:#22694e}
.area-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:18px 0}.area-toolbar .search{flex:1;min-width:min(260px,100%)}.area-toolbar select{width:auto;max-width:100%;min-height:44px;font-size:13px}
.area-toolbar .analytics-tabs button[aria-pressed=true],.history-status-tabs button[aria-pressed=true]{background:#243543;color:#fff;border-color:#243543}.analytics-tabs button{min-height:40px}
.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px}
.account-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:1px solid #dfe5eb;border-radius:18px;padding:18px;background:#fff;min-width:0;transition:background .15s,border-color .15s}
.account-card:hover{background:#f6faf8;border-color:#abcdb9}.account-avatar{display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;background:#e9eef3;border-radius:14px;color:#39546b;font-size:13px;font-weight:750}
.account-info{display:grid;gap:5px;flex:1;min-width:0}.account-info strong{font-size:14px;overflow-wrap:anywhere}.account-info small,.account-value small{color:#708092;font-size:11px}.account-value{display:grid;gap:9px;text-align:right;flex:0 0 auto}.account-value b{font-size:20px;letter-spacing:-.04em;color:#245c47;white-space:nowrap}.account-value small{display:flex;align-items:center;justify-content:flex-end;gap:6px}.account-value .icon{width:13px;height:13px}
.sync-caption{font-size:12px;line-height:1.6;color:#6a7989;margin:18px 0 0}.account-total{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf5f0;padding:20px;border:1px solid #d8e7dd;border-radius:16px;margin-bottom:18px}.account-total span{font-size:13px;color:#566c60}.account-total strong{font-size:28px;color:#256348;letter-spacing:-.04em}
.detail-list{display:grid;gap:9px}.detail-row{display:flex;text-align:left;align-items:center;gap:16px;width:100%;padding:16px;background:#f8fafb;border:1px solid #e0e7ed;border-radius:13px}.detail-row>span{flex:1;display:grid;gap:6px}.detail-row small{font-size:12px;color:#647589}.detail-row b{white-space:nowrap}.detail-row>.icon{width:15px}
.purchase-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.purchase-card{padding:22px;border:1px solid #dce4e9;border-radius:20px;background:#fff;text-align:left;min-width:0;display:flex;flex-direction:column}.purchase-card:hover{border-color:#aabfc9;background:#fafcfd}.purchase-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-card h2{font-size:20px;letter-spacing:-.035em;overflow-wrap:anywhere;margin:18px 0 6px}.purchase-card p{font-size:12px;color:#6a7989;margin:0 0 16px}.purchase-preview{font-size:12px;line-height:1.6;color:#607080;min-height:38px;margin-bottom:18px;overflow-wrap:anywhere}.purchase-progress{display:flex;justify-content:space-between;font-size:11px;color:#657487;gap:10px;margin-top:auto}.purchase-card progress{appearance:none;border:0;width:100%;height:6px;border-radius:9px;overflow:hidden;margin:8px 0 22px;accent-color:#3c8c70}.purchase-card progress::-webkit-progress-bar{background:#eaf0f2}.purchase-card progress::-webkit-progress-value{background:#3c8c70;border-radius:9px}.purchase-card footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;border-top:1px solid #e8edf1}.purchase-card footer>span:first-child{display:grid;gap:6px}.purchase-card footer small{font-size:11px;color:#6a7989}.purchase-card footer strong{font-size:23px;letter-spacing:-.045em}.purchase-card footer>span:last-child{display:flex;align-items:center;gap:6px;font-size:12px;color:#386453}.purchase-card footer .icon{width:14px}
.purchase-item{display:flex;align-items:start;gap:12px;padding:16px;background:#f8fafb;border:1px solid #e1e7ec;border-radius:14px}.purchase-item>div{flex:1;min-width:0;display:grid;gap:7px}.purchase-item strong{font-size:14px;overflow-wrap:anywhere}.purchase-item small{font-size:12px;color:#6b7b8d}.purchase-item>b{font-size:14px;white-space:nowrap}.item-check{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#e9edf1;color:#7e8a97;flex-shrink:0}.item-check.done{background:#e0f0e6;color:#297451}.item-check .icon{width:17px}.item-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11px;color:#657487}.item-meta b{color:#334b60}
.sales-history-tools .history-date{flex:0 1 160px;min-width:140px}.sales-history-tools .field{margin:0}.history-status-tabs{width:fit-content;margin:16px 0}.history-summary{display:flex;flex-wrap:wrap;gap:10px 24px;padding:14px 0;font-size:12px;color:#637286;border-bottom:1px solid #e4eaf0}.history-summary b{color:#293e51}.sales-history-row{background:#fff;border:1px solid #dfe6ec;border-radius:16px;padding:16px}.sales-history-info{gap:7px}.sales-history-info strong{font-size:14px}.sales-history-info small{font-size:12px;line-height:1.5}.sales-history-info small:last-child{color:#7c8997}.sales-history-amount b{font-size:20px;letter-spacing:-.04em}.sales-history-row .analytics-icon{background:#eaf1ee;color:#3a755b}
.analytics{gap:22px}.analytics-switches{position:sticky;top:-1px;background:#fff;z-index:3;padding:8px 0 14px;border-bottom:1px solid #e6ebf0}.analytics-metrics{gap:14px}.analytics-metric{border-radius:20px;padding:20px;background:#fff;box-shadow:0 3px 10px #17233206}.analytics-metric.blue{background:#eaf2fb;border-color:#d4e3f4}.analytics-metric.green{background:#edf6f0;border-color:#d7e9dd}.analytics-metric.violet{background:#f2eef8;border-color:#e3daef}.analytics-metric.amber{background:#faf3e9;border-color:#eee0c8}.analytics-metric strong{font-variant-numeric:tabular-nums;font-size:clamp(21px,2.1vw,32px)}.analytics-metric small{font-size:11px;line-height:1.55}.analytics-card{padding:23px;border-radius:20px;box-shadow:none}.analytics-card header{padding-bottom:14px;border-bottom:1px solid #edf1f4}.analytics-card h2{font-size:20px}.analytics-sales button{background:#fff;padding:13px;border-radius:14px}.analytics-sales button small{font-size:11px;line-height:1.5}.analytics-sales button strong{font-size:13px}.analytics-sales b{font-size:15px}.analytics-rows{margin-top:6px}.analytics-rows li{padding:16px 0}.analytics-rows li>strong{font-size:13px}.analytics-rows li>span:not(.analytics-number){font-size:12px;color:#64758a}.analytics-payments li{padding:16px 0}.analytics-payments small{font-size:11px}
.currency-hint{display:block;font-size:11px;line-height:1.5;color:#657487;margin:5px 0 0}.profit-positive{color:#257351}.profit-negative{color:#a44040}.sale-detail-cards{display:grid;gap:9px}.sale-detail-card{border:1px solid #e1e7ec;border-radius:14px;padding:16px;display:grid;gap:12px}.sale-detail-card header{display:flex;align-items:start;justify-content:space-between;gap:12px}.sale-detail-card header strong{font-size:14px}.sale-detail-card header b{white-space:nowrap}.sale-detail-meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:12px;color:#66778a}.sale-detail-meta b{color:#2e455b}.sale-detail-warning{color:#986c23;font-size:12px;margin:0}
.sidebar nav{overflow-x:hidden}.sidebar nav a{min-width:0}.sidebar nav a span{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1000px){.layout{grid-template-columns:200px minmax(0,1fr)}.workspace:before{left:200px}.sidebar{width:200px;padding-inline:14px}.sidebar .brand{white-space:normal}.sidebar nav .nav-link{font-size:13px;padding:12px 10px;gap:10px}.topbar{padding:14px 22px}.shop-select small{max-width:130px}.analytics-columns{grid-template-columns:1fr}.panel{padding:24px!important}}
@media(max-width:760px){.overview-metrics{gap:10px;margin:16px 0}.overview-metric{padding:16px;border-radius:16px}.overview-metric strong{font-size:25px}.overview-metric>span,.overview-metric small{font-size:11px}.area-toolbar{align-items:stretch;gap:10px}.area-toolbar .search{width:100%;flex-basis:100%}.area-toolbar select{flex:1}.account-card{padding:14px;gap:10px}.account-avatar{width:36px;height:36px;font-size:11px}.account-value b{font-size:18px}.account-info strong{font-size:13px}.account-info small{font-size:10px}.account-value small{font-size:10px}.purchase-card{padding:18px}.purchase-item{flex-wrap:wrap;padding:13px}.purchase-item>b{margin-left:45px}.analytics-metrics{gap:10px}.analytics-metric{padding:14px;gap:9px}.analytics-metric .analytics-icon{display:none}.analytics-metric strong{font-size:23px}.analytics-metric>div>span{font-size:11px}.analytics-card{padding:16px}.analytics-columns{grid-template-columns:1fr}.analytics-switches{position:static}.analytics-switches button{font-size:12px;padding:8px 11px}.sales-history-tools{gap:10px}.sales-history-tools .field:first-child{flex-basis:100%;max-width:none}.sales-history-tools .history-date{flex:1;min-width:0}.history-status-tabs{display:flex;width:100%;gap:3px}.history-status-tabs button{flex:1;font-size:11px;padding:8px 5px}.sales-history-row{padding:14px}.sales-history-amount b{font-size:17px}.account-total{padding:16px}.account-total strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.account-card{transition:none}}

.analytics-sales b{display:grid;gap:5px;text-align:right}.analytics-sales b small{font-size:10px;font-weight:500;color:#638070}.analytics-sales button strong{overflow-wrap:anywhere}.sale-detail-card header{flex-wrap:wrap}

.sale-receipt{max-width:560px;margin:auto;background:white;border:1px solid #dde6e8;border-radius:18px;overflow:hidden;color:#162430}
.receipt-brand{padding:24px 18px;text-align:center;background:#edf5f3;overflow-wrap:anywhere}
.receipt-brand p{margin:0 0 8px;font-size:.78rem;color:#47625e}
.receipt-brand h3{margin:0 0 10px;font-size:1.55rem}
.receipt-brand div,.receipt-meta dt,.receipt-totals dt{font-size:.85rem;color:#51636b}
.receipt-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px}
.receipt-meta dd,.receipt-totals dd{margin:3px 0 0;font-weight:650;overflow-wrap:anywhere}
.receipt-items{width:calc(100% - 36px);margin:0 18px;border-collapse:collapse;font-size:.84rem}
.receipt-items th,.receipt-items td{padding:8px 4px;border-bottom:1px solid #edf0f2;text-align:right}
.receipt-items th:first-child,.receipt-items td:first-child{text-align:left;overflow-wrap:anywhere}
.receipt-totals{margin:16px 18px}
.receipt-totals div{display:flex;justify-content:space-between;gap:12px;padding:4px 0}
.receipt-totals .receipt-total{margin-top:8px;border-top:1px dashed #8ca2a7;padding-top:12px}
.receipt-total dd{font-size:1.3rem;color:#205f49}
.sale-receipt footer{text-align:center;padding:12px 18px 18px;color:#51636b;overflow-wrap:anywhere}
.sale-receipt footer p{margin:0 0 4px}
@media print {
 body:has(.sale-receipt) #app,body:has(.sale-receipt) #toast,
 body:has(.sale-receipt) .dialog-header,body:has(.sale-receipt) .dialog-footer{display:none!important}
 body:has(.sale-receipt),html:has(.sale-receipt){background:white!important;height:auto!important;overflow:visible!important}
 #modal:has(.sale-receipt){position:static!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0;border:0;box-shadow:none;background:white}
 #modal:has(.sale-receipt)::backdrop{display:none}
 #modal:has(.sale-receipt) .dialog-body{padding:0;max-height:none;overflow:visible}
 .sale-receipt{border:0;border-radius:0;max-width:100%}
 .receipt-items tr{break-inside:avoid}
 .receipt-totals{break-inside:avoid}
}
.offer{color:#192c32;scroll-margin-top:80px}.offer-intro{max-width:620px;margin-bottom:28px}.offer .plan-tag{color:#35645d}.offer h2{font-size:clamp(32px,5vw,56px);line-height:1.05;margin:9px 0 15px;letter-spacing:-.045em}.offer p{line-height:1.55}.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.offer-card,.offer-profile{border:1px solid #dce5e1;border-radius:20px;padding:clamp(20px,3vw,34px);background:#fff}.offer-card{display:flex;flex-direction:column;align-items:flex-start;transition:transform .24s ease,box-shadow .24s ease;animation:offer-rise .5s ease both}.offer-premium{background:#142e33;color:#fff;border-color:#142e33;animation-delay:90ms}.offer-card h3,.offer-profile h3{font-size:25px;margin:8px 0}.offer-card p{margin:0;min-height:3em}.offer-label{font-size:12px;font-weight:750;letter-spacing:.05em}.offer-price{font-size:clamp(34px,5vw,49px);font-weight:800;letter-spacing:-.045em;margin-top:18px}.offer-price small{font-size:14px;letter-spacing:0;font-weight:600}.offer-card ul{padding-left:20px;line-height:1.5;margin:18px 0 24px}.offer-card li+li{margin-top:8px}.offer-card .button{margin-top:auto}.offer-profile{margin-top:18px;scroll-margin-top:90px}.offer-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;align-items:end}.offer-fields label{font-size:13px;font-weight:700}.offer-fields select{display:block;width:100%;padding:11px 9px;margin-top:5px;background:#f7faf8;border:1px solid #b8cec5;border-radius:9px;color:#192c32;font:inherit}.offer-result{background:#e6f5ec;border-radius:12px;padding:14px;animation:offer-rise .28s ease both}.offer-note{font-size:13px;margin-bottom:0}.offer [hidden]{display:none}.offer :focus-visible{outline:3px solid #239b84;outline-offset:3px}@keyframes offer-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(hover:hover){.offer-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #123b3420}}@media(max-width:680px){.offer-grid{grid-template-columns:1fr}.offer-card p{min-height:0}}@media(prefers-reduced-motion:reduce){.offer *{animation:none!important;transition:none!important}}
.orange-receipt{background:#fafafb;color:#111318;border-radius:20px;overflow:hidden;padding:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.orange-receipt .receipt-brand,.orange-receipt footer{background:linear-gradient(145deg,#35363c,#131419);color:white;padding:24px;border-color:#ff7800}
.orange-receipt .receipt-brand{border-bottom:7px solid #ff7800;border-radius:0 0 24% 10%}
.orange-receipt .receipt-brand h3{font-size:clamp(23px,5vw,44px);font-weight:900;font-style:italic;color:white;margin:0 0 12px}
.orange-receipt .receipt-contacts{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;border-top:1px solid #ffffff66;padding-top:10px;font-size:12px}
.orange-receipt .receipt-title{text-align:center;padding:16px 8px}
.orange-receipt .receipt-title h3{text-transform:uppercase;font-size:clamp(19px,4vw,31px);margin:0;font-weight:900}
.orange-receipt .receipt-title p{margin:4px 0 12px;color:#54565f}
.orange-receipt .receipt-title strong{display:inline-block;background:linear-gradient(#3c404b,#15161a);color:white;padding:6px 18px;border-radius:20px}
.orange-receipt .receipt-meta,.orange-receipt .receipt-summary{margin:0 12px 14px;padding:12px;background:#f0f0f3;border:1px solid #d4d5dc;border-radius:15px}
.orange-receipt .receipt-items{width:calc(100% - 24px);margin:0 12px 14px;border-collapse:separate;border-spacing:0;border:1px solid #d4d5dc;border-radius:12px;overflow:hidden}
.orange-receipt .receipt-items th{background:#24252b;color:white}
.orange-receipt .receipt-items :is(th,td){padding:8px 5px}
.orange-receipt .receipt-items :is(th,td):nth-child(n+3){text-align:right;white-space:nowrap}
.orange-receipt .receipt-summary{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.orange-receipt .receipt-totals{margin:0;padding:0}
.orange-receipt .receipt-amount{background:linear-gradient(#ff8100,#bb3900);color:white;border-radius:14px;padding:clamp(8px,3vw,20px);font-size:clamp(17px,5vw,38px);white-space:nowrap}
.orange-receipt .receipt-status{text-align:center;margin:0 12px 16px;padding:9px;border-radius:22px;background:#eee3d4;font-weight:800}
.orange-receipt .receipt-paid{background:#d9f2d3;color:#163d16}
.orange-receipt footer{text-align:center;border-top:6px solid #ff7800;border-radius:24% 10% 0 0}
@media(max-width:400px){.orange-receipt .receipt-items{font-size:11px}.orange-receipt .receipt-summary{grid-template-columns:1fr}.orange-receipt .receipt-amount{text-align:center}}
