:root{
  --sk-primary:#C2171F;
  --sk-primary-700:#9f1117;
  --sk-text:#171113;

  --sk-bg:#f3f4f6;
  --sk-surface:#ffffff;

  --sk-border: rgba(17, 17, 17, .12);
  --sk-muted: rgba(17, 17, 17, .60);

  --radius:16px;
  --radius-sm:12px;

  --shadow-sm: 0 6px 16px rgba(0,0,0,.08);
  --shadow:    0 14px 30px rgba(0,0,0,.10);

  --ring: 0 0 0 4px rgba(194, 23, 31, .14);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--sk-text);
  overflow-x:hidden;

  /* modern soft background */
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(194,23,31,.12), transparent 60%),
    radial-gradient(900px 520px at 82% 8%, rgba(0,0,0,.05), transparent 55%),
    linear-gradient(180deg, #f8fafc, var(--sk-bg));
}

img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

/* page spacing */
.page{
  padding: 26px 0 44px;
}

/* header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--sk-border);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
  text-decoration:none;
  color:inherit;
}

.brand__logo{
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--sk-border);
  box-shadow: var(--shadow-sm);
  background:#fff;
}

.brand__text{ min-width:0; }
.brand__name{
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;
  font-size: 16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand__sub{
  font-size:12px;
  color:var(--sk-muted);
  margin-top:2px;
}

.header__right{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 1;
  justify-content:flex-end;
  min-width: 240px;
}

/* nav */
.nav{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nav::-webkit-scrollbar{ display:none; }

.nav__link{
  text-decoration:none;
  color:rgba(17,17,17,.78);
  padding:9px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:650;
  font-size: 13px;
  white-space:nowrap;
}
.nav__link:hover{
  background: rgba(194,23,31,.08);
  border-color: rgba(194,23,31,.18);
  color: var(--sk-primary);
}
.nav__link--active{
  background: rgba(194,23,31,.12);
  border-color: rgba(194,23,31,.22);
  color: var(--sk-primary);
}

/* lang toggle */
.lang{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:999px;
  background: rgba(0,0,0,.04);
  border:1px solid var(--sk-border);
}
.lang__btn{
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  color: rgba(17,17,17,.72);
}
.lang__btn:hover{
  background: rgba(0,0,0,.06);
}
.lang__btn.is-active{
  background: #fff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow-sm);
  color: var(--sk-primary);
}

/* cards */
.card{
  background: var(--sk-surface);
  border:1px solid var(--sk-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--tight{ padding: 14px; }

.h1{
  margin:0 0 10px;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: .2px;
}
.h2{
  margin:0 0 10px;
  font-size: 18px;
  letter-spacing: .2px;
}
.muted{
  margin:0 0 14px;
  color: var(--sk-muted);
  line-height:1.45;
}

/* alerts */
.alert{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--sk-border);
  background: rgba(255,255,255,.7);
  margin: 12px 0;
}
.alert--success{
  border-color: rgba(25,135,84,.25);
  background: rgba(25,135,84,.10);
  color: rgba(9,63,38,1);
}
.alert--error{
  border-color: rgba(220,53,69,.25);
  background: rgba(220,53,69,.10);
  color: rgba(93,18,28,1);
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  line-height:1;
  font-size: 13px;
}

.btn-primary{
  background: linear-gradient(180deg, var(--sk-primary), var(--sk-primary-700));
  color:#fff;
  box-shadow: 0 12px 20px rgba(194,23,31,.18);
}
.btn-primary:hover{ filter: brightness(1.02); transform: translateY(-1px); }

.btn-ghost{
  background: rgba(0,0,0,.03);
  border-color: var(--sk-border);
  color: rgba(17,17,17,.80);
}
.btn-ghost:hover{ background: rgba(0,0,0,.06); }

.btn-danger{
  background: rgba(194,23,31,.10);
  border-color: rgba(194,23,31,.25);
  color: var(--sk-primary);
}
.btn-danger:hover{ background: rgba(194,23,31,.14); }

.btn:focus{ outline:none; box-shadow: var(--ring); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }

/* forms */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.label{
  font-size:12px;
  color: rgba(17,17,17,.70);
  font-weight:800;
  text-transform: lowercase;
  letter-spacing:.2px;
}
.input, select.input, textarea.input{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.14);
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
  transition: box-shadow .12s ease, border-color .12s ease;
}
textarea.input{ min-height: 92px; resize: vertical; }
.input:focus{
  outline:none;
  border-color: rgba(194,23,31,.45);
  box-shadow: var(--ring);
}

.form-row{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }

/* simple grid for pills / cards */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.pill{
  border:1px solid var(--sk-border);
  border-radius:999px;
  padding: 10px 12px;
  background: rgba(255,255,255,.78);
  font-size:13px;
  font-weight: 750;
  color: rgba(17,17,17,.75);
}

/* table */
.table-wrap{
  overflow:auto;
  border-radius: var(--radius);
  border:1px solid var(--sk-border);
}
.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px; /* keeps structure on desktop; scroll on mobile */
  background:#fff;
}
.table th, .table td{
  padding: 12px 12px;
  text-align:left;
  border-bottom: 1px solid rgba(0,0,0,.08);
  vertical-align: middle;
  font-size: 13px;
}
.table th{
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing:.2px;
  color: rgba(17,17,17,.62);
  background: rgba(0,0,0,.03);
}
.table tr:hover td{ background: rgba(194,23,31,.035); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  border: 1px solid var(--sk-border);
}
.badge--active{ background: rgba(25,135,84,.10); border-color: rgba(25,135,84,.25); color: rgba(9,63,38,1); }
.badge--disabled{ background: rgba(220,53,69,.10); border-color: rgba(220,53,69,.25); color: rgba(93,18,28,1); }

