/* =====================================================================
   OCCHI REPARTIDOR · PALETA GLOBAL
   Cambia los valores de esta sección y el color se actualizará
   automáticamente en todos los componentes que lo utilizan.
   ===================================================================== */
:root {
  --color-primary: #1a7b88;
  --color-primary-dark: #115864;
  --color-custom-003: #e8f5f4;
  --color-page-bg-alt: #f4f7f8;
  --color-white: #fff;
  --color-text-legacy: #17323c;
  --color-muted-legacy: #6b7f87;
  --color-border-alt: #dfe8eb;
  --color-success-alt: #159c5b;
  --color-danger-alt: #d94550;
  --color-custom-011: #ffffffa8;
  --color-custom-012: #dce8e9;
  --color-custom-013: #1a7b882b;
  --color-custom-014: #f8fbfb;
  --color-custom-015: #eef4f5;
  --color-custom-016: #17323c21;
  --color-custom-017: #1a7b8817;
  --color-custom-018: #1a7b8840;
  --color-custom-019: #d9455047;
  --color-custom-020: #ffffff2d;
  --color-custom-021: #ffffff3d;
  --color-custom-022: #ffffff1f;
  --color-custom-023: #50e99b;
  --color-custom-024: #ffb56e;
  --color-custom-025: #ffffff40;
  --color-custom-026: #805600;
  --color-custom-027: #fff2cc;
  --color-custom-028: #2f5ad7;
  --color-custom-029: #e7efff;
  --color-custom-030: #087a45;
  --color-custom-031: #dcf7e7;
  --color-custom-032: #b92f3a;
  --color-custom-033: #ffe3e6;
  --color-surface-soft: #f7fafb;
  --color-custom-035: #fffffff2;
  --color-custom-036: #ffffff73;
  --color-custom-037: #a8b6bc;
  --color-custom-038: #0f1f255e;
  --color-custom-039: #17323c38;
  --color-custom-040: #d8f7e4;
  --color-custom-041: #11984b;
  --color-muted: #64748b;
  --color-custom-043: #dce5e8;
  --color-surface-soft-2: #f8fafb;
  --color-alpha-045: rgba(15, 23, 42, 0.08);
  --color-alpha-046: rgba(50, 170, 171, 0.13);
  --color-accent-dark: #238f90;
  --color-alpha-048: rgba(50, 170, 171, 0.22);
  --color-alpha-049: rgba(50, 170, 171, 0.07);
  --color-custom-050: #19343b;
  --color-custom-051: #dc2626;
  --color-custom-052: #334155;
  --color-custom-053: #d8e1e7;
  --color-custom-054: #162c33;
  --color-accent: #32aaab;
  --color-custom-056: #f8fafc;
  --color-custom-057: #dbe4e9;
  --color-custom-058: #475569;
  --color-alpha-059: rgba(50, 170, 171, 0.1);
  --color-custom-060: #1f8586;
  --color-alpha-061: rgba(50, 170, 171, 0.09);
  --color-custom-062: #cbd5e1;
  --color-alpha-063: rgba(50, 170, 171, 0.08);
  --color-alpha-064: rgba(220, 38, 38, 0.2);
  --color-alpha-065: rgba(220, 38, 38, 0.07);
  --color-custom-066: #b91c1c;
  --color-whatsapp: #25d366;
  --color-custom-068: #1ebe5d;
  --color-alpha-069: rgba(255, 255, 255, 0.3);
  --color-white-283: #ffffff;
  --color-alpha-070: rgba(0, 0, 0, 0.15);
  --color-custom-071: #dbe5e8;
  --color-custom-072: #f8fbfc;
  --color-custom-073: #dce6e9;
  --color-custom-074: #e8f5f6;
  --color-custom-075: #334b55;
  --color-custom-076: #c8d5d9;
  --color-custom-077: #9acbd0;
  --color-alpha-078: rgba(26, 123, 136, 0.08);
  --color-custom-079: #eefafa;
  --color-alpha-080: rgba(26, 123, 136, 0.09);
  --color-custom-081: #e95a64;
  --color-custom-082: #d9434f;
  --color-alpha-083: rgba(217, 67, 79, 0.18);
  --color-custom-084: #d7e8eb;
  --color-custom-085: #f4fbfc;
  --color-alpha-086: rgba(20, 75, 84, 0.08);
  --color-text-strong: #17353d;
  --color-custom-088: #177d88;
  --color-custom-089: #e6f6f8;
  --color-custom-090: #edf7f8;
  --color-custom-091: #73898f;
  --color-custom-092: #14363e;
  --color-custom-093: #8edbd4;
  --color-custom-094: #eafbf7;
  --color-custom-095: #288e87;
  --color-custom-096: #14383d;
  --color-custom-097: #526d73;
  --color-custom-098: #e0ecee;
  --color-custom-099: #8cded5;
  --color-custom-100: #f0fcf9;
  --color-custom-101: #73878d;
  --color-custom-102: #18363e;
  --color-custom-103: #e7f5f6;
  --color-custom-104: #60777d;
  --color-custom-105: #547078;
  --color-custom-106: #eaf6f7;
  --color-custom-107: #edf8f9;
  --color-custom-108: #99e5dc;
  --color-custom-109: #587078;
  --color-custom-110: #15803d;
  --color-custom-111: #dcfce7;
  --color-alpha-112: rgba(20, 55, 65, 0.08);
  --color-alpha-113: rgba(20, 55, 65, 0.055);
  --color-alpha-114: rgba(26, 123, 136, 0.025);
  --color-alpha-115: rgba(17, 88, 100, 0.14);
  --color-alpha-116: rgba(0, 0, 0, 0.09);
  --color-alpha-117: rgba(255, 255, 255, 0.04);
  --color-alpha-118: rgba(255, 255, 255, 0.78);
  --color-alpha-119: rgba(255, 255, 255, 0.18);
  --color-alpha-120: rgba(255, 255, 255, 0.1);
  --color-alpha-121: rgba(255, 255, 255, 0.82);
  --color-text-alt: #102e37;
  --color-alpha-123: rgba(26, 123, 136, 0.12);
  --color-alpha-124: rgba(26, 123, 136, 0.14);
  --color-custom-125: #f6fbfb;
  --color-alpha-126: rgba(107, 127, 135, 0.17);
  --color-custom-127: #eef2f3;
  --color-custom-128: #7c9097;
  --color-alpha-129: rgba(20, 55, 65, 0.05);
  --color-custom-130: #edf2f3;
  --color-border: #dce7ea;
  --color-custom-132: #667e86;
  --color-custom-133: #fff0f3;
  --color-custom-134: #d13e62;
  --color-custom-135: #e9eff1;
  --color-custom-136: #cbdde1;
  --color-alpha-137: rgba(26, 123, 136, 0.06);
  --color-alpha-138: rgba(255, 255, 255, 0.58);
  --color-alpha-139: rgba(17, 88, 100, 0.09);
  --color-custom-140: #6e858d;
  --color-alpha-141: rgba(26, 123, 136, 0.18);
  --color-custom-142: #e1f8ec;
  --color-custom-143: #0d8a50;
  --color-custom-144: #19b56c;
  --color-custom-145: #6f858d;
  --color-custom-146: #8da0a7;
  --color-alpha-147: rgba(217, 69, 80, 0.18);
  --color-alpha-148: rgba(214, 226, 229, 0.85);
  --color-alpha-149: rgba(26, 123, 136, 0.16);
  --color-custom-150: #f6fafb;
  --color-page-bg: #f3f7f8;
  --color-text: #102d35;
  --color-muted-alt: #6c8088;
  --color-primary-alt: #167d88;
  --color-primary-dark-alt: #0f626c;
  --color-primary-deep: #0a5059;
  --color-custom-157: #e8f6f5;
  --color-success: #15995a;
  --color-custom-159: #e5f8ee;
  --color-warning: #cf8b18;
  --color-custom-161: #fff5dd;
  --color-danger: #d94350;
  --color-custom-163: #fff0f2;
  --color-info: #3974d8;
  --color-custom-165: #edf3ff;
  --color-alpha-166: rgba(16, 45, 53, 0.07);
  --color-alpha-167: rgba(16, 45, 53, 0.1);
  --color-alpha-168: rgba(10, 56, 64, 0.16);
  --color-alpha-169: rgba(22, 125, 136, 0.22);
  --color-alpha-170: rgba(255, 255, 255, 0.24);
  --color-alpha-171: rgba(255, 255, 255, 0.11);
  --color-custom-172: #248e98;
  --color-alpha-173: rgba(10, 80, 89, 0.17);
  --color-alpha-174: rgba(255, 255, 255, 0.12);
  --color-alpha-175: rgba(6, 50, 57, 0.18);
  --color-alpha-176: rgba(255, 255, 255, 0.08);
  --color-alpha-177: rgba(80, 233, 155, 0.1);
  --color-alpha-178: rgba(255, 255, 255, 0.15);
  --color-alpha-179: rgba(4, 50, 56, 0.18);
  --color-alpha-180: rgba(255, 255, 255, 0.86);
  --color-border-soft: #dce8ea;
  --color-alpha-182: rgba(22, 125, 136, 0.15);
  --color-alpha-183: rgba(232, 246, 245, 0.95);
  --color-alpha-184: rgba(255, 255, 255, 0.95);
  --color-alpha-185: rgba(22, 125, 136, 0.055);
  --color-custom-186: #eadcc6;
  --color-custom-187: #fffaf1;
  --color-custom-188: #d49b39;
  --color-custom-189: #b67c23;
  --color-alpha-190: rgba(16, 45, 53, 0.045);
  --color-alpha-191: rgba(16, 45, 53, 0.055);
  --color-alpha-192: rgba(22, 125, 136, 0.74);
  --color-alpha-193: rgba(21, 153, 90, 0.52);
  --color-custom-194: #f1dfb3;
  --color-custom-195: #95610c;
  --color-custom-196: #d4e1fb;
  --color-custom-197: #3164bb;
  --color-custom-198: #cfeedd;
  --color-custom-199: #0d7e47;
  --color-custom-200: #f4d2d7;
  --color-custom-201: #bb3642;
  --color-custom-202: #d9efee;
  --color-custom-203: #e7edef;
  --color-custom-204: #536d76;
  --color-alpha-205: rgba(16, 45, 53, 0.06);
  --color-custom-206: #e8eef0;
  --color-custom-207: #fafcfc;
  --color-custom-208: #ceeddc;
  --color-custom-209: #0d8149;
  --color-custom-210: #f1d7db;
  --color-custom-211: #bd3743;
  --color-alpha-212: rgba(22, 125, 136, 0.2);
  --color-alpha-213: rgba(22, 125, 136, 0.14);
  --color-custom-214: #cbdcdf;
  --color-alpha-215: rgba(255, 255, 255, 0.65);
  --color-custom-216: #8ca6ad;
  --color-custom-217: #d9e7e8;
  --color-custom-218: #dfeaec;
  --color-custom-219: #e3ecee;
  --color-custom-220: #f9fbfb;
  --color-custom-221: #f8fcfc;
  --color-custom-222: #5c747c;
  --color-alpha-223: rgba(22, 125, 136, 0.18);
  --color-custom-224: #e4edef;
  --color-alpha-225: rgba(22, 125, 136, 0.26);
  --color-custom-226: #f7fcfb;
  --color-alpha-227: rgba(22, 125, 136, 0.08);
  --color-custom-228: #ccebd9;
  --color-custom-229: #0e8048;
  --color-custom-230: #efdbb5;
  --color-custom-231: #9b6714;
  --color-alpha-232: rgba(16, 45, 53, 0.04);
  --color-custom-233: #e9eff0;
  --color-custom-234: #f0ccd1;
  --color-alpha-235: rgba(212, 225, 228, 0.94);
  --color-alpha-236: rgba(255, 255, 255, 0.94);
  --color-alpha-237: rgba(16, 45, 53, 0.13);
  --color-custom-238: #738990;
  --color-alpha-239: rgba(8, 30, 35, 0.48);
  --color-alpha-240: rgba(10, 40, 47, 0.18);
  --color-alpha-241: rgba(221, 232, 234, 0.9);
  --color-alpha-242: rgba(255, 255, 255, 0.97);
  --color-custom-243: #314e57;
  --color-custom-244: #dbe6e8;
  --color-custom-245: #fbfdfd;
  --color-alpha-246: rgba(22, 125, 136, 0.65);
  --color-alpha-247: rgba(22, 125, 136, 0.1);
  --color-custom-248: #dde8ea;
  --color-custom-249: #5f747c;
  --color-alpha-250: rgba(22, 125, 136, 0.42);
  --color-alpha-251: rgba(22, 125, 136, 0.06);
  --color-custom-252: #17363e;
  --color-alpha-253: rgba(246, 249, 250, 0.82);
  --color-custom-254: #d8e5e7;
  --color-custom-255: #d9e7ea;
  --color-alpha-256: rgba(16, 54, 63, 0.08);
  --color-custom-257: #15333b;
  --color-custom-258: #f7fbfb;
  --color-alpha-259: rgba(16, 54, 63, 0.05);
  --color-custom-260: #e1ecee;
  --color-custom-261: #f5fafb;
  --color-custom-262: #7a8d93;
  --color-custom-263: #cfe4e5;
  --color-custom-264: #f2fbfa;
  --color-custom-265: #edf8f8;
  --color-custom-266: #14343c;
  --color-custom-267: #61777e;
  --color-custom-268: #16828c;
  --color-custom-269: #126672;
  --color-alpha-270: rgba(20, 119, 130, 0.18);
  --color-custom-271: #cddbdd;
  --color-custom-272: #bcdedd;
  --color-custom-273: #eaf7f6;
  --color-custom-274: #e2ecee;
  --color-custom-275: #b9dfdc;
  --color-custom-276: #f5fbfa;
  --color-custom-277: #e7f5f4;
  --color-custom-278: #e9f5f4;
  --color-custom-279: #6a7f86;
  --color-custom-280: #536f77;
  --color-custom-281: #d8e7e8;
  --color-custom-282: #f4f9fa;
}

