/* Scoped styling: Admin new-order screen only. */
#fcAdminNewOrder{flex:1;min-height:0;overflow:hidden;padding:9px;background:#e9edef;color:#243037;font:13px Arial,sans-serif}
#fcAdminNewOrder *{box-sizing:border-box}
#fcAdminNewOrder button{cursor:pointer;font:inherit}
#fcAdminNewOrder .fcANLayout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(330px,1.05fr) minmax(160px,.48fr) minmax(280px,1.35fr);gap:8px}
#fcAdminNewOrder .fcANPanel{background:#fff;border:1px solid #d7dde1;border-radius:13px;box-shadow:0 2px 8px #0000000c;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#fcAdminNewOrder .fcANTabs{min-height:43px;background:#eef1f2;border-bottom:1px solid #cdd4d8;display:grid;grid-template-columns:1fr 1.25fr 1fr;align-items:stretch}
#fcAdminNewOrder .fcANTabs button{min-width:0;padding:6px 4px;border:0;border-right:1px solid #d7dfe2;border-top:3px solid transparent;background:#f4f6f7;color:#607079;font-weight:600;font-size:12px;white-space:normal}
#fcAdminNewOrder .fcANTabs button:last-child{border-right:0}
#fcAdminNewOrder .fcANTabs button.active{border-top-color:#e8a34f;background:#fff;color:#354047;font-weight:700}
#fcAdminNewOrder .fcANTableHead,#fcAdminNewOrder .fcANRow{display:grid;grid-template-columns:minmax(80px,1fr) 76px 66px 76px;gap:4px;align-items:center;padding:6px 9px;border-bottom:1px solid #e6eaec}
#fcAdminNewOrder .fcANTableHead{background:#f6f7f8;font-weight:bold;color:#56636a}
#fcAdminNewOrder .fcANTableHead>*:not(:last-child),#fcAdminNewOrder .fcANRow>*:not(:last-child){height:100%;display:flex;align-items:center;border-right:1px solid #dce3e6;padding-right:4px}
#fcAdminNewOrder .fcANTableHead>*:first-child,#fcAdminNewOrder .fcANRow>*:first-child{padding-left:3px}
#fcAdminNewOrder .fcANItems{flex:1;min-height:0;overflow:auto}
#fcAdminNewOrder .fcANRow{min-height:38px;font-size:12px;line-height:1.25}
#fcAdminNewOrder .fcANRow>span:first-child{font-weight:600}
#fcAdminNewOrder .fcANQty{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap}
#fcAdminNewOrder .fcANQty button{width:21px;height:23px;min-width:21px;padding:0;border:1px solid #d8e1e3;border-radius:6px;background:#fff;cursor:pointer}
#fcAdminNewOrder [data-remove]{border:0;background:none;color:#bd6670;font-size:19px}
#fcAdminNewOrder .fcANBottom{flex-shrink:0;border-top:1px solid #d9e0e3;padding:12px}
#fcAdminNewOrder .fcANBottom>div:first-child{font-size:12px;color:#819096}
#fcAdminNewOrder .fcANTotal{font-size:18px;display:flex;justify-content:space-between;margin:10px 0 16px}
#fcAdminNewOrder .fcANActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#fcAdminNewOrder .fcANActions button,#fcAdminNewOrder .fcANCheckoutTop button{border:1px solid #cfd7d9;background:white;border-radius:7px;padding:13px 10px}
#fcAdminNewOrder .fcANPrimary{border:0!important;background:#e7a24d!important;color:#fff!important;font-weight:bold!important;border-radius:7px;padding:13px 15px!important}
#fcAdminNewOrder .fcANPrimary:disabled{opacity:.48;cursor:not-allowed}
#fcAdminNewOrder .fcANHead{height:42px;padding:13px 12px;background:#eef1f2;border-bottom:1px solid #ccd3d7;font-weight:bold;display:flex;justify-content:space-between}
#fcAdminNewOrder .fcANHead small{color:#879aa0}
#fcAdminNewOrder .fcANCatList{flex:1;min-height:0;padding:6px;overflow:auto}
#fcAdminNewOrder .fcANCatList button{width:100%;display:block;text-align:left;padding:13px 8px;margin-bottom:4px;border:1px solid #e1e6e8;border-radius:8px;background:#fff;color:#41565d}
#fcAdminNewOrder .fcANCatList button.selected{background:#fff2df;border-color:#e8ba7b;font-weight:bold;color:#92591e}
/* Subtle raised-card hover, no horizontal translation. */
#fcAdminNewOrder .fcANCatList button{position:relative;transform-origin:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
@media(hover:hover){#fcAdminNewOrder .fcANCatList button:hover{transform:scale(1.025);z-index:1;box-shadow:0 5px 14px rgba(83,58,27,.14);border-color:#e8ba7b}}
#fcAdminNewOrder .fcANCatList button:active{transform:scale(1.005)}
@media(prefers-reduced-motion:reduce){#fcAdminNewOrder .fcANCatList button{transition:none}}
#fcAdminNewOrder .fcANSearch{padding:7px;border-bottom:1px solid #e1e6e8}
#fcAdminNewOrder .fcANSearch input{width:100%;height:36px;border:1px solid #c9d1d5;padding:0 10px;border-radius:6px}
#fcAdminNewOrder .fcANProductList{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));align-content:start;gap:6px;padding:7px}
#fcAdminNewOrder .fcANProduct{height:78px;min-height:78px;min-width:0;position:relative;padding:8px 32px 8px 8px;border:1px solid #dce3e6;border-radius:8px;background:#fff;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:1fr auto;column-gap:7px;row-gap:3px;text-align:left;align-items:center}
#fcAdminNewOrder .fcANProduct:hover{border-color:#d9a05c;background:#fffdfb}
#fcAdminNewOrder .fcANProduct b{color:#c17e3e;font-size:13px;grid-column:2;grid-row:2;white-space:nowrap}
#fcAdminNewOrder .fcANProductName{grid-column:2;grid-row:1;align-self:center;font-size:12px;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
#fcAdminNewOrder .fcANProductThumb{grid-column:1;grid-row:1/3;width:42px;height:42px;object-fit:cover;border-radius:6px;background:#f4f5f6}
#fcAdminNewOrder .fcANProduct:not(:has(.fcANProductThumb)) .fcANProductName,#fcAdminNewOrder .fcANProduct:not(:has(.fcANProductThumb)) b{grid-column:1/3}
#fcAdminNewOrder .fcANProductInfoButton{position:absolute;right:7px;bottom:7px;width:25px;height:25px;padding:0;border:1px solid #edc48f;border-radius:50%;background:#fff3e3;color:#b9772b;display:grid;place-items:center;cursor:pointer}
#fcAdminNewOrder .fcANProductInfoButton:hover{background:#e8a34f;border-color:#e8a34f;color:#fff}
#fcAdminNewOrder .fcANProduct:focus-visible{outline:2px solid #e8a34f;outline-offset:1px}
#fcAdminNewOrder .fcANProductInfoButton:focus-visible{outline:2px solid #c17e3e;outline-offset:2px}
#fcAdminNewOrder .fcANEmpty{padding:50px 20px;grid-column:1/-1;color:#95a1a7;text-align:center}
#fcAdminNewOrder .fcANEmpty b{font-size:17px}
#fcAdminNewOrder .fcANCheckout{max-width:760px;margin:0 auto;background:white;border:1px solid #d9e1e4;border-radius:12px;padding:20px;max-height:100%;overflow:auto}
#fcAdminNewOrder .fcANCheckoutTop{display:flex;align-items:center;gap:18px;margin-bottom:17px}
#fcAdminNewOrder .fcANCheckoutTop h2{font-size:20px;margin:0}
#fcAdminNewOrder #fcANForm{display:grid;grid-template-columns:1fr 1fr;gap:13px}
#fcAdminNewOrder #fcANForm>label{display:grid;gap:5px;font-weight:600}
#fcAdminNewOrder #fcANForm input,#fcAdminNewOrder #fcANForm select,#fcAdminNewOrder #fcANForm textarea{width:100%;padding:11px;border-radius:7px;border:1px solid #cdd6da;background:#fff;color:#26343b}
#fcAdminNewOrder #fcANAddress{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#fcAdminNewOrder #fcANAddress[hidden],#fcAdminNewOrder #fcANTableWrap[hidden]{display:none}
#fcAdminNewOrder #fcANAddress label,#fcAdminNewOrder #fcANTableWrap label{display:grid;gap:5px}
#fcAdminNewOrder .fcANCheckoutTotal,#fcAdminNewOrder .fcANError{grid-column:1/-1}
#fcAdminNewOrder .fcANCheckoutTotal{display:flex;justify-content:space-between;flex-wrap:wrap;font-weight:600}
#fcAdminNewOrder .fcANCheckoutTotal small{width:100%;color:#78878e;margin-top:6px;font-weight:normal}
#fcAdminNewOrder .fcANError{padding:10px;color:#9c2637;background:#fff0f1;border-radius:6px}
#fcAdminNewOrder #fcANSubmit{grid-column:1/-1}
@media(max-width:1050px){#fcAdminNewOrder .fcANLayout{grid-template-columns:minmax(290px,.95fr) 150px minmax(260px,1.4fr)}#fcAdminNewOrder .fcANTableHead,#fcAdminNewOrder .fcANRow{grid-template-columns:minmax(80px,1fr) 76px 66px 70px;padding:5px 6px}}
@media(max-width:700px){#fcAdminNewOrder{overflow-x:auto;overflow-y:hidden}#fcAdminNewOrder .fcANLayout{min-width:760px}#fcAdminNewOrder #fcANForm{grid-template-columns:1fr}#fcAdminNewOrder #fcANAddress{grid-template-columns:1fr}}

/* Independent mini-CRM auxiliary panels. */
#fcAdminNewOrder .fcANLocal{background:#fff;border:1px solid #d6dfe3;border-radius:10px;padding:20px;height:100%;overflow:auto}
#fcAdminNewOrder .fcANLocal h2{font-size:20px;margin:0 0 16px;color:#233b43}
#fcAdminNewOrder .fcANLocalList{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:9px}
#fcAdminNewOrder .fcANLocalList>div{display:flex;flex-direction:column;gap:8px;padding:13px;border:1px solid #dfe6e9;border-radius:8px}
#fcAdminNewOrder .fcANLocalList span{color:#8b979d}
#fcAdminNewOrder .fcANLocalList strong{color:#c17e3e}
#fcAdminNewOrder .fcANLocalMetrics{display:flex;gap:12px;flex-wrap:wrap}
#fcAdminNewOrder .fcANLocalMetrics>div{min-width:190px;background:#f1f5f6;padding:18px;border-radius:9px;display:flex;flex-direction:column;gap:10px}
#fcAdminNewOrder .fcANLocalMetrics b{font-size:22px}
#fcAdminNewOrder .fcANLocalNote{padding:20px;background:#f6f8f9;border-radius:8px;line-height:1.6}

/* New-order-only: hide POS KPI cards; preserve them when switching to Orders. */
#content:has(.fcMiniPosScreen.fcANNewOrderActive) .fcMiniPosSummary,
#content:has(.fcMiniPosScreen.fcANNewOrderActive) .fcPosSummary,
#content:has(.fcMiniPosScreen.fcANNewOrderActive) .fcMiniPosMetrics,
#content:has(.fcMiniPosScreen.fcANNewOrderActive) .fcPosMetrics{display:none!important}

/* Compact variation chooser, scoped to the Admin new-order flow. */
dialog.fcANVariantPicker{width:min(380px,calc(100vw - 32px));max-height:min(75vh,600px);padding:0;border:1px solid #d8e0e3;border-radius:13px;background:#fff;color:#26363d;box-shadow:0 18px 55px #182e3d38;overflow:hidden}
dialog.fcANVariantPicker::backdrop{background:rgba(18,29,37,.35)}
.fcANVariantPicker .fcANVariantTop{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 18px 13px;border-bottom:1px solid #edf0f2}
.fcANVariantPicker .fcANVariantTop small{display:block;color:#7b8a91;font-size:12px;margin-bottom:4px}
.fcANVariantPicker .fcANVariantTop h3{margin:0;font-size:17px;line-height:1.25}
.fcANVariantPicker [data-variant-close]{flex:none;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:#f1f4f5;color:#62737a;font-size:23px;cursor:pointer}
.fcANVariantPicker .fcANVariantOptions{display:grid;gap:7px;max-height:min(55vh,440px);overflow:auto;padding:12px}
.fcANVariantPicker .fcANVariantOption{display:grid;grid-template-columns:minmax(0,1fr) auto 25px;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #dce4e7;border-radius:9px;background:#fff;color:#26363d;text-align:left;cursor:pointer}
.fcANVariantPicker .fcANVariantOption:hover{background:#f6fbfa;border-color:#9fcfc4;box-shadow:0 3px 11px #142d3014}
.fcANVariantPicker .fcANVariantOption b{color:#bc7c3a;white-space:nowrap}
.fcANVariantPicker .fcANVariantOption i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e8a34f;color:#fff;font-style:normal;font-size:17px}

/* New-order tabs: compact detail summary and editable notes. */
#fcAdminNewOrder .fcANTabContent{flex:1;min-height:0;overflow:auto;padding:16px 13px}
#fcAdminNewOrder .fcANTabContent h3{font-size:14px;margin:0 0 15px}
#fcAdminNewOrder .fcANDetailLine{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e9ecee}
#fcAdminNewOrder .fcANDetailLine span{color:#65767e}
#fcAdminNewOrder .fcANNoteLabel{display:block;font-weight:600;margin-bottom:9px}
#fcAdminNewOrder #fcANOrderNote{width:100%;max-width:100%;min-height:120px;resize:vertical;padding:11px;border:1px solid #d3dce1;border-radius:8px;background:#fff;font:inherit;color:#26343b}

/* Admin embedded mini-CRM immersive mode. Admin navigation and permissions stay unchanged. */
body.fcANBodyFullscreen{overflow:hidden!important}
.fcMiniPosScreen.fcANFullscreen{
 position:fixed!important;inset:0!important;z-index:11000!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;border-radius:0!important;
 box-sizing:border-box!important;background:#e9edef!important;
 overflow:auto!important;display:flex!important;flex-direction:column!important
}
.fcMiniPosScreen.fcANFullscreen .fcOriginalPosToolbar{
 position:relative;top:0;z-index:2;flex:0 0 auto;max-width:100%;border-radius:0
}
.fcMiniPosScreen.fcANFullscreen.fcANNewOrderActive{overflow:hidden!important}
.fcMiniPosScreen.fcANFullscreen #fcAdminNewOrder{flex:1 1 auto;min-height:0}
.fcMiniPosScreen.fcANFullscreen .fcANLayout{min-height:0}
.fcMiniPosScreen .fcOriginalPosToolbar [data-fc-mini-fullscreen]{
 display:flex!important;flex-direction:column;align-items:center;justify-content:center;
 gap:4px;min-width:75px;cursor:pointer
}
.fcMiniPosScreen .fcOriginalPosToolbar [data-fc-mini-fullscreen] svg{
 display:block;flex:none
}

/* Inline POS-style order details, scoped to Admin mini-CRM. */
#fcAdminNewOrder .fcANDetailsForm{flex:1;min-height:0;overflow:auto;padding:10px 11px;display:flex;flex-direction:column;gap:9px}
#fcAdminNewOrder .fcANOrderModes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:3px}
#fcAdminNewOrder .fcANOrderModes button{min-height:38px;padding:7px;border:1px solid #d4dce0;border-radius:8px;background:white;color:#516169;font-weight:600}
#fcAdminNewOrder .fcANOrderModes button.selected{background:#fff2df;border-color:#e8ba7b;color:#92591e}
#fcAdminNewOrder .fcANDetailField{display:grid;grid-template-columns:minmax(73px,100px) minmax(0,1fr);align-items:center;gap:9px;font-size:12px}
#fcAdminNewOrder .fcANDetailField>span{font-weight:600;color:#78878e}
#fcAdminNewOrder .fcANDetailField input,#fcAdminNewOrder .fcANDetailField select,#fcAdminNewOrder .fcANDetailField textarea{width:100%;min-width:0;min-height:34px;border:1px solid #d8e0e3;border-radius:7px;padding:7px 9px;background:#fff;color:#27363e;font:inherit}
#fcAdminNewOrder .fcANDetailField input:focus,#fcAdminNewOrder .fcANDetailField textarea:focus{outline:2px solid #f4c6cb;outline-offset:0}
#fcAdminNewOrder .fcANCustomerHint{min-height:14px;margin:-5px 0 0 109px;font-size:11px;color:#697e86}
#fcAdminNewOrder .fcANAddressFields{display:flex;flex-direction:column;gap:9px}
#fcAdminNewOrder .fcANAddressDisabled .fcANDetailField>span{color:#a9b1b6}
#fcAdminNewOrder .fcANAddressDisabled .fcANDetailField input:disabled{background:#f5f6f7;border-color:#edf0f2;color:#9da7ad;opacity:1;cursor:not-allowed}
#fcAdminNewOrder .fcANAddressDisabled .fcANDetailField input:disabled::placeholder{color:#b7bfc3;opacity:1}
#fcAdminNewOrder .fcANDetailComment{align-items:start}
#fcAdminNewOrder .fcANDetailComment textarea{resize:vertical;min-height:65px}
@media(max-width:1050px){#fcAdminNewOrder .fcANDetailField{grid-template-columns:75px minmax(0,1fr);gap:6px}#fcAdminNewOrder .fcANCustomerHint{margin-left:81px}}

/* Isolated phone mask editor within Admin > Settings > Order conditions. */
#fcManualOrderPhoneMaskSetting{display:grid;gap:9px;width:100%;max-width:730px;margin:16px 0;padding:15px;border:1px solid #e3e5e8;border-radius:10px;background:#fafbfc;color:#303942}
#fcManualOrderPhoneMaskSetting label{display:grid;gap:6px}
#fcManualOrderPhoneMaskSetting label b{font-size:14px}
#fcManualOrderPhoneMaskSetting label small{font-size:12px;line-height:1.5;color:#78818b}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskRow{display:flex;gap:9px;flex-wrap:wrap}
#fcManualPhoneMaskInput{flex:1;min-width:145px;max-width:270px;padding:10px 12px;border:1px solid #cfd7dc;border-radius:8px;background:#fff;font-size:15px;letter-spacing:1px}
#fcManualPhoneMaskSave{padding:10px 16px;border:0;border-radius:8px;background:#ef424b;color:#fff;font-weight:650;cursor:pointer}
#fcManualPhoneMaskSave:disabled{opacity:.6;cursor:wait}
#fcManualPhoneMaskStatus{margin:0;color:#77838b;font-size:12px}

/* POS-style fixed prefix and editable phone digits. */
#fcAdminNewOrder .fcANPhoneGroup{min-width:0;display:flex;align-items:stretch;border:1px solid #d8e0e3;border-radius:7px;background:#fff;overflow:hidden}
#fcAdminNewOrder .fcANPhonePrefix{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:28px;padding:0 6px;background:#f0f3f4;border-right:1px solid #d8e0e3;font-weight:600;font-size:13px;color:#45545b;white-space:nowrap;user-select:none}
#fcAdminNewOrder .fcANPhoneField .fcANPhoneGroup input{border:0;min-width:0;width:100%;min-height:36px;padding:7px 10px;flex:1;font:inherit;color:#26343b;outline:none}
#fcAdminNewOrder .fcANPhoneGroup:focus-within{border-color:#eaa6ac;box-shadow:0 0 0 2px #ffe5e7}

/* Phone-prefix customer picker: scoped to the new order form. */
#fcAdminNewOrder .fcANCustomerHint{position:relative;min-height:0;margin:-4px 0 0 0;z-index:8}
#fcAdminNewOrder .fcANCustomerSuggestions{position:relative;margin-left:109px;max-height:220px;overflow-y:auto;display:flex;flex-direction:column;border:1px solid #cdd8dc;border-radius:9px;background:#fff;box-shadow:0 7px 22px rgba(23,38,44,.17)}
#fcAdminNewOrder .fcANCustomerSuggestions button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:9px 12px;background:#fff;border:0;border-bottom:1px solid #edf0f1;text-align:left;color:#334047}
#fcAdminNewOrder .fcANCustomerSuggestions button:last-child{border-bottom:0}
#fcAdminNewOrder .fcANCustomerSuggestions button:hover{background:#fff2f3}
#fcAdminNewOrder .fcANCustomerSuggestions button b{font-size:12px;overflow:hidden;text-overflow:ellipsis}
#fcAdminNewOrder .fcANCustomerSuggestions button span{font-size:12px;white-space:nowrap}
#fcAdminNewOrder .fcANCustomerSuggestions button small{grid-column:1/-1;color:#859199;font-size:11px}
#fcAdminNewOrder .fcANAddressSuggestions{margin-left:109px;display:flex;flex-direction:column;gap:5px;padding:5px 0}
#fcAdminNewOrder .fcANAddressSuggestions small{color:#7b888e}
#fcAdminNewOrder .fcANAddressSuggestions button{text-align:left;background:#f7f9fa;border:1px solid #dce3e6;border-radius:6px;padding:7px 9px;font-size:11px;color:#415057}
#fcAdminNewOrder .fcANAddressSuggestions button:hover{background:#fff0f1;border-color:#e6b5bd}
@media(max-width:1050px){#fcAdminNewOrder .fcANCustomerSuggestions,#fcAdminNewOrder .fcANAddressSuggestions{margin-left:81px}}

/* Same phone-mask dropdown pattern as FrontPad; independent Admin order setting. */
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskPicker{position:relative;width:100%;max-width:570px}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskTrigger{width:100%;min-height:46px;padding:10px 14px;border:1px solid #cdd7df;border-radius:11px;background:#fff;color:#3b4951;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:15px;cursor:pointer}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskTrigger:hover{border-color:#a8b8c4}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOptions{position:relative;width:100%;max-height:305px;overflow:auto;margin-top:5px;border:1px solid #d8e0e5;border-radius:10px;background:#fff;box-shadow:0 10px 25px rgba(15,32,48,.12)}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOptions[hidden]{display:none!important}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOption{width:100%;min-height:43px;border:0;border-bottom:1px solid #eef1f4;background:#fff;padding:9px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#59646d;text-align:left;font-size:13px;cursor:pointer}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOption:last-child{border-bottom:0}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOption:hover{background:#f5f8fa}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOption i{display:block;flex:none;width:23px;height:23px;border:1.5px solid #aab6c1;border-radius:50%}
#fcManualOrderPhoneMaskSetting .fcManualPhoneMaskOption i.chosen{border-color:#8ab5a5;background:radial-gradient(circle at center,#69af92 0 47%,transparent 51%)}

/* Manual-order delivery address chooser: only under Street, at most five entries. */
#fcAdminNewOrder .fcANStreetAddressChoices{margin:-3px 0 4px 109px;min-width:0;max-height:230px;overflow:auto;border:1px solid #d6dfe4;border-radius:8px;background:#fff;box-shadow:0 5px 17px rgba(24,38,45,.10);display:flex;flex-direction:column}
#fcAdminNewOrder .fcANStreetAddressChoices[hidden]{display:none!important}
#fcAdminNewOrder .fcANStreetAddressChoices small{padding:8px 10px 4px;color:#7b8991;font-size:11px}
#fcAdminNewOrder .fcANStreetAddressChoices button{width:100%;padding:10px 11px;text-align:left;border:0;border-bottom:1px solid #edf0f3;background:#fff;color:#344650;cursor:pointer;font-size:12px}
#fcAdminNewOrder .fcANStreetAddressChoices button:last-child{border-bottom:0}
#fcAdminNewOrder .fcANStreetAddressChoices button:hover{background:#fff1f2}
#fcAdminNewOrder .fcANOrderModes.fcANRequiresMode{border-radius:9px;outline:2px solid #eaa4ae;outline-offset:3px}
@media(max-width:1050px){#fcAdminNewOrder .fcANStreetAddressChoices{margin-left:81px}}

/* Dense, centered manual order lines. Keep all columns aligned with their headings. */
#fcAdminNewOrder .fcANTableHead{min-height:37px;text-align:center}
#fcAdminNewOrder .fcANTableHead>span{justify-content:center;text-align:center}
#fcAdminNewOrder .fcANTableHead>span:first-child{justify-content:flex-start;text-align:left}
#fcAdminNewOrder .fcANRow>span:nth-child(3),#fcAdminNewOrder .fcANRow>b:nth-child(4){display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap}
#fcAdminNewOrder .fcANRow>span:first-child{overflow-wrap:anywhere}
#fcAdminNewOrder .fcANQty b{min-width:13px;text-align:center;font-size:12px}
#fcAdminNewOrder .fcANQty button:hover{background:#fff1f2;border-color:#edb6bc}
#fcAdminNewOrder .fcANTabs{border-radius:12px 12px 0 0;overflow:hidden}
#fcAdminNewOrder .fcANHead{border-radius:12px 12px 0 0}

/* Product information popup, independent of variant/add-to-cart actions. */
dialog.fcANProductInfoDialog{width:min(440px,calc(100vw - 28px));max-height:min(82vh,760px);padding:0;border:1px solid #e1e3e5;border-radius:15px;background:#fff;color:#29363d;box-shadow:0 18px 55px rgba(19,29,35,.25);overflow:hidden}
dialog.fcANProductInfoDialog::backdrop{background:rgba(20,27,33,.40)}
.fcANProductInfoTop{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #e7e9ea}
.fcANProductInfoTop h3{margin:0;font-size:17px;line-height:1.35}
.fcANProductInfoTop [data-info-close]{display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:8px;background:#f2f3f4;color:#6b7780;font-size:23px;cursor:pointer}
.fcANProductInfoBody{padding:14px 16px 18px;max-height:min(70vh,640px);overflow-y:auto}
.fcANProductInfoPhoto{display:block;width:100%;height:220px;object-fit:contain;background:#f8f9fa;border-radius:11px;margin-bottom:13px}
.fcANProductInfoPrice{font-size:20px;font-weight:750;color:#bb7735;margin:6px 0 13px}
.fcANProductInfoSection{margin:12px 0}
.fcANProductInfoSection strong{display:block;font-size:13px;margin-bottom:6px}
.fcANProductInfoSection p{margin:0;color:#56656c;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.fcANProductInfoDetails{margin-top:13px;border-top:1px solid #eceff1}
.fcANProductInfoRow{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eceff1;padding:9px 0;font-size:12px}
.fcANProductInfoRow span{color:#738087}
.fcANProductInfoRow b{color:#38484f;text-align:right;font-weight:600}
.fcANProductInfoVariants{display:flex;flex-wrap:wrap;gap:6px}
.fcANProductInfoVariants span{padding:6px 9px;background:#fff4e6;border:1px solid #f0d8b8;border-radius:7px;color:#9b6429;font-size:12px}
.fcANProductInfoEmpty{font-size:13px;line-height:1.5;color:#7c888e}

/* Orders-only KPI insets: keep the three cards off the viewport edges. */
.fcMiniPosScreen .fcMiniCrmOrderStatsInset{box-sizing:border-box!important;padding-left:14px!important;padding-right:14px!important;width:100%;max-width:100%;}

/* POS orders: darker status header, lighter matching order body (FrontPad-style). */
.fcMiniPosScreen .desktop-order-card.order-row-status-new{background:#fff0f3!important;border-color:#e5bbc5!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-new .desktop-order-head{background:#e9b4c1!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-work{background:#d5f2df!important;border-color:#76d4a0!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-work .desktop-order-head{background:#76d4a0!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-ready{background:#fff7df!important;border-color:#e8c47b!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-ready .desktop-order-head{background:#e8c47b!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-done{background:#f3f8fa!important;border-color:#d3e0e6!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-done .desktop-order-head{background:#d3e0e6!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-cancelled{background:#f3f4f5!important;border-color:#d5dade!important}
.fcMiniPosScreen .desktop-order-card.order-row-status-cancelled .desktop-order-head{background:#d5dade!important}
/* Explicitly paint the whole body, including each grid cell; generic order rows can have a pink background. */
.fcMiniPosScreen .desktop-order-card.order-row-status-new{--fcMiniOrderBody:#fff0f3}
.fcMiniPosScreen .desktop-order-card.order-row-status-work{--fcMiniOrderBody:#d5f2df}
.fcMiniPosScreen .desktop-order-card.order-row-status-ready{--fcMiniOrderBody:#fff7df}
.fcMiniPosScreen .desktop-order-card.order-row-status-done{--fcMiniOrderBody:#f3f8fa}
.fcMiniPosScreen .desktop-order-card.order-row-status-cancelled{--fcMiniOrderBody:#f3f4f5}
.fcMiniPosScreen .desktop-order-card[class*="order-row-status-"] .desktop-order-grid,
.fcMiniPosScreen .desktop-order-card[class*="order-row-status-"] .desktop-order-cell,
.fcMiniPosScreen .desktop-order-card[class*="order-row-status-"] .desktop-order-products{
 background:var(--fcMiniOrderBody)!important;
 background-image:none!important;
}
/* Keep product names, quantities, and prices close without changing order columns. */
.fcMiniPosScreen .desktop-order-products{gap:0!important;row-gap:0!important;justify-content:flex-start!important;align-content:start!important;padding-top:5px!important;padding-bottom:5px!important}
.fcMiniPosScreen .desktop-order-products .desktop-order-item{flex:0 0 auto!important;align-self:stretch!important;margin:0!important;padding:0!important;gap:4px!important;line-height:1.12!important;min-height:0!important;height:auto!important}
.fcMiniPosScreen .desktop-order-item-name,
.fcMiniPosScreen .desktop-order-item-qty,
.fcMiniPosScreen .desktop-order-item-sum{line-height:1.12!important}

/* Prevent inherited spacing on item text from stretching each order line. */
.fcMiniPosScreen .desktop-order-products .desktop-order-item>*{margin-top:0!important;margin-bottom:0!important;padding-top:1px!important;padding-bottom:1px!important}

/* Mini-CRM orders only: less wasted width before discount, total and payment. */
.fcMiniPosScreen .fcPosOrderHeaders,
.fcMiniPosScreen .desktop-order-grid{
 grid-template-columns:minmax(285px,1.75fr) 68px 108px 155px minmax(145px,1fr) 118px 118px!important;
}
.fcMiniPosScreen .desktop-order-cell{padding-left:7px!important;padding-right:7px!important}
.fcMiniPosScreen .desktop-order-products{padding-left:9px!important;padding-right:7px!important}
.fcMiniPosScreen .desktop-order-item{grid-template-columns:minmax(0,1fr) 30px 58px!important;column-gap:4px!important}
.fcMiniPosScreen .desktop-order-cell:nth-child(4){align-items:stretch!important;text-align:left;overflow:visible}
.fcMiniPosScreen .desktop-order-cell:nth-child(4) select,
.fcMiniPosScreen .fcMiniCrmOrderPaymentSelect{
 display:block;width:100%;min-width:0;min-height:31px;padding:5px 18px 5px 7px;
 font-size:11px;line-height:1.25;border-radius:7px;
 border:1px solid #cbd9dd;background-color:#fff;color:#3b4e58;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.fcMiniPosScreen .desktop-order-cell:nth-child(4) :is(span,div,p){overflow-wrap:normal!important;word-break:normal!important}

/* Mini-CRM order header: keep the existing Yandex Delivery action on the status/employee row. */
.fcMiniPosScreen .desktop-order-head-main{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important}
.fcMiniPosScreen .desktop-order-head-status{flex:0 1 146px!important;min-width:120px!important}
.fcMiniPosScreen .desktop-order-head-main .fcPosEmployee{flex:0 1 145px!important;min-width:116px!important}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexAction{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;gap:6px!important;max-width:155px!important;
 min-height:32px!important;margin:0!important;padding:5px 11px!important;
 border:1px solid #e1b578!important;border-radius:9px!important;
 background:#fff5e8!important;color:#8c541c!important;
 font-size:12px!important;font-weight:700!important;line-height:1.2!important;
 white-space:nowrap!important;box-shadow:0 1px 3px rgba(100,62,30,.08)!important;
 cursor:pointer!important
}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexAction:hover{
 background:#ffe9c9!important;border-color:#d59b52!important
}
@media(max-width:780px){
 .fcMiniPosScreen .desktop-order-head-main{flex-wrap:wrap!important}
}

/* Yandex Delivery: streamlined single-order window (Mini-CRM only). */
dialog.fcMiniYandexQuickDialog{border:0;padding:0;width:min(540px,calc(100vw - 28px));max-width:540px;max-height:min(88vh,780px);border-radius:22px;background:#fff;color:#27323d;overflow:hidden;box-shadow:0 28px 90px rgba(18,30,45,.26);font-family:inherit}
dialog.fcMiniYandexQuickDialog::backdrop{background:rgba(20,30,44,.48);backdrop-filter:blur(4px)}
.fcYQFrame{display:flex;flex-direction:column;max-height:min(88vh,780px);min-width:0}
.fcYQHeader{padding:22px 22px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #eef0f3;background:linear-gradient(125deg,#fff 40%,#fff5e9 100%)}
.fcYQBrand{display:flex;align-items:center;gap:12px;min-width:0}
.fcYQIcon{width:45px;height:45px;flex:none;border-radius:14px;background:#fff0da;color:#a45b13;display:grid;place-items:center;font-size:22px}
.fcYQBrand strong{display:block;font-size:19px;line-height:1.2;font-weight:800;color:#293341}
.fcYQBrand small{display:block;font-size:12px;color:#7d8793;margin-top:4px}
.fcYQClose{width:34px;height:34px;border:1px solid #e8ebef;border-radius:11px;background:#fff;color:#667281;font-size:25px;line-height:1;cursor:pointer;flex:none}
.fcYQClose:hover{background:#f4f6f9}
.fcYQContent{padding:20px 22px 18px;overflow:auto;min-height:100px}
.fcYQOrderTop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.fcYQOrderTop small,.fcYQDetail small{display:block;font-size:11px;color:#8793a0;margin-bottom:5px}
.fcYQOrderTop strong{font-size:21px;font-weight:800;color:#27323d}
.fcYQStatus{display:inline-flex;max-width:65%;padding:7px 11px;border-radius:25px;color:#976129;background:#fff0dc;border:1px solid #f2d6af;font-size:12px;font-weight:700;text-align:center}
.fcYQStatus.accepted{background:#e4f7eb;color:#276b46;border-color:#cae9d6}
.fcYQStatus.cancelled{background:#f1f2f4;color:#67707b;border-color:#dde1e6}
.fcYQDetails{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.fcYQDetail{display:block;min-width:0;padding:13px;border:1px solid #e8edf2;border-radius:13px;background:#f8fafc}
.fcYQDetail:first-child{grid-column:1/-1}
.fcYQDetail b{font-size:13px;line-height:1.35;font-weight:700;overflow-wrap:anywhere;display:block}
.fcYQSwitchTitle{font-size:13px;font-weight:750;margin:2px 0 10px}
.fcYQSwitch{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}
.fcYQOption{background:#fff;border:1px solid #dfe6ec;border-radius:13px;padding:12px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:7px;color:#344050;font-size:13px}
.fcYQOption strong{font-size:16px}
.fcYQOption.selected{background:#fff5e9;border-color:#e9a657;box-shadow:inset 0 0 0 1px #e9a657}
.fcYQOption:disabled{opacity:.5;cursor:not-allowed}
.fcYQActions{display:flex;flex-wrap:wrap;gap:9px}
.fcYQActions button{flex:1 1 170px;min-height:40px;border-radius:11px;padding:10px 13px;font-size:13px;font-weight:750;cursor:pointer;line-height:1.25}
.fcYQPrimary{border:1px solid #d78a36;background:linear-gradient(115deg,#f6b35c,#ee9a3d);color:#342617}
.fcYQPrimary:hover{filter:brightness(.97)}
.fcYQSecondary{border:1px solid #e0e5ea;background:#fff;color:#405161}
.fcYQSecondary:hover{background:#f6f8fb}
.fcYQDanger{border:1px solid #f2d4cf;background:#fff2f0;color:#a4483b}
.fcYQDanger:hover{background:#ffe4df}
.fcYQActions button:disabled{opacity:.5;cursor:wait}
.fcYQNotice{background:#fff5e8;color:#865625;border:1px solid #f5dbb8;border-radius:12px;padding:12px 13px;margin-bottom:12px;font-size:13px;line-height:1.45}
.fcYQLoading{display:flex;justify-content:center;align-items:center;gap:12px;padding:25px 6px;font-size:13px;color:#657383}
.fcYQSpinner{height:19px;width:19px;border-radius:50%;border:2px solid #f4d6b7;border-top-color:#e69c49;animation:fcYQSpin .7s linear infinite}
@keyframes fcYQSpin{to{transform:rotate(360deg)}}
.fcYQFoot{border-top:1px solid #edf0f3;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfcfd}
.fcYQFootText{font-size:11px;color:#9199a4;line-height:1.35}
.fcYQFoot button{border-radius:10px;padding:9px 17px;font-size:12px;cursor:pointer}
@media(max-width:550px){.fcYQHeader{padding:17px}.fcYQContent{padding:16px}.fcYQFoot{padding:12px 16px}.fcYQBrand strong{font-size:17px}.fcYQDetails{grid-template-columns:1fr}.fcYQDetail:first-child{grid-column:auto}}

/* Order's courier details: only visible inside the existing quick modal. */
.fcYQDriverPanel{padding:14px 14px 12px;border:1px solid #e8ebf0;border-radius:15px;background:#fcfdfe;margin:4px 0 17px}
.fcYQDriverTitle{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.fcYQDriverTitle>b{font-size:14px;color:#2b3945}
.fcYQDriverStage{font-size:11px;font-weight:700;padding:6px 9px;border-radius:14px;background:#fff0d9;color:#8c581f}
.fcYQDriverPanel .fcYQDetails{margin:0 0 10px}
.fcYQDriverPanel .fcYQDetail:first-child{grid-column:auto}
.fcYQDriverPanel .fcYQDetail{background:#fff}
.fcYQSearch{display:flex;align-items:center;gap:10px;background:#fff4e5;border:1px solid #f6e0be;border-radius:12px;color:#925b20;font-size:12px;font-weight:650;padding:12px;margin:0 0 12px}
.fcYQSearch .fcYQSpinner{flex:none}
.fcYQCall{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border:1px solid #dbebdc;border-radius:10px;background:#eef8ef;color:#27653e!important;text-decoration:none!important;font-size:12px;font-weight:700}
.fcYQClaim{font-size:11px;color:#8d96a1;margin-top:11px;overflow-wrap:anywhere}

/* Mini-CRM employee picker: compact native dropdown with a modern chevron. */
.fcMiniPosScreen .fcPosEmployee.fcMiniCrmStaffWrapper{
 position:relative;display:inline-flex!important;align-items:center!important;
 padding:0!important;min-width:115px;max-width:185px;overflow:visible!important;
 border:1px solid #d9e0e6!important;border-radius:10px!important;
 background:#fff!important;box-shadow:0 1px 2px rgba(31,45,61,.035)
}
.fcMiniPosScreen .fcMiniCrmStaffWrapper::after{
 content:'';position:absolute;right:13px;top:50%;width:7px;height:7px;
 border-right:1.8px solid #687988;border-bottom:1.8px solid #687988;
 transform:translateY(-68%) rotate(45deg);pointer-events:none
}
.fcMiniPosScreen .fcMiniCrmEmployeeSelect{
 width:100%;min-width:0;height:34px;display:block;appearance:none;-webkit-appearance:none;
 background:transparent;border:0;outline:0;border-radius:10px;
 padding:0 30px 0 12px;color:#374755;font-size:12px;font-weight:700;
 cursor:pointer;white-space:nowrap;text-overflow:ellipsis
}
.fcMiniPosScreen .fcMiniCrmStaffWrapper:focus-within{
 border-color:#e5a65f!important;box-shadow:0 0 0 3px rgba(244,168,72,.14)
}
.fcMiniPosScreen .fcMiniCrmEmployeeSelect:disabled{opacity:.65;cursor:wait}

/* Compact courier shortcut beside order status / employee, not a full text button. */
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexIcon{
 width:35px!important;height:34px!important;min-height:34px!important;max-width:35px!important;
 padding:0!important;flex:0 0 35px!important;display:inline-flex!important;
 border-radius:10px!important;border:1px solid #e7c69a!important;
 background:#fff4e6!important;box-shadow:0 1px 3px rgba(66,40,18,.07)!important;
 color:#94591f!important;align-items:center!important;justify-content:center!important;
 line-height:1!important;cursor:pointer!important
}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexIcon:hover{
 border-color:#d79b55!important;background:#ffe9cf!important;
 box-shadow:0 3px 8px rgba(99,62,26,.13)!important
}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexIconGlyph{font-size:17px;line-height:1}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexIcon.fcMiniCrmYandexHistory{
 background:#f4f5f7!important;border-color:#dbe1e7!important;box-shadow:none!important;
}
.fcMiniPosScreen .desktop-order-head-main .fcMiniCrmYandexIcon[style*="display: none"]{display:none!important}
