/* Admin > Hand over work (handover.html). Phone width first: one column, 16px gutters, 44px targets. */
/* The page is on the master page design (Documents): library.css draws main, the head and the gutters. */
.handover-main { min-width: 0; }
.library-shell > .handover-main { background: #fff; }
/* The form sits on the page, as Documents' register does: no box of its own. */
.handover-panel { display: grid; gap: 16px; margin-top: 20px; max-width: 960px; }
.handover-people, .handover-filters { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) {
  .handover-people { grid-template-columns: 1fr 1fr; }
  .handover-filters { grid-template-columns: 1fr 1fr auto auto; }
}
.handover-panel label { display: grid; gap: 6px; font-weight: 600; }
.handover-panel select, .handover-panel input[type="search"], .handover-panel textarea { min-height: 44px; font: inherit; padding: 8px 10px; border: 1px solid var(--line, #c4cad4); border-radius: 8px; width: 100%; box-sizing: border-box; }
.handover-panel button { min-height: 44px; }
.handover-list { display: grid; gap: 12px; }
.handover-case { margin: 0; padding: 12px; border: 1px solid var(--line, #d8dde6); border-radius: 10px; }
.handover-case legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 4px; }
.handover-case legend label, .handover-case li label { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 44px; }
.handover-case input[type="checkbox"] { width: 20px; height: 20px; flex: none; }
.handover-case ul { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 2px; }
.handover-case small, .handover-process { color: var(--muted, #5b6474); font-size: 0.875rem; }
.handover-case li small { margin-left: auto; }
.handover-actions { display: flex; justify-content: flex-end; }
.handover-note { margin: 0; color: var(--muted, #5b6474); }
.handover-refused li { margin-bottom: 6px; }
#handover-result h3 { margin: 8px 0 4px; font-size: 1rem; }
#handover-toast { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #1f2937; color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#handover-toast.show { opacity: 1; }

/* Hand Over on a phone (approved mobile design): a short form, nothing runs off the edge, Hand Over sits in a bar at the bottom. */
@media (max-width:640px){.handover-main{max-width:100%;overflow-wrap:anywhere}.handover-main select,.handover-main input:not([type=checkbox]){width:100%;min-height:48px;font-size:16px}.handover-main button{min-height:44px}.handover-actions{position:sticky;bottom:0;z-index:5;margin:0 -12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 16px rgba(16,24,40,.08)}#handover-go{width:100%;min-height:48px}}
/* library.css hides every .secondary under 640px (the Documents head's own buttons); this page's Select All Shown and Clear stay. */
@media (max-width:640px){.handover-filters .secondary{display:inline-block}}