/* make inline edit inputs look nice in tables */
.table .input{
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.table .btn{
  padding: 9px 12px;
  font-size: 12px;
}

/* footer */
.footer{
  border-top:1px solid var(--sk-border);
  background: rgba(255,255,255,.86);
}
.footer__inner{
  padding: 14px 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(17,17,17,.68);
  font-size: 13px;
}
.footer__dot{ color: rgba(17,17,17,.40); }

/* responsive */
@media (max-width: 860px){
  .header__right{ justify-content:flex-start; }
}

@media (max-width: 620px){
  .page{ padding: 18px 0 34px; }
  .card{ padding: 14px; border-radius: 14px; }
  .form-row{ grid-template-columns: 1fr; }
  .col-4,.col-6,.col-8,.col-12{ grid-column: span 12; }
}

/* ===== NUEVOS ESTILOS INTEGRADOS ===== */
.section-head{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}

.sub-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.card-block{
  padding:16px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

@media (max-width: 820px){
  .grid-2,
  .grid-3{
    grid-template-columns:1fr;
  }
}

.inline{
  display:flex;
  gap:10px;
  align-items:center;
}

.items{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.item-row{
  display:grid;
  grid-template-columns:140px 1fr 120px;
  gap:12px;
  align-items:end;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}

.item-desc input{
  width:100%;
}

.item-actions{
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 820px){
  .item-row{
    grid-template-columns:1fr;
  }
  .item-actions{
    justify-content:flex-start;
  }
}

.notice{
  padding:12px;
  border-radius:12px;
}

.notice--warn{
  background:rgba(255,165,0,.12);
  border:1px solid rgba(255,165,0,.25);
}

/* ===== vehicles cards ===== */
.card-block{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--sk-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.card-title{
  margin:0 0 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing:.2px;
}

.card-sub{
  margin:0;
  color: var(--sk-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* vehicles grid */
.vgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .vgrid {
    max-width: 1000px;
  }
}

.vcol{
  grid-column: span 6;
}
@media (max-width: 980px){
  .vcol{ grid-column: span 12; }
}

.vcard{
  border:1px solid var(--sk-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}

.vcard__top{
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.vname{
  font-weight: 900;
  font-size: 16px;
  margin:0;
}
.vmeta{
  margin:6px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color: rgba(17,17,17,.70);
  font-size: 13px;
}
.vmeta span{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}

.vcard__body{
  padding: 0 14px 14px;
}

.vdivider{
  height:1px;
  background: rgba(0,0,0,.07);
  margin: 10px 0 14px;
}

.vform{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  align-items:end;
}
@media (max-width: 620px){
  .vform{ grid-template-columns: 1fr; }
}

.vactions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-small{
  padding: 9px 12px;
  font-size: 12px;
}

/* make links look like buttons when needed */
a.btn{ display:inline-flex; }

/* ===== Auth / Login ===== */
.auth{
  min-height: calc(100vh - 140px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}

.auth-card{
  width:100%;
  max-width:520px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);
  padding:20px;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.auth-logo{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}

.auth-title h1{
  font-size:22px;
  line-height:1.2;
  margin:0;
}

.auth-title p{
  margin:4px 0 0;
  color:rgba(0,0,0,.60);
  font-size:14px;
}

.auth-form{
  margin-top:10px;
}

.field{
  margin:12px 0;
}

.field label{
  display:block;
  font-size:13px;
  color:rgba(0,0,0,.65);
  margin-bottom:6px;
}

.field input{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  padding:10px 12px;
  outline:none;
  background:#fff;
}

.field input:focus{
  border-color: rgba(170,0,0,.35);
  box-shadow:0 0 0 4px rgba(170,0,0,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:600;
}

.btn-block{ width:100%; height:44px; }

.btn-primary{
  background:#b10f16;
  color:#fff;
}

.btn-primary:hover{ filter:brightness(.96); }

.auth-foot{
  display:flex;
  justify-content:center;
  margin-top:10px;
  font-size:13px;
  color:rgba(0,0,0,.60);
}

/* Alerts */
.alert{
  padding:10px 12px;
  border-radius:12px;
  margin:10px 0;
  border:1px solid rgba(0,0,0,.08);
}

.alert-danger{
  background:#fff2f2;
  border-color:#ffd1d1;
  color:#7a0b0b;
}

/* ===== Workers: compact cards with collapsible details ===== */
.vcard__body.is-collapsed{
  display:none;
}

.vcard__top--compact{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.vtop-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.vcard--compact .vcard__top{
  padding-bottom:6px;
}

.vtoggle{
  white-space:nowrap;
}

.vactions-row{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.reset-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.reset-form .input{
  max-width:220px;
}

/* Mobile: keep it clean */
@media (max-width:640px){
  .vtop-right{
    width:100%;
    justify-content:space-between;
  }
  .reset-form .input{
    max-width:none;
    width:100%;
  }
  .reset-form{
    width:100%;
  }
}

.worker-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.worker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.worker-body {
  margin-top: 12px;
}

/* --- Added: hero / cards helpers / tables --- */
.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.hero{
  margin-bottom: 14px;
}
.hero__inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.hero__actions{ display:flex; gap:10px; }

.card__header{ margin-bottom: 10px; }
.card__title{ font-weight:900; letter-spacing:.2px; }
.card__sub{ font-size:12px; color:var(--sk-muted); margin-top:3px; }
.card__body{ margin-top: 8px; }

.link-card{
  text-decoration:none;
  color:inherit;
  transition: transform .08s ease, box-shadow .08s ease;
}
.link-card:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.link-card--danger{ border-color: rgba(194,23,31,.25); }

.stack{ display:flex; flex-direction:column; gap:12px; }
.actions{ display:flex; gap:10px; justify-content:flex-end; }

.chk{ display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.chk input{ width:18px; height:18px; }

.alert-success{
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.25);
  color: #064e3b;
}

.empty{ padding: 10px 2px; }
.empty__title{ font-weight:900; margin-bottom:6px; }

.btn[disabled]{
  opacity:.6;
  cursor:not-allowed;
  filter: grayscale(.2);
}
.picklist{
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:10px;
  background:#fff;
  max-height:220px;
  overflow:auto;
}

.pick{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
}

.pick:hover{
  background:#f7f7f7;
}

.pick input[type="checkbox"]{
  width:18px;
  height:18px;
}

/* ===========================================================
   FIX SOLO MÓVIL (mantiene PC igual, evita superposición header)
   =========================================================== */
@media screen and (max-width: 768px) {

  /* Forzamos stack limpio */
  .header__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Brand arriba */
  .brand{
    width: 100%;
    min-width: 0;
    justify-content: flex-start; /* si la querés centrada: center */
  }

  /* El bloque derecho se apila */
  .header__right{
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Nav en scroll horizontal para que nunca choque */
  .nav{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0;
    border-top: 1px solid var(--sk-border);
    border-bottom: 1px solid var(--sk-border);
  }

  /* Acciones: idioma + botón/logout lado a lado sin montarse */
  .header__actions{
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .lang{
    flex: 0 0 auto;
  }

  /* El botón (logout, etc.) que vaya al final si hace falta */
  .header__actions .btn{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* móviles muy pequeños: todo en columnas para 0 choques */
@media screen and (max-width: 480px) {
  .header__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .lang{
    width: 100%;
    justify-content: center;
  }
  .lang__btn{
    flex: 1;
    text-align: center;
  }
  .header__actions .btn{
    width: 100%;
    justify-content: center;
  }
}
/* TABLE HEADERS: do not force lowercase */
.table thead th {
  text-transform: none !important;
  letter-spacing: normal;
}
/* BADGES: remove pill shape */
.badge {
  border-radius: 8px !important;
  padding: 4px 10px !important;
}
/* MOBILE: table -> compact cards + actions grid */
@media (max-width: 820px) {

  .table-wrap { overflow: visible; border: 0; }

  /* important: remove desktop min-width on mobile */
  .table{
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
  }

  .table thead{ display:none; }

  .table tbody tr{
    display:block;
    width:100%;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
  }

  /* Each field becomes a compact “row” inside the card */
  .table tbody td{
    display:block;
    width:100%;
    padding: 10px 0;
    border: 0 !important;
    text-align:left !important;
    white-space: normal !important;
  }

  .table tbody td + td{
    border-top: 1px solid rgba(0,0,0,.06) !important;
  }

  .table tbody td::before{
    content: attr(data-label);
    display:block;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .2px;
    color: rgba(17,17,17,.55);
    margin-bottom: 4px;
  }

  /* badges smaller and cleaner in mobile */
  .table tbody td .badge{
    border-radius: 10px !important;
    padding: 4px 10px !important;
    font-size: 12px;
  }

  /* -------------------------
     Actions: 2-column grid
     ------------------------- */
  .table tbody td[data-label="Actions"]{
    padding-top: 12px;
  }

  /* Remove the big pill look on buttons in mobile */
  .table tbody td[data-label="Actions"] .btn{
    border-radius: 12px !important;
    padding: 12px 12px !important;
    width: 100% !important;
  }

  /* Turn forms into a grid */
  .table tbody td[data-label="Actions"]{
    display:block;
  }

  /* Wrap actions content as grid */
  .table tbody td[data-label="Actions"] > a.btn,
  .table tbody td[data-label="Actions"] > form{
    display:block !important;
    margin: 0 !important;
  }

  /* Make all actions stack into a grid using a helper wrapper */
  .wo-actions{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .wo-actions .wo-span-2{
    grid-column: 1 / -1;
  }

  /* Input takes full width */
  .wo-actions input[type="email"]{
    width: 100% !important;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }

  /* For very small phones: single column */
  @media (max-width: 420px){
    .wo-actions{
      grid-template-columns: 1fr;
    }
  }
}
/* ============================================================
   Work Order Visual Guide (ONLY Work Order pages)
   Requires: <section class="card wo-page">
   ============================================================ */
.wo-page{
  --wo-red:#C2171F;
  --wo-ink:rgba(17,17,17,.92);
  --wo-muted:rgba(17,17,17,.68);
  --wo-border:rgba(0,0,0,.10);

  --wo-veh-bg:rgba(59,130,246,.10);  --wo-veh-line:rgba(59,130,246,.55);
  --wo-people-bg:rgba(249,115,22,.12); --wo-people-line:rgba(249,115,22,.62);
  --wo-cus-bg:rgba(16,185,129,.10);  --wo-cus-line:rgba(16,185,129,.60);
  --wo-loc-bg:rgba(168,85,247,.10);  --wo-loc-line:rgba(168,85,247,.55);
  --wo-pay-bg:rgba(14,165,233,.10);  --wo-pay-line:rgba(14,165,233,.58);
  --wo-notes-bg:rgba(234,179,8,.14); --wo-notes-line:rgba(234,179,8,.60);
  --wo-items-bg:rgba(100,116,139,.12);--wo-items-line:rgba(100,116,139,.60);
}

/* Bigger, clearer inputs for older users */
.wo-page input[type="text"],
.wo-page input[type="email"],
.wo-page input[type="number"],
.wo-page select,
.wo-page textarea{
  min-height:48px;
  font-size:16px;
  color:var(--wo-ink);
}
.wo-page textarea{ min-height:84px; }

.wo-page .field label{
  font-weight:900;
  font-size:14px;
  color:var(--wo-ink);
}

.wo-page .wo-help{
  margin-top:6px;
  font-size:12px;
  color:var(--wo-muted);
}

.wo-page .wo-star{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:6px;
  border-radius:999px;
  background:rgba(194,23,31,.10);
  color:var(--wo-red);
  font-weight:900;
  font-size:12px;
  line-height:1;
  vertical-align:middle;
}

/* Required fields pop */
.wo-page input[required],
.wo-page select[required],
.wo-page textarea[required]{
  border-left:6px solid rgba(194,23,31,.55);
  background:rgba(194,23,31,.03);
}

.wo-page input:focus,
.wo-page select:focus,
.wo-page textarea:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(194,23,31,.18);
  border-color:rgba(194,23,31,.35);
}

/* Sections */
.wo-page .wo-section{
  border:1px solid var(--wo-border);
  border-radius:16px;
  padding:14px;
  background:#fff;
  margin:14px 0;
}
.wo-page .wo-head{
  padding:10px 12px;
  border-radius:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.wo-page .wo-title{
  font-weight:900;
  font-size:18px;
  color:var(--wo-ink);
}
.wo-page .wo-hint{
  font-size:12px;
  color:var(--wo-muted);
  padding-top:3px;
}
.wo-page .wo-body{ padding:12px 4px 2px; }

/* Colors per section */
.wo-page .wo-veh   .wo-head{ background:var(--wo-veh-bg);   border-left:6px solid var(--wo-veh-line); }
.wo-page .wo-people .wo-head{ background:var(--wo-people-bg);border-left:6px solid var(--wo-people-line); }
.wo-page .wo-cus   .wo-head{ background:var(--wo-cus-bg);   border-left:6px solid var(--wo-cus-line); }
.wo-page .wo-loc   .wo-head{ background:var(--wo-loc-bg);   border-left:6px solid var(--wo-loc-line); }
.wo-page .wo-pay   .wo-head{ background:var(--wo-pay-bg);   border-left:6px solid var(--wo-pay-line); }
.wo-page .wo-notes .wo-head{ background:var(--wo-notes-bg); border-left:6px solid var(--wo-notes-line); }
.wo-page .wo-items .wo-head{ background:var(--wo-items-bg); border-left:6px solid var(--wo-items-line); }

/* Picklist nicer touch targets */
.wo-page .picklist .pick{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
}
.wo-page .picklist .pick input{ transform:scale(1.15); }
