.external-visit-page-title:has(.visit-menu-actions) { padding-left: 0; flex-wrap: wrap; gap: 12px; }
.visit-menu-actions, .pt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-toolbar { justify-content: flex-end; margin-block: 8px 14px; }
.pt-toolbar:empty, .pt-screen [role="alert"]:empty { display: none; }
.pt-screen .modal-title { margin-bottom: 16px; }
.pt-table { max-height: 55vh; overflow: auto; }
.pt-table table { width: 100%; }
.pt-table th, .pt-table td { text-align: center; vertical-align: middle; }
.pt-table th { white-space: nowrap; }
.pt-table tr.pt-zero-attendance, .pt-table tr.pt-zero-attendance > td { background: #fee2e2; color: #991b1b; }
.pt-table .pt-empty { padding: 30px 12px; color: var(--muted); }
.pt-person { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pt-person:hover, .pt-person:focus-visible { text-decoration: underline; }
.pt-person-row { cursor: pointer; }
.pt-person-row:hover td { background: #f5f2ff; }
.pt-date { margin-block: 0 16px; }
.pt-schedule { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; }
.pt-schedule legend { padding-inline: 5px; font-weight: 700; }
.pt-day { display: grid; gap: 5px; }
.pt-day label { display: flex; align-items: center; gap: 6px; }
.pt-day input[type="checkbox"] { width: 18px; height: 18px; }
.pt-ig-option { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; }
.pt-ig-option input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.employee-service-request.pt-ig-card { border-color: #84cbd4; background: linear-gradient(145deg, #eefbfc, #d8f2f5); color: #145b64; }
.employee-service-request.pt-ig-card > span { background: #bce6eb; color: #145b64; }
.employee-service-request.pt-ig-card i { color: #145b64; }
.employee-service-request.pt-ig-card:hover, .employee-service-request.pt-ig-card:focus-visible { border-color: #378b96; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,91,100,.15); }
.pt-screen [hidden] { display: none !important; }
.pt-action-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pt-action-cards > button { min-width: 0; min-height: 60px; padding: 10px 8px; font-size: 12px; line-height: 1.5; white-space: normal; }
.pt-action-cards [data-action="delete"] { color: #b42332; border-color: #f3bec4; background: #fff5f6; }
.pt-action-cards [data-action="delete"]:hover { background: #ffe8eb; border-color: #d97a85; }
.pt-screen .external-visit-toolbar { margin-block-end: 14px; }
.pt-period-filters ~ .pt-results th:first-child, .pt-print th:first-child { width: 4em; }
.pt-period-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.pt-period-filters select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
@media print {
  .pt-print .pt-table { display: block; max-height: none; overflow: visible; box-shadow: none; border: 0; }
  .pt-print .pt-table table { min-width: 0; width: 100%; table-layout: fixed; }
  .pt-print .pt-table :is(th,td) { white-space: normal; overflow-wrap: anywhere; }
  .pt-print .pt-table tr.pt-zero-attendance > td { background: #fee2e2 !important; color: #991b1b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