:root {
  --p: var(--color-primary);
  --pd: var(--color-primary-dark);
  --soft: var(--color-custom-003);
  --bg: var(--color-page-bg-alt);
  --card: var(--color-white);
  --text: var(--color-text-legacy);
  --muted: var(--color-muted-legacy);
  --border: var(--color-border-alt);
  --ok: var(--color-success-alt);
  --danger: var(--color-danger-alt);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
body.cargando:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-custom-011);
  backdrop-filter: blur(2px);
}
body.cargando:before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 38px;
  height: 38px;
  margin: -19px;
  border: 4px solid var(--color-custom-012);
  border-top-color: var(--p);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at top right,
      var(--color-custom-013),
      transparent 34%
    ),
    linear-gradient(var(--color-custom-014), var(--color-custom-015));
}
.login-card {
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 24px 70px var(--color-custom-016);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand div {
  display: flex;
  flex-direction: column;
}
.brand small {
  color: var(--p);
  font-weight: 900;
  letter-spacing: 2px;
}
.brand strong {
  font-size: 18px;
}
.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--color-white);
  background: var(--p);
  font-size: 24px;
}
.login-copy {
  padding: 32px 0 22px;
}
.eyebrow {
  color: var(--p);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.login-copy h1 {
  margin: 8px 0;
  font-size: 31px;
  line-height: 1.08;
}
.login-copy p,
.profile p {
  color: var(--muted);
  line-height: 1.5;
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
}
input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 4px var(--color-custom-017);
}
.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 800;
}
.primary {
  border: 0;
  color: var(--color-white);
  background: var(--p);
}
.secondary {
  border: 1px solid var(--color-custom-018);
  color: var(--p);
  background: var(--soft);
}
.ghost {
  border: 1px solid var(--border);
  background: var(--color-white);
  color: var(--text);
}
.danger {
  width: 100%;
  border: 0;
  color: var(--color-white);
  background: var(--danger);
}
.danger-outline {
  border: 1px solid var(--color-custom-019);
  color: var(--danger);
  background: var(--color-white);
}
.detail {
  border: 0;
  color: var(--color-white);
  background: var(--p);
}
.shell {
  min-height: 100vh;
  padding-bottom: 82px;
}
.header {
  padding: 18px 18px 25px;
  color: var(--color-white);
  background:
    radial-gradient(
      circle at top right,
      var(--color-custom-020),
      transparent 30%
    ),
    linear-gradient(135deg, var(--pd), var(--p));
  border-radius: 0 0 28px 28px;
}
.header-row,
.welcome,
.section-title,
.order-head,
.order-bottom,
.modal-head,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand.light small,
.brand.light strong {
  color: var(--color-white);
}
.availability {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-custom-021);
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-custom-022);
  font-size: 12px;
  font-weight: 800;
}
.availability i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}
.online i {
  background: var(--color-custom-023);
}
.offline i {
  background: var(--color-custom-024);
}
.welcome {
  margin-top: 28px;
}
.welcome h1 {
  margin: 4px 0;
  font-size: 25px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-custom-025);
  border-radius: 13px;
  color: var(--color-white);
  background: var(--color-custom-022);
  font-size: 20px;
}
.icon-btn.dark {
  color: var(--text);
  border-color: var(--border);
  background: var(--color-white);
}
#vista {
  width: min(100%, 860px);
  margin: auto;
}
.section {
  padding: 22px 16px;
}
.section-title {
  margin-bottom: 16px;
}
.section-title.secondary {
  margin-top: 24px;
}
.section-title h2 {
  margin: 5px 0;
  font-size: 21px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.metrics article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--color-white);
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}
.orders {
  display: grid;
  gap: 14px;
}
.order-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--color-white);
}
.order-head strong,
.order-head small {
  display: block;
}
.order-head small {
  margin-top: 4px;
  color: var(--muted);
}
.status,
.payment,
.count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.status.asignado,
.status.preparando,
.status.listo {
  color: var(--color-custom-026);
  background: var(--color-custom-027);
}
.status.en_camino,
.status.recogido,
.status.llegue {
  color: var(--color-custom-028);
  background: var(--color-custom-029);
}
.status.entregado {
  color: var(--color-custom-030);
  background: var(--color-custom-031);
}
.status.no_entregado {
  color: var(--color-custom-032);
  background: var(--color-custom-033);
}
.address {
  display: flex;
  gap: 8px;
  padding: 15px 0;
  color: var(--muted);
  line-height: 1.4;
}
.order-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 15px;
  background: var(--color-surface-soft);
}
.order-data span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.order-data strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.order-bottom {
  margin-top: 14px;
}
.payment.paid {
  color: var(--color-custom-030);
  background: var(--color-custom-031);
}
.payment.pending {
  color: var(--color-custom-032);
  background: var(--color-custom-033);
}
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 74px;
  border-top: 1px solid var(--border);
  background: var(--color-custom-035);
  backdrop-filter: blur(12px);
}
.bottom-nav button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav b {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}
.bottom-nav .activo {
  color: var(--p);
}
.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 25px;
  border: 2px dashed var(--border);
  border-radius: 20px;
  text-align: center;
  background: var(--color-custom-036);
}
.empty b {
  font-size: 42px;
  color: var(--color-custom-037);
}
.empty span {
  color: var(--muted);
  font-size: 13px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
}
.modal.oculto {
  display: none;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-custom-038);
}
.modal-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 94vh;
  overflow: auto;
  border-radius: 26px 26px 0 0;
  background: var(--bg);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--color-custom-035);
  backdrop-filter: blur(12px);
}
.modal-head h2 {
  margin: 5px 0;
}
.modal-body {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  margin: auto;
  padding: 16px 16px 30px;
}
.info-card,
.payment-grid,
.products {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--color-white);
}
.info-card small,
.info-card strong,
.info-card span {
  display: block;
}
.info-card span {
  margin-top: 5px;
  color: var(--muted);
}
.actions {
  align-items: stretch;
}
.actions .btn {
  flex: 1;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.payment-grid div {
  padding: 12px;
  border-radius: 14px;
  background: var(--color-surface-soft);
}
.payment-grid span,
.payment-grid strong {
  display: block;
}
.payment-grid span {
  color: var(--muted);
  font-size: 12px;
}
.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.product:last-child {
  border-bottom: 0;
}
.product small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.delivery-actions {
  display: grid;
  gap: 10px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--color-white);
}
.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--color-white);
  background: var(--p);
  font-size: 28px;
  font-weight: 900;
}
.profile h2 {
  margin: 5px 0;
}
.profile-data {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--color-white);
}
.profile-data div {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}
.profile-data div:last-child {
  border-bottom: 0;
}
.profile-data span {
  color: var(--muted);
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 10000;
  max-width: calc(100vw - 32px);
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--color-white);
  background: var(--text);
  box-shadow: 0 16px 40px var(--color-custom-039);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.22s;
}
.toast.visible {
  opacity: 1;
  transform: none;
}
.toast.error {
  background: var(--danger);
}
@media (min-width: 760px) {
  .header {
    padding-right: max(24px, calc((100vw - 860px) / 2));
    padding-left: max(24px, calc((100vw - 860px) / 2));
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .modal-panel {
    top: 4vh;
    bottom: 4vh;
    left: 50%;
    width: min(760px, calc(100vw - 40px));
    border-radius: 26px;
    transform: translateX(-50%);
  }
}
@media (max-width: 420px) {
  .order-data {
    grid-template-columns: 1fr 1fr;
  }
  .order-data div:last-child {
    grid-column: 1/-1;
  }
  .actions {
    flex-direction: column;
  }
}
.success-panel {
  padding: 38px 24px;
  text-align: center;
}

.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-custom-040);
  color: var(--color-custom-041);
  font-size: 48px;
  font-weight: 900;
  animation: successPop 0.45s ease;
}

