/* Release additions (release/complete): GDPR page, storage & photo archive, cleaner home, dashboard trends, property thumbnails,
   absence filters, hours range, table pagination, touch drag & drop. Colours only via theme tokens (light + dark). */

/* ---------- table pagination (ui.js paginate) ---------- */
.tbl-pager { border-top: 1px solid var(--border); }
.mob-pager { margin-top: 10px; padding: 8px 0 0; border-top: 1px solid var(--border); }

/* ---------- dashboard trend hints ---------- */
.db-trend { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.db-trend.up { color: var(--success); } .db-trend.down { color: var(--text-2); } .db-trend.new { color: var(--danger); }

/* ---------- customer detail: property thumbnails ---------- */
.md-props > li.md-prop { flex-direction: row; align-items: center; gap: 12px; }
.md-prop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-thumb { flex: 0 0 auto; width: 72px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); position: relative; display: block; }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-thumb-art { background: var(--info-bg); }
.md-thumb-art.tint-1 { background: var(--warning-bg); } .md-thumb-art.tint-2 { background: var(--success-bg); }
.md-thumb-art i { position: absolute; display: block; border-radius: 3px; }
.md-thumb-art .a1 { left: 8px; top: 8px; width: 18px; height: 14px; background: var(--surface); opacity: .9; }
.md-thumb-art .a2 { left: 30px; bottom: 9px; width: 30px; height: 12px; border-radius: 6px; background: var(--info); opacity: .55; }
.md-thumb-art.tint-1 .a2 { background: var(--st-progress); } .md-thumb-art.tint-2 .a2 { background: var(--success); }
.md-thumb-art .a3 { left: 0; right: 0; bottom: 0; height: 6px; border-radius: 0; background: var(--text-3); opacity: .18; }

/* ---------- absences report filters / hours per object range ---------- */
.ab-filters { gap: 8px; align-items: center; }
.ab-filters .ab-emp { min-width: 200px; flex: 1 1 200px; max-width: 280px; }
.ab-filters .ab-date { gap: 6px; } .ab-filters .ab-date .input { width: 150px; }
.ho-range { gap: 6px; } .ho-range .input { width: 150px; }
@media (max-width: 560px) { .ab-filters .ab-emp, .ab-filters .ab-date, .ab-filters select { flex: 1 1 100%; max-width: none; } .ab-filters .ab-date .input { flex: 1; width: auto; }
  .ho-range { flex: 1 1 100%; } .ho-range .input { flex: 1; width: auto; min-width: 0; } }

/* ---------- my company: storage & photo archive ---------- */
.co-store { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.co-store-bar { height: 12px; border-radius: 6px; }
.co-store-parts > li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.co-store-parts > li:last-child { border-bottom: 0; }
.co-hint { align-self: end; }

/* ---------- GDPR page ---------- */
.pv-pick { display: flex; flex-direction: column; gap: 12px; }
.pv-picker { max-width: 520px; }
.pv-sections > li, .pv-reqs > li { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--border); }
.pv-reqs > li { flex-direction: column; align-items: flex-start; gap: 2px; }
.pv-sections > li:last-child, .pv-reqs > li:last-child { border-bottom: 0; }
.pv-exports { gap: 8px; align-items: center; }
.pv-h { font-size: var(--fs-md); font-weight: 600; margin: 14px 0 6px; }
.pv-h:first-of-type { margin-top: 4px; }
.pv-list { margin: 0 0 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); }
.pv-erase .alert { margin-bottom: 10px; }
.pv-erase .form { margin-top: 14px; gap: 12px; }
.pv-erase .check { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); }
.pv-erase .check input { margin-top: 3px; }

/* ---------- cleaner home ---------- */
.ch-hero { margin-bottom: 16px; }
.ch-hero h1 { font-size: var(--fs-2xl); margin: 4px 0 6px; }
.ch-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 420px) { .ch-links { grid-template-columns: 1fr; } }

/* ---------- shift calendar: touch drag & drop (long press) ---------- */
.pl-pill[data-drag] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pl-pill.pl-hold { outline: 2px solid var(--primary); outline-offset: 1px; }
body.pl-dragging { -webkit-user-select: none; user-select: none; }
