/* Vertical de producción: composición aprobada sobre la piel de Helios Ligero. */
body[data-vertical="production"] {
  --production-accent: var(--production-accent-light)
}

[data-tema="noche"] body[data-vertical="production"] {
  --production-accent: var(--production-accent-dark)
}

body[data-vertical="production"] .h-monograma {
  display: none
}

body[data-vertical="production"] .h-marca-texto {
  padding-left: 6px
}

body[data-vertical="production"] #biz-name {
  color: var(--production-accent);
  font-family: "DM Serif Display",Georgia,serif;
  font-size: 22px;
  font-weight: 400
}

body[data-vertical="production"] .h-powered {
  font-size: 12px
}

body[data-vertical="production"] .h-topbar {
  gap: 8px
}

body[data-vertical="production"] .h-hoja {
  min-height: calc(100dvh - 160px)
}

body[data-vertical="production"] .h-tabs-aura {
  right: 20px
}

.p-account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none
}

.p-account>span:last-child {
  display: flex;
  flex-direction: column
}

.p-account select {
  font-weight: 700;
  font-size: 14px;
  max-width: 190px;
  padding: 0 3px;
  background: transparent;
  border: 0;
  min-height: 26px
}

.p-account small {
  font-size: 12px;
  color: var(--h-tinta-3)
}

.p-demo-controls {
  margin: -12px 0 20px;
  color: var(--h-tinta-2);
  font-size: 12px;
  position: relative;
  z-index: 5
}

.p-demo-controls summary {
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px
}

.p-demo-controls summary::before {
  content: '⌄'
}

.p-demo-controls[open]>div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--h-papel-2);
  margin: 6px 0 12px
}

.p-demo-controls label {
  display: flex;
  gap: 10px;
  align-items: center
}

.p-demo-controls select {
  min-height: 44px;
  border: 1px solid var(--h-borde);
  border-radius: 10px;
  background: var(--h-papel);
  font-size: 13px;
  padding: 0 8px
}

.p-mobile-account {
  display: none!important
}

.p-hero {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin: 0 0 24px
}

.p-pocket {
  width: 156px;
  height: 166px;
  flex: none
}

.p-pocket .bolsillo-aura {
  left: 28px;
  top: 0;
  width: 100px;
  height: 134px
}

.p-pocket .bolsillo-vidrio {
  top: 70px
}

.p-pocket .bolsillo-pill {
  bottom: 0
}

.p-greeting {
  flex: 1;
  min-width: 0;
  padding-bottom: 8px
}

.p-greeting h1 {
  font-size: clamp(36px,3.75vw,54px);
  line-height: 1.04
}

.p-sentence {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 8px;
  max-width: 600px;
  text-wrap: pretty
}

.p-date {
  font-size: 13px;
  margin-bottom: 0
}

.p-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
  padding-bottom: 10px
}

.p-question {
  display: flex;
  gap: 8px;
  width: 100%
}

.p-question .input {
  flex: 1;
  min-width: 0;
  font-size: 14px
}

.p-question button {
  width: 46px;
  padding: 0;
  flex: none
}

.p-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap
}

.p-kpis {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 20px
}

.p-card {
  padding: 22px 24px;
  min-width: 0
}

.p-lit {
  box-shadow: var(--h-luz-borde)
}

.p-card .card-head {
  align-items: center;
  margin-bottom: 14px
}

.p-card .card-head small {
  font-size: 12px;
  color: var(--h-tinta-2);
  text-align: right
}

.p-text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--h-tinta);
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left
}

.p-text-button:hover {
  color: var(--h-acento)
}

.p-order-count {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
  border-radius: 10px
}

.p-order-count>span {
  display: flex;
  flex-direction: column;
  font-size: 14px
}

.p-order-count strong {
  font-size: 34px;
  line-height: 1.15;
  margin: 2px 0
}

.p-order-count small,.p-next small {
  font-size: 13px;
  color: var(--h-tinta-2)
}

.p-next {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  border-top: 1px solid var(--h-linea);
  padding-top: 14px
}

.p-next>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  line-height: 1.45
}

.p-light {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  margin-top: 3px;
  background: radial-gradient(circle at 34% 30%,#fff6e4 0 16%,#ffc478 46%,#d68034 100%);
  box-shadow: 0 0 0 3px var(--h-papel),0 0 14px 4px var(--h-luz)
}

.p-approval {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--h-linea);
  padding: 12px 0
}

.p-approval>[data-aura-face] {
  width: 34px;
  flex: none
}

.p-approval-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4
}

.p-approval-title small {
  font-size: 13px;
  color: var(--h-tinta-2);
  margin-top: 2px
}

.p-small {
  padding: 0 12px;
  font-size: 13px;
  flex: none
}

.p-risk-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  text-align: left
}

.p-number {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.02em
}

.p-risk-number small {
  font-size: 13px;
  color: var(--h-tinta-2)
}

.p-danger,.p-item.red .p-item-state,.p-item.red .p-item-coverage>small:first-child {
  color: var(--h-acento)
}

.p-success {
  color: var(--h-positivo);
  font-weight: 700
}

.p-risk-phrase {
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
  text-wrap: pretty
}

.p-home-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch
}

.p-week .card-head p {
  font-size: 14px;
  margin: 6px 0 0
}

.p-chart {
  display: flex;
  gap: 12px;
  margin-top: 16px
}

.p-chart-axis {
  height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: var(--h-tinta-2);
  width: 20px;
  flex: none;
  text-align: right
}

.p-chart-columns {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0
}

.p-chart-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  align-items: center;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--h-tinta)
}

.p-chart-track {
  height: 172px;
  display: flex;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid var(--h-linea)
}

.p-chart-column.selected .p-chart-track {
  background: var(--h-col-luz)
}

.p-chart-bar {
  display: block;
  width: 28px;
  border-radius: 4px 4px 0 0;
  background: var(--h-grafico-2)
}

.p-chart-bar.peak {
  background: var(--h-grafico-1)
}

.p-chart-column strong {
  font-size: 13px;
  margin-top: 10px;
  white-space: nowrap
}

.p-chart-column small {
  font-size: 12px;
  color: var(--h-tinta-2)
}

.p-chart-status {
  font-size: 13px;
  color: var(--h-tinta-2);
  margin: 12px 0 0;
  min-height: 20px
}

.p-team-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--h-linea)
}

.p-team-row>div {
  flex: 1;
  min-width: 0
}

.p-team-row>div>div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px
}

.p-team-row small {
  color: var(--h-tinta-2);
  font-size: 13px
}

.p-team-track {
  height: 5px;
  background: var(--h-papel-2);
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px
}

.p-team-track>span {
  display: block;
  height: 100%;
  background: var(--h-grafico-2)
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px
}

.p-table th,.p-table td {
  padding: 8px 4px;
  text-align: left;
  border-bottom: 1px solid var(--h-linea)
}

.p-supplies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px
}

.p-supplies-head h1 {
  font-size: 44px;
  margin-bottom: 10px
}

.p-supplies-head p {
  margin-bottom: 0;
  font-size: 15px
}

.p-supplies-head .eyebrow {
  font-size: 13px;
  margin-bottom: 8px
}

.p-subnav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap
}

.p-subtabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--h-pestana);
  border-radius: 14px;
  flex-wrap: wrap
}

.p-subtab {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  border-radius: 11px;
  padding: 0 13px
}

.p-subtab[aria-selected="true"] {
  background: var(--h-papel);
  box-shadow: var(--h-sombra-1)
}

.p-subtab span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--h-tinta-2)
}

.p-filter {
  margin-left: auto;
  font-size: 13px
}

.p-provider-tabs {
  display: none
}

.p-inventory {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  align-items: start
}

.p-provider {
  padding: 18px 20px
}

.p-provider .card-head {
  align-items: flex-start;
  gap: 8px
}

.p-provider h2 {
  font-size: 16px
}

.p-provider .card-head p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0
}

.p-provider .badge {
  font-size: 12px;
  padding: 2px 7px
}

.p-item {
  padding: 16px 0;
  border-top: 1px solid var(--h-linea)
}

.p-item-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.p-item-button {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 44px;
  text-align: left;
  border-radius: 8px
}

.p-item-button>span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.p-item-button strong {
  font-size: 14px
}

.p-item small {
  font-size: 12px;
  color: var(--h-tinta-2);
  line-height: 1.5
}

.p-item-state {
  font-weight: 800;
  color: var(--h-grafico-2);
  width: 20px;
  flex: none;
  text-align: center
}