.success-panel h2 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.success-panel p {
  margin: 0 auto 24px;
  max-width: 340px;
  color: var(--color-muted);
  line-height: 1.5;
}

.success-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.success-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--color-custom-043);
  border-radius: 14px;
  background: var(--color-surface-soft-2);
}

@keyframes successPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* =========================================================
   MODALES DE ACCIONES - APP REPARTIDOR
   ========================================================= */
.modal-formulario .action-modal-panel {
  width: min(94vw, 480px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 24px;
}

.action-modal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--color-alpha-045);
}

.action-modal-head h2 {
  margin: 3px 0 5px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.action-modal-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.action-modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-alpha-046);
  color: var(--color-accent-dark);
  font-size: 1.45rem;
  font-weight: 900;
}

.action-modal-form {
  padding: 18px 20px 20px;
}

.action-modal-content {
  display: grid;
  gap: 16px;
}

.action-summary-card,
.change-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-alpha-048);
  border-radius: 17px;
  background: var(--color-alpha-049);
}

.action-summary-card span,
.change-card span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.action-summary-card strong,
.change-card strong {
  color: var(--color-custom-050);
  font-size: 1.2rem;
}

.change-card strong.insuficiente {
  color: var(--color-custom-051);
}

.action-field {
  display: grid;
  gap: 8px;
}

.action-field > span,
.recipient-fieldset legend,
.reason-fieldset legend {
  color: var(--color-custom-052);
  font-size: 0.92rem;
  font-weight: 800;
}

.action-field input,
.action-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-custom-053);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-custom-054);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.action-field textarea {
  resize: vertical;
}

.action-field input:focus,
.action-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-alpha-046);
}

.action-field small {
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.money-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--color-custom-053);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-white);
}

.money-input-wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-alpha-046);
}

.money-input-wrap b {
  padding-left: 15px;
  color: var(--color-accent-dark);
  font-size: 1.1rem;
}

.money-input-wrap input {
  border: 0;
  box-shadow: none !important;
  font-size: 1.1rem;
  font-weight: 800;
}

.action-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--color-custom-056);
  color: var(--color-custom-052);
  font-size: 0.9rem;
  line-height: 1.4;
}

.action-check input {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--color-accent);
}

.recipient-fieldset,
.reason-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.recipient-fieldset legend,
.reason-fieldset legend {
  margin-bottom: 10px;
}

.recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipient-option,
.reason-option {
  cursor: pointer;
}

.recipient-option input,
.reason-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recipient-option span {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--color-custom-057);
  border-radius: 15px;
  background: var(--color-white);
  color: var(--color-custom-058);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
  transition: 0.18s ease;
}

.recipient-option span b {
  font-size: 1.25rem;
}

.recipient-option input:checked + span {
  border-color: var(--color-accent);
  background: var(--color-alpha-059);
  color: var(--color-custom-060);
  box-shadow: 0 0 0 3px var(--color-alpha-061);
}

.reason-list {
  display: grid;
  gap: 9px;
}

.reason-option span {
  position: relative;
  display: block;
  padding: 14px 44px 14px 15px;
  border: 1px solid var(--color-custom-057);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-custom-058);
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.18s ease;
}

.reason-option span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-custom-062);
  border-radius: 50%;
  transform: translateY(-50%);
}

.reason-option input:checked + span {
  border-color: var(--color-accent);
  background: var(--color-alpha-063);
  color: var(--color-custom-060);
}

.reason-option input:checked + span::after {
  border: 5px solid var(--color-accent);
}

.action-modal-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--color-alpha-064);
  border-radius: 12px;
  background: var(--color-alpha-065);
  color: var(--color-custom-066);
  font-size: 0.86rem;
  font-weight: 700;
}

.action-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 18px;
}

.action-modal-footer .btn {
  min-height: 48px;
}

.action-modal-footer .btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 430px) {
  .modal-formulario .action-modal-panel {
    width: 100%;
    max-height: 94vh;
    margin-top: auto;
    border-radius: 24px 24px 0 0;
  }

  .action-modal-head {
    padding: 19px 16px 14px;
  }

  .action-modal-form {
    padding: 16px;
  }

  .recipient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.success-circle i {
  font-size: 46px;
}
.bottom-nav i {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.logo i {
  font-size: 24px;
}

.icon-btn i {
  font-size: 18px;
}

.btn i {
  margin-right: 8px;
}

.action-modal-icon i {
  font-size: 24px;
}

.recipient-option span i {
  font-size: 26px;
  margin-bottom: 8px;
}
.telefono-cliente {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 600;
}

.cliente-botones {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cliente-botones .btn {
  flex: 1;
}

.whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
}

.whatsapp:hover {
  background: var(--color-custom-068);
}
.empresa-brand {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 12px;
}

.empresa-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid var(--color-alpha-069);
  border-radius: 17px;

  background: var(--color-white-283);

  box-shadow: 0 8px 20px var(--color-alpha-070);
}

.empresa-logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;

  padding: 1px;

  background: var(--color-white-283);

  transform: scale(1.08);
}

.empresa-logo > i {
  display: none;

  color: var(--p);
  font-size: 23px;
}

.empresa-logo.sin-logo > i {
  display: block;
}

