/* Mecy's Auto Wash - diseño amarillo y morado */
@font-face {
  font-family: 'Nunito';
  src: url('/fuentes/nunito.woff2') format('woff2');
  font-weight: 300 1000;
  font-display: swap;
}

:root {
  /* morados */
  --grape-950: #12042a;
  --grape-900: #1d0840;
  --grape-800: #2d0a5e;
  --grape-700: #43108a;
  --purple: #7c22d6;
  --purple-d: #6316b5;
  --purple-l: #f2e8ff;
  --purple-ll: #faf6ff;
  /* amarillos */
  --yellow: #ffc400;
  --yellow-d: #e0a100;
  --yellow-l: #fff4c2;
  /* estados */
  --teal: #0e9f8e;
  --teal-l: #dcf7f2;
  --green: #18a058;
  --green-l: #ddf6e8;
  --red: #e0344f;
  --red-l: #fde4e8;
  --gray: #8a849a;
  /* base */
  --bg: #f5f1fb;
  --card: #ffffff;
  --text: #1c1033;
  --muted: #74698a;
  --line: #ece5f6;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(45, 10, 94, .04), 0 8px 24px rgba(45, 10, 94, .07);
  --shadow-l: 0 18px 50px rgba(45, 10, 94, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--purple); }
h1, h2, h3 { letter-spacing: -.01em; }

.app { display: flex; min-height: 100vh; }

/* ---------- barra lateral (PC) ---------- */
.sidebar {
  width: 264px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 16px 18px; color: #fff;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(124, 34, 214, .55), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(255, 196, 0, .12), transparent 70%),
    linear-gradient(180deg, var(--grape-800), var(--grape-950));
}
.brand { display: block; text-align: center; padding: 4px 6px 22px; text-decoration: none; }
.brand img { width: 100%; max-width: 210px; display: block; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.brand-sub {
  color: var(--yellow); font-weight: 900; font-size: 13px; letter-spacing: .42em; margin-top: 2px;
  padding-left: .42em;
}
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42); padding: 14px 12px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 700; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.active {
  background: linear-gradient(135deg, #ffd53d, var(--yellow)); color: var(--grape-900);
  box-shadow: 0 6px 18px rgba(255, 196, 0, .35);
}
.ic { width: 20px; height: 20px; display: inline-flex; flex: none; }
.ic svg { width: 100%; height: 100%; }
.sidebar-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, .7); padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.dot, .mh-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); flex: none; }
.is-offline .dot, .is-offline .mh-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(224, 52, 79, .2); }

