/* ══════════════════════════════════════════════════════
   VIAZU — Módulo Solicitudes  (solicitudes.css)
   ══════════════════════════════════════════════════════ */

/* ── Tab bar ─────────────────────────────────────────── */
.sol-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 57px; background: #0D0D0D; z-index: 5;
}
.sol-tab {
  flex: 1; padding: 12px 4px; background: none; border: none;
  color: rgba(255,255,255,.4); font-family: inherit; font-size: 13px;
  font-weight: 500; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.sol-tab.active { color: #00C853; border-bottom-color: #00C853; }

/* ── Toolbar ─────────────────────────────────────────── */
.sol-toolbar { display: flex; gap: 8px; padding: 10px 16px 6px; }
.sol-search {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 8px 12px; color: #fff; font-family: inherit;
  font-size: 13px; outline: none; -webkit-appearance: none;
}
.sol-search::placeholder { color: rgba(255,255,255,.35); }
.sol-filter-btn {
  padding: 8px 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: rgba(255,255,255,.6); font-size: 12px;
  cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .12s;
}

/* ── Sort chips ──────────────────────────────────────── */
.sol-sort-row {
  display: flex; gap: 6px; padding: 0 16px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.sol-sort-row::-webkit-scrollbar { display: none; }
.sol-chip {
  padding: 5px 12px; border-radius: 99px; font-size: 12px; white-space: nowrap; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); cursor: pointer; font-family: inherit; transition: all .12s;
}
.sol-chip.active { background: rgba(0,200,83,.1); border-color: #00C853; color: #00C853; }

/* ── Card ────────────────────────────────────────────── */
#solBody { padding-top: 12px; padding-bottom: 80px; }
.sol-card {
  margin: 0 16px 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden; transition: background .15s;
}
.sol-card:active { background: rgba(255,255,255,.06); }

.sol-card-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 8px;
}
.sol-card-icon { font-size: 26px; width: 34px; text-align: center; flex-shrink: 0; margin-top: 2px; }
.sol-card-meta { flex: 1; min-width: 0; }
.sol-card-id   { font-size: 11px; color: rgba(255,255,255,.4); }
.sol-card-svc  { font-size: 14px; font-weight: 600; margin: 2px 0; }
.sol-card-time { font-size: 12px; color: rgba(255,255,255,.5); }

/* Status badge */
.sol-badge {
  padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0; align-self: flex-start;
}
.sol-badge--completed,
.sol-badge--in_progress   { background: rgba(0,200,83,.15);  color: #00C853; }
.sol-badge--cancelled      { background: rgba(255,59,48,.15);  color: #FF3B30; }
.sol-badge--searching      { background: rgba(10,132,255,.15); color: #0A84FF; }
.sol-badge--assigned       { background: rgba(255,171,0,.15);  color: #FFAB00; }
.sol-badge--scheduled      { background: rgba(175,82,222,.15); color: #AF52DE; }
.sol-badge--expired        { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* Route */
.sol-route { padding: 0 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.sol-route-pt {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; overflow: hidden;
}
.sol-route-pt span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.sol-route-line {
  padding-left: 3px; font-size: 10px; color: rgba(255,255,255,.2); line-height: 1; margin: 1px 0;
}
.sol-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sol-dot--g { background: #00C853; }
.sol-dot--r { background: #FF3B30; }
.sol-driver { padding: 0 14px 8px; font-size: 12px; color: rgba(255,255,255,.5); }

/* Metrics row */
.sol-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.06);
}
.sol-metric {
  padding: 8px 4px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sol-metric:last-child { border-right: none; }
.sol-metric b     { display: block; font-size: 13px; font-weight: 700; }
.sol-metric small { display: block; font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Card action buttons */
.sol-actions {
  display: flex; gap: 6px; padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sol-act {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: rgba(255,255,255,.7); font-size: 11px;
  cursor: pointer; font-family: inherit; transition: background .12s; line-height: 1.3;
}
.sol-act:active  { background: rgba(255,255,255,.08); }
.sol-act--ok     { color: #00C853; border-color: rgba(0,200,83,.25);  background: rgba(0,200,83,.06); }
.sol-act--del    { color: #FF3B30; border-color: rgba(255,59,48,.2);   background: rgba(255,59,48,.05); }

/* ── Empty state ─────────────────────────────────────── */
.sol-empty { padding: 60px 20px; text-align: center; }
.sol-empty-ico { font-size: 48px; margin-bottom: 14px; }
.sol-empty-ttl { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sol-empty-txt { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── Statistics ──────────────────────────────────────── */
.sol-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px;
}
.sol-stat-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 16px 14px;
}
.sol-stat-card--ok   { background: rgba(0,200,83,.08); border-color: rgba(0,200,83,.2); }
.sol-stat-card--full { grid-column: span 2; }
.sol-stat-val { font-size: 26px; font-weight: 900; }
.sol-stat-lbl { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ── Favorites ───────────────────────────────────────── */
.sol-favs-wrap { padding: 0 16px 16px; }
.sol-section-ttl {
  font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; margin-bottom: 10px;
}
.sol-favs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sol-fav {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; cursor: pointer; font-family: inherit; color: #fff; text-align: left;
  transition: background .12s;
}
.sol-fav:active { background: rgba(255,255,255,.07); }
.sol-fav > span  { font-size: 20px; flex-shrink: 0; }
.sol-fav strong  { display: block; font-size: 13px; }
.sol-fav small   { display: block; font-size: 11px; color: rgba(255,255,255,.4);
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; }
.sol-fav--add { border-style: dashed; opacity: .6; }

/* ── New request form (inside modal) ─────────────────── */
.sol-progress { height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; margin: 0 0 16px; }
.sol-progress-bar { height: 100%; background: #00C853; border-radius: 2px; transition: width .3s; }
.sol-form  { display: flex; flex-direction: column; gap: 10px; }
.sol-form .sol-field label {
  display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 5px;
}
.sol-form .sol-field input,
.sol-form .sol-field textarea,
.sol-form .sol-field select {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 11px 14px; color: #fff;
  font-family: inherit; font-size: 14px; outline: none; color-scheme: dark;
}
.sol-form .sol-field input:focus,
.sol-form .sol-field textarea:focus { border-color: rgba(0,200,83,.4); }
.sol-form .sol-field select option { background: #1c1c1e; }
.sol-field-row { display: flex; gap: 10px; }
.sol-field-row .sol-field { flex: 1; }
.sol-field-ttl {
  font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600; margin-top: 4px;
}
.sol-sched-row { display: flex; gap: 8px; }
.sol-sched-opt {
  flex: 1; padding: 10px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  cursor: pointer; font-family: inherit; color: rgba(255,255,255,.6);
  font-size: 13px; text-align: center; transition: all .12s;
}
.sol-sched-opt.active { border-color: #00C853; color: #00C853; background: rgba(0,200,83,.08); }

/* Service & payment grids */
.sol-svc-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.sol-pay-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.sol-svc-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
  cursor: pointer; font-family: inherit; color: rgba(255,255,255,.65);
  font-size: 10px; text-align: center; transition: all .12s;
}
.sol-svc-opt > span { font-size: 20px; }
.sol-svc-opt.active { border-color: #00C853; background: rgba(0,200,83,.08); color: #00C853; }

/* Stepper */
.sol-stepper {
  display: flex; align-items: center; padding: 10px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.sol-stepper label { flex: 1; font-size: 14px; }
.sol-step-ctrl { display: flex; align-items: center; gap: 12px; }
.sol-step-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 16px; cursor: pointer; display: grid; place-items: center;
  font-family: inherit; transition: background .12s;
}
.sol-step-btn:active { background: rgba(255,255,255,.2); }
.sol-step-ctrl span { font-size: 16px; font-weight: 700; min-width: 18px; text-align: center; }

/* Summary box in step 3 */
.sol-summary {
  background: rgba(0,200,83,.06); border: 1px solid rgba(0,200,83,.15);
  border-radius: 12px; padding: 12px; margin-top: 4px;
}

/* ── Detail view ─────────────────────────────────────── */
.sol-detail-block { margin-bottom: 20px; }
.sol-detail-ttl {
  font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px; font-weight: 600;
}
.sol-kv {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px;
}
.sol-kv:last-child { border-bottom: none; }
.sol-kv span { color: rgba(255,255,255,.5); flex-shrink: 0; margin-right: 12px; }
.sol-kv b    { text-align: right; word-break: break-word; }
.sol-kv--total { font-size: 15px; font-weight: 700; border-top: 1px solid rgba(255,255,255,.1); border-bottom: none; }

/* ── Cancel reason buttons ───────────────────────────── */
.sol-reason-btn {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; color: #fff; font-family: inherit; font-size: 14px;
  cursor: pointer; text-align: left; transition: all .12s;
}
.sol-reason-btn:hover  { background: rgba(255,255,255,.07); }
.sol-reason-btn:active { background: rgba(255,59,48,.08); color: #FF3B30; border-color: rgba(255,59,48,.2); }
.sol-reason-btn.selected { border-color: #00C853; color: #00C853; background: rgba(0,200,83,.06); }

/* ── Filter chips in sheet ───────────────────────────── */
.sol-filter-grp { margin-bottom: 16px; }
.sol-filter-lbl {
  font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px; font-weight: 600;
}
.sol-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-filter-chip {
  padding: 6px 12px; border-radius: 99px; font-size: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6); cursor: pointer; font-family: inherit; transition: all .12s;
}
.sol-filter-chip.active { background: rgba(0,200,83,.1); border-color: #00C853; color: #00C853; }
