.ops {
  --ops-gold: var(--gold, #b59a61);
  --ops-line: var(--line, #d8d3c9);
  color: inherit;
  line-height: 1.5;
}
.ops [hidden],
#opsDriverPortal[hidden] {
  display: none !important;
}
.ops h2,
.ops h3 {
  margin: 0 0 14px;
}
.ops button,
.ops input,
.ops select {
  font: inherit;
}
.ops button {
  min-height: 44px;
  cursor: pointer;
}
.ops button:disabled {
  opacity: 0.55;
  cursor: default;
}
.ops button:focus-visible,
.ops input:focus-visible,
.ops select:focus-visible {
  outline: 3px solid var(--ops-gold);
  outline-offset: 3px;
}
.ops-form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.ops-form label {
  display: grid;
  gap: 6px;
}
.ops-form input:not([type="checkbox"]),
.ops-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--white, #fff);
  color: inherit;
}
.ops-inline,
.ops-filters {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}
.ops-actions,
.ops-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.ops-metrics,
.ops-cards,
.ops-summary,
.ops-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.ops-metrics article,
.ops-cards article,
.ops-evidence-card {
  padding: 18px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--white, #fff);
}
.ops-metrics strong {
  display: block;
  font-size: 1.8rem;
}
.ops-metrics span {
  display: block;
  font-size: 0.85rem;
}
.ops-summary dd {
  margin: 0;
  font-weight: 600;
}
.ops-summary dt {
  font-size: 0.8rem;
  opacity: 0.7;
}
.ops-error {
  padding: 12px;
  background: #fff0ed;
  color: #7d2113;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.ops-message {
  padding: 12px;
  background: #f5f0e4;
  color: #493a19;
  border-radius: 8px;
}
.ops-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--ops-line);
  border-radius: 2px;
  color: var(--ink, #222);
  background: var(--paper, #fff);
  box-sizing: border-box;
}
.ops-dialog::backdrop {
  background: #0008;
}
.ops-thumb {
  display: block;
  max-width: 100%;
  width: 220px;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
}
.ops-full-photo {
  width: 100%;
  height: auto;
}
.ops-table-scroll {
  overflow: auto;
}
.ops table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.ops th,
.ops td {
  padding: 10px;
  border-bottom: 1px solid var(--ops-line);
  font-size: 0.85rem;
}
.ops-timeline {
  list-style: none;
  padding: 0 0 0 15px;
  border-left: 2px solid var(--ops-gold);
}
.ops-timeline li {
  position: relative;
  padding: 8px 8px 22px 12px;
}
.ops-timeline time,
.ops-timeline strong,
.ops-timeline span {
  display: block;
}
.ops-timeline time {
  font-size: 0.8rem;
  opacity: 0.75;
}
.ops-portal {
  max-width: 1000px;
  margin: auto;
  padding: 24px 16px 90px;
  background: var(--paper, #faf9f6);
  min-height: 100dvh;
  box-sizing: border-box;
}
.ops-portal header {
  border-bottom: 1px solid var(--ops-line);
  padding-bottom: 16px;
}
.ops-total {
  font-size: 1.2rem;
  font-weight: 700;
  border-left: 3px solid var(--ops-gold);
  padding: 12px;
}
.ops [aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
}
@media (max-width: 600px) {
  .ops-dialog {
    padding: 16px;
  }
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-cards,
  .ops-evidence {
    grid-template-columns: 1fr;
  }
  .ops-tabs {
    position: sticky;
    top: 0;
    background: var(--paper, #faf9f6);
    padding: 8px 0;
    z-index: 2;
  }
  .ops-tabs button {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px;
  }
  .ops-summary {
    grid-template-columns: 1fr 1fr;
  }
  .ops-form .btn {
    width: 100%;
  }
}

#storeView[hidden],
#adminView[hidden] {
  display: none !important;
}

.ops-portal {
  font-family: Arial, sans-serif;
}
.ops-portal h1 {
  font:
    34px Georgia,
    serif;
  font-weight: 400;
}
.ops-portal .ops-cards article {
  border-radius: 2px;
}
.ops-portal .ops-tabs {
  border-bottom: 1px solid var(--line, #dedede);
  padding-bottom: 12px;
}
.ops-portal .ops-tabs .btn {
  border-radius: 2px;
}
.ops-portal .ops-tabs .gold {
  background: var(--gold, #b59a61);
  color: var(--dark, #292c25);
}
.ops-dialog .stats .stat {
  font: inherit;
}

@media (max-width: 600px) {
  .ops-portal .ops-tabs {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper, #faf9f6);
    border-top: 1px solid var(--line, #dedede);
    border-bottom: 0;
    box-sizing: border-box;
  }
  .ops-portal .ops-tabs button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }
  .ops-portal {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

.ops .ops-cards article,
.ops .ops-evidence-card {
  border-radius: 2px;
}


/* VÉNARE MOTORISTAS — Luxury Minimalist 2026. Scoped to the private portal only. */
#opsDriverPortal.ops-portal {
  --driver-ink: #171717;
  --driver-gold: #b59b68;
  --driver-gold-dark: #886b35;
  --driver-paper: #f8f7f4;
  --driver-line: #e8e3da;
  --driver-muted: #77736d;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4.6vw, 48px) 120px;
  background: var(--driver-paper);
  color: var(--driver-ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#opsDriverPortal [hidden] { display: none !important; }
#opsDriverPortal button,
#opsDriverPortal a,
#opsDriverPortal input,
#opsDriverPortal select { -webkit-tap-highlight-color: transparent; }
#opsDriverPortal button:focus-visible,
#opsDriverPortal a:focus-visible,
#opsDriverPortal input:focus-visible,
#opsDriverPortal select:focus-visible { outline: 3px solid var(--driver-gold); outline-offset: 3px; }
#opsDriverPortal .ops-driver-header {
  border: 0;
  padding: 0;
  background: transparent;
}
#opsDriverPortal .ops-driver-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#opsDriverPortal .ops-driver-logo { display: block; width: clamp(138px, 21vw, 176px); height: auto; }
#opsDriverPortal .ops-driver-header-right { display: flex; align-items: center; gap: 14px; }
#opsDriverPortal .ops-driver-private { font: 600 9px/1.55 Inter, Arial, sans-serif; letter-spacing: 1.3px; text-align: right; color: #85795f; }
#opsDriverPortal .ops-driver-avatar {
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1.5px solid var(--driver-gold);
  border-radius: 50%;
  background: var(--driver-ink);
  color: #f1e7d1;
  font: 18px Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  box-shadow: 0 5px 17px #17171712;
}
#opsDriverPortal .ops-driver-welcome { margin: 42px 0 28px; }
#opsDriverPortal .ops-driver-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--driver-gold-dark);
}
#opsDriverPortal .ops-driver-welcome h1 {
  margin: 8px 0 3px;
  font: 400 clamp(32px, 5.6vw, 48px)/1.16 Georgia, "Times New Roman", serif;
  letter-spacing: -.8px;
}
#opsDriverPortal .ops-driver-welcome p { margin: 4px 0; color: var(--driver-muted); font-size: 15px; }
#opsDriverPortal .ops-driver-content { min-height: 40vh; }
#opsDriverPortal .ops-driver-hero {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 18px;
  background: radial-gradient(ellipse at 90% 10%, #39352d 0%, transparent 46%), linear-gradient(145deg, #272727, #121212);
  color: #f9f8f5;
  box-shadow: 0 10px 27px #16161615;
}
#opsDriverPortal .ops-driver-hero-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff2d;
}
#opsDriverPortal .ops-driver-hero-heading > span:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 400 clamp(20px, 3vw, 26px) Georgia, "Times New Roman", serif;
}
#opsDriverPortal .ops-driver-hero-heading svg { color: #decba7; }
#opsDriverPortal .ops-driver-hero-badge {
  padding: 7px 14px;
  border-radius: 100px;
  background: linear-gradient(120deg, #ddc99f, #aa8d56);
  color: #292218;
  font-size: 12px;
  font-weight: 600;
}
#opsDriverPortal .ops-driver-hero-body { padding: 18px 0 23px; }
#opsDriverPortal .ops-driver-hero-body strong { color: #decba7; font-size: 13px; letter-spacing: 1px; }
#opsDriverPortal .ops-driver-hero-body p { margin: 4px 0 9px; font-size: 21px; font-weight: 600; }
#opsDriverPortal .ops-driver-location { display: flex; gap: 8px; align-items: flex-start; color: #d6d3cc; font-size: 13px; }
#opsDriverPortal .ops-driver-location svg { width: 17px; height: 17px; flex: 0 0 auto; }
#opsDriverPortal .ops-driver-hero-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
#opsDriverPortal .ops-driver-primary,
#opsDriverPortal .ops-driver-secondary {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: .2px;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
#opsDriverPortal .ops-driver-primary {
  background: linear-gradient(115deg, #cdb98e, #ac8f58);
  color: #201d17;
}
#opsDriverPortal .ops-driver-hero .ops-driver-secondary {
  background: transparent;
  border-color: #e3d6b9;
  color: #fff;
}
#opsDriverPortal .ops-driver-primary svg,
#opsDriverPortal .ops-driver-secondary svg { width: 19px; height: 19px; }
#opsDriverPortal .ops-driver-primary:active,
#opsDriverPortal .ops-driver-secondary:active,
#opsDriverPortal .ops-driver-nav-item:active { transform: scale(.985); }
#opsDriverPortal .ops-driver-hero-empty { padding-top: 25px; padding-bottom: 25px; }
#opsDriverPortal .ops-driver-hero-kicker { display: flex; align-items: center; gap: 10px; color: #ddc69e; font-size: 11px; letter-spacing: 1.8px; font-weight: 700; }
#opsDriverPortal .ops-driver-hero-empty h2 { margin: 14px 0 4px; font: 400 28px Georgia, serif; }
#opsDriverPortal .ops-driver-hero-empty p { color: #d9d4cc; font-size: 13px; max-width: 480px; }
#opsDriverPortal .ops-driver-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 32px; }
#opsDriverPortal .ops-driver-metric {
  min-width: 0;
  min-height: 125px;
  padding: 16px 10px;
  border: 1px solid var(--driver-line);
  border-radius: 15px;
  background: #ffffffad;
  text-align: center;
}
#opsDriverPortal .ops-driver-metric svg { width: 22px; height: 22px; display: block; margin: 0 auto 7px; color: var(--driver-gold-dark); }
#opsDriverPortal .ops-driver-metric strong { display: block; font: 400 clamp(21px, 3.3vw, 32px)/1.1 Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-metric span { display: block; margin-top: 8px; color: #67645f; font-size: 11px; line-height: 1.3; }
#opsDriverPortal .ops-driver-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 16px;
}
#opsDriverPortal .ops-driver-section-head h2 { margin: 5px 0 0; font: 400 clamp(28px, 4vw, 37px)/1.12 Georgia, "Times New Roman", serif; }
#opsDriverPortal .ops-driver-text-action,
#opsDriverPortal .ops-driver-refresh,
#opsDriverPortal .ops-driver-detail-link {
  background: transparent;
  border: 0;
  color: var(--driver-gold-dark);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
