/* Talleres Web v2 · Paleta celeste & azul unificada sobre base gastronomia.css */
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rail-badge { position: absolute; top: 5px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 750; display: grid; place-items: center; background: #2563eb; color: #fff; border: 2px solid #f8faff; }
.rail-badge.warn { background: #d97706; }

.metrics-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 2px 10px #0f172a08; }
.metric span { font-size: 12px; color: var(--muted); display: block; }
.metric strong { display: block; font-size: 21px; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric .m-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #e8eeff; flex-shrink: 0; }
.metric .m-ico.warn { background: #fef3c7; }
.metric .m-ico svg { width: 20px; height: 20px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0 12px; margin: 0; }
.search:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.search input { width: 100%; border: 0; padding: 10px 0; outline: 0; background: none; }
.toolbar select { border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 11px; background: #fff; max-width: 220px; }
#catalog .toolbar input { max-width: 340px; }

.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.order { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; text-align: left; cursor: pointer; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; box-shadow: 0 2px 10px #0f172a08; }
.order:hover { box-shadow: 0 6px 20px #1d4ed818; border-color: #93b4f5; transform: translateY(-1px); }
.order-top, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order .plate { font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #1e3a8a; margin: 12px 0 3px; }
.subtle { color: var(--muted); font-size: 12px; }
.order .client { margin: 10px 0 5px; font-weight: 600; color: var(--ink); font-size: 13px; }
.order-bottom { border-top: 1px solid #eef2f7; margin-top: 13px; padding-top: 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-bottom b { color: #1d4ed8; font-size: 15px; }

/* Kanban Board */
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; padding-bottom: 10px; }
.kanban-col { background: #eef3fb; border: 1px solid #dbe4f0; border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 760; color: #1e3a8a; padding: 2px 4px 6px; border-bottom: 1px solid #d5e0f2; }
.kanban-card { background: #fff; border: 1px solid #dbe4f0; border-radius: 10px; padding: 11px; text-align: left; cursor: pointer; display: grid; gap: 4px; color: var(--ink); }
.kanban-card:hover { border-color: #2563eb; box-shadow: 0 3px 10px #1d4ed818; }
.kanban-card .k-plate { font-size: 16px; font-weight: 800; color: #1e3a8a; }

.badge-state, .pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; background: #eef2f7; color: #475569; padding: 3px 9px; }
.s-RECIBIDA, .pill.info { background: #e8eeff; color: #1d4ed8; }
.s-PRESUPUESTADA, .pill.warn { background: #fef3c7; color: #92400e; }
.s-APROBADA, .s-LISTA, .pill.ok { background: #dcfce7; color: #166534; }
.s-EN_TRABAJO { background: #dbeafe; color: #1e40af; }
.s-ENTREGADA { background: #e2e8f0; color: #334155; }
.s-CANCELADA, .s-RECHAZADA, .pill.danger { background: #fee2e2; color: #991b1b; }

.detail-head { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px; margin: 14px 0 18px; box-shadow: 0 2px 10px #0f172a08; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 10px #0f172a08; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.actions, .row-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.actions { margin-top: 14px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.data-grid label { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; margin-bottom: 3px; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.table input { max-width: 100px; padding: 6px 8px; }
.total { font-size: 22px; font-weight: 780; text-align: right; margin: 14px 0; color: #1d4ed8; }
.timeline { padding: 0; list-style: none; margin: 0; }
.timeline li { padding: 0 0 12px 15px; border-left: 2px solid #dbeafe; position: relative; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; width: 8px; height: 8px; left: -5px; top: 5px; background: #2563eb; border-radius: 50%; }
.timeline small { display: block; color: var(--muted); margin-top: 2px; font-size: 11.5px; }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-grid img { width: 92px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 12.5px; color: #1e3a8a; }
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.check-grid label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; margin: 0; color: var(--ink); }
.check-grid input { width: auto; margin: 0; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.task-row:last-child { border-bottom: 0; }
.text-ok { color: #15803d; }
.text-danger { color: #dc2626; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filter-row label { margin: 0; font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 8px 13px; border: 1px solid transparent; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn-sm { padding: 5px 9px; font-size: 12px; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #0f766e; color: #fff; }
.btn-success:hover { background: #115e59; }
.btn-light { background: #fff; border-color: #cbd5e1; color: #1e3a8a; }
.btn-light:hover { background: #f1f5ff; border-color: #93c5fd; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 12px; }
.d-block { display: block; }

.dialog-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.field { display: block; margin-bottom: 12px; font-weight: 600; font-size: 12.5px; color: #334155; }
.field input, .field select, .field textarea { display: block; width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px 10px; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink); background: #fff; font-family: inherit; }
.field textarea { min-height: 75px; }
.form-hint { color: var(--muted); font-size: 12px; margin: 10px 0; }
.empty { background: #fff; padding: 36px 20px; border: 1px dashed #cbd5e1; border-radius: 12px; color: var(--muted); text-align: center; grid-column: 1/-1; }
#notice { padding: 11px 15px; margin-bottom: 16px; border-radius: 9px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: 13.5px; }
#notice.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.back { border: 0; background: none; color: #2563eb; font-weight: 650; cursor: pointer; padding: 4px 0; font-size: 13px; }
.back:hover { text-decoration: underline; }
.payment-row { padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-grid > div { border-radius: 9px; background: #f4f7fb; padding: 12px; border: 1px solid var(--line); }
.money-grid strong { display: block; font-size: 19px; margin-top: 4px; color: var(--ink); }
.money-grid .pending { background: #fffbeb; border-color: #fde68a; }
.money-grid .pending strong { color: #b45309; }

@media (max-width: 1020px) {
    .metrics-4 { grid-template-columns: 1fr 1fr; }
    .detail-grid, .pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .metrics-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
    .data-grid, .field-grid, .check-grid { grid-template-columns: 1fr; }
}
