/* DimaBio V31 — point of sale, reusable product-card look and a calmer storefront drawer. */
.admin-body{background:#f5f8f4}
.admin-panel,.stat-card,.quick-card{border-radius:20px;border-color:#e4ece2;box-shadow:0 8px 24px rgba(18,66,37,.045)}
.admin-product-grid{gap:14px}
.admin-product-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e4ece2;border-radius:20px;background:#fff;box-shadow:0 8px 23px rgba(18,66,37,.045);transition:transform .18s ease,box-shadow .18s ease}
.admin-product-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(18,66,37,.09)}
.admin-product-image{aspect-ratio:1/1;min-height:0;max-height:none;margin:9px;border-radius:15px;background:linear-gradient(145deg,#f8faf6,#edf4e9)}
.admin-product-image img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain!important;padding:9px;background:transparent}
.admin-product-body{padding:4px 13px 13px}
.admin-product-body h3{font-size:15px;line-height:1.45;margin:10px 0 3px}
.admin-product-body>p{font-size:10px}
.admin-product-price{padding:12px 0;font-size:10px}
.admin-product-price strong{font-size:18px}
.admin-product-actions .button{border-radius:12px;font-size:10px;min-height:39px}
.stat-card,.revenue-card,.quick-card{border-radius:20px}
.dashboard-primary-actions .button{border-radius:15px}

/* Store drawer: narrow, light and understated instead of a strong green gradient. */
.store-sidebar-v17{width:min(354px,86vw);padding:14px 15px calc(22px + env(safe-area-inset-bottom));background:#f8fbf7;color:#244231;border:1px solid #e7eee4;box-shadow:-16px 0 42px rgba(20,55,32,.16);scrollbar-color:#cad9c8 transparent}
html[dir="rtl"] .store-sidebar-v17{box-shadow:16px 0 42px rgba(20,55,32,.16)}
.store-sidebar-head-v17{padding-bottom:12px;border-bottom:1px solid #e6eee4}
.store-sidebar-brand-v17 img{width:118px;height:50px;filter:none;object-position:right center}
html[dir="ltr"] .store-sidebar-brand-v17 img{object-position:left center}
.store-sidebar-brand-v17 span{color:#7c8d80;font-size:9px}
.store-sidebar-close-v17{width:36px;height:36px;flex-basis:36px;border-color:#dfe9dc;background:#fff;color:#315d43;font-size:22px;box-shadow:0 4px 12px rgba(17,61,33,.05)}
.store-sidebar-language-v17{padding:11px 0;border-bottom-color:#e7eee5}
.store-sidebar-language-v17>b,.store-sidebar-group-v17 h3{color:var(--sidebar-accent,#17613b);font-size:11px}
.store-sidebar-language-v17 a{padding:6px 10px;border-color:#dce7db;color:#45634f;background:#fff}
.store-sidebar-language-v17 a.active{background:color-mix(in srgb,var(--sidebar-accent,#17613b) 11%,white);border-color:color-mix(in srgb,var(--sidebar-accent,#17613b) 30%,white);color:var(--sidebar-accent,#17613b)}
.store-sidebar-nav-v17{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px 0;border-bottom-color:#e7eee5}
.store-sidebar-nav-v17 a,.store-sidebar-nav-v17 button{min-height:58px;padding:8px 5px;border:1px solid #e3ebe1;border-radius:12px;background:#fff;color:#345541;font-size:10px}
.store-sidebar-nav-v17 a i,.store-sidebar-nav-v17 button i{font-size:18px;color:var(--sidebar-accent,#17613b)}
.store-sidebar-nav-v17 a.active{background:color-mix(in srgb,var(--sidebar-accent,#17613b) 8%,white);border-color:color-mix(in srgb,var(--sidebar-accent,#17613b) 25%,white);color:#214c33;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sidebar-accent,#17613b) 8%,transparent)}
.store-sidebar-group-v17{padding:12px 0;border-bottom-color:#e7eee5}
.store-sidebar-group-v17 h3{margin-bottom:8px}
.store-sidebar-chips-v17{gap:6px}
.store-sidebar-chips-v17 a{padding:6px 9px;border:1px solid color-mix(in srgb,var(--sidebar-tag,#17613b) 22%,white);background:#fff;color:#45634f;font-size:9px}
.store-sidebar-chips-v17 a:before{width:6px;height:6px;flex-basis:6px;box-shadow:none}
.store-sidebar-category-list-v17 a{padding:8px 2px;color:#355743;border-bottom-color:#edf2eb;font-size:10px}
.store-sidebar-category-list-v17 a span{color:var(--sidebar-accent,#17613b)}
.store-sidebar-social-v17 a{padding:8px;border-radius:10px;background:#fff;border-color:#e2ebe0;color:#345541;font-size:9px}
.store-sidebar-social-v17 a.whatsapp{background:#edf8f0;border-color:#d5ecda;color:#17613b}
.store-sidebar-social-v17 a.messenger{background:#eef5ff;border-color:#dce9fa;color:#2864a3}
.store-sidebar-admin-link-v17{color:#7c8d80;font-size:9px;margin-top:10px}
.store-sidebar-backdrop-v17{background:rgba(18,39,25,.34);backdrop-filter:blur(2px)}

/* POS screen */
.pos-v31{max-width:1440px;margin:0 auto;padding-bottom:24px;color:#294333}
.pos-heading-v31{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.pos-heading-v31 h2{margin:3px 0;color:#145332;font-size:clamp(20px,2vw,27px)}
.pos-heading-v31 p{margin:4px 0 0;color:#829186;font-size:11px}
.pos-layout-v31{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:16px;align-items:start}
.pos-main-v31{display:grid;gap:14px;min-width:0}
.pos-panel-v31{padding:19px;border-radius:20px}
.pos-panel-heading-v31{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.pos-panel-heading-v31 h3,.pos-summary-card-v31 h3{margin:3px 0 0;color:#174c30;font-size:17px}
.pos-step-v31,.pos-line-number-v31{width:37px;height:37px;border-radius:12px;background:#edf5eb;color:#236640;display:grid;place-items:center;font-size:11px;font-weight:900}
.pos-add-button-v31{min-height:40px;padding:9px 14px;border-radius:12px;font-size:11px}
.pos-lines-v31{display:grid;gap:10px}
.pos-line-v31{padding:13px;border:1px solid #e4ece2;border-radius:17px;background:#fbfdfb;min-width:0}
.pos-line-top-v31{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.pos-remove-line-v31{width:32px;height:32px;border:1px solid #f0dddd;border-radius:10px;background:#fff5f3;color:#b6534a;font-size:20px;line-height:1;cursor:pointer}
.pos-line-fields-v31{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(95px,.55fr);gap:9px}
.pos-field-v31{display:grid;gap:6px;min-width:0;color:#617267;font-size:10px;font-weight:800}
.pos-field-v31 input,.pos-field-v31 select,.pos-field-v31 textarea{width:100%;min-width:0;min-height:43px;padding:10px 11px;border:1px solid #e0e8de;border-radius:12px;background:#fff;color:#273d2e;font:inherit;font-size:12px;outline:none}
.pos-field-v31 input:focus,.pos-field-v31 select:focus,.pos-field-v31 textarea:focus{border-color:#85b595;box-shadow:0 0 0 3px rgba(31,123,70,.08)}
.pos-line-foot-v31{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;margin-top:10px;border-top:1px solid #edf2eb}
.pos-stock-hint-v31{color:#87958a;font-size:9px}
.pos-line-price-v31{color:#145c36;font-size:15px}
.pos-form-grid-v31{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pos-field-full-v31{grid-column:1/-1}
.pos-field-v31 small,.pos-error-v31{color:#a5443d;font-size:10px}
.pos-confirm-colissimo-v31{display:flex;align-items:flex-start;gap:10px;margin-top:15px;padding:13px;border:1px solid #e3ece0;border-radius:14px;background:#f7fbf5;color:#345541;font-size:11px;cursor:pointer}
.pos-confirm-colissimo-v31 input{width:18px;height:18px;margin-top:2px;accent-color:#17683a}
.pos-confirm-colissimo-v31 span{display:grid;gap:3px}
.pos-confirm-colissimo-v31 small{font-size:9px;line-height:1.6;color:#839187}
.pos-summary-v31{position:sticky;top:88px}
.pos-summary-card-v31{padding:20px;border-radius:20px;background:linear-gradient(150deg,#fff,#f7fbf6)}
.pos-summary-row-v31{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #e8eee6;color:#77877b;font-size:11px}
.pos-summary-row-v31 b{color:#294b36;white-space:nowrap}
.pos-summary-total-v31{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;color:#32523c;font-weight:800;font-size:12px}
.pos-summary-total-v31 strong{color:#105d35;font-size:22px;white-space:nowrap}
.pos-submit-v31{width:100%;min-height:49px;border-radius:14px;font-size:13px;justify-content:center}
.pos-summary-card-v31>p{margin:11px 0 0;color:#89978b;font-size:9px;line-height:1.7;text-align:center}
.pos-empty-v31{padding:24px;border-radius:18px;color:#68786d}
.pos-empty-v31 a{color:#17663a;font-weight:800}
.pos-error-v31{margin:12px 0 0}

/* Orders list: desktop table, compact mobile order cards. */
.orders-heading-v31{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.orders-heading-v31 h2{margin:3px 0;color:#174c30;font-size:21px}
.orders-heading-actions-v31{display:flex;gap:8px;flex-wrap:wrap}
.orders-mobile-grid-v31{display:none}
@media(max-width:1000px){.pos-layout-v31{grid-template-columns:minmax(0,1fr) minmax(230px,.72fr)}}
@media(max-width:760px){
 .pos-v31{padding-bottom:0}.pos-heading-v31{align-items:flex-start;flex-direction:column;gap:9px}.pos-heading-v31>.button{width:100%;justify-content:center}
 .pos-layout-v31{grid-template-columns:1fr;gap:11px}.pos-panel-v31{padding:13px;border-radius:17px}.pos-panel-heading-v31 h3,.pos-summary-card-v31 h3{font-size:14px}.pos-add-button-v31{min-height:36px;padding:8px 10px;font-size:9px}
 .pos-line-v31{padding:10px;border-radius:14px}.pos-line-fields-v31{grid-template-columns:1fr 1fr;gap:8px}.pos-count-field-v31{grid-column:1/-1}.pos-field-v31{font-size:9px}.pos-field-v31 input,.pos-field-v31 select,.pos-field-v31 textarea{min-height:40px;font-size:11px;padding:9px}
 .pos-summary-v31{position:static}.pos-summary-card-v31{padding:15px;border-radius:17px}.pos-summary-total-v31 strong{font-size:19px}.pos-submit-v31{min-height:46px}
 .orders-heading-v31{align-items:stretch;flex-direction:column}.orders-heading-actions-v31{display:grid;grid-template-columns:1fr 1fr}.orders-mobile-grid-v31{display:grid;gap:9px}.orders-desktop-table-v31{display:none!important}
}
@media(max-width:390px){.pos-form-grid-v31{grid-template-columns:1fr}.pos-field-full-v31{grid-column:auto}.orders-heading-actions-v31{grid-template-columns:1fr}}

/* V31 final overrides — keep the storefront drawer neutral even on product pages. */
.store-sidebar-v17{
  width:min(306px,82vw)!important;
  max-width:calc(100vw - 28px)!important;
  background:#f9fbf8!important;
  color:#30483a!important;
  border:1px solid #e5ece3!important;
  box-shadow:0 18px 46px rgba(27,57,36,.13)!important;
}
html[dir="rtl"] .store-sidebar-v17{box-shadow:16px 0 42px rgba(27,57,36,.11)!important}
html[dir="ltr"] .store-sidebar-v17{box-shadow:-16px 0 42px rgba(27,57,36,.11)!important}
body.product-landing-body .store-sidebar-v17{
  background:linear-gradient(155deg,#fbfdf9 0%,#f3f8f1 100%)!important;
  color:#30483a!important;
  border-inline-start:2px solid #dce9d9!important;
  box-shadow:0 18px 46px rgba(27,57,36,.13)!important;
}
.store-sidebar-head-v17,.store-sidebar-language-v17,.store-sidebar-nav-v17,.store-sidebar-group-v17,
body.product-landing-body .store-sidebar-head-v17,body.product-landing-body .store-sidebar-language-v17,
body.product-landing-body .store-sidebar-nav-v17,body.product-landing-body .store-sidebar-group-v17{
  border-color:#e6eee4!important;
}
.store-sidebar-brand-v17 img{width:104px!important;height:45px!important;filter:none!important}
.store-sidebar-brand-v17 span,body.product-landing-body .store-sidebar-brand-v17 span{color:#718276!important}
.store-sidebar-close-v17,body.product-landing-body .store-sidebar-close-v17{
  width:34px!important;height:34px!important;flex-basis:34px!important;
  border:1px solid #e2eae0!important;background:#fff!important;color:#43614d!important;
  box-shadow:0 3px 10px rgba(24,65,38,.05)!important;
}
.store-sidebar-language-v17>b,.store-sidebar-group-v17 h3,
body.product-landing-body .store-sidebar-language-v17>b,body.product-landing-body .store-sidebar-group-v17 h3{
  color:#607968!important;font-size:10px!important;
}
.store-sidebar-language-v17 a,body.product-landing-body .store-sidebar-language-v17 a{
  background:#fff!important;border:1px solid #e2eae0!important;color:#486451!important;
}
.store-sidebar-language-v17 a.active,body.product-landing-body .store-sidebar-language-v17 a.active{
  background:#eaf3e8!important;border-color:#cbdcc9!important;color:#24583a!important;
}
.store-sidebar-nav-v17 a,.store-sidebar-nav-v17 button,
body.product-landing-body .store-sidebar-nav-v17 a,body.product-landing-body .store-sidebar-nav-v17 button{
  background:#fff!important;border:1px solid #e4ece2!important;color:#3f5e49!important;
}
.store-sidebar-nav-v17 a i,.store-sidebar-nav-v17 button i,
body.product-landing-body .store-sidebar-nav-v17 a i,body.product-landing-body .store-sidebar-nav-v17 button i{
  color:#72947a!important;
}
.store-sidebar-nav-v17 a.active,body.product-landing-body .store-sidebar-nav-v17 a.active{
  background:#edf5eb!important;border-color:#d4e4d1!important;color:#24583a!important;
  box-shadow:inset 0 0 0 1px #edf5eb!important;
}
.store-sidebar-chips-v17 a,body.product-landing-body .store-sidebar-chips-v17 a{
  background:#fff!important;border:1px solid #e3ebe1!important;color:#526b58!important;
}
.store-sidebar-chips-v17 a:before{box-shadow:none!important}
.store-sidebar-category-list-v17 a,body.product-landing-body .store-sidebar-category-list-v17 a{
  color:#3c5c47!important;border-bottom-color:#eaf0e8!important;
}
.store-sidebar-category-list-v17 a span,body.product-landing-body .store-sidebar-category-list-v17 a span,
body.product-landing-body .store-sidebar-category-arrow-v23{color:#75927b!important}
.store-sidebar-social-v17 a,body.product-landing-body .store-sidebar-social-v17 a{
  background:#fff!important;border:1px solid #e3ebe1!important;color:#405e49!important;
}
.store-sidebar-social-v17 a.whatsapp{background:#eff8f0!important;border-color:#dceee0!important;color:#287348!important}
.store-sidebar-admin-link-v17,body.product-landing-body .store-sidebar-admin-link-v17{color:#8a998c!important}
.store-sidebar-backdrop-v17{background:rgba(28,43,32,.28)!important;backdrop-filter:blur(3px)}
@media(max-width:390px){.store-sidebar-v17{width:min(294px,84vw)!important;padding:12px 12px calc(18px + env(safe-area-inset-bottom))!important}}

/* Keep the order details concise: secondary actions are intentionally collapsed. */
.order-more-actions-v31{margin-top:7px;border:1px solid #e5ece3;border-radius:13px;background:#fbfdfb;overflow:hidden}
.order-more-actions-v31>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;color:#5a7160;font-size:10px;font-weight:800;cursor:pointer;list-style:none}
.order-more-actions-v31>summary::-webkit-details-marker{display:none}
.order-more-actions-v31>summary span{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#edf5eb;color:#28613d;font-size:15px}
.order-more-actions-v31[open]>summary{border-bottom:1px solid #e8eee6}
.order-more-actions-v31>div{display:grid;gap:7px;padding:10px}
.order-more-actions-v31 .button{min-height:39px;border-radius:11px;font-size:10px}
.order-share-primary-v31{min-height:49px!important;border-radius:13px!important;font-weight:900!important}
.order-share-hint-v23{display:block;margin:7px 2px;color:#87958a;font-size:9px;line-height:1.6}
.order-mobile-card-v31{padding:12px}
.order-mobile-card-head-v31{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 3px 8px}
.order-line-mark-v31{display:grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border-radius:10px;background:#edf5eb;color:#24623e;font-size:10px;font-weight:900}
.order-mobile-open-v31{display:flex;align-items:center;justify-content:space-between;min-height:39px;margin-top:8px;padding:8px 12px;border-radius:12px;font-size:10px}
.dashboard-pos-link-v31{border-radius:15px!important}
@media(max-width:760px){
 .order-more-actions-v31>summary{min-height:42px}
 .order-v23{padding-bottom:104px}
 .dashboard-primary-actions .dashboard-pos-link-v31{min-width:0}
}

.pos-validation-summary-v31{margin:0 0 14px;padding:13px 15px;border:1px solid #f0d8d2;border-radius:14px;background:#fff6f3;color:#8d4037;font-size:11px;line-height:1.7}
.pos-validation-summary-v31 b{display:block;margin-bottom:5px}
.pos-validation-summary-v31 ul{margin:0;padding-inline-start:18px}
.pos-validation-summary-v31 li+li{margin-top:3px}