#opsDriverPortal .ops-driver-text-action { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; padding: 8px 0; }
#opsDriverPortal .ops-driver-text-action svg { width: 16px; }
#opsDriverPortal .ops-driver-refresh {
  display: grid;
  place-items: center;
  border: 1px solid var(--driver-line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: white;
}
#opsDriverPortal .ops-driver-card-list { display: grid; gap: 11px; }
#opsDriverPortal .ops-driver-card {
  position: relative;
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--driver-line);
  border-radius: 16px;
  padding: 17px;
  background: #fffdfb;
  box-shadow: 0 4px 13px #1e1e1e06;
}
#opsDriverPortal .ops-driver-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f4f0e8;
  border-radius: 13px;
  color: var(--driver-gold-dark);
}
#opsDriverPortal .ops-driver-card-icon svg { width: 23px; height: 23px; }
#opsDriverPortal .ops-driver-card-info { min-width: 0; }
#opsDriverPortal .ops-driver-card-info strong { display: block; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-card-info p { margin: 3px 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-card-info small { display: block; color: var(--driver-muted); font-size: 11px; }
#opsDriverPortal .ops-driver-detail-link { display: inline-flex; align-items: center; gap: 3px; padding: 9px 0 0; font-size: 12px; font-weight: 650; }
#opsDriverPortal .ops-driver-detail-link svg { width: 15px; height: 15px; }
#opsDriverPortal .ops-driver-status {
  display: inline-block;
  max-width: 98px;
  padding: 5px 9px;
  border-radius: 40px;
  background: #f1e7d6;
  color: #775c28;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}