.p-alternative {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--h-borde);
  background: transparent;
  font-size: 13px;
  font-weight: 700
}

.p-item-coverage {
  margin: 8px 0 0 28px
}

.p-item-coverage>small {
  display: block
}

.p-bar {
  position: relative;
  height: 7px;
  background: var(--h-papel-2);
  border-radius: 5px;
  margin: 8px 0 6px;
  isolation: isolate
}

.p-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 5px;
  background: var(--h-grafico-2);
  transition: width 550ms var(--h-curva),box-shadow 550ms var(--h-curva)
}

.p-bar.red .p-bar-fill {
  background: var(--h-acento)
}

.p-bar.order .p-bar-fill {
  background: var(--h-grafico-1)
}

.p-bar.approved .p-bar-fill {
  background: var(--h-grafico-2);
  box-shadow: var(--h-barra-luz),0 0 12px -2px var(--h-luz)
}

.p-bar-proposed {
  position: absolute;
  height: 7px;
  border: 1px dashed var(--h-tinta);
  border-radius: 0 5px 5px 0;
  top: 0
}

.p-bar-delivery {
  position: absolute;
  top: -4px;
  height: 15px;
  width: 2px;
  background: var(--h-tinta);
  z-index: 2
}

.p-purchase-layout {
  display: grid;
  grid-template-columns: 340px minmax(0,1fr);
  gap: 24px;
  align-items: start
}

.p-purchase-list {
  padding: 14px 0
}

.p-purchase-list>p {
  font-size: 13px
}

.p-purchase-select {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  border-radius: 18px;
  text-align: left;
  margin: 6px 0;
  color: var(--h-tinta)
}

.p-purchase-select.selected {
  background: var(--h-papel);
  box-shadow: var(--h-luz-borde)
}

.p-purchase-select>span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.p-purchase-select strong {
  font-size: 14px
}

.p-purchase-select small {
  font-size: 12px;
  color: var(--h-tinta-2)
}

.p-section-title {
  font-size: 30px!important;
  font-family: "DM Serif Display",Georgia,serif;
  font-weight: 400
}

.p-purchase-detail>.card-head {
  align-items: flex-start;
  flex-wrap: wrap
}

.p-purchase-detail>.card-head .muted {
  font-size: 13px;
  margin: 8px 0 0
}

.p-purchase-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px 62px 48px;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--h-linea);
  padding: 20px 0
}

.p-line-description {
  min-width: 0
}

.p-line-description strong {
  font-size: 15px
}

.p-line-description small {
  font-size: 12px;
  color: var(--h-tinta-2)
}

.p-line-description .p-bar {
  max-width: 280px
}

.p-stepper {
  display: flex;
  align-items: center;
  gap: 8px
}

.p-stepper>span {
  flex: 1;
  min-width: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.p-stepper strong {
  font-size: 19px
}

.p-stepper small {
  font-size: 12px;
  color: var(--h-tinta-2);
  line-height: 1.3
}

.p-step {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--h-borde);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px
}

.p-step:hover {
  background: var(--h-linea)
}

.p-step:disabled {
  color: var(--h-tinta-2);
  cursor: default
}

.p-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 16px 0 0;
  border-top: 1px solid var(--h-linea)
}

.p-total>div {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.p-total strong {
  font-size: 30px;
  line-height: 1.25
}

.p-total small {
  font-size: 13px;
  color: var(--h-tinta-2)
}

.p-message {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: var(--h-papel-2);
  font-size: 14px
}

.p-message>div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px
}

.p-message p:last-child {
  margin-bottom: 0
}

.p-message li {
  margin-bottom: 6px
}

.p-removed {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px
}

.p-reception-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  align-items: start
}

.p-reception-line {
  display: grid;
  grid-template-columns: 48px minmax(150px,1fr) 190px 150px;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--h-linea)
}

.p-reception-line>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  font-size: 14px
}

.p-reception-line small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--h-tinta-2)
}

.p-reception-line small.p-danger {
  color: var(--h-acento)
}

.p-inline-aura {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0
}

.p-inline-aura p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5
}

.p-inline-aura h2 {
  margin-top: 8px
}

.p-count {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px 0
}

.p-count .p-section-title {
  font-size: 28px!important
}

.p-count .card-head {
  align-items: center
}

.p-count .card-head>span {
  font-size: 13px
}

.p-count-item {
  margin: 24px 0 16px;
  text-align: center
}

.p-count-item h2 {
  font-size: 25px;
  line-height: 1.15
}

.p-count-item p {
  font-size: 14px
}

.p-count-value {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 8px auto 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--h-tinta);
  height: 74px
}

.p-count-item>span {
  font-size: 14px;
  color: var(--h-tinta-2)
}

.p-keypad {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 20px 0
}

.p-key {
  height: 62px;
  border: 0;
  border-radius: 15px;
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
  font-size: 26px;
  font-weight: 700
}

.p-key:hover {
  box-shadow: var(--h-luz-borde)
}

.p-count-note {
  padding: 12px;
  background: var(--h-positivo-suave);
  border-radius: 12px;
  font-size: 13px;
  margin: 14px 0 0
}

.p-count-adjustment {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--h-linea)
}

.p-count .p-action-row {
  flex-wrap: nowrap;
  justify-content: space-between
}

.p-count .p-action-row .btn {
  padding: 0 14px;
  font-size: 14px
}

.p-empty {
  padding: 60px 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: var(--h-tinta-2)
}

.p-empty>[data-aura-face] {
  display: flex;
  justify-content: center
}

.p-empty :is(h1,h2) {
  color: var(--h-tinta);
  margin-top: 24px;
  font-size: 34px
}

.p-panel {
  width: 560px;
  max-width: 100vw
}

.p-panel .panel-aura-hilo {
  padding: 20px
}

.p-panel .panel-aura-pie:has(form[hidden]) {
  display: none
}

.p-detail-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0
}

.p-detail-numbers strong {
  font-size: 30px
}

.p-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--h-linea);
  font-size: 14px
}

.p-detail-row small {
  display: block;
  font-size: 12px;
  color: var(--h-tinta-2);
  margin-top: 3px
}

.p-detail-row dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700
}

.p-reasons {
  font-size: 14px;
  padding-left: 22px;
  line-height: 1.6
}

.p-reasons li {
  margin: 8px 0
}

.p-stock-chart {
  margin: 20px 0
}

.p-stock-chart figcaption {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px
}

.p-stock-chart svg {
  width: 100%;
  height: auto
}

.p-stock-chart text {
  font: 13px Manrope,sans-serif;
  fill: var(--h-tinta)
}

.p-stock-chart p {
  font-size: 12px
}

.p-answer {
  white-space: pre-line
}

@media(max-width:1240px) and (min-width:761px) {
  .p-hero {
    gap: 18px;
    flex-wrap: wrap
  }
  .p-greeting h1 {
    font-size: 46px
  }
  .p-home-actions {
    margin-left: auto;
    max-width: 100%;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center
  }
  .p-question {
    max-width: 500px
  }
  .p-home-bottom {
    grid-template-columns: 1.8fr 1fr
  }
  .p-card {
    padding: 20px
  }
  .p-approval {
    gap: 6px
  }
  .p-approval-title {
    font-size: 13px
  }
  .p-small {
    padding: 0 10px
  }
  .p-provider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--h-pestana);
    border-radius: 14px;
    padding: 3px
  }
  .p-provider-tabs button {
    font-size: 13px
  }
  .p-provider-tabs [aria-pressed="true"] {
    background: var(--h-papel);
    box-shadow: var(--h-luz-borde)
  }
  .p-inventory {
    display: block
  }
  .p-provider {
    display: none
  }
  .p-provider.selected {
    display: block
  }
  .p-item {
    display: flex;
    gap: 20px;
    align-items: center
  }
  .p-item-top {
    width: 45%
  }
  .p-item-coverage {
    flex: 1;
    margin: 0
  }
  .p-purchase-layout {
    grid-template-columns: 270px minmax(0,1fr);
    gap: 18px
  }
  .p-purchase-line {
    grid-template-columns: minmax(0,1fr) 180px 50px
  }
  .p-purchase-line>.p-step {
    grid-column: 3
  }
  .p-reception-layout {
    grid-template-columns: minmax(0,1fr) 250px
  }
  .p-reception-line {
    grid-template-columns: 48px minmax(120px,1fr) 180px
  }
  .p-reception-line>.field {
    grid-column: 2/-1;
    max-width: 200px
  }
  .p-total {
    flex-wrap: wrap
  }
}

