/*
 * GAILAN RAMZI — WEB/MOBILE DESIGN PARITY, V100
 * Design contract: black/navy #142331, gold #F7C944, readable white cards,
 * two-column phone catalog, native-style five-tab phone navigation.
 *
 * IMPORTANT: This is a presentation layer over the existing V100 state,
 * permissions, product pricing, supplier RPC and delivery accounting.
 * No duplicate cart/account state, mock prices or privileged API calls.
 */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body:has(.gr-v100-ui) {
  background: #f3f5f8;
  font-family: 'Noto Sans Arabic', Tahoma, 'Segoe UI', Arial, sans-serif;
}
.gr-v100-ui {
  --gr-gold: #f7c944;
  --gr-ink: #142331;
  --gr-ink2: #1d2f42;
  --gr-bg: #f3f5f8;
  --gr-paper: #fff;
  --gr-text: #182738;
  --gr-muted: #69798b;
  --gr-line: #e1e7ed;
  --gr-shadow: 0 5px 22px rgba(18, 33, 49, .065);
  --gr-radius: 17px;
  background: var(--gr-bg);
  color: var(--gr-text);
  width: 100%;
  min-height: 100vh;
}
.gr-v100-ui :where(button,input,select,textarea):focus-visible,
.gr-v34-mobile-dock button:focus-visible,
.gr-v29-hamburger:focus-visible {
  outline: 3px solid #d9a322 !important;
  outline-offset: 2px;
}
.gr-v100-ui :where(.card, .stat, .product, .category-card, .customer-card,
 .v51-company, .v51-product, .notification-row, .v51-snapshot, .dialog) {
  border-color: var(--gr-line);
  box-shadow: var(--gr-shadow);
}
.gr-v100-ui .sidebar {
  background: linear-gradient(180deg, #152332 0%, #101923 100%);
  border-inline-end: 1px solid rgba(247,201,68,.19);
  width: 255px;
  padding: 21px 12px;
}
.gr-v100-ui .sidebar .brand {
  gap: 12px;
  padding: 8px 9px 19px;
  border-color: rgba(255,255,255,.13);
}
.gr-v100-ui .sidebar .brand .mark {
  width: 52px;
  height: 52px;
  border: 2px solid #f7c944;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: none;
}
.gr-v100-ui .brand strong { color: #fff; font-weight: 900; font-size: 15px; }
.gr-v100-ui .brand small { color: #f7c944; font-size: 10px; letter-spacing: 1px; }
.gr-v100-ui .sidebar .navtitle {
  color: #8092a7;
  font-size: 11px;
  letter-spacing: .3px;
  margin: 17px 13px 6px;
}
.gr-v100-ui .sidebar .navbtn {
  min-height: 43px;
  border-radius: 11px;
  color: #cad5e2;
  margin: 2px 0;
  transition: background .15s, color .15s, transform .15s;
}
.gr-v100-ui .sidebar .navbtn:hover {
  background: #283a4c;
  color: #fff;
  transform: translateX(-2px);
}
.gr-v100-ui .sidebar .navbtn.sel {
  background: #f7c944;
  color: #15202c;
  box-shadow: 0 5px 16px #0002;
}
.gr-v100-ui .sidebar .navbtn .ico { font-size: 19px; }
.gr-v100-ui .sidebottom { color: #b8c7d5; border-color: #314153; }
.gr-v100-ui .main {
  max-width: 1780px;
  margin: 0 auto;
  padding: 28px clamp(17px, 2.4vw, 38px) 60px;
}
/* Native HomeHeader identity, adapted as a desktop information bar. */
.gr-v100-ui .topbar {
  background: linear-gradient(125deg, #142331, #223649);
  border: 1px solid #30495e;
  border-top: 4px solid #f7c944;
  border-radius: 19px;
  padding: 16px 22px;
  min-width: 0;
  color: #fff;
  box-shadow: 0 12px 30px #16263618;
  gap: 14px;
}
.gr-v100-ui .topbar .crumb { color: #a9bdce; font-size: 11px; }
.gr-v100-ui .topbar .heading {
  color: #f7f8fb;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 900;
  line-height: 1.4;
}
.gr-v100-ui .topright {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.gr-v100-ui .topright :where(.input,.pill,.daily-usd,.previewselector,.currency-select-top) {
  background: #ffffff12;
  border-color: #ffffff34;
  color: #f9fcff;
}
.gr-v100-ui .topright .daily-usd { box-shadow: none; background: #0e1923; }
.gr-v100-ui .topright .daily-usd b { color: #f7c944; }
.gr-v100-ui .topright .input { color: #fff; }
.gr-v100-ui .topright .input option { color: #152331; background: white; }
.gr-v100-ui .topright .btn.soft { background: #edf0f5; color: #1b2938; }
.gr-v100-ui .card { border-radius: var(--gr-radius); }
.gr-v100-ui .btn {
  border-radius: 11px;
  min-height: 40px;
  transition: filter .15s, box-shadow .15s;
  white-space: normal;
  text-align: center;
}
.gr-v100-ui .btn:not(:disabled):hover { filter: brightness(.97); box-shadow: 0 4px 12px #0001; }
.gr-v100-ui .btn.dark { background: #142331; border-color: #142331; }
.gr-v100-ui .input,
.gr-v100-ui select,
.gr-v100-ui input[type="number"],
.gr-v100-ui textarea { border-radius: 11px; }
.gr-v100-ui .sectionline h3,
.gr-v100-ui .sectionhead { color: #182b3e; font-weight: 900; }
.gr-v100-ui .muted, .gr-v100-ui .note { color: #65778a; }
.gr-v100-ui .pill, .gr-v100-ui .tag {
  background: #f0f3f7;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  color: #3e5064;
}
/* 01 Home: image-led hero and native quick actions rather than desktop-only banner. */
.gr-v100-ui .hero {
  border: 1px solid #314959;
  border-radius: 20px;
  background: linear-gradient(115deg,#152331 10%,#234253 84%);
  padding: 24px 29px;
  min-height: 210px;
  box-shadow: 0 12px 30px #16263617;
}
.gr-v100-ui .hero h2 { color: #fff; font-size: clamp(21px,2.2vw,34px); font-weight: 900; }
.gr-v100-ui .hero p { color: #d8e4ee; }
.gr-v100-ui .hero .numbers {
  border: 1px solid #f7c94480;
  background: #112232bb;
  min-width: 130px;
}
.gr-v100-ui .hero .numbers b { color: #f7c944; }
.gr-v100-ui .hero-stage { border-radius: 16px; overflow: hidden; }
.gr-v100-ui .gr100-home-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.gr-v100-ui .gr100-home-links button {
  min-width: 0;
  min-height: 93px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee7f0;
  border-bottom: 3px solid #f7c944;
  border-radius: 15px;
  background: #fff;
  color: #273b4e;
  font-size: 12px;
  font-weight: 750;
  box-shadow: var(--gr-shadow);
  transition: transform .15s, border-color .15s;
}
.gr-v100-ui .gr100-home-links button:hover {
  transform: translateY(-2px);
  border-color: #e3bb3f;
}
.gr-v100-ui .gr100-link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff4ce;
  color: #142331;
  font-size: 23px;
  font-weight: 900;
}
.gr-v100-ui .filters {
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 17px;
  box-shadow: var(--gr-shadow);
}
.gr-v100-ui .filters .input { min-height: 44px; }
.gr-v100-ui .catgroup { margin-bottom: 25px; }
.gr-v100-ui .catgroup-heading,
.gr-v100-ui .category-heading {
  background: #fff;
  border: 1px solid #e0e6ee;
  border-inline-start: 5px solid #f7c944;
  border-radius: 13px;
  padding: 10px 15px;
  box-shadow: 0 3px 14px #00000008;
  margin-bottom: 13px;
}
.gr-v100-ui .catgroup-heading h3 { margin: 0; font-size: 16px; font-weight: 900; }
/* 02 Products: responsive two-column phone cards, detailed price & real image. */
.gr-v100-ui .grid { display: grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap: 14px; }
.gr-v100-ui .product {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid #e1e7ef;
  box-shadow: var(--gr-shadow);
}
.gr-v100-ui .productpic {
  height: clamp(128px, 13vw, 205px);
  background: linear-gradient(155deg,#f9fafb,#eff2f5);
  position: relative;
}
.gr-v100-ui .productpic img { padding: 12px; object-fit: contain; }
.gr-v100-ui .product:hover { transform: translateY(-3px); border-color:#e4bf50; }
.gr-v100-ui .product .catpill {
  border-radius: 9px;
  background: #ffffffeb;
  font-size: 10px;
  color: #687a8a;
  padding: 3px 9px;
}
.gr-v100-ui .pbody { padding: 13px; gap: 3px; }
.gr-v100-ui .pname { font-size: 14px; font-weight: 850; color:#263746; }
.gr-v100-ui .pcode { color:#67798b; font-size: 11px; }
.gr-v100-ui .pfoot { align-items: stretch; flex-wrap: wrap; padding-top: 9px; }
.gr-v100-ui .pfoot .price {
  color: #10745d;
  font-size: 17px;
  font-weight: 950;
  min-width: 0;
}
.gr-v100-ui .pfoot .toolbar { flex: 1 1 100%; }
.gr-v100-ui .pfoot .toolbar .btn { width: 100%; background: #f7c944; font-size: 12px; }
.gr-v100-ui .gr100-details-link {
  position: absolute;
  bottom: 9px;
  inset-inline-end: 9px;
  min-height: 28px;
  border-radius: 9px;
  padding: 3px 10px;
  background: #152432e8;
  color: #fff;
  font-size: 11px;
  border: 1px solid #f7c9448f;
}
.gr-v100-ui .gr100-details-link:hover { background:#f7c944; color:#132334; }
.gr100-product-detail { display: grid; grid-template-columns:minmax(170px,.9fr) 1.1fr; gap: 23px; align-items: start; }
.gr100-product-detail-image { background: #f4f6f8; border:1px solid #e1e8ef; border-radius: 16px; min-height: 230px; display:grid; place-items:center; }
.gr100-product-detail-image img { width: 100%; max-height: 300px; object-fit: contain; padding: 14px; }
.gr100-product-detail-info { display:flex; flex-direction:column; gap:10px; min-width:0; }
.gr100-product-detail-info h3 { margin:0; font-size:21px; }
.gr100-detail-code { direction:ltr; align-self:flex-start; border-radius:999px; color:#627488; background:#eef2f6; padding:3px 10px; font-size:12px; }
.gr100-detail-price { color:#138263; font-size:24px; direction:ltr; text-align:right; }
/* 03 Categories */
.gr-v100-ui .category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.gr-v100-ui .category-card {
  min-width:0;
  border-radius:17px;
  background:#fff;
  overflow:hidden;
  border:1px solid #e1e7ed;
  box-shadow: var(--gr-shadow);
}
.gr-v100-ui .category-card img { max-width:100%; object-fit:contain; }
.gr-v100-ui .category-card:hover { border-color:#e6bc48; }
.gr-v100-ui .gr77-category-box { border-top: 4px solid #f7c944; border-radius:17px; }
/* 04 My List, 05 Orders */
.gr-v100-ui .cart-product { min-width:0; }
.gr-v100-ui .cart-product .cart-image { border-radius:12px; background:#f4f6f8; }
.gr-v100-ui .quantity { text-align:center; }
.gr-v100-ui .totalbar,
.gr-v100-ui .d-summary {
  background:#142331;
  color:#fff;
  border-radius:14px;
  border:1px solid #374d5f;
}
.gr-v100-ui .totalbar strong { color:#f7c944; }
.gr-v100-ui .status-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.gr-v100-ui .status-choice {
  min-width:0;
  background:#fff;
  border:1px solid #e1e8ee;
  border-radius:14px;
  box-shadow:var(--gr-shadow);
  padding:10px;
}
.gr-v100-ui .status-choice strong { color:#152432; font-size:20px; }
.gr-v100-ui .status-choice.selected { background:#152432; color:#fff; border-color:#f7c944; }
.gr-v100-ui .status-choice.selected strong { color:#f7c944; }
.gr-v100-ui .tablewrap { border-radius:13px; border-color:#e1e8ef; }
.gr-v100-ui .table th { background:#f4f6f9; color:#4a5f72; font-weight:850; }
.gr-v100-ui .table tbody tr:hover { background:#fff9e8; }
/* 06 Prepared Packages */
.gr-v100-ui[data-gr-page="templates"] .three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.gr-v100-ui .package-card { overflow:hidden; border-top:3px solid #f7c944; display:flex; flex-direction:column; gap:9px; }
.gr-v100-ui .package-thumbs { background:#f5f7f9; border-radius:13px; }
.gr-v100-ui .package-thumbs img { object-fit:contain; }
.gr-v100-ui .package-card .btn.wide { margin-top:auto; }
.gr-v100-ui .package-card .notice { background:#f9f6ec; }
.gr-v100-ui .package-card .good { color:#0f644d; }
/* 07 Discounts: keep unique photorealistic V99 banner artwork and page data. */
.gr-v100-ui .gr99-page { width:100%; max-width:100%; }
.gr-v100-ui .gr99-head,
.gr-v100-ui .gr99-panel { border-radius:16px; }
.gr-v100-ui .gr99-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.gr-v100-ui .gr99-banner { border-radius:17px; }
/* 08 Catalogue */
.gr-v100-ui[data-gr-page="catalogs"] .card,
.gr-v100-ui[data-gr-page="admincatalogs"] .card,
.gr-v100-ui .gr-v34-catalog-choice { border-top:3px solid #f7c944; }
.gr-v100-ui .gr-v34-catalog-choice button { border-radius:11px; }
/* 09 Customer Notifications, 10 My Account */
.gr-v100-ui .notification-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  margin:9px 0;
  border:1px solid #e4eaf0;
  border-inline-start:4px solid #bdcad7;
  border-radius:13px;
  background:#fff;
  color:#203348;
  text-align:start;
}
.gr-v100-ui .notification-row.unread { border-inline-start-color:#f7c944; background:#fffaf0; }
.gr-v100-ui .notification-row small { display:block; color:#718090; }
.gr-v100-ui[data-gr-page="profile"] .card { max-width:950px!important; border-top:4px solid #f7c944; }
.gr-v100-ui .profile-request { background:#f7f9fb; border:1px solid #e0e7ee; border-radius:13px; padding:17px; margin-top:18px; }
.gr-v100-ui .profile-request h3 { color:#203349; }
/* 11 Supplier — company directory, Excel/mapping, price book, PDF, history */
.gr-v100-ui .v51-stack { gap:17px; }
.gr-v100-ui .v51-head { border-radius:15px; background:#142331; color:#fff; padding:14px 17px; border-inline-start:4px solid #f7c944; }
.gr-v100-ui .v51-head h2,.gr-v100-ui .v51-head h3 { color:#fff; margin:0; }
.gr-v100-ui .v51-company-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.gr-v100-ui .v51-company { border-radius:15px; padding:16px; }
.gr-v100-ui .v51-company img { height:75px; width:100%; object-fit:contain; }
.gr-v100-ui .v51-tabs button { border:1px solid #e1e6ed; background:#fff; padding:10px 15px; }
.gr-v100-ui .v51-tabs button.on { background:#f7c944; color:#172332; border-color:#d8ac31; }
.gr-v100-ui .v51-pair { border:1px solid #f1dc94; background:#fff9e5; }
.gr-v100-ui .v51-snapshot { border-inline-start:4px solid #f7c944; }
.gr-v100-ui .v51-product-grid.v60-shopping-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
/* 12 Notification studio & 13 Delivery — existing data actions, unified design. */
.gr-v100-ui[data-gr-page="announcements"] .card { max-width:1050px; border-top:4px solid #f7c944; }
.gr-v100-ui[data-gr-page="announcements"] h2 { color:#152432; }
.gr-v100-ui .d-buttons { display:flex; gap:9px; flex-wrap:wrap; }
.gr-v100-ui .d-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:11px; }
.gr-v100-ui .d-stat { background:#f7f9fb; border:1px solid #e0e7ef; border-radius:12px; }
.gr-v100-ui .d-stat strong { color:#182b3e; }
.gr-v100-ui .d-tabs button.on,
.gr-v100-ui .d-tabs button.active { background:#f7c944; color:#142331; }
.gr-v100-ui .d-mini { color:#6f8092; }
.gr-v100-ui .dialog { border:1px solid #eadba7; border-top:4px solid #f7c944; }
.gr-v100-ui .notice { border-radius:12px; }
.gr-v100-ui .foot { opacity:.65; font-size:11px; text-align:center; padding-top:15px; }
/* Breakpoints: tablet, standard desktop and large monitor. */
@media (min-width:1750px) {
  .gr-v100-ui .grid { grid-template-columns:repeat(8,minmax(0,1fr)); }
  .gr-v100-ui .gr99-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .gr-v100-ui .v51-product-grid.v60-shopping-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (min-width:1350px) and (max-width:1749px) {
  .gr-v100-ui .grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .gr-v100-ui .gr99-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (min-width:881px) and (max-width:1199px) {
  .gr-v100-ui .grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gr-v100-ui .category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gr-v100-ui .v51-company-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gr-v100-ui .gr99-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gr-v100-ui .topright .daily-usd { display:none; }
}
@media (max-width:880px) {
  html:has(.gr-v100-ui),body:has(.gr-v100-ui) { max-width:100%; overflow-x:hidden; }
  .gr-v100-ui .main { padding:67px 12px calc(102px + env(safe-area-inset-bottom, 0px))!important; }
  .gr-v100-ui .sidebar { width:min(335px,87vw)!important; border-inline-end:0; }
  .gr-v100-ui .main .topbar {
    background:linear-gradient(135deg,#142331,#21374a)!important;
    padding:14px!important;
    border-radius:15px!important;
    border:1px solid #30495e!important;
    border-top:4px solid #f7c944!important;
    box-shadow:0 5px 18px #1723311e!important;
  }
  .gr-v100-ui .main .topbar .crumb { color:#b2c5d6; }
  .gr-v100-ui .main .topbar .heading { color:#fff; font-size:19px!important; }
  .gr-v100-ui .main .topbar .topright { display:flex!important; flex-wrap:wrap!important; justify-content:stretch; gap:7px!important; }
  .gr-v100-ui .main .topbar .topright>* { flex:1 1 130px; width:auto!important; min-width:0; }
  .gr-v100-ui .main .topbar .topright .daily-usd { flex:1 1 100%; }
  .gr-v100-ui .main .topbar .topright .previewselector { flex:1 1 100%; }
  .gr-v100-ui .main .topbar .topright .currency-select-top { flex:1 1 100%; }
  .gr-v100-ui .topright .input { min-height:41px; }
  .gr-v100-ui .hero { gap:9px; min-height:205px!important; padding:20px!important; }
  .gr-v100-ui .hero .hero-copy h2 { color:#fff; font-size:23px!important; }
  .gr-v100-ui .hero .numbers { min-height:60px; }
  .gr-v100-ui .gr100-home-links { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-bottom:17px; }
  .gr-v100-ui .gr100-home-links button { min-height:82px; padding:8px 3px; font-size:11px; }
  .gr-v100-ui .gr100-link-icon { width:33px; height:33px; font-size:20px; }
  .gr-v100-ui .grid,
  .gr-v100-ui .category-grid,
  .gr-v100-ui .gr99-grid,
  .gr-v100-ui .gr99-picker-grid,
  .gr-v100-ui .v51-product-grid.v60-shopping-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important;
  }
  .gr-v100-ui .v51-company-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .gr-v100-ui[data-gr-page="templates"] .three { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .gr-v100-ui .product { border-radius:13px!important; min-height:0!important; }
  .gr-v100-ui .productpic { height:clamp(132px,37vw,185px)!important; min-height:0!important; }
  .gr-v100-ui .productpic img { padding:8px!important; }
  .gr-v100-ui .pbody { padding:10px!important; }
  .gr-v100-ui .pname { font-size:12px; min-height:36px; }
  .gr-v100-ui .pcode { font-size:10px; }
  .gr-v100-ui .pfoot .price { font-size:14px; }
  .gr-v100-ui .pfoot .btn { min-height:39px; font-size:11px; }
  .gr-v100-ui .catpill { font-size:9px; }
  .gr-v100-ui .gr100-details-link { font-size:10px; padding:2px 8px; }
  .gr-v100-ui .status-cards { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .gr-v100-ui .status-choice { min-height:70px; }
  .gr-v100-ui .tablewrap { max-width:100%; overflow-x:auto; }
  .gr-v100-ui .v51-tabs { flex-wrap:nowrap; overflow-x:auto; scroll-snap-type:x proximity; padding:3px; }
  .gr-v100-ui .v51-tabs button { flex:0 0 auto; scroll-snap-align:start; }
  .gr-v100-ui .gr-v34-catalog-choice { margin-bottom:13px; }
  .gr-v100-ui .card { border-radius:14px!important; }
  .gr-v100-ui .formgrid,.gr-v100-ui .two { grid-template-columns:1fr!important; }
  /* User account and My Orders resemble their native cards, without rewriting data flow. */
  .gr-v100-ui[data-gr-page="orders"] .table,
  .gr-v100-ui[data-gr-page="adminorders"] .table,
  .gr-v100-ui[data-gr-page="cart"] .table { min-width:0; display:block; width:100%; }
  .gr-v100-ui[data-gr-page="orders"] .table thead,
  .gr-v100-ui[data-gr-page="adminorders"] .table thead,
  .gr-v100-ui[data-gr-page="cart"] .table thead { display:none; }
  .gr-v100-ui[data-gr-page="orders"] .table tbody,
  .gr-v100-ui[data-gr-page="adminorders"] .table tbody,
  .gr-v100-ui[data-gr-page="cart"] .table tbody { display:grid; gap:10px; padding:4px; }
  .gr-v100-ui[data-gr-page="orders"] .table tbody tr,
  .gr-v100-ui[data-gr-page="adminorders"] .table tbody tr,
  .gr-v100-ui[data-gr-page="cart"] .table tbody tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 12px;
    padding:13px;
    background:#fff;
    border:1px solid #dfe6ed;
    border-radius:14px;
  }
  .gr-v100-ui[data-gr-page="orders"] .table td,
  .gr-v100-ui[data-gr-page="adminorders"] .table td,
  .gr-v100-ui[data-gr-page="cart"] .table td { display:block; padding:3px 0; border:0; min-width:0; }
  .gr-v100-ui[data-gr-page="orders"] .table td:nth-child(2),
  .gr-v100-ui[data-gr-page="cart"] .table td:first-child { grid-column:1/-1; }
  .gr-v100-ui[data-gr-page="cart"] .table td:first-child { border-bottom:1px solid #edf1f5; padding-bottom:9px; }
  .gr-v100-ui[data-gr-page="cart"] .table td:nth-child(2):before { content:'نرخ'; display:block; color:#7c8a98; font-size:10px; }
  .gr-v100-ui[data-gr-page="cart"] .table td:nth-child(3):before { content:'بڕ'; display:block; color:#7c8a98; font-size:10px; }
  .gr-v100-ui[data-gr-page="cart"] .table td:nth-child(4):before { content:'کۆی نرخ'; display:block; color:#7c8a98; font-size:10px; }
  .gr-v100-ui[data-gr-page="orders"] .table td:nth-child(4),
  .gr-v100-ui[data-gr-page="adminorders"] .table td:nth-child(4) { font-weight:900; color:#087e60; }
  .gr-v100-ui[data-gr-page="orders"] .table td:last-child,
  .gr-v100-ui[data-gr-page="adminorders"] .table td:last-child { grid-column:1/-1; }
  /* Always five native-style tabs; all additional pages remain available from the drawer. */
  .gr-v34-mobile-dock {
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    background:#fff!important;
    border-top:1px solid #dfe6ed!important;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px))!important;
    box-shadow:0 -5px 17px #121f2b1a!important;
    z-index:89;
  }
  .gr-v34-mobile-dock[hidden] { display:none!important; }
  .gr-v34-mobile-dock button { min-height:50px; padding:5px 1px!important; font-size:10px!important; line-height:1.25; }
  .gr-v34-mobile-dock button[data-active="true"] { color:#142331!important; background:#fff2ca!important; font-weight:850; }
  .gr-v34-mobile-dock .gr-v34-dock-icon { font-size:19px!important; }
  .gr-v29-hamburger { background:#f7c944; border-color:#f1d071; border-radius:12px; }
  .gr100-product-detail { grid-template-columns:1fr; }
  .gr100-product-detail-image { min-height:170px; }
  .gr100-product-detail-image img { max-height:215px; }
}
@media (max-width:370px) {
  .gr-v100-ui .gr100-home-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gr-v100-ui .gr100-home-links button { min-height:72px; }
  .gr-v100-ui .productpic { height:130px!important; }
  .gr-v100-ui .product .catpill { font-size:8px!important; max-width:70%; }
  .gr-v100-ui .pbody { padding:8px!important; }
  .gr-v100-ui .pname { font-size:11px; }
  .gr-v34-mobile-dock button { font-size:9px!important; }
}
/* On devices set to dark mode, follow the native application's system theme. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme:dark; }
  body:has(.gr-v100-ui) { background:#10151d; }
  .gr-v100-ui {
    --gr-bg:#111923; --gr-paper:#1a2836; --gr-text:#f0f4f8;
    --gr-muted:#b2c0cd; --gr-line:#35465a; --gr-shadow:0 5px 18px #0003;
    --bg:#111923; --text:#f0f4f8; --muted:#b2c0cd; --line:#35465a;
    color:#f0f4f8;
  }
  .gr-v100-ui :where(.card,.product,.category-card,.stat,.v51-company,.v51-product,.v51-snapshot,.notification-row,.gr100-home-links button,.filters,.status-choice,.profile-request) {
    background:#1c2a39;
    border-color:#37485a;
    color:#f0f4f8;
  }
  .gr-v100-ui :where(.pname,.sectionline h3,.sectionhead,.catgroup-heading h3,.d-stat strong,.profile-request h3,.gr100-home-links button) { color:#f2f5f9; }
  .gr-v100-ui .catgroup-heading,.gr-v100-ui .category-heading,.gr-v100-ui .d-stat,.gr-v100-ui .gr100-product-detail-image { background:#203043; color:#f2f5f9; border-color:#374c61; }
  .gr-v100-ui .pcode, .gr-v100-ui .muted, .gr-v100-ui .note { color:#b8c6d5; }
  .gr-v100-ui .productpic,.gr-v100-ui .package-thumbs { background:#2a3c4f; }
  .gr-v100-ui .input,.gr-v100-ui select,.gr-v100-ui textarea { background:#203043; color:#f4f6f9; border-color:#46576a; }
  .gr-v100-ui .input option { background:#1a2836; color:#fff; }
  .gr-v100-ui .pill,.gr-v100-ui .tag { background:#28394b; border-color:#435467; color:#e3eaf0; }
  .gr-v100-ui .status-choice strong { color:#f5e2a1; }
  .gr-v100-ui .status-choice.selected strong { color:#f7c944; }
  .gr-v100-ui .table th { background:#27394b; color:#d8e5ef; }
  .gr-v100-ui .table td { color:#f1f5f8; }
  .gr-v100-ui .table tr:hover { background:#22354a; }
  .gr-v100-ui .notification-row.unread { background:#263444; }
  .gr-v100-ui .gr100-home-links button { border-bottom-color:#f7c944; }
  .gr-v100-ui .gr100-link-icon { background:#f7c944; color:#142331; }
  .gr-v100-ui .btn.soft { background:#273b4f; color:#f4f7f9; border-color:#485a6b; }
  .gr-v100-ui .dialog { background:#1b2938; color:#fff; }
  .gr-v100-ui .notice,.gr-v100-ui .good { color:#f5e3af; background:#493b20; border-color:#786334; }
  .gr-v100-ui .v51-pair { background:#493d20; color:#f6ebc4; border-color:#726534; }
  .gr-v100-ui .gr100-product-detail-info h3 { color:#fff; }
  .gr-v100-ui .gr100-detail-code { background:#2d4256; color:#dce6ee; }
  @media (max-width:880px) {
    .gr-v100-ui[data-gr-page="orders"] .table tbody tr,
    .gr-v100-ui[data-gr-page="adminorders"] .table tbody tr,
    .gr-v100-ui[data-gr-page="cart"] .table tbody tr { background:#1b2a3a; border-color:#3b4b5d; }
    .gr-v34-mobile-dock { background:#162332!important; border-color:#354357!important; }
    .gr-v34-mobile-dock button { color:#b7c7d5!important; }
  }
}
@media print {
  .gr-v100-ui .sidebar,.gr-v100-ui .gr100-home-links,
  .gr-v100-ui .gr100-details-link,.gr-v34-mobile-dock,.gr-v29-hamburger { display:none!important; }
  .gr-v100-ui .main { padding:0!important; margin:0; }
  .gr-v100-ui .topbar { background:#fff!important; border:0; box-shadow:none; }
  .gr-v100-ui .topbar .heading { color:#111!important; }
}


/* Prompt 05: My Orders reads as real order cards on wide website screens as well. */
@media (min-width:881px) {
  .gr-v100-ui[data-gr-page="orders"] .tablewrap { overflow:visible; border:0; background:transparent; }
  .gr-v100-ui[data-gr-page="orders"] .table { display:block; min-width:0; }
  .gr-v100-ui[data-gr-page="orders"] .table thead { display:none; }
  .gr-v100-ui[data-gr-page="orders"] .table tbody { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:14px; }
  .gr-v100-ui[data-gr-page="orders"] .table tr {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px;
    padding:17px; border:1px solid var(--gr-line); border-top:3px solid #f7c944;
    border-radius:16px; background:var(--gr-paper); box-shadow:var(--gr-shadow);
  }
  .gr-v100-ui[data-gr-page="orders"] .table td { display:block; border:0; padding:3px 0; min-width:0; }
  .gr-v100-ui[data-gr-page="orders"] .table td:nth-child(2),
  .gr-v100-ui[data-gr-page="orders"] .table td:last-child { grid-column:1/-1; }
  .gr-v100-ui[data-gr-page="orders"] .table td:nth-child(4) { font-size:17px; font-weight:900; color:#138263; }
  .gr-v100-ui[data-gr-page="orders"] .table td:last-child .btn { min-width:100px; }
}

/* Prompt 09: native-style grouped notification center with usable read filters. */
.gr-v100-ui .gr100-notice-center { max-width:1000px; }
.gr-v100-ui .gr100-notice-filters { display:flex; gap:9px; flex-wrap:wrap; margin:8px 0 20px; }
.gr-v100-ui .gr100-notice-filters button { padding:8px 14px; border:1px solid #e2e7ef; color:#3f5165; border-radius:999px; background:#f5f7fa; font-weight:750; }
.gr-v100-ui .gr100-notice-filters button.active { color:#142331; background:#f7c944; border-color:#e4b63e; }
.gr-v100-ui .gr100-notice-day { margin:16px 0 22px; }
.gr-v100-ui .gr100-notice-day h3 { font-size:12px; font-weight:800; color:#617588; background:#f1f4f7; border-radius:9px; padding:7px 12px; margin:0 0 11px; }
.gr-v100-ui .gr100-notice-list { display:grid; gap:9px; }
.gr-v100-ui .notification-row { gap:13px; margin:0; }
.gr-v100-ui .gr100-notice-glyph { display:grid; place-items:center; width:37px; height:37px; border-radius:10px; flex-shrink:0; background:#f1f3f6; color:#60768b; font-size:18px; }
.gr-v100-ui .notification-row.unread .gr100-notice-glyph { background:#fff1bd; color:#755a08; }
.gr-v100-ui .gr100-notice-copy { flex:1; min-width:0; }
.gr-v100-ui .gr100-notice-copy b { display:block; overflow-wrap:anywhere; }
@media (max-width:880px){
 .gr-v100-ui .gr100-notice-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 .gr-v100-ui .gr100-notice-filters button { font-size:11px; padding:9px 5px; }
}
@media (prefers-color-scheme:dark){
 .gr-v100-ui .gr100-notice-filters button { background:#253749; color:#dbe7f2; border-color:#425468; }
 .gr-v100-ui .gr100-notice-filters button.active { background:#f7c944; color:#142331; border-color:#f7c944; }
 .gr-v100-ui .gr100-notice-day h3 { background:#253649; color:#bfcdd9; }
 .gr-v100-ui .gr100-notice-glyph { background:#33475b; color:#d7e4ee; }
}

/* Login and first-run language picker use the same native brand, not old yellow half-screen. */
.authback {
  min-height:100dvh;
  padding:25px;
  background:radial-gradient(circle at 15% 20%,#2d4759,#101923 70%);
}
.authpanel {
  width:min(900px,100%);
  border:1px solid #445569;
  border-top:4px solid #f7c944;
  border-radius:20px;
  background:#fff;
  box-shadow:0 20px 70px #0006;
}
.authpanel .authvisual {
  background:linear-gradient(150deg,#162635,#263c4e);
  color:#fff;
  padding:40px;
}
.authpanel .authvisual h1 { color:#f7c944; line-height:1.4; }
.authpanel .authvisual p { color:#dce7ef; }
.authpanel .authvisual .mark { border:2px solid #f7c944; background:#fff; }
.authpanel .authform { background:#fff; padding:34px; }
.authpanel .authform .btn { background:#f7c944; color:#142331; font-weight:850; }
.authback .language-card { max-width:640px; border-top:4px solid #f7c944; box-shadow:0 20px 70px #0004; }
.authback .language-options { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.authback .language-options button { flex:1 1 125px; }
@media(max-width:720px){
  .authback { padding:12px; align-items:center; }
  .authpanel { display:flex!important; flex-direction:column; border-radius:18px; max-width:480px; }
  .authpanel .authvisual { padding:20px 24px; gap:7px; }
  .authpanel .authvisual h1 { font-size:23px; margin:7px 0; }
  .authpanel .authvisual p { font-size:12px; }
  .authpanel .authform { padding:21px; }
}