.empresa-identidad {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.empresa-identidad small {
  max-width: 170px;

  overflow: hidden;

  color: var(--color-white-283);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 1.25px;

  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.empresa-identidad strong {
  max-width: 170px;

  overflow: hidden;

  margin-top: 3px;

  color: var(--color-white-283);

  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Login con fondo claro.
 */
.empresa-brand:not(.light) .empresa-logo {
  border-color: var(--color-custom-071);
  background: var(--color-white);
}

.empresa-brand:not(.light) .empresa-logo > i {
  color: var(--p);
}

.empresa-brand:not(.light) .empresa-identidad small {
  color: var(--p);
}

.empresa-brand:not(.light) .empresa-identidad strong {
  color: var(--text);
}

@media (max-width: 390px) {
  .empresa-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;

    border-radius: 15px;
  }

  .empresa-logo img {
    padding: 1px;
    transform: scale(1.08);
  }

  .empresa-identidad small,
  .empresa-identidad strong {
    max-width: 125px;
  }

  .empresa-identidad small {
    font-size: 10px;
  }

  .empresa-identidad strong {
    font-size: 16px;
  }
}
.empresa-brand.light .empresa-logo {
  border-color: var(--color-alpha-069);
  background: var(--color-white-283);
}
/* =========================================
   MODAL NO ENTREGADO
========================================= */

.incident-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-bottom: 18px;
}

.incident-summary > div {
  min-width: 0;

  padding: 13px;

  border: 1px solid var(--color-border-alt);
  border-radius: 15px;

  background: var(--color-custom-072);
}

.incident-summary span {
  display: block;

  margin-bottom: 4px;

  color: var(--color-muted-legacy);

  font-size: 11px;
}

.incident-summary strong {
  display: block;

  overflow: hidden;

  color: var(--color-text-legacy);

  font-size: 14px;
  font-weight: 900;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.reason-fieldset {
  min-width: 0;

  margin: 0;
  padding: 0;

  border: 0;
}

.reason-fieldset legend {
  margin-bottom: 10px;

  color: var(--color-text-legacy);

  font-size: 13px;
  font-weight: 900;
}

.reason-list {
  display: grid;
  gap: 8px;
}

.reason-option {
  display: block;

  cursor: pointer;
}

.reason-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.reason-option-content {
  min-height: 48px;

  display: grid;
  grid-template-columns:
    30px
    minmax(0, 1fr)
    22px;

  align-items: center;
  gap: 10px;

  padding: 8px 12px;

  border: 1px solid var(--color-custom-073);
  border-radius: 14px;

  background: var(--color-white-283);

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.reason-option-content > i:first-child {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  color: var(--color-primary);
  background: var(--color-custom-074);

  font-size: 13px;
}

.reason-option-content b {
  min-width: 0;

  color: var(--color-custom-075);

  font-size: 13px;
  font-weight: 800;
}

.reason-check {
  color: var(--color-custom-076);

  font-size: 18px;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.reason-option:hover .reason-option-content {
  transform: translateY(-1px);

  border-color: var(--color-custom-077);

  box-shadow: 0 8px 18px var(--color-alpha-078);
}

.reason-option input:checked + .reason-option-content {
  border-color: var(--color-primary);

  background: var(--color-custom-079);

  box-shadow: 0 0 0 3px var(--color-alpha-080);
}

.reason-option input:checked + .reason-option-content .reason-check {
  color: var(--color-primary);

  transform: scale(1.08);
}

#motivoDetalleWrap {
  margin-top: 16px;
}

#motivoDetalle {
  min-height: 96px;

  resize: vertical;
}

.action-modal-footer .btn.danger {
  color: var(--color-white-283);

  background: linear-gradient(
    135deg,
    var(--color-custom-081),
    var(--color-custom-082)
  );

  box-shadow: 0 10px 24px var(--color-alpha-083);
}

.action-modal-footer .btn.danger:hover {
  transform: translateY(-1px);

  filter: brightness(0.98);
}

@media (max-width: 390px) {
  .incident-summary {
    grid-template-columns: 1fr;
  }

  .reason-option-content {
    min-height: 46px;

    grid-template-columns:
      28px
      minmax(0, 1fr)
      20px;

    padding: 7px 10px;
  }

  .reason-option-content > i:first-child {
    width: 28px;
    height: 28px;

    font-size: 12px;
  }

  .reason-option-content b {
    font-size: 12px;
  }
}
/* ==================================================
   RUTA INTELIGENTE
================================================== */

.smart-route-card {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin: 18px 0 24px;
  padding: 17px;

  border: 1px solid var(--color-custom-084);
  border-radius: 22px;

  background: linear-gradient(
    145deg,
    var(--color-white-283),
    var(--color-custom-085)
  );

  box-shadow: 0 14px 35px var(--color-alpha-086);
}

.smart-route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smart-route-header h2 {
  margin: 3px 0 0;

  color: var(--color-text-strong);

  font-size: 18px;
}

.smart-route-refresh {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 14px;

  color: var(--color-custom-088);
  background: var(--color-custom-089);

  cursor: pointer;
}

.smart-route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.smart-route-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 11px 8px;

  border-radius: 14px;

  text-align: center;

  background: var(--color-custom-090);
}

.smart-route-summary span {
  color: var(--color-custom-091);
  font-size: 9px;
  font-weight: 700;
}

.smart-route-summary strong {
  color: var(--color-custom-092);
  font-size: 14px;
}

.smart-route-next {
  padding: 15px;

  border: 1px solid var(--color-custom-093);
  border-radius: 18px;

  background: var(--color-custom-094);
}

.smart-route-next > span {
  color: var(--color-custom-095);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.smart-route-next > strong {
  display: block;

  margin-top: 4px;

  color: var(--color-custom-096);
  font-size: 17px;
}

.smart-route-next > p {
  margin: 6px 0 12px;

  color: var(--color-custom-097);
  font-size: 11px;
  line-height: 1.45;
}

.smart-route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.smart-route-actions a {
  text-decoration: none;
}

.smart-route-stops {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.route-stop {
  display: grid;
  grid-template-columns: 38px 1fr 30px;
  align-items: center;
  gap: 10px;

  padding: 11px;

  border: 1px solid var(--color-custom-098);
  border-radius: 16px;

  background: var(--color-white-283);
}

.route-stop.next {
  border-color: var(--color-custom-099);
  background: var(--color-custom-100);
}

.route-stop-number {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  color: var(--color-white-283);
  background: var(--color-primary);

  font-size: 13px;
  font-weight: 900;
}

.route-stop-content {
  min-width: 0;
}

.route-stop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.route-stop-top small {
  display: block;

  color: var(--color-custom-101);
  font-size: 8px;
  font-weight: 700;
}

.route-stop-top strong {
  color: var(--color-custom-102);
  font-size: 12px;
}

.route-stop-top > span {
  padding: 4px 7px;

  border-radius: 999px;

  color: var(--color-primary);
  background: var(--color-custom-103);

  font-size: 8px;
  font-weight: 800;
}

.route-stop-content p {
  margin: 5px 0;

  overflow: hidden;

  color: var(--color-custom-104);

  font-size: 9px;
  line-height: 1.4;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stop-data {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--color-custom-105);
  font-size: 9px;
  font-weight: 700;
}

.route-stop-open {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border: 0;
  border-radius: 10px;

  color: var(--color-primary);
  background: var(--color-custom-106);

  cursor: pointer;
}

.smart-route-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 18px 0;
  padding: 20px;

  border-radius: 18px;

  color: var(--color-primary);
  background: var(--color-custom-107);

  font-size: 12px;
  font-weight: 800;
}

.smart-route-loading i {
  animation: smart-route-spin 1.2s linear infinite;
}

@keyframes smart-route-spin {
  to {
    transform: rotate(360deg);
  }
}
.smart-route-actions {
  grid-template-columns: 1fr 1fr;
}

.smart-route-start {
  grid-column: 1 / -1;

  min-height: 48px;

  font-size: 13px;
  font-weight: 900;
}

.smart-route-start i {
  margin-right: 6px;
}
.success-next-delivery {
  margin: 16px 0;
  padding: 14px;

  border: 1px solid var(--color-custom-108);
  border-radius: 16px;

  background: var(--color-custom-094);
}

.success-next-delivery span {
  display: block;

  color: var(--color-custom-095);

  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-next-delivery strong {
  display: block;

  margin-top: 4px;

  color: var(--color-text-strong);

  font-size: 15px;
  font-weight: 900;
}

.success-next-delivery p {
  margin: 5px 0 0;

  color: var(--color-custom-109);

  font-size: 10px;
  line-height: 1.45;
}

.success-route-complete {
  margin: 16px 0;
  padding: 14px;

  border-radius: 16px;

  color: var(--color-custom-110);
  background: var(--color-custom-111);

  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.success-actions {
  display: grid;
  gap: 9px;
}

/* =========================================================
   OCCHI REPARTIDOR - UI REFRESH 2026
   Solo presentación. Mantiene la lógica y los endpoints.
   ========================================================= */

:root {
  --app-radius-xl: 28px;
  --app-radius-lg: 22px;
  --app-radius-md: 16px;
  --app-shadow: 0 14px 38px var(--color-alpha-112);
  --app-shadow-soft: 0 8px 24px var(--color-alpha-113);
}

html {
  background: var(--bg);
}

body {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, var(--color-alpha-114), transparent 180px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell-v2 {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.app-header-v2 {
  padding: 14px 14px 18px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 30px var(--color-alpha-115);
}

.app-header-top {
  align-items: center;
}

.empresa-brand {
  min-width: 0;
}

.empresa-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 7px 18px var(--color-alpha-116);
}

.empresa-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empresa-identidad small {
  font-size: 10px;
  letter-spacing: 1.45px;
  opacity: 0.92;
}

.empresa-identidad strong {
  margin-top: 2px;
  font-size: 19px;
  line-height: 1.05;
}

.header-actions-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions-v2 .availability {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px var(--color-alpha-117);
}

.logout-icon-v2 {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 17px;
}

.welcome-v2 {
  margin-top: 17px;
  align-items: flex-end;
}

.welcome-v2 small {
  display: block;
  margin-bottom: 3px;
  color: var(--color-alpha-118);
  font-size: 11px;
  font-weight: 700;
}

.welcome-v2 h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.35px;
}

.gps-status-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--color-alpha-119);
  border-radius: 999px;
  background: var(--color-alpha-120);
  color: var(--color-alpha-121);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.gps-status-v2.activo {
  color: var(--color-white);
}

#vista {
  width: min(100%, 760px);
}

.section {
  padding: 20px 12px 24px;
}

.section-heading-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 13px;
}

.section-heading-v2 h2 {
  margin: 4px 0 0;
  color: var(--color-text-alt);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.25px;
}

.section-heading-v2 p {
  margin: 7px 0 0;
  max-width: 270px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.day-chip-v2,
.count-v2 {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--color-alpha-123);
  border-radius: 999px;
  background: var(--soft);
  color: var(--p);
  font-size: 11px;
  font-weight: 900;
}

.home-status-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--color-alpha-124);
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    var(--color-white),
    var(--color-custom-125)
  );
  box-shadow: var(--app-shadow-soft);
}