@media(max-width:760px) {
  body[data-vertical="production"] .screen {
    padding: 20px 16px 30px
  }
  body[data-vertical="production"] .h-topbar {
    gap: 4px
  }
  body[data-vertical="production"] #biz-name {
    font-size: 20px
  }
  body[data-vertical="production"] .h-marca-texto {
    padding-right: 0
  }
  body[data-vertical="production"] .h-aura-pill {
    padding-right: 10px
  }
  .p-demo-controls {
    margin: -4px 0 10px
  }
  .p-mobile-account {
    display: flex!important
  }
  .p-demo-controls[open]>div {
    display: flex;
    flex-direction: column;
    align-items: stretch
  }
  .p-demo-controls label {
    justify-content: space-between
  }
  .p-demo-controls select {
    max-width: 220px
  }
  .p-hero {
    display: grid;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 0 12px;
    align-items: center;
    margin-bottom: 18px
  }
  .p-pocket {
    width: 76px;
    height: 88px;
    grid-row: 1
  }
  .p-pocket .bolsillo-aura {
    left: 7px;
    top: 0;
    width: 60px;
    height: 80px;
    transform: none
  }
  .p-pocket .bolsillo-vidrio {
    left: 0;
    top: 40px;
    transform: scale(.49);
    transform-origin: top left
  }
  .p-pocket .bolsillo-pill {
    display: none
  }
  .p-greeting {
    display: contents
  }
  .p-greeting h1 {
    grid-column: 2;
    grid-row: 1;
    font-size: 34px;
    line-height: 1.08;
    margin: 0
  }
  .p-sentence {
    grid-column: 1/-1;
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0
  }
  .p-date {
    grid-column: 1/-1;
    font-size: 12px;
    margin-bottom: 14px
  }
  .p-home-actions {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: 0
  }
  .p-question {
    order: 2
  }
  .p-action-row {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0,1fr)
  }
  .p-action-row .btn {
    padding: 0 12px
  }
  .p-home-actions .btn {
    font-size: 14px
  }
  .p-kpis {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin-bottom: 12px
  }
  .p-card {
    padding: 18px 16px
  }
  .p-card .card-head {
    gap: 8px
  }
  .p-card .card-head h2 {
    font-size: 16px
  }
  .p-approval-title {
    font-size: 13px
  }
  .p-approval-title small {
    font-size: 12px
  }
  .p-small {
    padding: 0 10px
  }
  .p-number {
    font-size: 32px
  }
  .p-risk-phrase {
    font-size: 13px
  }
  .p-order-count {
    gap: 48px
  }
  .p-home-bottom {
    grid-template-columns: minmax(0,1fr);
    gap: 12px
  }
  .p-week {
    order: 2
  }
  .p-chart-columns {
    gap: 0
  }
  .p-chart-column {
    padding: 0 1px
  }
  .p-chart-bar {
    width: 20px
  }
  .p-chart-track,.p-chart-axis {
    height: 140px
  }
  .p-chart-column strong {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    white-space: normal
  }
  .p-chart-tag {
    display: none
  }
  .p-chart-column small {
    font-size: 12px
  }
  .p-week .card-head p {
    font-size: 13px
  }
  .p-chart-status {
    font-size: 12px
  }
  .p-supplies-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px
  }
  .p-supplies-head h1 {
    font-size: 36px
  }
  .p-supplies-head p {
    font-size: 14px
  }
  .p-supplies-head .eyebrow {
    font-size: 12px
  }
  .p-supplies-head>.btn {
    width: 100%
  }
  .p-subnav {
    gap: 12px;
    display: block
  }
  .p-subtabs {
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow: auto
  }
  .p-subtab {
    font-size: 12px;
    padding: 0 10px;
    white-space: nowrap
  }
  .p-subtab span {
    display: none
  }
  .p-filter {
    font-size: 12px;
    margin-top: 10px;
    width: 100%
  }
  .p-inventory {
    grid-template-columns: 1fr
  }
  .p-provider {
    padding: 16px
  }
  .p-provider h2 {
    font-size: 15px
  }
  .p-provider .card-head p {
    font-size: 12px
  }
  .p-purchase-layout {
    display: block
  }
  .p-purchase-list {
    padding: 0 0 14px
  }
  .p-purchase-list>h2,.p-purchase-list>p {
    display: none
  }
  .p-purchase-select {
    padding: 12px
  }
  .p-purchase-detail {
    padding: 18px 16px
  }
  .p-section-title {
    font-size: 28px!important
  }
  .p-purchase-line {
    grid-template-columns: minmax(0,1fr) 48px;
    gap: 12px;
    padding: 18px 0
  }
  .p-line-description {
    grid-column: 1/-1
  }
  .p-stepper {
    grid-column: 1
  }
  .p-purchase-line>strong {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    align-self: start
  }
  .p-purchase-line>.p-step {
    grid-column: 2;
    grid-row: 3
  }
  .p-total {
    flex-direction: column;
    align-items: stretch;
    gap: 16px
  }
  .p-total>.btn {
    width: 100%
  }
  .p-purchase-detail>.card-head .badge {
    white-space: normal
  }
  .p-message {
    padding: 14px;
    font-size: 13px
  }
  .p-reception-layout {
    grid-template-columns: 1fr;
    gap: 12px
  }
  .p-reception-line {
    grid-template-columns: 48px minmax(0,1fr);
    gap: 12px
  }
  .p-reception-line>.p-stepper {
    grid-column: 1/-1;
    justify-self: center
  }
  .p-reception-line>.field {
    grid-column: 1/-1;
    max-width: 100%
  }
  .p-count {
    padding-top: 0
  }
  .p-count-item h2 {
    font-size: 24px
  }
  .p-count .p-action-row {
    display: flex
  }
  .p-empty {
    padding: 34px 0
  }
  .p-empty :is(h1,h2) {
    font-size: 30px
  }
  .p-panel {
    width: 100%;
    max-height: 92dvh
  }
  .p-panel .panel-aura-hilo {
    padding: 18px
  }
  .p-detail-row {
    flex-wrap: wrap;
    gap: 8px
  }
  .p-reasons {
    font-size: 13px
  }
}

@media(prefers-reduced-motion:reduce) {
  body[data-vertical="production"] *,body[data-vertical="production"] *::before,body[data-vertical="production"] *::after,.p-panel,.p-panel * {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important
  }
}

@media(prefers-reduced-transparency:reduce) {
  .p-demo-controls[open]>div {
    background: var(--h-papel-2)
  }
  .p-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--h-papel)
  }
}

.p-empty h2 {
  font-family: "DM Serif Display",Georgia,serif;
  font-weight: 400
}

/* Ronda 3: mesa de cocina, limitada a la vertical production. */
.k-production, .k-dialog {
  font-size: 16px;
  line-height: 1.5;
}

.k-heading {
  margin: 14px 0;
}

.k-heading h1 {
  margin: 0 0 6px;
  font: 400 40px / 1.12 "DM Serif Display", Georgia, serif;
}

.k-heading p {
  margin: 4px 0;
  font-size: 20px;
}

.k-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  width: fit-content;
  border-radius: 20px;
  background: var(--h-pestana);
  margin: 0 0 14px auto;
}

.k-subnav [aria-current="page"] {
  background: var(--h-papel);
  box-shadow: var(--h-luz-borde);
}

.k-button {
  min-height: 56px;
  font-size: 16px;
  border-radius: 16px;
  padding: 10px 18px;
  white-space: normal;
}

.k-button.btn-primary {
  min-height: 64px;
  font-size: 20px;
}

.k-card {
  padding: 18px 22px;
  background: var(--h-papel);
  border-radius: 22px;
  box-shadow: var(--h-baldosa);
  min-width: 0;
}

.k-card h2 {
  font: 400 26px / 1.15 "DM Serif Display", Georgia, serif;
  margin: 0 0 12px;
}

.k-card h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}

.k-card p {
  margin: 6px 0;
}

.k-highlight {
  box-shadow: var(--h-luz-borde);
}

.k-progress {
  display: flex;
  gap: 6px;
  height: 10px;
  margin: 18px 0;
  border-radius: 999px;
  overflow: hidden;
}

.k-progress span {
  flex: 1;
  background: var(--h-linea);
  border-radius: 999px;
}

.k-progress .done {
  background: var(--h-grafico-2);
}

.k-day-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 14px;
  margin-bottom: 18px;
}

.k-meta {
  color: var(--h-tinta-2);
  font-size: 16px;
}

.k-task-title {
  font: 400 30px / 1.15 "DM Serif Display", Georgia, serif;
  min-height: 56px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--h-tinta);
}

.k-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0 0;
}

