:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #142534;
  --muted: #6b7a89;
  --line: #dce5ee;
  --line-strong: #c9d6e2;
  --brand: #242424;
  --brand-2: #d7190f;
  --accent: #d7190f;
  --gold: #bd8745;
  --danger: #b42318;
  --success: #087443;
  --warning: #b86b15;
  --shadow-sm: 0 8px 20px rgba(16, 37, 56, .06);
  --shadow-md: 0 18px 42px rgba(16, 37, 56, .10);
  --shadow-lg: 0 28px 70px rgba(16, 37, 56, .16);
  --radius: 8px;
  --sidebar: 326px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 159, 154, .10), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(18, 58, 90, .08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 48%, #eef3f8 100%);
  font-family: "Cairo", "Tajawal", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

/* Honda Engines inspired visual system: clean white surfaces, charcoal type and red action accents. */
.topbar { border-bottom: 3px solid #d7190f; box-shadow: none; background: rgba(255,255,255,.98); }
.topbar h1 { color: #1f1f1f; letter-spacing: -.02em; }
.sidebar { background: #fff; box-shadow: 10px 0 28px rgba(0,0,0,.06); }
.sidebar-nav a { border-radius: 4px; }
.sidebar-nav a.active { background: #242424; border-inline-start: 5px solid #d7190f; box-shadow: none; }
.nav-icon { border-radius: 3px; }
.btn { border-radius: 4px; }
.btn-primary { background: #d7190f; border-color: #d7190f; box-shadow: none; }
.btn-primary:hover { background: #b8140c; }
.card, .premium-card { border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.dashboard-hero, .report-hero { background: linear-gradient(110deg,#111 0%,#2a2a2a 72%,#d7190f 150%); border-radius: 0; box-shadow: none; border-bottom: 6px solid #d7190f; }
.section-kicker, .eyebrow { color: #d7190f; }
.product-family-nav { box-shadow: none; border-bottom: 1px solid #cfcfcf; }
.catalog-breadcrumb-bar { background: #d7190f; }
.catalog-breadcrumb-sewing { background: #1f6a8a; }
.catalog-breadcrumb-sports { background: #15745a; }
.stat-card, .quick-action-card, .category-card { border-radius: 6px; box-shadow: none; }
.quick-action-icon { background: #242424; border-radius: 3px; }
.data-table thead th { background: #242424; color: #fff; }
body.lang-en { font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  color: #263f52;
  background: rgba(255, 255, 255, .92);
  border-inline-start: 1px solid rgba(201, 214, 226, .75);
  box-shadow: -16px 0 40px rgba(16, 37, 56, .07);
  backdrop-filter: blur(18px);
}
body.lang-en .sidebar { border-inline-start: 0; border-inline-end: 1px solid rgba(201, 214, 226, .75); box-shadow: 16px 0 40px rgba(16,37,56,.07); }

.brand-stack { padding: 0 2px 18px; border-bottom: 1px solid var(--line); }
.company-brand-card,
.login-company-logo {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.company-main-logo { display: block; width: 100%; max-width: 292px; max-height: 98px; object-fit: contain; }
.company-logo-link { display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.company-brand-card .company-logo-link { width: 100%; }
.company-logo-link:hover img { opacity: .82; }
.brand-suite,
.login-brand-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  direction: ltr;
}
.brand-logo-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-logo-card img { display: block; max-width: 100%; object-fit: contain; }
.brand-logo-card .honda-logo { max-height: 25px; }
.brand-logo-card .brava-logo { max-height: 30px; }
.brand-logo-card .sayad-logo { max-height: 30px; }
.company-mini-card { min-width: 168px; }
.company-mini-card .sayad-logo { max-width: 156px; max-height: 40px; }
.brand-box, .brand-mark, .login-logo { display: none !important; }

.sidebar-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; overflow: auto; padding-inline-end: 2px; }
.sidebar-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: #344f62;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  color: var(--brand);
  background: #edf4f8;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-weight: 900;
}
.sidebar-nav a:hover { background: #f5f8fb; border-color: var(--line); transform: translateX(-2px); }
body.lang-en .sidebar-nav a:hover { transform: translateX(2px); }
.sidebar-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 28px rgba(18, 58, 90, .18);
}
.sidebar-nav a.active .nav-icon { color: #fff; background: rgba(255, 255, 255, .16); }

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); font-weight: 900; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini small { display: block; color: var(--muted); margin-top: 2px; }
.logout-link { display: block; margin-top: 12px; padding: 10px; text-align: center; color: var(--danger); background: #fff; border: 1px solid #f0d1cf; border-radius: 12px; font-weight: 800; }
.logout-link:hover { background: #fff6f5; }

.main-area { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 92px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(220, 229, 238, .92);
  box-shadow: 0 10px 28px rgba(16, 37, 56, .05);
  backdrop-filter: blur(18px);
}
.topbar h1 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 900; color: #102d43; }
.topbar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-brand-suite { display: flex; align-items: center; gap: 8px; direction: ltr; }
.topbar-brand-suite .brand-logo-card { min-height: 42px; padding: 6px 10px; border-radius: 13px; }
.topbar-brand-suite .honda-logo { max-height: 19px; }
.topbar-brand-suite .brava-logo { max-height: 23px; }
.topbar-brand-suite .sayad-logo { max-height: 40px; }
.menu-button { display: none; border: 0; background: transparent; color: var(--brand); font-size: 24px; }

.language-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: #edf3f7; border: 1px solid var(--line); border-radius: 999px; }
.language-switch a { min-width: 36px; height: 30px; display: grid; place-items: center; color: #657889; border-radius: 999px; font-size: 12px; font-weight: 900; }
.language-switch a.active { color: var(--brand); background: #fff; box-shadow: 0 6px 14px rgba(16, 37, 56, .09); }
.role-badge { padding: 8px 12px; color: var(--brand); background: #eef5fa; border: 1px solid #d4e4ef; border-radius: 999px; font-weight: 900; }

.product-family-nav {
  min-height: 76px;
  position: sticky;
  top: 92px;
  z-index: 35;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #d9e0e6;
  box-shadow: 0 8px 20px rgba(16,37,56,.05);
  backdrop-filter: blur(16px);
}
.product-nav-group { min-width: 0; display: flex; align-items: stretch; gap: 18px; }
.product-nav-brand { display: flex; align-items: center; gap: 11px; direction: ltr; white-space: nowrap; }
.product-nav-brand img { width: auto; max-width: 92px; max-height: 26px; object-fit: contain; }
.product-nav-brand img:nth-child(2) { max-height: 31px; }
.product-nav-brand b { padding-inline-start: 11px; color: #101820; border-inline-start: 1px solid #d9e0e6; font: 900 13px/1.15 Arial,sans-serif; letter-spacing: .04em; }
.product-nav-links { display: flex; align-items: stretch; }
.product-nav-links a {
  min-height: 76px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 17px;
  color: #202b33;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.product-nav-links a:after { content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 4px; background: transparent; }
.product-nav-links a:hover { color: #d7190f; background: #fff8f7; }
.power-products-group .product-nav-links a.active { color: #c9170d; }
.power-products-group .product-nav-links a.active:after { background: #d7190f; }
.independent-products-group { margin-inline-start: auto; padding-inline-start: 20px; border-inline-start: 1px solid #d9e0e6; }
.independent-label { align-self: center; color: #82909b; font-size: 10px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.product-nav-links .sewing-link:hover, .product-nav-links .sewing-link.active { color: #1f6a8a; background: #f2f9fc; }
.product-nav-links .sewing-link.active:after { background: #1f6a8a; }
.product-nav-links .sports-link:hover, .product-nav-links .sports-link.active { color: #15745a; background: #f0faf6; }
.product-nav-links .sports-link.active:after { background: #15926e; }
.catalog-breadcrumb-bar { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 28px; color: #fff; background: #d7190f; font-size: 12px; }
.catalog-breadcrumb-bar a:hover { text-decoration: underline; }
.catalog-breadcrumb-sewing { background: #1f6a8a; }
.catalog-breadcrumb-sports { background: #15745a; }

.content-area { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px 28px 42px; flex: 1; }
.app-footer { padding: 18px 28px 24px; color: var(--muted); background: rgba(255,255,255,.72); border-top: 1px solid var(--line); text-align: center; font-size: 12px; }

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; box-shadow: 0 12px 24px rgba(18,58,90,.18); }
.btn-light { color: var(--brand); background: #fff; border-color: #fff; }
.btn-ghost { color: #fff; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); }
.btn-secondary { background: #fff; }
.btn-danger { color: var(--danger); background: #fff7f6; border-color: #f0cfca; }
.btn-success { color: var(--success); background: #ecfdf3; border-color: #bcebd0; }
.btn-warning { color: var(--warning); background: #fff8ed; border-color: #f0d4aa; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; }

.card, .premium-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 229, 238, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card + .card { margin-top: 18px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 20px; line-height: 1.35; color: #102d43; }
.card-header p { margin: 6px 0 0; color: var(--muted); line-height: 1.8; }
.section-kicker, .eyebrow { display: block; margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }

.dashboard-hero, .report-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  padding: 34px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(135deg, #123a5a 0%, #1f6a8a 64%, #0f9f9a 132%);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
.dashboard-hero { grid-template-columns: 1fr; min-height: auto; }
.report-hero { display: flex; justify-content: space-between; grid-template-columns: none; }
.dashboard-hero h2, .report-hero h2 { margin: 6px 0 8px; font-size: 34px; line-height: 1.3; }
.dashboard-hero p, .report-hero p { margin: 0; max-width: 760px; color: #e6f3f6; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dashboard-hero-brands { display: grid; gap: 10px; }
.hero-brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-brand-card { min-height: 82px; display: grid; place-items: center; padding: 12px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-brand-card.compact { min-height: 64px; }
.hero-brand-card img { max-width: 100%; max-height: 58px; object-fit: contain; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  min-height: 144px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card:after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-label { color: var(--muted); font-weight: 900; }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand); background: #edf6f8; border-radius: 14px; font-weight: 900; }
.stat-value { margin-top: 13px; font-size: 30px; line-height: 1.1; font-weight: 900; color: #102d43; }
.stat-money { font-size: 22px !important; }
.stat-note { margin-top: 7px; color: var(--muted); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: 1.18fr .82fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-main-grid { grid-template-columns: 1.25fr .75fr; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.quick-action-card, .category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.quick-action-card:hover, .category-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.quick-action-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 14px; font-weight: 900; }
.quick-action-card strong, .category-card strong { display: block; font-size: 15px; color: #102d43; }
.quick-action-card small, .category-card small { display: block; margin-top: 4px; color: var(--muted); }
.quick-action-card b { color: #8fa0ad; font-size: 22px; }
.category-card { grid-template-columns: 1fr auto; }
.category-copy { display: grid; gap: 8px; justify-items: start; }
body:not(.lang-en) .category-copy { justify-items: end; }
.catalogue-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #eef6fa;
  border: 1px solid #d6e6ef;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 22px rgba(16, 37, 56, .07);
}
.catalogue-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalogue-icon svg path:first-child { fill: rgba(255,255,255,.56); }
.catalogue-icon img { width: 44px; height: 44px; display: block; object-fit: contain; filter: grayscale(1) contrast(1.2); }
.catalogue-icon-parts { color: #b42318; background: #fff3f1; border-color: #f0cfca; }
.catalogue-icon-equipment { color: #8a1538; background: #fff1f5; border-color: #f3ccd8; }
.catalogue-icon-sewing { color: #1f6a8a; background: #eef8fb; border-color: #cfe6ef; }
.catalogue-icon-sports { color: #15745a; background: #eefaf5; border-color: #cdeadd; }
.category-card > span { min-width: 48px; height: 44px; display: grid; place-items: center; color: var(--brand); background: #edf5fa; border-radius: 14px; font-weight: 900; }
.branded-categories .category-card { position: relative; overflow: hidden; }
.branded-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.branded-categories .category-card { grid-template-columns: 1fr; min-height: 170px; }
.branded-categories .category-copy,
body:not(.lang-en) .branded-categories .category-copy { justify-items: center; text-align: center; }
.branded-categories .catalogue-icon { width: 108px; height: 104px; background: #fff; }
.branded-categories .catalogue-icon img { width: 92px; height: 88px; }
.branded-categories .category-card:before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--accent); }
.branded-categories .category-honda:before { background: #b42318; }
.branded-categories .category-brava:before { background: #8a1538; }
.branded-categories .category-sewing:before { background: #1f6a8a; }
.branded-categories .category-sports:before { background: #15926e; }

.catalog-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 42%);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 44px 46px;
  color: #fff;
  background: #111;
  border-radius: 0;
  box-shadow: var(--shadow-md);
}
.catalog-hero { grid-template-columns: 1fr; min-height: 310px; }
.catalog-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 16, 25, .86), rgba(5, 16, 25, .42) 46%, rgba(5, 16, 25, .08)),
    linear-gradient(135deg, #0f2535, #314858);
}
.catalog-hero-parts:before {
  background:
    linear-gradient(90deg, rgba(12, 13, 14, .88), rgba(27, 23, 24, .46) 48%, rgba(90, 16, 18, .18)),
    linear-gradient(135deg, #101010, #5d1117);
}
.catalog-hero-equipment:before {
  background:
    linear-gradient(90deg, rgba(12, 13, 14, .88), rgba(29, 26, 30, .46) 48%, rgba(112, 18, 53, .20)),
    linear-gradient(135deg, #111, #7b1434);
}
.catalog-hero-sewing:before {
  background:
    linear-gradient(90deg, rgba(11, 30, 42, .86), rgba(22, 69, 88, .44) 48%, rgba(18, 96, 125, .16)),
    linear-gradient(135deg, #102d43, #1f6a8a);
}
.catalog-hero-sports:before {
  background:
    linear-gradient(90deg, rgba(8, 32, 26, .88), rgba(17, 83, 64, .46) 48%, rgba(21, 146, 110, .16)),
    linear-gradient(135deg, #102e26, #15745a);
}
.catalog-hero-copy,
.catalog-hero-visual { position: relative; z-index: 1; }
.catalog-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 15px;
}
body:not(.lang-en) .catalog-hero-copy { justify-items: end; text-align: right; }
.catalog-hero .hero-kicker {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}
.catalog-hero h2 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  font-weight: 900;
}
.catalog-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 16px;
  line-height: 1.9;
}
.catalog-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.catalog-hero-visual {
  display: grid;
  place-items: center;
  min-height: 310px;
}
.catalog-hero-logo {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  max-width: 220px;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.24));
}
.catalog-hero-product {
  width: min(440px, 100%);
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.32));
}
.catalog-hero-placeholder {
  width: min(270px, 78%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 28px;
}
.catalog-hero-placeholder svg { width: 138px; height: 138px; stroke-width: 1.8; }
.catalog-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.catalog-tabs a {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.catalog-tabs a:before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--brand); }
.catalog-tabs a.category-tab-parts:before { background: #c62828; }
.catalog-tabs a.category-tab-equipment:before { background: #b14d4d; }
.catalog-tabs a.category-tab-sewing:before { background: #607384; }
.catalog-tabs a.category-tab-sports:before { background: #15926e; }
.catalog-tabs a.active { border-color: var(--brand-2); background: linear-gradient(180deg, #fff, #f1f7fb); }
.catalog-tabs strong { font-size: 15px; }
.catalog-tabs span { min-width: 46px; height: 42px; display: grid; place-items: center; color: var(--brand); background: #edf5fa; border-radius: 14px; font-weight: 900; }

.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.toolbar .grow { flex: 1; min-width: 240px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
label { display: grid; gap: 7px; color: #284457; font-weight: 900; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd9e4;
  border-radius: 12px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(31, 106, 138, .12); }
textarea { min-height: 102px; resize: vertical; }
input[readonly] { color: #657889; background: #f4f7fa; }
.password-control { position: relative; display: block; }
.password-control input { padding-inline-end: 74px; }
body.lang-en .password-control input { padding-inline-end: 12px; padding-inline-start: 74px; }
.password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
  color: var(--brand);
  background: #eef5fa;
  border: 1px solid #d4e4ef;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}
body.lang-en .password-toggle { inset-inline-end: auto; inset-inline-start: 6px; }
.password-toggle:hover { background: #e2eef6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-section-title { grid-column: 1/-1; padding-bottom: 10px; margin-top: 8px; color: var(--brand); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 900; }
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row input { width: auto; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.data-table { width: 100%; min-width: 980px; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid #e8eef4; text-align: right; vertical-align: middle; }
body.lang-en .data-table th, body.lang-en .data-table td { text-align: left; }
.data-table th { position: sticky; top: 0; z-index: 1; color: #fff; background: linear-gradient(180deg, var(--brand), #0e2d47); font-size: 12px; font-weight: 900; }
.data-table tbody tr:hover { background: #f8fbfd; box-shadow: inset -3px 0 var(--accent); }
body.lang-en .data-table tbody tr:hover { box-shadow: inset 3px 0 var(--accent); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.sku { direction: ltr; text-align: right; color: var(--brand-2); font-family: Consolas, "SFMono-Regular", monospace; font-weight: 900; }
body.lang-en .sku { text-align: left; }
.price { direction: ltr; white-space: nowrap; color: #0e3857; font-weight: 900; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 900; }
.badge-active, .badge-won { color: var(--success); background: #ecfdf3; border-color: #bcebd0; }
.badge-inactive, .badge-lost { color: var(--danger); background: #fff3f1; border-color: #f0cfca; }
.badge-sent { color: #175cd3; background: #eff6ff; border-color: #c9ddff; }
.badge-followup { color: var(--warning); background: #fff8ed; border-color: #f0d4aa; }
.badge-draft { color: #475467; background: #f2f4f7; border-color: #d8dee6; }
.badge-expired { color: #5925dc; background: #f4f3ff; border-color: #d9d6fe; }

.product-thumb { width: 56px; height: 46px; display: block; object-fit: contain; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.product-thumb-empty { display: grid; place-items: center; color: #91a2ad; background: #f4f7fa; }
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card-item {
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 410px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card-item:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.product-card-media {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f4f7fa);
  border-bottom: 1px solid var(--line);
}
.product-card-media img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.product-card-empty {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: var(--brand-2);
  background: #eef6fa;
  border: 1px solid #d8e7ef;
  border-radius: 22px;
}
.product-card-empty svg { width: 62px; height: 62px; }
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}
.product-card-meta,
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card-body h3 {
  min-height: 48px;
  margin: 0;
  color: #102d43;
  font-size: 15px;
  line-height: 1.55;
}
.product-card-body p {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.product-card-specs span {
  padding: 5px 8px;
  color: #365063;
  background: #f3f6f9;
  border: 1px solid #e2eaf1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.product-card-footer {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.product-card-parts .product-card-media { background: linear-gradient(180deg, #fff, #fff5f4); }
.product-card-equipment .product-card-media { background: linear-gradient(180deg, #fff, #fff3f7); }
.product-card-sewing .product-card-media { background: linear-gradient(180deg, #fff, #f0f8fb); }
.product-card-sports .product-card-media { background: linear-gradient(180deg, #fff, #effaf5); }

/* Explanatory copy is intentionally hidden; operational alerts remain visible. */
.card-header p,
.catalog-hero-copy > p,
.dashboard-hero-copy > p,
.report-hero p,
.quick-action-card small,
.login-note,
.note-box,
.form-grid label > small.muted,
.install-note,
.page-help,
.help-text { display: none !important; }
.image-upload-panel { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; background: #f8fbfd; border: 1px dashed #b8c8d6; border-radius: 16px; }
.image-upload-panel small { display: block; margin-top: 4px; color: var(--muted); }
.image-upload-panel input[type=file] { grid-column: 1/-1; }
.product-form-preview { width: 120px; height: 88px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }

.quick-list { display: grid; gap: 10px; }
.quick-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; transition: transform .16s ease, box-shadow .16s ease; }
.quick-row:hover { transform: translateX(-2px); box-shadow: var(--shadow-sm); }
body.lang-en .quick-row:hover { transform: translateX(2px); }
.quick-row .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(15,159,154,.09); }
.quick-row strong { display: block; }
.quick-row small { display: block; margin-top: 3px; color: var(--muted); }
.quick-row time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.progress-list { display: grid; gap: 13px; }
.progress-item .row { display: flex; justify-content: space-between; margin-bottom: 7px; font-weight: 900; }
.progress-bar { height: 10px; overflow: hidden; background: #eef3f7; border-radius: 999px; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); border-radius: 999px; }

.alert { padding: 12px 14px; margin-bottom: 16px; border: 1px solid; border-radius: 14px; }
.alert-success { color: var(--success); background: #ecfdf3; border-color: #abefc6; }
.alert-danger { color: var(--danger); background: #fff3f1; border-color: #fecdca; }
.alert-warning { color: var(--warning); background: #fff8ed; border-color: #fedf89; }
.alert-info { color: #175cd3; background: #eff6ff; border-color: #b2ddff; }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-illustration { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--brand); background: #eef5fa; border-radius: 18px; font-size: 27px; font-weight: 900; }
.empty-mini { padding: 30px 14px; color: var(--muted); background: #f8fbfd; border-radius: 14px; text-align: center; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pagination .current { color: #fff; background: var(--brand); border-color: var(--brand); }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.quote-summary { position: sticky; top: 112px; align-self: start; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-row.total { border-bottom: 0; padding-top: 15px; font-size: 19px; font-weight: 900; }
.product-search-box { position: relative; }
.search-results { position: absolute; z-index: 20; inset-inline: 0; top: 100%; max-height: 340px; overflow: auto; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.search-result { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 12px 13px; border-bottom: 1px solid #edf2f6; cursor: pointer; }
.search-result:hover { background: #f7fbfd; }
.search-result-image,
.quote-form-product img {
  width: 50px;
  height: 42px;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.quote-items-table input { padding: 7px 8px; border-radius: 9px; }
.quote-items-table textarea {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 10px;
  resize: vertical;
}
.quote-items-empty td {
  padding: 20px !important;
  color: var(--muted);
  background: #f8fbfd;
  text-align: center;
}
.quote-form-product {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}
.quote-form-product .product-thumb-empty {
  width: 50px;
  height: 42px;
  border-radius: 10px;
}
.quote-items-table .remove-item { width: 31px; height: 31px; color: var(--danger); background: #fff3f1; border: 0; border-radius: 9px; }

.print-sheet {
  width: min(100%, 210mm);
  margin: 0 auto;
  padding: 18mm;
  color: #102d43;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  direction: rtl;
}
.quote-document { min-height: 297mm; display: flex; flex-direction: column; font-size: 12px; line-height: 1.55; }
.quote-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 22px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand);
}
.quote-brand { text-align: right; }
.quote-brand h1 { margin: 0 0 5px; color: var(--brand); font-size: 26px; line-height: 1.2; }
.quote-brand p { margin: 4px 0 0; color: var(--muted); }
.quote-company-logo {
  display: block;
  width: 245px;
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
  margin-bottom: 8px;
}
.quote-brand-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 14px;
  direction: ltr;
}
.quote-brand-logos img {
  max-width: 138px;
  max-height: 34px;
  object-fit: contain;
  display: block;
}
.quote-meta {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quote-meta-title { color: var(--brand); font-size: 14px; font-weight: 900; text-align: center; letter-spacing: .5px; }
.quote-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-meta-row span:first-child { color: var(--muted); }
.quote-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.quote-info-card {
  min-height: 104px;
  padding: 14px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quote-info-card h3,
.quote-terms h3 { margin: 0 0 10px; color: var(--brand); font-size: 15px; }
.quote-info-card p { margin: 5px 0; }
.quote-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 11.5px;
  table-layout: fixed;
}
.quote-print-table th,
.quote-print-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #e4ebf2;
  text-align: right;
  vertical-align: top;
}
.quote-print-table th {
  color: #fff;
  background: var(--brand);
  font-size: 11px;
}
.quote-print-table th:nth-child(1), .quote-print-table td:nth-child(1) { width: 34px; text-align: center; }
.quote-print-table th:nth-child(2), .quote-print-table td:nth-child(2) { width: 118px; }
.quote-print-table th:nth-child(4), .quote-print-table td:nth-child(4) { width: 70px; text-align: center; }
.quote-print-table th:nth-child(5), .quote-print-table td:nth-child(5),
.quote-print-table th:nth-child(6), .quote-print-table td:nth-child(6) { width: 104px; text-align: left; }
.item-note-print {
  display: block;
  margin-top: 4px;
  color: #6b7a89;
  font-size: 10.5px;
}
.item-note-print:before { content: "ملاحظة: "; color: #344f62; font-weight: 900; }
.quote-item-desc {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
}
.quote-item-image {
  width: 48px;
  height: 42px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
}
.quote-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}
.quote-totals {
  padding: 12px 14px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quote-terms { margin: 0; padding-top: 0; border-top: 0; }
.quote-terms p { margin: 7px 0; }
.quote-page-end {
  margin-top: auto;
  padding-top: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.quote-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 16px;
  padding-top: 10px;
  text-align: center;
}
.signature-card { min-height: 48px; display: grid; align-content: end; gap: 6px; }
.signature-card strong { min-height: 18px; color: #102d43; font-size: 12px; }
.signature-card span { color: #344f62; font-size: 12px; }
.signature-line { display: none; }
.quote-print-footer { margin-top: 24px; padding-top: 10px; color: var(--muted); border-top: 1px solid #e4ebf2; font-size: 10px; text-align: center; }
.quote-document.quote-print-compact { font-size: 10.9px; line-height: 1.38; }
.quote-document.quote-print-compact .quote-head { padding-bottom: 10px; }
.quote-document.quote-print-compact .quote-info-grid { margin: 10px 0; }
.quote-document.quote-print-compact .quote-info-card { min-height: 0; padding: 10px 12px; }
.quote-document.quote-print-compact .quote-print-table { margin-top: 6px; font-size: 10.4px; }
.quote-document.quote-print-compact .quote-print-table th,
.quote-document.quote-print-compact .quote-print-table td { padding: 5px 6px; }
.quote-document.quote-print-compact .quote-company-logo { max-height: 58px; }
.quote-document.quote-print-compact .quote-brand-logos { margin-top: 8px; }
.quote-document.quote-print-compact .quote-page-end { padding-top: 8px; }
.quote-document.quote-print-compact .quote-bottom-grid { margin-top: 10px; }
.quote-document.quote-print-compact .quote-signatures { margin-top: 8px; padding-top: 6px; }
.quote-document.quote-print-compact .quote-print-footer { margin-top: 6px; padding-top: 5px; }
.quote-document.quote-print-tight { font-size: 10px; line-height: 1.28; }
.quote-document.quote-print-tight .quote-company-logo { max-height: 48px; }
.quote-document.quote-print-tight .quote-brand-logos img { max-height: 26px; }
.quote-document.quote-print-tight .quote-meta { padding: 8px; gap: 4px; }
.quote-document.quote-print-tight .quote-print-table { font-size: 9.5px; }
.quote-document.quote-print-tight .quote-print-table th,
.quote-document.quote-print-tight .quote-print-table td { padding: 4px 5px; }
.quote-document.quote-print-tight .quote-item-image { width: 38px; height: 34px; }

body.print-mode { background: #fff; }
body.print-mode .sidebar,
body.print-mode .topbar,
body.print-mode .product-family-nav,
body.print-mode .catalog-breadcrumb-bar,
body.print-mode .app-footer,
body.print-mode .no-print,
body.print-mode .alert { display: none !important; }
body.print-mode .app-shell { display: block; }
body.print-mode .content-area { padding: 18px; background: #e9eef3; }
body.print-mode .print-sheet { width: 210mm; min-height: 297mm; box-shadow: 0 12px 40px rgba(16, 37, 56, .12); border: 0; }
.print-mode-actions { display: none; }
body.print-mode .print-mode-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 16px;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}

.login-body { min-height: 100vh; background: linear-gradient(135deg, #eef4f8 0%, #f8fafc 54%, #e9f1f6 100%); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; direction: ltr; }
.login-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(15,159,154,.22), transparent 22%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.10), transparent 20%),
    linear-gradient(140deg, #123a5a 0%, #1d6788 58%, #4b6574 100%);
}
.login-hero:before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -140px; background: rgba(255,255,255,.07); }
.hero-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 34px 34px; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 11vh 9%; color: #fff; direction: rtl; }
body.lang-en .hero-content { direction: ltr; }
.login-hero-brands {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: 34px;
  direction: ltr;
}
body:not(.lang-en) .login-hero-brands { justify-items: end; }
.login-hero-main-logo {
  width: min(360px, 78vw);
  max-height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(4, 16, 30, .24));
}
.login-hero-partner-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}
.login-hero-partner-logos img {
  max-width: 178px;
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(4, 16, 30, .18));
}
.hero-kicker { color: #c8f4f0; font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.hero-content h1 { margin: 22px 0 14px; font-size: 46px; line-height: 1.28; }
.hero-content p { max-width: 640px; margin: 0; color: #e0eef2; font-size: 17px; line-height: 1.9; }
.hero-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-features span { padding: 8px 12px; color: #f5ffff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.login-panel { width: 100%; display: grid; place-items: center; padding: 32px; direction: rtl; }
body.lang-en .login-panel { direction: ltr; }
.login-card { width: min(430px, 100%); padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.login-card-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
body.lang-en .login-card-tools { justify-content: flex-start; }
.login-brand-stack { display: grid; gap: 14px; }
.login-company-logo { min-height: 122px; }
.login-company-logo .company-main-logo { max-width: 330px; max-height: 104px; }
.login-card h2 { margin: 6px 0 24px; color: #102d43; font-size: 26px; text-align: center; }
.login-card > p { margin: 0 0 22px; color: var(--muted); }
.login-card label { margin-bottom: 14px; }
.login-note { display: block; margin-top: 16px; color: var(--muted); line-height: 1.8; text-align: center; }

@media (max-width: 1280px) {
  .dashboard-hero { grid-template-columns: 1fr 300px; }
  .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branded-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .dashboard-main-grid, .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .catalog-hero { grid-template-columns: 1fr; min-height: 0; }
  .catalog-hero-visual { min-height: 230px; }
  .catalog-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(304px, 88vw); transform: translateX(105%); transition: transform .2s ease; }
  body.lang-en .sidebar { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(-105%); }
  .sidebar.open, body.lang-en .sidebar.open { transform: translateX(0); }
  .menu-button { display: block; }
  .topbar { padding: 14px 18px; }
  .topbar-actions .btn, .topbar-brand-suite { display: none; }
  .product-family-nav { position: static; min-height: 64px; gap: 16px; padding: 0 18px; overflow-x: auto; }
  .product-nav-group { flex: 0 0 auto; gap: 9px; }
  .product-nav-brand img { max-width: 62px; max-height: 20px; }
  .product-nav-brand img:nth-child(2) { max-height: 23px; }
  .product-nav-brand b, .independent-label { display: none; }
  .product-nav-links a { min-height: 64px; padding: 0 12px; }
  .independent-products-group { padding-inline-start: 10px; }
  .catalog-breadcrumb-bar { padding-inline: 18px; }
  .content-area { padding: 18px; }
  .dashboard-hero, .report-hero { display: block; padding: 28px; }
  .dashboard-hero-brands { display: none; }
  .dashboard-hero h2, .report-hero h2 { font-size: 28px; }
  .catalog-hero { padding: 30px; }
  .catalog-hero h2 { font-size: 40px; }
  .catalog-hero-logo { position: static; margin-bottom: 12px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
  .customer-block { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats-grid, .grid-3, .quick-action-grid, .catalog-tabs { grid-template-columns: 1fr; }
  .branded-categories { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 19px; }
  .topbar p { display: none; }
  .content-area { padding: 14px; }
  .card, .premium-card { padding: 15px; border-radius: 16px; }
  .catalog-hero { padding: 24px; }
  .catalog-hero h2 { font-size: 34px; }
  .catalog-hero-actions .btn { flex: 1; }
  .product-card-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar > * { width: 100%; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .login-panel { padding: 14px; }
  .login-card { padding: 24px; }
  .quote-head { display: block; }
  .quote-meta { margin-top: 18px; }
  .quote-totals { width: 100%; }
  .quote-signatures { grid-template-columns: 1fr; }
  .image-upload-panel { grid-template-columns: 1fr; }
  .product-form-preview { width: 100%; max-width: 220px; }
}
@media print {
  @page { size: A4; margin: 8mm; }
  html, body { width: 194mm; background: #fff; }
  .sidebar, .topbar, .product-family-nav, .catalog-breadcrumb-bar, .app-footer, .no-print, .print-hide, .print-mode-actions, .alert { display: none !important; }
  .app-shell { display: block; }
  .content-area { padding: 0 !important; background: #fff !important; }
  .card, .premium-card { box-shadow: none; border: 0; padding: 0; }
  .print-sheet {
    width: 194mm !important;
    height: 281mm !important;
    min-height: 281mm !important;
    max-width: none;
    margin: 0;
    box-shadow: none !important;
    border: 0;
    padding: 0;
  }
  .quote-document {
    display: flex;
    flex-direction: column;
    overflow: visible;
    break-after: avoid;
    page-break-after: avoid;
  }
  .quote-head { padding-bottom: 10px; }
  .quote-info-grid { margin: 10px 0; }
  .quote-info-card { min-height: 0; padding: 10px 12px; }
  .quote-print-table { margin-top: 6px; font-size: 10.7px; }
  .quote-print-table th,
  .quote-print-table td { padding: 5px 6px; }
  .quote-bottom-grid { margin-top: 8px; break-inside: avoid; page-break-inside: avoid; }
  .quote-page-end { margin-top: auto; padding-top: 8px; break-inside: avoid; page-break-inside: avoid; }
  .quote-totals { padding: 9px 11px; }
  .quote-signatures { margin-top: 10px; padding-top: 8px; break-inside: avoid; page-break-inside: avoid; }
  .signature-card { min-height: 34px; }
  .quote-print-footer { margin-top: 8px; padding-top: 6px; }
  .data-table th { position: static; }
  .table-wrap { border: 0; overflow: visible; }
  .data-table { min-width: 0; }
  .data-table th { color: #111; background: #f2f4f7; }
}

/* Final Honda-inspired interface overrides */
.topbar {
  background: #fff;
  border-bottom: 3px solid #d7190f;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sidebar { background: #fff; border-inline-start: 1px solid #e5e7eb; }
body.lang-en .sidebar { border-inline-start: 0; border-inline-end: 1px solid #e5e7eb; }
.sidebar-nav a { color: #242424; border-radius: 5px; }
.sidebar-nav a:hover { background: #f6f6f6; color: #d7190f; }
.sidebar-nav a.active {
  color: #fff;
  background: #242424;
  box-shadow: inset -4px 0 #d7190f;
}
body.lang-en .sidebar-nav a.active { box-shadow: inset 4px 0 #d7190f; }
.btn-primary { background: #d7190f; border-color: #d7190f; color: #fff; }
.btn-primary:hover { background: #b9150d; border-color: #b9150d; }
.card, .premium-card, .stat-card, .quick-action-card { border-radius: 8px; }
.dashboard-hero, .report-hero {
  color: #fff;
  background: linear-gradient(115deg,#202020 0%,#343434 72%,#d7190f 72%,#d7190f 100%);
  border-radius: 8px;
}
.dashboard-hero h2, .report-hero h2 { color: #fff; }
.data-table thead th { color: #fff; background: #242424; }
.product-family-nav { background: #fff; border-bottom: 1px solid #dedede; }
.product-nav-links a { color: #242424; }
.product-nav-links a:hover, .product-nav-links a.active { color: #d7190f; }
.catalog-breadcrumb-bar { color: #fff; background: #d7190f; }
.catalog-breadcrumb-bar a, .catalog-breadcrumb-bar span { color: #fff; }