.home-status-v2.offline {
  border-color: var(--color-alpha-126);
  background: var(--color-white);
}

.home-status-icon-v2 {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--soft);
  color: var(--p);
  font-size: 21px;
}

.home-status-v2.offline .home-status-icon-v2 {
  background: var(--color-custom-127);
  color: var(--color-custom-128);
}

.home-status-copy-v2 {
  min-width: 0;
}

.home-status-copy-v2 > span {
  display: block;
  color: var(--p);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-status-copy-v2 strong {
  display: block;
  margin-top: 3px;
  color: var(--color-text-alt);
  font-size: 15px;
  line-height: 1.25;
}

.home-status-copy-v2 small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.refresh-round-v2,
.smart-route-refresh {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--color-white);
  color: var(--p);
  box-shadow: 0 5px 15px var(--color-alpha-129);
}

.daily-summary-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: var(--app-shadow-soft);
}

.daily-summary-v2 article {
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--color-custom-130);
}

.daily-summary-v2 article:last-child {
  border-right: 0;
}

.metric-icon-v2 {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--p);
  font-size: 12px;
}

.daily-summary-v2 strong {
  display: block;
  overflow: hidden;
  color: var(--color-text-alt);
  font-size: clamp(13px, 4vw, 17px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-summary-v2 small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.orders-heading-v2 {
  margin-top: 22px;
}

.orders-v2 {
  gap: 12px;
}

.order-card-v2 {
  padding: 14px;
  border-radius: 21px;
  border-color: var(--color-border);
  box-shadow: var(--app-shadow-soft);
}

.order-topline-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-code-v2 {
  overflow: hidden;
  color: var(--color-custom-132);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-client-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.client-avatar-v2 {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--p);
  font-size: 16px;
  font-weight: 900;
}

.order-client-v2 strong {
  display: block;
  color: var(--color-text-alt);
  font-size: 16px;
}

.order-client-v2 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.address-v2 {
  align-items: flex-start;
  padding: 13px 0 12px;
  font-size: 12px;
}

.address-icon-v2 {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--color-custom-133);
  color: var(--color-custom-134);
  font-size: 12px;
}

.address-v2 > span:last-child {
  padding-top: 4px;
  line-height: 1.45;
}

.order-data-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-custom-130);
  background: var(--color-surface-soft-2);
}

.order-data-v2 > div {
  min-width: 0;
  padding: 11px 9px;
  border-right: 1px solid var(--color-custom-135);
}

.order-data-v2 > div:last-child {
  border-right: 0;
}

.order-data-v2 span {
  font-size: 9px;
}

.order-data-v2 strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-bottom-v2 {
  gap: 10px;
  align-items: center;
}

.order-bottom-v2 .payment {
  gap: 5px;
  min-height: 30px;
  font-size: 9px;
  white-space: nowrap;
}

.detail-v2 {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 11px;
}

.page-heading-v2 {
  align-items: flex-start;
  margin-top: 2px;
}

.empty-v2 {
  min-height: 255px;
  padding: 34px 24px;
  border: 1px dashed var(--color-custom-136);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 10%, var(--color-alpha-137), transparent 34%),
    var(--color-alpha-138);
}

.empty-v2 .empty-icon-v2 {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background: var(--color-white);
  color: var(--p);
  box-shadow: 0 10px 25px var(--color-alpha-139);
  font-size: 27px;
}

.empty-v2 strong {
  color: var(--color-text-alt);
  font-size: 18px;
}

.empty-v2 b {
  margin-top: 6px;
  color: var(--color-custom-140);
  font-size: 12px;
  font-weight: 700;
}

.empty-v2 > span:last-child {
  max-width: 260px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-page-v2 {
  padding-top: 20px;
}

.profile-hero-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 18px 22px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--color-white);
  box-shadow: var(--app-shadow-soft);
  text-align: center;
}

.avatar-v2 {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  border-radius: 22px;
  box-shadow: 0 9px 22px var(--color-alpha-141);
}

.profile-hero-v2 h2 {
  margin: 4px 0 0;
  color: var(--color-text-alt);
  font-size: 22px;
}

.profile-hero-v2 p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.profile-status-v2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.profile-status-v2 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.profile-status-v2.online {
  background: var(--color-custom-142);
  color: var(--color-custom-143);
}

.profile-status-v2.online i {
  background: var(--color-custom-144);
}

.profile-status-v2.offline {
  background: var(--color-custom-127);
  color: var(--color-custom-145);
}

.profile-status-v2.offline i {
  background: var(--color-custom-146);
}

.profile-stats-v2 {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--color-white);
  box-shadow: var(--app-shadow-soft);
}

.profile-stats-v2 > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-bottom: 1px solid var(--color-custom-135);
}

.profile-stats-v2 > div:last-child {
  border-bottom: 0;
}

.profile-stats-v2 span {
  color: var(--muted);
  font-size: 12px;
}

.profile-stats-v2 span i {
  width: 20px;
  color: var(--p);
}

.profile-stats-v2 strong {
  color: var(--color-text-alt);
  font-size: 13px;
}

.logout-button-v2 {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--color-alpha-147);
  border-radius: 15px;
  background: var(--color-white);
  color: var(--danger);
  box-shadow: var(--app-shadow-soft);
}

.bottom-nav-v2 {
  min-height: 68px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-alpha-148);
  box-shadow: 0 -8px 30px var(--color-alpha-113);
}

.bottom-nav-v2 button {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 15px;
  transition: 0.18s ease;
}

.nav-icon-v2 {
  width: 34px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
}

.bottom-nav-v2 button.activo {
  color: var(--p);
}

.bottom-nav-v2 button.activo .nav-icon-v2 {
  background: var(--soft);
  color: var(--p);
}

.bottom-nav-v2 button > span:last-child {
  font-size: 9px;
  font-weight: 800;
}

.home-loading-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--color-white);
}

.loading-route-icon-v2 {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--p);
}

.home-loading-v2 strong,
.home-loading-v2 span {
  display: block;
}

.home-loading-v2 strong {
  font-size: 13px;
}

.home-loading-v2 div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.smart-route-card {
  margin-top: 16px;
  border: 1px solid var(--color-alpha-149);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--app-shadow);
}

.smart-route-header {
  padding: 16px 16px 10px;
}

.smart-route-header h2 {
  margin-top: 4px;
  font-size: 18px;
}

.smart-route-summary {
  margin: 0 14px;
  border-radius: 15px;
  background: var(--color-custom-150);
}

.smart-route-next {
  margin: 14px;
  border-radius: 18px;
}

.smart-route-actions {
  gap: 8px;
}

.smart-route-actions .btn {
  min-height: 42px;
  font-size: 11px;
}

.smart-route-stops {
  padding: 0 14px 14px;
}

.route-stop {
  border-radius: 16px;
}

@media (max-width: 430px) {
  .app-header-v2 {
    padding-left: 12px;
    padding-right: 12px;
  }

  .empresa-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .empresa-identidad strong {
    font-size: 17px;
  }

  .header-actions-v2 .availability {
    padding: 0 9px;
    font-size: 10px;
  }

  .logout-icon-v2 {
    width: 36px;
    height: 36px;
  }

  .gps-status-v2 {
    display: none;
  }

  .section {
    padding-left: 11px;
    padding-right: 11px;
  }

  .daily-summary-v2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-summary-v2 article:nth-child(2) {
    border-right: 0;
  }

  .daily-summary-v2 article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-custom-130);
  }

  .order-data-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-data-v2 div:last-child {
    grid-column: auto;
  }

  .order-bottom-v2 {
    flex-direction: row;
  }

  .detail-v2 {
    flex: 0 0 auto;
  }

  .empty-v2 {
    min-height: 240px;
  }
}

