/* Donavita – small additions of the Laravel pages on top of base.css (the approved design): flash notices, cookie
   notice, demo ribbon, the appearance switches (.noanim / .noglass / .no3d on <html>), live maps (Leaflet pins), dialogs,
   panel extras, pagination numbers, the placeholder box. Colours only through the design tokens. */
.demo-ribbon{background:var(--deep);color:var(--deep-ink);font-size:13px;text-align:center;padding:7px 16px;line-height:1.4}
.flash-wrap{padding-top:16px}
.notice.flash{margin-bottom:14px}
.pmain>.notice.flash:first-child{margin-top:0}
.cookie{position:fixed;left:16px;bottom:16px;z-index:65;max-width:420px;display:flex;gap:14px;align-items:center;padding:14px 16px;box-shadow:var(--sh-3)}
.cookie p{margin:0}
.toast{max-width:calc(100vw - 32px);text-align:center}

/* Admin › Appearance switches */
.noanim *,.noanim *::before,.noanim *::after{animation:none!important;transition:none!important}
.noanim .rv{opacity:1!important;transform:none!important}
.noglass .glass{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.noglass .glass-dk{background:var(--deep)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.noglass .btn-glass{background:rgba(255,255,255,.2);-webkit-backdrop-filter:none;backdrop-filter:none}
.no3d .ill{display:none!important}
.no3d .ill-alt{display:inline-grid!important}
.ill-alt{display:none}
.noinstall [data-install]{display:none!important}

/* live maps: Leaflet inside the design's .map (the static fallback is hidden once the map runs) */
.map.live-map>svg,.map.live-map>.mpin,.map.live-map>.rad,.map.live-map>.me,.map.live-map>.mctl{display:none}
.map.live-map{z-index:0}
.map .leaflet-container,.map.leaflet-container{font:inherit;background:var(--surface2)}
.dv-pin{background:none;border:0}
.dv-pin .mpin{position:relative;transform:none;display:grid;justify-items:center}
.dv-pin .mpin b{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 4px;border-radius:50%;border:3px solid #fff;color:#fff;font:800 12px/1 var(--f-h);
 background:radial-gradient(circle at 34% 28%,#FF7A8B 0,#E31C3C 32%,#A90C27 72%,#62081A 100%);box-shadow:0 6px 14px -6px rgba(110,15,34,.7)}
.dv-pin .mpin.k-org b,.dv-pin .mpin.k-camp b{background:var(--wine-btn)}
.dv-pin .mpin.k-me b{background:#2F6FDE;min-width:18px;height:18px}
.dv-pin .mpin.crit b{box-shadow:0 0 0 5px color-mix(in srgb,var(--red) 30%,transparent)}
[data-theme=dark] .leaflet-control-attribution{background:rgba(26,12,16,.8);color:var(--muted)}
[data-theme=dark] .leaflet-control-attribution a{color:var(--wine)}
[data-theme=dark] .leaflet-bar a{background:var(--surface);color:var(--ink);border-color:var(--line)}

/* dialogs (<x-modal>) */
dialog.dlg{border:1px solid var(--line);padding:22px;max-width:min(560px,calc(100vw - 32px));width:100%;color:var(--ink);background:var(--surface)}
dialog.dlg::backdrop{background:rgba(20,4,8,.5)}

/* panels */
.side .foot form{margin:0}
.side .foot button.nv{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--deep-muted);font-weight:600;font-size:14.5px;min-height:42px;width:100%;text-align:left}
.side .foot button.nv:hover{background:rgba(255,255,255,.07);color:#fff}
.side .role .ri{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;flex:none}
.pager .pg-n{display:flex;gap:4px}
.pager .pg-n a{display:inline-grid;place-items:center;min-width:36px;height:36px;border-radius:10px;font-weight:600}
.pager .pg-n a.on{background:var(--red-soft);color:var(--red-soft-ink)}
@media (max-width:640px){.pager .pg-n{display:none}}
.ph-box code{font-size:13px;background:var(--surface2);padding:2px 6px;border-radius:6px}
.in.is-bad,.is-bad .in{border-color:var(--red)}
.err{color:var(--red);font-size:13px;font-weight:600}

/* (QA) public header: "More" takes the extra links from 1199 px down (a signed-in name + "Request blood" no longer push the
   bar past the screen between 1100 and 1160 px); .hdr.fold is set by dv.js when long admin labels / translations still overflow */
@media (max-width:1199px){.nav .xtra{display:none}.more{display:block}}
.hdr.fold .nav .xtra{display:none}.hdr.fold .more{display:block}
.hdr.fold2 .nav{display:none}.hdr.fold2 .burger{display:inline-grid}
/* (QA) tables: a visually hidden header (.sr, absolute) inside a wide scrolled table stays inside the scroller instead of
   widening the whole phone page (was 750–900 px wide on panel pages) */
.tw{position:relative}
.sr{top:0;left:0}
/* (QA) dark theme map without a dark tile service: the light OpenStreetMap tiles darkened (keyless) */
.leaflet-tile-pane .dv-dim{filter:invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.35)}
.map .leaflet-control-attribution{font-size:10.5px;line-height:1.5;padding:0 6px}
.map .leaflet-control-attribution a{font-size:inherit}
/* (QA) the side column keeps its dark colour below the first screen (full-page screenshots, long pages): the grid column
   itself is painted, the sticky menu stays as it is; ?shot makes the menu as tall as the page (base.css) */
@media (min-width:1100px){.app{background:linear-gradient(to right,var(--deep2) 268px,transparent 268px)}}
/* (QA) wide lists (gift ledger, matched donors, donations log): the second line under a name is cut with "…" so the table
   fits its card at 1280 px like the design (the full text is on the person's / gift's page) */
.tbl-cut .who>div{min-width:0}
.tbl-cut .who small{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbl-cut td,.tbl-cut th{padding-left:10px;padding-right:10px}.tbl-cut td:first-child,.tbl-cut th:first-child{padding-left:16px}
