/* SRSHerbal v2.42.0 — 40-point global finalization layer
   UI/stability/performance only. No commercial calculations or data rewrite. */
:root{
  --v242-ink:#103b48;--v242-muted:#627980;--v242-green:#0d7668;--v242-green-dark:#0a5d53;
  --v242-gold:#b88732;--v242-orange:#ff7132;--v242-line:#dce8e4;--v242-soft:#f5faf8;
  --v242-ivory:#fffdf7;--v242-red:#c8414d;--v242-shadow:0 12px 34px rgba(16,59,72,.075);
  --v242-radius:18px;--v242-max:1480px;
}
html,body{max-width:100%;overflow-x:hidden}
body.v242-finalized{background:#fff;color:var(--v242-ink)}
body.v242-finalized *,body.v242-finalized *::before,body.v242-finalized *::after{box-sizing:border-box}
body.v242-finalized img{max-width:100%;height:auto}
body.v242-finalized main{min-width:0}

/* Public shell */
body.v242-finalized .site-header.locked-header{width:min(100%,var(--v242-max));margin-inline:auto}
body.v242-finalized .mainnav.locked-nav{width:100%;overflow:auto hidden;scrollbar-width:none}
body.v242-finalized .mainnav.locked-nav::-webkit-scrollbar{display:none}
body.v242-finalized footer,body.v242-finalized .site-footer{padding-top:clamp(22px,3vw,40px)!important;padding-bottom:clamp(18px,2.6vw,34px)!important}

/* Public product/detail width + resilient cards */
body.v242-product-page main,body.v242-product-page main>.container,body.v242-product-page main>[class*="container"]{width:100%!important;max-width:var(--v242-max)!important;margin-inline:auto!important}
body.v242-product-page main{padding-inline:clamp(10px,2vw,28px)!important}
body.v242-product-page .product-detail,body.v242-product-page [class*="product-detail"]{width:100%!important;max-width:100%!important}
body.v242-product-page .product-detail-grid,body.v242-product-page [class*="product-detail-grid"]{grid-template-columns:minmax(0,1.02fr) minmax(330px,.98fr)!important}

.v242-related-section{width:100%!important;max-width:100%!important;margin:34px auto 18px!important;padding:clamp(20px,3vw,40px)!important;border:1px solid var(--v242-line)!important;border-radius:28px!important;background:linear-gradient(135deg,#f8fcfa,#fffdf7 56%,#f0f9f5)!important;box-shadow:0 12px 36px rgba(16,59,72,.045)!important}
.v242-related-section>h2,.v242-related-section>h3{font-size:clamp(26px,3vw,42px)!important;margin:0 0 18px!important}
.v242-related-section .v242-related-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;width:100%!important}
.v242-related-section .v242-related-card{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;max-width:none!important;height:100%!important;border:1px solid var(--v242-line)!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 8px 24px rgba(16,59,72,.065)!important}
.v242-related-section .v242-related-card img{width:100%!important;aspect-ratio:4/3!important;object-fit:cover!important;background:#f5f8f5!important}
.v242-related-section .v242-related-card h2,.v242-related-section .v242-related-card h3,.v242-related-section .v242-related-card h4{font-size:17px!important;line-height:1.2!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:10px 12px 6px!important}
.v242-related-section .v242-related-card p{margin:0 12px 9px!important;color:var(--v242-muted)!important;line-height:1.45!important}
.v242-related-section .v242-related-card .btn,.v242-related-section .v242-related-card a[class*="btn"]{margin:auto 12px 12px!important;width:calc(100% - 24px)!important}

/* Honest image fallback, never a broken icon */
.v242-image-fallback{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:150px!important;aspect-ratio:4/3!important;padding:18px!important;border:1px dashed #b8d9ce!important;border-radius:15px!important;background:linear-gradient(145deg,#f3faf6,#fff9ee)!important;color:#25675e!important;font-size:13px!important;font-weight:700!important}
.v242-image-fallback::before{content:"🌿";font-size:31px;line-height:1;margin-bottom:9px}

/* Admin shell — remove duplicate local sidebars and use one navigation system */
.admin-theme.v242-finalized main{width:100%;max-width:100%;padding:clamp(14px,2vw,28px)}
.admin-theme.v242-finalized .dashboard-shell,.admin-theme.v242-finalized .admin-shell{width:min(100%,var(--v242-max));max-width:var(--v242-max);margin-inline:auto;grid-template-columns:minmax(0,1fr)!important}
.admin-theme.v242-finalized .dashboard-shell>.dash-nav,.admin-theme.v242-finalized .admin-shell>.dash-nav{display:none!important}
.admin-theme.v242-finalized .dash-main{width:100%;max-width:100%;min-width:0}
.admin-theme.v242-finalized .section-head{border-radius:22px;padding:clamp(20px,2.6vw,34px);background:linear-gradient(135deg,#fff,#f4faf7);border:1px solid var(--v242-line);box-shadow:0 8px 26px rgba(16,59,72,.045)}

/* Compact module navigation */
.v242-modulebar{display:flex!important;align-items:center!important;gap:8px!important;overflow:visible!important;padding:10px clamp(12px,1.8vw,24px)!important;background:#fff!important;border-bottom:1px solid var(--v242-line)!important;position:relative;z-index:40}
.v242-modulebar>a,.v242-admin-more>summary{min-height:42px;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;padding:0 13px!important;border:1px solid var(--v242-line)!important;border-radius:12px!important;background:#fff!important;color:var(--v242-ink)!important;font-weight:650!important;white-space:nowrap;cursor:pointer;list-style:none}
.v242-modulebar>a.active{background:var(--v242-green)!important;color:#fff!important;border-color:var(--v242-green)!important;box-shadow:0 6px 16px rgba(13,118,104,.14)}
.v242-admin-more{position:relative;margin-left:auto}.v242-admin-more>summary::-webkit-details-marker{display:none}.v242-admin-more[open]>summary{background:#f3f9f6!important;border-color:#bad8ce!important}
.v242-admin-more-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(310px,82vw);display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px;border:1px solid var(--v242-line);border-radius:16px;background:#fff;box-shadow:0 18px 46px rgba(16,59,72,.16);z-index:80}
.v242-admin-more-menu a{min-height:42px;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;color:var(--v242-ink);font-weight:600}.v242-admin-more-menu a:hover{background:var(--v242-soft)}

/* Orders — upgrade even when legacy Blade markup is still used */
body.v242-orders-page .dash-main{max-width:none!important}
body.v242-orders-page .section-head{margin-bottom:16px}
.v242-order-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px}
.v242-order-kpis article{padding:15px 16px;border:1px solid var(--v242-line);border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(16,59,72,.045)}
.v242-order-kpis b{display:block;font-size:26px;letter-spacing:-.03em;color:var(--v242-ink)}.v242-order-kpis span{font-size:12px;color:var(--v242-muted);font-weight:650}
body.v242-orders-page form[method="get"]{display:grid!important;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:center;margin:0 0 14px}
body.v242-orders-page form[method="get"]>*{min-height:44px;max-width:100%;width:100%}
body.v242-orders-page table{min-width:900px;background:#fff}
body.v242-orders-page th{background:#eef7f3!important;color:#244f5a!important}
body.v242-orders-page tbody tr:hover td{background:#fbfdfc}
.v242-order-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:var(--v242-muted)}
.v242-order-empty::before{content:"📦";font-size:36px}.v242-order-empty b{font-size:18px;color:var(--v242-ink)}

/* Forms */
body.v242-finalized input,body.v242-finalized select,body.v242-finalized textarea{min-height:44px;border-radius:12px!important;border-color:#cfdfda!important;background:#fff}
body.v242-finalized textarea{min-height:110px}
body.v242-finalized button,body.v242-finalized .btn,body.v242-finalized .mini-action{border-radius:12px!important}
body.v242-finalized form.is-submitting button[type="submit"],body.v242-finalized form.is-submitting input[type="submit"]{opacity:.72;cursor:wait}
body.v242-finalized .field-error,body.v242-finalized .invalid-feedback{color:var(--v242-red);font-size:12px;font-weight:600;margin-top:5px}

/* Tables — desktop clear, mobile scrollable */
.v242-table-scroll{width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--v242-line);border-radius:16px;background:#fff}
.v242-table-scroll>table{margin:0!important;border:0!important;width:100%!important}
body.v242-finalized th{white-space:nowrap;background:#f4f9f7}
body.v242-finalized td{overflow-wrap:anywhere}

/* Empty/zero result states */
.v242-empty-state{min-height:140px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:7px!important;padding:24px!important;color:var(--v242-muted)!important;background:linear-gradient(145deg,#f8fbfa,#fffdf7)!important;border:1px dashed #cadeD7!important;border-radius:16px!important}
.v242-empty-state::before{content:"◇";font-size:32px;color:var(--v242-green)}
.v242-empty-state b,.v242-empty-state strong{color:var(--v242-ink);font-size:17px}

/* KYC / Seller / Buyer / B2B universal workspace polish */
.v237-admin-kyc,.dashboard-shell,.seller-dashboard,.buyer-dashboard,[class*="account-dashboard"],[class*="seller-dashboard"]{max-width:var(--v242-max)!important;margin-inline:auto!important}
.v237-health-grid,.metric-grid,[class*="metric-grid"],[class*="kpi-grid"]{gap:12px!important}
.v237-health-grid>*,.metric-grid>*,[class*="metric-grid"]>*,[class*="kpi-grid"]>*{border:1px solid var(--v242-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 20px rgba(16,59,72,.045)!important}

/* Search/no-result public surface */
.v242-search-empty{max-width:820px;margin:32px auto;padding:30px;border:1px dashed #c9ddd5;border-radius:20px;background:linear-gradient(145deg,#f7fbf9,#fffaf2);text-align:center;color:var(--v242-muted)}
.v242-search-empty b{display:block;color:var(--v242-ink);font-size:22px;margin-bottom:6px}

/* Final QA */
.v242-finalqa{max-width:var(--v242-max);margin:0 auto}.v242-finalqa-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;padding:26px;border:1px solid var(--v242-line);border-radius:24px;background:linear-gradient(135deg,#fff,#f1faf6)}
.v242-finalqa-head h1{margin:5px 0 8px}.v242-finalqa-head p{margin:0;color:var(--v242-muted)}.v242-finalqa-score{text-align:right}.v242-finalqa-score b{display:block;font-size:38px;color:var(--v242-green)}.v242-finalqa-score span{font-size:12px;color:var(--v242-muted)}
.v242-finalqa-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.v242-finalqa-kpis article{padding:15px;border:1px solid var(--v242-line);border-radius:16px;background:#fff}.v242-finalqa-kpis b{display:block;font-size:25px}.v242-finalqa-kpis span{color:var(--v242-muted);font-size:12px}
.v242-finalqa-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v242-finalqa-item{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:start;padding:15px;border:1px solid var(--v242-line);border-radius:15px;background:#fff}.v242-finalqa-item .num{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--v242-soft);font-weight:800}.v242-finalqa-item h3{font-size:15px;margin:1px 0 3px}.v242-finalqa-item p{font-size:12px;line-height:1.45;color:var(--v242-muted);margin:0}.v242-finalqa-item strong{font-size:11px;padding:6px 8px;border-radius:999px;background:#e8f6ef;color:#16725e}.v242-finalqa-item.is-check strong{background:#fff3dc;color:#94610b}.v242-finalqa-item.is-live strong{background:#eef2fb;color:#4d63a5}.v242-finalqa-note{margin-top:14px;padding:14px 16px;border-radius:14px;background:#fff8e8;color:#6f5726}

/* Accessibility */
body.v242-finalized :focus-visible{outline:3px solid rgba(13,118,104,.28)!important;outline-offset:2px!important}

@media(max-width:1180px){
  .v242-related-section .v242-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .v242-order-kpis{grid-template-columns:repeat(3,1fr)}
  .v242-modulebar>a{padding-inline:10px!important}
  .v242-modulebar>a span{display:none}
}
@media(max-width:900px){
  body.v242-product-page .product-detail-grid,body.v242-product-page [class*="product-detail-grid"]{grid-template-columns:1fr!important}
  .v242-related-section .v242-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .v242-finalqa-grid{grid-template-columns:1fr}.v242-finalqa-kpis{grid-template-columns:1fr 1fr}
  body.v242-orders-page form[method="get"]{grid-template-columns:1fr 1fr!important}
}
@media(max-width:720px){
  .v242-modulebar{display:none!important}
  .v242-related-section{padding:14px!important;border-radius:20px!important}.v242-related-section .v242-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .v242-related-section .v242-related-card h2,.v242-related-section .v242-related-card h3,.v242-related-section .v242-related-card h4{font-size:14px!important;margin-inline:9px!important}.v242-related-section .v242-related-card p{font-size:12px!important;margin-inline:9px!important}.v242-related-section .v242-related-card .btn,.v242-related-section .v242-related-card a[class*="btn"]{margin-inline:9px!important;width:calc(100% - 18px)!important}
  .v242-order-kpis{grid-template-columns:1fr 1fr}.v242-order-kpis article:last-child{grid-column:1/-1}
  body.v242-orders-page form[method="get"]{grid-template-columns:1fr!important}
  .v242-finalqa-head{display:block}.v242-finalqa-score{text-align:left;margin-top:12px}.v242-finalqa-item{grid-template-columns:36px 1fr}.v242-finalqa-item strong{grid-column:2;justify-self:start}
  .admin-theme.v242-finalized main{padding:10px 9px 90px}
}
@media(max-width:390px){
  .v242-related-section .v242-related-grid{gap:8px!important}.v242-order-kpis,.v242-finalqa-kpis{grid-template-columns:1fr!important}.v242-order-kpis article:last-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){body.v242-finalized *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