.k-actions .btn-primary {
  margin-left: auto;
  min-width: 160px;
}

.k-register-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  min-height: 64px;
  text-align: left;
  border: 0;
  border-radius: 22px;
  color: var(--h-boton-texto);
  background: var(--h-boton);
  box-shadow: var(--h-sombra-2);
}

.k-register-tile strong {
  display: block;
  font-size: 20px;
}

.k-register-tile span span {
  display: block;
  margin-top: 4px;
}

.k-plus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 28px;
}

.k-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.k-section-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.k-section-head h2 {
  margin: 0;
}

.k-next > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--h-tinta);
  border-radius: 12px;
}

.k-next > button strong {
  font-size: 18px;
}

.k-allergy {
  background: var(--h-acento-suave);
  color: var(--h-acento);
  padding: 10px 14px;
  border-radius: 16px;
  margin: 12px 0;
}

.k-allergy p {
  margin: 4px 0 0;
}

.k-change {
  background: var(--h-papel-2);
  padding: 14px 18px;
  border-radius: 16px;
  margin: 12px 0;
  border-left: 3px solid var(--h-tinta);
}

.k-change p {
  margin: 4px 0;
}

.k-change-tag {
  font-weight: 700;
}

.k-done {
  margin: 22px 0;
  color: var(--h-tinta-2);
}

.k-done summary {
  min-height: 56px;
  cursor: pointer;
  padding: 12px 0;
}

.k-finished {
  display: flex;
  align-items: center;
  gap: 20px;
}

.k-finished [data-aura-face] {
  flex: 0 0 72px;
}

.k-task-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
}

.k-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 14px 0;
}

.k-stages li {
  padding: 8px 18px;
  border: 1px solid var(--h-borde);
  border-radius: 12px;
}

.k-stages [aria-current="step"] {
  background: var(--h-papel);
  box-shadow: var(--h-luz-borde);
  font-weight: 700;
}

.k-ingredients {
  list-style: none;
  padding: 0;
}

.k-ingredients li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 14px;
  margin: 6px 0;
  background: var(--h-papel-2);
  border-radius: 12px;
}

.k-steps {
  padding-left: 24px;
}

.k-steps li {
  padding: 6px 0 6px 6px;
}

.k-dedication {
  font: 400 26px / 1.3 "DM Serif Display", Georgia, serif;
}

.k-photo {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.k-photo > svg {
  width: 92px;
  height: 80px;
  padding: 24px;
  flex: none;
  border: 1px dashed var(--h-borde);
  border-radius: 14px;
}

.k-task-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 4px;
  margin-top: 14px;
  background: var(--h-hoja);
  z-index: 2;
}

.k-task-footer p {
  margin: 4px 0;
}

.k-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.k-board-column {
  min-width: 0;
}

.k-board-column h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.k-board-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
  border: 0;
  color: var(--h-tinta);
  text-align: left;
  font-size: 16px;
}

.k-ready {
  font-size: 44px;
  font-weight: 800;
}

.k-stock-segments {
  display: flex;
  gap: 4px;
  height: 10px;
  margin: 12px 0;
}

.k-stock-segments span {
  background: var(--h-grafico-2);
  border-radius: 999px;
}

.k-stock-segments span:last-child {
  background: var(--h-grafico-1);
}

.k-product-pending {
  border-top: 1px solid var(--h-linea);
  padding-top: 12px;
}

.k-disconnected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--h-tinta-2);
  font-size: 16px;
}

.k-disconnected span {
  padding: 4px 12px;
  border: 1px dashed var(--h-borde);
  border-radius: 999px;
}

.k-dialog {
  width: min(940px, calc(100% - 32px));
  max-height: calc(100dvh - 60px);
  padding: 22px 24px;
  border: 1px solid var(--h-borde);
  border-radius: 26px;
  background: var(--h-papel);
  color: var(--h-tinta);
  box-shadow: var(--h-luz-borde), var(--h-sombra-3);
  overflow: auto;
}

.k-dialog::backdrop {
  background: var(--h-velo);
}

.k-dialog-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.k-dialog-head > div {
  flex: 1;
  min-width: 0;
}

.k-dialog-head h2 {
  font: 400 28px / 1.15 "DM Serif Display", Georgia, serif;
  margin: 0;
}

.k-dialog-head p {
  margin: 6px 0 0;
}

.k-dialog-head > [data-aura-face] {
  flex: 0 0 40px;
}

.k-search-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.k-search-label input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--h-borde);
  border-radius: 16px;
  background: var(--h-papel);
  color: var(--h-tinta);
  font-size: 18px;
}

.k-product-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  min-height: 80px;
  border: 1px solid var(--h-tinta);
  border-radius: 18px;
  text-align: left;
  color: var(--h-tinta);
  background: var(--h-papel);
}

.k-product-choice strong {
  font-size: 19px;
}

.k-product-choice span {
  color: var(--h-tinta-2);
}

.k-register-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px 24px;
  margin-bottom: 16px;
}

.k-quantity-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 18px;
  background: var(--h-papel-2);
  border-radius: 18px;
}

#produced-quantity {
  width: 140px;
  max-width: 60%;
  font-size: 60px;
  font-weight: 800;
  border: 0;
  background: transparent;
  color: var(--h-tinta);
}

.k-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.k-keypad button {
  min-height: 72px;
  font-size: 28px;
  border: 0;
  box-shadow: var(--h-baldosa);
  background: var(--h-papel);
}

.k-missing-dialog {
  max-width: 780px;
}

.k-missing-item {
  color: var(--h-acento);
}

/* El mínimo alcanza el marco y los paneles, además del contenido de la cocina. */
body[data-production-role="pastry"] #app *,
body[data-production-role="pastry"] .p-panel * {
  font-size: 16px;
}

body[data-production-role="pastry"] #app button,
body[data-production-role="pastry"] #app summary,
body[data-production-role="pastry"] .p-panel button {
  min-height: 56px;
}

body[data-production-role="pastry"] #app .k-heading h1 {
  font-size: 40px;
}

body[data-production-role="pastry"] #app h2,
body[data-production-role="pastry"] #app .k-task-title {
  font-size: 28px;
}

body[data-production-role="pastry"] #app h3,
body[data-production-role="pastry"] #app .k-register-tile strong,
body[data-production-role="pastry"] #app .btn-primary {
  font-size: 20px;
}

body[data-production-role="pastry"] #app #produced-quantity {
  font-size: 60px;
}

body[data-production-role="pastry"] #app .k-ready {
  font-size: 44px;
}

body[data-production-role="pastry"] #app .k-keypad button {
  font-size: 28px;
}

body[data-production-role="pastry"] .h-topbar {
  min-height: 68px;
}

body[data-production-role="pastry"] .p-account select {
  max-width: 230px;
}

@media (max-width: 760px) {
  .k-heading h1,
  body[data-production-role="pastry"] #app .k-heading h1 {
    font-size: 30px;
  }
  .k-heading p {
    font-size: 18px;
  }
  .k-subnav {
    display: none;
  }
  .k-day-top, .k-grid, .k-task-columns, .k-board, .k-register-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .k-register-tile {
    order: -1;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }
  .k-card {
    padding: 16px;
  }
  .k-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 110px);
    padding: 16px 14px 18px;
  }
  .k-dialog-head h2 {
    font-size: 24px;
  }
  .k-keypad button {
    min-height: 56px;
  }
  .k-keypad {
    gap: 8px;
  }
  .k-register-columns {
    gap: 12px;
  }
  .k-photo {
    flex-wrap: wrap;
  }
  body[data-production-role="pastry"] .h-topbar {
    gap: 4px;
    padding-left: 10px;
  }
  body[data-production-role="pastry"] #app .h-marca {
    min-width: 0;
  }
  body[data-production-role="pastry"] #app .h-aura-pill {
    padding: 0 10px 0 4px;
  }
  body[data-production-role="pastry"] #app .h-tab-m {
    padding-left: 2px;
    padding-right: 2px;
  }
}

body[data-production-role="pastry"] .h-bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-production-role="pastry"] .h-toast {
  font-size: 16px;
}

body[data-production-role="pastry"] #app #biz-name {
  font-size: 22px;
}
body[data-production-role="pastry"] #app .h-icono-btn {
  min-width: 56px;
}
body[data-production-role="pastry"] #app .k-plus {
  font-size: 28px;
}
@media (max-width: 760px) {
  body[data-production-role="pastry"] .h-topbar {
    min-height: 64px;
  }
}

