html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
*{ box-sizing:border-box; }
html, body{
  margin:0; padding:0; min-height:100%;
  font-family:'Inter',sans-serif;
  background:#d8d6ce;
  overflow-x:hidden;
}

/* ---------------------------------- */
/* shared shell                        */
/* ---------------------------------- */
.screen{
  width:100%; max-width:480px; min-height:100vh; min-height:100dvh; margin:0 auto;
  background:linear-gradient(155deg, #e4e4e1 0%, #ecdfa9 55%, #f3d24e 100%);
  position:relative; overflow:hidden;
  display:none;
}
.screen.active{ display:block; }
.content{ padding:18px 18px 100px; }

@media (max-width: 360px){
  .content{ padding:14px 14px 100px; }
  .title{ font-size:28px; }
  .stats-row{ gap:7px; }
  .stat-box{ padding:10px 7px; }
  .stat-box .val{ font-size:13px; }
  .quickadd{ gap:5px; }
}

.top-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; gap:8px; flex-wrap:wrap; }
.nav-pill{
  background:#eceae0; border:none; border-radius:999px; height:42px; padding:0 16px;
  display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#4a4a47; cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,0.04); white-space:nowrap;
}
.nav-pill i{ font-size:15px; }
.icon-circle{
  width:42px; height:42px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center; font-size:16px; color:#1c1c1c;
  box-shadow:0 4px 10px rgba(0,0,0,0.06); border:none; cursor:pointer; flex-shrink:0;
}
.logout-pill{
  background:#fdeceb; color:#c9483d; border:1.5px solid #f1b8b3; border-radius:999px;
  height:42px; padding:0 14px; display:flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:700; cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,0.05); white-space:nowrap;
}
.logout-pill svg{ width:16px; height:16px; flex-shrink:0; }
.logout-pill:active{ transform:scale(0.97); }
.right-icons{ display:flex; align-items:center; gap:10px; }
.export-pill{
  background:#1c1c1c; border-radius:999px; padding:0 16px; height:42px;
  display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.06); border:none; cursor:pointer; white-space:nowrap;
  text-decoration:none;
}

