:root {
  --bg: #090e14;
  --bg-soft: #101821;
  --panel: #141f2a;
  --panel-2: #192634;
  --line: #2b3c4b;
  --text: #edf5f7;
  --muted: #9fb0bc;
  --green: #37eb78;
  --cyan: #00d2ff;
  --lime: #9cff2d;
  --amber: #ffd166;
  --danger: #ff6b6b;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.container.narrow { width: min(780px, calc(100% - 32px)); }
.page-band { padding: 44px 0; }
.page-band.first { padding-top: 56px; }
.muted { color: var(--muted); }

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: #13202b;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); }
.btn.primary { background: linear-gradient(135deg, #1fbf68, #0ba6cb); color: #061018; border: 0; font-weight: 650; }
.btn.ghost { background: #101821; }
.btn.buy { background: #21d66d; color: #04110b; border: 0; font-weight: 700; width: 100%; }
.btn.big { min-height: 58px; font-size: 1.08rem; }
.btn.wide { width: 100%; }
.btn.icon-only { width: 38px; min-height: 38px; padding: 0; }
.btn.danger:hover { border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ico { width: 20px; height: 20px; flex: 0 0 20px; }

.site-header {
  background: rgba(9, 14, 20, .98);
  border-bottom: 1px solid #172532;
}
.header-grid {
  min-height: 92px;
  display: grid;
  grid-template-columns: 250px 1fr 190px;
  align-items: center;
  gap: 20px;
}
.brand, .admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand strong { color: var(--green); }
.search-box, .subbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0e151d;
  border: 1px solid #203341;
  border-radius: var(--radius);
  padding: 7px 8px 7px 12px;
}
.search-box input, .subbar-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: 0;
}
.search-box button { border: 0; border-radius: 6px; padding: 9px 14px; background: var(--green); color: #05100a; font-weight: 650; }
.store-search-tools { gap: 6px; }
.store-search-tools > input { min-width: 80px; }
.search-sort-control {
  min-width: 138px;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 1px;
  border-left: 1px solid #2a4050;
  padding: 0 7px 0 10px;
}
.search-sort-control span { color: #86a0ad; font-size: .62rem; font-weight: 650; line-height: 1; }
.search-sort-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  color-scheme: dark;
  padding: 0 20px 0 0;
  font-size: .8rem;
  font-weight: 700;
  outline: 0;
}
.search-sort-control select option { background: #0c161f; color: var(--text); }
.search-filter-clear {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid #304655;
  border-radius: 6px;
  color: #a9bdc7;
}
.search-filter-clear:hover { border-color: var(--danger); color: #fff; }
.search-filter-clear .ico { width: 16px; height: 16px; flex-basis: 16px; }
.subbar-search .search-sort-control { min-width: 126px; padding-left: 7px; }
.subbar-search .search-sort-control span { font-size: .56rem; }
.subbar-search .search-sort-control select { font-size: .72rem; }
.account-nav { display: flex; justify-content: flex-end; }
.icon-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border: 1px solid rgba(55, 235, 120, .58);
  border-radius: var(--radius);
  background: rgba(55, 235, 120, .08);
  box-shadow: 0 0 18px rgba(55, 235, 120, .13);
  padding: 0 13px;
  font-weight: 650;
}
.icon-link:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 210, 255, .18); }

.site-subbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 22, 30, .96);
  border-bottom: 1px solid #203341;
  backdrop-filter: blur(14px);
}
.subbar-grid {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.cat-menu { position: relative; }
.cat-toggle {
  border: 0;
  color: var(--text);
  background: #162331;
  border-radius: var(--radius);
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.cat-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  background: #101923;
  border: 1px solid #2c4152;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
}
.cat-panel.open { display: grid; gap: 4px; }
.cat-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  color: var(--muted);
}
.cat-panel a:hover { background: #162534; color: var(--text); }
.primary-subnav {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-self: center;
  gap: 6px;
  width: min(100%, 390px);
}
.primary-subnav a,
.primary-subnav button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2e4658;
  border-radius: 6px;
  background: rgba(21, 35, 47, .88);
  color: #dce9ee;
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}
.primary-subnav a { border-color: rgba(55, 235, 120, .48); background: rgba(55, 235, 120, .08); }
.primary-subnav a:hover { color: var(--green); border-color: var(--cyan); }
.primary-subnav button {
  position: relative;
  cursor: pointer;
}
.primary-subnav button:hover { color: #fff; border-color: #46657a; }
.coming-soon-pop {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -3px);
  width: max-content;
  max-width: 100px;
  border: 1px solid #365064;
  border-radius: 5px;
  background: #101923;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
  color: #d8e5eb;
  padding: 4px 7px;
  font-size: .7rem;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.primary-subnav button.show-coming-soon .coming-soon-pop {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
.subbar-search { display: none; min-height: 40px; }
.site-subbar.is-stuck .subbar-grid { grid-template-columns: auto minmax(250px, 390px) minmax(180px, 1fr) auto; }
.site-subbar.is-stuck .subbar-search { display: flex; }
.cart-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  background: #101923;
  border: 1px solid #2c4152;
  border-radius: var(--radius);
  padding: 0 9px 0 10px;
  color: var(--text);
  font-weight: 700;
}
.cart-pill span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #041109;
  font-weight: 700;
}
.cart-pill strong { font-size: .78rem; letter-spacing: .02em; }

.hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 13, 19, .96) 0%, rgba(8, 13, 19, .84) 42%, rgba(8, 13, 19, .25) 100%),
    var(--hero-image) center / cover no-repeat;
  border-bottom: 1px solid #1a2c39;
}
a.hero { color: var(--text); }
.hero-clickable { cursor: pointer; }
.hero-clickable:hover .hero-copy h1 { color: #fff; text-shadow: 0 0 24px rgba(55, 235, 120, .18); }
.hero-inner { display: flex; align-items: center; min-height: 420px; }
.hero-copy { width: min(620px, 100%); padding: 36px 0; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1; letter-spacing: 0; }
.hero p { color: #c7d4db; font-size: 1.18rem; margin: 0 0 24px; }
.feature-triplet, .feature-pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-pair {
  width: min(760px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
}
.feature-card, .product-card, .panel, .summary-panel, .form-card, .service-grid article, .stat-card {
  border: 1px solid #274050;
  background: linear-gradient(180deg, rgba(25, 38, 52, .96), rgba(15, 23, 32, .96));
  border-radius: var(--radius);
}
.feature-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(55, 235, 120, .08);
}
.feature-card:hover, .product-card:hover { border-color: var(--green); box-shadow: 0 0 24px rgba(55, 235, 120, .12); }
.feature-card h2, .section-head h2, .panel h1, .panel h2 { margin: 0; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.feature-title .ico { width: 25px; height: 25px; color: var(--green); }
.feature-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #b9cbd4;
}
.feature-icons span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #2d4658;
  border-radius: 999px;
  background: #0e1720;
}
.feature-icons .ico { width: 21px; height: 21px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h1, .section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head > a { color: var(--green); font-weight: 800; }
.section-head-centered { justify-content: center; text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
}
.public-product-list { display: grid; gap: 22px; }
.public-load-more { display: flex; justify-content: center; }
.public-load-more .btn { min-width: 190px; }
.home-product-list { padding-top: 34px; }
.store-filter-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 10px;
}
.store-filters {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 6px;
  border: 1px solid #274050;
  border-radius: var(--radius);
  background: #0e1821;
  padding: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.store-filters label {
  min-width: 0;
  min-height: 40px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid #2a4150;
  border-radius: 6px;
  background: #0a131b;
  padding: 3px 8px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
}
.store-filters select {
  width: 100%;
  min-width: 0;
  min-height: 20px;
  border: 0;
  border-radius: 0;
  padding: 0 24px 0 0;
  background: transparent;
  color: var(--text);
  color-scheme: dark;
  font-size: .86rem;
  font-weight: 650;
}
.store-filters select option { background: #0c161f; color: #edf7fa; }
.store-filters label:focus-within { border-color: var(--green); }
.store-filter-availability { flex: 0 1 180px; width: 180px; }
.store-filter-sort { flex: 0 1 165px; width: 165px; }
.store-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.store-filter-actions .btn { min-height: 40px; padding: 7px 11px; }
.store-filter-actions .btn .ico { width: 17px; height: 17px; }
.store-filter-clear { flex: 0 0 40px; }
.store-filter-dock {
  position: fixed;
  z-index: 19;
  top: var(--filter-dock-top, 54px);
  right: 0;
  left: 0;
  border-bottom: 1px solid #203746;
  background: rgba(9, 16, 23, .97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}
.store-filter-dock[hidden] { display: none; }
.store-filter-dock .container { display: flex; justify-content: center; padding: 3px 0; }
.store-filters-compact { flex-wrap: nowrap; gap: 4px; padding: 3px 4px; border-color: #213744; box-shadow: none; }
.store-filters-compact label { min-height: 30px; padding: 1px 6px; }
.store-filters-compact .store-filter-availability { width: 150px; }
.store-filters-compact .store-filter-sort { width: 135px; }
.store-filters-compact .store-filter-actions { gap: 4px; }
.store-filters-compact .store-filter-actions .btn { min-height: 30px; padding: 3px 7px; font-size: .72rem; }
.store-filters-compact .store-filter-clear { flex-basis: 30px; width: 30px; }
.store-result-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
}
.product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card.is-unavailable {
  border-color: #3d4851;
}
.product-card.is-unavailable:hover {
  border-color: rgba(255, 107, 107, .58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.product-view-link {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}
.product-unavailable-message {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: var(--radius);
  background: rgba(255, 107, 107, .08);
  color: #d9e1e6;
  line-height: 1.5;
}
.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #233746;
}
.product-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  object-fit: contain;
  transition: opacity .28s ease;
}
.product-thumb-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-thumb.has-secondary:focus-visible .product-thumb-primary,
.product-thumb.has-secondary:active .product-thumb-primary { opacity: 0; }
.product-thumb.has-secondary:focus-visible .product-thumb-secondary,
.product-thumb.has-secondary:active .product-thumb-secondary { opacity: 1; }
@media (hover: hover) {
  .product-card:hover .product-thumb.has-secondary .product-thumb-primary { opacity: 0; }
  .product-card:hover .product-thumb.has-secondary .product-thumb-secondary { opacity: 1; }
}
.product-info {
  min-height: 240px;
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-commerce {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title {
  min-height: 48px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.product-card .add-to-cart-form { margin-top: 4px; }
.stock { width: max-content; font-size: .82rem; border-radius: 999px; padding: 4px 9px; font-weight: 800; }
.stock.ok { background: rgba(55, 235, 120, .12); color: var(--green); }
.stock.off { background: rgba(255, 107, 107, .12); color: var(--danger); }
.stock.big { display: block; font-size: .95rem; margin-bottom: 18px; }
.old-price { color: #7f8f9a; text-decoration: line-through; }
.price, .detail-price { font-size: 1.55rem; color: #fff; line-height: 1; }
.detail-price { font-size: 2.4rem; display: block; margin: 16px 0 8px; }
.pix { color: var(--green); font-weight: 900; }
.installments { color: var(--muted); font-size: .92rem; }
.empty-state {
  border: 1px dashed #2d4354;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  background: #101821;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  position: relative;
  background: #fff;
  border: 1px solid #263c4e;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery-main > img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}
.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px;
}
.gallery-thumbs button {
  aspect-ratio: 1;
  border: 1px solid #30485a;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  padding: 0;
}
.gallery-thumbs img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.image-lightbox[hidden] { display: none; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 11, .92);
  cursor: zoom-out;
}
.image-lightbox img {
  width: auto;
  height: auto;
  max-width: min(94vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .65);
  cursor: default;
}
body.lightbox-open { overflow: hidden; }
.buy-panel {
  background: var(--panel);
  border: 1px solid #2a4152;
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 76px;
}
.buy-panel h1 { margin: 4px 0 12px; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; }
.crumb { color: var(--cyan); font-weight: 800; }
.promo-box {
  border: 1px solid rgba(55, 235, 120, .35);
  background: rgba(55, 235, 120, .08);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 4px;
  margin: 12px 0;
}
.promo-box strong { color: var(--green); }
.promo-box em { color: var(--amber); font-style: normal; }
.payment-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.payment-lines span {
  background: #0f1720;
  border: 1px solid #263c4e;
  border-radius: var(--radius);
  padding: 12px;
}
.rich-description {
  color: #d6e1e5;
}
.rich-description img { border-radius: var(--radius); border: 1px solid #263c4e; margin: 16px 0; }
.video-wrap { aspect-ratio: 16 / 9; margin-top: 18px; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.product-order-request {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid rgba(0, 210, 255, .38);
  border-radius: var(--radius);
  background: rgba(0, 210, 255, .07);
}
.product-order-request h2 { margin: 0; font-size: 1.15rem; }
.product-order-request p { margin: 0; color: #c7d6de; line-height: 1.5; }
.product-order-request .add-to-cart-form { margin-top: 4px; }
.order-analysis-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 209, 102, .48);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .08);
  color: #f5e6b7;
}
.order-analysis-notice .icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--amber); }
.order-analysis-notice div { display: grid; gap: 3px; }
.order-analysis-notice p { margin: 0; color: #d9d2bd; line-height: 1.45; }
.backorder-badge,
.order-backorder-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid rgba(255, 209, 102, .52);
  border-radius: 999px;
  background: rgba(255, 209, 102, .1);
  color: #ffdc88;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.1;
}
.cart-row.is-backorder-item { border-color: rgba(0, 210, 255, .42); }
.cart-row.is-backorder-item > b { color: var(--cyan); }
.summary-line.is-backorder { align-items: flex-start; }
.summary-line.is-backorder span { display: grid; gap: 4px; }
.summary-line.is-backorder small { color: var(--amber); font-weight: 800; }
.summary-line.is-backorder b { color: var(--cyan); white-space: nowrap; }
.summary-backorder-note { color: #adbec7; font-size: .82rem; line-height: 1.45; }
.order-admin-code { flex-wrap: wrap; }
.admin-backorder-notice {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, .46);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .08);
  color: #ffdc88;
}
.admin-backorder-notice span { color: #d9d2bd; }
.mini-list > .is-backorder { border-color: rgba(255, 209, 102, .4); }
.cart-layout, .checkout-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}
.cart-table { display: grid; gap: 12px; margin: 18px 0; }
.cart-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto 120px 40px;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid #263c4e;
  border-radius: var(--radius);
  padding: 12px;
}
.cart-row.is-zero {
  border-color: rgba(255, 107, 107, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .18);
}
.cart-row img { width: 82px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-product-info { min-width: 0; display: grid; gap: 4px; }
.cart-product-info > span { color: var(--muted); }
.cart-stock-note { color: #9fb2bc; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.cart-stock-note.is-limit { color: var(--amber); }
.cart-stock-note.is-backorder { color: var(--cyan); }
.cart-stock-note.is-zero { color: var(--danger); }
.cart-remove {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #30495c;
  border-radius: 6px;
  background: #101b25;
  color: #bdcbd2;
  cursor: pointer;
}
.cart-remove:hover { border-color: var(--danger); color: var(--danger); background: rgba(255, 107, 107, .08); }
.cart-remove svg { width: 18px; height: 18px; }
.cart-quantity {
  width: max-content;
  display: grid;
  grid-template-columns: 34px 48px 34px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #30495c;
  border-radius: 6px;
  background: #0d151e;
}
.cart-quantity button {
  width: 34px;
  min-height: 38px;
  border: 0;
  background: #152330;
  color: #f3f8fa;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-quantity button:hover { background: #1d3443; color: var(--green); }
.cart-quantity input {
  width: 48px;
  min-height: 38px;
  border-width: 0 1px;
  border-style: solid;
  border-color: #30495c;
  border-radius: 0;
  padding: 4px;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cart-quantity input::-webkit-inner-spin-button,
.cart-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.summary-panel {
  padding: 20px;
  position: sticky;
  top: 76px;
}
.summary-panel h2 { margin-top: 0; }
.summary-panel > strong, .summary-total { display: block; font-size: 2rem; margin: 12px 0; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #263c4e; padding: 10px 0; }
.shipping-summary-line { color: #cde0e7; }
.checkout-shipping {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 0;
  border: 1px solid #2b4253;
  border-radius: var(--radius);
  background: #0e171f;
  padding: 15px;
}
.checkout-shipping legend {
  padding: 0 7px;
  color: #eef6f8;
  font-weight: 800;
}
.shipping-option {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #294153;
  border-radius: 7px;
  background: #121e28;
  padding: 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.shipping-option[hidden] { display: none; }
.shipping-option:has(input:checked) {
  border-color: var(--green);
  background: rgba(55, 235, 120, .07);
  box-shadow: inset 3px 0 0 var(--green);
}
.shipping-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.shipping-option > span { min-width: 0; display: grid; gap: 2px; }
.shipping-option strong { color: #f2f8fa; }
.shipping-option small { color: var(--muted); font-weight: 500; }
.shipping-option > b { color: var(--green); white-space: nowrap; }
.shipping-location-hint { margin: 2px 2px 0; color: var(--muted); font-size: .84rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

.home-showcase-settings { gap: 0; }
.home-showcase-settings > .muted { margin-top: 0; }
.home-showcase-setting { padding: 18px 0; }
.home-showcase-setting + .home-showcase-setting { border-top: 1px solid #2a4050; }
.home-showcase-setting-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.home-showcase-setting-head strong { color: var(--green); font-size: 1.02rem; }
.home-showcase-setting-head span { color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .product-thumb img { transition: none; }
}

label { position: relative; display: grid; gap: 7px; color: #cfdae0; font-weight: 700; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid #304657;
  border-radius: var(--radius);
  background: #0c141c;
  color: var(--text);
  padding: 11px 12px;
  outline: 0;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); }
.customer-suggest {
  position: relative;
  z-index: 30;
}
.customer-suggest:not(:empty) {
  position: absolute;
  width: min(460px, 100%);
  margin-top: 76px;
  display: grid;
  gap: 6px;
  background: #101923;
  border: 1px solid #2d4354;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
}
.customer-suggest button {
  border: 0;
  border-radius: 6px;
  background: #162331;
  color: var(--text);
  text-align: left;
  padding: 9px;
  display: grid;
}
.customer-suggest span { color: var(--muted); font-size: .88rem; }
.form-card, .admin-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
}
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkline, .check-grid label { display: flex; align-items: center; gap: 8px; }
.checkline input, .check-grid input { width: auto; }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-category-picker {
  min-width: 0;
  margin: 0;
  border: 1px solid #2a3d4d;
  border-radius: var(--radius);
  padding: 12px;
}
.product-category-picker legend {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  padding: 0 6px;
}
.product-category-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.product-category-options label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a3d4d;
  border-radius: 7px;
  background: #101923;
  padding: 9px 10px;
  cursor: pointer;
}
.product-category-options label:has(input:checked) {
  border-color: rgba(55, 235, 120, .7);
  background: rgba(55, 235, 120, .08);
}
.product-category-options input { width: auto; flex: 0 0 auto; }
.product-category-options label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.product-category-option-icon { display: grid; place-items: center; color: var(--green); }
.product-category-option-icon .ico { width: 18px; height: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-grid article { padding: 20px; }
.service-grid h2 { margin: 0 0 8px; }
.thanks { min-height: 72vh; display: grid; align-items: center; text-align: center; padding: 60px 0; }
.thanks img { width: 150px; margin: 0 auto 20px; }
.legal h2 { margin-top: 28px; }

.cookie-box {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #111b25;
  border: 1px solid #2d4354;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.cookie-box.show { display: flex; }
.cookie-box p { margin: 4px 0 0; color: var(--muted); }
.cart-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -120%);
  width: min(520px, calc(100% - 28px));
  z-index: 60;
  background: #101923;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform .24s ease;
}
.cart-toast.show { transform: translate(-50%, 0); }
.cart-toast div { display: flex; gap: 10px; }
.cart-toast.is-error { border-color: var(--danger); }

.site-footer { border-top: 1px solid #243846; background: #0c131b; }
.footer-main { padding: 48px 0; }
.footer-layout {
  display: grid;
  grid-template-columns: 1.25fr .65fr 1fr;
  align-items: start;
  gap: 54px;
}
.footer-brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.footer-logo-large { width: 132px; height: 132px; object-fit: contain; flex: 0 0 auto; }
.footer-brand strong { display: block; margin-bottom: 7px; color: #fff; font-size: 1.25rem; }
.footer-brand p, .footer-service p { margin: 0; max-width: 330px; color: var(--muted); }
.footer-nav { display: grid; gap: 7px; }
.footer-nav h2, .footer-service h2 { margin: 0 0 11px; color: #fff; font-size: .92rem; }
.footer-nav a { width: fit-content; color: #aebdc5; padding: 2px 0; }
.footer-nav a:hover { color: var(--green); }
.footer-service { display: grid; justify-items: start; gap: 15px; }
.footer-contact-button { min-width: 150px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-socials a { display: inline-flex; align-items: center; gap: 6px; color: #b9c8cf; font-size: .86rem; }
.footer-socials a:hover { color: var(--cyan); }
.footer-socials .ico { width: 18px; height: 18px; }
.footer-meta { border-top: 1px solid #1d2d39; background: #080d13; color: #899ca7; padding: 16px 0; font-size: .8rem; }
.footer-meta-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.footer-meta-row > span:last-child { justify-self: end; }
.footer-meta a { color: #c6d5dc; }
.footer-meta a:hover { color: var(--green); }
.footer-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-trust span { display: inline-flex; align-items: center; gap: 5px; }
.footer-trust .ico { width: 15px; height: 15px; color: var(--green); }

.contact-page { min-height: 610px; display: grid; align-items: center; }
.contact-page-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: center; gap: 72px; }
.contact-page-copy { max-width: 700px; }
.contact-kicker { display: block; margin-bottom: 9px; color: var(--cyan); font-weight: 750; }
.contact-page h1 { margin: 0 0 16px; max-width: 680px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; }
.contact-page-copy > p { max-width: 650px; margin: 0; color: #bac8cf; font-size: 1.08rem; }
.contact-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.contact-phone-link { display: inline-flex; align-items: center; gap: 11px; border-left: 2px solid var(--green); padding: 3px 0 3px 14px; }
.contact-phone-link .ico { width: 23px; height: 23px; color: var(--green); }
.contact-phone-link span { display: grid; }
.contact-phone-link small { color: var(--muted); }
.contact-phone-link strong { color: #fff; font-size: 1.08rem; }
.contact-brand-mark { display: grid; justify-items: center; gap: 8px; border-left: 1px solid #263a48; padding-left: 54px; text-align: center; }
.contact-brand-mark img { width: min(230px, 100%); }
.contact-brand-mark strong { color: #fff; font-size: 1.2rem; }
.contact-brand-mark span { color: var(--muted); }

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid #304657;
  background: #101923;
}
.flash-success { border-color: rgba(55,235,120,.45); }
.flash-error { border-color: rgba(255,107,107,.55); }

.admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(0,210,255,.16), transparent 34%), var(--bg); }
.login-shell { width: min(430px, calc(100% - 28px)); }
.login-card { background: var(--panel); border: 1px solid #2b4354; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login-card img { width: 112px; margin: 0 auto; }
.login-card h1 { margin: 0; text-align: center; }
.admin-body { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: #0b1118; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0d151e;
  border-right: 1px solid #213241;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-brand img { width: 54px; height: 54px; }
.admin-sidebar nav { display: grid; gap: 7px; min-height: 0; overflow-y: auto; }
.admin-sidebar nav a, .site-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #b7c6cf;
  border-radius: 6px;
}
.admin-sidebar nav a .ico { width: 17px; height: 17px; }
.admin-sidebar nav a:hover, .site-link:hover { background: #142231; color: #fff; }
.admin-nav-main { border: 1px solid #233747; background: #101923; }
.admin-sidebar nav a.is-active {
  background: rgba(55, 235, 120, .1);
  box-shadow: inset 3px 0 0 var(--green);
  color: #fff;
}
.admin-nav-group {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  border: 1px solid #213442;
  border-radius: 6px;
  background: #0b131b;
  overflow: hidden;
}
.admin-nav-group-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #243846;
  background: #101b25;
  padding: 5px;
  color: #91a5b2;
}
.admin-nav-group-label > span {
  position: absolute;
  top: 50%;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-nav-group-items-1 .admin-nav-group-label > span { font-size: .44rem; }
.admin-nav-group-items-2 .admin-nav-group-label > span { font-size: .56rem; }
.admin-nav-group-label .nav-notice-dot { position: absolute; right: 5px; bottom: 5px; margin: 0; }
.admin-nav-group-links { display: grid; gap: 2px; padding: 4px; }
.admin-nav-group-links a { min-width: 0; min-height: 38px; padding: 8px 9px; }
.admin-mail-link {
  min-height: 42px;
  border: 1px solid #29485a;
  background: #101b25;
}
.admin-mail-link:hover { border-color: rgba(0, 210, 255, .55); }
.nav-notice-dot,
.order-unread-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 13px rgba(55, 235, 120, .58);
}
.nav-notice-dot { margin-left: auto; }
.nav-notice-dot[hidden],
.order-unread-dot[hidden] { display: none; }
.logout-link {
  margin-top: auto;
  border: 1px solid rgba(255, 107, 107, .42);
  background: rgba(255, 107, 107, .07);
  color: #ffaaaa;
}
.logout-link:hover {
  border-color: rgba(255, 107, 107, .7);
  background: rgba(255, 107, 107, .13);
  color: #ffd0d0;
}
.logout-link .ico { width: 17px; height: 17px; }
.admin-view-site {
  border-color: rgba(55, 235, 120, .48);
  background: rgba(55, 235, 120, .06);
  box-shadow: 0 0 18px rgba(55, 235, 120, .05);
}
.admin-view-site:hover {
  border-color: rgba(55, 235, 120, .75);
  background: rgba(55, 235, 120, .11);
}
.admin-main { min-width: 0; padding: 22px; }
.admin-top {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: #101923;
  border: 1px solid #263c4e;
  border-radius: var(--radius);
  padding: 12px 16px;
}
.admin-top div:first-child { display: grid; }
.admin-top span { color: var(--muted); }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.notice-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2f485b;
  border-radius: 999px;
  background: #101923;
  color: var(--text);
  padding: 0 10px 0 12px;
}
.notice-button b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #2f485b;
  background: #15212b;
  color: #9fb1bd;
  font-weight: 700;
  line-height: 1;
  padding-top: 1px;
}
.notice-button.has-unread b {
  border-color: transparent;
  background: var(--green);
  color: #061109;
}
.logout-x {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  background: #101923;
  color: #c8d4da;
  font-size: 1.25rem;
  line-height: 1;
}
.logout-x:hover { border-color: var(--danger); color: #fff; }
.admin-live-notices {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}
.admin-live-notices a {
  pointer-events: auto;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(55, 235, 120, .55);
  border-radius: var(--radius);
  background: #101923;
  box-shadow: var(--shadow);
  padding: 12px;
  animation: noticeIn .24s ease both;
}
.admin-live-notices span { color: var(--muted); font-size: .9rem; }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.admin-grid { display: grid; gap: 18px; align-items: start; }
.admin-stack { display: grid; gap: 18px; }
.admin-grid.two { grid-template-columns: 1fr; }
.admin-grid.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.span-2 { grid-column: 1 / -1; }
.panel { padding: 20px; min-width: 0; container-type: inline-size; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-list-group + .admin-list-group {
  border-top: 1px solid #2a4152;
  margin-top: 26px;
  padding-top: 22px;
}
.admin-list-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-list-group-title h2 { margin: 0; font-size: 1.05rem; }
.admin-list-group-title span {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
}
.admin-collapse {
  padding: 0;
  overflow: hidden;
}
.admin-collapse > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.admin-collapse > summary::-webkit-details-marker { display: none; }
.admin-collapse > summary h1 { margin: 0; }
.collapse-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.collapse-plus {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease;
}
.admin-collapse[open] .collapse-plus {
  transform: rotate(45deg);
  border-color: var(--green);
}
.admin-collapse-content {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}
.admin-collapse-content > .admin-form { padding: 0; }
.form-disclosure {
  border: 1px solid #253849;
  border-radius: var(--radius);
  background: #0e161f;
  overflow: hidden;
}
.form-disclosure > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  color: #dbe8ee;
  font-weight: 800;
}
.form-disclosure > summary::-webkit-details-marker { display: none; }
.form-disclosure summary b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1;
}
.form-disclosure[open] summary b { transform: rotate(45deg); border-color: var(--green); }
.form-disclosure-content {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}
.compact-disclosure:not([open]) {
  width: fit-content;
  max-width: 100%;
}
.compact-disclosure[open] {
  width: 100%;
}
.admin-filters {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 16px;
}
.admin-filters label {
  display: grid;
  gap: 6px;
  color: #a9bac5;
  font-size: .9rem;
}
.product-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 280px) auto auto;
  margin-bottom: 0;
}
.product-stock-total { margin: 0; border-bottom: 0; padding-bottom: 0; }
.stat-card { padding: 18px; display: grid; gap: 6px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 2.2rem; }
.admin-table { display: grid; gap: 10px; }
.document-shipping-field {
  display: grid;
  gap: 14px;
  border: 1px solid #2a4050;
  border-radius: var(--radius);
  background: #0e171f;
  padding: 16px;
}
.document-shipping-field h2,
.document-shipping-field p { margin: 0; }
.shipping-rule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}
.shipping-rule-heading h3,
.shipping-rule-heading p { margin: 0; }
.shipping-rule-list { display: grid; gap: 12px; }
.shipping-rule-row {
  display: grid;
  gap: 12px;
  border: 1px solid #2a4050;
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #101b25;
  padding: 14px;
}
.shipping-rule-row.is-template { display: none; }
.shipping-rule-switches {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.danger-check { color: var(--danger); }
.admin-shipping-summary {
  margin-bottom: 18px;
}
.admin-order-totals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  border-top: 1px solid #294153;
  padding-top: 14px;
}
.admin-order-totals span:last-child {
  border: 2px solid #278b57;
  border-radius: 6px;
  padding: 7px 10px;
}
.document-panel-head { align-items: flex-start; }
.document-action-toolbar {
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}
.document-action-toolbar form { margin: 0; }
.document-action-toolbar .btn {
  min-height: 34px;
  gap: 6px;
  padding: 6px 10px;
  font-size: .8rem;
  white-space: nowrap;
}
.document-action-toolbar .ico {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.receipt-date-dialog {
  width: min(430px, calc(100% - 24px));
  border: 1px solid #355064;
  border-radius: var(--radius);
  background: #111c26;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  padding: 0;
}
.receipt-date-dialog::backdrop { background: rgba(3, 8, 12, .72); }
.receipt-date-dialog form { display: grid; gap: 16px; padding: 18px; }
.receipt-date-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.receipt-date-dialog-head > div { display: grid; gap: 2px; }
.receipt-date-dialog-head span { color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.receipt-date-dialog-head strong { font-size: 1.08rem; }
.receipt-date-dialog-head > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #30495c;
  border-radius: 6px;
  background: #0c151d;
  color: #c6d4db;
}
.receipt-date-dialog-head > button .ico { width: 17px; height: 17px; }
.receipt-date-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 10px 12px;
}
[data-admin-row-href] {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
[data-admin-row-href]:hover {
  border-color: #3c5b70;
  background: #111d27;
  transform: translateY(-1px);
}
[data-admin-row-href]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.admin-row form { display: flex; gap: 8px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions form { display: flex; }
.admin-row > *,
.category-admin-row > *,
.service-order-admin-row > *,
.customer-admin-row > *,
.product-admin-row > *,
.mini-list a > *,
.mini-list div > *,
.notice-list a > *,
.report-due-list a > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-admin-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 118px 94px auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 10px 12px;
}
.service-order-admin-row,
.customer-admin-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 175px 130px 120px 42px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 10px 12px;
}
.service-order-admin-row {
  border-left-width: 4px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.service-order-admin-row:hover {
  border-color: #3c5b70;
  background: #111d27;
  transform: translateY(-1px);
}
.service-order-admin-row .row-open-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #2f485b;
  border-radius: var(--radius);
  color: #d7e4e9;
}
.service-order-admin-row .os-status {
  width: 100%;
  max-width: 175px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 5px 10px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.service-order-admin-row .os-status-aberta,
.service-order-admin-row .os-status-rascunho {
  border-color: rgba(0, 210, 255, .58);
  background: rgba(0, 210, 255, .11);
  color: #71e7ff;
}
.service-order-admin-row .os-status-em_processo {
  border-color: rgba(255, 209, 102, .62);
  background: rgba(255, 209, 102, .11);
  color: #ffdc88;
}
.service-order-admin-row .os-status-aguardando_cliente {
  border-color: rgba(255, 154, 74, .68);
  background: rgba(255, 154, 74, .12);
  color: #ffb878;
}
.service-order-admin-row .os-status-concluida {
  border-color: rgba(55, 235, 120, .62);
  background: rgba(55, 235, 120, .11);
  color: #72f4a2;
}
.service-order-admin-row .os-status-cancelada {
  border-color: rgba(255, 107, 107, .68);
  background: rgba(255, 107, 107, .11);
  color: #ff9999;
}
.service-order-admin-row .os-status-convertida_orcamento {
  border-color: rgba(154, 135, 255, .62);
  background: rgba(154, 135, 255, .12);
  color: #c5baff;
}
.service-order-admin-row.os-row-aberta { border-left-color: var(--cyan); }
.service-order-admin-row.os-row-em_processo { border-left-color: var(--amber); }
.service-order-admin-row.os-row-aguardando_cliente { border-left-color: #ff9a4a; }
.service-order-admin-row.os-row-concluida { border-left-color: var(--green); }
.service-order-admin-row.os-row-cancelada { border-left-color: var(--danger); }
.service-order-admin-row.os-row-convertida_orcamento { border-left-color: #9a87ff; }
.service-order-admin-row.has-os-status-color {
  border-left-color: var(--os-status-color);
}
.service-order-admin-row.has-os-status-color .os-status {
  border-color: var(--os-status-color);
  background: color-mix(in srgb, var(--os-status-color) 13%, transparent);
  color: color-mix(in srgb, var(--os-status-color) 72%, white);
}
.customer-admin-row {
  grid-template-columns: minmax(190px, 1.25fr) 92px 82px repeat(3, minmax(86px, .5fr)) auto;
  border-left-width: 4px;
}
.customer-admin-row.customer-row-active { border-left-color: var(--green); }
.customer-admin-row.customer-row-inactive { border-left-color: var(--danger); }
.customer-admin-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.customer-code {
  justify-self: start;
  border: 1px solid #29475b;
  border-radius: 999px;
  padding: 5px 8px;
  color: #cfe2ea;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.service-order-admin-row span,
.customer-admin-row strong,
.customer-admin-row small { white-space: normal; }
.service-order-admin-row em,
.customer-admin-row em {
  justify-self: start;
  border: 1px solid #2f485b;
  border-radius: 999px;
  padding: 5px 8px;
  color: #c8d8df;
  font-style: normal;
  font-size: .82rem;
}
.customer-admin-row .status-pill {
  min-width: 78px;
  text-align: center;
  font-weight: 800;
}
.customer-admin-row .status-active {
  border-color: rgba(42, 238, 130, .62);
  background: rgba(42, 238, 130, .12);
  color: #69f0a6;
}
.customer-admin-row .status-inactive {
  border-color: rgba(255, 93, 93, .62);
  background: rgba(255, 93, 93, .12);
  color: #ff8b8b;
}
.customer-admin-row .status-login {
  border-color: rgba(42, 238, 130, .62);
  background: rgba(42, 238, 130, .12);
  color: #69f0a6;
}
.customer-admin-row .status-no-login {
  border-color: rgba(255, 175, 64, .68);
  background: rgba(255, 175, 64, .13);
  color: #ffc16c;
}
.customer-doc-count {
  display: grid;
  justify-items: start;
  gap: 1px;
  color: #b8c9d2;
  font-size: .8rem;
  white-space: nowrap;
}
.customer-doc-count strong { color: #f3f9fc; font-size: 1rem; }
.customer-doc-count small { color: var(--muted); font-size: .7rem; }
.customer-filters {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) repeat(3, minmax(120px, .8fr)) auto auto;
  align-items: end;
  margin: 0;
}
.credential-list { display: grid; gap: 10px; margin: 16px 0; }
.credential-list label { display: grid; gap: 5px; color: var(--muted); font-size: .82rem; }
.credential-list label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #2b4253;
  border-radius: var(--radius);
  background: #0e161f;
  padding: 6px 7px 6px 12px;
}
.credential-list code { color: #e8f5f8; overflow-wrap: anywhere; }
[data-copy-value].is-copied { border-color: var(--green); color: var(--green); }
.customer-document-list .service-order-admin-row { grid-template-columns: 110px minmax(140px, 1fr) 135px 120px 118px 42px; }
.service-order-admin-row .os-status-novo,
.service-order-admin-row .os-status-enviado {
  border-color: rgba(0, 210, 255, .58);
  background: rgba(0, 210, 255, .11);
  color: #71e7ff;
}
.service-order-admin-row .os-status-pendente,
.service-order-admin-row .os-status-em_atendimento {
  border-color: rgba(255, 209, 102, .62);
  background: rgba(255, 209, 102, .11);
  color: #ffdc88;
}
.service-order-admin-row .os-status-aprovado,
.service-order-admin-row .os-status-fechado,
.service-order-admin-row .os-status-convertido {
  border-color: rgba(55, 235, 120, .62);
  background: rgba(55, 235, 120, .11);
  color: #72f4a2;
}
.service-order-admin-row .os-status-cancelado { border-color: rgba(255, 107, 107, .68); background: rgba(255, 107, 107, .11); color: #ff9999; }
.service-order-admin-row.os-row-novo,
.service-order-admin-row.os-row-enviado { border-left-color: var(--cyan); }
.service-order-admin-row.os-row-pendente,
.service-order-admin-row.os-row-em_atendimento { border-left-color: var(--amber); }
.service-order-admin-row.os-row-aprovado,
.service-order-admin-row.os-row-fechado,
.service-order-admin-row.os-row-convertido { border-left-color: var(--green); }
.service-order-admin-row.os-row-cancelado { border-left-color: var(--danger); }
.service-order-admin-row small { color: var(--muted); }
.service-order-admin-row b { justify-self: start; color: #f4fbff; }
.quote-history-group { opacity: .86; }
.quote-admin-row.os-row-rascunho { border-left-color: var(--cyan); }
.quote-admin-row.os-row-cancelado { border-left-color: var(--danger); }
.report-due-list { display: grid; gap: 10px; }
.report-due-list a {
  display: grid;
  grid-template-columns: 130px 110px 145px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 12px;
}
.report-due-list em {
  font-style: normal;
  color: #c8d8df;
}
.report-due-list small {
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}
.ticket-list { display: grid; gap: 12px; }
.ticket-card {
  display: grid;
  gap: 10px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 12px;
}
.admin-ticket-list { margin-top: 18px; }
.admin-ticket-list .ticket-card { border-left-width: 4px; }
.admin-ticket-list .ticket-status-aberto { border-left-color: var(--cyan); }
.admin-ticket-list .ticket-status-em_atendimento { border-left-color: var(--amber); }
.admin-ticket-list .ticket-status-respondido { border-left-color: var(--green); }
.admin-ticket-list .ticket-status-fechado { border-left-color: #607482; }
.admin-ticket-list .ticket-card.is-highlighted { box-shadow: 0 0 0 1px rgba(55, 235, 120, .45), 0 0 24px rgba(55, 235, 120, .08); }
.ticket-card-head > div { display: grid; gap: 3px; }
.ticket-card-head a { color: var(--cyan); font-size: .85rem; }
.ticket-card > small { color: var(--muted); }
.admin-preview-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #315066;
  background: #101923;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
}
.customer-admin-preview .site-header,
.customer-admin-preview .site-subbar { display: none; }
.customer-history-grid .mini-list a { transition: border-color .18s ease, background .18s ease; }
.customer-history-grid .mini-list a:hover { border-color: var(--green); background: #111d27; }
.customer-document { display: grid; gap: 16px; }
.customer-document > .panel-head { margin: 0; }
.customer-document .eyebrow { color: var(--cyan); font-weight: 800; }
.customer-document-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.customer-document-summary > div,
.customer-document-details > div { display: grid; gap: 4px; }
.customer-document-summary span,
.customer-document-details span { color: var(--muted); font-size: .82rem; }
.customer-document-summary strong { font-size: 1.05rem; }
.customer-document-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.customer-document-items div { grid-template-columns: minmax(0, 1fr) 150px 120px; }
.customer-item-copy { display: grid; gap: 3px; min-width: 0; }
.customer-item-copy small { color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.4; }
.customer-document-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.customer-document-support > div:first-child { display: grid; gap: 4px; }
.customer-document-support > div:first-child span,
.ticket-response-time { color: var(--muted); }
.btn.whatsapp { border-color: rgba(55, 235, 120, .55); background: rgba(55, 235, 120, .12); color: #72f4a2; }
.btn.whatsapp:hover { border-color: var(--green); background: rgba(55, 235, 120, .18); }
.document-photo-field {
  display: grid;
  gap: 14px;
  border-top: 1px solid #294151;
  border-bottom: 1px solid #294151;
  padding: 18px 0;
}
.document-photo-field h2,
.document-photo-field p { margin: 0; }
.document-photo-field label > small { display: block; margin: 3px 0 7px; color: var(--muted); font-weight: 500; }
.document-photo-admin-grid,
.document-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}
.document-photo-admin-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #294151;
  border-radius: var(--radius);
  background: #0d161f;
  padding: 7px;
}
.document-photo-admin-grid article > a,
.document-photo-gallery button {
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #f4f7f8;
  padding: 0;
  cursor: pointer;
}
.document-photo-admin-grid img,
.document-photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4f7f8;
}
.document-photo-admin-grid article > small { overflow-wrap: anywhere; color: var(--muted); }
.document-photo-admin-grid article > label { display: flex; align-items: center; gap: 6px; color: #ffaaaa; font-size: .78rem; }
.document-photo-admin-grid article > .document-caption-input {
  display: grid;
  align-items: stretch;
  gap: 5px;
  color: #dce8ed;
}
.document-caption-input input { width: 100%; }
.document-new-photo-captions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.document-new-photo-preview {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #294151;
  border-radius: var(--radius);
  background: #0d161f;
  padding: 7px;
}
.document-new-photo-preview img { width: 100%; aspect-ratio: 4 / 3; border-radius: 5px; object-fit: contain; background: #f4f7f8; }
.document-new-photo-preview > span { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.document-new-photo-preview > label { gap: 5px; color: #dce8ed; font-size: .78rem; }
.document-new-photo-preview input { width: 100%; }
.customer-document-photos { min-width: 0; display: grid; gap: 12px; overflow: hidden; }
.customer-document-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-document-photos h2 { margin: 0; }
.document-photo-carousel-nav { display: inline-flex; align-items: center; gap: 6px; }
.document-photo-carousel-nav[hidden] { display: none; }
.document-photo-carousel-nav button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #315064;
  border-radius: 5px;
  background: #0d1821;
  padding: 0;
  color: #dce9ee;
  cursor: pointer;
}
.document-photo-carousel-nav button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.document-photo-carousel-nav button:disabled { opacity: .32; cursor: default; }
.document-photo-carousel-nav .ico { width: 18px; height: 18px; flex-basis: 18px; }
.customer-document-photos .document-photo-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 160px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #315064 transparent;
  scrollbar-width: thin;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
}
.document-photo-gallery button {
  min-width: 0;
  position: relative;
  color: #eaf4f7;
  text-align: left;
  scroll-snap-align: start;
}
.document-photo-gallery button span {
  overflow: hidden;
  padding: 7px 8px;
  background: #0d161f;
  color: #c7d6de;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-photo-gallery button:hover { box-shadow: 0 0 0 1px var(--green); }
.customer-account-sections { display: grid; gap: 12px; margin-top: 20px; }
.customer-notification-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(55, 235, 120, .58);
  border-radius: var(--radius);
  background: rgba(55, 235, 120, .1);
  padding: 8px 11px;
  color: #dfffea;
}
.customer-notification-pill b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07120c;
  font-size: .76rem;
}
.customer-notifications-section > [data-customer-notification-list] { border-top: 1px solid #263b4b; padding: 10px; }
.customer-notification-list { display: grid; gap: 8px; }
.customer-notification-row {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid #263c4c;
  border-radius: var(--radius);
  background: #0d161f;
  padding: 11px;
}
.customer-notification-row.is-unread { border-color: rgba(55, 235, 120, .58); background: rgba(55, 235, 120, .07); }
.customer-notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #607482; }
.customer-notification-row.is-unread .customer-notification-dot,
.customer-document-notification.is-unread .customer-notification-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(55, 235, 120, .1); }
.customer-notification-copy { min-width: 0; display: grid; gap: 3px; }
.customer-notification-copy small,
.customer-notification-copy time { color: var(--muted); font-size: .76rem; }
.customer-notification-copy time { font-size: .7rem; }
.customer-notification-row > .ico { width: 17px; height: 17px; color: var(--muted); }
.customer-notification-empty { margin: 0; padding: 8px; }
.customer-document-list-public .customer-doc-row.has-customer-notification { position: relative; box-shadow: inset 0 0 0 1px rgba(55, 235, 120, .28); }
.customer-document-list-public .customer-doc-row.has-customer-notification::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 235, 120, .1);
}
.customer-document-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #2b4252;
  border-radius: var(--radius);
  background: #101923;
  padding: 11px 13px;
  transition: border-color .2s ease, background .2s ease;
}
.customer-document-notification.is-unread { border-color: rgba(55, 235, 120, .58); background: rgba(55, 235, 120, .08); }
.customer-document-notification > div { display: grid; gap: 2px; }
.customer-document-notification small { color: var(--muted); }
.customer-account-section {
  overflow: hidden;
  border: 1px solid #294151;
  border-radius: var(--radius);
  background: #111b25;
}
.customer-account-section > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 13px 48px 13px 16px;
  cursor: pointer;
  list-style: none;
}
.customer-account-section > summary::-webkit-details-marker { display: none; }
.customer-account-section > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 500;
}
.customer-account-section[open] > summary::after { content: "−"; }
.customer-account-section > summary span { color: #f3f9fc; font-weight: 850; }
.customer-account-section > summary small { color: var(--muted); }
.customer-account-section > form,
.customer-account-section > .mini-list,
.customer-account-section > .customer-profile-readonly {
  border-top: 1px solid #263b4b;
  padding: 16px;
}

.status-settings-panel .panel-head { align-items: flex-start; }
.status-settings-panel .panel-head p { max-width: 760px; margin: 5px 0 0; }
.status-settings-form { display: grid; gap: 14px; }
.status-settings-list { display: grid; gap: 8px; }
.status-editor-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.4fr) minmax(170px, .7fr);
  align-items: end;
  gap: 12px;
  min-height: 64px;
  border: 1px solid #263c4c;
  border-left: 4px solid var(--os-status-color);
  border-radius: var(--radius);
  background: #0d161f;
  padding: 10px 12px;
}
.status-editor-row label { margin: 0; }
.status-editor-preview {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.status-editor-preview .os-status {
  min-width: 132px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--os-status-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--os-status-color) 13%, transparent);
  color: color-mix(in srgb, var(--os-status-color) 72%, white);
  padding: 5px 10px;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.status-editor-preview code,
.status-color-field code {
  color: #8fa5b2;
  font-size: .68rem;
}
.status-color-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #2d4352;
  border-radius: var(--radius);
  background: #0b131b;
  padding: 5px 9px;
}
.status-color-field input[type="color"] {
  width: 42px;
  height: 30px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.status-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) {
  .status-editor-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .status-editor-preview { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .status-editor-row { grid-template-columns: 1fr; }
  .status-editor-preview { grid-column: auto; flex-wrap: wrap; }
  .status-editor-preview .os-status { max-width: 100%; }
  .status-settings-actions .btn { width: 100%; }
}
.customer-profile-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.customer-profile-readonly > div { display: grid; gap: 3px; }
.customer-profile-readonly > div.wide { grid-column: 1 / -1; }
.customer-profile-readonly span { color: var(--muted); font-size: .78rem; }
.customer-document-list-public { display: grid; gap: 8px; }
.customer-document-list-public .customer-doc-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 105px 115px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid #263c4c;
  border-left-width: 4px;
  border-radius: var(--radius);
  background: #0d161f;
  padding: 10px 12px;
  color: #eef6f9;
  transition: border-color .18s ease, background .18s ease;
}
.customer-document-list-public .customer-doc-row:hover { background: #111f2a; }
.customer-doc-row span { font-weight: 750; }
.customer-doc-row small { color: var(--muted); }
.customer-doc-row b { justify-self: end; }
.customer-doc-row.status-progress { border-left-color: #3fbcff; }
.customer-doc-row.status-progress span { color: #79d1ff; }
.customer-doc-row.status-warning { border-left-color: var(--amber); }
.customer-doc-row.status-warning span { color: #ffdc88; }
.customer-doc-row.status-success { border-left-color: var(--green); }
.customer-doc-row.status-success span { color: #72f4a2; }
.customer-doc-row.status-danger { border-left-color: var(--danger); }
.customer-doc-row.status-danger span { color: #ff9999; }
.customer-doc-row.has-os-status-color {
  border-left-color: var(--os-status-color);
}
.customer-doc-row.has-os-status-color span {
  color: color-mix(in srgb, var(--os-status-color) 72%, white);
}
.customer-account-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #2b4252;
  padding: 22px 4px 4px;
}
.customer-account-store > div { display: grid; gap: 3px; }
.customer-account-store span { color: var(--muted); }
.customer-ticket-cta { padding-top: 0; }
.customer-ticket-cta > .container { display: grid; gap: 12px; }
.customer-whatsapp-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.customer-whatsapp-card > div { display: grid; gap: 4px; }
.customer-whatsapp-card span { color: var(--muted); }
.customer-account-section.compact > summary { min-height: 48px; }
.customer-account-section.compact > summary span { font-size: .92rem; }
.admin-private-note {
  border-left: 3px solid rgba(255, 209, 102, .7);
  padding-left: 12px;
}
.admin-private-note > small,
.field-help { color: var(--muted); font-size: .75rem; font-weight: 500; }
.password-strength {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  padding-left: 16px;
  color: var(--muted);
  font-size: .78rem;
}
.password-strength::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 7px 0 -15px;
  border-radius: 50%;
  background: #ff6b6b;
}
.password-strength.is-medium::before { background: var(--amber); }
.password-strength.is-strong::before { background: var(--green); }
.ticket-card > div:first-of-type { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-card em {
  border: 1px solid #2f485b;
  border-radius: 999px;
  padding: 5px 8px;
  color: #c8d8df;
  font-style: normal;
  font-size: .82rem;
}
.ticket-card p { margin: 0; color: var(--muted); }
.category-admin-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #101c27;
  border: 1px solid #2f485b;
  color: var(--green);
}
.category-admin-info { display: grid; gap: 3px; min-width: 0; }
.category-admin-info strong,
.category-admin-info small { white-space: normal; overflow-wrap: anywhere; }
.category-admin-info small { color: var(--muted); }
.category-product-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #2c4658;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}
.category-product-count strong { color: var(--green); }
.category-list-button { min-height: 38px; padding: 7px 10px; }
.category-list-button .ico { width: 18px; height: 18px; flex-basis: 18px; }
.category-product-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2b3c4b;
  padding-bottom: 14px;
  color: var(--muted);
}
.category-product-summary strong { color: var(--green); font-size: 1.4rem; }
.category-admin-row em {
  justify-self: center;
  min-width: 76px;
  text-align: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  padding: 5px 8px;
  color: #c8d8df;
  font-style: normal;
  font-size: .82rem;
}
.icon-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
}
.icon-preview {
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 10px;
  color: var(--green);
  background: #0e161f;
}
.icon-preview.unknown { color: var(--muted); }
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #253849;
  border-radius: var(--radius);
  background: #0e161f;
}
.icon-choice {
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid #2a3d4d;
  border-radius: 8px;
  background: #101923;
  color: #b7c6cf;
  padding: 8px;
  font-size: .76rem;
}
.icon-choice[hidden] { display: none; }
.icon-choice .ico { color: var(--green); }
.icon-choice.active,
.icon-choice:hover {
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 16px rgba(55, 235, 120, .18);
}
.product-admin-row { grid-template-columns: 56px 1.4fr .8fr .7fr .7fr auto auto; }
.product-admin-row img { width: 56px; height: 46px; object-fit: cover; border-radius: 6px; }
.replacement-part-main { min-width: 0; display: grid; gap: 3px; }
.replacement-part-main small { color: var(--muted); }

@container (max-width: 720px) {
  .admin-row,
  .product-admin-row,
  .category-admin-row,
  .service-order-admin-row,
  .customer-admin-row,
  .report-due-list a,
  .notice-list a,
  .mini-list div,
  .mini-list a,
  .line-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .customer-admin-main,
  .category-admin-info {
    width: 100%;
  }
  .customer-code,
  .category-admin-icon,
  .category-product-count,
  .category-status-empty,
  .category-admin-row em,
  .service-order-admin-row em,
    .service-order-admin-row .row-open-icon,
    .customer-admin-row em,
    .row-actions,
    .document-row-actions {
    justify-self: start;
  }
  .category-status-empty { display: none; }
  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .check-grid,
  .product-category-options,
  .media-admin,
  .admin-filters {
    grid-template-columns: 1fr;
  }
  .product-admin-row img {
    width: 78px;
    height: 58px;
  }
}

@container (max-width: 460px) {
  .panel-head,
  .admin-collapse > summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .collapse-actions,
  .inline-actions,
  .admin-actions {
    justify-content: flex-start;
  }
  .icon-picker {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
}

.notice-list, .mini-list { display: grid; gap: 10px; }
.notice-list a, .mini-list div, .mini-list a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 12px;
}
.due-list a { grid-template-columns: minmax(0, 1fr) auto; }
.due-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.due-main em {
  color: #dbe8ee;
  font-style: normal;
  overflow-wrap: anywhere;
}
.due-main small {
  flex-basis: 100%;
  color: var(--muted);
}
.notice-list a.unread::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(55, 235, 120, .55);
}
.media-admin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.media-admin-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #0e161f;
  border: 1px solid #253849;
  border-radius: var(--radius);
  padding: 10px;
  font-size: .85rem;
  transition: opacity .16s ease, border-color .16s ease, transform .16s ease;
}
.media-admin-item[draggable="true"] { cursor: grab; }
.media-admin-item.dragging { opacity: .45; border-color: var(--green); transform: scale(.98); }
.media-admin-item.touch-dragging { pointer-events: none; }
.media-admin-item.is-primary { border-color: rgba(55, 235, 120, .68); }
.media-admin-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.media-admin-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-primary-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  background: var(--green);
  color: #041109;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}
.media-drag-handle {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #3c5364;
  border-radius: 6px;
  background: rgba(9, 14, 20, .88);
  color: #fff;
  cursor: grab;
  touch-action: none;
}
.media-drag-handle:active { cursor: grabbing; }
.media-admin-item small { color: var(--muted); overflow-wrap: anywhere; }
.media-remove { display: inline-flex; align-items: center; gap: 7px; color: #d8e4e9; }
.os-update-field {
  display: grid;
  gap: 12px;
  margin: 8px 0;
  border-top: 1px solid #253849;
  padding-top: 18px;
}
.os-update-heading h2 { margin-bottom: 4px; }
.os-update-heading p { margin: 0; }
.os-update-admin-list { display: grid; gap: 9px; }
.os-update-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #294052;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: #0e161f;
  padding: 11px;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity .16s ease, border-color .16s ease, transform .16s ease;
}
.os-update-admin-item:active { cursor: grabbing; }
.os-update-admin-item.dragging { opacity: .5; border-color: var(--green); transform: scale(.995); }
.os-update-admin-item.touch-dragging { pointer-events: none; }
.os-update-admin-item > label { min-width: 0; cursor: text; }
.os-update-card-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 220px) minmax(145px, auto) auto;
  align-items: center;
  gap: 12px;
}
.os-update-message textarea { min-height: 76px; resize: vertical; }
.os-update-drag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce9ee;
}
.os-update-drag svg { color: var(--cyan); }
.os-update-drag small { color: var(--muted); font-size: .74rem; }
.os-update-date { display: grid; gap: 5px; }
.os-update-date > span { color: #c5d5dc; font-size: .78rem; font-weight: 700; }
.os-update-date input { width: 100%; min-width: 0; }
.timeline-origin {
  color: #9fb2bc;
  font-size: .74rem;
  line-height: 1.25;
}.os-update-delete {
  align-self: center;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  color: #ff9d9d !important;
  white-space: nowrap;
}
.os-update-remove { align-self: center; justify-self: end; }
.os-update-add { justify-self: start; }
.customer-service-timeline { overflow: hidden; }
.customer-service-timeline-heading { margin-bottom: 15px; }
.customer-service-timeline-heading h2 { margin: 3px 0 0; }
.customer-service-timeline-list {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 22px;
}
.customer-service-timeline-list::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--green));
}
.customer-service-timeline-list article {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
}
.customer-service-timeline-list article:last-child { padding-bottom: 0; }
.customer-service-timeline-list article::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -22px;
  width: 12px;
  height: 12px;
  border: 3px solid #0e161f;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 14px rgba(55, 235, 120, .35);
}
.customer-service-timeline-list time { color: #7feaad; font-weight: 800; }
.customer-service-timeline-list p { margin: 0; color: #d5e3e8; line-height: 1.55; overflow-wrap: anywhere; }
.hero-preview { width: min(640px, 100%); border-radius: var(--radius); border: 1px solid #2c4354; }
.small-preview { width: 130px; }
.line-block { display: grid; gap: 10px; }
.line-items { display: grid; gap: 9px; }
.line-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 90px 120px 38px;
  gap: 8px;
  align-items: center;
}
.line-row:focus-within { z-index: 20; }
.line-product-search { position: relative; min-width: 0; }
.line-product-search > input[type="search"] { width: 100%; }
.line-product-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  width: min(520px, calc(100vw - 48px));
  max-height: 310px;
  overflow: auto;
  border: 1px solid #355064;
  border-radius: var(--radius);
  background: #0b141c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
  padding: 5px;
}
.line-product-results button {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #ecf7fa;
  padding: 9px 10px;
  text-align: left;
}
.line-product-results button:hover,
.line-product-results button.is-active {
  background: rgba(55, 235, 120, .12);
  color: #fff;
}
.line-product-results button strong { font-size: .85rem; overflow-wrap: anywhere; }
.line-product-results button small { color: #91a8b4; font-size: .72rem; overflow-wrap: anywhere; }
.line-product-empty { margin: 0; padding: 11px; color: var(--muted); font-size: .82rem; }
.line-remove {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 107, 107, .48);
  border-radius: var(--radius);
  background: rgba(255, 107, 107, .08);
  color: #ff8f8f;
}
.line-remove:hover { border-color: var(--danger); background: rgba(255, 107, 107, .15); }
.line-add {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #2f485b;
  border-radius: 999px;
  background: #101923;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}
.line-add:hover {
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(55, 235, 120, .22);
}
.line-block-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.line-subtotal {
  min-width: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #304959;
  border-radius: var(--radius);
  background: #0d171f;
  padding: 8px 11px;
}
.line-subtotal span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.line-subtotal strong { color: var(--green); font-size: 1rem; white-space: nowrap; }
.report-table, .doc-section table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td, .doc-section th, .doc-section td { border-bottom: 1px solid #2b3c4b; padding: 7px; text-align: left; }
[hidden] { display: none !important; }
.report-load-more { margin-top: 14px; }
.stock-report-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #2b3c4b;
  margin: 16px 0;
  padding-bottom: 16px;
}
.stock-report-total div { display: grid; gap: 3px; }
.stock-report-total span,
.stock-report-total small { color: var(--muted); }
.stock-report-total strong { color: var(--green); font-size: 2rem; line-height: 1.15; }
.report-table-wrap { width: 100%; overflow-x: auto; }
.stock-value-table { min-width: 720px; }
.stock-value-table a { color: var(--cyan); font-weight: 700; }
.stock-value-table tfoot th { border-top: 2px solid #2fbc70; border-bottom: 0; color: #f4fbff; }
.access-report { display: grid; gap: 18px; }
.access-report .panel-head { margin: 0; }
.access-report .panel-head h1 { margin-bottom: 3px; }
.access-report .panel-head p { margin: 0; }
.report-periods {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  border: 1px solid #2a4050;
  border-radius: var(--radius);
  padding: 4px;
  background: #0d161e;
}
.report-periods a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--muted);
  font-weight: 700;
}
.report-periods a.active {
  background: rgba(55, 235, 120, .13);
  color: var(--green);
}
.access-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #2a4050;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d161e;
}
.access-metrics > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 14px;
  border-right: 1px solid #2a4050;
}
.access-metrics > div:last-child { border-right: 0; }
.access-metrics span { color: var(--muted); font-size: .86rem; }
.access-metrics strong { color: #f5fbfd; font-size: 1.55rem; }
.traffic-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid #2b3c4b;
  padding-top: 18px;
}
.traffic-section h2 { margin: 0; font-size: 1.05rem; }
.traffic-bars,
.analytics-breakdown { display: grid; gap: 8px; }
.traffic-bars > div,
.analytics-breakdown > div {
  display: grid;
  grid-template-columns: minmax(100px, 170px) minmax(100px, 1fr) 74px;
  align-items: center;
  gap: 12px;
}
.order-admin-row {
  grid-template-columns: 125px minmax(150px, 1fr) 120px 140px 120px repeat(3, 42px);
  border-left-width: 4px;
}
.order-admin-row.is-unread { border-color: rgba(55, 235, 120, .48); }
.order-admin-code { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.order-admin-code strong { min-width: 0; overflow-wrap: anywhere; }

.service-order-admin-row.deadline-due-today,
.admin-row.deadline-due-today,
.ticket-card.deadline-due-today,
.due-list a.deadline-due-today,
.customer-doc-row.deadline-due-today {
  border-color: rgba(255, 154, 74, .88);
  border-left-color: #ff9a4a;
  background: rgba(255, 154, 74, .1);
  box-shadow: inset 4px 0 0 #ff9a4a;
}
.service-order-admin-row.deadline-overdue,
.admin-row.deadline-overdue,
.ticket-card.deadline-overdue,
.due-list a.deadline-overdue,
.customer-doc-row.deadline-overdue {
  border-color: rgba(255, 93, 93, .9);
  border-left-color: var(--danger);
  background: rgba(255, 93, 93, .1);
  box-shadow: inset 4px 0 0 var(--danger);
}
.deadline-due-today small,
.deadline-due-today > b { color: #ffbd82; }
.deadline-overdue small,
.deadline-overdue > b { color: #ff9999; }
.notice-list a.notice-deadline-due,
.admin-live-notices a.notice-deadline-due {
  border-color: rgba(255, 154, 74, .78);
  background: #251b13;
}
.notice-list a.notice-deadline-overdue,
.admin-live-notices a.notice-deadline-overdue {
  border-color: rgba(255, 93, 93, .82);
  background: #251416;
}
.notice-list a.notice-deadline-due.unread::after { background: #ff9a4a; box-shadow: 0 0 14px rgba(255, 154, 74, .58); }
.notice-list a.notice-deadline-overdue.unread::after { background: var(--danger); box-shadow: 0 0 14px rgba(255, 93, 93, .58); }
.traffic-bars span,
.analytics-breakdown span { min-width: 0; color: #dce8ed; overflow-wrap: anywhere; }
.traffic-bars i,
.analytics-breakdown i {
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #1a2a36;
}
.traffic-bars i b,
.analytics-breakdown i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.traffic-bars strong,
.analytics-breakdown strong { text-align: right; color: #f5fbfd; }
.analytics-breakdown strong small { color: var(--muted); font-weight: 500; }
.access-report .report-table a { display: grid; gap: 2px; color: var(--cyan); }
.access-report .report-table a small { color: var(--muted); font-weight: 400; }
.access-history-table { min-width: 780px; }
.report-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.report-pagination span { margin-right: auto; color: var(--muted); }
.analytics-setup {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 209, 102, .45);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .08);
  padding: 14px;
}
.analytics-setup strong { color: var(--amber); }
.analytics-setup span { color: var(--muted); }

.print-body { background: #d8dee4; color: #111820; padding: 16px; }
.print-actions { width: min(980px, 100%); margin: 0 auto 10px; text-align: right; }
.service-doc {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #17202a;
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(0,0,0,.16);
  padding: 22px;
}
.doc-header {
  display: grid;
  grid-template-columns: 86px 1fr 170px;
  gap: 12px;
  align-items: center;
  border-bottom: 3px solid #21c56c;
  padding-bottom: 12px;
}
.doc-header img { width: 78px; }
.doc-header h1 { margin: 0; color: #111820; }
.doc-header p { margin: 4px 0 0; color: #47515d; }
.doc-header aside {
  border: 1px solid #cbd4dc;
  border-radius: 6px;
  padding: 9px;
  display: grid;
  gap: 3px;
  text-align: center;
}
.doc-header aside strong { color: #0d6f44; }
.doc-header aside span { font-size: 1.16rem; font-weight: 900; }
.doc-section { margin-top: 13px; }
.doc-section h2 { margin: 0 0 6px; font-size: .92rem; color: #0b7f4d; text-transform: uppercase; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; }
.doc-grid div { border: 1px solid #d8e0e6; border-radius: 6px; padding: 7px; display: grid; gap: 2px; }
.doc-grid span { color: #65717e; font-size: .78rem; }
.doc-totals {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}
.doc-totals div { border: 1px solid #d8e0e6; border-radius: 6px; padding: 8px; display: grid; }
.doc-totals .total { border-width: 2px; border-color: #0b7f4d; }
.receipt-doc { max-width: 820px; }
.receipt-statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  margin-top: 18px;
  border: 1px solid #bcd5c8;
  border-left: 5px solid #0b7f4d;
  border-radius: 6px;
  background: #f3f8f5;
  padding: 16px;
}
.receipt-statement > span { color: #5e6d65; font-size: .8rem; text-transform: uppercase; }
.receipt-statement > strong { grid-column: 2; grid-row: 1 / 3; color: #0b7f4d; font-size: 1.8rem; white-space: nowrap; }
.receipt-statement p { margin: 2px 0 0; line-height: 1.55; }
.receipt-totals { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.receipt-signature {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 42px;
  text-align: center;
}
.receipt-signature div {
  width: min(360px, 90%);
  display: grid;
  gap: 2px;
  border-top: 1px solid #68747d;
  padding-top: 7px;
}
.receipt-signature span { font-weight: 800; }
.receipt-signature small,
.receipt-signature p { color: #65717e; }
.receipt-signature p { margin: 0; font-size: .8rem; }
.doc-footer { margin-top: 14px; border-top: 1px solid #d8e0e6; padding-top: 8px; color: #65717e; }
.doc-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 110px));
  align-items: start;
  gap: 5px;
}
.doc-photo-grid figure {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d8e0e6;
  border-radius: 5px;
  background: #f4f7f8;
}
.doc-update-list { display: grid; gap: 5px; }
.doc-update-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  border-left: 3px solid #21c56c;
  border-radius: 4px;
  background: #f3f7f5;
  padding: 7px 9px;
  break-inside: avoid;
}
.doc-update-list time { color: #0b7f4d; font-size: .78rem; font-weight: 800; }
.doc-update-list p { margin: 0; color: #28333d; line-height: 1.35; }
.doc-item-title { display: block; color: #17202a; }
.doc-item-description { display: block; margin-top: 2px; color: #65717e; font-size: .78rem; font-weight: 400; line-height: 1.3; }
.doc-photo-grid img { display: block; width: 100%; height: 72px; object-fit: contain; }
.doc-photo-grid figcaption { overflow: hidden; padding: 3px 5px; color: #65717e; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.doc-photo-more { margin: 4px 0 0; color: #65717e; font-size: .7rem; }

/* Compact admin workspace */
.admin-body { grid-template-columns: 244px minmax(0, 1fr); }
.admin-sidebar { padding: 13px; gap: 12px; }
.admin-sidebar nav { gap: 5px; }
.admin-sidebar nav a,
.admin-body .site-link { padding: 7px 9px; font-size: .88rem; }
.admin-nav-group-links a { min-height: 34px; padding: 6px 8px; }
.admin-mail-link { min-height: 36px; }
.admin-main { padding: 14px; }
.admin-top {
  min-height: 52px;
  margin-bottom: 12px;
  padding: 9px 12px;
}
.admin-top strong { font-size: .94rem; }
.admin-top span { font-size: .78rem; }
.admin-grid,
.admin-stack { gap: 12px; }
.admin-grid.stats { margin-bottom: 12px; }
.admin-body .panel { padding: 14px; }
.admin-body .panel h1 { font-size: 1.32rem; }
.admin-body .panel h2 { font-size: 1.06rem; }
.admin-body .panel-head { gap: 10px; margin-bottom: 10px; }
.admin-body .panel-head h1,
.admin-body .panel-head h2,
.admin-body .panel-head p { margin-top: 0; margin-bottom: 0; }
.admin-list-group + .admin-list-group { margin-top: 18px; padding-top: 15px; }
.admin-list-group-title { margin-bottom: 8px; }
.admin-list-group-title span {
  min-width: 24px;
  min-height: 24px;
  font-size: .72rem;
}
.admin-collapse > summary { min-height: 50px; padding: 12px 14px; }
.admin-collapse-content { gap: 10px; padding: 0 14px 14px; }
.admin-body .admin-form { gap: 12px; padding: 14px; }
.admin-collapse-content > .admin-form { padding: 0; }
.admin-body .form-grid { gap: 10px; }
.admin-body label { gap: 4px; font-size: .86rem; }
.admin-body input,
.admin-body textarea,
.admin-body select { padding: 8px 10px; }
.admin-body input[type="date"],
.admin-body input[type="datetime-local"] { color-scheme: dark; }
.admin-body input[type="date"]::-webkit-calendar-picker-indicator,
.admin-body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.65);
  opacity: .88;
  cursor: pointer;
}
.admin-body .btn {
  min-height: 34px;
  padding: 6px 10px;
  gap: 6px;
  font-size: .82rem;
}
.admin-body .btn.icon-only {
  width: 32px;
  min-height: 32px;
  padding: 0;
}
.admin-body .btn .ico { width: 16px; height: 16px; flex-basis: 16px; }
.admin-filters { gap: 8px; margin-bottom: 10px; }
.stat-card { padding: 13px; gap: 3px; }
.stat-card span { font-size: .82rem; }
.stat-card strong { font-size: 1.72rem; line-height: 1.05; }
.admin-table { gap: 7px; }
.admin-row,
.category-admin-row,
.service-order-admin-row,
.customer-admin-row {
  min-height: 48px;
  gap: 9px;
  padding: 7px 9px;
}
.service-order-admin-row {
  grid-template-columns: 110px minmax(0, 1fr) 175px 112px 112px 72px;
}
.service-order-admin-row .row-open-icon {
  width: 32px;
  height: 32px;
}
.document-row-actions,
.ticket-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.document-row-actions form { display: flex; }
.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ticket-card { gap: 8px; padding: 10px; }
.ticket-card > p { margin: 0; }
.admin-ticket-list { margin-top: 12px; }
.notice-list,
.mini-list { gap: 7px; }
.notice-list a,
.mini-list div,
.mini-list a { padding: 9px 10px; }
.document-shipping-field { gap: 10px; padding: 12px; }

/* Report dashboard */
.report-updated-at {
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.report-kpi {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 3px;
  min-height: 102px;
  border: 1px solid #2a4150;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: #0d161f;
  padding: 12px;
}
.report-kpi span,
.report-kpi small { color: var(--muted); }
.report-kpi span { font-size: .78rem; font-weight: 750; }
.report-kpi strong { align-self: center; color: #f4fbff; font-size: 1.38rem; overflow-wrap: anywhere; }
.report-kpi small { font-size: .72rem; }
.report-kpi-green { border-left-color: var(--green); }
.report-kpi-amber { border-left-color: var(--amber); }
.report-kpi-blue { border-left-color: #6b9cff; }
.report-panel-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #30495a;
  border-radius: 999px;
  background: #0d161f;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
}
.report-status-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.report-status-bar {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(90px, 1fr) 38px 110px;
  align-items: center;
  gap: 10px;
}
.report-status-bar > span { color: #dce8ed; font-size: .82rem; overflow-wrap: anywhere; }
.report-status-bar > i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1a2a36;
}
.report-status-bar > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
}
.report-status-bar > strong { text-align: right; }
.report-status-bar > small { color: var(--muted); text-align: right; }
.report-status-success > i b { background: var(--green); }
.report-status-warning > i b { background: var(--amber); }
.report-status-danger > i b { background: var(--danger); }
.report-status-bar.has-os-status-color > span {
  color: color-mix(in srgb, var(--os-status-color) 72%, white);
}
.report-status-bar.has-os-status-color > i b {
  background: var(--os-status-color);
}
.report-table th { color: #9fb1bd; font-size: .76rem; text-transform: uppercase; }
.report-table td { font-size: .84rem; }
.stock-report-total { margin: 10px 0 12px; padding-bottom: 12px; }
.stock-report-total strong { font-size: 1.55rem; }
.access-report { gap: 13px; }
.access-metrics > div { padding: 11px; }
.access-metrics span { font-size: .78rem; }
.access-metrics strong { font-size: 1.3rem; }
.traffic-section { gap: 9px; padding-top: 13px; }
.traffic-section h2 { font-size: .96rem; }
.report-periods a { min-height: 31px; padding: 5px 9px; font-size: .78rem; }

@media (max-width: 1180px) {
  .admin-grid.two { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1400px) and (min-width: 941px) {
  .customer-admin-row { grid-template-columns: minmax(150px, 1fr) 100px 100px 100px auto; }
  .customer-admin-row .customer-admin-main { grid-column: 1 / 3; }
  .customer-admin-row .customer-code { grid-column: 3; }
  .customer-admin-row .status-pill { grid-column: 4; }
  .customer-admin-row .customer-doc-count:nth-child(4) { grid-column: 1; grid-row: 2; }
  .customer-admin-row .customer-doc-count:nth-child(5) { grid-column: 2; grid-row: 2; }
  .customer-admin-row .customer-doc-count:nth-child(6) { grid-column: 3; grid-row: 2; }
  .customer-admin-row .row-actions { grid-column: 5; grid-row: 1 / 3; }
}

@media (min-width: 1680px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .product-info { min-height: 228px; gap: 6px; padding: 12px; }
  .product-title { min-height: 42px; font-size: .86rem; line-height: 1.3; }
  .product-card .price { font-size: 1.25rem; }
  .product-card .stock { font-size: .72rem; padding: 3px 7px; }
  .product-card .installments, .product-card .old-price { font-size: .78rem; }
  .product-card .btn.buy { min-height: 40px; padding: 8px; font-size: .86rem; }
}

@media (max-width: 940px) {
  .header-grid { grid-template-columns: 1fr; padding: 14px 0; }
  .brand { justify-content: center; }
  .account-nav { justify-content: center; }
  .subbar-grid, .site-subbar.is-stuck .subbar-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; }
  .cat-menu { grid-column: 1; grid-row: 1; }
  .primary-subnav { grid-column: 2; grid-row: 1; width: min(100%, 390px); }
  .cart-pill { grid-column: 3; grid-row: 1; }
  .subbar-search { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; }
  .cart-pill strong { display: inline; }
  .hero, .hero-inner { min-height: 350px; }
  .feature-triplet, .feature-pair, .service-grid, .product-view, .cart-layout, .checkout-grid, .admin-grid.two { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-panel, .summary-panel { position: static; }
  .payment-lines, .form-grid.two, .form-grid.three, .form-grid.four, .check-grid { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { grid-template-columns: 1fr; overflow: visible; }
  .admin-main { padding: 14px; }
  .document-panel-head { align-items: flex-start; flex-direction: column; }
  .document-action-toolbar { width: 100%; justify-content: flex-start; }
  .admin-row, .product-admin-row, .category-admin-row, .service-order-admin-row, .customer-admin-row, .report-due-list a, .notice-list a, .mini-list div, .mini-list a, .line-row { grid-template-columns: 1fr; }
  .category-admin-icon, .category-product-count, .category-admin-row em, .service-order-admin-row em, .service-order-admin-row .row-open-icon, .customer-admin-row em, .row-actions, .document-row-actions { justify-self: start; }
  .customer-admin-row .customer-admin-main,
  .customer-admin-row .customer-code,
  .customer-admin-row .status-pill,
  .customer-admin-row .customer-doc-count,
  .customer-admin-row .row-actions { grid-column: auto; grid-row: auto; }
  .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-document-list .service-order-admin-row { grid-template-columns: 1fr; }
  .os-update-card-head { grid-template-columns: minmax(120px, 1fr) minmax(170px, 220px) auto; }
  .customer-document-summary,
  .customer-document-details { grid-template-columns: 1fr; }
  .customer-document-items div { grid-template-columns: 1fr; }
  .document-photo-admin-grid,
  .document-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-document-list-public .customer-doc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-document-list-public .customer-doc-row small,
  .customer-document-list-public .customer-doc-row b { justify-self: start; }
  .media-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-filters-main { width: min(100%, 760px); }
  .cart-row { grid-template-columns: 70px minmax(0, 1fr) 40px; align-items: start; }
  .cart-row > img { grid-column: 1; grid-row: 1; }
  .cart-product-info { grid-column: 2; grid-row: 1; }
  .cart-remove { grid-column: 3; grid-row: 1; }
  .cart-row .cart-quantity { grid-column: 2; grid-row: 2; }
  .cart-row b { grid-column: 2; grid-row: 3; }
  .cart-row .cart-quantity { width: max-content; }
  .cart-row b { width: 100%; }
  .footer-layout { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 9px; }
  .footer-meta-row > span:last-child { justify-self: center; }
  .contact-page-layout { grid-template-columns: 1fr; gap: 42px; }
  .contact-brand-mark { border-top: 1px solid #263a48; border-left: 0; padding-top: 34px; padding-left: 0; }
  .contact-brand-mark img { width: 190px; }
  .document-photo-admin-grid,
  .document-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-profile-readonly { grid-template-columns: 1fr; }
  .customer-profile-readonly > div.wide { grid-column: auto; }
  .customer-account-store { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1180px); }
  .brand img { width: 54px; height: 54px; }
  .search-box { padding: 7px; }
  .store-search-tools { flex-wrap: wrap; }
  .store-search-tools > .ico { align-self: center; }
  .store-search-tools > input { flex: 1 1 150px; }
  .search-sort-control { min-width: 118px; flex: 1 1 118px; min-height: 34px; border-left: 0; border-top: 1px solid #2a4050; padding: 5px 4px 0; }
  .search-filter-clear { align-self: flex-end; }
  .search-box button { display: none; }
  .cat-toggle span { display: none; }
  .cart-pill strong { display: none; }
  .shipping-option {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    padding: 11px 10px;
  }
  .shipping-option > b { grid-column: 2; justify-self: start; }
  .checkout-shipping { padding: 12px 10px; }
  .shipping-rule-heading { align-items: flex-start; }
  .shipping-rule-switches { justify-content: flex-start; }
  .primary-subnav { gap: 3px; }
  .primary-subnav a, .primary-subnav button { min-height: 30px; padding: 3px 4px; font-size: .65rem; }
  .subbar-search { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
  .hero { background-position: 64% center; }
  .hero, .hero-inner { min-height: 320px; }
  .hero h1 { font-size: 2.45rem; }
  .feature-card { min-height: 150px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { display: grid; grid-template-columns: clamp(132px, 34vw, 185px) minmax(0, 1fr); }
  .product-thumb { width: auto; height: 100%; min-height: 260px; aspect-ratio: auto; border-right: 1px solid #233746; border-bottom: 0; }
  .product-thumb img { padding: 8px; }
  .product-info { min-height: 260px; padding: 13px; gap: 6px; }
  .product-title { min-height: 0; font-size: .9rem; line-height: 1.3; }
  .product-card .stock { font-size: .7rem; padding: 3px 7px; }
  .product-card .price { font-size: 1.2rem; }
  .product-card .old-price, .product-card .installments { font-size: .78rem; }
  .product-card .btn.buy { min-height: 40px; padding: 8px; font-size: .84rem; }
  .stock-report-total { align-items: flex-start; flex-direction: column; }
  .report-kpi-grid { grid-template-columns: 1fr; }
  .report-status-bar {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 5px 9px;
  }
  .report-status-bar > i { grid-column: 1 / -1; grid-row: 2; }
  .report-status-bar > strong { grid-column: 2; grid-row: 1; }
  .report-status-bar > small { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .access-report .panel-head { align-items: flex-start; flex-direction: column; }
  .access-metrics { grid-template-columns: 1fr; }
  .access-metrics > div { border-right: 0; border-bottom: 1px solid #2a4050; }
  .access-metrics > div:last-child { border-bottom: 0; }
  .traffic-bars > div,
  .analytics-breakdown > div { grid-template-columns: 92px minmax(70px, 1fr) 60px; gap: 8px; }
  .store-filters-main { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-filters-main .store-filter-availability,
  .store-filters-main .store-filter-sort { width: 100%; }
  .store-filters-main .store-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .store-filter-dock .container { width: calc(100% - 8px); }
  .store-filters-compact {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px;
    align-items: stretch;
    gap: 3px;
  }
  .store-filters-compact .store-filter-availability { grid-column: 1; grid-row: 1; width: 100%; }
  .store-filters-compact .store-filter-sort { grid-column: 2; grid-row: 1; width: 100%; }
  .store-filters-compact .store-filter-actions {
    grid-column: 3;
    grid-row: 1;
    width: 54px;
    flex-direction: row;
    justify-content: center;
    gap: 2px;
  }
  .store-filters-compact label { padding-right: 3px; padding-left: 3px; }
  .store-filters-compact select { padding-right: 12px; font-size: .62rem; text-overflow: ellipsis; }
  .store-filters-compact .store-filter-actions .btn { width: 26px; min-height: 32px; padding: 0; }
  .store-filters-compact .store-filter-clear { flex-basis: 26px; width: 26px; }
  .store-filters-compact .store-filter-actions .primary span { display: none; }
  .cookie-box, .cart-toast div { flex-direction: column; align-items: stretch; }
  .doc-header, .doc-grid, .doc-totals { grid-template-columns: 1fr; }
  .receipt-statement { grid-template-columns: 1fr; }
  .receipt-statement > strong { grid-column: 1; grid-row: auto; white-space: normal; }
  .document-action-toolbar .btn { flex: 1 1 auto; justify-content: center; }
  .receipt-date-dialog-actions { flex-direction: column-reverse; }
  .receipt-date-dialog-actions .btn { width: 100%; }
  .os-update-card-head { grid-template-columns: 1fr auto; }
  .os-update-drag { grid-column: 1 / -1; }
  .os-update-date { grid-column: 1; }
  .timeline-origin { grid-column: 1; }
  .customer-document-support { align-items: stretch; flex-direction: column; }
  .customer-whatsapp-card { align-items: stretch; flex-direction: column; }
  .customer-whatsapp-card .btn { width: 100%; }
  .customer-service-timeline-list article { grid-template-columns: 1fr; gap: 4px; }
  .doc-update-list article { grid-template-columns: 1fr; gap: 2px; }
  .footer-main { padding: 40px 0; }
  .footer-layout { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; flex-direction: column; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-logo-large { width: 124px; height: 124px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav h2 { grid-column: 1 / -1; }
  .footer-service { justify-items: center; text-align: center; }
  .footer-socials { justify-content: center; }
  .contact-page { min-height: 0; }
  .contact-page-actions { align-items: stretch; }
  .contact-page-actions .btn, .contact-phone-link { width: 100%; }
}

.line-warranty-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(240px, 1.55fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid #294153;
  border-radius: 6px;
  background: rgba(10, 20, 28, .56);
}
.line-warranty-fields label { display: grid; gap: 5px; color: #b8cbd3; font-size: .76rem; font-weight: 700; }
.line-warranty-fields label > span:first-child { min-height: 18px; }
.line-warranty-fields label small { color: var(--muted); font-weight: 500; }
.warranty-days-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.warranty-days-input small { padding-right: 4px; }
.warranty-setup { margin: 12px 0; }
.item-warranty-note { display: block; margin-top: 3px; color: #81efaa; font-weight: 700; }
.warranty-panel { display: grid; gap: 14px; }
.warranty-panel .panel-head { margin: 0; }
.warranty-delivery-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #355064;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: #0d1821;
  padding: 10px 12px;
}
.warranty-delivery-date.is-set { border-left-color: var(--green); }
.warranty-delivery-date span { color: var(--muted); font-size: .8rem; }
.warranty-list { display: grid; gap: 8px; }
.warranty-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(90px, .55fr) minmax(105px, .65fr) minmax(145px, .8fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #294153;
  border-left: 4px solid #8296a3;
  border-radius: 6px;
  background: #0d1821;
  padding: 10px 12px;
}
.warranty-item > div { display: grid; gap: 3px; min-width: 0; }
.warranty-item span, .warranty-item small { color: var(--muted); font-size: .76rem; }
.warranty-item strong, .warranty-item small { overflow-wrap: anywhere; }
.warranty-item em { justify-self: end; border: 1px solid currentColor; border-radius: 999px; padding: 5px 9px; font-style: normal; font-size: .76rem; font-weight: 800; text-align: center; }
.warranty-item.warranty-active { border-left-color: var(--green); }
.warranty-item.warranty-active em { color: #65ee99; background: rgba(55, 235, 120, .09); }
.warranty-item.warranty-waiting { border-left-color: var(--amber); }
.warranty-item.warranty-waiting em { color: #ffd166; background: rgba(255, 209, 102, .09); }
.warranty-item.warranty-expired { border-left-color: var(--danger); }
.warranty-item.warranty-expired em { color: #ff8585; background: rgba(255, 107, 107, .09); }
.warranty-return-history { display: grid; gap: 8px; border-top: 1px solid #294153; padding-top: 14px; }
.warranty-return-history h3 { margin: 0; }
.warranty-return-history article { display: grid; gap: 8px; border: 1px solid #294153; border-radius: 6px; background: #0d1821; padding: 11px; }
.warranty-return-history article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.warranty-return-history p { margin: 0; }
.warranty-return-history form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.warranty-return-status { border-radius: 999px; padding: 4px 8px; color: #ffd166; background: rgba(255, 209, 102, .1); font-size: .74rem; font-weight: 800; }
.warranty-return-status.status-concluido { color: #65ee99; background: rgba(55, 235, 120, .1); }
.warranty-return-form { display: grid; grid-template-columns: minmax(220px, 1fr) 170px minmax(260px, 1.4fr) auto; align-items: end; gap: 10px; border-top: 1px solid #294153; padding-top: 14px; }
.warranty-return-form h3, .warranty-return-form p { margin: 0; }
.warranty-expired-note { margin: 0; border: 1px solid rgba(255, 107, 107, .35); border-radius: 6px; color: #ffadad; padding: 10px; }
.warranty-term-table { display: grid; border: 1px solid #ccd7df; border-radius: 6px; overflow: hidden; }
.warranty-term-head, .warranty-term-row { display: grid; grid-template-columns: 100px minmax(220px, 1fr) 90px 100px 125px; align-items: center; }
.warranty-term-head { background: #eaf5ef; color: #0b6d43; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.warranty-term-head span, .warranty-term-row > span { padding: 7px; }
.warranty-term-row + .warranty-term-row { border-top: 1px solid #d8e0e6; }
.warranty-term-row > span + span, .warranty-term-head span + span { border-left: 1px solid #d8e0e6; }
.warranty-term-row span:nth-child(2) { display: grid; gap: 2px; }
.warranty-term-row small { color: #64717a; font-size: .72rem; }
.warranty-term-status { font-weight: 800; }
.warranty-term-status.status-active { color: #087944; }
.warranty-term-status.status-waiting { color: #996b00; }
.warranty-term-status.status-expired { color: #b52f2f; }
.warranty-terms-copy ol { margin: 0; padding-left: 20px; }
.warranty-terms-copy li { margin: 4px 0; line-height: 1.45; }
.warranty-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 42px; }
.warranty-signatures div { border-top: 1px solid #60707b; padding-top: 5px; text-align: center; }
.warranty-signatures span { color: #53616b; font-size: .78rem; }

@media (max-width: 900px) {
  .line-warranty-fields { grid-template-columns: 1fr; }
  .warranty-item { grid-template-columns: 1fr 1fr; }
  .warranty-item > div:first-child { grid-column: 1 / -1; }
  .warranty-item em { justify-self: start; }
  .warranty-return-form { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 560px) {
  .warranty-delivery-date { align-items: flex-start; flex-direction: column; }
  .warranty-item { grid-template-columns: 1fr; }
  .warranty-item > div:first-child { grid-column: auto; }
  .warranty-return-history form { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 8mm; }
  .store-filter-dock { display: none !important; }
  .print-body { background: #fff; padding: 0; }
  .print-actions { display: none; }
  .service-doc {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    font-size: 9.5pt;
  }
  .doc-header {
    grid-template-columns: 62px 1fr 136px;
    gap: 8px;
    border-bottom-width: 2px;
    padding-bottom: 7px;
  }
  .doc-header img { width: 56px; }
  .doc-header h1 { font-size: 15pt; }
  .doc-header p { font-size: 8.5pt; line-height: 1.25; }
  .doc-header aside { padding: 5px; gap: 1px; }
  .doc-header aside span { font-size: 10pt; }
  .doc-section { margin-top: 7px; page-break-inside: avoid; }
  .doc-section h2 { margin-bottom: 4px; font-size: 8.5pt; }
  .doc-section p { margin: 0; }
  .doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .doc-grid div { padding: 4px 5px; gap: 1px; }
  .doc-grid span { font-size: 7.5pt; }
  .doc-section table { font-size: 8.5pt; }
  .doc-photo-section { page-break-inside: avoid; break-inside: avoid; }
  .doc-photo-grid { grid-template-columns: repeat(5, 25mm); gap: 1.5mm; }
  .doc-photo-grid figure { page-break-inside: avoid; break-inside: avoid; }
  .doc-photo-grid img { height: 16mm; }
  .doc-photo-grid figcaption { padding: 1mm 1.2mm; font-size: 6.5pt; }
  .doc-photo-more { margin-top: 1.2mm; font-size: 6.5pt; }
  .doc-section th, .doc-section td { padding: 4px 5px; }
  .doc-totals { margin-top: 7px; gap: 4px; }
  .doc-totals div { padding: 5px; }
  .doc-footer { margin-top: 8px; padding-top: 5px; font-size: 8pt; }
  a { color: inherit; }
}

/* Saúde e velocidade no Dashboard */
.performance-health {
  --health-color: #39e87b;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #294253;
  border-left: 4px solid var(--health-color);
  border-radius: 6px;
  background: #111d28;
  padding: 14px 16px;
}
.performance-health-warning { --health-color: #f1ae3f; }
.performance-health-critical { --health-color: #ff6262; }
.performance-health > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.performance-health-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.performance-health-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--health-color) 55%, #294253);
  border-radius: 6px;
  background: color-mix(in srgb, var(--health-color) 10%, transparent);
  color: var(--health-color);
}
.performance-health-icon .ico {
  width: 19px;
  height: 19px;
}
.performance-health-heading > div {
  display: grid;
  gap: 2px;
}
.performance-health-heading span {
  color: #a8bbc5;
  font-size: .72rem;
  font-weight: 650;
}
.performance-health-heading strong {
  color: var(--health-color);
  font-size: 1rem;
}
.performance-health time {
  color: #78909e;
  font-size: .68rem;
  white-space: nowrap;
}
.performance-health > p {
  margin: 10px 0 12px;
  color: #b3c4cc;
  font-size: .76rem;
}
.performance-health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #253b4a;
}
.performance-health-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  padding: 11px 12px 2px;
}
.performance-health-metric + .performance-health-metric {
  border-left: 1px solid #253b4a;
}
.performance-health-metric > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #d9e4e9;
  font-size: .7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.performance-health-metric i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #39e87b;
  box-shadow: 0 0 8px rgba(57, 232, 123, .45);
}
.performance-health-metric.metric-warning i {
  background: #f1ae3f;
  box-shadow: 0 0 8px rgba(241, 174, 63, .45);
}
.performance-health-metric.metric-critical i {
  background: #ff6262;
  box-shadow: 0 0 8px rgba(255, 98, 98, .45);
}
.performance-health-metric > strong {
  color: #fff;
  font-size: .74rem;
  white-space: nowrap;
}
.performance-health-metric > small {
  grid-column: 1 / -1;
  color: #708895;
  font-size: .62rem;
}
.performance-health-metric.metric-warning > small { color: #f1ae3f; }
.performance-health-metric.metric-critical > small { color: #ff7777; }
@media (max-width: 920px) {
  .performance-health-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .performance-health-metric:nth-child(3) {
    border-left: 0;
  }
  .performance-health-metric:nth-child(n + 3) {
    border-top: 1px solid #253b4a;
  }
}
@media (max-width: 520px) {
  .performance-health {
    padding: 12px;
  }
  .performance-health > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .performance-health-metrics {
    grid-template-columns: 1fr;
  }
  .performance-health-metric + .performance-health-metric {
    border-top: 1px solid #253b4a;
    border-left: 0;
  }
}
/* Avisos não lidos: animação discreta e acessível */
.customer-notification-row.is-unread .customer-notification-dot,
.customer-document-notification.is-unread .customer-notification-dot,
.customer-notification-pill.has-unread b {
  animation: customerNoticePulse 1.35s ease-in-out infinite;
}
@keyframes customerNoticePulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(55,235,120,.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(55,235,120,0); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-notification-row.is-unread .customer-notification-dot,
  .customer-document-notification.is-unread .customer-notification-dot,
  .customer-notification-pill.has-unread b { animation: none; }
}
/* Segurança, backups e aceite digital */
.security-panel,.security-users,.security-events,.backup-list,.backup-guidance,.document-acceptance-panel{min-width:0}
.status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 10px;border:1px solid var(--border);border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}
.status-pill.status-active{color:#1fdb78;border-color:#1fdb78;background:rgba(31,219,120,.08)}
.status-pill.status-warning{color:#ffbd45;border-color:#ffbd45;background:rgba(255,189,69,.08)}
.security-setup code,.security-panel details code,.backup-status-grid code{display:block;max-width:100%;padding:10px;border:1px solid var(--border);background:#09121a;color:#cce4ef;overflow-wrap:anywhere;white-space:normal}
.security-secret{font-size:1.05rem;letter-spacing:.08em;text-align:center}
.recovery-codes{margin-top:16px;padding:14px;border:1px solid #ffbd45;background:rgba(255,189,69,.07)}
.recovery-codes>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.recovery-codes code{text-align:center;color:#fff}
.security-user-list{display:grid;gap:10px}
.security-user-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(150px,.6fr) minmax(300px,2fr) auto auto auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border);background:#0c1620}
.security-user-identity{display:grid;gap:3px}.security-user-identity small{color:var(--muted)}
.security-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;font-size:.78rem}
.security-new-user{margin-top:14px;border-top:1px solid var(--border);padding-top:14px}.security-new-user summary,.backup-restore summary{cursor:pointer;font-weight:800;color:#b9d5e2}
.security-events .mini-list>div.is-danger{border-left:3px solid #ff6262}.security-events .mini-list>div.is-success{border-left:3px solid #1fdb78}
.backup-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.backup-status-grid article{display:grid;gap:5px;padding:14px;border:1px solid var(--border);background:var(--panel)}
.backup-status-grid article span{font-size:.78rem;color:var(--muted)}.backup-status-grid article strong{font-size:1rem}
.backup-status-grid article.is-ok{border-left:3px solid #1fdb78}.backup-status-grid article.is-danger{border-left:3px solid #ff6262}
.backup-rows{display:grid;gap:9px}.backup-rows>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px;border:1px solid var(--border);background:#0c1620}
.backup-rows>article>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.backup-rows>article>div:first-child span{display:grid;gap:3px;min-width:0}.backup-rows small{color:var(--muted)}
.backup-restore{position:relative}.backup-restore form{position:absolute;z-index:5;right:0;top:calc(100% + 8px);width:min(330px,82vw);padding:14px;border:1px solid #ff6262;background:#0c1620;box-shadow:0 18px 45px rgba(0,0,0,.45)}
.document-acceptance-list{display:grid;gap:10px}.document-acceptance-list article,.document-acceptance-form{padding:14px;border:1px solid var(--border);background:#0c1620}
.document-acceptance-list article{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-acceptance-list article>div{display:flex;align-items:center;gap:10px}.document-acceptance-list article span{display:grid;gap:3px}.document-acceptance-list article small{color:var(--muted)}
.document-acceptance-list article.is-accepted{border-left:3px solid #1fdb78}.document-acceptance-list article.is-accepted em{color:#1fdb78;font-style:normal;font-weight:800}
.document-acceptance-form{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(190px,1fr) minmax(160px,.7fr) auto;gap:12px;align-items:end}.document-acceptance-form p{margin:5px 0 0;color:var(--muted);font-size:.86rem}.acceptance-evidence{margin:10px 0 0;font-size:.78rem}
@media(max-width:1100px){.security-user-row{grid-template-columns:repeat(2,minmax(0,1fr))}.security-permission-grid{grid-column:1/-1}.document-acceptance-form{grid-template-columns:1fr 1fr}.document-acceptance-form>div{grid-column:1/-1}}
@media(max-width:700px){.recovery-codes>div,.backup-status-grid,.security-permission-grid{grid-template-columns:1fr 1fr}.security-user-row,.document-acceptance-form{grid-template-columns:1fr}.document-acceptance-form>div{grid-column:auto}.backup-rows>article{align-items:flex-start;flex-direction:column}.backup-rows .inline-actions{width:100%;flex-wrap:wrap}.backup-status-grid{grid-template-columns:1fr}.document-acceptance-list article{align-items:flex-start;flex-direction:column}}
.media-admin-pending { margin-top: -2px; }
.media-admin-pending[hidden] { display: none; }
.media-admin-item.is-pending { border-style: dashed; }
.media-pending-actions { display: flex; justify-content: flex-end; }
.media-pending-remove {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 104, 104, .58);
  border-radius: 6px;
  background: transparent;
  color: #ff8c8c;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.media-pending-remove:hover { background: rgba(255, 104, 104, .12); }
.field-hint { margin: -4px 0 2px; color: var(--muted); font-size: .85rem; }
/* Edição rápida e leitura do prazo operacional das OS. */
.service-order-deadline-form { display:flex; align-items:end; gap:6px; min-width:156px; position:relative; z-index:2; }
.service-order-deadline-form label { display:grid; gap:3px; min-width:0; color:var(--muted); font-size:.67rem; font-weight:800; }
.service-order-deadline-form input[type="date"] { min-width:118px; height:32px; padding:4px 6px; color-scheme:dark; font-size:.76rem; }
.service-order-deadline-form .btn { width:32px; height:32px; padding:0; flex:0 0 32px; }
@media (max-width: 1050px) {
  .service-order-admin-row {
    grid-template-columns:minmax(112px,.85fr) minmax(150px,1.45fr) minmax(140px,1fr) minmax(154px,1.08fr) minmax(112px,.8fr) 72px;
  }
}
@media (max-width: 860px) {
  .service-order-admin-row {
    grid-template-columns:minmax(115px,.9fr) minmax(0,1.5fr);
    align-items:center;
  }
  .service-order-admin-row > strong,
  .service-order-admin-row > em,
  .service-order-admin-row > b,
  .service-order-admin-row > .service-order-deadline-form,
  .service-order-admin-row > .document-row-actions { justify-self:start; }
  .service-order-admin-row > b { grid-column:1; }
  .service-order-admin-row > .document-row-actions { grid-column:2; grid-row:3; }
}
@media (max-width: 560px) {
  .service-order-admin-row { grid-template-columns:1fr; }
  .service-order-admin-row > .document-row-actions { grid-column:auto; grid-row:auto; }
  .service-order-deadline-form { justify-self:start; }
}
/* Lista de OS: adaptação pela largura real do painel, sem sobreposição. */
.service-order-admin-row > * { min-width: 0; }
.service-order-deadline-form {
  min-width: 0;
  width: 100%;
  align-items: end;
}
.service-order-deadline-form label { flex: 1 1 auto; }
.service-order-deadline-form input[type="date"] {
  width: 100%;
  min-width: 0;
}

@container (max-width: 980px) {
  .service-order-admin-row {
    grid-template-columns: minmax(104px, .72fr) minmax(0, 1.28fr) minmax(126px, .82fr);
    grid-template-areas:
      "code client client"
      "status deadline total"
      ". actions actions";
    align-items: center;
  }
  .service-order-admin-row > strong { grid-area: code; }
  .service-order-admin-row > span { grid-area: client; }
  .service-order-admin-row > em { grid-area: status; justify-self: start; }
  .service-order-admin-row > small,
  .service-order-admin-row > .service-order-deadline-form { grid-area: deadline; justify-self: stretch; }
  .service-order-admin-row > b { grid-area: total; justify-self: end; text-align: right; }
  .service-order-admin-row > .document-row-actions { grid-area: actions; justify-self: end; }
}

@container (max-width: 640px) {
  .service-order-admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code code"
      "client client"
      "status status"
      "deadline deadline"
      "total actions";
    gap: 7px 10px;
    padding: 10px;
  }
  .service-order-admin-row > em { justify-self: start; }
  .service-order-admin-row > .service-order-deadline-form { max-width: 100%; }
  .service-order-admin-row > b { justify-self: start; text-align: left; }
  .service-order-admin-row > .document-row-actions { align-self: end; }
}

@container (max-width: 390px) {
  .service-order-admin-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "code"
      "client"
      "status"
      "deadline"
      "total"
      "actions";
  }
  .service-order-admin-row > .document-row-actions { justify-self: start; }
}

/* A lista de OS usa quebra natural do próprio card: sem colunas comprimidas. */
.service-order-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 8px 10px;
}
.service-order-admin-row > strong {
  flex: 0 0 104px;
}
.service-order-admin-row > span {
  flex: 1 1 210px;
}
.service-order-admin-row > em {
  flex: 0 1 145px;
  width: auto;
  justify-content: center;
}
.service-order-admin-row > .service-order-deadline-form,
.service-order-admin-row > small {
  flex: 1 1 185px;
  min-width: 0;
}
.service-order-deadline-form label { min-width: 0; }
.service-order-deadline-form input[type="date"] {
  min-width: 140px;
  font-size: .8rem;
}
.service-order-admin-row > b {
  flex: 0 1 122px;
  min-width: 0;
  text-align: left;
}
.service-order-admin-row > .document-row-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
@media (max-width: 560px) {
  .service-order-admin-row > strong { flex-basis: 100%; }
  .service-order-admin-row > span { flex-basis: 100%; }
  .service-order-admin-row > em { flex-basis: 145px; }
  .service-order-admin-row > .service-order-deadline-form { flex-basis: 185px; }
}

/* Reembolsos vinculados à ordem de serviço. */
.service-order-refund-field {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid #2b4151;
  padding-top: 14px;
}
.service-order-refund-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.service-order-refund-summary > span {
  display: grid;
  gap: 3px;
  border: 1px solid #2a4050;
  border-left: 3px solid #ffbf4a;
  border-radius: 6px;
  background: #0d171f;
  padding: 9px 10px;
  color: var(--muted);
  font-size: .76rem;
}
.service-order-refund-summary b,
.service-order-refund-summary strong { color: #fff; font-size: .94rem; }
.service-order-refund-summary > span:last-child { border-left-color: var(--green); }
.service-order-refund-summary > span:last-child strong { color: var(--green); }
.service-order-refund-form { display: grid; gap: 10px; }
.service-order-refund-history { display: grid; gap: 7px; }
.service-order-refund-history h3 { margin: 0; font-size: .88rem; }
.service-order-refund-history a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #2a4050;
  border-left: 3px solid #ffbf4a;
  border-radius: 6px;
  background: #0d171f;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}
.service-order-refund-history a:hover { border-color: #ffbf4a; }
.service-order-refund-history a span { display: grid; gap: 2px; }
.service-order-refund-history a small { color: var(--muted); }
.service-order-refund-history a b { color: #ffdd8a; white-space: nowrap; }
.customer-refund-history .mini-list > div { border-left: 3px solid #ffbf4a; }
@media (max-width: 640px) {
  .service-order-refund-summary { grid-template-columns: 1fr; }
}
/* Ícones nativos de data e horário: contraste consistente em todo o painel. */
.admin-body input[type="date"],
.admin-body input[type="time"],
.admin-body input[type="datetime-local"] {
  color-scheme: dark !important;
}
.admin-body input[type="date"]::-webkit-calendar-picker-indicator,
.admin-body input[type="time"]::-webkit-calendar-picker-indicator,
.admin-body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2.4) contrast(1.1) !important;
  opacity: 1 !important;
  cursor: pointer;
}
/* Premium public UI refinement - 2026-08-26 */
body:not(.admin-body):not(.admin-login):not(.print-body) {
  background:
    radial-gradient(circle at 88% 0, rgba(0, 210, 255, .06), transparent 28%),
    radial-gradient(circle at 8% 4%, rgba(55, 235, 120, .08), transparent 26%),
    var(--bg);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .site-header {
  background: rgba(9, 14, 20, .92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  backdrop-filter: blur(18px) saturate(130%);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .site-header,
body:not(.admin-body):not(.admin-login):not(.print-body) .site-subbar {
  border-bottom-color: rgba(78, 132, 153, .34);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .brand img {
  filter: drop-shadow(0 0 12px rgba(55, 235, 120, .16));
}

body:not(.admin-body):not(.admin-login):not(.print-body) .search-box,
body:not(.admin-body):not(.admin-login):not(.print-body) .subbar-search {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .search-box:focus-within,
body:not(.admin-body):not(.admin-login):not(.print-body) .subbar-search:focus-within {
  border-color: var(--cyan);
  background: #0b1821;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, .1);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .cart-pill {
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .cart-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 235, 120, .8);
  background: #12222b;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .hero {
  border-bottom-color: rgba(61, 115, 137, .34);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .feature-card,
body:not(.admin-body):not(.admin-login):not(.print-body) .product-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .feature-card:hover,
body:not(.admin-body):not(.admin-login):not(.print-body) .product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(55, 235, 120, .85);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24), 0 0 0 1px rgba(55, 235, 120, .06);
}

body:not(.admin-body):not(.admin-login):not(.print-body) .product-thumb {
  background: #f8fbfc;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .product-info {
  background: linear-gradient(180deg, rgba(20, 31, 42, .98), rgba(13, 23, 31, .98));
}

body:not(.admin-body):not(.admin-login):not(.print-body) .section-head > a,
body:not(.admin-body):not(.admin-login):not(.print-body) .footer-nav a:hover {
  text-underline-offset: 4px;
}

body:not(.admin-body):not(.admin-login):not(.print-body) .site-footer {
  border-top-color: rgba(67, 126, 149, .32);
}

@media (max-width: 940px) {
  body:not(.admin-body):not(.admin-login):not(.print-body) .header-grid {
    gap: 12px;
  }

  body:not(.admin-body):not(.admin-login):not(.print-body) .site-subbar {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
  }
}

@media (max-width: 560px) {
  body:not(.admin-body):not(.admin-login):not(.print-body) .page-band {
    padding-block: 32px;
  }

  body:not(.admin-body):not(.admin-login):not(.print-body) .product-card:hover {
    transform: none;
  }
}


/* Opções independentes em orçamentos */
.quote-options-section {
  border-color: #236e58;
  background: #0d191b;
}
.quote-option-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
}
.quote-option-tab,
.quote-option-add {
  min-height: 38px;
  border: 1px solid #28515a;
  background: #0d1518;
  color: #c9d7dd;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.quote-option-tab {
  padding: 0 14px;
  border-radius: 5px;
}
.quote-option-tab.is-active {
  border-color: #23e88a;
  color: #ffffff;
  background: #102920;
  box-shadow: inset 3px 0 0 #23e88a;
}
.quote-option-add {
  width: 38px;
  border-radius: 50%;
  color: #23e88a;
  font-size: 24px;
  line-height: 1;
}
.quote-option-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #28515a;
  border-left: 4px solid #00c8ef;
  border-radius: 6px;
  background: #0a1215;
}
.quote-option-card.is-selected {
  border-color: #23e88a;
  border-left-color: #23e88a;
}
.quote-option-card[hidden] {
  display: none;
}
.quote-option-card-head,
.quote-option-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.quote-option-fields {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(210px, 0.7fr) minmax(260px, 1.3fr);
  gap: 12px;
}
.quote-option-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.quote-option-state {
  color: #8eb3bf;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.quote-option-card.is-selected .quote-option-state {
  color: #23e88a;
}
.quote-option-item-groups {
  display: grid;
  gap: 12px;
}
.quote-option-item-groups > section {
  padding: 12px;
  border: 1px solid #203d46;
  border-radius: 5px;
  background: #0d171a;
}
.quote-option-item-groups > section > h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.quote-option-item-groups .line-block {
  gap: 8px;
}
.quote-option-item-groups .line-block-footer {
  margin-top: 8px;
}
.quote-option-footer {
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid #203d46;
}
.quote-option-footer > div {
  display: grid;
  gap: 2px;
}
.quote-option-footer span,
.quote-option-footer small {
  color: #9eb5bf;
  font-size: 12px;
}
.quote-option-footer strong {
  color: #23e88a;
  font-size: 20px;
}
.quote-option-footer small b {
  color: #ffffff;
}
.quote-options-note {
  margin: 14px 0 0;
  color: #a8bcc5;
  font-size: 13px;
}
@media (max-width: 760px) {
  .quote-option-card-head,
  .quote-option-footer {
    flex-direction: column;
  }
  .quote-option-fields {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .quote-option-actions {
    width: 100%;
    justify-content: space-between;
  }
  .quote-option-footer .btn {
    width: 100%;
  }
}

.quote-options-print {
  display: grid;
  gap: 12px;
}
.quote-option-print-card {
  padding: 12px;
  border: 1px solid #203d46;
  border-left: 4px solid #00c8ef;
  border-radius: 5px;
}
.quote-option-print-card h3 {
  margin: 0 0 6px;
}
.quote-option-print-card h3 small {
  color: #168b57;
}
.quote-option-print-total {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d6e2e5;
}
.quote-option-print-total strong {
  color: #168b57;
  font-size: 18px;
}
.quote-option-print-total small {
  margin-left: auto;
}
.quote-free-product-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid #f4b942;
  background: #1e1b10;
  color: #f7d88d;
  font-size: 12px;
}
/* Orçamento com valor fechado por opção */
.quote-flat-total-lines .line-row {
  grid-template-columns: 1.1fr 1.3fr 90px minmax(154px, 1fr) 38px;
}
.quote-flat-total-item-note {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px dashed #3a6653;
  border-radius: 5px;
  background: #0c1b16;
  color: #a6d8b7;
  font-size: 12px;
  font-weight: 700;
}
.quote-flat-total-subtotal {
  color: #9db4bf;
  font-size: 12px;
  font-weight: 650;
}
.quote-option-total-input {
  display: grid;
  min-width: 210px;
  gap: 4px;
}
.quote-option-total-input > span {
  color: #9eb5bf;
  font-size: 12px;
  font-weight: 750;
}
.quote-option-total-input input {
  min-height: 38px;
  border-color: #2ca767;
  background: #0a1b13;
  color: #f0fff6;
  font-weight: 800;
}
.quote-option-total-input input:focus {
  border-color: #43ef91;
  box-shadow: 0 0 0 2px rgba(67, 239, 145, .12);
}
.quote-items-without-pricing th:last-child,
.quote-items-without-pricing td:last-child {
  width: 72px;
  text-align: center;
}
@media (max-width: 760px) {
  .quote-flat-total-lines .line-row { grid-template-columns: 1fr; }
  .quote-option-total-input { width: 100%; min-width: 0; }
  .quote-flat-total-subtotal { width: 100%; }
}
/* Valor final definido diretamente no orçamento */
.quote-global-total-input {
  display: grid;
  grid-column: span 2;
  gap: 5px;
  padding: 10px;
  border: 1px solid #2ca767;
  border-left: 3px solid #43ef91;
  border-radius: 5px;
  background: #0a1b13;
}
.quote-global-total-input > span {
  color: #e7fff0;
  font-size: 13px;
  font-weight: 800;
}
.quote-global-total-input input {
  width: min(100%, 260px);
  min-height: 38px;
  border-color: #2ca767;
  background: #09160f;
  color: #f1fff6;
  font-weight: 800;
}
.quote-global-total-input input:focus {
  border-color: #43ef91;
  box-shadow: 0 0 0 2px rgba(67, 239, 145, .12);
}
.quote-global-total-input small {
  color: #9bc8aa;
  font-size: 12px;
}
@media (max-width: 760px) {
  .quote-global-total-input { grid-column: auto; }
}
/* Cofre privado do cliente: visível apenas ao proprietário do painel. */
.customer-private-details {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 209, 102, .42);
  border-left: 4px solid #ffd166;
  border-radius: 6px;
  background: rgba(76, 58, 15, .16);
}
.customer-private-details > div {
  display: grid;
  gap: 3px;
}
.customer-private-details > div > span {
  color: #ffe29a;
  font-weight: 800;
}
.customer-private-details > div > p,
.customer-private-details small {
  margin: 0;
  color: #c7b98a;
  font-size: 12px;
}
.customer-private-details textarea {
  min-height: 250px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}