:root{
  --cvd-ui-bg:#f4f1eb;
  --cvd-ui-surface:#fffdf9;
  --cvd-ui-surface-2:#f8f6f1;
  --cvd-ui-ink:#18342f;
  --cvd-ui-muted:#6f7b77;
  --cvd-ui-green:#123f3a;
  --cvd-ui-green-2:#1b5851;
  --cvd-ui-line:rgba(24,52,47,.10);
  --cvd-ui-shadow:0 16px 45px rgba(24,52,47,.08);
  --cvd-ui-shadow-soft:0 8px 24px rgba(24,52,47,.055);
}

html,body{max-width:100%;overflow-x:hidden}
body:has(.cvd-messenger-center.cvd-p03){background:var(--cvd-ui-bg)}
.cvd-messenger-center.cvd-p03{
  box-sizing:border-box;
  color:var(--cvd-ui-ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  margin:0 auto!important;
  max-width:1080px!important;
  padding:30px 24px 110px!important;
  width:min(100% - 32px,1080px)!important;
}
.cvd-messenger-center.cvd-p03 *{box-sizing:border-box;min-width:0}
.cvd-p03 .cvd-operational-assistant.is-collapsed:not(.is-open){display:none!important}

/* Cabecera */
.cvd-p03 .cvd-messenger-head{
  align-items:flex-end!important;
  display:flex!important;
  gap:20px!important;
  justify-content:space-between!important;
  margin:6px 0 22px!important;
  padding:0 4px;
}
.cvd-p03 .cvd-messenger-head h1{
  font-size:clamp(30px,4vw,44px)!important;
  font-weight:800!important;
  letter-spacing:-.045em!important;
  line-height:1!important;
  margin:4px 0 8px!important;
}
.cvd-p03 .cvd-messenger-head p{margin:0!important}
.cvd-p03 .cvd-kicker{font-size:11px!important;letter-spacing:.16em!important}

/* Tarjetas y superficies */
.cvd-p03 .cvd-panel,
.cvd-p03 .cvd-messenger-today,
.cvd-p03 .cvd-contact-list article,
.cvd-p03 [data-route-stop],
.cvd-p03 .cvd-voucher-card{
  background:var(--cvd-ui-surface)!important;
  border:1px solid var(--cvd-ui-line)!important;
  border-radius:24px!important;
  box-shadow:var(--cvd-ui-shadow-soft)!important;
}
.cvd-p03 .cvd-panel,.cvd-p03 .cvd-messenger-today{
  margin-bottom:18px!important;
  padding:22px!important;
}
.cvd-p03 .cvd-messenger-section-head{margin-bottom:16px!important}
.cvd-p03 .cvd-messenger-section-head h2{
  font-size:clamp(20px,2vw,25px)!important;
  font-weight:780!important;
  letter-spacing:-.025em!important;
}
.cvd-p03 .cvd-messenger-section-head>div>p:last-child{font-size:13px!important;max-width:650px}

/* CTA superior */
.cvd-p03 .cvd-messenger-launchpad{
  gap:10px!important;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)!important;
  margin:0 0 18px!important;
}
.cvd-p03 .cvd-messenger-launchpad a{
  border-radius:16px!important;
  min-height:56px!important;
  padding:12px 18px!important;
}
.cvd-p03 .cvd-upload-voucher{
  background:var(--cvd-ui-green)!important;
  box-shadow:0 10px 24px rgba(18,63,58,.16)!important;
  font-size:15px!important;
}

