/* Mesa de servicio genérica (ficticia) */
.hd { position: absolute; inset: 0; display: flex; font-family: 'Segoe UI', system-ui, Arial, sans-serif; font-size: 13px; color: #1e293b; background: #f1f5f9; }
.hd-rail { width: 62px; background: #0f3d3e; display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 14px; color: #9cc9c4; font-size: 18px; }
.hd-rail .lg { width: 36px; height: 36px; border-radius: 10px; background: #14b8a6; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.hd-rail .on { color: #fff; }
.hd-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hd-top { height: 52px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 18px; gap: 16px; }
.hd-top h1 { font-size: 17px; margin: 0; font-weight: 700; }
.hd-top .search { flex: 1; max-width: 420px; background: #f1f5f9; border-radius: 8px; padding: 7px 12px; color: #94a3b8; }
.hd-top .who { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #475569; }
.hd-top .who b { width: 30px; height: 30px; border-radius: 50%; background: #16a085; color: #fff; display: grid; place-items: center; font-size: 12px; }
.hd-cols { flex: 1; display: grid; grid-template-columns: minmax(520px, 1.15fr) 1fr; min-height: 0; }
.hd-list { overflow: auto; border-right: 1px solid #e2e8f0; background: #fff; }
.hd-list-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; background: #fff; z-index: 1; }
.hd-list-h b { font-size: 15px; }
.hd-chip { background: #e2e8f0; border-radius: 12px; padding: 2px 10px; font-size: 12px; color: #334155; }
.hd-tk { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; border-left: 4px solid transparent; }
.hd-tk:hover { background: #f8fafc; }
.hd-tk.sel { background: #ecfdf5; border-left-color: #14b8a6; }
.hd-tk.new { animation: hd-new 2.5s ease; }
@keyframes hd-new { 0% { background: #fef3c7; } 100% { background: transparent; } }
.hd-tk .id { font-family: Consolas, monospace; font-size: 12px; color: #64748b; }
.hd-tk .ttl { font-weight: 600; grid-column: 1 / 2; }
.hd-tk .meta { color: #64748b; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.hd-tk .right { grid-row: 1 / 4; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.prio { font-weight: 800; font-size: 11px; border-radius: 4px; padding: 2px 7px; color: #fff; }
.prio.P1 { background: #dc2626; } .prio.P2 { background: #ea580c; } .prio.P3 { background: #ca8a04; } .prio.P4 { background: #64748b; }
.stt { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 2px 9px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.stt.Nuevo { background: #dbeafe; color: #1d4ed8; } .stt.En.curso, .stt.curso { background: #fef3c7; color: #92400e; }
.stt.Reasignado { background: #fae8ff; color: #86198f; } .stt.Vinculado { background: #e0e7ff; color: #3730a3; }
.stt.Resuelto { background: #dcfce7; color: #166534; } .stt.Mitigado { background: #ccfbf1; color: #115e59; }
.hd-det { overflow: auto; padding: 18px 22px; }
.hd-det h2 { margin: 4px 0 6px; font-size: 19px; }
.hd-det .id { font-family: Consolas, monospace; color: #64748b; }
.hd-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.hd-fields label { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
.hd-fields span { font-weight: 600; }
.hd-sla { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; }
.hd-sla .bar { flex: 1; height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.hd-sla .bar i { display: block; height: 100%; background: #14b8a6; }
.hd-sla.breach { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.hd-sla.breach .bar i { background: #dc2626; }
.hd-tl { position: relative; margin-left: 8px; padding-left: 20px; border-left: 2px solid #e2e8f0; }
.hd-ev { position: relative; margin-bottom: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; }
.hd-ev::before { content: ''; position: absolute; left: -28px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #14b8a6; border: 2px solid #f1f5f9; }
.hd-ev.sys::before { background: #94a3b8; }
.hd-ev.warn { border-color: #fca5a5; }
.hd-ev.warn::before { background: #dc2626; }
.hd-ev .h { font-size: 12px; color: #64748b; margin-bottom: 3px; }
.hd-ev .h b { color: #0f172a; }
.hd-ev.new { animation: hd-new 2.5s ease; }
.hd-empty { color: #94a3b8; padding: 40px; text-align: center; }

/* Modal «nuevo ticket» */
.hd-modal-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .35); display: flex; align-items: center; justify-content: center; z-index: 10; }
.hd-modal { width: 640px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); overflow: hidden; }
.hd-modal-h { padding: 14px 18px; background: #0f3d3e; color: #fff; font-weight: 700; }
.hd-modal-b { padding: 16px 18px; display: grid; gap: 10px; }
.hd-modal-b label { font-size: 12px; color: #64748b; font-weight: 600; }
.hd-modal-b .f { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; min-height: 36px; white-space: pre-wrap; }
.hd-modal-b .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hd-modal-b .caret::after { content: '▍'; color: #14b8a6; animation: zbx-blink 1s steps(1) infinite; }
.hd-modal-f { padding: 12px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e2e8f0; }
.hd-modal-f button { border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 700; background: #14b8a6; color: #fff; }
.hd-modal-f button.g { background: #e2e8f0; color: #334155; }