#opsDriverPortal .status-entregado { background: #e5f1e4; color: #386139; }
#opsDriverPortal .status-en_camino { background: #e7e9f2; color: #4a5782; }
#opsDriverPortal .status-incidencia,
#opsDriverPortal .status-fallida { background: #f8e7e4; color: #9e463d; }
#opsDriverPortal .ops-driver-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  border: 1px dashed #d6cfbf;
  border-radius: 16px;
  background: #fffcf7a8;
  color: var(--driver-muted);
  text-align: center;
}
#opsDriverPortal .ops-driver-empty svg { width: 32px; height: 32px; color: #b59b68; }
#opsDriverPortal .ops-driver-empty p { max-width: 320px; margin: 0; padding: 0 18px; font-size: 13px; }
#opsDriverPortal .ops-driver-proof-cta {
  display: grid;
  grid-template-columns: 65px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  padding: 21px;
  margin-top: 20px;
  border: 1px solid var(--driver-line);
  border-radius: 16px;
  background: #fffdfb;
}
#opsDriverPortal .ops-driver-proof-visual { display: grid; place-items: center; height: 60px; width: 60px; border-radius: 15px; background: #f1ede4; color: var(--driver-gold-dark); }
#opsDriverPortal .ops-driver-proof-visual svg { width: 29px; height: 29px; }
#opsDriverPortal .ops-driver-proof-cta h3 { margin: 0 0 2px; font: 400 23px/1.2 Georgia, serif; }
#opsDriverPortal .ops-driver-proof-cta p { margin: 0; font-size: 12px; color: #6e6962; line-height: 1.55; }
#opsDriverPortal .ops-driver-proof-cta > button { grid-column: 1/-1; width: 100%; }
#opsDriverPortal .ops-driver-filter-set { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
#opsDriverPortal .ops-driver-filter-set::-webkit-scrollbar { display: none; }
#opsDriverPortal .ops-driver-filter-set button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid #dcd6c9;
  border-radius: 25px;
  color: #5b574f;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