@media (max-width: 350px) {
  .header-actions-v2 .availability {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-status-v2 {
    grid-template-columns: auto 1fr;
  }

  .refresh-round-v2 {
    display: none;
  }

  .order-bottom-v2 {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-v2 {
    width: 100%;
  }
}

/* =====================================================================
   OCCHI REPARTIDOR · PROFESSIONAL MOBILE UI 2026
   ---------------------------------------------------------------------
   Capa visual final. No modifica endpoints ni lógica funcional.
   Optimizada para uso con una mano, exteriores y pantallas móviles.
   ===================================================================== */

:root {
  --app-bg: var(--color-page-bg);
  --app-surface: var(--color-white-283);
  --app-surface-soft: var(--color-surface-soft);
  --app-text: var(--color-text);
  --app-muted: var(--color-muted-alt);
  --app-line: var(--color-border);
  --app-primary: var(--color-primary-alt);
  --app-primary-dark: var(--color-primary-dark-alt);
  --app-primary-deep: var(--color-primary-deep);
  --app-primary-soft: var(--color-custom-157);
  --app-success: var(--color-success);
  --app-success-soft: var(--color-custom-159);
  --app-warning: var(--color-warning);
  --app-warning-soft: var(--color-custom-161);
  --app-danger: var(--color-danger);
  --app-danger-soft: var(--color-custom-163);
  --app-info: var(--color-info);
  --app-info-soft: var(--color-custom-165);
  --app-shadow-sm: 0 5px 18px var(--color-alpha-166);
  --app-shadow-md: 0 12px 36px var(--color-alpha-167);
  --app-shadow-lg: 0 22px 60px var(--color-alpha-168);
  --app-radius-sm: 14px;
  --app-radius-md: 20px;
  --app-radius-lg: 26px;
  --app-radius-xl: 32px;
}

html {
  background: var(--app-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(
      circle at 100% -10%,
      var(--color-alpha-078),
      transparent 28rem
    ),
    var(--app-bg);
  color: var(--app-text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
textarea {
  touch-action: manipulation;
}

button,
.btn,
.bottom-nav button,
.recipient-option,
.reason-option {
  -webkit-user-select: none;
  user-select: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-alpha-169);
  outline-offset: 2px;
}

/* ---------- Shell ---------- */

.app-shell-v2 {
  min-height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

#vista {
  width: min(100%, 760px);
  margin-inline: auto;
}

.section {
  padding: 22px 14px 30px;
}

@media (min-width: 640px) {
  .section {
    padding-inline: 20px;
  }
}

/* ---------- Header premium ---------- */

.app-header-v2 {
  position: relative;
  overflow: hidden;
  padding: max(15px, env(safe-area-inset-top)) 14px 20px;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(
      circle at 92% -15%,
      var(--color-alpha-170),
      transparent 42%
    ),
    radial-gradient(
      circle at -5% 110%,
      var(--color-alpha-171),
      transparent 34%
    ),
    linear-gradient(
      142deg,
      var(--app-primary-deep),
      var(--color-primary-alt) 62%,
      var(--color-custom-172)
    );
  box-shadow: 0 12px 34px var(--color-alpha-173);
}

.app-header-v2::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border: 1px solid var(--color-alpha-174);
  border-radius: 50%;
  pointer-events: none;
}

.app-header-top {
  position: relative;
  z-index: 1;
}

.empresa-brand {
  min-width: 0;
}

.empresa-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 17px;
  box-shadow: 0 8px 20px var(--color-alpha-175);
  background: var(--color-white);
}

.empresa-logo img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  border-radius: inherit;
}

.empresa-identidad {
  min-width: 0;
}

.empresa-identidad small {
  margin-bottom: 3px;
  opacity: 0.9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.empresa-identidad strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.25px;
}

.header-actions-v2 {
  gap: 8px;
}

.header-actions-v2 .availability {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-alpha-170);
  background: var(--color-alpha-174);
  box-shadow: inset 0 1px var(--color-alpha-176);
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.header-actions-v2 .availability i {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px var(--color-alpha-177);
}

.logout-icon-v2 {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: var(--color-alpha-120);
}

.welcome-v2 {
  position: relative;
  z-index: 1;
  align-items: end;
  margin-top: 22px;
}

.welcome-v2 > div {
  min-width: 0;
}

.welcome-v2 small {
  display: block;
  margin-bottom: 5px;
  color: var(--color-alpha-118);
  font-size: 11px;
  font-weight: 700;
}

.welcome-v2 h1 {
  overflow: hidden;
  margin: 0;
  font-size: clamp(23px, 7vw, 29px);
  letter-spacing: -0.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-status-v2 {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--color-alpha-178);
  border-radius: 999px;
  background: var(--color-alpha-179);
  color: var(--color-alpha-180);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.gps-status-v2 i {
  margin-right: 5px;
}

/* ---------- Headings ---------- */

.eyebrow {
  color: var(--app-primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.55px;
}

.section-heading-v2 {
  align-items: end;
  margin: 24px 1px 13px;
}

.section-heading-v2 h2 {
  margin: 4px 0 0;
  color: var(--app-text);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.35px;
}

.page-heading-v2 {
  align-items: start;
  margin-top: 2px;
}

.page-heading-v2 p {
  max-width: 290px;
  margin: 7px 0 0;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.5;
}

.day-chip-v2,
.count-v2 {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--app-primary);
  box-shadow: var(--app-shadow-sm);
  font-size: 10px;
  font-weight: 900;
}

/* ---------- Estado principal ---------- */

.home-status-v2 {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--color-alpha-182);
  border-radius: 23px;
  background: linear-gradient(
    135deg,
    var(--color-alpha-183),
    var(--color-alpha-184)
  );
  box-shadow: var(--app-shadow-sm);
}

.home-status-v2.online::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-alpha-185);
  pointer-events: none;
}

.home-status-v2.offline {
  border-color: var(--color-custom-186);
  background: linear-gradient(
    135deg,
    var(--color-custom-187),
    var(--color-white)
  );
}

.home-status-icon-v2 {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    var(--app-primary),
    var(--app-primary-dark)
  );
  color: var(--color-white);
  box-shadow: 0 9px 20px var(--color-alpha-169);
  font-size: 19px;
}

.home-status-v2.offline .home-status-icon-v2 {
  background: linear-gradient(
    145deg,
    var(--color-custom-188),
    var(--color-custom-189)
  );
}

.home-status-copy-v2 {
  min-width: 0;
}