/* ---------- zona principal ---------- */
.main { flex: 1; min-width: 0; padding: 22px 28px 48px; }
.mobile-header { display: none; }
.topbar { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 28px; font-weight: 900; color: var(--grape-900); }
.clock { color: var(--muted); font-weight: 700; font-size: 14px; text-transform: capitalize; }
.counters { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.counter {
  display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 8px 14px 8px 8px;
  box-shadow: var(--shadow); min-width: 118px;
}
.counter .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.counter b { display: block; font-size: 20px; font-weight: 900; line-height: 1.05; }
.counter span:not(.ic) { font-size: 12px; color: var(--muted); font-weight: 700; }
.k-proceso .ic, .k-proceso .stat-ic { background: var(--purple-l); color: var(--purple); }
.k-espera .ic, .k-espera .stat-ic { background: var(--yellow-l); color: #b07d00; }
.k-listo .ic, .k-listo .stat-ic { background: var(--teal-l); color: var(--teal); }
.k-hoy .ic, .k-hoy .stat-ic { background: var(--green-l); color: var(--green); }
.k-tiempo .stat-ic { background: #ffe9dc; color: #d9480f; }

.c-blue { color: var(--purple); } .c-green { color: var(--green); } .c-purple { color: var(--teal); } .c-red { color: var(--red); }

/* ---------- tarjetas y rejillas ---------- */
.view { animation: aparecer .25s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2 { margin: 0 0 16px; font-size: 21px; font-weight: 900; color: var(--grape-900); }
.card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 900; color: var(--grape-900); }
.view > .grid > div > h3 { margin: 4px 4px 12px; color: var(--grape-900); font-weight: 900; }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.side-form { position: sticky; top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* panel principal */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 196, 0, .28), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(181, 23, 158, .35), transparent 60%),
    linear-gradient(120deg, var(--grape-800), var(--purple));
  box-shadow: 0 16px 40px rgba(67, 16, 138, .28);
}
.hero::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .03));
}
.hero-hi { font-size: 18px; font-weight: 800; opacity: .9; }
.hero-sub { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.hero-money { font-size: 46px; font-weight: 900; color: var(--yellow); line-height: 1.05; text-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.hero-note { opacity: .85; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.stat-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--purple-l); color: var(--purple); }
.stat-ic .ic { width: 22px; height: 22px; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat .val { font-size: 28px; font-weight: 900; line-height: 1.1; }

/* ---------- controles ---------- */
.toolbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 14px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e3daf0; border-radius: var(--radius-s); background: var(--purple-ll);
  outline: none; min-height: 46px; font-weight: 600; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #a89dbb; font-weight: 600; }
.input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(124, 34, 214, .14); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c22d6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.search { position: relative; }
.search > .ic { position: absolute; left: 14px; top: 13px; color: var(--purple); }
.search .input { padding-left: 44px; }
label.fl { display: block; font-weight: 800; font-size: 14px; margin: 14px 0 7px; color: var(--grape-900); }
label.fl:first-child { margin-top: 0; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--purple); }
input[type=date].input { width: auto; }
.fechas { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-s);
  padding: 10px 18px; font-weight: 800; cursor: pointer; background: #efe8f8; color: var(--grape-900);
  min-height: 44px; text-decoration: none; transition: transform .1s, filter .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #9a3cf0, var(--purple-d)); color: #fff; box-shadow: 0 6px 16px rgba(124, 34, 214, .3); }
.btn.accent { background: linear-gradient(135deg, #ffd84d, var(--yellow)); color: var(--grape-900); box-shadow: 0 6px 16px rgba(255, 196, 0, .35); }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn.success { background: linear-gradient(135deg, #22b866, var(--green)); color: #fff; box-shadow: 0 6px 16px rgba(24, 160, 88, .28); }
.btn.teal { background: linear-gradient(135deg, #14b8a6, var(--teal)); color: #fff; box-shadow: 0 6px 16px rgba(14, 159, 142, .25); }
.btn.danger { background: var(--red); color: #fff; }
.btn.big { font-size: 16px; padding: 13px 22px; min-height: 52px; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn.block { width: 100%; }
.btn .ic { width: 19px; height: 19px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--grape-900); color: #fff; text-align: left; padding: 12px; font-weight: 800; font-size: 13px;
  letter-spacing: .03em; white-space: nowrap;
}
tbody td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--purple-ll); }
td.nowrap { white-space: nowrap; }
.placa-cell b { font-size: 15px; letter-spacing: .05em; background: var(--yellow-l); color: var(--grape-900); padding: 4px 9px; border-radius: 8px; border: 1.5px solid #ffe07a; }
.veh-cell { min-width: 150px; font-weight: 600; }
.svc-cell b { font-weight: 800; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  font-weight: 800; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.espera { background: var(--yellow-l); color: #9a6b00; }
.pill.proceso { background: var(--purple-l); color: var(--purple); }
.pill.proceso::before { animation: latido 1.2s ease-in-out infinite; }
.pill.completado { background: var(--teal-l); color: var(--teal); }
.pill.entregado { background: var(--green-l); color: var(--green); }
.pill.cancelado { background: #eeeaf3; color: var(--gray); }
@keyframes latido { 50% { opacity: .25; } }

.person { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 700; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line);
}

/* ---------- formulario de entrada ---------- */
.side-form { border-top: 5px solid var(--yellow); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc {
  border: 1.5px solid #e3daf0; border-radius: 14px; background: var(--purple-ll); padding: 12px 4px; text-align: center;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: all .15s;
}
.svc:hover { border-color: #c9a8f0; }
.svc .ic { width: 26px; height: 26px; color: var(--purple); margin-bottom: 2px; }
.svc b { font-size: 14px; font-weight: 900; }
.svc span.p { font-size: 13px; color: var(--muted); font-weight: 800; }
.svc.sel { border-color: var(--purple); background: linear-gradient(160deg, #9a3cf0, var(--purple-d)); color: #fff; box-shadow: 0 8px 18px rgba(124, 34, 214, .3); }
.svc.sel .ic { color: var(--yellow); }
.svc.sel span.p { color: var(--yellow); }
.hint { font-size: 13px; color: var(--teal); margin-top: 6px; min-height: 1em; font-weight: 800; }
.form-title { display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- salida / personal ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.vcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden; }
.vcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--teal); }
.vcard.proceso::before { background: linear-gradient(90deg, var(--purple), #b5179e); }
.vcard.espera::before { background: var(--yellow); }
.vcard .placa { font-size: 20px; font-weight: 900; letter-spacing: .06em; background: var(--yellow-l); padding: 3px 10px; border-radius: 9px; border: 1.5px solid #ffe07a; }
.vcard .meta { color: var(--muted); margin: 10px 0 10px; font-size: 14px; font-weight: 600; }
.vcard .price { font-size: 24px; font-weight: 900; color: var(--purple); }
.vcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row > .ic { color: var(--purple); }
.bar { height: 10px; background: var(--purple-l); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--yellow)); border-radius: 99px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #eeeaf3; color: var(--muted); font-weight: 800; }
.tag.on { background: var(--purple-l); color: var(--purple); }

.seg { display: inline-flex; background: var(--purple-l); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 800; color: var(--grape-700); }
.seg button.on { background: var(--grape-900); color: var(--yellow); box-shadow: var(--shadow); }

.addr {
  font-family: Consolas, 'SF Mono', monospace; font-size: 18px; font-weight: 700; background: var(--grape-900); color: var(--yellow);
  padding: 10px 14px; border-radius: 10px; display: inline-block; margin: 3px 0; word-break: break-all;
}
code { background: var(--purple-l); color: var(--grape-700); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- ventanas y avisos ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(18, 4, 42, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fundido .15s ease;
}
@keyframes fundido { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 460px; padding: 26px; max-height: 92vh; overflow: auto;
  box-shadow: var(--shadow-l); border-top: 6px solid var(--yellow); animation: subir .2s ease;
}
@keyframes subir { from { transform: translateY(16px); opacity: 0; } }
.modal h3 { margin: 0 0 14px; font-size: 21px; font-weight: 900; color: var(--grape-900); }
.modal .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast {
  background: var(--grape-900); color: #fff; padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow-l); max-width: 360px;
  font-weight: 700; border-left: 5px solid var(--yellow); animation: subir .2s ease;
}
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: #3ddc84; }
.offline-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--red); color: #fff;
  text-align: center; font-weight: 800; font-size: 14px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
}
.offline-banner.show { display: block; }

/* hoja "Más" (celular) */
.sheet-bg { align-items: flex-end; padding: 0; }
.sheet {
  background: #fff; width: 100%; border-radius: 24px 24px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
  animation: subir .2s ease;
}
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: #ddd3ea; margin: 0 auto 10px; }
.sheet-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 12px; border-radius: 14px; text-decoration: none;
  color: var(--grape-900); font-weight: 800; font-size: 16px;
}
.sheet-item .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--purple-l); color: var(--purple); }
.sheet-item:active { background: var(--purple-ll); }

/* ---------- barra inferior (celular) ---------- */
.tabbar { display: none; }


/* ---------- entrada al sistema ---------- */
.login { display: none; }
.sin-sesion .login {
  display: flex; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: 18px; overflow: auto;
  background:
    radial-gradient(70% 50% at 0% 0%, rgba(124, 34, 214, .7), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 196, 0, .25), transparent 70%),
    linear-gradient(160deg, var(--grape-800), var(--grape-950));
}
.sin-sesion .app, .sin-sesion .tabbar { display: none !important; }
.login-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 28px 26px 22px; box-shadow: var(--shadow-l);
  border-top: 6px solid var(--yellow); text-align: left; animation: subir .25s ease;
}
.login-logo { display: block; width: 210px; max-width: 70%; margin: -78px auto 0; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.login-card .brand-sub { text-align: center; color: var(--purple); margin: 4px 0 6px; }
.login-card h2 { text-align: center; margin: 6px 0 16px; font-weight: 900; color: var(--grape-900); }
.login-card .btn { margin-top: 18px; }
.login-err { color: var(--red); font-weight: 800; font-size: 14px; min-height: 1.2em; margin-top: 10px; }
.login-link { display: block; text-align: center; margin-top: 14px; font-weight: 800; font-size: 14px; }
.cargando { padding: 30px; text-align: center; font-weight: 800; }

/* roles */
.solo-admin { display: none !important; }
.es-admin .solo-admin { display: flex !important; }
.es-admin .nav-label.solo-admin { display: block !important; }

/* ---------- avisos en el menú ---------- */
.nav-badge {
  display: none; margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--yellow);
  color: var(--grape-900); font-size: 12px; font-weight: 900; align-items: center; justify-content: center;
}
.nav-badge.show { display: inline-flex; }
.nav a.active .nav-badge { background: var(--grape-900); color: var(--yellow); }
.tabbar a { position: relative; }
.tabbar .nav-badge { position: absolute; top: 0; left: 55%; margin: 0; height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 5px; background: var(--red); color: #fff; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08);
}
.sidebar-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .small { color: var(--yellow); font-weight: 800; font-size: 12px; }
.sidebar-user .grow { flex: 1; min-width: 0; }
.sidebar-user .btn { min-height: 38px; padding: 6px 10px; }
.sidebar-foot { margin-top: 10px; }
.sidebar .nav { flex: none; }
.mh-bell { display: none; }

.k-cita .ic, .k-cita .stat-ic { background: #fde4f4; color: #b5179e; }
.k-volver .stat-ic { background: #ffe9dc; color: #d9480f; }
a.stat { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }

/* ---------- panel ---------- */
.cols-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head.wrap, .card.destacado .card-head { flex-wrap: wrap; }
.card.destacado .card-head > span { flex: 1 1 260px; }
.card-head .grow { flex: 1; min-width: 240px; }
.alertas { display: grid; gap: 10px; }
.alerta {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; text-decoration: none; font-weight: 600;
  color: var(--grape-900); box-shadow: var(--shadow);
}
.alerta > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; }
.alerta.morada { background: var(--purple-l); } .alerta.morada > .ic { background: var(--purple); color: #fff; }
.alerta.amarilla { background: var(--yellow-l); } .alerta.amarilla > .ic { background: var(--yellow); color: var(--grape-900); }
.alerta.roja { background: var(--red-l); } .alerta.roja > .ic { background: var(--red); color: #fff; }
.hora-chip {
  font-weight: 900; background: var(--grape-900); color: var(--yellow); border-radius: 9px; padding: 5px 9px; font-size: 13px;
  font-variant-numeric: tabular-nums; flex: none;
}
.list-row.atrasada .hora-chip { background: var(--red); color: #fff; }

/* etiquetas */
.tag { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.tag .ic { width: 13px; height: 13px; }
.tag.cita { background: #fde4f4; color: #a3168c; }
.tag.prio { background: var(--yellow-l); color: #8a6000; }
.tag.nuevo { background: var(--teal-l); color: var(--teal); }
.tag.atraso { background: var(--red-l); color: var(--red); }
.tag.prio-alta { background: var(--red-l); color: var(--red); text-transform: capitalize; }
.tag.prio-media { background: var(--yellow-l); color: #8a6000; text-transform: capitalize; }
.tag.prio-baja { background: var(--teal-l); color: var(--teal); text-transform: capitalize; }
.placa-cell .tag { margin-top: 7px; }
tr.fila-prio { background: linear-gradient(90deg, rgba(255, 196, 0, .13), transparent 60%); }
.placa-mini { letter-spacing: .05em; background: var(--yellow-l); color: var(--grape-900); padding: 1px 6px; border-radius: 6px; }
.txt-atraso { color: var(--red); font-weight: 800; }
.clic { cursor: pointer; }

.pill.r-pendiente { background: var(--yellow-l); color: #9a6b00; }
.pill.r-pendiente::before { animation: latido 1.2s ease-in-out infinite; }
.pill.r-confirmada { background: var(--purple-l); color: var(--purple); }
.pill.r-atendida { background: var(--green-l); color: var(--green); }
.pill.r-cancelada, .pill.r-no_asistio { background: #eeeaf3; color: var(--gray); }

/* formularios */
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 700; cursor: pointer; }
.check input { flex: none; }
.check.peligro { color: var(--red); }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.form-2.tight { gap: 8px; }
.form-2 > div > label.fl:first-child, .form-3 > div > label.fl:first-child { margin-top: 14px; }
.span2 { grid-column: 1 / -1; }
.btns-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
textarea.input { resize: vertical; min-height: 70px; line-height: 1.45; }
.btn.wa { background: #25d366; color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .28); }
.btn.sm.wa { box-shadow: none; }
.btn.danger-t { background: var(--red-l); color: var(--red); }
.modal { position: relative; }
.modal.wide { max-width: 760px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--purple-l);
  color: var(--grape-900); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-x .ic { width: 18px; height: 18px; }
.modal h3 { padding-right: 40px; }
.wa-preview {
  background: #e7fbe9; border-radius: 14px 14px 14px 4px; padding: 12px 14px; margin: 6px 0 14px; white-space: pre-wrap; font-size: 14px;
  border: 1px solid #c4efc9;
}
.aviso-lealtad {
  display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #fff4c2, #ffe07a); border-radius: 14px; padding: 12px 14px;
  margin-bottom: 6px; color: var(--grape-900);
}
.aviso-lealtad .ic { color: #b07d00; width: 26px; height: 26px; }
.toast.info { border-left-color: #ff4fd8; background: linear-gradient(135deg, var(--grape-900), var(--purple-d)); }

/* ---------- reservas ---------- */
.fecha-nav { display: flex; gap: 6px; align-items: center; }
.fecha-nav .input { min-height: 40px; padding: 7px 10px; }
.semana { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.semana .dia {
  flex: none; width: 74px; border: 1.5px solid var(--line); background: var(--purple-ll); border-radius: 14px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; color: var(--grape-900);
}
.semana .dia span { font-size: 12px; font-weight: 800; text-transform: capitalize; color: var(--muted); }
.semana .dia b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.semana .dia i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--purple); white-space: nowrap; }
.semana .dia.hoy { border-color: var(--yellow); }
.semana .dia.cerrado { opacity: .55; }
.semana .dia.cerrado i { color: var(--muted); }
.semana .dia.sel { background: var(--grape-900); border-color: var(--grape-900); color: #fff; }
.semana .dia.sel span { color: rgba(255, 255, 255, .7); }
.semana .dia.sel i { color: var(--yellow); }
.card.destacado { border: 2px solid var(--yellow); background: linear-gradient(180deg, #fffbea, #fff 120px); }
.card.destacado h2 .ic { color: #b07d00; }
.res-cols { grid-template-columns: minmax(0, 1fr) 320px; }
.rlist { display: grid; gap: 12px; }
.rcard {
  display: flex; gap: 14px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; position: relative;
}
.rcard.r-pendiente { border-color: #ffe07a; background: #fffdf3; }
.rcard.r-cancelada, .rcard.r-no_asistio { opacity: .6; }
.rcard.r-atendida { background: #f6fcf8; }
.rcard.tarde { border-color: #f6b3be; }
.rcard-hora {
  flex: none; width: 66px; border-radius: 12px; background: var(--grape-900); color: var(--yellow); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 8px 0; align-self: flex-start;
}
.rcard-hora b { font-size: 19px; font-weight: 900; }
.rcard-hora span { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .7); }
.rcard.tarde .rcard-hora { background: var(--red); color: #fff; }
.rcard-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rcard-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rcard-nombre { font-size: 16px; font-weight: 900; margin-right: 2px; }
.rcard .nota { color: var(--grape-700); font-style: italic; }
.rcard .row-actions { justify-content: flex-start; margin-top: 6px; }
.cupo { display: grid; gap: 6px; margin-bottom: 12px; }
.cupo-row { display: grid; grid-template-columns: 48px 1fr 66px; gap: 8px; align-items: center; font-weight: 800; font-size: 13px; }
.cupo-row .bar { margin: 0; }
.cupo-row small { color: var(--muted); font-weight: 800; text-align: right; }
.cupo-row.lleno small { color: var(--red); }
.cupo-row.lleno .bar i { background: var(--red); }
.side-cupo { position: sticky; top: 18px; }

/* ---------- por volver ---------- */
.intro { display: flex; gap: 14px; background: linear-gradient(135deg, #fff, var(--purple-ll)); }
.intro h2 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.intro h2 .ic { color: var(--purple); }
.chips-res { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips-res .tag { font-size: 13px; padding: 5px 11px; }
.vlist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.vcliente { border-left: 6px solid var(--teal); display: grid; gap: 10px; }
.vcliente.prio-b-alta { border-left-color: var(--red); }
.vcliente.prio-b-media { border-left-color: var(--yellow); }
.vc-top { display: flex; gap: 12px; align-items: flex-start; }
.vc-top .grow { flex: 1; min-width: 0; }
.vc-nombre { font-size: 17px; font-weight: 900; margin-right: 4px; }
.vc-dias { text-align: center; background: var(--grape-900); color: var(--yellow); border-radius: 14px; padding: 8px 12px; flex: none; }
.vc-dias b { display: block; font-size: 24px; font-weight: 900; line-height: 1; }
.vc-dias span { font-size: 10.5px; font-weight: 800; color: rgba(255, 255, 255, .75); }
.vc-datos { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.vc-datos b { color: var(--grape-900); }
.vcliente .row-actions { justify-content: flex-start; }

/* ---------- clientes ---------- */
.card > .toolbar:has(#nuevoCliente) { grid-template-columns: 1.4fr 1fr auto; }
.sellos { color: var(--yellow-d); letter-spacing: 1px; font-size: 11px; white-space: nowrap; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.mini-stat { background: var(--purple-ll); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.mini-stat b { display: block; font-size: 18px; font-weight: 900; color: var(--grape-900); }
.mini-stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ficha-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 4px; }
.ficha-cols h4 { margin: 14px 0 4px; font-size: 14px; font-weight: 900; color: var(--purple); text-transform: uppercase; letter-spacing: .06em; }
.ficha-cols .list-row { padding: 8px 0; gap: 8px; }

/* ---------- inventario y gastos ---------- */
.inv { display: grid; gap: 10px; }
.inv-item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.inv-item .grow { flex: 1; min-width: 220px; }
.inv-item .bar { margin: 8px 0 6px; max-width: 360px; }
.inv-item.bajo { border-color: #f6b3be; background: #fff8f9; }
.inv-item.bajo .bar i { background: var(--red); }
.total-grande { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.total-grande b { font-size: 26px; font-weight: 900; color: var(--purple); }
.side-gasto { border-top: 5px solid var(--yellow); position: sticky; top: 18px; }
.side-gasto h3 { margin-top: 0; }

/* ---------- reportes ---------- */
.utilidad {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, var(--grape-900), var(--purple-d)); box-shadow: 0 12px 30px rgba(67, 16, 138, .25);
}
.utilidad div { display: grid; }
.utilidad span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.utilidad b { font-size: 22px; font-weight: 900; }
.utilidad i { font-style: normal; font-size: 22px; font-weight: 900; opacity: .6; }
.utilidad .ganancia { margin-left: auto; background: var(--yellow); color: var(--grape-900); padding: 8px 16px; border-radius: 14px; }
.utilidad .ganancia b { font-size: 28px; }
.utilidad.neg .ganancia { background: var(--red); color: #fff; }

/* ---------- configuración ---------- */
.config-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.config-grid > .span2 { grid-column: 1 / -1; }
.config-grid h3 { display: flex; align-items: center; gap: 8px; }
.config-grid h3 .ic { color: var(--purple); }
.horario { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.hor-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; background: var(--purple-ll); padding: 6px 10px; border-radius: 12px; }
.hor-row .check { margin: 0; }
.hor-row .input { min-height: 40px; padding: 6px 8px; }
.hor-row:has(input[type=checkbox]:not(:checked)) .input { opacity: .4; }
.chip-x button { border: 0; background: transparent; color: var(--red); font-weight: 900; font-size: 16px; cursor: pointer; padding: 0 0 0 4px; line-height: 1; }
.aviso-hora { display: flex; gap: 8px; align-items: center; background: var(--yellow-l); padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.addr a { color: var(--yellow); }

/* hoja "Más" */
.sheet-user { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; }
.sheet-item { position: relative; font-size: 15px; }
.sheet-item .nav-badge { position: absolute; top: 10px; left: 44px; background: var(--red); color: #fff; height: 20px; min-width: 20px; font-size: 11px; }
button.sheet-item { border: 0; background: transparent; width: 100%; cursor: pointer; font: inherit; font-weight: 800; }
.sheet-salir { color: var(--red) !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; margin-top: 6px; }
.sheet-salir .ic { background: var(--red-l) !important; color: var(--red) !important; }

@media (max-width: 1280px) {
  .res-cols { grid-template-columns: minmax(0, 1fr); }
  .side-cupo, .side-gasto { position: static; }
  .two-col > .side-gasto { order: -1; }
}
@media (max-width: 900px) {
  .mh-bell { display: flex; position: relative; margin-left: auto; margin-right: 14px; color: #fff; }
  .mh-bell .ic { width: 26px; height: 26px; }
  .mh-bell b { display: none; position: absolute; top: -6px; right: -9px; background: var(--yellow); color: var(--grape-900); font-size: 11px; font-weight: 900; border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center; }
  .mh-bell b.show { display: inline-flex; }
  .form-2, .form-3 { grid-template-columns: minmax(0, 1fr); }
  .ficha-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card > .toolbar:has(#nuevoCliente) { grid-template-columns: 1fr; }
  .fecha-nav { width: 100%; }
  .fecha-nav .input { flex: 1; }
  .card-head.wrap > .seg { grid-template-columns: 1fr 1fr; }
  .card-head.wrap > .btn { width: 100%; }
  .rcard { padding: 12px; gap: 10px; }
  .rcard-hora { width: 56px; }
  .rcard .row-actions .btn { flex: 1 1 auto; min-height: 40px; }
  .utilidad { padding: 16px; }
  .utilidad i { display: none; }
  .utilidad > div { flex: 1 1 40%; }
  .utilidad .ganancia { flex-basis: 100%; margin: 0; }
  .hor-row { grid-template-columns: 104px minmax(0, 1fr) auto minmax(0, 1fr); padding: 6px; }
  .vc-datos { gap: 4px 12px; }
  .vcliente .row-actions .btn { flex: 1 1 auto; }
  .login-logo { margin-top: -70px; }
  .stats > a.stat:nth-child(n) { min-width: 0; }
  /* Tabla de clientes como tarjetas */
  .tabla-clientes thead { display: none; }
  .table-wrap:has(.tabla-clientes) { border: 0; }
  .tabla-clientes, .tabla-clientes tbody { display: block; }
  .tabla-clientes tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line);
    grid-template-areas: "cli vis" "veh gas" "ult prox";
  }
  .tabla-clientes td { padding: 0; border: 0; }
  .tabla-clientes td:nth-child(1) { grid-area: cli; }
  .tabla-clientes td:nth-child(2) { grid-area: veh; color: var(--muted); }
  .tabla-clientes td:nth-child(3) { grid-area: vis; text-align: right; }
  .tabla-clientes td:nth-child(4) { grid-area: gas; text-align: right; font-weight: 800; }
  .tabla-clientes td:nth-child(5) { grid-area: ult; }
  .tabla-clientes td:nth-child(5)::before { content: 'Última: '; color: var(--muted); }
  .tabla-clientes td:nth-child(6) { grid-area: prox; text-align: right; }
  .tabla-clientes td:nth-child(6)::before { content: 'Próxima: '; color: var(--muted); }
  .tabla-clientes td:nth-child(7) { display: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 1280px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col > .side-form { display: none; }
  .counter { min-width: 0; }
}

/* ---------- celulares ---------- */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .sidebar { display: none; }
  .main { padding: 0 14px calc(96px + env(safe-area-inset-bottom)); }
  .mobile-header {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30;
    margin: 0 -14px 14px; padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
    background: linear-gradient(120deg, var(--grape-900), var(--grape-800) 60%, var(--purple));
    box-shadow: 0 6px 20px rgba(29, 8, 64, .25);
  }
  .mh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .mh-brand img { height: 42px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
  .mh-brand .brand-sub { font-size: 10px; letter-spacing: .3em; margin: 0; }
  .topbar { gap: 10px; margin-bottom: 14px; }
  .page-title { font-size: 23px; }
  .clock { font-size: 12.5px; }
  .counters { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .counter { flex-direction: column; text-align: center; padding: 10px 4px; gap: 6px; border-radius: 14px; }
  .counter .ic { width: 30px; height: 30px; padding: 7px; }
  .counter b { font-size: 19px; }
  .counter span:not(.ic) { font-size: 11px; }
  .card { padding: 16px; border-radius: 16px; }
  .card h2 { font-size: 19px; }
  .toolbar, .actions-row { grid-template-columns: 1fr; }
  .actions-row { display: none; } /* en celular se usa la barra inferior */
  .hero { padding: 22px 20px; }
  .hero-money { font-size: 38px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat .val { font-size: 24px; }
  .stat-ic { width: 40px; height: 40px; border-radius: 12px; }
  .toasts { left: 14px; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .modal-bg:not(.sheet-bg) { align-items: flex-end; padding: 0; }
  .modal-bg:not(.sheet-bg) .modal { border-radius: 24px 24px 0 0; max-width: none; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .modal .btns .btn { flex: 1; }
  input[type=date].input { width: 100%; min-width: 0; }
  .fechas { width: 100%; }
  .fechas .input { flex: 1; }
  .seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .seg button { padding: 9px 4px; font-size: 13px; }
  .tabla-asig thead { display: none; }
  .table-wrap:has(.tabla-asig) { border: 0; }
  .tabla-asig, .tabla-asig tbody { display: block; }
  .tabla-asig tr {
    display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 14px 0; border-bottom: 1px solid var(--line);
    grid-template-areas: "placa estado" "svc svc" "sel sel";
  }
  .tabla-asig td { border: 0; padding: 0; }
  .tabla-asig td:nth-child(1) { grid-area: estado; }
  .tabla-asig td:nth-child(2) { grid-area: placa; }
  .tabla-asig td:nth-child(3) { grid-area: svc; color: var(--muted); font-weight: 700; }
  .tabla-asig td:nth-child(4) { grid-area: sel; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(45, 10, 94, .08);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none;
    color: #9a8fb0; font-size: 11px; font-weight: 800;
  }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--purple); }
  .tab-main { position: relative; }
  .tab-plus {
    width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffd84d, var(--yellow)); color: var(--grape-900);
    box-shadow: 0 8px 20px rgba(255, 196, 0, .45), 0 0 0 5px #fff;
  }
  .tabbar a.tab-main .tab-plus .ic { width: 26px; height: 26px; }
  .tabbar a.tab-main.active { color: var(--grape-900); }
}

@media (max-width: 700px) {
  /* En celular cada vehículo se ve como una tarjeta */
  .tabla-lavados thead { display: none; }
  .table-wrap:has(.tabla-lavados) { border: 0; }
  .tabla-lavados, .tabla-lavados tbody, .tabla-lavados tr { display: block; }
  .tabla-lavados tr {
    display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px; margin-bottom: 12px;
    grid-template-areas: "placa estado" "veh veh" "svc lav" "acc acc";
    border-radius: 18px; background: #fff; box-shadow: var(--shadow); align-items: center;
  }
  .tabla-lavados tr:hover { background: #fff; }
  .tabla-lavados td { border: 0; padding: 0; min-width: 0; }
  .tabla-lavados td:nth-child(1) { grid-area: estado; text-align: right; }
  .tabla-lavados td:nth-child(2) { grid-area: placa; }
  .tabla-lavados td:nth-child(3) { grid-area: veh; color: var(--muted); }
  .tabla-lavados td:nth-child(4) { grid-area: svc; }
  .tabla-lavados td:nth-child(5) { grid-area: lav; }
  .tabla-lavados td:nth-child(6) { grid-area: acc; margin-top: 4px; }
  .tabla-lavados td:nth-child(6):empty, .tabla-lavados td:nth-child(6):has(.row-actions:empty) { display: none; }
  .lista-card { background: transparent; box-shadow: none; padding: 0; }
  .lista-card > h2 { display: none; }
  .tabla-lavados .row-actions .btn { min-height: 44px; flex: 1; font-size: 14px; }
  .placa-cell b { font-size: 16px; }
}

@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; }
  input, textarea, select { -webkit-user-select: text; user-select: text; }
}

@media print {
  .sidebar, .topbar, .mobile-header, .tabbar, .no-print { display: none !important; }
  .main { padding: 0; }
  .card, .stat { box-shadow: none; border: 1px solid var(--line); }
}