#opsDriverPortal .ops-driver-filter-set button.is-active { background: var(--driver-gold); border-color: var(--driver-gold); color: #191710; }
#opsDriverPortal .ops-driver-page-caption { margin: 5px 0 15px; font-size: 11px; color: var(--driver-muted); }
#opsDriverPortal .ops-driver-pagination { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 23px 0; }
#opsDriverPortal .ops-driver-pagination span { font-size: 12px; color: var(--driver-muted); }
#opsDriverPortal .ops-driver-pagination .ops-driver-secondary { border-color: #d6cfbf; background: white; color: #3e3831; min-height: 44px; }
#opsDriverPortal button:disabled { opacity: .45; cursor: not-allowed; }
#opsDriverPortal .ops-driver-cash-hero { border-radius: 17px; padding: 26px; background: #171717; color: #fff; }
#opsDriverPortal .ops-driver-cash-hero span { display: block; font-size: 12px; color: #e1cfad; letter-spacing: .7px; }
#opsDriverPortal .ops-driver-cash-hero strong { display: block; margin: 7px 0; font: 400 clamp(36px,6vw,52px) Georgia, serif; }
#opsDriverPortal .ops-driver-cash-hero small { color: #c8c1b5; font-size: 11px; }
#opsDriverPortal .ops-driver-content-section { margin: 26px 0; }
#opsDriverPortal .ops-driver-content-section > h3 { font: 400 24px Georgia, serif; margin: 0 0 12px; }
#opsDriverPortal .ops-driver-cash-table { border: 1px solid var(--driver-line); border-radius: 14px; overflow: hidden; background: white; }
#opsDriverPortal .ops-driver-cash-table .ops-table-scroll { margin: 0; overflow-x: auto; }
#opsDriverPortal .ops-driver-cash-table td,
#opsDriverPortal .ops-driver-cash-table th { font-size: 12px; }
#opsDriverPortal .ops-driver-profile { padding: 23px; border: 1px solid var(--driver-line); border-radius: 17px; background: white; }
#opsDriverPortal .ops-driver-profile-id { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--driver-line); }
#opsDriverPortal .ops-driver-avatar-large { height: 60px; width: 60px; font-size: 21px; }
#opsDriverPortal .ops-driver-profile-id h3 { margin: 0; font: 400 24px Georgia, serif; }
#opsDriverPortal .ops-driver-profile-id p { margin: 1px 0; color: var(--driver-muted); font-size: 12px; }
#opsDriverPortal .ops-driver-profile dl { margin: 0; }
#opsDriverPortal .ops-driver-profile dl div { padding: 17px 0; border-bottom: 1px solid var(--driver-line); }
#opsDriverPortal .ops-driver-profile dl div:last-child { border-bottom: 0; }
#opsDriverPortal .ops-driver-profile dt { font-size: 11px; color: var(--driver-muted); }
#opsDriverPortal .ops-driver-profile dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-signout { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 23px; min-height: 50px; width: 100%; border: 1px solid #d1c8b8; border-radius: 11px; color: #6f493f; background: transparent; font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; }
#opsDriverPortal .ops-driver-back { display: block; margin: 4px 0 19px; padding: 8px 0; border: 0; background: transparent; color: var(--driver-gold-dark); font-weight: 650; font-size: 13px; text-transform: none; letter-spacing: 0; }
#opsDriverPortal .ops-driver-order-detail { scroll-margin-top: 20px; min-width: 0; }
#opsDriverPortal .ops-driver-order-detail > h2 { margin: 0 0 14px; font: 400 32px Georgia, serif; }
#opsDriverPortal .ops-driver-order-detail > p { line-height: 1.7; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-order-detail > ul { padding: 17px 17px 17px 34px; border-radius: 12px; background: white; border: 1px solid var(--driver-line); }
#opsDriverPortal .ops-driver-order-detail > .ops-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#opsDriverPortal .ops-driver-order-detail .btn { min-height: 46px; padding: 12px 16px; border-radius: 10px; font-size: 12px; letter-spacing: .3px; }
#opsDriverPortal .ops-driver-order-detail .btn.gold { background: var(--driver-gold); color: #171717; border-color: var(--driver-gold); }
#opsDriverPortal .ops-driver-order-detail .ops-total { margin: 17px 0; border-left-color: var(--driver-gold); background: #f0eadc; border-radius: 0 10px 10px 0; font-size: 13px; }
#opsDriverPortal .ops-driver-order-detail [data-confirm],
#opsDriverPortal .ops-driver-order-detail [data-evidence],
#opsDriverPortal .ops-driver-order-detail [data-timeline] { display: block; padding: 20px; margin: 18px 0; border: 1px solid var(--driver-line); border-radius: 15px; background: #fffdfb; overflow-wrap: anywhere; }
#opsDriverPortal .ops-driver-order-detail [data-confirm]:empty { display: none; }
#opsDriverPortal .ops-driver-order-detail [data-evidence] h3,
#opsDriverPortal .ops-driver-order-detail [data-timeline] h3,
#opsDriverPortal .ops-driver-order-detail [data-confirm] h3 { font: 400 24px Georgia, serif; margin: 0 0 12px; }
#opsDriverPortal .ops-driver-order-detail .ops-form label { font-size: 12px; }
#opsDriverPortal .ops-driver-order-detail input[type="file"] { width: 100%; max-width: 100%; padding: 13px; border: 1px dashed #c2b59c; border-radius: 10px; font-size: 12px; background: #faf7ef; }
#opsDriverPortal .ops-driver-order-detail .ops-form .btn { width: 100%; }
#opsDriverPortal .ops-driver-nav {
  position: sticky;
  z-index: 35;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 38px;
  padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  background: #fbfaf8ed;
  border-top: 1px solid #e5e0d6;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#opsDriverPortal .ops-driver-nav-item { position: relative; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 51px; border: 0; border-radius: 9px; background: transparent; color: #5d5a54; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
