:root {
  --gold: #0077e6;
  --gold-2: #3da9f4;
  --gold-ink: #ffffff;
  --navy: #0d2137;
  --muted: #5b6b7c;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: rgba(13, 33, 55, 0.1);
  --sans: "Segoe UI", Calibri, "Noto Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--navy);
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, svg, video, canvas { max-width: 100%; height: auto; }
button, a, input, select, textarea { touch-action: manipulation; }
button, .btn, .ch-btn, .seg button, .chip, .panel-link { min-height: 2.75rem; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
@media (max-width: 1023px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
  select, textarea { font-size: 16px; }
}

.container, .wrap {
  width: min(72rem, calc(100% - 2 * max(1rem, env(safe-area-inset-left, 0px))));
  margin-inline: auto;
}
.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 { margin: 0.35rem 0 0; font-size: clamp(1.55rem, 2.8vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.15; }
.muted { color: var(--muted); }
.lead { max-width: 36rem; margin: 0.8rem 0 0; line-height: 1.7; color: var(--muted); }
.page-hero { padding: 1.75rem 0 1.5rem; }
.section-title { margin: 0 0 1rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat, .card, .brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.stat { display: flex; flex-direction: column; justify-content: center; min-height: 5.25rem; padding: 1rem 1.05rem; }
.stat strong { display: block; font-size: 1.45rem; line-height: 1.1; }
.stat span { display: block; margin-top: 0.35rem; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0 1rem; border-radius: 0.5rem;
  border: 1px solid transparent; background: var(--gold); color: var(--gold-ink);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.btn[hidden], button.btn[hidden] { display: none !important; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn.btn-ghost, button.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn.btn-danger, button.btn-danger {
  background: #b91c1c;
  color: #fff;
}
.btn-navy { background: var(--navy); color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top);
}
.header-inner { padding: 0.35rem 0; }
.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  min-width: 0;
}
.logo-link {
  display: flex; align-items: center; align-self: center;
  line-height: 0; margin-left: -0.1rem;
}
.logo-link img {
  display: block; height: 2.6rem; width: auto; max-width: 11rem;
  object-fit: contain; object-position: left center;
}
.nav-desktop {
  display: flex; min-width: 0; align-self: center;
  flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 0.05rem; overflow-x: auto; color: var(--muted);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav-desktop::-webkit-scrollbar { display: none; }
.nav-desktop a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.4rem; min-height: 2.4rem; padding: 0 0.45rem; border-radius: 0.4rem;
  font-size: 0.82rem; font-weight: 500; white-space: nowrap; line-height: 1;
}
.nav-desktop a:hover { color: var(--gold); background: rgba(0, 119, 230, 0.08); }
.header-tools {
  display: flex; align-items: center; justify-content: flex-end; align-self: center;
  gap: 0.55rem;
}
.net-status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  max-width: 15.5rem; min-height: 2.15rem; padding: 0.15rem 0.55rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.net-status .net-dot {
  width: 0.48rem; height: 0.48rem; border-radius: 50%; flex-shrink: 0; background: #16a34a;
}
.net-status.is-on { color: #047857; }
.net-status.is-on .net-dot { background: #16a34a; }
.net-status.is-off { color: #b91c1c; }
.net-status.is-off .net-dot { background: #dc2626; }
.net-status.is-sync { color: #b45309; }
.net-status.is-sync .net-dot { background: #d97706; }
@media print { .net-status { display: none !important; } }
.site-header .panel-link {
  display: inline-flex; height: 2.4rem; min-height: 2.4rem; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0 0.7rem;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  line-height: 1;
}
.nav-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem; min-width: 2.4rem; min-height: 2.4rem;
  flex-shrink: 0; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--line); border-radius: 0.5rem;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 1.05rem; height: 2px; border-radius: 1px; background: var(--navy);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0 0.55rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  display: flex; align-items: center;
  min-height: 2.6rem; padding: 0 0.75rem; border-radius: 0.5rem;
  color: var(--navy); font-size: 0.95rem; font-weight: 600;
}
.nav-mobile a:hover { color: var(--gold); background: rgba(0, 119, 230, 0.08); }
body:not(.page-login) .header-tools {
  gap: 0.625rem;
}
body:not(.page-login) .header-tools .net-status,
body:not(.page-login) .header-tools .panel-link {
  box-sizing: border-box;
  height: 2.15rem;
  min-height: 2.15rem;
  flex-shrink: 0;
}
body:not(.page-login) .header-tools .net-status {
  max-width: none;
  padding: 0 0.55rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.3rem;
}
body:not(.page-login) .header-tools .net-status .net-dot {
  width: 0.42rem;
  height: 0.42rem;
}
body:not(.page-login) .header-tools .net-status .net-text {
  overflow: visible;
  text-overflow: clip;
}
body:not(.page-login) .header-tools .panel-link {
  padding: 0 0.7rem;
}
@media (min-width: 1024px) {
  .nav-toggle,
  .nav-mobile { display: none !important; }
  .nav-desktop { overflow: visible; min-width: min-content; }
}
@media (max-width: 1023px) {
  body:not(.page-login) .header-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.55rem;
  }
  body:not(.page-login) .nav-desktop { display: none; }
  body:not(.page-login) .nav-toggle { display: inline-flex; }
  body:not(.page-login) .nav-mobile:not([hidden]) { display: flex; }
  body:not(.page-login) .header-tools { gap: 0.5rem; }
  body:not(.page-login) .header-tools .net-status,
  body:not(.page-login) .header-tools .panel-link,
  body:not(.page-login) .nav-toggle {
    height: 2.15rem;
    min-height: 2.15rem;
  }
  body:not(.page-login) .nav-toggle {
    width: 2.15rem;
    min-width: 2.15rem;
  }
  body:not(.page-login) .header-tools .panel-link {
    padding: 0 0.55rem;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  body:not(.page-login) .logo-link img {
    max-width: min(11rem, calc(100vw - 12.25rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  }
}
@media (min-width: 768px) {
  .logo-link img { height: 3rem; max-width: 13.5rem; }
  .nav-desktop { gap: 0.2rem; }
  .nav-desktop a { height: 2.5rem; min-height: 2.5rem; padding: 0 0.75rem; font-size: 0.9rem; }
  .site-header .panel-link { height: 2.5rem; min-height: 2.5rem; padding: 0 0.85rem; }
}
@media (min-width: 1024px) {
  .logo-link img { height: 3.15rem; max-width: 14.5rem; }
}
.site-footer { margin-top: 3rem; padding: 2rem 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.site-footer-name { font-weight: 600; color: var(--navy); }
.site-footer-tag { margin-top: 0.3rem; }
.brand-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: 1fr 1fr 1fr; } }
.brand-card { display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.3rem 1.15rem; }
.brand-card:hover { border-color: var(--gold); }
.brand-top { display: flex; justify-content: space-between; align-items: center; }
.brand-count { font-size: 12px; color: var(--muted); }
.brand-card h3 { margin: 0.9rem 0 0.2rem; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.brand-card .kicker { margin: 0; }
.brand-blurb { margin: 0.65rem 0 0; line-height: 1.6; color: var(--muted); flex: 1; }
.brand-go { margin: 1rem 0 0; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.dot { width: 0.65rem; height: 0.65rem; border-radius: 99px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.chip {
  display: inline-flex; min-height: 2.5rem; align-items: center; border-radius: 999px;
  padding: 0 1rem; border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.chip.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }
.price-block { margin-top: 2rem; }
.price-group { margin-bottom: 2.2rem; }
.price-group h2 { margin: 0 0 0.7rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; }
.mobile-list { display: block; }
.mobile-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 0.85rem; border-top: 1px solid var(--line); }
.mobile-row:first-child { border-top: 0; }
.data-table { display: none; width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #f4f8fc; text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 1rem; }
.data-table td { padding: 0.6rem 1rem; border-top: 1px solid var(--line); }
.data-table th.num, .data-table td.num, .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.data-table th.col-brand, .data-table td.col-brand { text-align: left; white-space: nowrap; width: 8.5rem; }
.data-table th.qty, .data-table td.qty { text-align: center; }
.data-table td.qty input {
  display: block; box-sizing: border-box; width: 6.25rem; height: 2.75rem;
  margin: 0 auto; padding: 0 0.65rem; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--navy);
  text-align: center; font-size: 1rem; font-weight: 600; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.data-table td.qty input:focus { outline: none; border-color: var(--gold); }
.data-table td select {
  width: 100%; max-width: 28rem; height: 2.65rem; min-height: 2.65rem;
  border: 1px solid var(--line); border-radius: 0.55rem; padding: 0 2.25rem 0 0.9rem;
  background-color: #fff; color: var(--navy); font-size: 1rem; font-weight: 600; line-height: 2.65rem;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b7c' d='M1.2 1.5 6 6.3 10.8 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.75rem;
}
.data-table td select:focus { outline: none; border-color: var(--gold); }
.data-table td.qty input::-webkit-outer-spin-button,
.data-table td.qty input::-webkit-inner-spin-button {
  appearance: none; -webkit-appearance: none; margin: 0;
}
@media (min-width: 768px) {
  .mobile-list { display: none; }
  .data-table { display: table; }
}
.product-hero { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .product-hero { grid-template-columns: minmax(0,280px) 1fr; } }
.product-photo, .product-photo-empty {
  width: 100%; border-radius: 1rem; border: 1px solid var(--line); background: #fff; object-fit: contain;
}
.product-photo-empty { aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); }
body.page-login {
  display: flex; flex-direction: column; min-height: 100dvh;
}
body.page-login .site-header { flex-shrink: 0; }
body.page-login .nav-desktop,
body.page-login .site-header .panel-link {
  display: none;
}
body.page-login .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  column-gap: 0.75rem;
  min-width: 0;
}
body.page-login .logo-link {
  min-width: 0;
  flex: 1 1 auto;
}
body.page-login .logo-link img {
  height: 2.6rem;
  max-width: min(14.5rem, 100%);
}
body.page-login .header-tools {
  flex: 0 0 auto;
  gap: 0;
}
body.page-login .net-status {
  max-width: none;
  min-height: 1.7rem;
  height: 1.7rem;
  padding: 0 0.5rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.3rem;
}
body.page-login .net-status .net-dot {
  width: 0.42rem;
  height: 0.42rem;
}
body.page-login .net-status .net-text {
  overflow: visible;
  text-overflow: clip;
}
@media (min-width: 768px) {
  body.page-login .logo-link img { height: 3rem; }
}
@media (min-width: 1024px) {
  body.page-login .logo-link img { height: 3.15rem; }
}
@media (max-width: 639px) {
  body.page-login .net-status {
    min-height: 1.6rem;
    height: 1.6rem;
    padding: 0 0.42rem 0 0.35rem;
    font-size: 0.68rem;
  }
  body.page-login .logo-link img {
    height: 2.6rem;
    max-width: min(14.5rem, 100%);
  }
}
@media (max-width: 379px) {
  body.page-login .logo-link img {
    height: 2.5rem;
    max-width: min(14.5rem, 100%);
  }
}
.login-wrap {
  flex: 1 0 auto;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 1.25rem 1rem 2rem;
}
.login-card {
  width: min(24rem, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 1.1rem;
  padding: 1.25rem 1.35rem 1.2rem;
}
.login-card .kicker { margin: 0; }
.login-card h1 { margin: 0.2rem 0 0; font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.login-card > .muted { margin: 0.4rem 0 0; line-height: 1.55; }
.login-card form { margin-top: 1.05rem; display: grid; gap: 0.7rem; }
.login-card .login-back { margin: 0.9rem 0 0; }
body.page-login .site-footer { margin-top: auto; padding-top: 1.15rem; padding-bottom: 1.35rem; }
.field {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: #4a5c6e;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select, .field textarea, .input, .select {
  width: 100%; height: 2.65rem; min-height: 2.65rem; border: 1px solid var(--line);
  border-radius: 0.55rem; padding: 0 0.9rem; background: #fff; color: var(--navy);
  font-size: 1rem; font-weight: 600; line-height: 2.65rem;
}
.field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b7c' d='M1.2 1.5 6 6.3 10.8 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.75rem;
  padding-right: 2.25rem;
}
.field textarea { height: auto; min-height: 8rem; line-height: 1.5; padding: 0.7rem 0.9rem; resize: vertical; font-weight: 500; }
.testi-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .testi-grid { grid-template-columns: 1fr 1fr 1fr; } }
.testi-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.testi-photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: #eef3f8; border-bottom: 1px solid var(--line);
}
.testi-zoom {
  position: absolute; inset: 0; display: block; padding: 0; border: 0; background: #eef3f8; cursor: zoom-in;
}
.testi-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.testi-photo-count {
  position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 2;
  padding: 0.3rem 0.55rem; border-radius: 999px;
  background: rgba(13, 33, 55, 0.82); color: #fff;
  font-size: 0.78rem; font-weight: 700; line-height: 1;
  pointer-events: none;
}
.zoom-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  margin: 0; border: 0; background: rgba(13, 33, 55, 0.82); cursor: zoom-out;
  padding: max(0.65rem, env(safe-area-inset-top, 0px))
    max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.65rem, env(safe-area-inset-bottom, 0px))
    max(0.65rem, env(safe-area-inset-left, 0px));
}
.zoom-overlay img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1920px);
  max-height: min(92dvh, 92vh);
  object-fit: contain;
  background: #111;
  border-radius: 0.4rem;
  cursor: default;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.testi-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.testi-quote { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--navy); }
.testi-name { margin: 0; font-weight: 650; font-size: 0.92rem; }
.admin-testi-photo { width: 3.6rem; height: 4.5rem; object-fit: cover; object-position: center; background: #eef3f8; border: 1px solid var(--line); border-radius: 0.4rem; }
.admin-testi-photo + small { display: block; margin-top: 0.25rem; white-space: nowrap; }
.testi-picker { display: grid; gap: 0.7rem; }
.testi-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.testi-picker-head p { margin: 0; }
.testi-picker-head strong { flex: 0 0 auto; color: var(--navy); }
.testi-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.75rem;
}
.testi-preview-item {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border: 2px solid transparent; border-radius: 0.65rem; background: #e8eef5;
  cursor: grab; box-shadow: 0 2px 8px rgba(13, 33, 55, 0.08);
}
.testi-preview-item.is-cover { border-color: var(--gold); }
.testi-preview-item.is-crop-active { box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.28); }
.testi-preview-item.is-dragging { opacity: 0.5; cursor: grabbing; }
.testi-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.testi-preview-number {
  position: absolute; top: 0.4rem; left: 0.4rem; z-index: 2;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 750;
}
.testi-preview-item.is-cover .testi-preview-number { background: var(--gold); color: var(--navy); }
.testi-drag-handle {
  position: absolute; left: 0.4rem; bottom: 0.4rem; z-index: 2;
  padding: 0.28rem 0.45rem; border-radius: 0.35rem;
  background: rgba(13, 33, 55, 0.82); color: #fff; font-size: 0.7rem; font-weight: 700;
  pointer-events: none;
}
.testi-remove-photo {
  position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2;
  min-height: 1.8rem; padding: 0.25rem 0.5rem; border: 0; border-radius: 0.4rem;
  background: rgba(185, 28, 28, 0.92); color: #fff; font-size: 0.72rem; font-weight: 700; cursor: pointer;
}
.testi-crop-editor {
  display: grid; gap: 0.75rem; padding: 0.85rem;
  border: 1px solid var(--line); border-radius: 0.75rem; background: #f7fafc;
}
.testi-crop-editor[hidden] { display: none; }
.testi-crop-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.testi-crop-frame {
  position: relative; overflow: hidden; width: min(100%, 22rem); aspect-ratio: 4 / 5;
  margin-inline: auto; border-radius: 0.65rem; background: #0b1723;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 20px rgba(13,33,55,.12);
  touch-action: none; user-select: none;
}
.testi-crop-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.testi-crop-frame img {
  position: absolute; left: 50%; top: 50%; display: block;
  width: auto; height: auto; max-width: none; max-height: none;
  transform: translate3d(-50%, -50%, 0); will-change: transform;
  cursor: grab; touch-action: none; -webkit-user-drag: none;
}
.testi-crop-frame img.is-panning { cursor: grabbing; }
.testi-crop-controls {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.55rem;
}
.testi-crop-controls .btn { min-width: 2.75rem; min-height: 2.35rem; }
#testi-zoom-label { min-width: 6rem; text-align: center; color: var(--navy); font-weight: 700; }
.testi-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: minmax(3rem, 1fr) auto minmax(3rem, 1fr);
  align-items: center; gap: 0.5rem;
  overflow: hidden;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgba(7, 20, 34, 0.92);
}
.testi-lightbox-frame {
  grid-column: 2; position: relative; overflow: hidden;
  width: min(82vw, 65.6vh, 52rem); width: min(82vw, 65.6dvh, 52rem);
  max-height: 82vh; max-height: 82dvh; aspect-ratio: 4 / 5; margin: 0;
  border-radius: 0.65rem; background: #0b1723;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  user-select: none;
}
.testi-lightbox-image {
  position: absolute; left: 50%; top: 50%; display: block;
  width: auto; height: auto; max-width: none; max-height: none;
  transform: translate3d(calc(-50% + var(--testi-pan-x, 0px)), calc(-50% + var(--testi-pan-y, 0px)), 0);
  transform-origin: center; transition: transform 0.1s ease;
  will-change: transform;
  cursor: ns-resize; touch-action: none; -webkit-user-drag: none;
}
.testi-lightbox-image.is-panning {
  transition: none; cursor: grabbing;
}
.testi-lightbox-count {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%);
  padding: 0.35rem 0.65rem; border-radius: 999px;
  background: rgba(7, 20, 34, 0.78); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.testi-lightbox-close, .testi-lightbox-nav {
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff;
  cursor: pointer; line-height: 1;
}
.testi-lightbox-close {
  position: absolute; top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px)); z-index: 2;
  width: 2.75rem; height: 2.75rem; font-size: 2rem;
}
.testi-lightbox-nav { width: 3rem; height: 3rem; font-size: 2.5rem; }
.testi-lightbox-prev { grid-column: 1; justify-self: end; }
.testi-lightbox-next { grid-column: 3; justify-self: start; }
.testi-lightbox-close:hover, .testi-lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
@media (max-width: 640px) {
  .testi-lightbox {
    grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
    align-content: center; gap: 0.65rem 0.5rem; padding-inline: 0.35rem;
  }
  .testi-lightbox-frame {
    grid-column: 1 / -1; grid-row: 1; align-self: end;
    width: min(92vw, 65.6vh); width: min(92vw, 65.6dvh);
    max-height: 82vh; max-height: 82dvh;
  }
  .testi-lightbox-nav { width: 2.55rem; height: 2.55rem; font-size: 2rem; z-index: 2; }
  .testi-lightbox-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .testi-lightbox-next { grid-column: 2; grid-row: 2; justify-self: start; }
}
.upload-progress { margin-top: 0.15rem; }
.upload-progress-track {
  height: 0.5rem; background: #e8eef5; border-radius: 999px; overflow: hidden;
}
.upload-progress-fill {
  display: block; height: 100%; width: 0;
  background: var(--gold); border-radius: 999px; transition: width 0.12s linear;
}
.upload-progress-label { margin: 0.4rem 0 0; font-size: 0.92rem; font-weight: 650; color: var(--navy); }
.check-list { display: grid; gap: 0.55rem; margin-top: 1rem; }
.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.35rem; }
.check {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--navy); cursor: pointer;
}
.check input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0; flex-shrink: 0;
  accent-color: var(--gold); cursor: pointer;
}
.error { color: #b91c1c; }
.ok { color: #047857; }
.admin-body { display: flex; min-height: 100dvh; background: var(--bg); }
.admin-aside {
  display: none; width: 15.25rem; flex-shrink: 0; min-width: 0; min-height: 0;
  background: var(--navy); color: #fff; flex-direction: column;
}
.admin-brand {
  display: block;
  padding: 1rem 1rem 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff;
}
.admin-brand span { display: grid; gap: 0.12rem; min-width: 0; font-weight: 700; line-height: 1.2; }
.admin-brand small { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0.7rem 0.55rem 1rem; flex: 1; min-height: 0; overflow: auto; }
.admin-nav a { padding: 0.62rem 0.8rem; border-radius: 0.55rem; color: rgba(255,255,255,.78); font-size: 0.9rem; font-weight: 500; }
.admin-nav a.is-active, .admin-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav-group { display: grid; gap: 2px; min-width: 0; }
.admin-nav-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.45rem;
  width: 100%; min-width: 0; padding: 0.62rem 0.8rem; border-radius: 0.55rem;
  color: rgba(255,255,255,.78); font-size: 0.9rem; font-weight: 600; line-height: 1.25;
  cursor: pointer; list-style: none; user-select: none;
}
.admin-nav-toggle::-webkit-details-marker { display: none; }
.admin-nav-toggle::marker { content: ""; display: none; }
.admin-nav-toggle:hover, .admin-nav-toggle:focus-visible, .admin-nav-toggle.is-current {
  background: rgba(255,255,255,.12); color: #fff; outline: none;
}
.admin-nav-toggle-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav-toggle-meta { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.admin-nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.9rem; font-size: 0.95rem; line-height: 1; color: rgba(255,255,255,.55);
}
.admin-nav-caret::before { content: "›"; }
.admin-nav-group[open] > .admin-nav-toggle .admin-nav-caret { font-size: 0.62rem; color: rgba(255,255,255,.78); }
.admin-nav-group[open] > .admin-nav-toggle .admin-nav-caret::before { content: "▼"; }
.admin-nav-sub {
  display: grid; gap: 2px; min-width: 0;
  margin: 0 0 0.2rem 0.45rem; padding: 0 0 0.15rem 0.35rem;
  border-left: 1px solid rgba(255,255,255,.12);
}
.admin-nav-sub a { padding: 0.5rem 0.7rem; font-size: 0.84rem; }
.admin-aside-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.admin-aside-foot form { margin: 0; width: 100%; min-width: 0; }
.admin-aside-foot > a,
.admin-aside-foot .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0.55rem;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}
.admin-aside-foot > a:hover,
.admin-aside-foot .btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.55rem max(0.9rem, env(safe-area-inset-right)) 0.55rem max(0.9rem, env(safe-area-inset-left));
  background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.admin-top-brand { display: flex; align-items: center; min-width: 0; }