.home-status-copy-v2 > span {
  color: var(--app-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.home-status-copy-v2 strong {
  overflow: hidden;
  margin-top: 4px;
  color: var(--app-text);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.home-status-copy-v2 small {
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 700;
}

.refresh-round-v2 {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-soft);
  border-radius: 13px;
  background: var(--color-white);
  color: var(--app-primary);
  box-shadow: 0 5px 14px var(--color-alpha-166);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.refresh-round-v2:active {
  transform: scale(0.94);
  box-shadow: none;
}

/* ---------- KPIs ---------- */

.daily-summary-v2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.daily-summary-v2 article {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon value"
    "label label";
  align-items: center;
  gap: 5px 10px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 19px;
  background: var(--app-surface);
  box-shadow: 0 4px 14px var(--color-alpha-190);
}

.daily-summary-v2 .metric-icon-v2 {
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.daily-summary-v2 strong {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--app-text);
  font-size: 17px;
  letter-spacing: -0.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-summary-v2 small {
  grid-area: label;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Tarjetas de pedidos ---------- */

.orders-v2 {
  gap: 12px;
}

.order-card-v2 {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--app-line);
  border-radius: 22px;
  background: var(--app-surface);
  box-shadow: 0 6px 22px var(--color-alpha-191);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.order-card-v2.active-v2 {
  border-top: 3px solid var(--color-alpha-192);
}

.order-card-v2.completed-v2 {
  border-top: 3px solid var(--color-alpha-193);
}

.order-card-v2:active {
  transform: scale(0.993);
}

.order-topline-v2 {
  margin-bottom: 13px;
}

.order-code-v2 {
  max-width: 62%;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  min-height: 26px;
  padding-inline: 9px;
  border: 1px solid transparent;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.status.asignado,
.status.preparando,
.status.listo {
  border-color: var(--color-custom-194);
  background: var(--app-warning-soft);
  color: var(--color-custom-195);
}

.status.en_camino,
.status.recogido,
.status.llegue {
  border-color: var(--color-custom-196);
  background: var(--app-info-soft);
  color: var(--color-custom-197);
}

.status.entregado {
  border-color: var(--color-custom-198);
  background: var(--app-success-soft);
  color: var(--color-custom-199);
}

.status.no_entregado {
  border-color: var(--color-custom-200);
  background: var(--app-danger-soft);
  color: var(--color-custom-201);
}

.order-client-v2 {
  align-items: center;
  gap: 11px;
}

.client-avatar-v2 {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    var(--app-primary-soft),
    var(--color-custom-202)
  );
  color: var(--app-primary);
  font-size: 17px;
  font-weight: 900;
}

.order-client-v2 strong {
  color: var(--app-text);
  font-size: 15px;
  line-height: 1.2;
}

.order-client-v2 small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 10px;
}

.address-v2 {
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
  padding: 12px;
  border: 1px solid var(--color-custom-203);
  border-radius: 15px;
  background: var(--app-surface-soft);
  color: var(--color-custom-204);
  font-size: 12px;
  line-height: 1.48;
}

.address-icon-v2 {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--color-white);
  color: var(--app-primary);
  box-shadow: 0 3px 9px var(--color-alpha-205);
}

.order-data-v2 {
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.order-data-v2 > div {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid var(--color-custom-206);
  border-radius: 13px;
  background: var(--color-custom-207);
}

.order-data-v2 span {
  color: var(--app-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-data-v2 strong {
  overflow: hidden;
  color: var(--app-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-bottom-v2 {
  gap: 9px;
  margin-top: 13px;
}

.payment {
  min-height: 29px;
  gap: 5px;
  border: 1px solid transparent;
  font-size: 9px;
}

.payment.paid {
  border-color: var(--color-custom-208);
  background: var(--app-success-soft);
  color: var(--color-custom-209);
}

.payment.pending {
  border-color: var(--color-custom-210);
  background: var(--app-danger-soft);
  color: var(--color-custom-211);
}

.detail-v2 {
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    var(--app-primary),
    var(--app-primary-dark)
  );
  box-shadow: 0 7px 16px var(--color-alpha-212);
  font-size: 11px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.detail-v2:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px var(--color-alpha-213);
}

/* ---------- Empty states ---------- */

.empty-v2 {
  min-height: 225px;
  padding: 26px 22px;
  border: 1px dashed var(--color-custom-214);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 50% 24%,
      var(--color-alpha-185),
      transparent 90px
    ),
    var(--color-alpha-215);
}

.empty-icon-v2 {
  width: 64px;
  height: 64px;
  margin-bottom: 13px;
  border-radius: 21px;
  background: var(--color-white);
  color: var(--color-custom-216);
  box-shadow: var(--app-shadow-sm);
  font-size: 24px;
}

.empty-v2 strong {
  color: var(--app-primary);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.empty-v2 b {
  margin-top: 5px;
  color: var(--app-text);
  font-size: 15px;
}

.empty-v2 > span:last-child {
  max-width: 255px;
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.55;
}

/* ---------- Ruta inteligente ---------- */

.smart-route-card {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--color-custom-217);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--app-shadow-md);
}

.smart-route-header {
  padding: 16px 16px 11px;
}

.smart-route-header h2 {
  margin-top: 4px;
  color: var(--app-text);
  font-size: 17px;
  letter-spacing: -0.3px;
}

.smart-route-refresh {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  border: 1px solid var(--color-custom-218);
  background: var(--app-surface-soft);
  color: var(--app-primary);
}

.smart-route-summary {
  margin: 0 16px;
  overflow: hidden;
  border: 1px solid var(--color-custom-219);
  border-radius: 16px;
  background: var(--color-custom-220);
}

.smart-route-summary > div {
  min-width: 0;
  padding: 11px 7px;
}

.smart-route-summary span {
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.smart-route-summary strong {
  margin-top: 4px;
  font-size: 12px;
}

.smart-route-next {
  margin: 13px 16px 15px;
  padding: 15px;
  border: 1px solid var(--color-alpha-213);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--app-primary-soft),
    var(--color-custom-221)
  );
}

.smart-route-next > span {
  color: var(--app-primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.smart-route-next > strong {
  margin-top: 4px;
  color: var(--app-text);
  font-size: 16px;
}

.smart-route-next > p {
  margin: 7px 0 12px;
  color: var(--color-custom-222);
  font-size: 11px;
  line-height: 1.45;
}

.smart-route-actions {
  gap: 7px;
}

.smart-route-actions .btn {
  min-height: 42px;
  border-radius: 13px;
  font-size: 10px;
}

.smart-route-start {
  background: linear-gradient(
    135deg,
    var(--app-primary),
    var(--app-primary-dark)
  );
  box-shadow: 0 7px 16px var(--color-alpha-223);
}

.smart-route-stops {
  padding: 0 16px 16px;
}

.route-stop {
  min-height: 66px;
  border: 1px solid var(--color-custom-224);
  border-radius: 16px;
  background: var(--color-white);
}

.route-stop.next {
  border-color: var(--color-alpha-225);
  background: var(--color-custom-226);
}

.route-stop-number {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 11px;
}

.route-stop-top strong {
  font-size: 11px;
}

.route-stop-top small,
.route-stop-content p,
.route-stop-data {
  font-size: 9px;
}

/* ---------- Perfil ---------- */

.profile-page-v2 {
  padding-top: 20px;
}

.profile-hero-v2 {
  padding: 24px 18px 21px;
  border: 1px solid var(--app-line);
  border-radius: 25px;
  background:
    radial-gradient(
      circle at 82% 6%,
      var(--color-alpha-227),
      transparent 120px
    ),
    var(--color-white);
  box-shadow: var(--app-shadow-sm);
}

.avatar-v2 {
  width: 67px;
  height: 67px;
  margin-bottom: 12px;
  border-radius: 21px;
  background: linear-gradient(
    145deg,
    var(--app-primary),
    var(--app-primary-dark)
  );
  box-shadow: 0 10px 24px var(--color-alpha-212);
  font-size: 26px;
}

.profile-hero-v2 h2 {
  margin: 4px 0;
  color: var(--app-text);
  font-size: 21px;
  letter-spacing: -0.4px;
}

.profile-hero-v2 p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
}

.profile-status-v2 {
  min-height: 30px;
  margin-top: 14px;
  padding-inline: 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.profile-status-v2.online {
  border: 1px solid var(--color-custom-228);
  background: var(--app-success-soft);
  color: var(--color-custom-229);
}

.profile-status-v2.offline {
  border: 1px solid var(--color-custom-230);
  background: var(--app-warning-soft);
  color: var(--color-custom-231);
}

.profile-stats-v2 {
  gap: 0;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--app-line);
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 5px 16px var(--color-alpha-232);
}

.profile-stats-v2 > div {
  min-height: 55px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--color-custom-233);
  border-radius: 0;
  background: transparent;
}

.profile-stats-v2 > div:last-child {
  border-bottom: 0;
}

.profile-stats-v2 span {
  color: var(--app-muted);
  font-size: 11px;
}

.profile-stats-v2 span i {
  width: 20px;
  color: var(--app-primary);
  text-align: center;
}

.profile-stats-v2 strong {
  color: var(--app-text);
  font-size: 13px;
}

.logout-button-v2 {
  min-height: 49px;
  margin-top: 15px;
  border: 1px solid var(--color-custom-234);
  border-radius: 16px;
  background: var(--color-white);
  color: var(--app-danger);
  box-shadow: none;
  font-size: 12px;
}

.logout-button-v2:active {
  background: var(--app-danger-soft);
}

/* ---------- Bottom navigation profesional ---------- */

.bottom-nav-v2 {
  right: 10px;
  bottom: max(9px, env(safe-area-inset-bottom));
  left: 10px;
  min-height: 68px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-alpha-235);
  border-radius: 22px;
  background: var(--color-alpha-236);
  box-shadow: 0 14px 38px var(--color-alpha-237);
  backdrop-filter: blur(18px);
}

.bottom-nav-v2 button {
  position: relative;
  min-width: 0;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 17px;
  color: var(--color-custom-238);
  font-size: 9px;
  font-weight: 800;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.bottom-nav-v2 button:active {
  transform: scale(0.94);
}

.bottom-nav-v2 .nav-icon-v2 {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 17px;
}

.bottom-nav-v2 button.activo {
  color: var(--app-primary);
  background: transparent;
}

.bottom-nav-v2 button.activo .nav-icon-v2 {
  background: var(--app-primary-soft);
  box-shadow: inset 0 0 0 1px var(--color-alpha-227);
}

.bottom-nav-v2 button.activo::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: var(--app-primary);
}

/* ---------- Modales / formularios ---------- */

.modal .backdrop {
  background: var(--color-alpha-239);
  backdrop-filter: blur(3px);
}

.modal-panel,
.action-modal-panel {
  box-shadow: 0 -18px 50px var(--color-alpha-240);
}

.modal-formulario .action-modal-panel {
  border: 1px solid var(--color-alpha-241);
  background: var(--color-white);
}

.action-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  padding: 17px 17px 14px;
  background: var(--color-alpha-242);
  backdrop-filter: blur(16px);
}

.action-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 18px;
}

.action-modal-head h2 {
  margin: 1px 0 3px;
  color: var(--app-text);
  font-size: 18px;
  letter-spacing: -0.3px;
}

.action-modal-head p {
  color: var(--app-muted);
  font-size: 10px;
}

.action-modal-form {
  padding: 15px 17px 18px;
}

.action-modal-content {
  gap: 14px;
}

.action-field > span,
.recipient-fieldset legend,
.reason-fieldset legend {
  color: var(--color-custom-243);
  font-size: 11px;
  font-weight: 850;
}

.action-field input,
.action-field textarea {
  min-height: 50px;
  border-color: var(--color-custom-244);
  border-radius: 14px;
  background: var(--color-custom-245);
  color: var(--app-text);
  font-size: 14px;
}

.action-field input:focus,
.action-field textarea:focus {
  border-color: var(--color-alpha-246);
  background: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-alpha-247);
}