#opsDriverPortal .ops-driver-nav-item svg { width: 24px; height: 24px; }
#opsDriverPortal .ops-driver-nav-item.is-active { color: var(--driver-gold-dark); font-weight: 700; }
#opsDriverPortal .ops-driver-nav-item.is-active::after { content: ""; position: absolute; bottom: -7px; width: 36px; height: 3px; border-radius: 4px; background: var(--driver-gold); }
@media (max-width: 600px) {
  #opsDriverPortal.ops-portal { padding: 21px 16px calc(113px + env(safe-area-inset-bottom)); }
  #opsDriverPortal .ops-driver-private { display: none; }
  #opsDriverPortal .ops-driver-top { gap: 14px; }
  #opsDriverPortal .ops-driver-welcome { margin: 38px 0 25px; }
  #opsDriverPortal .ops-driver-welcome h1 { font-size: clamp(31px, 8vw, 40px); }
  #opsDriverPortal .ops-driver-metrics { gap: 7px; margin: 16px 0 29px; }
  #opsDriverPortal .ops-driver-metric { min-height: 113px; padding: 14px 5px; }
  #opsDriverPortal .ops-driver-metric strong { font-size: clamp(18px, 5vw, 25px); }
  #opsDriverPortal .ops-driver-metric span { font-size: 10px; }
  #opsDriverPortal .ops-driver-card { gap: 9px; grid-template-columns: 37px minmax(0, 1fr) auto; padding: 14px 11px; }
  #opsDriverPortal .ops-driver-card-icon { width: 36px; height: 38px; border-radius: 10px; }
  #opsDriverPortal .ops-driver-status { max-width: 76px; font-size: 9px; padding: 5px 7px; }
  #opsDriverPortal .ops-driver-nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  #opsDriverPortal .ops-driver-nav-item { min-height: 52px; }
  #opsDriverPortal .ops-driver-nav-item.is-active::after { bottom: -3px; }
  #opsDriverPortal .ops-driver-proof-cta { padding: 16px; }
}
@media (max-width: 359px) {
  #opsDriverPortal .ops-driver-hero-actions { grid-template-columns: 1fr; }
  #opsDriverPortal .ops-driver-card-icon { display: none; }
  #opsDriverPortal .ops-driver-card { grid-template-columns: minmax(0,1fr) auto; }
  #opsDriverPortal .ops-driver-pagination { gap: 4px; }
  #opsDriverPortal .ops-driver-pagination .ops-driver-secondary { padding: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #opsDriverPortal .ops-driver-primary,
  #opsDriverPortal .ops-driver-secondary,
  #opsDriverPortal .ops-driver-nav-item { transition: none; }
}