.title{ font-family:'Poppins',sans-serif; font-weight:500; font-size:32px; color:#1c1c1c; margin:0 0 4px; }
.subtitle{ font-size:13px; color:#6b6b68; margin:0 0 18px; }

.filter-row-wrap{ display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.filter-row{ display:flex; gap:6px; flex:1 1 auto; margin-bottom:0; }
.filter-row button{
  flex:1; padding:10px 0; border-radius:14px; border:none; font-size:12.5px; font-weight:600; cursor:pointer;
  background:#fff; color:#6b6b68; box-shadow:0 4px 10px rgba(0,0,0,0.05);
}
.filter-row button.active{ background:#1c1c1c; color:#fff; }

.month-picker{
  display:none; align-items:center; gap:8px; padding:9px 14px; border-radius:14px;
  background:#fff; box-shadow:0 4px 10px rgba(0,0,0,0.05); color:#1c1c1c; flex-shrink:0;
}
.month-picker.open{ display:flex; }
.month-picker select{
  border:none; background:transparent; font-family:'Inter'; font-size:12.5px; font-weight:600; color:#1c1c1c;
  cursor:pointer; appearance:none; -webkit-appearance:none; padding-right:2px;
}

.stats-row{ display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.stat-box{ flex:1; min-width:70px; border-radius:20px; padding:12px 10px; text-align:center; }
.stat-box .lbl{ font-size:10.5px; font-weight:600; margin:0 0 4px; }
.stat-box .val{ font-family:'Poppins'; font-weight:700; font-size:15px; margin:0; }
.stat-box .breakdown{ font-size:9px; margin:5px 0 0; line-height:1.5; }
.stat-box.taxi{ background:#1c1c1c; }
.stat-box.taxi .lbl{ color:#9a9a9a; }
.stat-box.taxi .val{ color:#2fa85a; }
.stat-box.taxi .breakdown{ color:#8a8a8a; }
.stat-box.uber{ background:#f3d24e; }
.stat-box.uber .lbl{ color:#6b5c14; }
.stat-box.uber .val{ color:#3a2f05; }
.stat-box.uber .breakdown{ color:#6b5c14; }
.stat-box.turno, .stat-box.viajes{ background:transparent; padding:0; text-align:left; display:flex; flex-direction:column; }
.stat-box.turno .lbl, .stat-box.viajes .lbl{ font-size:11px; color:#6b6b68; font-weight:500; margin:0 0 8px; padding-left:2px; }
.pill-outline-box{
  border:1.5px solid #1c1c1c; border-radius:999px; background:transparent;
  display:flex; align-items:center; justify-content:center; height:52px;
}
.pill-outline-box .val{ font-family:'Poppins'; font-weight:700; font-size:15px; color:#1c1c1c; margin:0; }

.quickadd{ display:flex; gap:6px; margin-bottom:18px; flex-wrap:wrap; }
.quickadd select, .quickadd input{
  border:none; border-radius:16px; background:#fff; padding:12px 10px; font-size:16px; font-weight:500; color:#1c1c1c;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
}
.quickadd select:nth-of-type(1){ flex:0 0 84px; }
.quickadd input{ flex:1 1 90px; min-width:0; }
.quickadd select:nth-of-type(2){ flex:0 0 126px; }
.quickadd button{
  background:#1c1c1c; color:#fff; border:none; border-radius:16px; padding:0 16px; font-weight:600; font-size:16px; cursor:pointer;
}

.section-lbl{ font-size:13px; font-weight:600; margin:4px 2px 10px; color:#1c1c1c; display:flex; justify-content:space-between; align-items:center; }

.discount-toggle{ font-size:12px; font-weight:600; color:#4d64d9; margin:0 2px 14px; cursor:pointer; display:inline-block; }
.discount-box{ display:none; margin:-6px 0 16px; }
.discount-box.open{ display:block; }
.discount-box input{
  width:100%; border:none; border-radius:16px; background:#fff; padding:12px 14px; font-size:16px; font-weight:500; color:#c9483d;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
}

.action-card{
  background:#faf7ee; border-radius:26px; padding:20px 20px 22px; margin-bottom:18px;
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}
.tipo-toggle{
  position:relative; display:flex; background:rgba(0,0,0,0.05); border-radius:14px; padding:4px; margin-bottom:12px;
}
.tipo-toggle-bg{
  position:absolute; top:4px; left:4px; width:calc(50% - 4px); height:calc(100% - 8px);
  background:#1c1c1c; border-radius:10px; transition:transform 0.28s cubic-bezier(.4,0,.2,1); z-index:0;
}
.tipo-toggle-btn{
  flex:1; position:relative; z-index:1; border:none; background:transparent; padding:11px 0;
  font-size:14px; font-weight:600; color:#6b6b68; cursor:pointer; transition:color 0.28s;
}
.tipo-toggle-btn.active{ color:#fff; }
.confirm-btn{
  width:100%; background:#f3d24e; color:#1c1c1c; border:none; border-radius:16px; padding:14px 0;
  font-size:15px; font-weight:700; cursor:pointer; margin-top:2px;
}
.confirm-btn:active{ transform:scale(0.98); }
.confirm-btn:disabled{ opacity:0.6; cursor:default; }

.service-card{
  background:#1c1c1c; border-radius:22px; padding:18px 18px 16px; margin-bottom:18px;
  box-shadow:0 8px 18px rgba(0,0,0,0.1);
}
.service-card-title{ font-family:'Poppins'; font-weight:700; font-size:13px; letter-spacing:0.08em; color:#f3d24e; margin:0 0 4px; }
.service-card-sub{ font-size:11.5px; color:#9a9a96; margin:0 0 12px; }
.service-card textarea{
  width:100%; min-height:74px; border:none; border-radius:14px; background:rgba(255,255,255,0.08); padding:12px 14px;
  font-size:16px; font-family:'Inter'; color:#fff; resize:none;
}
.service-card textarea::placeholder{ color:#7a7a76; }
.service-save-btn{
  margin-top:12px; width:100%; border:none; border-radius:14px; padding:11px 0;
  background:#f3d24e; color:#1c1c1c; font-weight:700; font-size:13px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.service-save-btn.saved{ background:#2fa85a; color:#fff; }

.card-stack{ display:flex; flex-direction:column; gap:14px; }
.card{
  background:#faf7ee; border-radius:26px; padding:20px 20px 22px;
  position:relative;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:8px; }
.card-person{ display:flex; align-items:center; gap:14px; min-width:0; }
.avatar.icon{
  width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Poppins'; font-weight:700; font-size:14px; color:#fff; flex-shrink:0;
}
.avatar.icon.taxi{ background:#2fa85a; }
.avatar.icon.uber{ background:#4d64d9; }
.p-name{ font-family:'Poppins'; font-weight:500; font-size:20px; color:#1c1c1c; margin:0; }
.p-role{ font-size:13.5px; color:#8a8a86; margin:2px 0 0; }
.card.selected .p-role{ color:#7a4a1f; }

.status-pill{
  display:flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:500;
  background:#eeeeea; color:#5a5a56; white-space:nowrap; flex-shrink:0;
}
.status-pill .dot{ width:7px; height:7px; border-radius:50%; }
.status-pill.en-servicio .dot{ background:#2fa85a; animation: pulseDot 1.6s ease-in-out infinite; }
.status-pill.fuera-servicio .dot{ background:#e2544c; }
@keyframes pulseDot{
  0%, 100%{ opacity:1; box-shadow:0 0 0 0 rgba(47,168,90,0.45); }
  50%{ opacity:0.3; box-shadow:0 0 0 5px rgba(47,168,90,0); }
}

.seg-block{ margin-bottom:14px; }
.seg-labels-row{ display:flex; justify-content:space-between; margin-bottom:7px; }
.seg-labels-row .seg-lbl{ font-family:'Poppins'; font-weight:600; font-size:14px; }
.seg-labels-row .seg-lbl .n{ font-family:'Inter'; font-weight:500; font-size:11px; opacity:0.7; margin-left:3px; }
.seg-bar-2{ display:flex; height:8px; border-radius:4px; overflow:hidden; background:#eceae0; }
.card.selected .seg-bar-2{ background:rgba(0,0,0,0.08); }
.seg-a{ background:#f3d24e; }
.seg-b{ background:#1c1c1c; }
.seg-total{ font-size:11.5px; color:#9a9a96; margin:8px 0 0; }
.card.selected .seg-total{ color:#7a4a1f; }
.seg-total b{ color:#1c1c1c; font-weight:700; }
.card.selected .seg-total b{ color:#1c1c1c; }

.rendir-badge{
  display:flex; justify-content:space-between; align-items:center;
  background:rgba(47,168,90,0.13); border-radius:14px; padding:10px 14px; margin:2px 0 10px;
}
.rendir-badge .lbl{ font-size:11.5px; font-weight:600; color:#1c1c1c; }
.rendir-badge .val{ font-family:'Poppins'; font-weight:700; font-size:16px; color:#2fa85a; }
.card.selected .rendir-badge{ background:rgba(255,255,255,0.55); }
.card.selected .rendir-badge .val{ color:#1c7a3f; }
.fuel-row{ display:flex; justify-content:space-between; align-items:baseline; }
.fuel-row .lbl{ font-size:12.5px; font-weight:600; color:#1c1c1c; }
.fuel-row .val{ font-size:11.5px; font-weight:600; color:#9a9a96; }
.card.selected .fuel-row .val{ color:#7a4a1f; }

.card-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.card-bottom .lbl{ font-size:11.5px; color:#9a9a96; margin:0 0 3px; }
.card.selected .card-bottom .lbl{ color:#7a4a1f; }
.card-bottom .val{ font-size:13.5px; font-weight:700; color:#1c1c1c; margin:0; }

.card{ cursor:pointer; }
.card-summary{ display:flex; align-items:center; justify-content:center; }
.stadium-wrap{ width:100%; }
.stadium-labels{ display:flex; margin-bottom:6px; }
.stadium-labels span{ font-size:10.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stadium-bar{ display:flex; height:34px; border-radius:17px; overflow:hidden; }
.stadium-seg{ height:100%; }
.stadium-seg.taxi{ background:#f3d24e; border-right:2px solid #faf7ee; }
.stadium-seg.uber{ background:#1c1c1c; border-right:2px solid #faf7ee; }
.stadium-seg.viajes{ background:#9a9a96; }
.card.selected .stadium-seg.taxi, .card.selected .stadium-seg.uber{ border-right-color:#f2975a; }
.card.selected{ background:#f2975a; z-index:5; }

.card-detail{ display:none; margin-top:14px; }
.card-detail.open{ display:block; }

/* ---- chofer specific ---- */
.card.selected.simple{ background:#f3d24e; }
.card-data{ display:flex; justify-content:space-between; margin-bottom:6px; }
.data-col .lbl{ font-size:11px; color:#9a9a96; display:block; margin-bottom:4px; }
.card.selected.simple .data-col .lbl{ color:#6b5c14; }
.data-col .val{ font-size:14px; font-weight:600; color:#1c1c1c; }
.comment-link{ font-size:12px; font-weight:600; color:#4d64d9; margin:10px 0 0; cursor:pointer; display:inline-block; }
.card.selected.simple .comment-link{ color:#3a2f05; }
.comment-box{ display:none; margin-top:8px; }
.comment-box.open{ display:block; }
.comment-box textarea{
  width:100%; border:none; border-radius:12px; background:rgba(0,0,0,0.04); padding:10px 12px;
  font-size:16px; font-family:'Inter'; color:#1c1c1c; resize:none; min-height:46px;
}
.card.selected.simple .comment-box textarea{ background:rgba(255,255,255,0.45); }
.card-actions-row{ display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }

/* ---- bottom nav ---- */
.bottom-nav{
  position:fixed; left:50%; transform:translateX(-50%); bottom:16px;
  width:calc(100% - 28px); max-width:452px;
  background:#1c1c1c; padding:9px 10px;
  border-radius:26px;
  display:flex; justify-content:space-between; align-items:center;
  box-shadow:0 10px 24px rgba(0,0,0,0.28);
  z-index:40;
}
.nav-item{ display:flex; flex-direction:column; align-items:center; gap:1px; color:#8a8a86; flex:1; cursor:pointer; padding:3px 0; }
.nav-item i{ font-size:17px; }
.nav-item svg{ width:16px; height:16px; }
.nav-item span{ font-size:7.5px; font-weight:600; }
.nav-item.active{ color:#f3d24e; }

/* ---- pre-turno / estados chofer ---- */
.chofer-state{ display:none; }
.chofer-state.active{ display:block; }
.preturno-wrap{ text-align:center; padding-top:70px; }
.preturno-icon{
  width:76px; height:76px; border-radius:24px; background:#1c1c1c; color:#f3d24e;
  display:flex; align-items:center; justify-content:center; font-size:32px; margin:0 auto 24px;
  box-shadow:0 10px 24px rgba(0,0,0,0.15);
}
.start-turno-btn{
  background:#1c1c1c; color:#fff; border:none; border-radius:18px; padding:18px 28px;
  font-family:'Poppins'; font-weight:600; font-size:16px; cursor:pointer; display:inline-flex;
  align-items:center; gap:10px; box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.start-turno-btn:active{ transform:scale(0.98); }
.start-turno-btn:disabled{ opacity:0.6; cursor:default; }

.chofer-view, .dueno-view{ display:none; }
.chofer-view.active, .dueno-view.active{ display:block; }

/* ---- historial ---- */
.hist-card{
  background:#faf7ee; border-radius:22px; padding:16px 18px; box-shadow:0 8px 18px rgba(0,0,0,0.05);
  display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; cursor:pointer;
}
.hist-card .hist-date{ font-family:'Poppins'; font-weight:600; font-size:14.5px; color:#1c1c1c; margin:0 0 3px; }
.hist-card .hist-sub{ font-size:11.5px; color:#9a9a96; margin:0; }
.hist-card .hist-total{ font-family:'Poppins'; font-weight:700; font-size:15px; color:#2fa85a; text-align:right; margin:0; }
.hist-card .hist-viajes{ font-size:10.5px; color:#9a9a96; text-align:right; margin:2px 0 0; }

/* ---- perfil ---- */
.profile-card{ background:#faf7ee; border-radius:26px; padding:26px 22px; box-shadow:0 10px 24px rgba(0,0,0,0.06); text-align:center; }
.profile-avatar{
  width:84px; height:84px; border-radius:50%; margin:0 auto 14px; object-fit:cover; display:block;
  box-shadow:0 6px 16px rgba(0,0,0,0.12); background:#eceae0;
}
.profile-name{ font-family:'Poppins'; font-weight:600; font-size:19px; color:#1c1c1c; margin:0 0 3px; }
.profile-role{ font-size:12.5px; color:#9a9a96; margin:0 0 20px; }
.profile-avatar-wrap{ position:relative; width:84px; margin:0 auto 14px; }
.profile-avatar-wrap .profile-avatar{ margin:0; }
.profile-avatar-edit-btn{
  position:absolute; bottom:-2px; right:-2px; width:28px; height:28px; border-radius:50%; background:#1c1c1c; color:#f3d24e;
  border:2px solid #faf7ee; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.profile-grid{ display:flex; flex-wrap:wrap; gap:10px; text-align:left; }
.profile-item{ flex:1 1 calc(50% - 5px); background:rgba(0,0,0,0.03); border-radius:16px; padding:12px 14px; }
.profile-item .lbl{ font-size:10.5px; color:#9a9a96; margin:0 0 4px; display:block; }
.profile-item .val{ font-family:'Poppins'; font-weight:600; font-size:14px; color:#1c1c1c; margin:0; }
.profile-link-btn{
  width:100%; margin-top:14px; background:rgba(0,0,0,0.05); color:#1c1c1c; border:none; border-radius:14px; padding:12px 0;
  font-size:13px; font-weight:700; cursor:pointer;
}

/* ---- reportes ---- */
.report-kpis{ display:flex; gap:10px; margin-bottom:22px; flex-wrap:wrap; }
.report-kpi{ flex:1 1 calc(50% - 5px); min-width:100px; background:#faf7ee; border-radius:18px; padding:14px 12px; text-align:center; box-shadow:0 8px 18px rgba(0,0,0,0.05); }
.report-kpi .lbl{ font-size:10.5px; color:#9a9a96; margin:0 0 6px; }
.report-kpi .val{ font-family:'Poppins'; font-weight:700; font-size:16px; color:#1c1c1c; margin:0; }
.chart-card{ background:#faf7ee; border-radius:22px; padding:20px 18px; box-shadow:0 8px 18px rgba(0,0,0,0.05); margin-bottom:14px; cursor:default; }
.chart-card.clickable{ cursor:pointer; }
.chart-card .chart-title{ font-size:13px; font-weight:600; color:#1c1c1c; margin:0 0 16px; display:flex; justify-content:space-between; align-items:center; }

/* ---- grafico de barras (Mis comisiones, historial del chofer) ---- */
.bar-chart{ display:flex; align-items:flex-end; gap:8px; height:110px; padding-top:34px; position:relative; }
.bar-chart::before{ content:''; position:absolute; left:0; right:0; top:56px; border-top:1.5px dotted #d3cfa1; }
.bar-chart .bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; position:relative; z-index:1; }
.bar-chart .bar{ width:46%; min-height:2px; border-radius:8px 8px 3px 3px; background:#1c1c1c; }
.bar-chart .bar.peak{ background:#f3d24e; }
.bar-chart .bar-lbl{ font-size:9.5px; color:#9a9a96; margin-top:6px; }
.bar-chart .bar-val{ position:absolute; top:-20px; font-size:9.5px; font-weight:700; color:#1c1c1c; white-space:nowrap; }

/* ---- liquidacion de la flota: solo visible en escritorio (ver .only-desktop) ---- */
.liquidacion-flota-card{ background:#1c1c1c; }
.liquidacion-flota-card .chart-title{ color:#fff; }
.liquidacion-flota-card .chart-sub{ font-size:11px; color:#9a9a96; font-weight:500; }
.liquidacion-stats{ display:flex; gap:14px; flex-wrap:wrap; margin-top:2px; }
.liquidacion-stat{ flex:1 1 150px; min-width:150px; }
.liquidacion-stat .lbl{ font-size:11.5px; color:#9a9a96; margin:0 0 8px; font-weight:500; }
.liquidacion-stat .val{ font-family:'Poppins'; font-weight:600; font-size:21px; color:#fff; margin:0; }
.liquidacion-stat.destacado{
  background:rgba(243,210,78,0.14); border-radius:16px; padding:14px 16px; margin:-14px 0;
}
.liquidacion-stat.destacado .lbl{ color:#f3d24e; }
.liquidacion-stat.destacado .val{ color:#f3d24e; font-size:25px; }
.ranking-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
.ranking-row:last-child{ border-bottom:none; }
.ranking-name{ font-size:13px; font-weight:600; color:#1c1c1c; }
.ranking-sub{ font-size:10.5px; color:#9a9a96; margin-top:2px; }
.ranking-val{ font-size:13px; font-weight:700; color:#2fa85a; text-align:right; }

/* ---- reportes: tarjeta oscura tipo grafico de linea (combustible, cta cte, comisiones, service) ---- */
.combustible-dark-card{ background:#1c1c1c; border-radius:26px; padding:22px 20px 18px; }
.dark-card-header{ display:flex; justify-content:space-between; align-items:center; }
.dark-card-title{ font-family:'Poppins'; font-weight:600; font-size:15px; color:#fff; margin:0; }
.dark-card-sub{ font-size:11px; color:#9a9a96; }
.dark-chart-wrap{ position:relative; height:100px; margin:36px 0 4px; }
.dark-line-svg{ width:100%; height:100%; display:block; overflow:visible; }
.dark-tooltip{
  position:absolute; transform:translate(-50%,-135%);
  background:#fff; color:#1c1c1c; font-size:11px; font-weight:700; padding:6px 12px; border-radius:999px; white-space:nowrap;
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
}
.dark-chart-labels{ display:flex; justify-content:space-between; margin-top:6px; }
.dark-chart-labels span{ font-size:10px; color:#7a7a76; flex:1; text-align:center; }
.dark-chart-labels span.peak-lbl{ background:rgba(255,255,255,0.14); color:#fff; border-radius:999px; padding:3px 9px; font-weight:700; }

/* ---- reportes: facturacion en efectivo/transferencia (capsulas tipo termometro) ---- */
.progress-total{ font-family:'Poppins'; font-weight:700; font-size:26px; color:#1c1c1c; margin:0; }
.progress-sub{ font-size:11px; color:#9a9a96; margin:4px 0 18px; }
.capsule-row{ display:flex; gap:10px; justify-content:space-between; }
.capsule-col{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.capsule{
  width:14px; height:100px; border-radius:999px; position:relative; overflow:hidden;
  background-image: repeating-linear-gradient(-45deg, #d8d6cc 0 2px, transparent 2px 7px);
  background-color: rgba(0,0,0,0.05);
}
.capsule-fill{ position:absolute; bottom:0; left:0; width:100%; background:#f3d24e; border-radius:999px; }
.capsule-lbl{ font-size:9.5px; color:#9a9a96; }
.progress-legend{ display:flex; gap:16px; justify-content:center; margin-top:16px; }
.progress-legend span{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:#6b6b68; }
.progress-legend .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }

/* ---- reportes: desglose taxi / uber (anillo) ---- */
.ring-card{ text-align:center; }
.ring-wrap{ position:relative; width:160px; height:160px; margin:6px auto 18px; }
.ring{ width:100%; height:100%; border-radius:50%; }
.ring-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ring-center .amount{ font-family:'Poppins'; font-weight:700; font-size:18px; color:#1c1c1c; margin:0; }
.ring-center .label{ font-size:10px; color:#9a9a96; margin:4px 0 0; }
.ring-legend{ display:flex; gap:10px; justify-content:center; }
.ring-chip{ flex:1; max-width:160px; background:rgba(0,0,0,0.03); border-radius:16px; padding:10px 12px; display:flex; align-items:center; gap:8px; text-align:left; }
.ring-chip .dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.ring-chip .txt .name{ font-size:10px; color:#9a9a96; margin:0; }
.ring-chip .txt .val{ font-family:'Poppins'; font-weight:700; font-size:12.5px; color:#1c1c1c; margin:1px 0 0; }

/* ---- reportes: descuentos (tarjeta naranja con linea ondulada) ---- */
.descuentos-card{ background:#f2975a; }
.descuentos-title{ font-family:'Poppins'; font-weight:600; font-size:15px; color:#1c1c1c; margin:0 0 4px; }
.descuentos-chart-wrap{ position:relative; height:64px; margin:34px 0 4px; }
.descuentos-line-svg{ width:100%; height:100%; display:block; overflow:visible; }
.descuentos-chart-labels{ display:flex; justify-content:space-between; margin-top:6px; }
.descuentos-chart-labels span{ font-size:10px; color:#7a4a1f; flex:1; text-align:center; }
.descuentos-chart-labels span.peak-lbl{ background:#1c1c1c; color:#fff; border-radius:999px; padding:3px 9px; font-weight:700; }
.descuentos-pct-row{ display:flex; align-items:baseline; gap:8px; margin-top:14px; }
.descuentos-pct{ font-family:'Poppins'; font-weight:700; font-size:34px; color:#1c1c1c; }
.descuentos-pct-label{ font-size:12.5px; color:#7a4a1f; }
.descuentos-monto{ font-size:11.5px; color:#7a4a1f; margin:6px 0 0; }

/* ---- reportes: tira de miniaturas de comprobantes ---- */
.comprobantes-strip{ display:flex; gap:6px; margin:8px 0 0; }
.comprobantes-strip .strip-thumb{ width:40px; height:40px; border-radius:8px; background:rgba(255,255,255,0.12); flex-shrink:0; object-fit:cover; }

/* ---- barra simple de proporcion (taxi/uber, efvo/transf) ---- */
.simple-seg-bar{ display:flex; height:12px; border-radius:6px; overflow:hidden; background:#eceae0; margin:6px 0 10px; }
.simple-seg-bar .seg-a{ background:#f3d24e; }
.simple-seg-bar .seg-b{ background:#1c1c1c; }
.simple-seg-legend{ display:flex; justify-content:space-between; font-size:11.5px; color:#6b6b68; }
.simple-seg-legend b{ color:#1c1c1c; }

/* ---- asistente: informe ---- */
.report-card{ background:#faf7ee; border-radius:22px; padding:18px 18px 16px; box-shadow:0 8px 18px rgba(0,0,0,0.05); margin-bottom:14px; }
.report-card .report-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.report-card .report-icon{ width:30px; height:30px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.report-card.good .report-icon{ background:rgba(47,168,90,0.15); color:#2fa85a; }
.report-card.bad .report-icon{ background:rgba(226,84,76,0.15); color:#e2544c; }
.report-card.tips .report-icon{ background:rgba(77,100,217,0.15); color:#4d64d9; }
.report-card .report-head-title{ font-family:'Poppins'; font-weight:600; font-size:14.5px; color:#1c1c1c; margin:0; }
.report-item{ display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
.report-item:last-child{ border-bottom:none; }
.report-item .report-bullet{
  width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; flex-shrink:0; margin-top:1px;
}
.report-card.good .report-bullet{ background:#2fa85a; color:#fff; }
.report-card.bad .report-bullet{ background:#e2544c; color:#fff; }
.report-card.tips .report-bullet{ background:#4d64d9; color:#fff; font-size:9.5px; }
.report-item p{ font-size:12.5px; color:#4a4a47; line-height:1.5; margin:0; }

/* ---- modal propio ---- */
.modal-overlay{
  display:none; position:fixed; inset:0; background:rgba(28,28,28,0.55);
  align-items:center; justify-content:center; z-index:100; padding:24px;
}
.modal-overlay.active{ display:flex; }
.modal-card{
  background:#faf7ee; border-radius:24px; padding:24px 22px; width:100%; max-width:340px;
  box-shadow:0 16px 40px rgba(0,0,0,0.3);
  max-height:85vh; display:flex; flex-direction:column;
}
.modal-scroll-area{ overflow-y:auto; flex:1; min-height:0; margin:0 -6px; padding:0 6px; }
.modal-title{ font-family:'Poppins'; font-weight:600; font-size:17px; color:#1c1c1c; margin:0 0 16px; flex-shrink:0; }
.modal-row{ display:flex; justify-content:space-between; font-size:13px; color:#6b6b68; padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
.modal-row:last-child{ border-bottom:none; }
.modal-row b{ color:#1c1c1c; font-weight:700; }
.modal-actions{ display:flex; gap:10px; margin-top:16px; flex-shrink:0; }
.modal-btn{
  flex:1; border:none; border-radius:14px; padding:12px 0; font-weight:600; font-size:13.5px; cursor:pointer;
}
.modal-btn.secondary{ background:rgba(0,0,0,0.06); color:#4a4a47; }
.modal-btn.primary{ background:#1c1c1c; color:#fff; }
.modal-btn.danger{ background:#c9483d; color:#fff; }
.modal-btn:disabled{ opacity:0.6; cursor:default; }
.modal-input{
  width:100%; border:none; border-radius:14px; background:rgba(0,0,0,0.05); padding:14px 16px;
  font-size:16px; font-family:'Inter'; color:#1c1c1c; margin-top:2px;
}
.modal-error{ display:none; font-size:11.5px; color:#c9483d; margin:8px 2px 0; }
.modal-error.show{ display:block; }
.modal-field-lbl{ font-size:11.5px; font-weight:600; color:#6b6b68; margin:12px 2px 6px; display:block; }
.modal-field-lbl:first-child{ margin-top:0; }

.modal-mini-filter{ display:flex; gap:6px; margin-bottom:14px; flex-shrink:0; }
.modal-mini-filter button{
  flex:1; border:none; border-radius:10px; padding:7px 0; font-size:12px; font-weight:600;
  background:rgba(0,0,0,0.05); color:#6b6b68; cursor:pointer;
}
.modal-mini-filter button.active{ background:#1c1c1c; color:#fff; }
.modal-list-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.06); cursor:pointer; }
.modal-list-row:last-child{ border-bottom:none; }
.modal-list-row .row-avatar{ width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,0.08); flex-shrink:0; object-fit:cover; }
.modal-list-row .row-info{ flex:1; min-width:0; }
.modal-list-row .row-info .row-name{ font-size:13px; font-weight:600; color:#1c1c1c; margin:0; }
.modal-list-row .row-info .row-sub{ font-size:11px; color:#9a9a96; margin:2px 0 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.modal-list-row .row-val{ font-size:14px; font-weight:700; color:#2fa85a; flex-shrink:0; text-align:right; }
.service-entry{ padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
.service-entry:last-child{ border-bottom:none; }
.service-entry .service-entry-date{ font-size:12px; font-weight:600; color:#1c1c1c; margin:0 0 2px; }
.service-entry .service-entry-text{ font-size:12px; color:#6b6b68; margin:0; }

.flota-list-card{ background:#faf7ee; border-radius:26px; padding:18px 20px 20px; margin-top:16px; box-shadow:0 10px 24px rgba(0,0,0,0.08); }
.flota-list-title{ font-family:'Poppins'; font-weight:600; font-size:15px; color:#1c1c1c; margin:0 0 12px; }
.flota-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.06); cursor:pointer; }
.flota-row:last-of-type{ border-bottom:none; }
.flota-row-avatar{ width:38px; height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; background:rgba(0,0,0,0.08); }
.flota-row-info{ flex:1; min-width:0; }
.flota-row-info .flota-row-name{ font-size:13px; font-weight:600; color:#1c1c1c; margin:0; }
.flota-row-info .flota-row-phone{ font-size:11px; color:#9a9a96; margin:2px 0 0; }
.flota-row-chev{ color:#9a9a96; font-size:16px; flex-shrink:0; }
.btn-agregar-chofer{
  width:100%; margin-top:14px; background:#1c1c1c; color:#fff; border:none; border-radius:14px; padding:12px 0;
  font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer;
}
.chofer-form-avatar{ width:72px; height:72px; border-radius:50%; object-fit:cover; background:rgba(0,0,0,0.08); display:block; margin:0 auto 12px; }

.ticket-foto-box{ margin-top:14px; background:rgba(0,0,0,0.04); border-radius:16px; padding:14px; }
.ticket-foto-title{ font-size:12px; font-weight:700; color:#1c1c1c; margin:0 0 2px; }
.ticket-foto-sub{ font-size:11px; color:#9a9a96; margin:0 0 10px; }
.ticket-foto-btn{
  width:100%; background:#1c1c1c; color:#f3d24e; border:none; border-radius:12px; padding:11px 0;
  font-size:12.5px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer;
}
.ticket-foto-btn.tomada{ background:#2fa85a; color:#fff; }

.fotos-reloj-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.fotos-reloj-grid:not(:empty){ margin-bottom:10px; }
.foto-reloj-item{ position:relative; }
.foto-reloj-item img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; display:block; cursor:pointer; }

.edit-viaje-btn{
  height:28px; padding:0 12px; border-radius:999px; background:rgba(77,100,217,0.12); border:none;
  display:flex; align-items:center; gap:5px; color:#4d64d9; font-size:11.5px; font-weight:700; cursor:pointer; flex-shrink:0;
}
.cobrar-btn{
  height:28px; padding:0 12px; border-radius:999px; background:rgba(47,168,90,0.14); border:none;
  color:#1c7a3f; font-size:11.5px; font-weight:700; cursor:pointer; flex-shrink:0;
}

/* ---------------------------------- */
/* login screen                        */
/* ---------------------------------- */
#screen-login .content{
  min-height:100vh; min-height:100dvh; padding:40px 28px; display:flex; flex-direction:column;
}
.login-top{ flex:1; display:flex; flex-direction:column; justify-content:center; }
.login-badge{
  width:64px; height:64px; border-radius:20px; background:#1c1c1c;
  display:flex; align-items:center; justify-content:center; margin-bottom:26px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.login-badge i{ color:#f3d24e; font-size:28px; }
.login-title{ font-family:'Poppins'; font-weight:600; font-size:34px; color:#1c1c1c; margin:0 0 8px; line-height:1.1; }
.login-subtitle{ font-size:14px; color:#6b6b68; margin:0 0 32px; line-height:1.5; }
.login-footer{ text-align:center; font-size:11.5px; color:#8a8a86; margin-top:10px; }

/* ---- toast de feedback ---- */
.toast-wrap{ position:fixed; left:50%; transform:translateX(-50%); top:18px; z-index:200; width:calc(100% - 36px); max-width:420px; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.toast{
  background:#1c1c1c; color:#fff; padding:12px 16px; border-radius:14px; font-size:13px; font-weight:600;
  box-shadow:0 10px 24px rgba(0,0,0,0.25); opacity:0; transform:translateY(-10px); transition:opacity .2s, transform .2s;
}
.toast.show{ opacity:1; transform:translateY(0); }
.toast.error{ background:#c9483d; }
.toast.success{ background:#2fa85a; }

.empty-state{ text-align:center; padding:30px 10px; color:#9a9a96; font-size:13px; }

/* ---- loading overlay simple ---- */
.loading-overlay{
  display:none; position:fixed; inset:0; background:rgba(216,214,206,0.7); z-index:150;
  align-items:center; justify-content:center; font-family:'Poppins'; font-weight:600; color:#1c1c1c;
}
.loading-overlay.active{ display:flex; }

/* ==================================================================== */
/* Responsive: tablet y escritorio                                       */
/* El panel del DUEÑO se adapta con columnas y un sidebar fijo (como en   */
/* Demo/version escritorio.html). La vista del CHOFER se deja centrada    */
/* en su ancho de tarjeta mobile en todos los tamaños: la sigue usando    */
/* desde el celular durante el turno, igual que en el demo original.      */
/* ==================================================================== */
.only-desktop{ display:none; }

#dueno-perfil-wrap{ display:block; }

.sidebar-brand{
  display:none; align-items:center; gap:10px; padding:4px 14px 24px; margin-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.sidebar-brand .sidebar-badge{
  width:38px; height:38px; border-radius:12px; background:#f3d24e; color:#1c1c1c;
  display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0;
}
.sidebar-brand .sidebar-txt .name{ font-family:'Poppins'; font-weight:600; font-size:15px; color:#fff; margin:0; }
.sidebar-brand .sidebar-txt .role{ font-size:11px; color:#8a8a86; margin:1px 0 0; }

/* ---- Tablet: el panel del dueño usa el ancho extra con columnas ---- */
@media (min-width: 768px){
  #screen-dueno{ max-width:760px; }

  #choferes-stack{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; align-items:start; }

  #reportes-content{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
  #reportes-content .report-kpis,
  #reportes-content .liquidacion-flota-card{ grid-column:1 / -1; }

  #asistente-content{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; align-items:start; }

  .modal-card{ max-width:440px; }
}

/* ---- Escritorio: sidebar fijo, grillas de 3 columnas, modales grandes ---- */
@media (min-width: 1024px){
  .only-desktop{ display:block; }

  #screen-dueno{ max-width:none; width:100%; overflow:visible; }

  #screen-dueno > .content{ margin-left:236px; padding:32px 40px 60px; }
  #screen-dueno .content > .dueno-view{ max-width:1240px; margin:0 auto; }
  #screen-dueno .top-row{ margin-bottom:32px; }
  #screen-dueno .title{ font-size:30px; }

  .sidebar-brand{ display:flex; }

  #dueno-nav{
    position:fixed; top:0; left:0; bottom:auto; transform:none;
    width:236px; max-width:236px; height:100vh;
    border-radius:0; box-shadow:2px 0 30px rgba(0,0,0,0.14);
    flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:4px; padding:26px 16px; overflow-y:auto; z-index:50;
  }
  #dueno-nav .nav-item{
    flex-direction:row; justify-content:flex-start; align-items:center;
    gap:12px; padding:11px 14px; border-radius:12px; flex:none;
  }
  #dueno-nav .nav-item:hover{ background:rgba(255,255,255,0.06); }
  #dueno-nav .nav-item.active{ background:rgba(243,210,78,0.14); }
  #dueno-nav .nav-item i{ font-size:18px; }
  #dueno-nav .nav-item span{ font-size:13px; font-weight:600; }

  #choferes-stack{ grid-template-columns:repeat(2, 1fr); }
  #reportes-content{ grid-template-columns:repeat(3, 1fr); }
  #asistente-content{ grid-template-columns:repeat(3, 1fr); }

  /* perfil: datos de la flota + lista de choferes lado a lado */
  #dueno-perfil-wrap{ display:grid; grid-template-columns:360px 1fr; gap:20px; align-items:start; }
  .flota-list-card{ margin-top:0; }

  /* modales: más grandes y legibles en pantallas anchas */
  .modal-card{ max-width:540px; padding:32px 34px; border-radius:28px; }
  .modal-title{ font-size:20px; margin-bottom:20px; }
  .modal-row{ font-size:14px; padding:11px 0; }
  .modal-actions{ margin-top:20px; gap:12px; }
  .modal-btn{ font-size:14.5px; padding:14px 0; border-radius:16px; }
  .modal-input{ font-size:16px; padding:15px 18px; border-radius:16px; }
  .modal-list-row{ padding:13px 0; gap:14px; }
  .modal-list-row .row-avatar{ width:44px; height:44px; }
  .modal-list-row .row-info .row-name{ font-size:14.5px; }
  .modal-list-row .row-info .row-sub{ font-size:12.5px; }
  .modal-list-row .row-val{ font-size:15.5px; }
  .service-entry{ padding:13px 0; }
  .service-entry .service-entry-date{ font-size:13px; }
  .service-entry .service-entry-text{ font-size:13px; }
  .chofer-form-avatar{ width:88px; height:88px; }

  /* login: pantalla completa, dos columnas (branding + formulario) */
  #screen-login{ max-width:none; width:100%; }
  #screen-login .content{
    max-width:1180px; margin:0 auto; padding:0 48px;
    min-height:100vh; min-height:100dvh;
  }
  #screen-login .login-top{
    flex:1; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:100px;
  }
  #screen-login .login-brand{ flex:1 1 0; max-width:480px; }
  #screen-login .login-actions{ flex:1 1 0; max-width:420px; }
  #screen-login .login-badge{ width:84px; height:84px; border-radius:26px; margin-bottom:32px; }
  #screen-login .login-badge i{ font-size:36px; }
  #screen-login .login-title{ font-size:54px; }
  #screen-login .login-subtitle{ font-size:16px; margin-bottom:0; }
  #screen-login .login-footer{ margin-top:0; padding-bottom:36px; }
}
