.stats.with-unplanned{grid-template-columns:repeat(5,minmax(0,1fr))}.stats.unplanned-only{grid-template-columns:minmax(220px,300px)}
.unplanned-pool{border:1px solid #426174;background:#102536;border-radius:10px;padding:18px;margin-bottom:22px}.unplanned-pool[hidden]{display:none}.unplanned-pool-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.unplanned-pool h2{font-size:18px;margin:0 0 6px}.unplanned-pool p{font-size:12px;margin:0}.unplanned-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.unplanned-item{background:#0b1c2a;border:1px solid #294456;border-radius:7px;padding:10px;min-width:0}.unplanned-item>header{font-size:11px;color:var(--muted);margin-bottom:8px}.unplanned-item>.slot{display:grid;width:100%;min-height:90px;cursor:grab;margin-bottom:10px}.unplanned-item>.slot strong{white-space:normal}.unplanned-item>.slot .details{justify-content:flex-start}.unplanned-item>.slot .time{font-size:10px}.appointment-staff-choice[hidden]{display:none}.unplanned-help{margin-top:0!important}.unplanned-count.stat-active{border-color:var(--yellow)}
@media(max-width:1100px){.stats.with-unplanned{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.stats.with-unplanned{grid-template-columns:repeat(2,minmax(0,1fr))}.stats.unplanned-only{grid-template-columns:1fr}.unplanned-pool{padding:12px}.unplanned-pool-heading{align-items:flex-start}.unplanned-cards{grid-template-columns:minmax(0,1fr)}.unplanned-item>.slot{cursor:pointer}}

.unplanned-cards{max-height:230px;overflow:auto;overscroll-behavior:contain;padding-right:4px}

.appointment-datetime-fields[hidden]{display:none}.appointment-datetime-fields{padding:14px;border:1px solid #355064;border-radius:8px}.slot.pending{background:var(--panel);border-color:var(--line)}.slot.pending .time-label{white-space:normal;text-align:center}#status-required-help{margin:0}

.unplanned-cards{display:flex;flex-wrap:nowrap;max-height:none;overflow-x:auto;overflow-y:hidden;gap:12px;padding:2px 2px 12px;overscroll-behavior-x:contain}.unplanned-item{flex:0 0 290px;max-width:85vw}.unplanned-pool.drop-target,.unplanned-count.drop-target{outline:3px solid var(--yellow);outline-offset:2px;background:#254153}.team-assignment[hidden]{display:none}.team-assignment fieldset{margin-top:14px}.team-leader-icon{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;fill:none;stroke:currentColor;stroke-width:1.8;margin-right:.35em;flex-shrink:0}#content .legend .agreed-legend-mark{display:inline-flex;width:34px;height:23px;border:1px solid #f33d4f;border-radius:4px;align-items:center;justify-content:center}#content .legend .agreed-legend-mark svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}

.personal-absence-options{display:flex;justify-content:flex-end;align-items:center;margin:0 0 12px;gap:12px}.personal-absence-options .check{margin:0}.linked-appointment-icon{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;margin-right:.35em;flex-shrink:0;fill:currentColor}.rest-appointment-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.appointment-staff-choice>label.check{margin-bottom:12px}.appointment-staff-choice>.team-picker{margin-top:0}

.cell-add-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.cell-add-actions>.empty-slot,.cell-add-actions>.mobile-add{flex:1 1 75px;width:auto;margin:0;font-size:11px;padding:8px 5px;min-height:34px}.cell-add-actions>.add-absence{border-style:dashed}

/* Matching top create actions; day-cell actions keep their neutral dashed appearance. */
.topbar .actions>button[data-action="appointment"],.topbar .actions>button[data-action="absence"]{box-sizing:border-box;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:700;line-height:1.5;transition:background .15s,filter .15s}
.topbar .actions>button[data-action="appointment"],.topbar .actions>button[data-action="appointment"]:hover{background:var(--yellow)!important;border-color:var(--yellow)!important;color:#111b25!important}
.topbar .actions>button[data-action="absence"],.topbar .actions>button[data-action="absence"]:hover{background:var(--red,#ce3446)!important;border-color:var(--red,#ce3446)!important;color:#fff!important}
.topbar .actions>button[data-action="appointment"]:hover,.topbar .actions>button[data-action="absence"]:hover{filter:brightness(1.08)}
.topbar .actions>button[data-action="appointment"]:focus-visible,.topbar .actions>button[data-action="absence"]:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.cell-add-actions>button[data-action^="newabsence:"]{border-style:dashed}
