/* Dealer dashboard and data-entry visual alignment */
.dealer-id-avatar{width:auto!important;min-width:44px;max-width:108px!important;height:38px!important;padding:0 9px!important;border-radius:20px!important;font:800 10px/1 'DM Sans',sans-serif!important;letter-spacing:.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e9f5ed!important;color:#13583d!important;border:1px solid #bdd9c7}
.overview-reminder-row{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.overview-reminder-row .reminder-pill{min-height:42px;box-sizing:border-box}
.reminder-rc-icon{font-size:17px;color:#145c40}
.stock-category-circles{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2.5vw,24px);flex-wrap:wrap;padding:18px 8px}
.stock-category-orbit{display:grid;justify-items:center;gap:8px;min-width:100px;color:#29483a}
.stock-category-circle{width:100px;height:100px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:radial-gradient(circle at 34% 28%,#fff 0,#eff8f2 46%,#d6ebdd 100%);border:8px solid var(--stock-circle,#16845a);box-shadow:inset 0 0 0 5px #fff,0 8px 18px #0b51331b}
.stock-category-circle b{font:800 19px/1 'DM Sans',sans-serif;color:#123e2c}
.stock-category-circle span{font:700 11px/1.1 'DM Sans',sans-serif;color:#456255;text-transform:capitalize}
.stock-category-orbit>small{font-size:11px;font-weight:700;color:#61766a}
.dealer-customer-equal-field{min-width:0}
.dealer-autocomplete-anchor{position:relative!important}
.dealer-suggestion-popover{position:absolute!important;z-index:1000;left:0;right:0;top:calc(100% + 5px);max-height:260px;overflow:auto;margin:0!important;padding:6px!important;border:1px solid #bad6c4!important;border-radius:11px!important;background:#fff!important;box-shadow:0 14px 30px #143e2926!important}
.dealer-suggestion-popover button{display:grid!important;grid-template-columns:1fr!important;width:100%;padding:9px 10px!important;border:0!important;border-bottom:1px solid #edf2ee!important;border-radius:7px!important;background:#fff!important;color:#23382d!important;text-align:left!important}
.dealer-suggestion-popover button:hover{background:#f0f8f2!important}
.dealer-suggestion-popover button b{font-size:13px!important}
.dealer-suggestion-popover button small{font-size:11px!important;color:#62756a!important}
.dealer-no-match{display:none!important;font-size:12px;font-weight:700;color:#6b7b70}
.dealer-no-match.show{display:block!important}
#savedCustomerMatches,#savedBillItemMatches{padding-top:4px!important}
#billCustomer,#billFather,#billMobile{min-height:40px}
#billItemCategory,#billItemCode,#billItemName,#billQty,#billPrice{min-height:40px;box-sizing:border-box;width:100%}
#billItemCategory,#billItemCode{font:inherit}
.invoice-workspace .invoice-grid{align-items:stretch}
.invoice-workspace .invoice-grid>label:has(#billCustomer),.invoice-workspace .invoice-grid>label:has(#billFather),.invoice-workspace .invoice-grid>label:has(#billMobile){min-height:72px}
.dealer-compact-form-flags{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;width:auto!important;margin:5px 0 0 auto!important;padding:0!important;border:0!important;background:transparent!important}
.dealer-compact-form-flags .invoice-grid{display:flex!important;gap:6px!important;padding:0!important}
.dealer-compact-form-flags label{display:inline-flex!important;align-items:center;gap:5px!important;margin:0!important;padding:5px 8px!important;border:1px solid #d6e4da!important;border-radius:7px!important;background:#f8fbf8!important;color:#315443!important;font-size:10px!important;font-weight:700!important;white-space:nowrap}
.dealer-compact-form-flags input{width:13px!important;height:13px!important;margin:0!important}
.invoice-total-preview:has(.dealer-compact-form-flags){display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#modal.customer-ledger-fullscreen{align-items:center!important}
#modal.customer-ledger-fullscreen .modal{width:min(1240px,96vw)!important;max-width:1240px!important;height:min(92vh,1000px)!important;max-height:92vh!important;display:flex!important;flex-direction:column!important}
#modal.customer-ledger-fullscreen .modal-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
#modal.customer-ledger-fullscreen .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#modal.customer-ledger-fullscreen .detail-row{min-width:0}
#modal.customer-ledger-fullscreen .detail-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}
#yuktiLauncher.assistant-launch{cursor:pointer!important;touch-action:manipulation!important;transition:none!important;transform:none!important}
#yuktiLauncher.assistant-launch:hover,#yuktiLauncher.assistant-launch:active{transform:none!important;filter:none!important}
#yuktiLauncher .yukti-launch-robot{position:relative;z-index:1;filter:drop-shadow(0 9px 13px #001c10b8) drop-shadow(0 2px 5px #00261688)!important;animation:none!important;transform:none!important}
#yuktiLauncher.assistant-launch:before{content:'YUKTI';position:absolute;left:50%;top:auto;bottom:0;z-index:2;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#087449;font:950 11px/1 'DM Sans',sans-serif;letter-spacing:1px;text-shadow:0 1px 0 #e5fff0,0 2px 0 #78c99c,0 3px 5px #001b1275;transform:translateX(-50%);pointer-events:none}
body:not(.dealer-authenticated) #assistantPanel,body.auth-dialog-open #assistantPanel{display:none!important}
.assistant-thinking{position:relative;min-width:105px;color:#27533e!important}
.assistant-thinking:after{content:'';display:inline-block;width:14px;animation:assistant-thinking-dots 1s steps(4,end) infinite;vertical-align:bottom}
@keyframes assistant-thinking-dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%,100%{content:'...'}}
.date-filter,.section-title>div:last-child>.btn,.section-title>div:last-child>button{box-sizing:border-box}
.section-title>div:last-child>.date-filter .date-filter-trigger{height:36px;min-height:36px;padding:0 12px;font-size:12px}
.section-title>div:last-child{gap:8px}
@media(max-width:700px){.stock-category-circle{width:86px;height:86px}.stock-category-orbit{min-width:88px}.overview-reminder-row{justify-content:flex-start}#modal.customer-ledger-fullscreen .detail-list{grid-template-columns:1fr}.dealer-compact-form-flags{justify-content:flex-start;margin-left:0!important}.dealer-compact-form-flags .invoice-grid{flex-wrap:wrap}}

.billing-load-state{display:flex;align-items:center;gap:12px;min-height:64px;padding:18px 20px;border:1px solid #d5e7da;border-radius:12px;background:#f5faf6;color:#1e583e}.billing-load-state:before{content:'';width:18px;height:18px;flex:0 0 18px;border:3px solid #c7ddcf;border-top-color:#16845a;border-radius:50%;animation:billing-load-spin .8s linear infinite}.billing-load-state span{display:block;color:#63766a;font-size:12px}@keyframes billing-load-spin{to{transform:rotate(360deg)}}
