/* JTG 3.0.0: shared design tokens, restrained light UI and touch-first controls.
   Business values, table data and print document templates are not calculated here. */
@font-face {
  font-family: JTG3;
  src: url("../fonts/jtg3-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: JTG3;
  src: url("../fonts/jtg3-latin-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: JTG3;
  src: url("../fonts/jtg3-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: JTG3;
  src: url("../fonts/jtg3-arabic-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
:root {
  --r3-ink: #19344f;
  --r3-muted: #65778c;
  --r3-blue: #285f91;
  --r3-accent: #c77b3e;
  --r3-bg: #f4f6f9;
  --r3-line: #dfe6ee;
  --r3-radius: 14px;
  --r3-shadow: 0 3px 15px #16335108;
  --r3-topbar-height: 58px;
  color-scheme: light;
}
.r3-app {
  font-family: JTG3, Arial, sans-serif;
  background: var(--r3-bg);
  color: var(--r3-ink);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100dvh;
  margin: 0;
}
.r3-app [x-cloak],
.r3-app [hidden] {
  display: none !important;
}
.r3-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.r3-app :focus-visible {
  outline: 3px solid #75b1df;
  outline-offset: 3px;
}
.r3-app button,
.r3-app a,
.r3-app input,
.r3-app select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.r3-app button:not(:disabled),
.r3-app summary {
  cursor: pointer;
}
.r3-app button:disabled {
  cursor: default;
  opacity: 0.55;
}
.r3-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 1000;
  border: 2px solid var(--r3-blue);
  border-radius: 12px;
}
.r3-skip:focus {
  top: 12px;
}
.r3-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #142d46;
  color: #c6d4e1;
  display: flex;
  flex-direction: column;
  z-index: 100;
  height: 100dvh;
  border-right: 1px solid #ffffff0d;
}
.r3-brand {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #ffffff0c;
}
.r3-brand a {
  color: white;
  text-decoration: none;
}
.r3-brand b {
  font-size: 26px;
  letter-spacing: 4px;
  font-weight: 600;
}
.r3-brand b span {
  display: block;
  letter-spacing: 2.4px;
  font-size: 9px;
  color: #a9b9c9;
  margin-top: 1px;
}
.r3-page-finder {
  margin: 16px 16px 7px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  background: #ffffff08;
  color: #c6d4e1;
  text-align: left;
  font-size: 12px;
}
.r3-page-finder kbd {
  font-size: 10px;
  color: #90a7bd;
}
.r3-navigation {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px 12px 20px;
  flex: 1;
  scrollbar-width: thin;
}
.r3-nav-group {
  margin: 9px 0;
}
.r3-nav-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 600;
  color: #91a8be;
  list-style: none;
}
.r3-nav-group summary::-webkit-details-marker {
  display: none;
}
.r3-nav-group:not([open]) summary span {
  transform: rotate(-90deg);
}
.r3-nav-link {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  margin: 2px 0;
  color: #c6d4e1;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.r3-nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.r3-nav-link:hover {
  background: #ffffff09;
  color: white;
}
.r3-nav-link[aria-current="page"] {
  background: #eef4fa;
  color: #183b5b;
  font-weight: 600;
  box-shadow: inset 3px 0 #c77b3e;
}
.r3-account {
  padding: 17px 20px;
  border-top: 1px solid #ffffff12;
}
.r3-account strong,
.r3-account small {
  display: block;
}
.r3-account strong {
  font-size: 12px;
  color: white;
}
.r3-account small {
  font-size: 10px;
  color: #9cb0c4;
  margin-top: 3px;
}
.r3-account button {
  margin-top: 12px;
  min-height: 36px;
  width: 100%;
  background: transparent;
  border: 1px solid #ffffff1c;
  color: #c8d6e3;
  border-radius: 9px;
  font-size: 11px;
}
.r3-workspace {
  min-width: 0;
}
.r3-owner .r3-workspace {
  margin-left: 246px;
}
.r3-topbar {
  height: var(--r3-topbar-height);
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffffef;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--r3-line);
}
.r3-location {
  font-size: 12px;
  font-weight: 600;
}
.r3-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 13px;
  align-items: center;
}
.r3-topbar-store {
  font-size: 11px;
  color: var(--r3-muted);
  text-decoration: none;
}
.r3-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--r3-line);
  background: white;
  border-radius: 11px;
  color: var(--r3-ink);
  font-size: 21px;
}
.r3-connection {
  font-size: 11px;
  color: #9d552b;
}
.r3-mobile-only {
  display: none;
}
.r3-app #main-content {
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
  display: block;
  background: var(--r3-bg);
}
.r3-content {
  min-width: 0;
  max-width: 1800px;
  margin: auto;
}
.r3-owner .r3-content {
  padding: 24px;
}
.r3-public .r3-content {
  padding: 0;
}
.r3-owner .r3-content h1 {
  font-size: clamp(20px, 2.3vw, 27px) !important;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--r3-ink);
}
.r3-owner .r3-content h2 {
  letter-spacing: -0.2px;
}
.r3-owner .r3-content > div.h-full {
  height: auto;
  min-height: calc(100dvh - 110px);
}
.r3-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.r3-app select,
.r3-app textarea {
  font-family: inherit;
  font-size: 14px;
  border-radius: 11px;
  border-color: #d3dde8;
  min-height: 43px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.r3-app input:focus,
.r3-app select:focus,
.r3-app textarea:focus {
  border-color: #7eaccd;
  box-shadow: 0 0 0 3px #6197bd13;
}
.r3-app input[type="checkbox"],
.r3-app input[type="radio"] {
  accent-color: var(--r3-blue);
  width: 18px;
  height: 18px;
  min-height: 0;
}
.r3-app label {
  line-height: 1.5;
}
.r3-app input[aria-invalid="true"],
.r3-app select[aria-invalid="true"] {
  border-color: #b54a47;
}
.r3-owner .r3-content button,
.r3-owner .r3-content .rt-button {
  border-radius: 11px;
  min-height: 40px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.r3-owner .r3-content .rounded-2xl {
  border-radius: var(--r3-radius);
}
.r3-owner .r3-content .shadow-sm {
  box-shadow: var(--r3-shadow);
}
.r3-app .rt-primary,
.r3-app .jtg-primary {
  background: var(--r3-blue);
  border-color: var(--r3-blue);
  color: white;
}
.r3-app .rt-table th,
.r3-app .u2-page th,
.r3-app .bh-table th {
  background: #f0f4f8;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #667e94;
}
.r3-app .rt-table td,
.r3-app .u2-page td {
  vertical-align: middle;
}
.r3-flash {
  background: #fff7eb;
  border: 1px solid #ead6bc;
  padding: 13px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 13px;
}
.r3-finder {
  width: min(560px, 92vw);
  max-height: 80dvh;
  border: 1px solid var(--r3-line);
  border-radius: 19px;
  padding: 22px;
  box-shadow: 0 25px 100px #0e2a4640;
  color: var(--r3-ink);
}
.r3-finder::backdrop {
  background: #102b4870;
  backdrop-filter: blur(3px);
}
.r3-finder header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.r3-finder h2 {
  font-size: 18px;
  font-weight: 600;
}
.r3-finder header button {
  border: 0;
  background: transparent;
  font-size: 25px;
  min-width: 40px;
  min-height: 40px;
}
.r3-finder input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--r3-line);
  margin-bottom: 12px;
}
.r3-finder #r3-find-results {
  max-height: 48dvh;
  overflow: auto;
}
.r3-finder a {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13px;
  text-decoration: none;
  color: var(--r3-ink);
}
.r3-finder a:hover {
  background: #f0f4f8;
}
.r3-finder p {
  font-size: 11px;
  color: var(--r3-muted);
  margin-top: 14px;
}
.r3-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.r3-quick-actions a {
  border: 1px solid var(--r3-line);
  background: white;
  padding: 15px 16px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: var(--r3-shadow);
}
.r3-quick-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--r3-blue);
  stroke-width: 1.7;
}
.r3-quick-actions strong {
  display: block;
  font-size: 12px;
  color: var(--r3-ink);
}
.r3-quick-actions small {
  display: block;
  font-size: 10px;
  color: var(--r3-muted);
  margin-top: 2px;
}
/* Existing store layout and tap-to-add rules remain; cart gets restrained colors and safe-area spacing. */
.r3-public .shop-active {
  background: #faf9f6;
}
.r3-public .shop-active .sp-header h1 {
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.r3-public .shop-active .sp-cart aside {
  background: #fff;
  border-left: 1px solid var(--r3-line);
  box-shadow: -15px 0 70px #1735531a;
}
.r3-public .shop-active .sp-cart {
  overscroll-behavior: contain;
}
.r3-public .shop-active .sp-cart aside > div:last-child {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.r3-public .shop-active .sp-cart button {
  min-height: 44px;
}
.r3-public .shop-active .sp-cart h2 {
  font-weight: 600;
}
.r3-public .shop-active .sp-cart img {
  object-fit: contain;
  background: #f7f8fa;
  border-radius: 9px;
}
@media (max-width: 1023px) {
  .r3-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(290px, 86vw);
  }
  .r3-sidebar.is-open {
    transform: translateX(0);
  }
  .r3-owner .r3-workspace {
    margin-left: 0;
  }
  .r3-mobile-only {
    display: inline-flex;
  }
  .r3-backdrop {
    position: fixed;
    inset: 0;
    background: #102b486b;
    z-index: 90;
    backdrop-filter: blur(2px);
  }
  .r3-nav-open {
    overflow: hidden !important;
  }
  .r3-topbar {
    padding: 0 15px;
  }
  .r3-owner .r3-content {
    padding: 16px;
  }
  .r3-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .r3-owner .r3-content {
    padding: 12px;
  }
  .r3-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .r3-app select,
  .r3-app textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .r3-owner .r3-content button {
    min-height: 44px;
  }
  .r3-topbar-store {
    display: none;
  }
  .r3-connection {
    font-size: 9px;
    max-width: 120px;
  }
  .r3-owner .r3-content > div {
    max-width: 100%;
  }
  .r3-owner .r3-content header.sticky {
    position: relative;
    top: auto;
  }
  .r3-quick-actions a {
    padding: 12px;
  }
  .r3-finder {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .r3-app * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .r3-sidebar,
  .r3-topbar,
  .r3-backdrop,
  .r3-skip,
  .r3-quick-actions,
  .r3-finder {
    display: none !important;
  }
  .r3-owner .r3-workspace {
    margin: 0;
  }
  .r3-owner .r3-content {
    padding: 0;
  }
  .r3-app #main-content {
    background: white !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* JTG 3.0.0: prevent the page behind a touch cart from scrolling. */
.r3-cart-open {
  overflow: hidden !important;
}

/* JTG 3.0.0: accessible dismiss target outside page content. */
.r3-app .jtg-notice button {
  min-width: 44px;
  min-height: 44px;
}
