.est-panel {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(29, 78, 216, .06);
}
.est-stack { display: grid; gap: 14px; }
.est-form { max-width: 820px; }
.est-wide { grid-column: 1 / -1; }
.est-top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.est-form textarea {
    display: block; width: 100%; margin-top: 5px; padding: 8px 9px; resize: vertical;
    font: inherit; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 7px;
}
.est-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.est-form > .est-actions, .est-panel > details { margin-top: 12px; }
.est-panel > details { border-top: 1px solid var(--line); padding-top: 11px; }
.est-panel details > summary { cursor: pointer; font-weight: 680; }
.est-panel details form { margin-top: 13px; }
.est-table { max-width: 100%; overflow: auto; }
.est-table td, .est-table th { white-space: normal; overflow-wrap: anywhere; }
.est-muted, .est-meta, .est-total small { color: var(--muted); font-size: 13px; }
.est-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.est-machine { border: 1px solid var(--line); padding: 12px; border-radius: 10px; background: #f8fafc; display: grid; gap: 6px; }
.est-machine h3 { margin: 0; font-size: 15px; }
.est-machine p { margin: 0; color: var(--muted); font-size: 13px; }
.est-total { display: grid; gap: 3px; font-weight: 700; color: #1d4ed8; }
.est-total strong { font-size: 21px; }
.est-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; }
.est-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; background: #e0f2fe; color: #0369a1; font-size: 12px; font-weight: 650; white-space: nowrap; }
.est-badge.cancelado, .est-badge.ausente, .est-badge.alerta, .est-badge.mantenimiento { background: #fee2e2; color: #b91c1c; }
.est-badge.realizado, .est-badge.ok, .est-badge.operativo, .est-badge.aceptado { background: #dbeafe; color: #1d4ed8; }
.est-badge.online, .est-badge.equipo { background: #e0e7ff; color: #3730a3; }
.est-badge.saldo, .est-badge.pendiente { background: #fef3c7; color: #92400e; }
.est-wa { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #e8eeff; color: #1d4ed8; font-size: 12px; font-weight: 650; text-decoration: none; border: 1px solid #bfdbfe; white-space: nowrap; }
.est-wa:hover { background: #dbeafe; }
.est-facts { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 12px 0; }
.est-facts dt { font-size: 12px; color: var(--muted); }
.est-facts dd { margin: 2px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.est-alert-box { margin-top: 10px; padding: 9px 12px; border-radius: 9px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13px; }
.est-tech-box { margin-top: 8px; padding: 9px 12px; border-radius: 9px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 13px; }
.est-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.est-history { padding: 13px 0; border-top: 1px solid var(--line); }
.est-history h3, .est-history p { margin: 5px 0; }
.est-history h3 { font-size: 16px; }
.est-sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.est-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.est-col { border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; padding: 12px; display: grid; gap: 10px; }
.est-col-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.est-col-head h3 { margin: 0; font-size: 15px; }
.est-slot { background: #fff; border: 1px solid #dbeafe; border-left: 4px solid #2563eb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 5px; }
.est-slot.realizado { border-left-color: #1d4ed8; opacity: .9; }
.est-slot.cancelado, .est-slot.ausente { border-left-color: #dc2626; opacity: .7; }
.est-online-wrap { max-width: 720px; margin: 0 auto; padding: 18px 14px 44px; display: grid; gap: 14px; }
.est-online-hero { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #38bdf8 100%); color: #fff; border-radius: 16px; padding: 22px; }
.est-online-hero h1 { margin: 4px 0 6px; font-size: 24px; color: #fff; }
.est-online-hero p { margin: 0; opacity: .94; font-size: 14px; }
.est-print main { max-width: 780px; margin: 0 auto; padding: 20px; }
.est-print-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.est-sign-row { display: flex; justify-content: space-around; gap: 24px; margin-top: 40px; flex-wrap: wrap; text-align: center; }
.est-sign-row > div { min-width: 210px; border-top: 1px solid #94a3b8; padding-top: 8px; font-size: 13px; }
.est-money-pos { color: #1d4ed8; font-weight: 700; }

@media (max-width: 670px) {
    .panel-title, .page-head { flex-wrap: wrap; }
    .est-cards table, .est-cards tbody { display: block; }
    .est-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .est-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .est-cards td { display: block; padding: 0; border: 0; }
    .est-cards td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
    .est-cell-title { grid-column: 1 / -1; font-weight: 700; }
}
@media print {
    body.est-print { background: #fff; color: #000; }
    .est-print .est-panel { border: 0; box-shadow: none; }
    .est-print-nav { display: none; }
}