/* Botones */
.cvd-p03 .cvd-primary,.cvd-p03 .cvd-secondary,
.cvd-p03 button,.cvd-p03 input[type=submit]{
  border-radius:14px!important;
  font-weight:760!important;
  letter-spacing:-.01em;
}
.cvd-p03 .cvd-primary{background:var(--cvd-ui-green)!important}
.cvd-p03 .cvd-primary:hover{background:var(--cvd-ui-green-2)!important}
.cvd-p03 .cvd-secondary{background:#fff!important;border:1px solid var(--cvd-ui-line)!important;box-shadow:none!important}

/* Siguiente tarea */
.cvd-p03 .cvd-next-task{
  background:linear-gradient(135deg,#edf3ef,#f6f4ed)!important;
  border:1px solid rgba(18,63,58,.08)!important;
  border-radius:20px!important;
  padding:17px 18px!important;
}
.cvd-p03 .cvd-next-task strong{font-size:18px!important}

/* Resumen */
.cvd-p03 .cvd-messenger-today-stats{gap:10px!important}
.cvd-p03 .cvd-messenger-today-stats article{
  background:var(--cvd-ui-surface-2)!important;
  border:0!important;
  border-radius:18px!important;
  padding:15px!important;
}
.cvd-p03 .cvd-messenger-today-stats strong{font-size:25px!important;letter-spacing:-.03em}

/* Contactos */
.cvd-p03 .cvd-contact-list{gap:12px!important}
.cvd-p03 .cvd-contact-list article{padding:16px!important}
.cvd-p03 .cvd-contact-list article header strong{font-size:17px!important}
.cvd-p03 .cvd-contact-actions{gap:8px!important}
.cvd-p03 .cvd-contact-outcomes{gap:7px!important;scrollbar-width:none}
.cvd-p03 .cvd-contact-outcomes::-webkit-scrollbar{display:none}
.cvd-p03 .cvd-contact-outcomes button,.cvd-p03 .cvd-contact-outcomes span{
  background:#f6f4ef!important;
  border:0!important;
  border-radius:12px!important;
  min-height:36px!important;
}

/* Preparación */
.cvd-p03 .cvd-preparation-status{gap:10px!important}
.cvd-p03 .cvd-preparation-status p{
  background:var(--cvd-ui-surface-2)!important;
  border-radius:16px!important;
  padding:13px!important;
}
.cvd-p03 .cvd-preparation-manifest li{padding:11px 0!important}

/* Ruta */
.cvd-p03 .cvd-route-list{gap:14px!important}
.cvd-p03 [data-route-stop]{
  opacity:1!important;
  padding:18px!important;
}
.cvd-p03 [data-route-stop]:not(.is-current){background:#f9f7f2!important}
.cvd-p03 [data-route-stop].is-current{
  border:1px solid rgba(18,63,58,.30)!important;
  box-shadow:0 18px 45px rgba(18,63,58,.11)!important;
  position:relative;
}
.cvd-p03 [data-route-stop].is-current:before{
  background:var(--cvd-ui-green);
  border-radius:24px 0 0 24px;
  content:"";
  inset:14px auto 14px 0;
  position:absolute;
  width:4px;
}
.cvd-p03 .cvd-route-position{font-size:10px!important;letter-spacing:.12em!important}
.cvd-p03 .cvd-route-address{font-size:16px!important;line-height:1.5!important}
.cvd-p03 .cvd-route-order button{border-radius:10px!important}
.cvd-p03 .cvd-delivery-money{gap:9px!important}
.cvd-p03 .cvd-delivery-money>div{
  background:var(--cvd-ui-surface-2)!important;
  border-radius:15px!important;
  padding:12px!important;
}
.cvd-p03 .cvd-customer-collectible{
  background:var(--cvd-ui-green)!important;
  border-radius:17px!important;
  box-shadow:0 10px 22px rgba(18,63,58,.13)!important;
}
.cvd-p03 .cvd-customer-collectible strong{font-size:22px!important}
.cvd-p03 .cvd-delivery-note,.cvd-p03 .cvd-messenger-alerts,.cvd-p03 .cvd-preparation-alerts{
  background:#fff4dd!important;
  border-radius:14px!important;
}

/* Asistente */
.cvd-p03 .cvd-assistant-chips{gap:9px!important}
.cvd-p03 .cvd-assistant-chips button{
  background:#eef3ef!important;
  border:1px solid rgba(18,63,58,.06)!important;
  border-radius:14px!important;
  min-height:48px!important;
  padding:11px 12px!important;
}
.cvd-p03 [data-assistant-form] input{
  background:#fff!important;
  border:1px solid rgba(18,63,58,.16)!important;
  border-radius:14px!important;
  box-shadow:none!important;
}

/* Inputs */
.cvd-p03 input,.cvd-p03 textarea,.cvd-p03 select{
  font:inherit!important;
}
.cvd-p03 input:focus,.cvd-p03 textarea:focus,.cvd-p03 select:focus{
  border-color:rgba(18,63,58,.5)!important;
  box-shadow:0 0 0 4px rgba(18,63,58,.08)!important;
  outline:0!important;
}

/* Navegación desktop */
.cvd-p03 .cvd-messenger-nav{
  background:rgba(255,253,249,.92)!important;
  border:1px solid var(--cvd-ui-line)!important;
  border-radius:18px!important;
  box-shadow:var(--cvd-ui-shadow-soft)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.cvd-p03 .cvd-messenger-nav a{
  border-radius:12px!important;
  color:var(--cvd-ui-muted)!important;
}
.cvd-p03 .cvd-messenger-nav a.is-active,.cvd-p03 .cvd-messenger-nav a:hover{
  background:var(--cvd-ui-green)!important;
  color:#fff!important;
}

/* Voucher */
.cvd-p03-voucher .cvd-voucher-app{
  box-sizing:border-box;
  margin:0 auto!important;
  max-width:820px!important;
  padding:24px 20px 90px!important;
  width:min(100% - 32px,820px)!important;
}
.cvd-p03-voucher .cvd-voucher-card{padding:22px!important}
.cvd-p03-voucher #cvd-voucher-text,
.cvd-p03-voucher .cvd-voucher-grid input,
.cvd-p03-voucher .cvd-voucher-grid textarea{
  background:#fff!important;
  border:1px solid rgba(18,63,58,.14)!important;
  border-radius:14px!important;
}

@media(min-width:900px){
  .cvd-messenger-center.cvd-p03{padding-top:42px!important}
  .cvd-p03 .cvd-messenger-nav{margin-bottom:22px!important;padding:7px!important}
  .cvd-p03 .cvd-messenger-nav a{padding:11px 15px!important}
  .cvd-p03 .cvd-route-list{grid-template-columns:1fr!important}
}

@media(max-width:640px){
  body:has(.cvd-messenger-center.cvd-p03){background:#f7f5f0!important;width:100%;max-width:100vw;overflow-x:hidden}
  .cvd-messenger-center.cvd-p03{
    margin:0 auto!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    padding:14px 14px 96px!important;
    width:100%!important;
  }
  .cvd-p03 .cvd-messenger-head{
    align-items:flex-start!important;
    margin:4px 0 18px!important;
    padding:0 2px!important;
  }
  .cvd-p03 .cvd-messenger-head h1{font-size:30px!important}
  .cvd-p03 .cvd-messenger-head>.cvd-secondary{min-height:38px!important;padding:7px 10px!important}
  .cvd-p03 .cvd-messenger-launchpad{grid-template-columns:1fr!important}
  .cvd-p03 .cvd-messenger-launchpad a{width:100%!important}
  .cvd-p03 .cvd-panel,.cvd-p03 .cvd-messenger-today{
    border-radius:20px!important;
    margin-bottom:12px!important;
    padding:16px!important;
  }
  .cvd-p03 .cvd-next-task{display:grid!important;padding:15px!important}
  .cvd-p03 .cvd-next-task .cvd-primary{width:100%!important}
  .cvd-p03 .cvd-messenger-today-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .cvd-p03 .cvd-messenger-today-stats article{padding:11px!important}
  .cvd-p03 .cvd-messenger-today-stats span{font-size:9px!important}
  .cvd-p03 .cvd-messenger-today-stats strong{font-size:20px!important}
  .cvd-p03 .cvd-assistant-chips{grid-template-columns:1fr!important}
  .cvd-p03 .cvd-contact-actions{grid-template-columns:1fr 1fr!important}
  .cvd-p03 .cvd-preparation-status{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .cvd-p03 .cvd-delivery-money{grid-template-columns:1fr 1fr!important}
  .cvd-p03 .cvd-messenger-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .cvd-p03 .cvd-messenger-tools .cvd-secondary{font-size:11px!important;padding:7px 5px!important}
  .cvd-p03 .cvd-messenger-nav{
    background:rgba(255,253,249,.96)!important;
    border:1px solid rgba(24,52,47,.09)!important;
    border-radius:18px 18px 0 0!important;
    bottom:0!important;
    box-shadow:0 -10px 30px rgba(24,52,47,.10)!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    left:0!important;
    margin:0!important;
    padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;
    position:fixed!important;
    right:0!important;
    top:auto!important;
    width:100%!important;
    z-index:90!important;
  }
  .cvd-p03 .cvd-messenger-nav a{
    color:var(--cvd-ui-muted)!important;
    font-size:11px!important;
    min-height:44px!important;
    padding:10px 4px!important;
    text-align:center!important;
  }
  .cvd-p03 .cvd-messenger-nav a.is-active{
    background:#edf3ef!important;
    color:var(--cvd-ui-green)!important;
  }
  .cvd-p03 [data-route-stop]{border-radius:20px!important;padding:16px!important}
  .cvd-p03-voucher .cvd-voucher-app{padding:14px 14px 82px!important;width:100%!important}
  .cvd-p03-voucher .cvd-voucher-grid{grid-template-columns:1fr!important}
  .cvd-p03 p,.cvd-p03 strong,.cvd-p03 small,.cvd-p03 span{overflow-wrap:anywhere}
  .cvd-p03 input,.cvd-p03 textarea,.cvd-p03 select,.cvd-p03 button,.cvd-p03 a{max-width:100%}
}

@media(max-width:390px){
  .cvd-p03 .cvd-messenger-today-stats{grid-template-columns:1fr 1fr 1fr!important}
  .cvd-p03 .cvd-messenger-tools{grid-template-columns:1fr!important}
  .cvd-p03 .cvd-contact-actions{grid-template-columns:1fr!important}
  .cvd-p03 .cvd-delivery-money{grid-template-columns:1fr!important}
  .cvd-p03 .cvd-customer-collectible{grid-column:auto!important}
}
