/* Valen — dashboard unificado v1: misma jerarquía visual para 1 sucursal y Valen Empresa */
#ownerDashboardV1Root[data-odu1-mode="single"]{
  --odu1-brand:#0E7C66;
  --odu1-brand-dk:#0A5D4C;
  --odu1-ink:#12211c;
  --odu1-muted:#5c6d65;
  --odu1-shadow-sm:0 8px 22px rgba(11,54,42,.07);
  --odu1-shadow-md:0 16px 38px rgba(11,54,42,.09);
  --odu1-shadow-lg:0 22px 52px rgba(8,44,34,.16);
  display:flex;
  flex-direction:column;
  gap:28px;
  padding:22px;
  border-radius:32px;
  background:
    radial-gradient(820px 260px at 10% -8%,rgba(14,124,102,.10),transparent 62%),
    linear-gradient(180deg,#eef6f1 0%,#eef2ed 100%);
}

#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head{
  position:relative;
  margin:0!important;
  padding:26px 28px!important;
  border:1px solid rgba(10,64,49,.10)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:var(--odu1-shadow-md)!important;
  overflow:hidden;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--odu1-brand) 0%,#57b79c 100%);
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head .odv1-kicker{
  color:var(--odu1-brand-dk)!important;
  font-size:11px!important;
  font-weight:600!important;
  letter-spacing:.16em!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head h3{
  margin-top:4px!important;
  color:var(--brand-text,#0e1f19)!important;
  font-size:30px!important;
  font-weight:700!important;
  letter-spacing:normal!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head p{
  color:var(--odu1-muted)!important;
  font-size:13px!important;
}

#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-step:first-of-type{
  position:relative;
  margin:0!important;
  padding:26px 28px!important;
  border:1px solid #cfe6db!important;
  border-radius:22px!important;
  background:
    radial-gradient(560px 220px at 92% -12%,rgba(14,124,102,.14),transparent 60%),
    linear-gradient(150deg,#fff 0%,#f2faf6 62%,#eaf6f0 100%)!important;
  box-shadow:var(--odu1-shadow-lg)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-step:first-of-type .odv1-step-head{
  margin-bottom:18px!important;
}
.odu1-section-kicker{
  display:block;
  margin-bottom:7px;
  color:var(--odu1-brand-dk,#0A5D4C);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.16em;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-step:first-of-type .odv1-step-head h4{
  font-size:22px!important;
  font-weight:700!important;
  color:var(--brand-text,#12211c)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-step:first-of-type .odv1-step-head p{
  color:#6b7a73!important;
}

#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card{
  min-height:156px!important;
  padding:20px 22px!important;
  border:1px solid rgba(10,64,49,.10)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.78)!important;
  box-shadow:0 6px 16px rgba(11,54,42,.05)!important;
}
/* Corrección de paleta (Fase 5): "Vendiste hoy" era un rectángulo verde
   oscuro sólido (gradient --odu1-brand→--odu1-brand-dk, texto blanco) —
   exactamente el patrón que la regla de color definitiva de C v2.2 prohíbe
   dentro del contenido. Pasa a usar --sage-panel (el mismo sage real de
   "Resumen del período" en Reportes) + acento de 3px en el borde izquierdo
   con --brand-deep. Sigue siendo la tarjeta protagonista (único border-left,
   número más grande que las otras dos) pero ya no es una masa oscura. */
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child{
  border-color:#a9d6c3!important;
  border-left:3px solid var(--brand-deep,#11372E)!important;
  background:var(--sage-panel,#DCE8D9)!important;
  box-shadow:0 6px 16px rgba(11,54,42,.08)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child>span:not(.odv2-summary-icon),
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child>b,
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child .odv1-help{
  color:var(--brand-text,#12211c)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child>small{
  color:rgba(21,55,45,.6)!important;
  opacity:1!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child>.odv2-summary-icon{
  background:rgba(17,55,46,.08)!important;
  color:var(--brand-deep,#11372E)!important;
  box-shadow:none!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card:first-child>b{
  font-size:34px!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid>.odv2-kpi-card>b{
  font-size:28px!important;
  font-weight:700!important;
  letter-spacing:normal!important;
  color:var(--brand-text,var(--odu1-ink))!important;
}

.odu1-priority-panel{
  position:relative;
  margin:0!important;
  padding:26px 28px!important;
  border:1px solid #0a5d4c;
  border-radius:22px;
  background:linear-gradient(155deg,#0c4437 0%,#0a5d4c 46%,#073f33 100%);
  box-shadow:0 22px 52px rgba(8,44,34,.16);
  color:#fff;
}
.odu1-priority-head>span{
  display:block;
  margin-bottom:8px;
  color:#a8e6cf;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.12em;
}
.odu1-priority-head h4{
  margin:0 0 5px;
  color:#fff;
  font-size:21px;
  line-height:1.2;
}
.odu1-priority-head p{
  margin:0 0 18px;
  color:#bcd9cd;
  font-size:12px;
  line-height:1.45;
}
.odu1-priority-list{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.06);
}
.odu1-priority-panel .odv2-priority-card{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  min-height:0!important;
  margin:0!important;
  padding:15px 16px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.odu1-priority-panel .odv2-priority-card:last-child{border-bottom:0!important}
.odu1-priority-panel .odv1-insight-icon{
  width:34px!important;
  height:34px!important;
  margin:0!important;
  background:rgba(255,255,255,.10)!important;
  color:#c9f1df!important;
}
.odu1-priority-panel .odv1-insight-copy>b{
  color:#f2fbf7!important;
  font-size:14px!important;
}
.odu1-priority-panel .odv2-priority-detail{
  margin-top:4px!important;
  color:#bcd9cd!important;
  -webkit-line-clamp:3!important;
}
.odu1-priority-panel .odv1-insight-copy button{
  width:max-content;
  margin-top:9px!important;
  padding-top:0!important;
  color:#a8e6cf!important;
}

.odu1-location-panel{
  margin:0;
  padding:24px 26px;
  border:1px solid #c7dfd4;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--odu1-shadow-md,0 16px 38px rgba(11,54,42,.09));
}
.odu1-location-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.odu1-location-head>div>span{
  display:block;
  margin-bottom:7px;
  color:#0A5D4C;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.16em;
}
.odu1-location-head h4{
  margin:0 0 5px;
  color:var(--brand-text,#12211c);
  font-size:21px;
  font-weight:700;
}
.odu1-location-head p{
  max-width:720px;
  margin:0;
  color:#68776f;
  font-size:12.5px;
  line-height:1.5;
}
.odu1-location-manage{
  flex:0 0 auto;
  padding:10px 14px;
  border:1px solid #afd3c4;
  border-radius:12px;
  background:#fff;
  color:#0A5D4C;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.odu1-location-manage:hover{background:#f2faf6}
.odu1-location-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.odu1-location-card{
  position:relative;
  min-height:142px;
  padding:20px;
  border:1px solid #d7e5de;
  border-radius:18px;
  background:linear-gradient(150deg,#fff 0%,#f8fbf9 100%);
}
.odu1-location-card.is-store{
  border-color:#a9d6c3;
  background:linear-gradient(150deg,#f7fdf9 0%,#eaf7f1 100%);
}
.odu1-location-card.is-warehouse-available{
  border-color:#ead9ad;
  background:linear-gradient(150deg,#fffdfa 0%,#fbf5e7 100%);
}
.odu1-location-type{
  display:block;
  margin-bottom:8px;
  color:#64756d;
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
}
.odu1-location-card.is-store .odu1-location-type{color:#0A5D4C}
.odu1-location-card.is-warehouse-available .odu1-location-type{color:#8d6a1f}
.odu1-location-card h5{
  margin:0 0 6px;
  color:var(--brand-text,#12211c);
  font-size:18px;
  font-weight:700;
}
.odu1-location-card p{
  max-width:520px;
  margin:0;
  padding-right:90px;
  color:#6b7a73;
  font-size:12px;
  line-height:1.45;
}
.odu1-location-state{
  position:absolute;
  right:18px;
  bottom:18px;
  padding:6px 9px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:700;
}
.odu1-location-state.is-active{background:#e4f5ed;color:#0A6A54}
.odu1-location-state.is-available{background:#f7edcf;color:#80611e}

#ownerDashboardV1Root[data-odu1-mode="single"]>.odv2-area-step{
  margin:0!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odv2-area-panel{
  border-color:#b9d7ca!important;
  border-radius:22px!important;
  box-shadow:var(--odu1-shadow-md)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odv2-area-head{
  padding:22px 24px!important;
  background:linear-gradient(135deg,#fbfdfc 0%,#f4faf7 100%)!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odv2-area-panel>.odv1-section-nav{
  padding:20px!important;
  gap:16px!important;
}
#ownerDashboardV1Root[data-odu1-mode="single"] .odv2-area-panel .odv1-section-button{
  min-height:132px!important;
  border-radius:18px!important;
  box-shadow:0 6px 16px rgba(11,54,42,.035)!important;
}

#ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-color-guide{
  margin:0!important;
  border-color:#dfe9e4!important;
  background:rgba(255,255,255,.74)!important;
}

@media(max-width:1050px){
  #ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  #ownerDashboardV1Root[data-odu1-mode="single"]{padding:12px;border-radius:22px;gap:18px}
  #ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-page-head,
  #ownerDashboardV1Root[data-odu1-mode="single"]>.odv1-step:first-of-type,
  .odu1-priority-panel,
  .odu1-location-panel{padding:20px!important}
  #ownerDashboardV1Root[data-odu1-mode="single"] .odu1-kpi-grid{grid-template-columns:1fr!important}
  .odu1-priority-panel .odv2-priority-card{grid-template-columns:34px minmax(0,1fr)!important}
  .odu1-location-head{flex-direction:column}
  .odu1-location-grid{grid-template-columns:1fr}
  .odu1-location-manage{width:100%}
}