/* Ficha de usuario > Operación de entregas: rediseño aprobado, aislado del resto de la web. */
#customerEditor .ops-driver-admin {
  --ops-card-ink: #2b2520;
  --ops-card-gold: #b69a63;
  --ops-card-line: #e9dfd1;
  position: relative;
  padding: 0;
  margin: 20px 0 26px;
  min-width: 0;
  border: 1px solid #dfc9a9;
  border-radius: 17px;
  overflow: hidden;
  background: #fffdfa;
  color: var(--ops-card-ink);
  box-shadow: 0 8px 25px rgba(50, 38, 21, .035);
}
#customerEditor .ops-driver-admin .ops-admin-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 26px 19px;
  background: linear-gradient(110deg, #f8f2e9 0%, #fbf9f6 67%, #f8f5ee 100%);
}
#customerEditor .ops-driver-admin .ops-admin-heading-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #efe5d5;
  color: #9b732e;
}
#customerEditor .ops-driver-admin .ops-admin-heading-icon svg { width: 27px; height: 27px; }
#customerEditor .ops-driver-admin .ops-admin-heading-copy { min-width: 0; }
#customerEditor .ops-driver-admin .ops-admin-heading h3 {
  margin: 0 0 3px;
  font: 400 clamp(23px, 2.4vw, 29px)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.3px;
  color: #2b2119;
}
#customerEditor .ops-driver-admin .ops-admin-heading p {
  margin: 0;
  color: #746b60;
  font-size: 13px;
  line-height: 1.5;
}
#customerEditor .ops-driver-admin .ops-admin-body { padding: 17px 26px 24px; }
#customerEditor .ops-driver-admin .ops-admin-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
#customerEditor .ops-driver-admin .ops-admin-settings label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #464039;
}
#customerEditor .ops-driver-admin .ops-admin-code input {
  width: 100%;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid #d9d3ca;
  border-radius: 9px;
  font-size: 13px;
  background: #fff;
  color: #2d2925;
  box-sizing: border-box;
  box-shadow: none;
}
#customerEditor .ops-driver-admin .ops-admin-code input::placeholder { color: #989088; font-style: italic; }
#customerEditor .ops-driver-admin .ops-admin-availability {
  padding-left: 28px;
  border-left: 1px solid #e4ded5;
}
#customerEditor .ops-driver-admin .ops-admin-switch-row {
  display: inline-flex;
  position: relative;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: #302b25;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
