:root {
  --forest-950: #0d2715;
  --forest-900: #13301b;
  --forest-800: #1b4326;
  --forest-700: #235630;
  --forest-600: #2e6b3e;
  --forest-500: #4a8557;
  --forest-300: #73a87c;
  --forest-200: #a9cbae;
  --forest-100: #d7e7d9;
  --forest-50: #eef4ee;
  --cream-50: #fbf9f3;
  --cream-100: #f5f0e4;
  --cream-200: #ede4d0;
  --cream-300: #ddcfb1;
  --gold-500: #c68a2e;
  --gold-400: #d8a24a;
  --ink: #13301b;
  --muted: #6d806f;
  --danger: #c43c3c;
  --blue: #4c6fa8;
  --violet: #7662a9;
  --card-shadow: 0 2px 8px rgba(27, 67, 38, .06), 0 16px 34px rgba(27, 67, 38, .07);
  --lift-shadow: 0 10px 24px rgba(27, 67, 38, .1), 0 24px 54px rgba(27, 67, 38, .09);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-50);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Montserrat, Manrope, sans-serif; letter-spacing: -.035em; }

::selection { background: rgba(74, 133, 87, .22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--forest-200); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }

.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.muted { color: var(--muted); font-size: 13px; }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest-600); color: white; box-shadow: 0 8px 20px rgba(46, 107, 62, .2); }
.btn-primary:hover { background: var(--forest-700); }
.btn-secondary, .btn-outline { color: var(--forest-700); background: white; border: 1px solid var(--forest-200); }
.btn-secondary:hover, .btn-outline:hover { background: var(--forest-50); border-color: var(--forest-500); }
.btn-danger { color: #a92e2e; background: #fff1f1; border: 1px solid #f4cccc; }
.btn-ghost { color: var(--forest-700); background: transparent; }
.btn-wide { width: 100%; }

.input, .select {
  width: 100%;
  min-height: 43px;
  padding: 10px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--cream-200);
  border-radius: 11px;
  outline: none;
  transition: .18s ease;
}
.input:focus, .select:focus { border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(74, 133, 87, .13); }
.input.compact { min-height: 36px; padding: 7px 9px; font-size: 12px; margin-bottom: 5px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { color: var(--forest-800); font-size: 12px; font-weight: 700; }
.field.inline { display: flex; align-items: center; margin: 0; }
.field.inline .input { width: auto; }

.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.eyebrow.light { color: #dfbd75; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  color: white;
  background: var(--forest-900);
  border-radius: 999px;
  box-shadow: var(--lift-shadow);
  font-size: 13px;
  font-weight: 700;
}

/* Authentication */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: var(--cream-50); }
.auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 72px clamp(40px, 7vw, 110px);
  color: white;
  background: linear-gradient(125deg, rgba(19,48,27,.95), rgba(35,86,48,.84)), url('/products/manda-sut-1l.jpg') center/cover;
}
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-brand-panel::before { width: 380px; height: 380px; top: -160px; right: -100px; }
.auth-brand-panel::after { width: 240px; height: 240px; left: -100px; bottom: -90px; }
.auth-brand-content { position: relative; z-index: 1; max-width: 670px; }
.auth-brand-content h1 { max-width: 620px; margin-bottom: 20px; font-size: clamp(38px, 4.7vw, 72px); line-height: 1.04; }
.auth-brand-content > p { max-width: 570px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.7; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.auth-benefits span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.auth-benefits .ui-icon { width: 17px; height: 17px; }
.auth-card { align-self: center; justify-self: center; width: min(440px, calc(100% - 48px)); padding: 42px; background: white; border: 1px solid var(--cream-200); border-radius: 24px; box-shadow: var(--lift-shadow); }
.auth-logo-row { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--cream-200); color: var(--forest-800); font-size: 12px; font-weight: 800; }
.login-logo { width: 68px; height: 56px; object-fit: contain; }
.auth-card h2 { margin-bottom: 10px; font-size: 29px; }
.auth-card > p { margin-bottom: 26px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-help { margin: 18px 0 0 !important; text-align: center; font-size: 11px !important; }
.auth-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; color: var(--forest-600); background: var(--forest-50); border-radius: 14px; }
.code-input { text-align: center; font-size: 22px; letter-spacing: .36em; }