/* Ronda 4: tabla del Sheets, formulario compartido y Bandeja de la dueña. */
.o-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.o-heading h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 6px;
}
.o-heading p {
  margin: 0;
  color: var(--h-tinta-2);
}
.o-actions, .o-toolbar, .o-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.o-toolbar {
  margin: 20px 0;
}
.o-toolbar p {
  margin: 0;
}
.o-toolbar .o-disconnected {
  margin-left: auto;
}
.o-disconnected {
  border: 1px dashed var(--h-borde);
  background: transparent;
}
.o-next h2, .o-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.o-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.o-day {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--h-papel);
  color: var(--h-tinta);
  border: 1px solid var(--h-linea);
  border-radius: 18px;
  padding: 14px;
  min-height: 132px;
}
.o-day strong {
  font-size: 16px;
}
.o-day small {
  font-size: 12px;
  color: var(--h-tinta-2);
  overflow-wrap: anywhere;
}
.o-day[aria-pressed="true"], .o-toolbar button[aria-pressed="true"] {
  box-shadow: var(--h-luz-borde);
  border-color: var(--h-borde);
}
.o-table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: 18px;
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
}
.o-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1400px;
  font-size: 13px;
}
.o-table th, .o-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--h-linea);
}
.o-table th {
  background: var(--h-papel-2);
  font-weight: 700;
}
.o-table td:nth-child(9), .o-table td:nth-child(10), .o-table td:nth-child(11), .o-table td:nth-child(12) {
  text-align: right;
}
.o-detail {
  background: var(--h-papel-2);
}
.o-card {
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
}
.o-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.o-order-aside {
  position: sticky;
  top: 0;
}
.o-order-form {
  padding: 6px 20px;
}
.o-form-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--h-linea);
}
.o-form-row:first-child {
  border-top: 0;
}
.o-form-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding-top: 8px;
}
.o-form-row .field {
  margin-bottom: 8px;
}
.o-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.o-form-layout input, .o-form-layout select, .o-form-layout textarea, .o-inline-form input, .o-settings-layout textarea {
  width: 100%;
  min-width: 0;
}
.o-form-layout input, .o-form-layout select, .o-inline-form input, .o-settings-layout select, .o-toolbar input {
  min-height: 46px;
}
.o-auto {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--h-papel-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.o-product-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
}
.o-product-results button {
  min-height: 44px;
  height: auto;
  white-space: normal;
  text-align: left;
}
.o-product-results span, .o-line small {
  color: var(--h-tinta-2);
}
.o-line, .o-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--h-papel-2);
  margin-bottom: 10px;
}
.o-line > span {
  flex: 1 1 160px;
}
.o-line small, .o-contact small {
  display: block;
  margin-top: 4px;
}
.o-line label {
  width: 72px;
  font-size: 12px;
}
.o-callout, .o-thread blockquote, .o-order-aside blockquote {
  background: var(--h-papel-2);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.o-required {
  color: var(--production-accent);
  font-weight: 700;
}
.o-summary {
  box-shadow: var(--h-luz-borde);
}
.o-summary .btn {
  width: 100%;
  margin-bottom: 8px;
  min-height: 48px;
}
.o-summary-line, .o-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.o-total {
  border-top: 1px solid var(--h-linea);
  padding-top: 16px;
  font-size: 22px;
}
.o-inbox-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}
.o-conversations {
  padding: 8px;
}
.o-conversation {
  background: transparent;
  color: var(--h-tinta);
  border: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 16px;
}
.o-conversation + .o-conversation {
  border-top: 1px solid var(--h-linea);
}
.o-conversation[aria-current="true"] {
  background: var(--h-papel-2);
  box-shadow: inset 0 0 0 1px var(--h-borde);
}
.o-conversation span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.o-conversation small {
  font-size: 12px;
  color: var(--h-tinta-2);
}
.o-thread .btn {
  margin: 4px;
}
.o-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.o-contact, .o-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--h-linea);
  padding: 12px 0;
}
.o-contact small {
  color: var(--h-tinta-2);
}
.o-level {
  border-top: 1px solid var(--h-linea);
  padding: 14px 0;
}
.o-level small {
  display: block;
  color: var(--h-tinta-2);
  margin: 4px 0;
}
.o-inline-form .field {
  flex: 1 1 150px;
}
@media (max-width: 1100px) {
  .o-form-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .o-days {
    display: flex;
    overflow: auto;
    padding: 6px;
  }
  .o-day {
    flex: 0 0 155px;
  }
}
@media (max-width: 760px) {
  .o-form-layout, .o-inbox-layout, .o-settings-layout, .o-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-order-aside {
    position: static;
  }
  .o-form-row {
    gap: 8px;
  }
  .o-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-card {
    padding: 16px;
  }
  .o-conversations {
    max-height: 260px;
    overflow: auto;
  }
  .o-heading .o-actions {
    width: 100%;
  }
  .o-toolbar .o-disconnected {
    margin-left: 0;
  }
}

