.pel-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);
}
.pel-stack { display: grid; gap: 14px; }
.pel-form { max-width: 820px; }
.pel-wide { grid-column: 1 / -1; }
.pel-top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pel-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;
}
.pel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pel-form > .pel-actions, .pel-panel > details { margin-top: 12px; }
.pel-panel > details { border-top: 1px solid var(--line); padding-top: 11px; }
.pel-panel details > summary { cursor: pointer; font-weight: 680; }
.pel-panel details form { margin-top: 13px; }
.pel-table { max-width: 100%; overflow: auto; }
.pel-table td, .pel-table th { white-space: normal; overflow-wrap: anywhere; }
.pel-services {
    margin: 14px 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px; min-width: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px;
}
.pel-services legend { padding: 0 5px; font-weight: 650; }
.pel-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; cursor: pointer; }
.pel-services .pel-check { background: #f1f5ff; border: 1px solid #dbeafe; border-radius: 8px; }
.pel-services .pel-check:has(input:checked) { background: #e8eeff; border-color: #2563eb; color: #1d4ed8; }
.pel-check input:not([type=file]) { width: auto; margin: 0; flex: none; }
.pel-check small, .pel-muted, .pel-meta, .pel-total small { color: var(--muted); font-size: 12.5px; }
.pel-total { display: grid; gap: 3px; font-weight: 700; color: #1d4ed8; }
.pel-total strong { font-size: 21px; }
.pel-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; }
.pel-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; }
.pel-badge.cancelado, .pel-badge.ausente, .pel-badge.alerta { background: #fee2e2; color: #b91c1c; }
.pel-badge.atendido, .pel-badge.ok { background: #dbeafe; color: #1d4ed8; }
.pel-badge.online { background: #e0e7ff; color: #3730a3; }
.pel-badge.sena { background: #fef3c7; color: #92400e; }
.pel-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; }
.pel-wa:hover { background: #dbeafe; }
.pel-negative { color: #b91c1c; font-weight: 700; }
.pel-positive { color: #1d4ed8; font-weight: 700; }
.pel-facts { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 12px 0; }
.pel-facts dt { font-size: 12px; color: var(--muted); }
.pel-facts dd { margin: 2px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.pel-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.pel-history { padding: 13px 0; border-top: 1px solid var(--line); }
.pel-history h3, .pel-history p { margin: 5px 0; }
.pel-history h3 { font-size: 16px; }
.pel-sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.pel-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.pel-col { border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; padding: 12px; display: grid; gap: 10px; }
.pel-col-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pel-col-head h3 { margin: 0; font-size: 15px; color: #0f172a; }
.pel-slot-card { background: #fff; border: 1px solid #dbeafe; border-left: 4px solid #2563eb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 5px; box-shadow: 0 2px 8px rgba(29, 78, 216, .05); }
.pel-slot-card.atendido { border-left-color: #1d4ed8; opacity: .9; }
.pel-slot-card.cancelado, .pel-slot-card.ausente { border-left-color: #dc2626; opacity: .7; }
.pel-slot-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.pel-color-box { padding: 10px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; margin: 10px 0; font-size: 13.5px; }
.pel-online-wrap { max-width: 720px; margin: 0 auto; padding: 18px 14px 44px; display: grid; gap: 14px; }
.pel-online-hero { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #38bdf8 100%); color: #fff; border-radius: 16px; padding: 22px; }
.pel-online-hero h1 { margin: 4px 0 6px; font-size: 24px; color: #fff; }
.pel-online-hero p { margin: 0; opacity: .94; font-size: 14px; }
.pel-print main { max-width: 720px; margin: 0 auto; padding: 20px; }
.pel-print-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

@media (max-width: 670px) {
    .panel-title, .page-head { flex-wrap: wrap; }
    .pel-cards table, .pel-cards tbody { display: block; }
    .pel-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .pel-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); }
    .pel-cards td { display: block; padding: 0; border: 0; }
    .pel-cards td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
    .pel-cell-title { grid-column: 1 / -1; font-weight: 700; }
}
@media print {
    body.pel-print { background: #fff; color: #000; }
    .pel-print .pel-panel { border: 0; box-shadow: none; }
    .pel-print-nav { display: none; }
}