/* Customer shell */
.customer-app { min-height: 100vh; padding-bottom: 100px; background: radial-gradient(circle at 15% 8%, rgba(115,168,124,.09), transparent 30%), var(--cream-50); }
.service-strip { height: 29px; display: flex; align-items: center; justify-content: center; gap: 7px; color: rgba(255,255,255,.84); background: var(--forest-900); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.live-dot { width: 6px; height: 6px; background: #76d28a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(118,210,138,.12); }
.customer-header { position: sticky; z-index: 40; top: 0; height: 78px; background: rgba(251,249,243,.92); border-bottom: 1px solid var(--cream-200); backdrop-filter: blur(14px); }
.customer-header-inner { width: min(1240px, calc(100% - 36px)); height: 100%; display: flex; align-items: center; gap: 24px; margin: auto; }
.brand-button { width: 74px; height: 58px; padding: 4px; background: white; border: 1px solid var(--cream-200); border-radius: 12px; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.customer-desktop-nav { display: flex; gap: 4px; margin: auto; }
.customer-nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; color: var(--forest-700); background: transparent; border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; transition: .18s ease; }
.customer-nav-item .ui-icon { width: 17px; height: 17px; }
.customer-nav-item:hover, .customer-nav-item.active { background: var(--forest-50); color: var(--forest-900); }
.customer-account { display: flex; align-items: center; gap: 12px; }
.header-cart, .icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--forest-800); background: white; border: 1px solid var(--cream-200); border-radius: 50%; }
.cart-count { position: absolute; right: -3px; top: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; color: white; background: var(--forest-600); border: 2px solid var(--cream-50); border-radius: 99px; font-size: 9px; font-weight: 800; }
.customer-identity { min-width: 125px; display: grid; padding-left: 12px; border-left: 1px solid var(--cream-200); }
.customer-identity strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.customer-identity span { color: var(--muted); font-size: 10px; }
.logout-button { border: 0; background: transparent; }
.customer-mobile-nav { display: none; }
.page-container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.catalog-page { padding-top: 32px; }
.inner-page { padding-top: 48px; }
.catalog-hero {
  min-height: 265px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(30px, 5vw, 54px);
  color: white;
  background: radial-gradient(circle at 80% 0, rgba(216,162,74,.2), transparent 33%), linear-gradient(120deg, var(--forest-800), #284e24);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
}
.catalog-hero h1 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.catalog-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.7; }
.hero-order-status { min-width: 270px; display: flex; gap: 12px; padding: 15px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; backdrop-filter: blur(8px); }
.hero-order-status .ui-icon { color: #e4bd6f; }
.hero-order-status span { display: grid; }
.hero-order-status strong { font-size: 12px; }
.hero-order-status small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 10px; }
.offtrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px 20px; color: var(--forest-800); background: #fff8e9; border: 1px solid #ecd9ac; border-radius: var(--radius-md); }
.offtrade-banner > div { display: flex; align-items: center; gap: 12px; }
.offtrade-banner span { display: grid; }
.offtrade-banner small { color: #876b36; }
.priority-section { padding-top: 38px; }
.favorites-priority { padding-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 5px; font-size: 23px; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--forest-600); background: transparent; border: 0; font-size: 11px; font-weight: 800; }
.text-button .ui-icon { width: 15px; height: 15px; }
.quick-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-product-card { min-width: 0; display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px; background: white; border: 1px solid var(--cream-200); border-radius: 14px; box-shadow: 0 5px 16px rgba(27,67,38,.04); }
.quick-product-card > img { width: 65px; height: 62px; object-fit: cover; border-radius: 10px; }
.quick-product-copy { min-width: 0; display: grid; gap: 4px; }
.quick-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.quick-product-copy span { color: var(--muted); font-size: 9px; }
.quick-product-actions { display: grid; gap: 5px; justify-items: end; }
.quick-add { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px; color: white; background: var(--forest-600); border: 0; border-radius: 999px; font-size: 9px; font-weight: 800; }
.quick-add .ui-icon { width: 12px; height: 12px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 42px; padding: 12px; background: rgba(255,255,255,.8); border: 1px solid var(--cream-200); border-radius: 15px; box-shadow: 0 6px 18px rgba(27,67,38,.04); }
.category-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 34px; padding: 7px 13px; color: var(--forest-700); background: white; border: 1px solid var(--cream-200); border-radius: 999px; font-size: 11px; font-weight: 700; }
.chip.active { color: white; background: var(--forest-600); border-color: var(--forest-600); }
.search-box { min-width: 245px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: white; border: 1px solid var(--cream-200); border-radius: 11px; }
.search-box .ui-icon { width: 17px; color: var(--forest-500); }
.search-box input { width: 100%; height: 40px; background: transparent; border: 0; outline: none; font-size: 12px; }
.products-title { margin-top: 38px; }
.result-count { color: var(--muted); font-size: 11px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--cream-200); border-radius: 18px; box-shadow: var(--card-shadow); transition: .25s ease; }
.product-card:hover { transform: translateY(-4px); border-color: var(--forest-200); box-shadow: var(--lift-shadow); }
.product-image-wrap { position: relative; height: 220px; overflow: hidden; background: var(--forest-50); }
.product-image-wrap > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image-wrap > img { transform: scale(1.035); }
.product-category { position: absolute; left: 13px; top: 13px; padding: 6px 10px; color: var(--forest-800); background: rgba(255,255,255,.9); border-radius: 999px; font-size: 9px; font-weight: 800; backdrop-filter: blur(5px); }
.favorite-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--forest-600); background: rgba(255,255,255,.93); border: 1px solid var(--cream-200); border-radius: 50%; }
.product-image-wrap > .favorite-button { position: absolute; right: 13px; top: 13px; }
.favorite-button .ui-icon { width: 16px; height: 16px; }
.favorite-button.active { color: white; background: var(--forest-600); border-color: var(--forest-600); }
.favorite-button.active .ui-icon { fill: currentColor; }
.quick-product-card .favorite-button { width: 27px; height: 27px; }
.product-card-body { padding: 17px; }
.product-card-body h3 { min-height: 42px; margin-bottom: 7px; font-size: 17px; line-height: 1.28; }
.product-card-body > p { height: 38px; overflow: hidden; margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.product-meta { display: flex; gap: 6px; }
.product-meta span { padding: 5px 8px; color: var(--forest-700); background: var(--cream-50); border-radius: 7px; font-size: 9px; font-weight: 700; }
.product-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 16px; }
.price { color: var(--forest-800); font-family: Montserrat, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.price small { display: block; margin-top: 3px; color: var(--forest-500); font-family: Manrope, sans-serif; font-size: 8px; font-weight: 600; letter-spacing: 0; }
.add-product { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; color: white; background: var(--forest-600); border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; }
.add-product .ui-icon { width: 15px; height: 15px; }
.qty { display: grid; grid-template-columns: 36px 58px 36px; align-items: center; overflow: hidden; border: 1px solid var(--forest-200); border-radius: 999px; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-50); border: 0; }
.qty button .ui-icon { width: 14px; height: 14px; }
.qty-input { width: 58px; height: 34px; padding: 0 3px; text-align: center; color: var(--forest-900); background: white; border: 0; outline: 0; font-size: 14px; font-weight: 850; appearance: textfield; }
.qty-input:focus { background: #fff8dc; box-shadow: inset 0 0 0 2px var(--forest-300); }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { appearance: none; }
.empty, .empty-state { grid-column: 1 / -1; padding: 34px; text-align: center; color: var(--muted); background: white; border: 1px dashed var(--forest-200); border-radius: 16px; }
.empty-state { display: flex; align-items: center; justify-content: center; gap: 16px; }
.empty-state > .ui-icon { width: 30px; height: 30px; color: var(--forest-400); }
.empty-state > div { display: grid; gap: 3px; text-align: left; }
.empty-state strong { color: var(--forest-800); }
.empty-state span { font-size: 11px; }
.empty-state.compact { padding: 18px; }
.page-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.page-heading h1 { margin-bottom: 5px; font-size: 30px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.page-icon, .settings-icon { display: grid; place-items: center; color: var(--forest-600); background: var(--forest-50); border-radius: 15px; }
.page-icon { width: 56px; height: 56px; }
.page-icon .ui-icon { width: 25px; height: 25px; }

/* Customer cart, orders, settings */
.cart-bar { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(650px, calc(100% - 30px)); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 11px; color: white; background: rgba(19,48,27,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; box-shadow: 0 20px 45px rgba(13,39,21,.28); backdrop-filter: blur(12px); }
.cart-bar-icon { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 50%; }
.cart-summary { display: grid; }
.cart-summary strong { font-size: 12px; }
.cart-summary span { color: rgba(255,255,255,.62); font-size: 9px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cart-list, .orders { display: grid; gap: 12px; }
.cart-row, .order-row, .order-summary-card, .settings-card, .account-summary { background: white; border: 1px solid var(--cream-200); border-radius: 16px; box-shadow: var(--card-shadow); }
.cart-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 12px; }
.cart-row img { width: 90px; height: 82px; object-fit: cover; border-radius: 12px; }
.cart-row-main { display: grid; gap: 7px; }
.cart-row-main strong { font-size: 13px; }
.cart-row-main small { color: var(--muted); font-size: 10px; }
.cart-row-main .qty { width: max-content; }
.cart-row-total { display: grid; gap: 8px; justify-items: end; }
.remove-button { padding: 0; color: var(--danger); background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.order-summary-card { position: sticky; top: 105px; padding: 22px; }
.order-summary-card h3 { margin-bottom: 18px; }
.cart-total-card { display: grid; gap: 11px; padding: 15px 0; margin: 8px 0 14px; border-top: 1px solid var(--cream-200); border-bottom: 1px solid var(--cream-200); }
.cart-total-card > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.cart-total-card .grand { color: var(--forest-900); font-size: 15px; }
.cart-actions { display: grid; gap: 9px; }
.order-rule { display: block; margin-top: 13px; line-height: 1.5; }
.order-row { display: grid; gap: 13px; padding: 19px; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.status.active { color: #286837; background: #e8f7eb; }
.status.pending, .status.review { color: #986418; background: #fff4dc; }
.status.passive { color: #8a3840; background: #fff0f1; }
.status.demo { color: #6f3ca0; background: #f2e8ff; border: 1px solid #dcc4f4; }
.account-summary { display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 16px; }
.account-summary img { width: 60px; height: 50px; object-fit: contain; border: 1px solid var(--cream-200); border-radius: 10px; }
.account-summary div { display: grid; gap: 4px; }
.account-summary span { color: var(--muted); font-size: 11px; }
.account-summary .account-logout { margin-left: auto; flex: 0 0 auto; }
.account-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; }
.account-quick-actions .btn { text-decoration: none; }
.voice-call-history { display: grid; gap: 8px; margin: 14px 0; }
.voice-call-history h4 { margin: 0 0 2px; }
.voice-call-history > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; padding: 12px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 11px; }
.voice-call-history span:first-child { display: grid; gap: 2px; }
.voice-call-history small { color: var(--muted); }
.voice-call-history p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.settings-card { position: relative; padding: 21px; margin-bottom: 14px; }
.notification-setting { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; }
.settings-icon { width: 46px; height: 46px; }
.settings-card h3 { margin-bottom: 5px; font-size: 15px; }
.settings-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.security-card { padding-left: 83px; }
.security-card > .settings-icon { position: absolute; left: 21px; top: 21px; }
.security-setup { display: grid; grid-template-columns: 210px 1fr; gap: 22px; margin-top: 22px; }
.security-setup img { width: 210px; border: 1px solid var(--cream-200); border-radius: 13px; }
.secret-code { display: block; padding: 10px; margin: 10px 0; overflow-wrap: anywhere; background: var(--cream-50); border-radius: 8px; }
.inline-security-form { display: flex; gap: 8px; max-width: 430px; margin-top: 16px; }
.offtrade-hero { padding: 42px; margin-bottom: 20px; color: white; background: linear-gradient(120deg, var(--forest-800), #2a5127); border-radius: 22px; }
.offtrade-hero h1 { margin-bottom: 10px; font-size: 34px; }
.offtrade-hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.7); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.offer-card { padding: 21px; background: white; border: 1px solid var(--cream-200); border-radius: 16px; }
.offer-card h3 { margin: 12px 0 7px; font-size: 15px; }
.offer-card p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.offer-badge { color: var(--gold-500); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.alert { padding: 13px 16px; margin: 14px 0; color: var(--forest-800); background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 12px; font-size: 12px; }
.alert-danger { color: #913139; background: #fff2f2; border-color: #f2cdcd; }
.loading-bar { height: 3px; overflow: hidden; background: var(--forest-100); border-radius: 99px; }
.loading-bar span { display: block; width: 35%; height: 100%; background: var(--forest-600); border-radius: inherit; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(380%); } }

/* Admin shell */
.admin-app { min-height: 100vh; background: #f7f7f2; }
.admin-sidebar { position: fixed; z-index: 90; inset: 0 auto 0 0; width: 260px; display: flex; flex-direction: column; padding: 20px 16px; color: white; background: linear-gradient(180deg, var(--forest-900), #102a18); }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand img { width: 50px; height: 44px; object-fit: contain; padding: 3px; background: white; border-radius: 9px; }
.admin-brand div { display: grid; }
.admin-brand strong { font-family: Montserrat, sans-serif; font-size: 13px; }
.admin-brand span { color: rgba(255,255,255,.5); font-size: 9px; }
.sidebar-close { display: none; margin-left: auto; color: white; background: transparent; border: 0; }
.admin-nav { display: grid; gap: 4px; padding: 21px 0; overflow-y: auto; }
.admin-nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 10px 12px; color: rgba(255,255,255,.68); background: transparent; border: 0; border-radius: 10px; font-size: 11px; font-weight: 700; text-align: left; }
.admin-nav-item .ui-icon { width: 18px; height: 18px; }
.admin-nav-item:hover, .admin-nav-item.active { color: white; background: rgba(255,255,255,.1); }
.admin-nav-item.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 24px; background: var(--gold-400); border-radius: 0 99px 99px 0; }
.admin-nav-item b { display: grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; color: var(--forest-900); background: #e3bd71; border-radius: 99px; font-size: 8px; }
.sidebar-account { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 12px 8px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest-900); background: #d5e4d6; border-radius: 50%; font-weight: 800; }
.sidebar-account div { display: grid; min-width: 0; }
.sidebar-account strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.sidebar-account span:not(.avatar) { color: rgba(255,255,255,.47); font-size: 8px; }
.admin-logout { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #f3bdbd; background: transparent; border: 0; border-radius: 9px; font-size: 10px; font-weight: 700; }
.admin-logout:hover { background: rgba(255,100,100,.1); }
.admin-logout .ui-icon { width: 17px; }
.admin-workspace { min-height: 100vh; margin-left: 260px; }
.admin-topbar { position: sticky; z-index: 60; top: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 3.5vw, 48px); background: rgba(255,255,255,.9); border-bottom: 1px solid #e6e9e1; backdrop-filter: blur(12px); }
.admin-title h1 { margin: 0 0 2px; font-size: 20px; }
.admin-title p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-header-actions { display: flex; align-items: center; gap: 9px; }
.topbar-action, .mobile-menu-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--forest-700); background: white; border: 1px solid #e4e8df; border-radius: 10px; }
.topbar-action .ui-icon { width: 18px; }
.topbar-action span { position: absolute; right: -4px; top: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; color: white; background: var(--danger); border: 2px solid white; border-radius: 99px; font-size: 7px; font-weight: 800; }
.environment-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--forest-700); background: var(--forest-50); border-radius: 999px; font-size: 9px; font-weight: 800; }
.environment-badge i { width: 7px; height: 7px; background: #47a45a; border-radius: 50%; }
.mobile-menu-button { display: none; }
.admin-content { padding: 30px clamp(20px, 3.5vw, 48px) 60px; }
.admin-overlay { display: none; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-heading h2 { margin-bottom: 5px; font-size: 26px; }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-date { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { display: flex; justify-content: space-between; gap: 14px; min-height: 126px; padding: 19px; background: white; border: 1px solid #e5e9e0; border-radius: 16px; box-shadow: 0 7px 20px rgba(22,53,30,.04); }
.metric-card > div { display: grid; align-content: space-between; }
.metric-card span { color: var(--forest-500); font-size: 10px; font-weight: 700; }
.metric-card strong { font-family: Montserrat, sans-serif; font-size: 24px; }
.metric-card small { color: var(--muted); font-size: 9px; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--forest-600); background: var(--forest-50); border-radius: 12px; }
.metric-icon.blue { color: var(--blue); background: #f0f4fb; }
.metric-icon.gold { color: var(--gold-500); background: #fff8e7; }
.metric-icon.violet { color: var(--violet); background: #f5f1fc; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.dashboard-card { min-width: 0; padding: 20px; background: white; border: 1px solid #e5e9e0; border-radius: 16px; box-shadow: 0 7px 20px rgba(22,53,30,.04); }
.dashboard-card.span-2 { grid-column: span 2; }
.card-heading { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card-heading h3 { margin-bottom: 3px; font-size: 14px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 125px 1fr 90px; align-items: center; gap: 13px; }
.bar-row > div:first-child { display: grid; }
.bar-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.bar-row span { color: var(--muted); font-size: 8px; }
.bar-row > b { text-align: right; font-size: 9px; }
.bar-track { height: 7px; overflow: hidden; background: var(--forest-50); border-radius: 99px; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--forest-500), var(--forest-300)); border-radius: 99px; }
.donut-summary { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 8px 0; }
.donut { --active: 0; width: 118px; height: 118px; display: grid; place-items: center; background: conic-gradient(var(--forest-500) calc(var(--active) * 1%), var(--cream-200) 0); border-radius: 50%; }
.donut::before { content: ""; grid-area: 1/1; width: 82px; height: 82px; background: white; border-radius: 50%; }
.donut span { z-index: 1; grid-area: 1/1; font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 800; }
.legend { display: grid; gap: 10px; }
.legend span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend i.active { background: var(--forest-500); }
.legend i.passive { background: var(--cream-300); }
.legend i.offtrade { background: var(--gold-400); }
.legend strong { color: var(--forest-800); }
.recent-orders { display: grid; }
.dashboard-order { display: grid; grid-template-columns: 35px minmax(0,1fr) auto 90px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eef0eb; }
.dashboard-order:first-child { border-top: 0; }
.order-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-50); border-radius: 10px; font-size: 11px; font-weight: 800; }
.dashboard-order > div { min-width: 0; display: grid; }
.dashboard-order strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dashboard-order div span { color: var(--muted); font-size: 8px; }
.dashboard-order > b { text-align: right; font-size: 10px; }
.quick-actions { display: grid; align-content: start; gap: 7px; }
.quick-actions > button { display: grid; grid-template-columns: 35px 1fr 18px; align-items: center; gap: 10px; padding: 10px; color: var(--forest-700); background: var(--cream-50); border: 0; border-radius: 10px; text-align: left; }
.quick-actions > button > .ui-icon:first-child { width: 18px; }
.quick-actions > button > .ui-icon:last-child { width: 13px; }
.quick-actions button span { display: grid; }
.quick-actions button strong { font-size: 9px; }
.quick-actions button small { color: var(--muted); font-size: 8px; }

/* Admin content */
.admin-card { padding: 20px; background: white; border: 1px solid #e5e9e0; border-radius: 16px; box-shadow: 0 7px 20px rgba(22,53,30,.04); }
.admin-filters { display: flex; align-items: end; gap: 10px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid #edf0ea; }
.admin-filters .input { min-width: 220px; }
.admin-filters .select { width: auto; min-width: 130px; }
.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0 14px; }
.admin-pager > div { display: flex; gap: 7px; }
.admin-table { width: 100%; overflow-x: auto; }
.admin-table table { width: 100%; min-width: 880px; border-collapse: collapse; }
.admin-table th { padding: 10px; color: var(--forest-500); background: var(--forest-50); border-bottom: 1px solid var(--forest-100); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 10px; border-bottom: 1px solid #eef0eb; font-size: 10px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .input, .admin-table .select { min-width: 100px; min-height: 35px; padding: 7px 8px; font-size: 9px; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-row-actions .btn { min-height: 33px; padding: 7px 10px; font-size: 8px; }
.whatsapp-cell { min-width: 150px; }
.mini-check, .permission-check { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.report-row, .notification-row { padding: 14px; margin-bottom: 9px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 11px; }
.report-heading { margin: 24px 0 12px; font-size: 14px; }
.print-header { display: none; }
.notification-list { display: grid; gap: 9px; }
.notification-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; }
.notification-row.unread { border-left: 3px solid var(--forest-500); }
.notification-row p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.integration-checks { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }
.integration-checks div { display: grid; gap: 5px; padding: 14px; background: var(--cream-50); border-radius: 10px; }
.integration-checks span { color: var(--muted); font-size: 9px; }
.management-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.compact-grid { margin-top: 14px; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 12px 0; }
.permission-check { padding: 9px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 9px; }
.permission-check small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }
.sales-rep-management { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.sales-rep-management .settings-card { margin: 0; }
.sales-rep-management .admin-row-actions { align-items: center; }
.sales-rep-management .select { min-width: 210px; flex: 1; }
.demo-customer-check { margin: 14px 0; border-color: #dcc4f4; background: #faf6ff; }
.user-management-list { display: grid; gap: 10px; }
.user-management-card { margin: 0; box-shadow: none; }
.security-page { max-width: 900px; }

@media print {
  body * { visibility: hidden; }
  .admin-content, .admin-content * { visibility: visible; }
  .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
  .admin-workspace { margin: 0; }
  .admin-content { position: absolute; inset: 0; padding: 0; }
  .admin-card { box-shadow: none; border: 0; }
  .print-header { display: flex; justify-content: space-between; }
}

@media (max-width: 1100px) {
  .quick-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .customer-identity { display: none; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-card.span-2 { grid-column: span 2; }
  .dashboard-card:not(.span-2) { grid-column: span 1; }
}

@media (max-width: 820px) {
  .auth-shell { display: block; padding: 24px 0; background: linear-gradient(160deg, var(--forest-900) 0 34%, var(--cream-50) 34%); }
  .auth-brand-panel { display: none; }
  .auth-card { width: min(440px, calc(100% - 28px)); padding: 28px 22px; }
  .service-strip { height: 26px; }
  .customer-header { height: 68px; }
  .customer-header-inner { width: calc(100% - 26px); }
  .brand-button { width: 64px; height: 50px; }
  .customer-desktop-nav { display: none; }
  .customer-account { margin-left: auto; }
  .customer-mobile-nav { position: sticky; z-index: 39; top: 68px; display: flex; align-items: center; justify-content: space-around; gap: 2px; height: 56px; padding: 5px 8px; overflow-x: auto; background: rgba(251,249,243,.96); border-bottom: 1px solid var(--cream-200); backdrop-filter: blur(12px); }
  .customer-mobile-nav .customer-nav-item { flex: 1; min-width: 70px; min-height: 43px; flex-direction: column; gap: 2px; padding: 5px 7px; border-radius: 10px; font-size: 8px; }
  .customer-mobile-nav .ui-icon { width: 16px; height: 16px; }
  .page-container { width: calc(100% - 28px); }
  .catalog-page, .inner-page { padding-top: 22px; }
  .catalog-hero { min-height: 280px; display: block; padding: 27px 23px; border-radius: 22px; }
  .catalog-hero h1 { font-size: 34px; }
  .catalog-hero p { font-size: 12px; }
  .hero-order-status { min-width: 0; margin-top: 25px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .product-image-wrap { height: 200px; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
  .offer-grid { grid-template-columns: 1fr; }
  .notification-setting { grid-template-columns: 44px 1fr; }
  .notification-setting .btn { grid-column: 1 / -1; }
  .account-summary { flex-wrap: wrap; }
  .account-summary .account-logout { width: 100%; margin-left: 0; }
  .security-card { padding-left: 21px; padding-top: 82px; }
  .security-card > .settings-icon { left: 21px; top: 21px; }
  .security-setup { grid-template-columns: 1fr; }
  .security-setup img { width: min(220px, 100%); }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-workspace { margin-left: 0; }
  .admin-app.menu-open .admin-sidebar { transform: translateX(0); }
  .admin-overlay { position: fixed; z-index: 80; inset: 0; background: rgba(13,39,21,.45); border: 0; }
  .admin-app.menu-open .admin-overlay { display: block; }
  .sidebar-close, .mobile-menu-button { display: grid; place-items: center; }
  .admin-topbar { height: 72px; padding: 0 15px; }
  .admin-title { margin-right: auto; }
  .admin-title h1 { font-size: 15px; }
  .environment-badge { display: none; }
  .admin-content { padding: 22px 14px 45px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card.span-2, .dashboard-card:not(.span-2) { grid-column: span 1; }
  .management-grid { grid-template-columns: 1fr; }
}

/* 2026-08-10 readability, mobile login and security revision */
:root { --muted: #526855; }
body { font-size: 15px; font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.55; }
.input, .select { font-size: 14px; font-weight: 600; border-color: #d7dfd2; }
.field > span { font-size: 13px; font-weight: 800; }
.btn { font-size: 13px; font-weight: 800; }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap .input { padding-right: 72px; }
.password-input-wrap > button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; color: var(--forest-700); background: var(--forest-50); border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; }
.remember-check { display: flex; align-items: center; gap: 8px; margin: -2px 0 15px; color: var(--forest-800); font-size: 13px; font-weight: 750; }
.remember-check input { width: 17px; height: 17px; accent-color: var(--forest-600); }
.login-secondary-actions { display: grid; gap: 10px; margin-top: 12px; }
.support-call { display: flex; align-items: center; gap: 11px; padding: 12px 14px; color: var(--forest-800); background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 14px; text-decoration: none; }
.support-call .ui-icon { width: 20px; color: var(--forest-600); }
.support-call span { display: grid; gap: 2px; }
.support-call strong { font-size: 12px; }
.support-call small { color: var(--muted); font-size: 11px; font-weight: 600; }
.login-logo { width: 90px; height: 72px; }
.auth-logo-row { font-size: 13px; }

.section-head p, .page-heading p, .settings-card p, .product-card-body > p { color: var(--muted); font-size: 13px; font-weight: 550; }
.customer-nav-item { font-size: 13px; font-weight: 800; }
.quick-product-copy strong { font-size: 13px; }
.quick-product-copy span, .recent-order-cards span, .recent-order-cards small { font-size: 11px; }
.product-meta span, .result-count, .text-button { font-size: 12px; }
.product-card-body h3 { font-size: 18px; }

.admin-nav-item { min-height: 46px; font-size: 13px; }
.admin-brand img { width: 58px; height: 54px; }
.admin-brand strong { font-size: 14px; }
.admin-brand span { color: rgba(255,255,255,.72); font-size: 11px; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account span:not(.avatar), .admin-logout { font-size: 11px; }
.admin-title h1 { font-size: 22px; }
.admin-title p, .dashboard-heading p, .card-heading p { font-size: 12px; font-weight: 600; }
.dashboard-date { font-size: 12px; }
.metric-card span { font-size: 12px; }
.metric-card small { color: var(--muted); font-size: 11px; font-weight: 600; }
.card-heading h3, .report-heading { font-size: 16px; }
.bar-row strong, .bar-row > b, .dashboard-order strong, .dashboard-order > b { font-size: 12px; }
.bar-row span, .dashboard-order div span, .quick-actions button small { font-size: 10px; }
.quick-actions button strong { font-size: 12px; }
.admin-table th { font-size: 10px; }
.admin-table td { font-size: 12px; line-height: 1.45; }
.admin-table .input, .admin-table .select { min-height: 39px; font-size: 11px; }
.admin-row-actions .btn { min-height: 36px; font-size: 10px; }
.mini-check, .permission-check { font-size: 11px; font-weight: 700; }
.notification-row p, .integration-checks span { font-size: 12px; }

.connection-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; }
.password-change-card { padding-left: 83px; }
.password-change-card > .settings-icon { position: absolute; left: 21px; top: 21px; }
.security-password-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 10px; margin-top: 18px; }
.security-password-form .field { margin: 0; }
.own-session-list { display: grid; gap: 9px; }
.own-session-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 12px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 12px; }
.session-device { width: 38px; height: 38px; display: grid; place-items: center; color: var(--forest-600); background: white; border-radius: 10px; }
.own-session-row > div { display: grid; gap: 3px; }
.own-session-row small { color: var(--muted); font-size: 11px; font-weight: 600; }
.admin-security-page { max-width: 1050px; display: grid; gap: 14px; }
.security-hero { display: flex; align-items: center; gap: 16px; padding: 24px; color: white; background: linear-gradient(120deg,var(--forest-800),var(--forest-600)); border-radius: 20px; }
.security-hero > span { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 14px; }
.security-hero h2 { margin-bottom: 5px; }
.security-hero p { margin: 0; color: rgba(255,255,255,.82); }
.integration-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.integration-security-grid > div { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 13px; }
.integration-security-grid > div > div { display: grid; gap: 3px; }
.integration-security-grid small { color: var(--muted); font-size: 11px; font-weight: 600; }

.slip-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.slip-tabs button { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 15px; color: var(--forest-700); background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 14px; text-align: left; }
.slip-tabs button.active { color: white; background: var(--forest-700); border-color: var(--forest-700); }
.slip-tabs button > .ui-icon { width: 24px; height: 24px; justify-self: center; }
.slip-tabs button span { display: grid; gap: 3px; }
.slip-tabs button strong { font-size: 14px; }
.slip-tabs button small { color: inherit; opacity: .75; font-size: 11px; font-weight: 600; }
.demo-slip-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--cream-200); }
.demo-slip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-slip-grid article { position: relative; overflow: hidden; padding: 20px; background: #fffdf7; border: 1px solid #e7d7b4; border-radius: 16px; }
.demo-slip-grid h4 { margin: 0 0 7px; font-size: 17px; }
.demo-slip-grid p { color: var(--muted); font-size: 12px; }
.demo-ribbon { position: absolute; right: -29px; top: 13px; width: 110px; padding: 4px; color: white; background: var(--gold-500); transform: rotate(35deg); text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.mini-slip { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px; margin: 12px 0; background: white; border: 1px dashed #cfba8d; border-radius: 10px; font-size: 11px; }

/* 2026-08-10 account, campaign and session refinement */
.login-logo, .admin-brand img { display: block; aspect-ratio: 1 / 1; height: auto; object-fit: contain; image-rendering: auto; }
.login-logo { flex: 0 0 118px; width: 118px; }
.auth-logo-row { min-height: 122px; gap: 18px; }
.admin-brand img { flex: 0 0 76px; width: 76px; }
.admin-brand { min-height: 94px; }
.profile-details-card { grid-template-columns: 48px minmax(0,1fr); }
.profile-details-form { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; margin-top: 4px; }
.profile-details-form .field { margin: 0; }
.feedback-layout.single { grid-template-columns: minmax(0,760px); }
.feedback-success { display: flex; align-items: center; gap: 14px; max-width: 760px; padding: 18px 20px; margin: 0 0 18px; color: var(--forest-800); background: #eff8ef; border: 1px solid #b9d9bd; border-radius: 16px; }
.feedback-success > .ui-icon { flex: 0 0 30px; width: 30px; color: var(--forest-600); }
.feedback-success strong { display: block; margin-bottom: 3px; font-size: 16px; }
.feedback-success p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.campaign-create-form { margin-bottom: 18px; }
.campaign-channel-field { display: flex; align-items: center; gap: 20px; padding: 14px 16px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 12px; }
.campaign-channel-field legend { padding: 0 6px; color: var(--forest-800); font-size: 13px; font-weight: 800; }
.campaign-admin-list { display: grid; gap: 10px; }
.session-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.simple-session-list { display: grid; gap: 8px; }
.simple-session-list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 13px; background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: 12px; }
.simple-session-list article > div { display: grid; gap: 2px; }
.simple-session-list small, .simple-session-list time { color: var(--muted); font-size: 11px; font-weight: 650; }
.simple-session-list time { white-space: nowrap; }
.session-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--forest-700); border-radius: 12px; font-weight: 850; }
.session-avatar.customer { color: var(--forest-800); background: #e5d5af; }

@media (max-width: 1000px) {
  .security-password-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .login-shell { width: 100%; min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; overflow-x: hidden; padding: 10px 0; background: linear-gradient(150deg, var(--forest-900), var(--forest-700) 42%, var(--cream-50) 42%); }
  .login-shell .auth-card { width: calc(100vw - 20px); min-width: 0; max-width: 430px; max-height: calc(100dvh - 20px); overflow: auto; padding: 20px; border-radius: 20px; }
  .login-shell .auth-logo-row { padding-bottom: 10px; margin-bottom: 14px; }
  .login-shell .login-logo { flex-basis: 88px; width: 88px; height: auto; }
  .login-shell .auth-logo-row { min-height: 90px; }
  .login-shell .eyebrow { margin-bottom: 5px; font-size: 9px; }
  .login-shell .auth-card h2 { margin-bottom: 5px; font-size: 24px; }
  .login-shell .auth-card > p { margin-bottom: 12px; font-size: 12px; }
  .login-shell .field { margin-bottom: 10px; }
  .login-shell .input { min-height: 42px; }
  .login-shell .support-call { padding: 10px 12px; }
  .customer-header { height: 74px; }
  .customer-header-inner { width: 100%; gap: 6px; padding: 0 7px; }
  .brand-button { flex: 0 0 54px; width: 54px; height: 50px; }
  .customer-mobile-nav { position: fixed; z-index: 70; top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; gap: 2px; padding: 5px; overflow: visible; background: rgba(255,255,255,.97); border: 1px solid var(--cream-200); border-radius: 18px; box-shadow: 0 14px 38px rgba(13,39,21,.24); backdrop-filter: blur(14px); }
  .customer-mobile-nav::-webkit-scrollbar { display: none; }
  .customer-mobile-nav .customer-nav-item { position: relative; min-width: 0; min-height: 54px; flex-direction: column; gap: 3px; padding: 5px 2px; border-radius: 13px; font-size: 9px; line-height: 1.05; }
  .customer-mobile-nav .customer-nav-item b { position: absolute; top: 2px; right: 15%; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; color: white; background: #b82f2f; border-radius: 99px; font-size: 8px; }
  .customer-mobile-nav .ui-icon { width: 18px; height: 18px; }
  .customer-account { flex: 0 0 auto; margin-left: 0; }
  .customer-header-inner { justify-content: space-between; }
  .header-cart { width: 42px; height: 42px; }
  .catalog-page, .inner-page { padding-top: 18px; }
  .password-change-card { padding: 72px 18px 18px; }
  .password-change-card > .settings-icon { left: 18px; top: 18px; }
  .security-password-form, .integration-security-grid, .demo-slip-grid, .session-overview-grid { grid-template-columns: 1fr; }
  .own-session-row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .own-session-row .btn { grid-column: 2 / -1; }
  .connection-card { grid-template-columns: 46px minmax(0,1fr); }
  .connection-card > .status { grid-column: 2; justify-self: start; }
  .slip-tabs { grid-template-columns: 1fr; }
  .profile-details-card { grid-template-columns: 42px minmax(0,1fr); }
  .profile-details-form { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .campaign-channel-field { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 620px) {
  .customer-app { padding-bottom: 164px; }
  .logout-button { display: none; }
  .page-heading { align-items: flex-start; margin-bottom: 25px; }
  .page-heading h1 { font-size: 24px; }
  .page-icon { width: 46px; height: 46px; }
  .quick-product-grid, .product-grid { grid-template-columns: 1fr; }
  .quick-product-grid { gap: 8px; }
  .priority-section { padding-top: 30px; }
  .favorites-priority { padding-top: 34px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 20px; }
  .section-head .text-button span { display: none; }
  .catalog-toolbar { margin-top: 30px; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .chip { flex: 0 0 auto; }
  .products-title { margin-top: 30px; }
  .product-image-wrap { height: 235px; }
  .product-card-body h3 { min-height: auto; }
  .product-card-body > p { height: auto; max-height: 40px; }
  .cart-bar { bottom: calc(84px + env(safe-area-inset-bottom)); grid-template-columns: 38px 1fr auto; border-radius: 18px; }
  .cart-bar-icon { width: 38px; height: 38px; }
  .cart-bar .btn { min-height: 38px; padding: 8px 13px; font-size: 10px; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row img { width: 70px; height: 70px; }
  .cart-row-total { grid-column: 2; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .row-top { align-items: flex-start; }
  .order-row .row-top:last-child { align-items: center; }
  .offtrade-banner { align-items: stretch; flex-direction: column; }
  .offtrade-hero { padding: 28px 23px; }
  .offtrade-hero h1 { font-size: 27px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 110px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-date { display: none; }
  .bar-row { grid-template-columns: 90px 1fr 70px; gap: 8px; }
  .donut-summary { align-items: flex-start; flex-direction: column; }
  .dashboard-order { grid-template-columns: 34px 1fr auto; }
  .dashboard-order .status { display: none; }
  .dashboard-order > b { grid-column: 3; }
  .admin-filters { align-items: stretch; flex-direction: column; }
  .admin-filters .input, .admin-filters .select { width: 100%; min-width: 0; }
  .admin-pager { align-items: flex-start; flex-direction: column; }
  .notification-row { align-items: stretch; flex-direction: column; }
  .integration-checks, .permission-grid { grid-template-columns: 1fr; }
  .inline-security-form { flex-direction: column; }
}

/* 2026-08 operational revision */
.product-card-footer.quantity-only { justify-content: flex-end; }
.quantity-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recent-order-priority { padding-top: 34px; }
.recent-order-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.recent-order-cards button { position: relative; display: grid; gap: 4px; padding: 15px 42px 15px 15px; color: var(--forest-800); background: white; border: 1px solid var(--cream-200); border-radius: 13px; text-align: left; }
.recent-order-cards button > .ui-icon { position: absolute; right: 14px; top: 50%; width: 17px; transform: translateY(-50%); }
.recent-order-cards span, .recent-order-cards small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 18px; align-items: start; }
.feedback-form { display: grid; gap: 12px; }
.feedback-history { display: grid; gap: 10px; }
.feedback-history h2 { font-size: 18px; }
.install-setting { grid-template-columns: 44px 1fr auto; }
.campaign-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(9,30,16,.62); backdrop-filter: blur(5px); }
.campaign-modal article { position: relative; width: min(520px,100%); max-height: calc(100vh - 36px); overflow: auto; padding: 28px; background: white; border-radius: 20px; box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.campaign-modal article > img { width: calc(100% + 56px); max-height: 260px; object-fit: cover; margin: -28px -28px 22px; }
.campaign-modal h2 { margin: 8px 0; font-size: 24px; }
.campaign-modal p { color: var(--muted); line-height: 1.65; }
.campaign-close { position: absolute; z-index: 1; right: 12px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest-800); background: rgba(255,255,255,.92); border: 0; border-radius: 50%; }
.reminder-settings-card { margin-bottom: 14px; }
.reminder-setting-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 16px 0; }
.reminder-cell { min-width: 150px; }
.reminder-cell .mini-check { margin-bottom: 5px; }
.feedback-admin-list, .campaign-admin-list { display: grid; gap: 10px; margin-top: 15px; }
.product-create-form { margin-bottom: 16px; }

/* Product media and optional price management. Uploaded files are transparent
   PNGs; contain + the admin-controlled scale keeps packages proportional. */
.product-image-wrap > img,
.quick-product-card > img,
.cart-row > img {
  object-fit: contain;
  transform: scale(var(--product-image-scale, 1));
  transform-origin: center;
}
.product-card:hover .product-image-wrap > img { transform: scale(var(--product-image-scale, 1)); }
.product-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; color: var(--forest-700); }
.product-price strong { font-size: 20px; }
.product-price span { color: var(--muted); font-size: 11px; }

/* 2026-08-12 campaign storefront and consent-safe channels */
.campaign-hero { position: relative; isolation: isolate; min-height: 330px; overflow: hidden; align-items: center; }
.campaign-hero-media { position: absolute; z-index: 0; inset: 0 0 0 44%; width: 56%; height: 100%; object-fit: cover; }
.campaign-hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(20,65,34,1) 0 43%, rgba(20,65,34,.82) 58%, rgba(20,65,34,.12) 100%); }
.campaign-hero.text-only::after { background: radial-gradient(circle at 88% 10%, rgba(232,195,110,.24), transparent 34%), linear-gradient(120deg, var(--forest-800), #284e24); }
.campaign-hero-copy { position: relative; z-index: 2; width: min(650px,65%); }
.campaign-hero h1 { max-width: 650px; margin: 8px 0 14px; font-size: clamp(31px,4.5vw,54px); }
.campaign-hero p { color: rgba(255,255,255,.84); font-size: 14px; font-weight: 600; }
.campaign-hero-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--forest-900); background: #f4dfad; box-shadow: 0 9px 28px rgba(0,0,0,.17); }
.campaign-hero-button:hover { background: white; }
.campaign-personalized { position: absolute; z-index: 3; right: 18px; top: 18px; padding: 7px 10px; color: var(--forest-900); background: rgba(255,255,255,.9); border-radius: 99px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.password-help-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; }
.password-help-card .btn { text-decoration: none; }

.campaign-editor-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 22px; align-items: start; }
.campaign-editor-fields { min-width: 0; }
.campaign-hero-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; background: #f4f7f0; border: 1px solid #cfe0cb; border-radius: 14px; }
.campaign-hero-options legend { padding: 0 7px; color: var(--forest-800); font-size: 13px; font-weight: 900; }
.campaign-hero-options .hero-enable { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid #d8e4d3; }
.campaign-template-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.campaign-template-card { position: relative; display: grid; gap: 6px; padding: 6px; cursor: pointer; background: white; border: 2px solid transparent; border-radius: 11px; }
.campaign-template-card:has(input:checked) { border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(39,105,57,.1); }
.campaign-template-card input { position: absolute; opacity: 0; }
.campaign-template-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 7px; }
.campaign-template-card span { color: var(--forest-800); font-size: 10px; font-weight: 850; text-align: center; }
.campaign-live-preview { position: sticky; top: 92px; padding: 15px; background: #edf2e9; border: 1px solid #d3dfce; border-radius: 16px; }
.campaign-live-preview > span { display: block; margin-bottom: 10px; color: var(--forest-700); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.campaign-preview-card { position: relative; isolation: isolate; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; padding: 24px; color: white; background: var(--forest-800); border-radius: 14px; }
.campaign-preview-card > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-preview-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg,rgba(12,48,24,.98),rgba(12,48,24,.08)); }
.campaign-preview-card.text-only > img { display: none; }
.campaign-preview-card.text-only::after { background: radial-gradient(circle at 80% 5%,rgba(229,190,102,.25),transparent 35%),linear-gradient(145deg,var(--forest-800),#2e5d30); }
.campaign-preview-card section { position: relative; z-index: 2; display: grid; gap: 7px; }
.campaign-preview-card small { color: #f4d790; font-weight: 900; letter-spacing: .12em; }
.campaign-preview-card h3 { margin: 0; font-size: 25px; line-height: 1.08; }
.campaign-preview-card p { margin: 0; color: rgba(255,255,255,.8); font-size: 11px; }
.campaign-preview-card b { margin-top: 8px; font-size: 10px; }
.campaign-result-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.campaign-result-tags span { padding: 5px 8px; color: var(--forest-800); background: var(--forest-50); border-radius: 99px; font-size: 9px; font-weight: 800; }

@media (max-width: 900px) {
  .campaign-editor-layout { grid-template-columns: 1fr; }
  .campaign-live-preview { position: static; }
  .campaign-preview-card { min-height: 280px; }
}

@media (max-width: 820px) {
  .campaign-hero { min-height: 390px; display: flex; padding: 28px 23px; }
  .campaign-hero-media { inset: 0; width: 100%; }
  .campaign-hero::after { background: linear-gradient(0deg,rgba(16,58,29,.98) 0 48%,rgba(16,58,29,.25) 100%); }
  .campaign-hero-copy { width: 100%; align-self: flex-end; }
  .campaign-hero h1 { font-size: 32px; }
  .campaign-hero p { font-size: 12px; }
  .password-help-card { grid-template-columns: 44px 1fr; }
  .password-help-card .btn { grid-column: 1 / -1; }
  .campaign-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-hero-options { grid-template-columns: 1fr; }
  .campaign-hero-options .hero-enable { grid-column: 1; }

  /* Son tanım olarak mobil navigasyonu uygulama tipi alt menüde sabitler. */
  .customer-mobile-nav { position: fixed; z-index: 70; top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 5px; overflow: visible; background: rgba(255,255,255,.97); border: 1px solid var(--cream-200); border-radius: 18px; box-shadow: 0 14px 38px rgba(13,39,21,.24); }
  .customer-mobile-nav .customer-nav-item { min-width: 0; min-height: 54px; flex-direction: column; gap: 3px; padding: 5px 2px; font-size: 9px; }
}
.compact-price { margin-top: 3px; font-size: 11px; }
.cart-unit-price { display: block; margin: 6px 0; color: var(--forest-600); font-size: 11px; font-weight: 800; }
.cart-row-total > span { color: var(--forest-600); font-size: 12px; font-weight: 800; }
.quantity-summary > div:last-child:not(:first-child) { border-top: 1px solid var(--cream-200); padding-top: 10px; }

.product-upload-note { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--forest-100); border-radius: 12px; background: var(--forest-50); color: var(--forest-700); font-size: 11px; line-height: 1.6; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.admin-product-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 15px; border: 1px solid var(--cream-200); border-radius: 16px; background: #fff; box-shadow: var(--card-shadow); }
.admin-product-media { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 9px; text-align: center; }
.admin-product-media > strong { color: var(--forest-700); font-size: 11px; }
.admin-product-media > small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; line-height: 1.5; }
.admin-product-preview { height: 145px; overflow: hidden; border: 1px dashed var(--forest-200); border-radius: 14px; background: linear-gradient(45deg, #f5f5f1 25%, transparent 25%), linear-gradient(-45deg, #f5f5f1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f5f5f1 75%), linear-gradient(-45deg, transparent 75%, #f5f5f1 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.admin-product-preview img { width: 100%; height: 100%; object-fit: contain; transform: scale(var(--product-image-scale, 1)); transform-origin: center; }
.product-upload-button { position: relative; justify-content: center; cursor: pointer; }
.admin-product-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; }
.admin-product-fields .field-wide { grid-column: 1 / -1; }
.product-admin-toggles { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 8px 0; }
.scale-field input[type="range"] { width: 100%; accent-color: var(--forest-600); }
.check-field { justify-content: end; }

@media (max-width: 720px) {
  .admin-product-grid { grid-template-columns: 1fr; }
  .admin-product-card { grid-template-columns: 1fr; }
  .admin-product-media { max-width: 260px; margin: 0 auto; }
  .admin-product-fields { grid-template-columns: 1fr; }
  .admin-product-fields .field-wide { grid-column: auto; }
}

@media (max-width: 820px) {
  .recent-order-cards { grid-template-columns: 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
  .install-setting { grid-template-columns: 44px 1fr; }
  .install-setting .btn { grid-column: 1/-1; }
}
/* ------------------------------------------------ müşteri riski / muhasebe */
.risk-page,.accounting-page{display:grid;gap:20px}.risk-page .dashboard-heading,.accounting-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.risk-metrics,.accounting-metrics{margin:0}.risk-filters{grid-template-columns:190px 220px minmax(220px,1fr) auto}.risk-list{display:grid;gap:12px;margin-top:18px}.risk-row{border:1px solid #dfe7e1;border-radius:16px;padding:18px;background:#fff;display:grid;gap:14px}.risk-customer{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center}.risk-customer h3{margin:0;font-size:18px;color:#112c20}.risk-customer p{grid-column:2;margin:2px 0 0;color:#53685d}.risk-customer .status{grid-row:1/3}.risk-facts{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.risk-facts span{background:#f5f8f6;border-radius:10px;padding:10px;color:#53685d;font-size:13px}.risk-facts b{display:block;color:#173e2b;font-size:14px;margin-top:3px}.risk-action-grid{display:grid;grid-template-columns:120px minmax(170px,1fr) 150px 150px minmax(180px,1.4fr) auto;gap:10px;align-items:end}.risk-action-grid label,.accounting-toolbar-actions label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#41584a}.risk-row .status.risk-stopped{background:#ffe8e7;color:#9a2525}.risk-row .status.risk-at_risk{background:#fff0d9;color:#8b5500}.risk-row .status.risk-watch{background:#e9f2ff;color:#245d98}.risk-row .status.risk-normal{background:#e4f6e9;color:#1d6936}.risk-row .status.risk-insufficient_data{background:#eef0ef;color:#53605a}
.accounting-toolbar{background:linear-gradient(135deg,#133d2a,#1d5a3c);color:white;padding:24px;border-radius:20px}.accounting-toolbar h2{margin:4px 0;font-size:26px}.accounting-toolbar p{margin:0;color:#d8e9df}.accounting-toolbar .eyebrow{color:#f3d38a}.accounting-toolbar-actions{display:flex;align-items:end;gap:12px}.accounting-toolbar-actions label{color:white}.accounting-toolbar-actions .input{min-width:160px}.accounting-toolbar .status{background:white;color:#173e2b;white-space:nowrap}.accounting-controls,.accounting-sync{display:flex;justify-content:space-between;align-items:center;gap:16px}.accounting-controls p,.accounting-sync p{margin:5px 0}.accounting-controls>div:last-child,.accounting-sync>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.accounting-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.accounting-checks article{padding:14px;border-radius:12px;border-left:5px solid #28814f;background:#edf8f1}.accounting-checks article.check-warning,.accounting-checks article.check-review{border-color:#d48a1b;background:#fff8e9}.accounting-checks article.check-error{border-color:#b93333;background:#fff0f0}.accounting-checks strong,.accounting-checks span{display:block}.accounting-checks span{margin-top:4px;font-size:13px}.accounting-checks p{margin:5px 0 0;font-size:12px;color:#53605a}.finance-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.finance-section{background:white;border:1px solid #dfe7e1;border-radius:16px;min-width:0;overflow:hidden}.finance-section.span-2{grid-column:1/-1}.finance-section-title{padding:15px 18px;background:#153f2c;color:white}.finance-section-title h3{margin:0;font-size:16px}.finance-table-wrap{overflow:auto;max-height:520px}.finance-table{width:100%;border-collapse:collapse;font-size:13px}.finance-table th,.finance-table td{padding:8px;border-bottom:1px solid #e5ebe7;text-align:left;white-space:nowrap}.finance-table thead th{position:sticky;top:0;background:#f0f4f1;color:#264637;z-index:1}.finance-table tbody th{background:#f7f9f8}.accounting-input{min-width:95px;height:36px;padding:7px 9px;font-size:13px}.finance-table td:first-child .accounting-input{min-width:170px}.finance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.finance-form-grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#41584a}.accounting-sticky-save{position:sticky;bottom:14px;z-index:4;background:#132f23;color:white;border-radius:14px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 10px 28px #102a1c40}.accounting-page.read-only .finance-table td span{display:block;min-width:70px}.status.accounting-draft{background:#eef0ef;color:#4c5a52}.status.accounting-reviewed{background:#e9f2ff;color:#245d98}.status.accounting-approved{background:#e4f6e9;color:#1d6936}.status.accounting-locked{background:#173e2b;color:white}
@media(max-width:1100px){.risk-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.risk-note{grid-column:span 2}.finance-layout{grid-template-columns:1fr}.finance-section.span-2{grid-column:auto}}
@media(max-width:720px){.risk-page .dashboard-heading,.accounting-toolbar,.accounting-controls,.accounting-sync{flex-direction:column}.risk-filters{grid-template-columns:1fr}.risk-facts{grid-template-columns:repeat(2,1fr)}.risk-action-grid{grid-template-columns:1fr 1fr}.risk-note{grid-column:1/-1}.accounting-toolbar-actions{width:100%;flex-wrap:wrap}.accounting-toolbar-actions label{flex:1}.finance-form-grid{grid-template-columns:1fr}.accounting-sticky-save{position:static;flex-direction:column;gap:10px;align-items:stretch}.accounting-sticky-save .btn{width:100%}}
.order-row-toggle {
  width: 100%; border: 0; background: transparent; color: inherit; text-align: left;
  padding: 0; cursor: pointer; display: grid; gap: .55rem;
}
.order-row-toggle > .muted { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.order-row-toggle .ui-icon { width: 1rem; transition: transform .18s ease; }
.order-row.expanded .order-row-toggle .ui-icon { transform: rotate(90deg); }
.order-receipt-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border, #e4e8e1); }