/* Ronda 5: entregas y avance compartido, con los tokens del marco Ligero. */
.d-planner,
.d-driver,
.d-route-panel {
  display: grid;
  gap: 18px;
}
.d-planner .o-heading {
  margin-bottom: 0;
}
.d-aura {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-left: 3px solid var(--h-acento);
}
.d-aura > div {
  flex: 1;
}
.d-aura p {
  margin: 6px 0 0;
  color: var(--h-tinta-2);
}
.d-group {
  overflow: hidden;
}
.d-group > .card-head {
  padding: 14px 18px;
  margin: 0;
  flex-wrap: wrap;
}
.d-group .card-head h2 {
  font: 700 16px Manrope, sans-serif;
}
.d-group .card-head span,
.d-group .card-head small {
  color: var(--h-tinta-2);
  font-size: 13px;
}
.d-row {
  display: grid;
  grid-template-columns: 36px minmax(100px, 1fr) minmax(140px, 1.25fr) minmax(140px, 1.4fr) minmax(140px, 1.25fr) 98px 140px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--h-linea);
  font-size: 14px;
  line-height: 1.4;
}
.d-row > div,
.d-row > label {
  min-width: 0;
}
.d-row small,
.d-row > div > strong {
  display: block;
}
.d-row small {
  margin-top: 4px;
  color: var(--h-tinta-2);
  font-size: 12px;
}
.d-row a,
.d-panel-stop a {
  color: var(--h-tinta);
}
.d-handle {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--h-tinta-2);
  cursor: grab;
  font-size: 24px;
}
.d-handle:hover {
  background: var(--h-papel-2);
}
.d-instructions span,
.d-controls label {
  font-size: 12px;
  color: var(--h-tinta-2);
}
.d-instructions textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 6px 8px;
  font: inherit;
}
.d-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-controls .input {
  min-width: 74px;
  padding: 6px;
}
.d-payment {
  font-weight: 700;
}
.d-drop,
.d-store-row {
  margin: 0 18px 14px;
  padding: 12px;
  border: 1px dashed var(--h-borde);
  border-radius: 12px;
}
.d-store-row {
  display: flex;
  justify-content: space-between;
}
.d-copy {
  padding: 20px;
}
.d-copy pre {
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--h-papel-2);
  color: var(--h-tinta);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.5 Manrope, sans-serif;
}
.d-live {
  margin: 20px 0;
}
.d-live > p {
  color: var(--h-tinta-2);
}
.d-counts,
.d-late {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.d-live-line {
  display: grid;
  grid-template-columns: repeat(var(--stops), minmax(0, 1fr));
  margin: 22px 0;
}
.d-live-window {
  grid-column: span var(--span);
  min-width: 0;
}
.d-live-window > strong {
  display: block;
  margin: 0 8px 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--h-linea);
  border-radius: 7px;
  font-size: 12px;
}
.d-live-window.now > strong {
  border-color: var(--h-luz-linea);
}
.d-window-stops {
  display: grid;
  grid-template-columns: repeat(var(--span), minmax(0, 1fr));
}
.d-live-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 6px;
  gap: 4px;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.d-live-stop::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--h-linea);
}
.d-live-stop i {
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin: 4px 0 7px;
  border: 2px solid var(--h-borde);
  border-radius: 50%;
  background: var(--h-papel);
  font-style: normal;
  font-size: 12px;
}
.d-live-stop.done i,
.d-live-stop.done::before {
  background: var(--h-positivo);
  border-color: var(--h-positivo);
  color: var(--h-papel);
}
.d-live-stop.next i {
  border: 3px solid var(--h-luz-linea);
  box-shadow: 0 0 0 3px var(--h-papel), 0 0 14px 4px var(--h-luz);
  width: 24px;
  height: 24px;
  margin-top: 1px;
  margin-bottom: 4px;
}
.d-live-stop small {
  font-size: 12px;
  color: var(--h-tinta-2);
}
.d-late {
  padding: 12px 0;
  border-top: 1px solid var(--h-linea);
}
.d-late strong {
  flex: 1;
  color: var(--h-acento);
}
.d-panel-stop {
  padding: 14px 0;
  border-bottom: 1px solid var(--h-linea);
}
.d-driver {
  max-width: 560px;
  margin: auto;
  font-size: 16px;
}
.d-driver .btn,
.d-driver-actions summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.d-driver small {
  font-size: 14px;
}
.d-current h2 {
  font: 800 27px/1.15 Manrope, sans-serif;
}
.d-current > p {
  margin: 10px 0;
}
.d-note {
  background: var(--h-papel-2);
  border-radius: 16px;
  padding: 14px;
}
.d-charge {
  font-size: 24px;
  font-weight: 800;
}
.d-driver-actions,
.d-driver-actions form {
  display: grid;
  gap: 12px;
}
.d-driver-actions label {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.d-driver-actions .d-photo {
  display: flex;
  align-items: center;
  font-size: 14px;
}
.d-driver-actions .input {
  width: 100%;
}
.d-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.d-after {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--h-linea);
}
.d-signature {
  position: relative;
  width: calc(100% - 28px);
  height: 44px;
  margin: 0 auto;
  transition: height 800ms var(--h-curva);
}
.d-route-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 240px;
  overflow: visible;
  pointer-events: none;
}
.d-route-stroke,
.d-route-progress {
  stroke: var(--h-linea);
  stroke-width: 3;
  fill: none;
  transition: d 1200ms var(--h-curva);
}
.d-route-progress {
  stroke: var(--h-positivo);
}
.d-route-node {
  position: absolute;
  left: var(--line-x);
  top: 20px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 2px solid var(--h-borde);
  border-radius: 50%;
  background: var(--h-hoja);
  transition: left 950ms var(--h-curva), top 950ms var(--h-curva);
}
.d-route-node.shop {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: var(--h-boton);
  color: var(--h-boton-texto);
  display: grid;
  place-items: center;
}
.d-route-node.shop svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.d-route-node.done {
  background: var(--h-positivo);
  border-color: var(--h-positivo);
}
.d-route-node.next {
  width: 20px;
  height: 20px;
  border: 3px solid var(--h-luz-linea);
  background: var(--h-papel);
  box-shadow: 0 0 0 3px var(--h-hoja), 0 0 14px 4px var(--h-luz);
}
.d-signature.closed {
  width: 320px;
  max-width: 100%;
  height: 252px;
}
.d-signature.closed .d-route-stroke {
  d: path('M160 30 C285 30 285 218 160 218 C35 218 35 30 160 30');
  stroke: var(--h-positivo);
}
.d-signature.closed .d-route-progress {
  display: none;
}
.d-signature.closed .d-route-node {
  left: var(--stop-x);
  top: var(--stop-y);
}
.d-route-aura {
  position: absolute;
  left: 50%;
  top: 124px;
  transform: translate(-50%, -50%);
}
.d-progress,
.d-close {
  text-align: center;
}
.d-close h2 {
  font: 34px/1.1 'DM Serif Display', Georgia, serif;
}
.d-chat {
  max-width: 390px;
  margin: auto;
  padding-bottom: 16px;
  background: var(--h-papel-2);
  border-radius: 20px;
  overflow: hidden;
}
.d-chat > header {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--h-positivo-suave);
}
.d-chat h1 {
  margin: 0;
  font: 700 17px Manrope, sans-serif;
}
.d-chat small {
  font-size: 12px;
}
.d-chat-labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
}
.d-chat-date {
  text-align: center;
  font-size: 12px;
}
.d-chat-warning {
  margin: 12px;
  padding: 12px;
  background: var(--h-hoja);
  border-radius: 12px;
  font-size: 14px;
  color: var(--h-tinta-2);
}
.d-bubble {
  margin: 12px;
  border-radius: 4px 16px 16px 16px;
  overflow: hidden;
  padding-top: 12px;
  background: var(--h-papel);
  box-shadow: var(--h-sombra-1);
}
.d-chat-text {
  margin: 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.42;
}
/* Recorte a cinco líneas sin añadir otra elipsis a la del texto. */
.d-five-lines {
  display: block;
  max-height: calc(5 * 1.42 * 15px);
  overflow: hidden;
}
.d-bubble > .p-text-button {
  margin-left: 14px;
}
.d-chat-time {
  display: block;
  text-align: right;
  color: var(--h-tinta-2);
  padding: 6px 12px;
}
.d-bubble > .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--h-linea);
  background: transparent;
  color: var(--h-positivo);
}
.d-chat footer {
  display: grid;
  gap: 10px;
  margin: 16px 12px 0;
}
.d-chat footer span {
  background: var(--h-hoja);
  border-radius: 20px;
  padding: 12px 16px;
  color: var(--h-tinta-2);
}
@media (max-width: 1200px) {
  .d-row {
    grid-template-columns: 36px minmax(110px, 1fr) minmax(160px, 1.3fr) minmax(140px, 1.1fr) 150px;
  }
  .d-instructions {
    grid-column: 3;
    grid-row: 2;
  }
  .d-row > div:nth-last-child(2) {
    grid-column: 4;
    grid-row: 2;
  }
  .d-controls {
    grid-column: 5;
    grid-row: 1 / 3;
  }
}
@media (max-width: 760px) {
  .d-aura {
    flex-wrap: wrap;
  }
  .d-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }
  .d-row > div,
  .d-row > label,
  .d-row > div:nth-last-child(2),
  .d-instructions,
  .d-controls {
    grid-column: 2;
    grid-row: auto;
  }
  .d-handle {
    grid-row: 1;
  }
  .d-live-line {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .d-live-window {
    grid-column: auto;
  }
  .d-window-stops {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .d-live-stop {
    align-items: flex-start;
    padding-left: 36px;
    text-align: left;
  }
  .d-live-stop::before {
    display: none;
  }
  .d-live-stop i {
    position: absolute;
    left: 0;
  }
  .d-driver .p-card {
    padding: 18px 16px;
  }
  .d-driver .badge {
    white-space: normal;
  }
  .d-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .d-signature,
  .d-route-node,
  .d-route-stroke {
    transition: none;
    animation: none;
  }
}
.d-pasted-route {
  margin: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.42 Manrope, sans-serif;
}

/* Panel de ruta y hojas de Rubén: superficie Ligero opaca en ambos temas. */
.d-dialog {
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--h-linea);
  background: var(--h-papel);
  color: var(--h-tinta);
  box-shadow: var(--h-sombra-3);
  max-height: 92dvh;
  overflow: auto;
}
.d-dialog::backdrop {
  background: var(--h-velo);
}
.d-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--h-linea);
  background: var(--h-papel);
}
.d-dialog-head h2 {
  margin: 0;
  font: 700 20px/1.3 Manrope, sans-serif;
}
.d-dialog-body {
  padding: 20px;
}
.d-route-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 24px 0 0 24px;
}
.d-driver-sheet {
  width: min(480px, calc(100% - 24px));
  border-radius: 24px;
  font-size: 16px;
}
.d-driver-form {
  display: grid;
  gap: 16px;
}
.d-driver-form label {
  display: grid;
  gap: 8px;
}
.d-driver-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.d-driver-form fieldset label,
.d-driver-form .d-photo {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.d-driver-form .btn {
  min-height: 60px;
}
.d-absent-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 48px;
}
@media (max-width: 760px) {
  .d-driver-sheet,
  .d-route-dialog {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    height: auto;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
  }
}