.recipient-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recipient-option span {
  min-height: 69px;
  padding: 10px 5px;
  border-color: var(--color-custom-248);
  border-radius: 14px;
  color: var(--color-custom-249);
  font-size: 10px;
}

.recipient-option span i {
  font-size: 17px;
}

.recipient-option input:checked + span {
  border-color: var(--color-alpha-250);
  background: var(--app-primary-soft);
  color: var(--app-primary);
  box-shadow: 0 0 0 2px var(--color-alpha-251);
}

.action-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 8px;
  margin: 17px -17px -18px;
  padding: 12px 17px max(13px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-custom-203);
  background: var(--color-alpha-242);
  backdrop-filter: blur(15px);
}

.action-modal-footer .btn {
  min-height: 49px;
  border-radius: 14px;
  font-size: 11px;
}

.action-modal-footer .primary,
.action-modal-footer .detail {
  background: linear-gradient(
    135deg,
    var(--app-primary),
    var(--app-primary-dark)
  );
  box-shadow: 0 8px 18px var(--color-alpha-223);
}

/* ---------- Toast ---------- */

.toast {
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 12px;
  width: auto;
  max-width: 520px;
  margin-inline: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-custom-252);
  box-shadow: var(--app-shadow-lg);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Loader ---------- */

body.cargando::after {
  background: var(--color-alpha-253);
  backdrop-filter: blur(4px);
}

body.cargando::before {
  width: 42px;
  height: 42px;
  margin: -21px;
  border-width: 4px;
  border-color: var(--color-custom-254);
  border-top-color: var(--app-primary);
  box-shadow: 0 6px 20px var(--color-alpha-167);
}

/* ---------- Responsive ---------- */

@media (min-width: 560px) {
  .daily-summary-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-summary-v2 article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "value"
      "label";
    align-items: start;
  }
}

@media (max-width: 430px) {
  .app-header-v2 {
    padding-inline: 12px;
  }

  .empresa-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .header-actions-v2 .availability {
    padding-inline: 10px;
  }

  .gps-status-v2 {
    display: none;
  }

  .section {
    padding-inline: 12px;
  }

  .order-card-v2 {
    padding: 14px;
  }

  .order-bottom-v2 {
    align-items: center;
    flex-direction: row;
  }

  .recipient-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 355px) {
  .empresa-identidad small {
    font-size: 8px;
  }

  .empresa-identidad strong {
    font-size: 16px;
  }

  .header-actions-v2 .availability {
    max-width: 86px;
    padding-inline: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .daily-summary-v2 article {
    padding: 11px;
  }

  .order-bottom-v2 {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-v2 {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
   OCCHI REPARTIDOR · CORRECCIÓN FINAL RUTA INTELIGENTE
   ---------------------------------------------------------------------
   Solo presentación. No modifica lógica, endpoints ni funciones JS.
   ===================================================================== */

.smart-route-card {
  gap: 0 !important;
  margin: 18px 0 24px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--color-custom-255) !important;
  border-radius: 24px !important;
  background: var(--color-white-283) !important;
  box-shadow: 0 12px 32px var(--color-alpha-256) !important;
}

.smart-route-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 16px 12px !important;
}

.smart-route-header > div {
  min-width: 0;
}

.smart-route-header .eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--color-custom-088);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.smart-route-header h2 {
  margin: 0 !important;
  color: var(--color-custom-257) !important;
  font-size: 16px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.25px !important;
}

.smart-route-refresh {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: 12px !important;
  background: var(--color-custom-258) !important;
  color: var(--color-primary-alt) !important;
  box-shadow: 0 4px 12px var(--color-alpha-259) !important;
}

.smart-route-refresh i {
  margin: 0 !important;
  font-size: 13px !important;
}

.smart-route-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.smart-route-summary > div {
  min-width: 0 !important;
  padding: 10px 6px !important;
  border: 1px solid var(--color-custom-260) !important;
  border-radius: 13px !important;
  background: var(--color-custom-261) !important;
  text-align: center !important;
}

.smart-route-summary span {
  display: block !important;
  color: var(--color-custom-262) !important;
  font-size: 7px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.smart-route-summary strong {
  display: block !important;
  margin-top: 5px !important;
  overflow: hidden !important;
  color: var(--color-text-strong) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-route-next {
  margin: 14px 16px 12px !important;
  padding: 14px !important;
  border: 1px solid var(--color-custom-263) !important;
  border-radius: 18px !important;
  background: linear-gradient(
    145deg,
    var(--color-custom-264),
    var(--color-custom-265)
  ) !important;
  box-shadow: none !important;
}

.smart-route-next > span {
  display: block !important;
  color: var(--color-primary-alt) !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.smart-route-next > strong {
  display: block !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  color: var(--color-custom-266) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-route-next > p {
  display: -webkit-box !important;
  margin: 7px 0 13px !important;
  overflow: hidden !important;
  color: var(--color-custom-267) !important;
  font-size: 9px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.smart-route-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

.smart-route-actions .btn,
.smart-route-actions button,
.smart-route-actions a {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.smart-route-actions .btn i,
.smart-route-actions button i,
.smart-route-actions a i {
  margin: 0 !important;
  font-size: 10px !important;
}

.smart-route-start {
  grid-column: 1 / -1 !important;
  min-height: 44px !important;
  border: 0 !important;
  color: var(--color-white-283) !important;
  background: linear-gradient(
    135deg,
    var(--color-custom-268),
    var(--color-custom-269)
  ) !important;
  box-shadow: 0 7px 16px var(--color-alpha-270) !important;
}

#btnAbrirSiguientePedido {
  border: 1px solid var(--color-custom-271) !important;
  background: var(--color-white-283) !important;
  color: var(--color-text-strong) !important;
  box-shadow: none !important;
}

.smart-route-actions a.secondary {
  border: 1px solid var(--color-custom-272) !important;
  background: var(--color-custom-273) !important;
  color: var(--color-primary-alt) !important;
  box-shadow: none !important;
}

.smart-route-actions .btn:active,
.smart-route-actions button:active,
.smart-route-actions a:active {
  transform: scale(0.97) !important;
}

.smart-route-stops {
  display: grid !important;
  gap: 8px !important;
  padding: 0 16px 16px !important;
}

.route-stop {
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 31px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 10px !important;
  border: 1px solid var(--color-custom-274) !important;
  border-radius: 15px !important;
  background: var(--color-white-283) !important;
  box-shadow: none !important;
}

.route-stop.next {
  border-color: var(--color-custom-275) !important;
  background: var(--color-custom-276) !important;
}

.route-stop-number {
  width: 31px !important;
  height: 31px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: var(--color-custom-277) !important;
  color: var(--color-primary-alt) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.route-stop-content {
  min-width: 0 !important;
}

.route-stop-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.route-stop-top > div {
  min-width: 0 !important;
}

.route-stop-top small {
  display: block !important;
  color: var(--color-custom-262) !important;
  font-size: 7px !important;
  font-weight: 800 !important;
}

.route-stop-top strong {
  display: block !important;
  max-width: 145px !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  color: var(--color-text-strong) !important;
  font-size: 9px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.route-stop-top > span {
  flex: 0 0 auto !important;
  min-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: var(--color-custom-278) !important;
  color: var(--color-primary-alt) !important;
  font-size: 7px !important;
  font-weight: 900 !important;
}

.route-stop-content p {
  display: block !important;
  margin: 4px 0 !important;
  overflow: hidden !important;
  color: var(--color-custom-279) !important;
  font-size: 7px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.route-stop-data {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  color: var(--color-custom-280) !important;
  font-size: 7px !important;
  font-weight: 800 !important;
}

.route-stop-data i {
  margin-right: 3px !important;
}

.route-stop-open {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid var(--color-custom-281) !important;
  border-radius: 10px !important;
  background: var(--color-custom-282) !important;
  color: var(--color-primary-alt) !important;
}

.route-stop-open i {
  margin: 0 !important;
  font-size: 10px !important;
}

@media (max-width: 390px) {
  .smart-route-header {
    padding: 14px 14px 11px !important;
  }

  .smart-route-summary {
    gap: 6px !important;
    margin-inline: 14px !important;
  }

  .smart-route-summary > div {
    padding: 9px 4px !important;
  }

  .smart-route-next {
    margin-inline: 14px !important;
    padding: 13px !important;
  }

  .smart-route-stops {
    padding-inline: 14px !important;
    padding-bottom: 14px !important;
  }

  .smart-route-actions {
    gap: 7px !important;
  }

  .smart-route-actions .btn,
  .smart-route-actions button,
  .smart-route-actions a {
    min-height: 40px !important;
    padding-inline: 7px !important;
    font-size: 8px !important;
  }

  .route-stop {
    grid-template-columns: 29px minmax(0, 1fr) 28px !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  .route-stop-number,
  .route-stop-open {
    width: 28px !important;
    height: 28px !important;
  }

  .route-stop-top strong {
    max-width: 120px !important;
  }
}
