/* IDMIX Tech 1.0.52 — Cozinha KDS clean.
 * Uma caixa por pedido; itens viram linhas. Cores de status não pintam blocos inteiros.
 */
.kds1052-page{min-width:0!important}
.kds1052-page .page-head{align-items:center!important}
.kds1052-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:wrap!important}
.kds1052-queue{font-size:12.5px!important;font-weight:600!important;color:var(--muted)!important;white-space:nowrap!important}
.kds1052-queue.has-overdue{color:var(--danger,#dc2626)!important}

.kds1052-board{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important;min-width:0!important}
.kds1052-stage{min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
.kds1052-stage-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:54px!important;padding:0 0 10px!important;margin-bottom:10px!important;border:0!important;border-bottom:1px solid var(--border)!important;background:transparent!important;box-shadow:none!important}
.kds1052-stage-title{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.kds1052-stage-icon{width:42px!important;height:42px!important;min-width:42px!important;display:grid!important;place-items:center!important;color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 8%,transparent)!important;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border))!important;border-radius:var(--bp-control-radius,9px)!important}
.kds1052-stage-icon .ui-icon{width:19px!important;height:19px!important}
.kds1052-stage-title>div{display:grid!important;gap:1px!important;min-width:0!important}
.kds1052-stage-title strong{font-size:14px!important;line-height:1.25!important;font-weight:700!important;color:var(--fg)!important}
.kds1052-stage-title small{font-size:11.5px!important;line-height:1.25!important;color:var(--muted)!important}
.kds1052-count{font-size:11.5px!important;font-weight:650!important;color:var(--muted)!important;white-space:nowrap!important;background:transparent!important;border:0!important;padding:0!important}
.kds1052-stage-body{display:grid!important;gap:10px!important;min-width:0!important;padding:0!important}
.kds1052-empty{min-height:92px!important;display:grid!important;place-items:center!important;padding:18px!important;color:var(--muted)!important;font-size:12px!important;text-align:center!important;border:1px dashed var(--border)!important;background:transparent!important}

.kds1052-card{min-width:0!important;background:var(--surface)!important;border:1px solid var(--border)!important;padding:13px!important;box-shadow:none!important;transition:border-color .15s ease,background .15s ease!important}
.kds1052-card:hover{border-color:color-mix(in srgb,var(--primary) 28%,var(--border))!important}
.kds1052-card-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px!important;padding-bottom:10px!important;border-bottom:1px solid var(--border)!important;min-width:0!important}
.kds1052-order-copy{display:grid!important;gap:4px!important;min-width:0!important}
.kds1052-order-kicker{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;font-size:10.5px!important;line-height:1.2!important;color:var(--muted)!important;font-weight:650!important}
.kds1052-order-kicker span+span:before{content:"•"!important;margin-right:8px!important;color:var(--muted)!important}
.kds1052-comanda{font-size:15px!important;line-height:1.25!important;color:var(--fg)!important;overflow-wrap:break-word!important}
.kds1052-order-meta{display:flex!important;align-items:center!important;gap:6px 10px!important;flex-wrap:wrap!important;color:var(--muted)!important;font-size:11.5px!important;line-height:1.3!important}
.kds1052-order-meta span+span:before{content:"•"!important;margin-right:10px!important;color:var(--muted)!important}
.kds1052-time{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;padding:0!important;margin:1px 0 0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font-size:11.5px!important;line-height:1.3!important;font-weight:700!important;white-space:nowrap!important}
.kds1052-time.is-warning{color:#b45309!important}
.kds1052-time.is-overdue{color:var(--danger,#dc2626)!important}
.kds1052-time .ui-icon{width:14px!important;height:14px!important}

.kds1052-items{display:grid!important;gap:0!important;margin:4px 0!important}
.kds1052-item{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-width:0!important;padding:10px 0!important;border:0!important;border-bottom:1px solid color-mix(in srgb,var(--border) 82%,transparent)!important;background:transparent!important;box-shadow:none!important}
.kds1052-item:last-child{border-bottom:0!important}
.kds1052-thumb{width:42px!important;height:42px!important;min-width:42px!important;object-fit:cover!important;border:1px solid var(--border)!important;background:var(--surface2)!important;border-radius:var(--bp-control-radius,8px)!important}
.kds1052-thumb.image-error{display:none!important}
.kds1052-thumb-placeholder{display:grid!important;place-items:center!important;color:var(--muted)!important}
.kds1052-thumb-placeholder .ui-icon{width:17px!important;height:17px!important}
.kds1052-item-copy{display:grid!important;gap:3px!important;min-width:0!important}
.kds1052-item-title{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important;font-size:13px!important;line-height:1.35!important;color:var(--fg)!important}
.kds1052-item-title strong{flex:0 0 auto!important;font-size:13.5px!important}
.kds1052-item-title span{min-width:0!important;overflow-wrap:break-word!important}
.kds1052-item-copy>small{font-size:11.5px!important;line-height:1.35!important;color:var(--muted)!important;overflow-wrap:break-word!important}
.kds1052-ready-text{display:inline-flex!important;align-items:center!important;gap:4px!important;width:max-content!important;color:var(--primary)!important;font-size:10.5px!important;font-weight:700!important}
.kds1052-ready-text .ui-icon{width:13px!important;height:13px!important}
.kds1052-item-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap!important}
.kds1052-item-actions .icon-btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
.kds1052-item-delete{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important}

.kds1052-card-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding-top:10px!important;border-top:1px solid var(--border)!important;min-width:0!important}
.kds1052-link-action{min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important}
.kds1052-link-action .ui-icon{width:18px!important;height:18px!important}
.kds1052-primary{min-width:150px!important;justify-content:center!important}
.kds1052-handoff{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;color:var(--muted)!important;font-size:11.5px!important;font-weight:650!important;text-align:right!important}
.kds1052-handoff .ui-icon{width:16px!important;height:16px!important;color:var(--primary)!important}

html[data-ui-radius="straight"] body :is(.kds1052-stage-icon,.kds1052-empty,.kds1052-card,.kds1052-thumb){border-radius:0!important}
html[data-ui-radius="rounded"] body .kds1052-card{border-radius:var(--bp-card-radius,12px)!important}

.kds1052-page:fullscreen{background:var(--bg)!important;padding:20px!important;overflow:auto!important}
.kds1052-page:fullscreen .page-head{position:sticky!important;top:0!important;z-index:5!important;background:var(--bg)!important;padding-block:8px 12px!important}

@media(max-width:1180px){
  .kds1052-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kds1052-stage.status-pronto{grid-column:1/-1!important}
  .kds1052-stage.status-pronto .kds1052-stage-body{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .kds1052-board{grid-template-columns:1fr!important}
  .kds1052-stage.status-pronto{grid-column:auto!important}
  .kds1052-stage.status-pronto .kds1052-stage-body{grid-template-columns:1fr!important}
  .kds1052-head-actions{justify-content:flex-start!important}
}
@media(max-width:560px){
  .kds1052-card-head{grid-template-columns:1fr!important}
  .kds1052-time{justify-content:flex-start!important}
  .kds1052-item{grid-template-columns:38px minmax(0,1fr)!important}
  .kds1052-thumb{width:38px!important;height:38px!important;min-width:38px!important}
  .kds1052-item-actions{grid-column:1/-1!important;justify-content:flex-end!important}
  .kds1052-card-footer{align-items:stretch!important;flex-direction:column-reverse!important}
  .kds1052-primary{width:100%!important;min-width:0!important}
  .kds1052-link-action{justify-content:center!important}
  .kds1052-handoff{justify-content:center!important;text-align:center!important}
}