/* Ronda 6 · Cobros y cierre. Superficies y luz del sistema Ligero. */
.f-card {
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
  margin-bottom: 16px;
}
.f-card h2, .f-card h3 {
  margin-top: 0;
}
.f-aura {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 20px;
}
.f-aura > span {
  flex: 0 0 48px;
}
.f-aura p {
  max-width: 800px;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.f-upload, .f-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--h-papel-2);
}
.f-upload {
  border: 1px dashed var(--h-borde);
}
.f-upload > div {
  flex: 1;
}
.f-upload p {
  margin: 6px 0;
}
.f-receipts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.f-receipt-list h2 {
  margin: 0 0 10px 6px;
  font-size: 14px;
  color: var(--h-tinta-2);
}
.f-receipt-group {
  padding: 6px;
}
.f-receipt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
}
.f-receipt-row.selected {
  background: var(--h-acento-suave);
  box-shadow: inset 0 0 0 1px var(--h-acento);
}
.f-receipt-select {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border: 0;
  background: transparent;
  color: var(--h-tinta);
  text-align: left;
  cursor: pointer;
}
.f-receipt-select strong, .f-receipt-select small, .f-lines small, .f-close-rows small, .f-missing small {
  display: block;
}
.f-receipt-select small {
  margin-top: 3px;
  color: var(--h-tinta-2);
  font-size: 13px;
}
.f-thumbnail {
  display: grid;
  place-items: center;
  width: 38px;
  height: 50px;
  border: 1px dashed var(--h-borde);
  border-radius: 9px;
  background: var(--h-papel-2);
  flex-shrink: 0;
}
.f-receipt-detail {
  box-shadow: var(--h-luz-borde);
}
.f-detail-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.f-detail-heading h2 {
  margin: 0;
}
.f-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px dashed var(--h-borde);
  background: var(--h-papel-2);
}
.f-capture strong {
  font-size: 28px;
}
.f-read > div, .f-totals > div, .f-close-rows > div, .f-lines > div, .f-missing > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--h-linea);
}
.f-read dd, .f-totals dd, .f-close-rows dd {
  margin: 0;
  text-align: right;
}
.f-read dt, .f-totals small, .f-close-rows small {
  color: var(--h-tinta-2);
  font-size: 13px;
}
.f-totals small {
  display: block;
}
.f-total {
  font-weight: 700;
  font-size: 24px;
  border-bottom: 0 !important;
}
.f-invoice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}
.f-ruc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px;
  gap: 12px;
  margin: 20px 0;
}
.f-electronic {
  margin: 22px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--h-papel-2);
}
.f-payments {
  padding-left: 20px;
  line-height: 1.7;
}
.f-ticket {
  width: 80mm;
  max-width: 100%;
  background: #fff;
  color: #181818;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  padding: 6mm;
  box-shadow: var(--h-sombra-2);
  overflow-wrap: anywhere;
}
.f-ticket h2 {
  font-size: 23px;
  margin: 0;
}
.f-ticket hr {
  border: 0;
  border-top: 1px dashed #777;
  margin: 16px 0;
}
.f-ticket-line, .f-ticket-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  margin: 8px 0;
}
.f-ticket-line b {
  white-space: nowrap;
}
.f-ticket-totals dd {
  margin: 0;
}
.f-ticket-totals .f-total {
  font-size: 18px;
}
.f-credit-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  max-width: none;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0;
  border: 0;
  padding: 28px;
  color: var(--h-tinta);
  background: var(--h-papel);
  box-shadow: var(--h-sombra-3);
  overflow: auto;
}
.f-credit-panel::backdrop {
  background: var(--h-velo);
}
.f-credit-line {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}
.f-credit-line span {
  flex: 1;
}
.f-credit-line input {
  width: 80px;
}
.f-close-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.f-cash-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  margin: 40px 0 28px;
}
.f-cash-pair > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  min-width: 0;
}
.f-cash-pair strong, .f-cash-pair input {
  font-family: var(--h-fuente-cifra, Georgia, serif);
  font-size: 36px;
  text-align: center;
}
.f-cash-pair input {
  min-height: 64px;
  width: 100%;
  min-width: 0;
}
.f-cash-joined {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px;
  border-radius: 18px;
  background: var(--h-positivo-suave);
  box-shadow: var(--h-luz-borde);
  animation: f-cash-light 900ms ease both;
}
.f-cash-joined::after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--h-refraccion);
  left: 0;
  right: 0;
  bottom: 0;
  animation: f-light-pass 900ms ease both;
}
@keyframes f-cash-light {
  0%, 60% { opacity: 0; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes f-light-pass {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.f-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.f-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 40px;
  margin: 15px 0;
}
.f-stats small {
  color: var(--h-tinta-2);
}
@media (prefers-reduced-motion: reduce) {
  .f-cash-joined {
    animation: none;
    transform: translateY(0);
  }
  .f-cash-joined::after {
    animation: none;
  }
}
@media (max-width: 760px) {
  .f-receipts, .f-invoice-layout, .f-close-layout, .f-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .f-receipts.has-detail .f-receipt-list {
    display: none;
  }
  .f-card {
    padding: 18px;
  }
  .f-ruc {
    grid-template-columns: minmax(0, 1fr);
  }
  .f-ticket-preview {
    justify-self: center;
  }
  .f-aura p {
    font-size: 16px;
  }
  .f-cash-pair strong, .f-cash-pair input {
    font-size: 30px;
  }
}
@page receipt {
  size: 80mm 250mm;
  margin: 0;
}
@page accountant {
  size: A4;
  margin: 14mm;
}
@media print {
  body[data-production-role] {
    background: #fff;
    color: #000;
  }
  body[data-print="ticket"] * {
    visibility: hidden;
  }
  body[data-print="ticket"] [data-print-ticket], body[data-print="ticket"] [data-print-ticket] * {
    visibility: visible;
  }
  body[data-print="ticket"] [data-print-ticket] {
    position: absolute;
    inset: 0 auto auto 0;
    width: 80mm;
    max-width: 80mm;
    box-shadow: none;
    page: receipt;
  }
  body[data-print="accountant"] #app > :not(.h-app),
  body[data-print="accountant"] .h-topbar,
  body[data-print="accountant"] .h-tabs,
  body[data-print="accountant"] .p-demo-controls,
  body[data-print="accountant"] .h-bottom,
  body[data-print="accountant"] button,
  body[data-print="accountant"] .f-period,
  body[data-print="accountant"] .p-subtabs {
    display: none !important;
  }
  body[data-print="accountant"] [data-print-accountant] {
    page: accountant;
    color: #000;
  }
  body[data-print="accountant"] #screen,
  body[data-print="accountant"] #app,
  body[data-print="accountant"] .p-content {
    height: auto !important;
    overflow: visible !important;
  }
  body[data-print="accountant"] .f-card {
    background: #fff;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

@media print {
  body[data-print] .h-fondo, body[data-print] .h-toast {
    display: none !important;
  }
  body[data-print] .h-app, body[data-print] .h-hoja {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body[data-print="accountant"] .o-table-wrap {
    overflow: visible;
  }
  body[data-print="accountant"] .o-table {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }
}

/* Aislar el documento impreso evita que el marco produzca páginas vacías. */
#production-print-root {
  display: none;
}
@media print {
  body[data-print] > :not(#production-print-root) {
    display: none !important;
  }
  body[data-print] #production-print-root {
    display: block;
    --h-tinta: #000;
    --h-tinta-2: #333;
    --h-papel: #fff;
    --h-linea: #ddd;
  }
  body[data-print="ticket"] #production-print-root [data-print-ticket] {
    position: static;
    margin: 0;
  }
  body[data-print="accountant"] #production-print-root button,
  body[data-print="accountant"] #production-print-root .f-period,
  body[data-print="accountant"] #production-print-root .p-subtabs {
    display: none;
  }
  body[data-print="accountant"] #production-print-root .f-aura > span {
    display: none;
  }
}

/* Segmentados de Cobros con el estado visible de Ligero. */
.f-segmented {
  width: fit-content;
}
.f-segmented .p-subtab {
  color: var(--h-tinta);
  cursor: pointer;
}
.f-segmented .p-subtab[aria-selected="true"],
.f-segmented .p-subtab[aria-pressed="true"] {
  background: #fff;
  box-shadow: var(--h-sombra-1);
}
[data-tema="noche"] .f-segmented .p-subtab[aria-selected="true"],
[data-tema="noche"] .f-segmented .p-subtab[aria-pressed="true"] {
  background: var(--h-papel);
}
.f-close-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}
.f-accountant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.f-accountant-layout > div {
  min-width: 0;
}
[data-print-accountant] .o-table {
  min-width: 0;
}
.f-accountant-layout .o-table td:first-child {
  white-space: nowrap;
}
.f-print-invoices {
  display: none;
}
@media (max-width: 760px) {
  .f-accountant-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  body[data-print="accountant"] .f-print-invoices {
    display: block;
  }
  body[data-print="accountant"] .f-accountant-layout {
    display: block;
  }
}