#customerEditor .ops-driver-admin .ops-admin-switch-row input {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 27px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
#customerEditor .ops-driver-admin .ops-admin-switch {
  position: relative;
  display: inline-block;
  width: 49px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid #d1c7b8;
  border-radius: 100px;
  background: #d9d2c8;
  transition: background .18s ease;
}
#customerEditor .ops-driver-admin .ops-admin-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #0002;
  transition: transform .18s ease;
}
#customerEditor .ops-driver-admin .ops-admin-switch-row input:checked + .ops-admin-switch {
  background: linear-gradient(115deg, #b99d61, #9f813e);
  border-color: #aa8b4b;
}
#customerEditor .ops-driver-admin .ops-admin-switch-row input:checked + .ops-admin-switch::after { transform: translateX(21px); }
#customerEditor .ops-driver-admin .ops-admin-switch-row input:focus-visible + .ops-admin-switch { outline: 3px solid #bd9e69; outline-offset: 3px; }
#customerEditor .ops-driver-admin .ops-admin-save-note {
  margin: 9px 0 19px;
  font-size: 11px;
  line-height: 1.4;
  color: #82796e;
}
#customerEditor .ops-driver-admin .ops-admin-save-note.ops-error { padding: 9px 12px; background: #fff0ed; color: #842b20; }
#customerEditor .ops-driver-admin .ops-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 24px;
}
#customerEditor .ops-driver-admin .ops-admin-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 16px 15px 14px;
  border: 1px solid #eee5d9;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffcf8, #f8f5f1);
}
#customerEditor .ops-driver-admin .ops-admin-metric-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #51473e;
}
#customerEditor .ops-driver-admin .ops-admin-metric-heading svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #a08048;
}
#customerEditor .ops-driver-admin .ops-admin-metric strong {
  font: 400 clamp(21px, 2.4vw, 30px)/1.1 Georgia, "Times New Roman", serif;
  color: #1f1b18;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#customerEditor .ops-driver-admin .ops-admin-metric--success {
  background: linear-gradient(135deg, #fbfdfa, #f2f5ef);
  border-color: #e2e8dd;
}
#customerEditor .ops-driver-admin .ops-admin-metric--success svg { color: #68835c; }
#customerEditor .ops-driver-admin .ops-admin-metric--failure {
  background: linear-gradient(135deg, #fffaf8, #f8f1ee);
  border-color: #f2e5df;
}
#customerEditor .ops-driver-admin .ops-admin-metric--failure svg { color: #b0614c; }
#customerEditor .ops-driver-admin .ops-admin-metric--cash {
  background: linear-gradient(135deg, #fffcf8, #faf3e8);
  border-color: #ecdfca;
}
#customerEditor .ops-driver-admin .ops-admin-history {
  display: block;
  border: 1px solid #ded7cd;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