.admin-top-brand img { display: block; height: 2.6rem; width: auto; max-width: 11rem; object-fit: contain; object-position: left center; }
.admin-top-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.admin-top-actions .net-status { max-width: 7.5rem; min-height: 2.75rem; }
.admin-aside-foot .net-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0.55rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-aside-foot .net-status .net-text { min-width: 0; overflow-wrap: anywhere; }
.admin-aside-foot .net-status.is-on { color: #86efac; }
.admin-aside-foot .net-status.is-off { color: #fca5a5; }
.admin-aside-foot .net-status.is-sync { color: #fde68a; }
.admin-top-actions .btn { min-height: 2.75rem; padding: 0 0.8rem; font-size: 0.82rem; }
.admin-mobile-nav {
  display: flex; flex-direction: column; gap: 0.12rem; overflow-x: hidden;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0.45rem max(0.7rem, env(safe-area-inset-right)) 0.55rem max(0.7rem, env(safe-area-inset-left));
}
.admin-mobile-nav > a,
.admin-mobile-nav .admin-nav-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.45rem 0.75rem; border-radius: 0.45rem;
  color: var(--muted); font-size: 0.84rem; font-weight: 600; white-space: nowrap;
}
.admin-mobile-nav > a { font-weight: 500; }
.admin-mobile-nav > a:hover,
.admin-mobile-nav .admin-nav-toggle:hover,
.admin-mobile-nav .admin-nav-toggle.is-current {
  color: var(--gold); background: rgba(0, 119, 230, 0.08);
}
.admin-mobile-nav > a.is-active { background: var(--gold); color: #fff; font-weight: 600; }
.admin-mobile-nav .admin-nav-caret { color: var(--muted); }
.admin-mobile-nav .admin-nav-group[open] > .admin-nav-toggle .admin-nav-caret { color: var(--gold); }
.admin-mobile-nav .admin-nav-sub {
  display: grid; gap: 2px;
  margin: 0 0 0.15rem 0.55rem; padding: 0 0 0.2rem 0.4rem;
  border-left: 1px solid var(--line);
}
.admin-mobile-nav .admin-nav-sub a {
  display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between;
  padding: 0.35rem 0.7rem; border-radius: 0.45rem; white-space: nowrap;
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
}
.admin-mobile-nav .admin-nav-sub a:hover { color: var(--gold); background: rgba(0, 119, 230, 0.08); }
.admin-mobile-nav .admin-nav-sub a.is-active { background: var(--gold); color: #fff; font-weight: 600; }
.admin-content { padding: 1rem; flex: 1; overflow: auto; }
@media (min-width: 1024px) {
  .admin-aside { display: flex; }
  .admin-top, .admin-mobile-nav { display: none; }
  .admin-content { padding: 1.5rem; }
  .admin-body { height: 100dvh; }
  .admin-aside-foot { padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 1023px) {
  .admin-aside-foot {
    padding: 0.85rem 0.75rem max(0.85rem, env(safe-area-inset-bottom));
    gap: 10px;
  }
}
.toolbar, .filters { display: grid; gap: 0.6rem; }
@media (min-width: 800px) { .filters { grid-template-columns: repeat(7, minmax(0,1fr)); align-items: end; } }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; overflow: auto; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .form-grid { grid-template-columns: 1fr 1fr 1fr; } }
.sim-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .sim-grid { grid-template-columns: minmax(0,1fr) 17.5rem; align-items: start; } }
.quote-layout { display: grid; gap: 1rem; }
.quote-side { min-width: 0; }
.quote-side .quote-actions { margin-top: 0; }
.quote-side .box > .ok,
.quote-side .box > .error { margin: 0 0 0.75rem; }
.quote-side .box h2 {
  margin: 1.15rem 0 0;
  font-size: 1.15rem;
}
.quote-saved-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}
.quote-saved {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.quote-saved li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.quote-saved .quote-pick {
  flex: 0 0 auto;
  margin: 0;
  min-height: 2.4rem;
  align-items: center;
}
.quote-saved li .btn-ghost {
  flex: 1 1 8.5rem;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}
.quote-saved li .btn-danger { flex: 0 0 auto; }
.admin-content .sim-lines {
  width: 100%;
  max-width: 100%;
}
.box { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 1rem; padding: 1.35rem 1.4rem 1.45rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.box h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25; }
.quote-side .box h2 {
  margin: 1.15rem 0 0;
  font-size: 1.15rem;
}
.box > .muted { margin: 0.4rem 0 0; font-size: 0.95rem; line-height: 1.5; font-weight: 400; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.04); border-radius: 0.65rem; padding: 0.2rem; }
.seg button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; height: 2.5rem; min-height: 2.5rem; border-radius: 0.5rem; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -0.01em;
}
.seg button.is-on { background: var(--gold); color: #fff; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .ch-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.ch-btn, .ch-grid input {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.65rem; min-height: 2.65rem; border: 1px solid var(--line); background: #fff; border-radius: 0.55rem; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; color: var(--navy); line-height: 1; padding: 0 0.4rem; text-align: center;
  letter-spacing: -0.015em;
}
.ch-grid input { cursor: text; font-weight: 600; font-size: 1rem; }
.ch-btn.is-on { background: var(--gold); color: #fff; border-color: var(--gold); }
.sim-form .form-grid { gap: 1rem; }
.sim-add {
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.sim-add .field {
  font-size: 0.95rem;
  color: var(--navy);
}
.sim-add .field input {
  font-size: 1.02rem;
}
.summary-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.summary-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 11px; color: var(--muted); }
.summary-actions { display: grid; gap: 0.5rem; margin-top: 1rem; }
.summary-actions .btn { width: 100%; }
.btn-wa {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; min-height: 3.25rem; padding: 0.5rem 0.65rem;
  line-height: 1.2; text-align: center; white-space: normal;
}
.btn-wa span, .btn-wa small { display: block; width: 100%; }
.btn-wa small { font-size: 0.75rem; font-weight: 500; opacity: 0.92; }
.modal {
  position: fixed; inset: 0; z-index: 50; overflow: auto; background: rgba(0,0,0,.5); padding: 1rem;
}
.modal-card { width: min(48rem, 100%); margin: 1rem auto; background: #fff; border-radius: 1rem; padding: 1.25rem; }
.print-a4 { width: 210mm; min-height: 297mm; max-width: 100%; padding: 12mm 14mm; box-sizing: border-box; }
.modal-card.print-sheet { width: min(52rem, 100%); }
.quote-head {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 0 0 1.15rem;
}
.quote-logo {
  display: block; height: 3.5rem; width: auto; max-width: 15rem;
  object-fit: contain; object-position: left center; margin: 0 0 0.3rem;
}
.quote-sheet { color: #1c1c1c; font-size: 10.5pt; line-height: 1.55; }
.quote-sheet .kicker {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.2;
  width: fit-content; max-width: 100%;
}
.quote-meta { margin: 0.22rem 0 0; color: #3d4d5c; }
.quote-sheet table { width: 100%; border-collapse: collapse; margin-top: 0.9rem; }
.quote-sheet th, .quote-sheet td {
  padding: 0.5rem 0.75rem; vertical-align: middle; text-align: left;
}
.quote-sheet thead th {
  background: #0d2137; color: #fff; font-size: 8pt; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; border: 0;
}
.quote-sheet tbody td { border-bottom: 1px solid #e6edf4; }
.quote-sheet tbody tr:nth-child(even) td { background: #f7fafc; }
.quote-sheet tbody tr:last-child td { border-bottom: 0; }
.quote-sheet th.no, .quote-sheet td.no { width: 2.4rem; text-align: center; color: #5b6b7c; }
.quote-sheet thead th.no { color: #c5d4e2; }
.quote-sheet th.qty, .quote-sheet td.qty { width: 3.4rem; text-align: center; }
.quote-sheet th.col-brand, .quote-sheet td.col-brand {
  width: 8.5rem; text-align: left; white-space: nowrap;
}
.quote-sheet thead th.num, .quote-sheet td.num {
  width: 9.5rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.quote-sheet td.num .rp { margin-left: auto; margin-right: 0; }
.quote-total {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 1.4rem;
  margin: 0; padding: 0.85rem 0.85rem 0.85rem 1rem;
  background: #f3f7fb; border-top: 2px solid #0d2137;
  font-size: 16pt; font-weight: 700; color: #0d2137;
}
.quote-total span { font-size: 10pt; letter-spacing: 0.12em; text-transform: uppercase; color: #5b6b7c; font-weight: 700; }
.quote-total .rp { margin: 0; }
.quote-note {
  margin: 1.15rem 0 0; padding: 0.55rem 0.75rem;
  font-size: 8.5pt; line-height: 1.45; color: #7a3340;
  background: #fdf6f6; border-left: 3px solid #b91c1c;
}
.quote-letter {
  color: #111; background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5pt; line-height: 1.38;
}
.print-a4.quote-letter {
  box-shadow: 0 0 0 1px #e2e2e2, 0 10px 28px rgba(0,0,0,.08);
  overflow: visible;
  padding: 10mm 12mm 12mm;
}
.ql-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.ql-logo { display: block; height: 3.55rem; width: auto; max-width: 15rem; object-fit: contain; object-position: left center; }
.ql-brand { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 15rem; }
.ql-tag {
  margin: 0.08rem 0 0;
  font-size: 8pt;
  line-height: 1.2;
  color: #444;
  text-align: center;
  white-space: nowrap;
}
.ql-contact { text-align: right; font-size: 8.5pt; line-height: 1.35; color: #333; min-width: 0; }
.ql-contact p { margin: 0; }
.ql-title {
  margin: 0.55rem 0 0.45rem; text-align: center;
  font-size: 12pt; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.22em;
}
.ql-meta { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.ql-name { font-weight: 700; }
.ql-date { white-space: nowrap; }
.ql-intro { margin: 0.45rem 0 0.4rem; white-space: pre-line; }
.sim-ql-info {
  display: flex; justify-content: space-between; gap: 1rem 1.4rem; align-items: flex-start;
  margin: 0.15rem 0 0.55rem;
}
.sim-ql-info-main { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 0.45rem; row-gap: 0.12rem; align-items: start; min-width: 0; flex: 1; }
.sim-ql-row { display: contents; }
.sim-ql-k { color: #555; font-size: 9.5pt; line-height: 1.35; font-weight: 500; }
.sim-ql-v { font-weight: 700; line-height: 1.35; min-width: 0; white-space: pre-line; }
.sim-ql-v a { font-weight: 600; color: #0d2137; }
.sim-pdf-phone-row { display: flex; align-items: center; gap: 0.75rem; }
.sim-pdf-phone-row > input { flex: 1 1 auto; min-width: 0; }
.sim-pdf-phone-flags { display: grid; gap: 0.2rem; flex: 0 0 auto; }
.sim-pdf-phone-flags .check { font-size: 0.88rem; font-weight: 600; }
.sim-ql-terms { margin-top: 0.7rem; font-size: 8.5pt; line-height: 1.42; color: #333; }
.sim-ql-terms-title { font-weight: 700; font-size: 9.5pt; color: #111; margin-bottom: 0.18rem; }
.sim-ql-terms ol { margin: 0; padding-left: 1.15rem; }
.sim-ql-terms li { margin: 0.14rem 0; }
.quote-letter table { width: 100%; border-collapse: collapse; margin-top: 0.2rem; }
.ql-table { position: relative; margin-top: 0.2rem; }
.quote-letter .ql-table table { margin-top: 0; }
.doc-mark-host { position: relative; }
.doc-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.doc-mark canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.quote-letter thead th {
  background: transparent; color: #111; text-transform: none; letter-spacing: 0;
  font-size: 10.5pt; font-weight: 700; border: 0; border-bottom: 1px solid #111;
  padding: 0.28rem 0.4rem; text-align: left; vertical-align: bottom;
}
.quote-letter td { border-bottom: 1px solid #cfcfcf; padding: 0.28rem 0.4rem; vertical-align: top; background: transparent; }
.quote-letter tbody tr:nth-child(even) td { background: transparent; }
.quote-letter .ql-sub { display: block; margin-top: 0.04rem; font-size: 8.5pt; color: #777; font-weight: 400; }
.quote-letter th.no, .quote-letter td.no { width: 2rem; text-align: left; color: #111; }
.quote-letter th.qty, .quote-letter td.qty { width: 5.8rem; text-align: left; white-space: nowrap; }
.quote-letter th.num, .quote-letter td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-letter tfoot td { border-bottom: 0; border-top: 1px solid #111; font-weight: 700; padding-top: 0.35rem; }
.ql-terms { margin-top: 0.45rem; font-size: 9pt; line-height: 1.4; white-space: pre-line; }
.ql-pay { margin: 0.35rem 0 0; color: #c1121f; font-weight: 700; font-size: 9.5pt; }
.ql-sign {
  margin: 9mm 10mm 8mm auto;
  width: max-content;
  max-width: calc(100% - 12mm);
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
  page-break-before: auto;
  break-before: auto;
  -webkit-column-break-inside: avoid;
}
.ql-sign-keep,
.ql-sign-names {
  display: block;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.ql-sign-greet { text-align: center; }
.ql-sign-space { height: 8mm; }
.ql-sign-names { display: grid; gap: 0.2rem; justify-items: center; }
.ql-foot { margin-top: 2rem; border-top: 1px solid #111; padding-top: 0.4rem; text-align: center; font-size: 8.5pt; }
@media (max-width: 700px) {
  .ql-top, .ql-meta { flex-direction: column; }
  .ql-contact, .ql-date { text-align: left; }
  .ql-sign { margin-right: 0; margin-left: 0; max-width: 100%; }
  .quote-letter { overflow-x: auto; }
}
.rp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rp-k { flex: none; }
.rp-v { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; }
.filters { display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; } }
@media (min-width: 1280px) { .filters { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.form-grid { display: grid; gap: 0.8rem; }
.form-grid > * { min-width: 0; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sim-form .form-grid { grid-template-columns: 1fr 1fr; } }
.error { color: #b91c1c; }
.ok { color: #047857; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn.btn-danger, button.btn-danger { background: #b91c1c; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.btn-ghost, button.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.table-wrap, .table-card { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--line); text-align: left; }
.data-table thead th { background: #f4f8fc; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.data-table th.num,
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th.col-brand,
.data-table td.col-brand { text-align: left; white-space: nowrap; }
.data-table th.col-center,
.data-table td.col-center { text-align: center; }
.data-table td.col-center input {
  display: block; box-sizing: border-box; width: 8.2rem; height: 2.5rem;
  margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 0.55rem;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.data-table td.col-center select {
  display: block; margin: 0 auto; text-align: center; text-align-last: center;
}
.data-table td.col-center .rp { margin-inline: auto; }
.produk-row-status {
  display: block; margin-top: 0.4rem; font-size: 12px; font-weight: 600; line-height: 1.3;
}
.produk-row-status.is-dirty { color: #b45309; }
.data-table tr.is-dirty [data-act="quick"] { box-shadow: 0 0 0 2px #f5c16c; }
#margin-root .card.is-dirty [data-act="save"] { box-shadow: 0 0 0 2px #f5c16c; }
#margin-root .field.is-dirty input,
#margin-root .field.is-dirty select { box-shadow: 0 0 0 2px #f5c16c; }
#margin-root .field .produk-row-status { margin-top: 0.25rem; }
#margin-root .actions .produk-row-status { flex-basis: 100%; margin-top: 0; }
#produk-root .produk-table-wrap {
  max-width: 100%;
  max-height: min(70dvh, calc(100dvh - 14rem));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
  overscroll-behavior: contain;
  scrollbar-width: auto;
}
#produk-root .produk-table-wrap input,
#produk-root .produk-table-wrap select,
#produk-root .produk-table-wrap button {
  touch-action: manipulation;
}
#produk-root .produk-table-wrap .data-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
#produk-root .produk-table-wrap td:last-child {
  white-space: nowrap;
}
.data-table th.qty,
.data-table td.qty { text-align: center; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; overflow: auto; background: rgba(0,0,0,.45); padding: 1rem; }
.modal-card { width: min(32rem, 100%); background: #fff; border-radius: 1rem; padding: 1.25rem; }
.excel-harga-actions { margin: 0.75rem 0 0; }
.excel-harga-modal .modal-card { width: min(56rem, 100%); }
.excel-harga-preview { max-height: min(50dvh, 24rem); overflow: auto; margin: 0.8rem 0; }
.excel-harga-errors { color: #b91c1c; margin: 0.6rem 0; padding-left: 1.1rem; }
.excel-harga-warn { color: #b45309; margin: 0.6rem 0; padding-left: 1.1rem; }
.excel-harga-check { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; font-weight: 600; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; }
.suggest-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.suggest-list button { width: 100%; min-height: 2.75rem; text-align: left; }
.suggest-list.cam-suggest {
  max-height: 14rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
}
.suggest-list.cam-suggest.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.cam-suggest-item { width: 100%; justify-content: space-between; gap: 0.75rem; text-align: left; }
.cam-suggest-item span:first-child { flex: 1 1 auto; }
.cam-suggest-item span:nth-child(2),
.cam-suggest-item span:last-child { flex: 0 0 auto; white-space: nowrap; }
.sim-lines { overflow-x: clip; }
.sim-lines .table-wrap.doc-mark-host,
.sim-lines .table-wrap { position: relative; }
.sim-lines .doc-mark {
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}
.sim-lines .data-table thead { display: none; }
.sim-lines .data-table,
.sim-lines .data-table tbody {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 100%;
}
.sim-lines .data-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 0.7rem;
  row-gap: 0.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.9rem;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  box-shadow: 0 1px 2px rgba(13, 33, 55, 0.04);
}
.sim-lines .data-table.has-modal tr {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sim-lines .data-table tr:last-child { margin-bottom: 0; }
.sim-lines .data-table td {
  border: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  vertical-align: top;
}
.sim-lines .data-table.has-del tr { position: relative; }
.sim-lines .data-table td[data-col="name"] {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sim-lines .data-table.has-del td[data-col="name"] {
  padding-right: 4.75rem;
}
.sim-lines .data-table td[data-col="name"] .item-name {
  overflow: hidden;
  min-height: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.sim-lines .data-table td[data-col="name"] select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  height: 2.2rem;
  min-height: 2.2rem;
  margin: 0;
  padding: 0.28rem 2.1rem 0.28rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-position: right 0.8rem center;
}
.sim-lines .data-table td[data-col="name"] .muted,
.sim-lines .data-table td[data-col="name"] .item-sub {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.sim-lines .data-table td[data-col="del"] {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  align-self: start;
  justify-content: flex-end;
  z-index: 2;
  pointer-events: none;
  padding-top: 0;
  height: 2.2rem;
}
.sim-lines .data-table td[data-col="del"] .btn { pointer-events: auto; }
.sim-lines .data-table td[data-col="qty"],
.sim-lines .data-table td[data-col="modal"],
.sim-lines .data-table td[data-col="price"],
.sim-lines .data-table td[data-col="total"] {
  display: grid;
  grid-template-rows: 0.95rem 2.2rem;
  align-items: center;
  justify-items: start;
  row-gap: 0.12rem;
  min-width: 0;
  line-height: 1.25;
}
.sim-lines .data-table td[data-col="qty"] {
  grid-column: 1;
  grid-row: 2;
}
.sim-lines .data-table td[data-col="modal"] { grid-column: 2; grid-row: 2; }
.sim-lines .data-table.has-modal td[data-col="price"] { grid-column: 3; grid-row: 2; }
.sim-lines .data-table.has-modal td[data-col="total"] { grid-column: 4; grid-row: 2; }
.sim-lines .data-table:not(.has-modal) td[data-col="price"] { grid-column: 2; grid-row: 2; }
.sim-lines .data-table:not(.has-modal) td[data-col="total"] { grid-column: 3; grid-row: 2; }
.sim-lines .data-table td[data-col="total"] { justify-items: end; text-align: right; }
.sim-lines .data-table td[data-col="modal"] .rp,
.sim-lines .data-table td[data-col="price"] .rp,
.sim-lines .data-table td[data-col="total"] .rp {
  grid-row: 2;
  margin: 0;
  height: 2.2rem;
  min-height: 2.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 100%;
  gap: 0.16em;
  align-items: center;
}
.sim-lines .data-table td[data-label]::before {
  content: attr(data-label);
  grid-row: 1;
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.sim-lines .data-table td.num { text-align: inherit; line-height: 1.35; white-space: nowrap; }
.sim-lines .data-table td.qty { text-align: left; line-height: 1.35; width: auto; }
.sim-lines .data-table td.qty input {
  grid-row: 2;
  display: block;
  box-sizing: border-box;
  margin: 0;
  width: 4.1rem;
  min-width: 3.9rem;
  max-width: 4.35rem;
  height: 2.2rem;
  min-height: 2.2rem;
  flex: none;
  padding: 0;
  border-radius: 999px;
  text-align: center;
  line-height: 2.2rem;
}
.sim-lines .data-table td[data-col="del"] .btn {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
  box-sizing: border-box;
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  white-space: nowrap;
  flex: none;
}
.sim-lines .table-wrap {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
}
.sim-lines-foot {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.35rem;
  padding: 0.95rem 0.2rem 0.15rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.sim-lines-foot > span:first-child {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.sim-lines-foot .rp {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  gap: 0.32em;
}
.sim-grid > aside { min-width: 0; }
.field select, .field input, .data-table select { max-width: 100%; }
.site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }

@media (max-width: 379px) {
  .logo-link img { height: 2.6rem; max-width: 9.5rem; }
  .box { padding: 1rem 0.9rem 1.1rem; }
  .rp { font-size: 0.92rem; }
  .ch-btn, .ch-grid input { font-size: 0.82rem; padding: 0 0.25rem; }
}
@media (max-width: 639px) {
  .logo-link img { height: 2.5rem; max-width: 8.75rem; }
  .nav-desktop a { height: 2.2rem; min-height: 2.2rem; padding: 0 0.38rem; font-size: 0.78rem; }
  .site-header .panel-link { height: 2.2rem; min-height: 2.2rem; padding: 0 0.55rem; font-size: 10px; letter-spacing: 0.08em; }
  .page-hero { padding: 1.15rem 0 1rem; }
  .box { padding: 1.1rem 1rem 1.2rem; }
  .box h2 { font-size: 1.15rem; }
  .ch-grid { grid-template-columns: 1fr 1fr; }
  .ch-grid input { grid-column: 1 / -1; }
  .data-table td.qty input { width: 5.4rem; height: 2.55rem; }
  .sim-lines .data-table tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 0.5rem;
    column-gap: 0.55rem;
    padding: 0.85rem 0.85rem 0.8rem;
    margin-bottom: 0.65rem;
  }
  .sim-lines .data-table.has-modal tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .sim-lines .data-table.has-del td[data-col="name"] { padding-right: 0; }
  .sim-lines .data-table td[data-col="name"] .item-name {
    min-height: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    padding-right: 0;
  }
  .sim-lines .data-table td[data-col="name"] select {
    width: 100%;
    max-width: 100%;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 2rem 0.4rem 0.7rem;
    line-height: 1.2;
  }
  .sim-lines .data-table td[data-col="name"] .item-sub { margin-top: 0.25rem; padding-right: 0; }
  .sim-lines .data-table td[data-col="del"] {
    grid-column: -2 / -1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    align-items: end;
    align-self: end;
    padding-top: 0;
  }
  .sim-lines .data-table td[data-col="del"] .btn {
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.8rem;
  }
  .sim-lines .data-table td[data-col="qty"],
  .sim-lines .data-table td[data-col="modal"],
  .sim-lines .data-table td[data-col="price"],
  .sim-lines .data-table td[data-col="total"] {
    grid-template-rows: 1rem 2.35rem;
    row-gap: 0.2rem;
  }
  .sim-lines .data-table td[data-col="qty"],
  .sim-lines .data-table td[data-col="price"] {
    justify-items: start;
    text-align: left;
  }
  .sim-lines .data-table td[data-col="total"] {
    justify-items: end;
    text-align: right;
  }
  .sim-lines .data-table td[data-col="qty"] { grid-column: 1; grid-row: 2; }
  .sim-lines .data-table.has-modal td[data-col="price"] { grid-column: 1; grid-row: 3; }
  .sim-lines .data-table.has-modal td[data-col="modal"] {
    grid-column: 2;
    grid-row: 3;
    justify-items: center;
    text-align: center;
  }
  .sim-lines .data-table.has-modal td[data-col="total"] { grid-column: 3; grid-row: 3; }
  .sim-lines .data-table:not(.has-modal) td[data-col="price"] { grid-column: 1; grid-row: 3; }
  .sim-lines .data-table:not(.has-modal) td[data-col="total"] { grid-column: 2; grid-row: 3; }
  .sim-lines .data-table td[data-col="qty"][data-label]::before,
  .sim-lines .data-table td[data-col="price"][data-label]::before {
    justify-content: flex-start;
    width: 100%;
  }
  .sim-lines .data-table.has-modal td[data-col="modal"][data-label]::before {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .sim-lines .data-table td[data-col="total"][data-label]::before {
    justify-content: flex-end;
    width: 100%;
    text-align: right;
  }
  .sim-lines .data-table td.qty input {
    width: 3.85rem;
    min-width: 3.6rem;
    max-width: 4.1rem;
    height: 2.35rem;
    min-height: 2.35rem;
    line-height: 2.35rem;
  }
  .sim-lines .data-table td[data-col="modal"] .rp,
  .sim-lines .data-table td[data-col="price"] .rp,
  .sim-lines .data-table td[data-col="total"] .rp {
    height: 2.35rem;
    min-height: 2.35rem;
    font-size: 0.84rem;
  }
  .modal { padding: max(0.75rem, env(safe-area-inset-top)) 0.65rem max(0.75rem, env(safe-area-inset-bottom)); align-items: start; }
  .modal-card, .modal-card.print-sheet { width: min(52rem, 100%); margin: 0 auto; }
  .quote-logo { height: 2.6rem; }
  .admin-content { padding: 0.85rem 0.75rem 1.25rem; }
}
@media (max-width: 379px) {
  .sim-lines .data-table tr { padding: 0.8rem 0.75rem; row-gap: 0.45rem; column-gap: 0.6rem; }
  .sim-lines .data-table.has-del td[data-col="name"] { padding-right: 0; }
  .sim-lines .data-table td[data-col="name"] .item-name { font-size: 0.92rem; }
  .sim-lines .data-table td[data-label]::before { font-size: 9px; letter-spacing: 0.04em; }
  .sim-lines .data-table td[data-col="modal"] .rp,
  .sim-lines .data-table td[data-col="price"] .rp,
  .sim-lines .data-table td[data-col="total"] .rp { font-size: 0.8rem; }
  .sim-lines .data-table td.qty input { width: 3.5rem; min-width: 3.35rem; max-width: 3.7rem; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sim-grid { gap: 1.15rem; }
  .box { padding: 1.2rem 1.15rem 1.3rem; }
}
@media (min-width: 640px) {
  .sim-lines .data-table.has-modal tr { column-gap: 1.35rem; }
  .sim-lines .data-table td[data-col="name"] select {
    width: min(100%, 26rem);
    max-width: 100%;
  }
}
@media (min-width: 900px) and (max-width: 1023px) {
  .sim-grid { grid-template-columns: minmax(0, 1fr) 16.5rem; align-items: start; }
  .quote-layout:has(.quote-pkg) {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    align-items: start;
    gap: 1.15rem;
  }
  .quote-layout:has(.quote-pkg) > .quote-cust { grid-column: 1 / -1; }
  .quote-layout:has(.quote-pkg) > .quote-pkg { grid-column: 1; grid-row: 2; }
  .quote-layout:has(.quote-pkg) > .quote-side { grid-column: 2; grid-row: 2; }
  .quote-layout:has(.quote-pkg) > .quote-lines { grid-column: 1 / -1; }
  .quote-layout > .modal { grid-column: 1 / -1; }
  .quote-side .quote-actions { display: grid; gap: 0.5rem; }
  .quote-side .quote-actions .btn { width: 100%; }
  .quote-saved li { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem; }
  .quote-saved li .quote-pick { grid-row: 1 / span 2; align-self: center; min-height: 0; }
  .quote-saved li .btn { width: 100%; justify-content: center; }
  .quote-saved li .btn-ghost { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .sim-grid > aside .box { position: sticky; top: 5.25rem; }
  .quote-layout:has(.quote-pkg) {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    align-items: start;
    gap: 1.5rem;
  }
  .quote-layout:has(.quote-pkg) > .quote-cust { grid-column: 1 / -1; }
  .quote-layout:has(.quote-pkg) > .quote-pkg { grid-column: 1; grid-row: 2; }
  .quote-layout:has(.quote-pkg) > .quote-side { grid-column: 2; grid-row: 2; }
  .quote-layout:has(.quote-pkg) > .quote-lines { grid-column: 1 / -1; }
  .quote-layout > .modal { grid-column: 1 / -1; }
  .quote-side .box { position: sticky; top: 5.25rem; }
  .quote-side .quote-actions { display: grid; gap: 0.5rem; }
  .quote-side .quote-actions .btn { width: 100%; }
  .quote-saved li { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem; }
  .quote-saved li .quote-pick { grid-row: 1 / span 2; align-self: center; min-height: 0; }
  .quote-saved li .btn { width: 100%; justify-content: center; }
  .quote-saved li .btn-ghost { justify-content: flex-start; }
}
@media (min-width: 1440px) {
  .container, .wrap { width: min(80rem, calc(100% - 2 * max(1.5rem, env(safe-area-inset-left, 0px)))); }
}

.tech-page { --soft: #edf3f8; --surface: var(--card); display: grid; gap: 1.1rem; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.tech-page > *, .tech-page .card, .tech-page .box { min-width: 0; max-width: 100%; }
.tech-page h1, .tech-page h2, .tech-page h3 { margin: 0; line-height: 1.25; }
.tech-page > .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}
.tech-page > .section-head h1 { font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -0.025em; }
.tech-page > .section-head .muted { max-width: 48rem; margin: 0.4rem 0 0; font-size: 0.92rem; line-height: 1.55; }
.tech-page > .section-head .actions { margin-top: 0; }
.tech-page .card-head { margin-bottom: 1.1rem; }
.tech-page .card-head h2 { font-size: 1.08rem; }
.tech-page .card-head p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.tech-panel {
  padding: 1.15rem 1rem;
  min-width: 0;
  overflow-x: clip;
}
.tech-panel .card-head { margin-bottom: 1.35rem; }
.tech-panel .card-head p { margin: 0.5rem 0 0; }
@media (min-width: 768px) {
  .tech-panel { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1024px) {
  .tech-panel { padding: 1.25rem 24px 1.5rem; }
}
.tech-panel.is-collapsed { display: none; }
.tech-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.tech-stats .box { display: grid; align-content: center; min-height: 5.2rem; gap: 0.2rem; padding: 0.95rem 1.05rem; }
.tech-stats strong { font-size: 1.55rem; line-height: 1; color: var(--navy); }
.tech-stats span { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.tech-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 21.5rem); gap: 1.1rem; align-items: start; }
.tech-layout > * { min-width: 0; }
.tech-layout > section.card {
  padding: 1rem;
  min-width: 0;
}
.tech-layout > section.card > .card-head { margin-bottom: 1rem; }
.tech-layout > section.card > .card-head p { margin: 0.4rem 0 0; }
.tech-layout > section.card .tech-filters { margin-bottom: 1.05rem; }
@media (min-width: 768px) {
  .tech-layout > section.card { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1024px) {
  .tech-layout > section.card { padding: 1.2rem 24px 1.25rem; }
}
.tech-technicians { position: sticky; top: 5.25rem; padding: 1.15rem; min-width: 0; overflow-x: clip; }
.tech-technicians .stack { display: flex; flex-direction: column; gap: 0; }
.tech-technicians .field { gap: 0.4rem; }
.tech-technicians .field + .field { margin-top: 14px; }
.tech-technicians .field > small { color: var(--muted); font-size: 0.74rem; font-weight: 500; line-height: 1.4; }
.tech-technicians input, .tech-technicians select { width: 100%; min-height: 2.75rem; border-radius: 0.65rem; }
.tech-technician-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 12px; }
.tech-technician-form-actions .btn { min-height: 2.75rem; }
.tech-person-list { display: grid; gap: 0.75rem; margin-top: 1.15rem; }
.tech-person-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem 0.85rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.tech-person-list span { display: grid; gap: 0.28rem; min-width: 0; flex: 1 1 auto; }
.tech-person-list span strong { line-height: 1.3; overflow-wrap: anywhere; }
.tech-person-list span small { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0.35rem 0.5rem; align-items: baseline; margin: 0; color: #314252; font-size: 0.78rem; line-height: 1.4; }
.tech-person-list span small em { font-style: normal; color: var(--muted); font-weight: 650; font-size: 0.7rem; }
.tech-person-list span small > span { min-width: 0; overflow-wrap: anywhere; }
.data-table td small { display: block; color: var(--muted); margin-top: 0.2rem; }
.tech-person-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; flex-shrink: 0; justify-content: flex-end; }
.tech-person-actions form { margin: 0; }
.tech-person-actions .btn { min-height: 2.75rem; }
.tech-technicians .tech-person-list > div { flex-direction: column; align-items: stretch; }
.tech-technicians .tech-person-actions { justify-content: stretch; }
.tech-technicians .tech-person-actions form,
.tech-technicians .tech-person-actions .btn { flex: 1 1 8rem; }
.tech-assigned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 0.35rem; padding: 0.85rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--soft); }
.tech-assigned span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.tech-assigned strong { display: block; margin-top: 0.2rem; font-size: 0.95rem; }
.tech-assigned small { display: block; margin-top: 0.15rem; color: #405367; }
.tech-filters {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(10rem, 1.2fr) auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--soft);
}
.tech-filter-field { display: grid; grid-template-rows: 1.15rem 2.75rem; gap: 0.42rem; min-width: 0; }
.tech-filter-field > span, .tech-filter-field > label { font-size: 0.76rem; line-height: 1.15rem; font-weight: 750; color: var(--navy); }
.tech-filter-field > input, .tech-filter-field > select {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(13, 33, 55, 0.18);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--navy);
  font-size: 0.86rem;
}
.tech-filter-field > input:focus, .tech-filter-field > select:focus { border-color: var(--gold); outline: 2px solid rgba(0, 119, 230, 0.12); outline-offset: 0; }
.tech-date-control { position: relative; min-width: 0; height: 2.75rem; }
.tech-date-display {
  width: 100%;
  height: 2.75rem;
  padding: 0 5.25rem 0 0.72rem;
  border: 1px solid rgba(13, 33, 55, 0.18);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--navy);
  font-size: 0.86rem;
  cursor: pointer;
}
.tech-date-display::placeholder { color: #7a8794; opacity: 1; }
.tech-date-control:focus-within .tech-date-display { border-color: var(--gold); outline: 2px solid rgba(0, 119, 230, 0.12); outline-offset: 0; }
.tech-date-open, .tech-date-clear {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.tech-date-open { right: 0.35rem; pointer-events: none; }
.tech-date-clear { right: 2.55rem; font-size: 1.15rem; }
.tech-date-open:hover, .tech-date-clear:hover { color: var(--navy); background: var(--soft); }
.tech-date-open svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tech-date-native {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
.tech-filter-action { padding-top: 1.57rem; }
.tech-filter-action .btn { min-width: 5.6rem; min-height: 2.75rem; padding-inline: 1rem; border-radius: 0.65rem; }
.tech-page .table-wrap { max-width: 100%; border-radius: 0.7rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tech-page .data-table { display: table; width: max(100%, 52rem); min-width: 52rem; font-size: 0.82rem; line-height: 1.4; }
.tech-page .data-table th { padding: 0.68rem 0.62rem; font-size: 0.69rem; line-height: 1.25; letter-spacing: 0.045em; white-space: nowrap; }
.tech-page .data-table td { padding: 0.72rem 0.62rem; vertical-align: middle; }
.tech-page .data-table td .actions { flex-wrap: nowrap; gap: 0.35rem; }
.tech-page .data-table .btn-small { min-height: 2rem; padding: 0.35rem 0.55rem; font-size: 0.72rem; }
.tech-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tech-form .field-wide { grid-column: 1 / -1; }
.tech-form h3 { padding-top: 0.5rem; border-top: 1px solid var(--line); }
.tech-create-form {
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 64rem;
}
.tech-form-group { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(13, 33, 55, 0.09); }
.tech-form-group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.tech-form-group-head { margin-bottom: 1.15rem; }
.tech-create-form .tech-form-group-head h3 { padding: 0; border: 0; font-size: 0.96rem; color: var(--navy); }
.tech-form-group-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.77rem; line-height: 1.45; }
.tech-form-fields { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.tech-form-fields > * { min-width: 0; }
.tech-form-fields .field-wide { grid-column: 1 / -1; }
.tech-create-form .field { gap: 0; color: #405367; font-size: 0.8rem; font-weight: 700; letter-spacing: 0; }
.tech-create-form .field > span, .tech-create-form .field > label { display: block; margin-bottom: 7px; line-height: 1.3; }
.tech-create-form .field > span small { font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.tech-create-form .field input:not([type="checkbox"]):not([type="radio"]),
.tech-create-form .field select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.58rem;
  padding: 0 0.8rem;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: normal;
}
.tech-create-form .field textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 6.25rem;
  border-radius: 0.58rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}
.tech-create-form .field input::placeholder,
.tech-create-form .field textarea::placeholder { color: #8793a0; font-weight: 450; opacity: 1; }
.tech-create-form .field > small { margin-top: 6px; color: var(--muted); font-size: 0.7rem; font-weight: 500; line-height: 1.4; }
.required-mark { color: #b42318; font: inherit; }
.tech-location-action { display: grid; gap: 12px; }
.tech-location-action > p { margin: 0; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.tech-location-action > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 0.8rem; }
.tech-location-action small { color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.tech-location-action small[data-state="success"] { color: #087443; }
.tech-location-action small[data-state="error"] { color: #b42318; }
.tech-datetime-control { position: relative; min-width: 0; height: 2.75rem; }
.tech-create-form .field .tech-datetime-display {
  width: 100%;
  height: 2.75rem;
  padding-right: 5.25rem;
  cursor: pointer;
}
.tech-datetime-display::placeholder { color: #8793a0; opacity: 1; }
.tech-datetime-control:focus-within .tech-datetime-display { border-color: var(--gold); outline: 2px solid rgba(0, 119, 230, 0.12); outline-offset: 0; }
.tech-datetime-open, .tech-datetime-clear {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.tech-datetime-open { right: 0.35rem; pointer-events: none; }
.tech-datetime-clear { right: 2.55rem; z-index: 4; font-size: 1.15rem; }
.tech-datetime-open:hover, .tech-datetime-clear:hover { color: var(--navy); background: var(--soft); }
.tech-datetime-open svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tech-create-form .field .tech-datetime-native {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 3;
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
.tech-page > .section-head .btn,
.tech-create-actions .btn { min-height: 2.75rem; }
.tech-create-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; justify-content: flex-start; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(13, 33, 55, 0.09); }
.tech-create-actions .btn { min-width: 8.5rem; }
.tech-create-actions small { color: var(--muted); font-size: 0.76rem; }
.tech-photo-block { position: relative; display: grid; gap: 0.75rem; }
.tech-photo-head span { display: block; color: #405367; font-size: 0.8rem; font-weight: 700; }
.tech-photo-head p, .tech-photo-hint, .tech-photo-count { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.45; font-weight: 500; }
.tech-photo-hint { color: #b42318; }
.tech-photo-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tech-photo-actions .btn,
.tech-page [data-tech-download-mp4] { min-height: 2.75rem; padding-inline: 0.9rem; font-size: 0.84rem; }
.tech-photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tech-photo-front, .tech-photo-thumb { display: grid; gap: 0.55rem; min-width: 0; }
.tech-photo-front { max-width: 22rem; }
.tech-photo-front img, .tech-photo-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #eef3f8;
}
.tech-photo-front strong { font-size: 0.8rem; color: var(--navy); }
.tech-photo-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.tech-photo-thumb { padding: 0.55rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--card); }
.tech-photo-thumb .btn { min-height: 2.75rem; width: 100%; }
.tech-photo-count.field-wide { margin: 0; }
.tech-video-thumb video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(20rem, 70vh);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #06101a;
}
.tech-upload-progress { display: grid; gap: 0.35rem; min-width: 0; }
.tech-upload-progress span { color: #405367; font-size: 0.875rem; font-weight: 700; line-height: 1.35; }
.tech-upload-progress progress { width: 100%; max-width: 100%; height: 0.7rem; }
.tech-upload-progress small { color: var(--muted); font-size: 0.875rem; line-height: 1.4; overflow-wrap: anywhere; }
.tech-media-preview { display: grid; gap: 0.55rem; min-width: 0; }
.tech-media-preview img, .tech-media-preview video {
  display: block;
  width: 100%;
  max-width: min(22rem, 100%);
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #06101a;
}
.tech-media-group { margin-top: 1.1rem; }
.tech-media-group h3 { margin: 0; color: #405367; font-size: 0.78rem; letter-spacing: 0.04em; }
.tech-media-group .tech-media-grid { margin-top: 0.55rem; }
.tech-print-gallery-group { margin-top: 0.85rem; }
.tech-print-gallery-group h3 { margin: 0 0 0.4rem; font-size: 0.82rem; color: #0d2137; }
.tech-photo-thumb label { display: grid; gap: 0.3rem; color: #405367; font-size: 0.72rem; font-weight: 700; }
.tech-photo-thumb select { width: 100%; min-height: 2.35rem; border: 1px solid rgba(13, 33, 55, 0.18); border-radius: 0.5rem; padding: 0 0.55rem; background: #fff; font-size: 0.78rem; }
.tech-section { scroll-margin-top: 1rem; }
.tech-detail.is-tabbed .tech-section { display: none; }
.tech-detail.is-tabbed .tech-section.is-active { display: block; }
.tech-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  scrollbar-width: thin;
}
.tech-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.tech-tabs a:hover { background: var(--soft); }
.tech-tabs a.is-active {
  background: var(--navy);
  color: #fff;
}
.tech-tabs a.is-active .tech-tab-mark { color: #fff; }
.tech-tab-mark {
  display: inline-grid;
  place-items: center;
  min-width: 1rem;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 800;
}
.tech-tab-legend {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}
.tech-section-mark {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.tech-section-mark .muted { margin: 0; }
.tech-section-mark-form .btn { min-height: 2.75rem; }
.tech-empty-note { margin: 1rem 0 0; }
.tech-summary-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  margin: 0 0 1.25rem;
}
.tech-summary-facts div { min-width: 0; }
.tech-summary-facts dt { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.tech-summary-facts dd { margin: 0.2rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.tech-summary-check {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--soft);
}
.tech-summary-check li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 650;
}
.tech-summary-check li span:first-child { flex: 0 1 auto; }
.tech-summary-dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted rgba(13, 33, 55, 0.28);
  transform: translateY(-0.28rem);
}
.tech-summary-check strong { flex: 0 0 auto; color: var(--navy); }
.tech-summary-status {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #785400;
}
.tech-summary-status.is-complete { color: #17643d; }
@media print {
  .tech-detail.is-tabbed .tech-section { display: block !important; }
}
.status-pill, .priority, .additional-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 0.28rem 0.58rem; font-size: 0.72rem; font-weight: 800; line-height: 1; }
.status-pill { background: #dce9f5; color: #17466f; }
.status-completed { background: #d9f2e4; color: #17643d; }
.status-cancelled { background: #f7dddd; color: #8d2525; }
.status-postponed, .status-waiting_material, .status-waiting_customer { background: #fff0c9; color: #785400; }
.priority-low { background: #e8eef4; color: #38516b; }
.priority-medium { background: #fff0c9; color: #785400; }
.priority-high, .priority-critical { background: #f7dddd; color: #8d2525; }
.additional-badge { margin-top: 0.3rem; background: #fff0c9; color: #785400; }
.tech-timeline { display: grid; gap: 0; margin-top: 1rem; }
.tech-timeline article { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; position: relative; padding: 0 0 1rem 1rem; border-left: 2px solid var(--line); }
.tech-timeline article::before { content: ""; position: absolute; left: -0.38rem; top: 0.1rem; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--navy); }
.tech-timeline time { color: var(--muted); font-size: 0.78rem; }
.tech-timeline p { margin: 0.3rem 0; white-space: normal; }
.tech-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tech-duration { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.8rem 0; }
.tech-duration span { display: grid; padding: 0.5rem; border-radius: 0.55rem; background: var(--soft); font-size: 0.75rem; color: var(--muted); }
.tech-duration strong { color: var(--navy); font-size: 0.95rem; }
.tech-time-entries { display: grid; gap: 0.35rem; margin-top: 0.8rem; }
.tech-time-entries details { border-top: 1px solid var(--line); padding-top: 0.4rem; }
.tech-time-entries summary, .tech-issue-list summary, .tech-media-card summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: 0.82rem; }
.tech-issue-list { display: grid; gap: 1rem; margin-top: 1rem; }
.tech-solution { margin-top: 0.75rem; padding: 0.75rem; border-left: 3px solid var(--navy); background: var(--soft); border-radius: 0 0.55rem 0.55rem 0; }
.tech-solution p { margin: 0.35rem 0; }
.data-table tr.is-removed { opacity: 0.55; text-decoration: line-through; }
.tech-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.tech-media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--surface); }
.tech-media-card > button { width: 100%; border: 0; padding: 0; background: #06101a; cursor: zoom-in; }
.tech-media-card img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #06101a; }
.tech-media-card video { display: block; width: 100%; max-width: 100%; height: auto; max-height: min(20rem, 70vh); object-fit: contain; background: #06101a; }
.tech-media-card > div { display: grid; gap: 0.25rem; padding: 0.7rem; }
.tech-media-card p { margin: 0; }
.tech-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(4rem, calc(env(safe-area-inset-top) + 3rem)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.9);
}
.tech-lightbox[hidden] { display: none; }
.tech-lightbox img { max-width: min(92vw, 100%); max-height: min(84vh, 84dvh); object-fit: contain; }
.tech-lightbox button {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  border: 0;
  border-radius: 50%;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  color: white;
  background: rgba(255,255,255,0.15);
  font-size: 1.7rem;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }
.tech-audit { display: grid; gap: 0.4rem; }
.tech-audit > div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.tech-audit time { color: var(--muted); font-size: 0.78rem; }
.tech-audit span { display: grid; }
.tech-print {
  display: block;
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 12mm 14mm;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  font-size: 10pt;
  line-height: 1.35;
}
.tech-print-page { margin: 0 auto; max-width: 100%; background: white; color: #111; }
.tech-print-header {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  text-align: center;
  border-bottom: 1.2pt solid #0d2137;
  padding-bottom: 0.45rem;
  margin-bottom: 0.55rem;
  min-height: 15mm;
}
.tech-print-header img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: 15mm;
  max-width: 44mm;
  max-height: 15mm;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  margin: 0;
}
.tech-print-identity {
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  width: 100%;
  min-width: 0;
  padding-inline: 40mm;
  box-sizing: border-box;
}
.tech-print-brand {
  display: block;
  color: #0d2137;
  font-size: 15pt;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.tech-print-company, .tech-print-header div.tech-print-company {
  display: grid;
  gap: 0.06rem;
  text-align: center;
  justify-items: center;
  min-width: 0;
  font-size: 8.5pt;
  line-height: 1.3;
  color: #243547;
}
.tech-print-company strong, .tech-print-header div strong {
  color: #0d2137;
  font-size: 16pt;
  line-height: 1.15;
}
.tech-print h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 13pt;
  letter-spacing: 0.06em;
  margin: 0.45rem 0 0.5rem;
  line-height: 1.2;
}
.tech-print h2 {
  margin: 0.7rem 0 0.28rem;
  padding-bottom: 0.12rem;
  border-bottom: 0.5pt solid #c5ced6;
  font-size: 10.5pt;
  color: #0d2137;
  page-break-after: avoid;
  break-after: avoid;
}
.tech-print h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 9.5pt;
  page-break-after: avoid;
  break-after: avoid;
}
.tech-print p { margin: 0.18rem 0; }
.tech-print-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 8mm;
  align-items: start;
}
.tech-print-meta dl {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  column-gap: 0.4rem;
  row-gap: 0.14rem;
  margin: 0;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  font-size: 9pt;
  line-height: 1.35;
  justify-items: start;
  justify-self: start;
}
.tech-print-meta dl:last-child {
  justify-self: end;
  margin-right: 5mm;
}
.tech-print-meta dt {
  color: #5a6570;
  font-weight: 600;
  white-space: nowrap;
}
.tech-print-meta dt::after { content: ":"; }
.tech-print-meta dd {
  margin: 0;
  font-weight: 650;
  text-align: left;
  overflow-wrap: anywhere;
}
.tech-print-section { margin-top: 0.35rem; }
.tech-print-issue { margin-top: 0.35rem; }
.tech-print .table-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  overflow: visible;
}
.tech-print table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 8.5pt;
  line-height: 1.3;
  margin: 0 0 0.15rem;
}
.tech-print th, .tech-print td {
  padding: 0.22rem 0.28rem;
  border: 0.4pt solid #b7c0c8;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tech-print th { background: #eef3f8; font-weight: 750; text-align: left; }
.tech-print-table-timeline col, .tech-print-table-timeline th:nth-child(1),
.tech-print-table-timeline td:nth-child(1) { width: 22%; }
.tech-print-table-timeline th:nth-child(2),
.tech-print-table-timeline td:nth-child(2) { width: 16%; }
.tech-print-table-timeline th:nth-child(4),
.tech-print-table-timeline td:nth-child(4) { width: 18%; }
.tech-print-table-time th:nth-child(1),
.tech-print-table-time td:nth-child(1) { width: 40%; }
.tech-print-table-items th:nth-child(1),
.tech-print-table-items td:nth-child(1) { width: 16%; }
.tech-print-table-items th:nth-child(3),
.tech-print-table-items td:nth-child(3) { width: 14%; }
.tech-print-table-items th:nth-child(4),
.tech-print-table-items td:nth-child(4),
.tech-print-table-items th:nth-child(5),
.tech-print-table-items td:nth-child(5) { width: 16%; }
.tech-print tr { break-inside: avoid; page-break-inside: avoid; }
.tech-print-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.tech-print-gallery-group { margin-top: 0.45rem; }
.tech-print-gallery-group h3 { margin: 0 0 0.25rem; font-size: 8.5pt; color: #0d2137; }
.tech-print-gallery figure {
  margin: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  max-width: 100%;
}
.tech-print-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 46mm;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4f7fa;
  border: 0.4pt solid #cbd2d9;
}
.tech-print-gallery figcaption, .tech-video-reference { font-size: 7.5pt; padding: 0.18rem 0.12rem 0; line-height: 1.25; }
.tech-video-reference { border: 0.4pt solid #cbd2d9; display: grid; min-height: 2.4rem; padding: 0.3rem; }
.tech-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 10mm;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}
.tech-signatures div { display: grid; gap: 14mm; }
.tech-signatures span { font-size: 8pt; color: #5a6570; }
.tech-signatures strong { border-top: 0.5pt solid #0d2137; padding-top: 0.25rem; font-size: 9.5pt; }

@media (min-width: 769px) {
  .tech-form:not(.tech-create-form) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen {
  .tech-print-page.print-a4 {
    width: min(210mm, 100%);
    min-height: 297mm;
  }
}
@media (max-width: 1280px) {
  .tech-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-filter-action { padding-top: 1.57rem; }
}
@media (max-width: 1024px) {
  .tech-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-layout { grid-template-columns: 1fr; }
  .tech-technicians { position: static; }
  .tech-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-photo-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-print-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-tabs { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 768px) {
  .admin-main:has(.tech-page) .admin-top { flex-wrap: wrap; min-width: 0; }
  .admin-main:has(.tech-page) .admin-top-brand { flex: 1 1 auto; }
  .admin-main:has(.tech-page) .admin-top-actions { min-width: 0; flex-shrink: 1; flex-wrap: wrap; max-width: 100%; }
  .admin-content:has(.tech-page) { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .tech-form, .tech-time-grid, .tech-print-meta, .tech-audit > div { grid-template-columns: 1fr; }
  .tech-print-meta dl:last-child { justify-self: start; margin-right: 0; }
  .tech-form .field-wide { grid-column: auto; }
  .tech-form-group { margin-top: 1.5rem; padding: 1.5rem 0 0; }
  .tech-form-fields { grid-template-columns: 1fr; gap: 1rem; }
  .tech-form-fields .field-wide { grid-column: auto; }
  .tech-location-action > div { align-items: flex-start; flex-direction: column; }
  .tech-create-actions .btn { width: 100%; }
  .tech-photo-front { max-width: none; }
  .tech-photo-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-photo-actions .btn { flex: 1 1 10rem; }
  .tech-filters { grid-template-columns: 1fr; padding: 0.75rem; }
  .tech-filter-action { padding-top: 0; }
  .tech-filter-action .btn { width: 100%; }
  .tech-media-grid { grid-template-columns: 1fr; }
  .tech-timeline article { grid-template-columns: 1fr; gap: 0.25rem; }
  .tech-duration { grid-template-columns: 1fr; }
  .tech-page .data-table td .actions { flex-wrap: wrap; }
  .tech-page .data-table .btn-small { min-height: 2.75rem; padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .tech-lightbox img { max-width: 95vw; max-height: min(85vh, 85dvh); }
  .tech-print-header { flex-direction: column; align-items: center; text-align: center; }
  .tech-print-header img { left: 0; top: 50%; transform: translateY(-50%); }
  .tech-print-header div, .tech-print-company { text-align: center; }
  .tech-print-gallery { grid-template-columns: 1fr 1fr; }
  .tech-signatures { grid-template-columns: 1fr; gap: 2rem; }
  .tech-assigned { grid-template-columns: 1fr; }
  .tech-person-list > div { flex-direction: column; align-items: stretch; }
  .tech-person-actions { justify-content: stretch; }
  .tech-person-actions form,
  .tech-person-actions .btn,
  .tech-technician-form-actions .btn { width: 100%; }
  .tech-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tech-summary-facts { grid-template-columns: 1fr; }
  .tech-section-mark-form .btn { width: 100%; }
  .tech-detail .btn { min-height: 2.75rem; }
}
@media (max-width: 480px) {
  .tech-page { gap: 0.85rem; }
  .tech-page > .section-head h1 { font-size: 1.28rem; }
  .tech-stats { grid-template-columns: 1fr; }
  .tech-photo-thumbs { grid-template-columns: 1fr; }
  .tech-print-gallery { grid-template-columns: 1fr; }
  .tech-create-form .field { font-size: 0.88rem; }
  .tech-create-form .field input:not([type="checkbox"]):not([type="radio"]),
  .tech-create-form .field select,
  .tech-create-form .field textarea { font-size: 1rem; }
  .tech-person-list span small { grid-template-columns: 1fr; gap: 0.08rem; }
}

.settings-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.15rem 0 0.35rem;
}
.settings-kop {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.settings-kop h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}
.settings-kop > .muted { margin: 0 0 0.85rem; }
.settings-kop .form-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .settings-kop .form-grid { grid-template-columns: 1fr 1fr; }
}
.settings-kop .field-kop-wide { grid-column: 1 / -1; }
.settings-kop-label { margin: 0.9rem 0 0.4rem; font-size: 0.78rem; }
.settings-kop-preview {
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  color: #243547;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.settings-quote {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.settings-quote h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}
.settings-quote > .muted { margin: 0 0 0.85rem; }
.settings-quote .field textarea {
  min-height: 7.5rem;
  width: 100%;
  max-width: 100%;
}
.settings-logo-preview {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 7.5rem;
  min-height: 3.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(-45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf2f7 75%),
    linear-gradient(-45deg, transparent 75%, #edf2f7 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.settings-logo-preview img {
  display: block;
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.settings-logo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.settings-logo-status {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.settings-logo-dialog { width: min(28rem, 100%); }
.settings-logo-dialog p { margin: 0 0 1rem; }
.settings-logo-dialog .actions { margin-top: 0; }
.settings-toast {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(22rem, calc(100vw - 2rem));
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.12);
  color: #047857;
}
.settings-toast p { margin: 0; flex: 1; }
.settings-toast .btn {
  min-height: 2.25rem;
  padding: 0 0.7rem;
  font-size: 0.8rem;
}
.settings-toast.is-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
@media (max-width: 640px) {
  .settings-logo-preview img {
    max-width: 180px;
    max-height: 80px;
  }
  .settings-logo-actions { width: 100%; }
  .settings-logo-dialog .actions .btn { flex: 1 1 12rem; }
}

@media print {
  .no-print { display: none !important; }
  body, .admin-body, .admin-main, .admin-content { background: #fff !important; padding: 0; margin: 0; overflow: visible; }
  .print-sheet, .print-sheet * { visibility: visible; }
  .print-preview-backdrop { position: static !important; background: transparent !important; padding: 0 !important; }
  .print-sheet, .print-a4.quote-letter { box-shadow: none !important; }
  .print-a4 { width: 210mm; min-height: auto; max-width: none; padding: 12mm 14mm; }
  .print-a4.quote-letter {
    padding: 10mm 12mm 12mm;
    min-height: auto;
    overflow: visible !important;
  }
  .ql-top, .ql-meta { flex-direction: row !important; }
  .ql-contact, .ql-date { text-align: right !important; }
  .ql-sign, .ql-sign-keep, .ql-sign-names {
    text-align: center !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    page-break-before: auto !important;
    break-before: auto !important;
    -webkit-column-break-inside: avoid !important;
  }
  .ql-sign { margin: 9mm 10mm 8mm auto; max-width: calc(100% - 12mm); }
  .ql-sign-space { height: 8mm; }
  .quote-letter { overflow: visible !important; }
  .quote-letter.is-print-locked { display: none !important; }
  .tech-print { display: block; width: 210mm; padding: 0; margin: 0; }
  .tech-print-page { width: 210mm; min-height: auto; margin: 0; padding: 0; box-shadow: none; }
  .tech-print-meta { grid-template-columns: 1fr 1fr; }
  .tech-print-meta dl { grid-template-columns: max-content minmax(0, max-content); width: max-content; justify-self: start; }
  .tech-print-meta dl:last-child { justify-self: end; margin-right: 5mm; }
  .doc-mark, .doc-mark canvas {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .settings-toast, .settings-logo-dialog, #settings-logo-modal { display: none !important; }
}

.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  border-radius: 999px; background: #e8b84a; color: #1a2a3a;
  font-size: 0.72rem; font-weight: 800; line-height: 1;
}
.admin-user-chip {
  display: grid; gap: 0.12rem; min-width: 0; width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0.55rem;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}
.admin-user-chip strong {
  font-size: 0.88rem; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-chip span { font-size: 0.75rem; color: rgba(255,255,255,.55); }
.ql-signer { margin: 0; font-weight: 600; }
.quote-status.is-pending { background: #fff0c9; color: #785400; }
.quote-status.is-approved { background: #d9f3e3; color: #0f6b3c; }
.quote-status.is-rejected { background: #fde2e2; color: #9b1c1c; }
.quote-draft-banner { margin: 0 0 1rem; }
.alert, .notice {
  padding: 0.75rem 0.95rem; border-radius: 0.7rem; margin: 0.75rem 0;
  font-size: 0.92rem; line-height: 1.45;
}
.alert { background: #fde2e2; color: #9b1c1c; }
.notice { background: #d9f3e3; color: #0f6b3c; }
.approval-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.approval-actions, .reject-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.reject-form input { min-width: 10rem; flex: 1; }
.approval-cards { display: none; gap: 0.75rem; margin-top: 1rem; }
.approval-cards.is-always { display: grid; }
.approval-card {
  display: grid; gap: 0.35rem; padding: 0.9rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
}
.approval-card .actions { flex-wrap: wrap; }
.approval-total { font-weight: 800; }
.member-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.member-form { align-items: end; }
@media (max-width: 800px) {
  .approval-table { display: none; }
  .approval-cards { display: grid; }
}
@media (max-width: 700px) {
  .member-table thead { display: none; }
  .member-table tr { display: grid; gap: 0.25rem; padding: 0.8rem; border-bottom: 1px solid var(--line); }
  .member-table td { display: flex; justify-content: space-between; gap: 0.75rem; }
}

.ops-page { display: grid; gap: 0; min-width: 0; }
.ops-form .field-wide { grid-column: 1 / -1; }
.ops-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ops-date-control { position: relative; min-width: 0; width: 100%; height: 2.65rem; }
.ops-form .field .ops-date-display {
  padding-right: 2.8rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ops-form .field .ops-date-control:has([data-ops-date-clear]:not([hidden])) .ops-date-display {
  padding-right: 5.1rem;
}
.ops-form .field .ops-date-display::placeholder { color: #7a8794; font-weight: 600; opacity: 1; }
.ops-date-open, .ops-date-clear {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.ops-date-open { right: 0.35rem; pointer-events: none; }
.ops-date-clear { right: 2.45rem; font-size: 1.15rem; }
.ops-date-open:hover, .ops-date-clear:hover { color: var(--navy); background: var(--soft); }
.ops-date-open svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-form .field .ops-date-native {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  border: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
.ops-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ops-cards { display: none; gap: 0.75rem; margin-top: 1rem; }
.ops-empty-mobile { display: none; margin-top: 1rem; }
.ops-status.is-pending, .ops-status.is-unpaid { background: #fff0c9; color: #785400; }
.ops-status.is-approved, .ops-status.is-paid, .ops-status.is-received { background: #d9f3e3; color: #0f6b3c; }
.ops-status.is-rejected { background: #fde2e2; color: #9b1c1c; }
.ops-status.is-purchased { background: #dbeafe; color: #1e40af; }
.btn-small { min-height: 2rem; padding: 0.35rem 0.65rem; font-size: 0.78rem; }
.ops-photos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.7rem; margin-top: 0.75rem;
}
.ops-photo { margin: 0; display: grid; gap: 0.35rem; min-width: 0; }
.ops-photo a { display: block; border-radius: 0.55rem; overflow: hidden; border: 1px solid var(--line); background: #f4f7fb; }
.ops-photo img { display: block; width: 100%; height: 7.2rem; object-fit: cover; }
.ops-photo-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ops-inline-form { display: inline; margin: 0; }
.ops-dl { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .ops-dl { grid-template-columns: 1fr 1fr; } }
.ops-dl dt { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
.ops-dl dd { margin: 0.15rem 0 0; }
.ops-audit { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.ops-lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 1rem; background: rgba(13, 33, 55, 0.72);
}
.ops-lightbox[hidden] { display: none; }
.ops-lightbox img { max-width: min(96vw, 1100px); max-height: 88vh; border-radius: 0.6rem; background: #111; }
.ops-lightbox-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
}
@media (max-width: 800px) {
  .ops-table { display: none; }
  .ops-cards { display: grid; }
  .ops-empty-mobile { display: block; }
}
.ops-payroll-form { display: grid; gap: 1rem; min-width: 0; }
.ops-payroll-section {
  display: grid; gap: 0.75rem; min-width: 0;
  padding: 0.9rem 0 0; border-top: 1px solid var(--line);
}
.ops-payroll-form > .ops-payroll-section:first-of-type { padding-top: 0; border-top: 0; }
.ops-payroll-section h2 { margin: 0; font-size: 1rem; }
.ops-payroll-fields { display: grid; gap: 0.8rem; min-width: 0; }
@media (min-width: 700px) {
  .ops-payroll-fields { grid-template-columns: 1fr 1fr; }
}
.ops-payroll-fields > * { min-width: 0; }
.ops-payroll-fields .field-wide { grid-column: 1 / -1; }
.ops-payroll-form .field input[data-ops-rp] {
  min-height: 2.75rem; height: 2.75rem; line-height: 2.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ops-payroll-form .field select,
.ops-payroll-form .field input[type="month"] { min-height: 2.75rem; height: 2.75rem; }
.ops-payroll-form .ops-form-actions .btn { min-height: 2.75rem; }
.ops-payroll-ledger {
  display: grid; gap: 0.45rem; min-width: 0;
  padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 0.7rem;
  background: #f7fafc;
}
.ops-payroll-ledger div {
  display: flex; justify-content: space-between; gap: 0.85rem; align-items: baseline;
  min-width: 0;
}
.ops-payroll-ledger span { color: var(--muted); font-size: 0.88rem; min-width: 0; }
.ops-payroll-ledger strong {
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
  overflow: hidden; text-overflow: ellipsis;
}
.ops-payroll-ledger .is-subtotal {
  margin-top: 0.2rem; padding-top: 0.45rem; border-top: 1px dashed var(--line);
}
.ops-payroll-ledger .is-total {
  margin-top: 0.15rem; padding-top: 0.5rem; border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.ops-payroll-view { display: grid; gap: 1rem; min-width: 0; }
.ops-payroll-view .ops-payroll-section { padding-top: 0.2rem; border-top: 0; }
.ops-payroll-view .ops-dl dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.ops-member-toolbar { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ops-member-toolbar .btn { width: auto; }
.ops-member-list {
  display: grid; gap: 0.35rem; max-height: 16rem; overflow: auto;
  padding: 0.55rem; border: 1px solid var(--line); border-radius: 0.7rem; background: #f7fafc;
}
.ops-member-pick {
  display: flex; align-items: center; gap: 0.55rem;
  min-height: 2.5rem; margin: 0; padding: 0.25rem 0.4rem; border-radius: 0.45rem;
  font-weight: 600; color: var(--navy);
}
.ops-member-pick input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--gold); }
.ops-member-pick:hover { background: #fff; }
.ops-mode-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.ops-mode-opt {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.5rem; margin: 0; font-weight: 650; color: var(--navy);
}
.ops-mode-opt input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--gold); }
.ops-member-card {
  display: grid; gap: 0.7rem; margin-top: 0.75rem;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: #fff;
}
.ops-member-card h3 { margin: 0; font-size: 0.98rem; }
.ops-member-card[hidden],
.ops-member-card [hidden],
.ops-payroll-section[hidden],
.ops-member-photo[hidden] { display: none !important; }
.ops-batch-summary {
  display: grid; gap: 0.45rem;
  padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 0.7rem; background: #f7fafc;
}
.ops-batch-row {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.35rem 0; border-top: 1px solid #eef2f6;
}
.ops-batch-row:first-of-type { border-top: 0; }
.ops-batch-row strong { font-variant-numeric: tabular-nums; }
