.aa-filters{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0 .5rem}.aa-filters .btn{gap:.5rem;min-height:44px}.aa-filters .aa-current{background:#17634f;color:#fff}.aa-filters .aa-current .pill{background:#fff;color:#17634f}.aa-filter-help{max-width:78ch;margin:.5rem 0 1rem}.aa-badge{display:inline-block!important;width:fit-content;max-width:100%;padding:.2rem .45rem;border:1px solid #b87a18;border-radius:.45rem;background:#fff1cf;color:#704600;font-size:.72rem!important;font-weight:750;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.aa-badge.aa-waiting{background:#f9f3e7;border-color:#cab998;color:#5c4c30}.aa-explanation{display:block;font-size:.8rem;max-width:40ch;margin:.3rem 0}.plan-booking.aa-needs-attention,.plan-week-booking.aa-needs-attention{background:#fff8e8;border-color:#bb7a14;border-left:4px solid #a96a08}.plan-booking.aa-pending,.plan-week-booking.aa-pending{border-style:dashed;box-shadow:none}.plan-booking.aa-focused,.plan-week-booking.aa-focused{outline:3px solid #205ca5;outline-offset:1px;z-index:6}.aa-focus-summary{margin:1rem 0;border:2px solid #3266a5;scroll-margin-top:1rem}.aa-focus-summary p{margin:.45rem 0}.aa-row-alert{background:#fffaf0}.aa-row-alert .aa-badge{margin:.2rem .15rem .2rem 0}.aa-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;min-width:170px}.aa-service-cell strong,.aa-service-cell small,.aa-staff-cell .aa-badge{display:block}.plan-demand .aa-badge{margin:.35rem .15rem .35rem 0}.plan-booking .aa-badge{font-size:10px!important;padding:1px 3px;flex-shrink:0}.plan-booking .plan-booking-time{flex-shrink:0}.aa-row-alert td{vertical-align:top}@media(max-width:600px){.aa-filters .btn{flex:1 1 145px}.aa-focus-summary .btn{white-space:normal}.aa-filter-help{font-size:.85rem}}

.eq-event.plan-booking.aa-needs-attention{background:#fff6e1;border-color:#b97a15;border-left-color:#a46a0d}.eq-event.plan-booking.aa-pending{border-style:dashed}.eq-event.plan-booking.aa-focused{outline:3px solid #205ca5;z-index:8}
.aa-filters>a{min-width:145px;overflow-wrap:normal;white-space:normal}.aa-filters .pill{flex-shrink:0}
table[data-appointment-list]{min-width:1050px}table[data-appointment-list] td{white-space:normal;overflow-wrap:break-word}table[data-appointment-list] td:first-child{min-width:110px}table[data-appointment-list] td:nth-child(2){min-width:150px}table[data-appointment-list] .aa-service-cell{min-width:140px}table[data-appointment-list] .aa-staff-cell{min-width:180px}table[data-appointment-list] .aa-actions{min-width:190px}.aa-actions>.btn,.aa-actions>button{overflow-wrap:normal}.aa-actions>.pill{flex-basis:100%;width:fit-content}
@media(max-width:600px){
 table[data-appointment-list],table[data-appointment-list] tbody{display:block;width:100%;min-width:0}
 table[data-appointment-list] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 table[data-appointment-list] tr[data-appointment-row]{display:block;border:1px solid #dce6df;border-radius:12px;margin:14px 0;padding:12px}
 table[data-appointment-list] td,table[data-appointment-list] td:first-child,table[data-appointment-list] td:nth-child(2),table[data-appointment-list] .aa-service-cell,table[data-appointment-list] .aa-staff-cell{display:block;min-width:0;width:100%;padding:6px 0;border:0;white-space:normal;overflow-wrap:anywhere}
 table[data-appointment-list] td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:#64776f;margin-bottom:3px}
 table[data-appointment-list] .aa-actions{min-width:0;width:100%;gap:6px}.aa-actions>.btn,.aa-actions>button{flex:1 1 120px;min-width:0}
}
.eq-event.plan-booking{gap:2px}.eq-event.plan-booking>span:first-child,.eq-event.plan-booking .aa-calendar-identity{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;line-height:1.25}.eq-event.plan-booking .aa-calendar-identity strong{font-size:11px}.eq-event.plan-booking .aa-calendar-badges{display:flex;flex-direction:row;gap:3px;flex-shrink:0;white-space:nowrap;overflow:hidden;max-height:17px;line-height:1.3}.eq-event.plan-booking .aa-calendar-badges .aa-badge{white-space:nowrap;font-size:9px!important;padding:0 2px}.eq-event.plan-booking small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plan-booking .aa-calendar-identity{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.plan-booking .aa-calendar-identity strong{font-size:11px}.plan-booking .aa-calendar-badges{display:flex;gap:3px;flex-shrink:0;max-height:17px;overflow:hidden}.plan-booking .aa-calendar-badges .aa-badge{white-space:nowrap;font-size:9px!important;padding:0 2px}.aa-staff-cell .aa-badge{display:table!important}

.common-queue-tools.appointment-filters { gap: .75rem; margin-block: 0 1rem; }
.appointment-filters > label { flex: 1 1 10rem; width: auto; max-width: 16rem; }
.appointment-filters input { width: 100%; min-width: 0; min-height: 48px; }
.appointment-filters > .inline-actions { align-items: center; min-height: 48px; }
@media (max-width: 600px) {
  .appointment-filters > label { flex-basis: 100%; max-width: none; }
}

.appointment-print { margin: 0 auto; max-width: 1100px; padding: 1.5rem; color: #202522; background: #fff; font: 15px/1.4 system-ui, sans-serif; }
.appointment-print h1 { margin: 1rem 0 .5rem; font-size: 1.7em; }
.appointment-print p { margin: .3em 0 .7em; }
.appointment-print-actions { display: flex; align-items: center; gap: 1rem; }
.appointment-print-actions button { padding: .6em 1em; border: 1px solid #185d4d; border-radius: 6px; background: #185d4d; color: #fff; font: inherit; cursor: pointer; }
.appointment-print-actions a { color: #185d4d; }
.appointment-print .table-scroll { overflow-x: auto; }
.appointment-print-table { width: 100%; border-collapse: collapse; }
.appointment-print-table :is(th, td) { padding: .5em; border-bottom: 1px solid #c8d0cb; white-space: normal; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.appointment-print-table th { border-bottom: 2px solid #727c75; }
.appointment-print-table td:first-child span, .appointment-print-table small { display: block; }
.appointment-print-table .aa-actions { display: block; min-width: 0; }
.appointment-print-table .aa-badge { background: transparent; border: 0; color: inherit; font-size: .9em; padding: 0; }
@page appointments { margin: 14mm; }
@media print {
  .appointment-print { page: appointments; max-width: none; margin: 0; padding: 0; color: #000; font-size: 9pt; }
  .appointment-print-actions { display: none; }
  .appointment-print .table-scroll { overflow: visible; }
  .appointment-print-table thead { display: table-header-group; }
  .appointment-print-table tr { break-inside: avoid; }
  .appointment-print-table .aa-row-alert { background: transparent; }
}