#customerEditor .ops-driver-admin .ops-admin-history-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  padding: 12px 16px;
  color: #312a23;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
#customerEditor .ops-driver-admin .ops-admin-history-toggle::-webkit-details-marker { display: none; }
#customerEditor .ops-driver-admin .ops-admin-history-toggle::marker { content: ""; }
#customerEditor .ops-driver-admin .ops-admin-history-icon { display: inline-flex; color: #ac8747; }
#customerEditor .ops-driver-admin .ops-admin-history-toggle > span:nth-child(2) { min-width: 0; flex: 1; }
#customerEditor .ops-driver-admin .ops-admin-chevron { display: flex; color: #73685a; transition: transform .16s ease; }
#customerEditor .ops-driver-admin .ops-admin-chevron svg { width: 18px; height: 18px; }
#customerEditor .ops-driver-admin .ops-admin-history[open] .ops-admin-chevron { transform: rotate(90deg); }
#customerEditor .ops-driver-admin .ops-admin-history-content { padding: 20px 16px 22px; border-top: 1px solid #e9e2d8; }
#customerEditor .ops-driver-admin .ops-admin-history-content h4 {
  margin: 12px 0;
  font: 400 22px/1.3 Georgia, serif;
}
#customerEditor .ops-driver-admin .ops-admin-history-content .ops-cards article,
#customerEditor .ops-driver-admin .ops-admin-history-content .ops-evidence-card { border-radius: 11px; }
#customerEditor .ops-driver-admin .ops-admin-history-content .ops-table-scroll { max-width: 100%; }
@media (max-width: 720px) {
  #customerEditor .ops-driver-admin .ops-admin-heading { padding: 20px 18px 17px; }
  #customerEditor .ops-driver-admin .ops-admin-body { padding: 16px 18px 20px; }
  #customerEditor .ops-driver-admin .ops-admin-settings { gap: 15px; }
  #customerEditor .ops-driver-admin .ops-admin-availability { padding-left: 15px; }
  #customerEditor .ops-driver-admin .ops-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
@media (max-width: 480px) {
  #customerEditor .ops-driver-admin .ops-admin-heading-icon { width: 46px; height: 46px; }
  #customerEditor .ops-driver-admin .ops-admin-heading h3 { font-size: 23px; }
  #customerEditor .ops-driver-admin .ops-admin-settings { grid-template-columns: 1fr; gap: 12px; }
  #customerEditor .ops-driver-admin .ops-admin-availability { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e7ded2; }
  #customerEditor .ops-driver-admin .ops-admin-save-note { margin-bottom: 14px; }
  #customerEditor .ops-driver-admin .ops-admin-metric { padding: 14px 12px; }
  #customerEditor .ops-driver-admin .ops-admin-history-toggle { padding: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #customerEditor .ops-driver-admin .ops-admin-switch,
  #customerEditor .ops-driver-admin .ops-admin-switch::after,
  #customerEditor .ops-driver-admin .ops-admin-chevron { transition: none; }
}
