/* One action row acts on the highlighted visit; cards remain compact selectors. */
#patient-calendar.pc-appointments-mode .pc-split-workspace{
 grid-template-rows:auto auto auto auto auto minmax(0,1fr);
 grid-template-areas:"navigation navigation" "notices notices" "filters filters" "controls controls" "actions actions" "appointments details";
}
#patient-calendar.pc-appointments-mode .pc-selection-actions{
 grid-area:actions;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px 15px;min-width:0;
 margin:0 0 10px;padding:9px 11px;border:1px solid #d3e1d8;border-radius:8px;background:#f7faf8;color:#365640;
}
#patient-calendar.pc-appointments-mode .pc-selection-actions.has-selection{border-color:#99bba7;background:#eef6f1}
#patient-calendar .pc-selection-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 220px;line-height:1.4}
#patient-calendar .pc-selection-copy strong{font-size:.8rem;font-weight:700;color:#31583d}
#patient-calendar .pc-selection-copy>span{font-size:.76rem;overflow-wrap:anywhere;color:#5b7062}
#patient-calendar .pc-selection-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;flex:0 1 auto}
#patient-calendar .pc-selection-buttons>button,#patient-calendar .pc-selection-buttons .pc-disabled-action>button{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:80px;min-height:34px;margin:0;padding:6px 10px;
 border:1px solid #bfd4c6;border-radius:6px;background:#fff;color:#315c40;font-size:.77rem;font-weight:600;line-height:1.4;white-space:normal;
}
#patient-calendar .pc-selection-buttons .pc-disabled-action{display:inline-flex;min-width:0}
#patient-calendar .pc-selection-buttons button:disabled{background:#f0f3f1;color:#829087;border-color:#dce4de;cursor:default;opacity:1}
#patient-calendar .pc-selection-buttons .pn-card-button.has-unread{background:#e3f0e8;color:#215d3b;border-color:#8db29b}
#patient-calendar .pc-selection-buttons button:focus-visible,#patient-calendar .pc-compact-card[data-pc-selectable]:focus-visible{outline:3px solid #76a68b;outline-offset:2px}
#patient-calendar .pc-compact-card[data-pc-selectable]{cursor:pointer}
#patient-calendar .pc-compact-card[data-pc-selectable]:hover{border-color:#8eb39d}
#patient-calendar.pc-appointments-mode .pc-card-summary{margin-bottom:2px}
#patient-calendar .pc-compact-card .pc-status-next{font-size:.69rem;font-weight:650}
@media(max-width:1000px){
 #patient-calendar .pc-selection-copy{flex-basis:100%}
 #patient-calendar .pc-selection-buttons{flex:1 1 100%}
 #patient-calendar .pc-selection-buttons>button,#patient-calendar .pc-selection-buttons .pc-disabled-action>button{min-width:0}
}
@media(max-width:760px){
 #patient-calendar.pc-appointments-mode .pc-split-workspace{grid-template-rows:auto auto auto auto auto minmax(100px,1fr) minmax(130px,.8fr);grid-template-areas:"navigation" "notices" "filters" "controls" "actions" "appointments" "details"}
 #patient-calendar.pc-appointments-mode .pc-split-workspace:has(.pc-sidepanel[data-pane-mode="empty"]){grid-template-rows:auto auto auto auto auto minmax(0,1fr) 0}
 #patient-calendar.pc-appointments-mode .pc-selection-actions{padding:8px;gap:7px;margin-bottom:8px}
 #patient-calendar .pc-selection-copy{flex-basis:100%;gap:2px}
 #patient-calendar .pc-selection-copy strong{font-size:.72rem}
 #patient-calendar .pc-selection-copy>span{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #patient-calendar .pc-selection-buttons{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;width:100%;gap:5px;padding-bottom:2px}
 #patient-calendar .pc-selection-buttons>button,#patient-calendar .pc-selection-buttons .pc-disabled-action>button{width:auto;min-width:74px;min-height:36px;padding:5px 7px;font-size:.73rem;flex:none}
 #patient-calendar .pc-selection-buttons .pc-disabled-action{flex:none}
 #patient-calendar .pc-selection-buttons .pc-action-long{display:none}
 #patient-calendar .pc-selection-buttons .pc-action-short{display:inline}
}
@media print{#patient-calendar .pc-selection-actions{display:none!important}}