/* Ronda 7 · catálogo. Superficies, tinta, luz y controles de Ligero. */
.c-catalog {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.c-body, .c-stack, .c-add, .c-cleanup {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.c-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 16px;
}
.c-settings-nav > strong {
  padding: 8px 12px;
  color: var(--h-tinta-2);
  font-size: 13px;
}
.c-settings-nav .p-subtab {
  text-align: left;
  padding: 0 12px;
}
.c-settings-nav [aria-current="page"] {
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
  font-weight: 800;
}
.c-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.c-header > [data-aura-face] {
  width: 64px;
  flex: none;
}
.c-header > div {
  flex: 1 1 380px;
  min-width: 0;
}
.c-header h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 42px);
}
.c-header p {
  margin: 4px 0;
}
.c-source, .c-toolbar, .c-table-heading, .c-highlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.c-toolbar > label {
  flex: 1 1 250px;
  min-width: 0;
}
.c-card {
  border-radius: 22px;
  padding: 18px 20px;
  background: var(--h-papel);
  box-shadow: var(--h-baldosa);
  min-width: 0;
}
.c-card h2, .c-callout h2 {
  font: 700 17px/1.4 var(--font-body, 'Manrope', sans-serif);
  margin: 0 0 12px;
}
.c-card h2 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--h-tinta-2);
  margin-left: 8px;
}
.c-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--h-papel-2);
  min-width: 0;
}
.c-callout > [data-aura-face] {
  width: 38px;
  flex: none;
}
.c-callout > div, .c-callout > p {
  min-width: 0;
  flex: 1;
}
.c-callout p {
  margin: 4px 0 12px;
}
.c-callout .o-actions {
  margin-top: 12px;
}
.c-chips, .c-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.c-chips .btn, .c-sizes .btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.c-chips [aria-pressed="true"], .c-sizes [aria-pressed="true"] {
  background: var(--h-boton);
  color: var(--h-boton-texto);
  border-color: var(--h-boton);
}
.c-chips [aria-pressed="true"] .badge, .c-sizes [aria-pressed="true"] .badge {
  background: var(--h-papel);
  color: var(--h-tinta);
}
.c-highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.c-highlights article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: var(--h-papel-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.c-highlight-top {
  min-height: 36px;
  flex-wrap: nowrap;
}
.c-pinned {
  box-shadow: var(--h-luz-borde);
}
.c-table-scroll {
  max-height: 520px;
  overflow: auto;
}
.c-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}
.c-table th {
  text-align: left;
  font-size: 12px;
  color: var(--h-tinta-2);
  padding: 8px;
  border-bottom: 1px solid var(--h-linea);
}
.c-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--h-linea);
  vertical-align: middle;
}
.c-table th:first-child, .c-table td:first-child {
  width: 43%;
  padding-left: 0;
}
.c-table td small {
  display: block;
  font-size: 12px;
  color: var(--h-tinta-2);
}
.c-table .p-text-button {
  min-height: 44px;
  padding: 0 6px;
}
.c-numeric {
  text-align: right;
  white-space: nowrap;
}
.c-warning {
  color: var(--h-acento) !important;
}
.c-row-detail {
  background: var(--h-papel-2);
}
.c-row-detail td {
  padding: 14px !important;
}
.c-row-detail input {
  max-width: 150px;
}
.c-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-search-input {
  position: relative;
}
.c-search-input input {
  min-height: 54px;
  border: 1.5px solid var(--h-tinta);
  padding-right: 46px;
  font-size: 16px;
}
.c-search-input > button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
}
.c-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--h-tinta-2);
  margin: 0;
}
.c-keys kbd {
  border: 1px solid var(--h-borde);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--h-papel);
}
.c-results {
  max-height: 510px;
  overflow: auto;
  padding: 4px;
}
.c-result {
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-result[aria-selected="true"] {
  background: var(--h-papel-2);
  box-shadow: inset 0 0 0 1px var(--h-borde);
}
.c-result-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.c-result-heading small {
  color: var(--h-tinta-2);
}
.c-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.c-popular .c-result {
  padding: 0;
  margin: 0;
}
.c-sizes button:disabled {
  opacity: 1;
  color: var(--h-tinta-2);
  background: var(--h-papel-2);
  border-style: dashed;
}
.c-add-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: 22px;
  align-items: start;
}
.c-line-input {
  min-height: 58px;
  font-size: 18px;
}
.c-parsed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.c-parsed div {
  min-width: 0;
}
.c-parsed dt {
  color: var(--h-tinta-2);
  font-size: 13px;
}
.c-parsed dd {
  margin: 4px 0 0;
  font-weight: 700;
}
.c-neighbor {
  padding: 16px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--h-linea);
  border-radius: 12px;
}
.c-neighbor small {
  display: block;
  color: var(--h-tinta-2);
}
.c-batch-list {
  max-height: 1450px;
  overflow: auto;
}
.c-batch-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--h-linea);
}
.c-batch-row > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.c-batch-row > label {
  max-width: 180px;
}
.c-clean-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
}
.c-clean-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-clean-groups .btn {
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px;
  height: auto;
}
.c-clean-groups [aria-pressed="true"] {
  box-shadow: var(--h-luz-borde);
  background: var(--h-papel);
  border-color: var(--h-tinta);
}
.c-proposal-lines {
  max-height: 460px;
  overflow: auto;
}
.c-proposal-lines > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--h-linea);
}
.c-proposal .c-callout {
  margin: 12px 0;
}
.c-zone {
  display: grid;
  grid-template-columns: minmax(0, .8fr) 20px minmax(0, 1.3fr) 76px;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--h-linea);
}
.c-zone small {
  display: block;
  color: var(--h-tinta-2);
}
.c-zone p {
  margin: 4px 0;
}
.c-zone > b {
  text-align: right;
}
.c-map {
  position: relative;
  height: 56px;
  margin: 18px 0;
  isolation: isolate;
  transition: height 600ms var(--h-curva);
}
.c-map-mark {
  position: absolute;
  width: 5px;
  height: 18px;
  border-radius: 3px;
  left: calc(var(--raw-column) * .98%);
  top: calc(var(--raw-row) * 24px);
  background: var(--h-tinta);
  opacity: .4;
  transition: left 820ms var(--h-curva) var(--map-delay), top 820ms var(--h-curva) var(--map-delay), width 420ms var(--h-curva), height 420ms var(--h-curva);
}
.c-map-pending {
  background: var(--h-acento);
  opacity: .75;
}
.c-map-fixed {
  background: var(--h-positivo);
  opacity: .85;
}
.c-map-arranged {
  height: 434px;
}
.c-map-label {
  position: absolute;
  top: calc(var(--map-row) * 30px);
  left: 0;
  font-size: 12px;
  color: var(--h-tinta-2);
  max-width: 155px;
}
.c-map-arranged .c-map-mark {
  left: calc(170px + var(--map-column) * 13px);
  top: calc(var(--map-row) * 30px + 3px);
  width: 10px;
  height: 12px;
}
.c-map-arranged.c-map-start .c-map-mark {
  left: calc(var(--raw-column) * .98%);
  top: calc(var(--raw-row) * 24px);
  width: 5px;
  height: 18px;
}
.c-map-light {
  position: absolute;
  left: 170px;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--h-refraccion);
  transform-origin: left;
  animation: c-catalog-light 1.2s var(--h-curva) 850ms both;
}
.c-clean-finish {
  box-shadow: var(--h-luz-borde);
  animation: c-catalog-finish 400ms var(--h-curva) 1400ms both;
}
@keyframes c-catalog-light {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes c-catalog-finish {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1200px) {
  .c-catalog {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
  }
  .c-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .c-catalog, .c-add-layout, .c-clean-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }
  .c-settings-nav > strong {
    width: 100%;
  }
  .c-header > [data-aura-face] {
    width: 38px;
  }
  .c-header > div {
    flex-basis: 230px;
  }
  .c-card {
    padding: 16px 12px;
  }
  .c-toolbar .f-segmented {
    flex-wrap: wrap;
  }
  .c-table {
    min-width: 540px;
  }
  .c-keys {
    display: none;
  }
  .c-search .c-callout {
    padding: 12px;
  }
  .c-search .o-actions .btn {
    width: 100%;
  }
  .c-clean-groups {
    flex-direction: row;
    overflow: auto;
  }
  .c-clean-groups .btn {
    min-width: 160px;
  }
  .c-zone {
    grid-template-columns: 1fr auto;
  }
  .c-zone > span:nth-child(2) {
    display: none;
  }
  .c-map-arranged {
    overflow: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-map, .c-map-mark, .c-map-light, .c-clean-finish {
    animation: none;
    transition: none;
  }
}
.c-map-arranged .c-map-united {
  margin-left: 4px;
  margin-top: -3px;
  opacity: .35;
}
.c-map-arranged .c-map-archived {
  background: transparent;
  border: 1.5px solid var(--h-tinta-3);
  opacity: .9;
}
