/* =========================================================================
   LOCKER OPS — Premium-minimal design system
   Light/dark via [data-theme] on <html>. No build step.
   ========================================================================= */

:root {
  /* Brand */
  --accent: #2f6df6;
  --accent-soft: #eaf1ff;
  --accent-press: #1f57d6;

  /* Status palette */
  --ok: #1f9d6b;        --ok-soft: #e4f6ee;
  --warn: #d98a00;      --warn-soft: #fdf2dc;
  --danger: #d6453d;    --danger-soft: #fbe7e6;
  --info: #5468d4;      --info-soft: #eceffd;

  /* Light theme surfaces */
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --elevated: #ffffff;
  --line: #e7e9ef;
  --line-strong: #d8dbe4;
  --text: #1b1e27;
  --text-2: #5a6172;
  --text-3: #8b91a1;
  --shadow: 0 1px 2px rgba(18,22,33,.04), 0 8px 24px rgba(18,22,33,.06);
  --shadow-sm: 0 1px 2px rgba(18,22,33,.06);

  /* Geometry / type */
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --sp: 8px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font: 'Noto Sans Georgian', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1320px;
}

html[data-theme='dark'] {
  --accent: #5b8bff;
  --accent-soft: #1b2540;
  --accent-press: #769dff;
  --ok: #43c08a;        --ok-soft: #15291f;
  --warn: #e2a437;      --warn-soft: #2c2410;
  --danger: #ef6a62;    --danger-soft: #2e1716;
  --info: #8595ee;      --info-soft: #1a1f33;
  --bg: #0e1016;
  --surface: #161922;
  --surface-2: #1b1f2a;
  --elevated: #1d212c;
  --line: #262b38;
  --line-strong: #313747;
  --text: #eef0f6;
  --text-2: #a7adbd;
  --text-3: #767d90;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Global icon sizing — every svg from the icon helper carries class "ic".
   Context rules below (.btn .ic, .nav-item .ic, .ic-lg) override this. */
svg.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ic-lg { width: 40px; height: 40px; flex: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); }

/* ---------------- Layout shell ---------------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand .name { font-weight: 700; letter-spacing: .4px; font-size: 15px; }
.brand .name small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; letter-spacing: .3px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500; position: relative;
  transition: background .15s, color .15s;
}
.nav-item .ic { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .badge { margin-left: auto; }
.sidebar .spacer { flex: 1; }
.pm-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
}
.pm-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.pm-card .meta { overflow: hidden; }
.pm-card .meta b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card .meta span { font-size: 11px; color: var(--text-3); }

/* ---------------- Topbar ---------------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .crumbs { font-size: 13px; color: var(--text-3); }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.search {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; color: var(--text-3);
}
.search input { border: none; outline: none; background: none; color: var(--text); flex: 1; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--line); background: var(--surface); position: relative;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }

.content { padding: 26px; max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: .15s; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn .ic { width: 16px; height: 16px; }

/* ---------------- Cards / surfaces ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card.pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--text-3); }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.card-body { padding: 18px; }

.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.page-head .lead { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.page-head .head-actions { margin-left: auto; display: flex; gap: 8px; }

.grid { display: grid; gap: 16px; }
.grid.kpi { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: 1.6fr 1fr; align-items: start; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .grid.kpi { grid-template-columns: repeat(2,1fr); } .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }

/* KPI */
.kpi-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.kpi-card .top { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.kpi-card .kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi-card .val { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.kpi-card .delta { font-size: 12px; color: var(--text-3); }
.kpi-card .delta.up { color: var(--ok); } .kpi-card .delta.down { color: var(--danger); }
.kpi-ic.green { background: var(--ok-soft); color: var(--ok); }
.kpi-ic.amber { background: var(--warn-soft); color: var(--warn); }
.kpi-ic.red { background: var(--danger-soft); color: var(--danger); }

/* ---------------- Badges / chips ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok    { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn  { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.danger{ background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info  { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.accent{ background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; transition: .15s; }
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- Tables ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table.rows tbody tr:hover { background: var(--surface-2); cursor: pointer; }
.table td.right, .table th.right { text-align: right; }
.cell-strong { font-weight: 600; }
.cell-sub { color: var(--text-3); font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; letter-spacing: -.2px; }

/* ---------------- Progress ---------------- */
.bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar.ok > span { background: var(--ok); } .bar.warn > span { background: var(--warn); }
.progress-inline { display: flex; align-items: center; gap: 10px; }
.progress-inline .bar { flex: 1; min-width: 80px; }
.progress-inline .pct { font-size: 12px; font-weight: 600; color: var(--text-2); width: 34px; text-align: right; }

.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--line) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 19px; font-weight: 700; }

/* ---------------- Reminders / task list ---------------- */
.reminder { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.reminder:last-child { border-bottom: none; }
.reminder .rmk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.reminder .rmk.danger { background: var(--danger-soft); color: var(--danger); }
.reminder .rmk.warn { background: var(--warn-soft); color: var(--warn); }
.reminder .rmk.info { background: var(--info-soft); color: var(--info); }
.reminder .rmk.accent { background: var(--accent-soft); color: var(--accent); }
.reminder .body { flex: 1; min-width: 0; }
.reminder .body b { font-size: 13.5px; font-weight: 600; }
.reminder .body p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.reminder .due { font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text-3); }
.reminder .due.over { color: var(--danger); }

/* ---------------- Checklist ---------------- */
.check { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: .15s; color: transparent; }
.check.done .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check .label { flex: 1; }
.check.done .label { color: var(--text-3); text-decoration: line-through; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 14px; font-weight: 600; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- Timeline / stepper ---------------- */
.stepper { display: flex; gap: 0; }
.stepper .node { flex: 1; text-align: center; position: relative; padding-top: 30px; }
.stepper .node::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper .node:first-child::before { left: 50%; }
.stepper .node:last-child::before { right: 50%; }
.stepper .dot { position: absolute; top: 1px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.stepper .node.done .dot { background: var(--ok); border-color: var(--ok); }
.stepper .node.current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper .node.done::before, .stepper .node.current::before { background: var(--ok); }
.stepper .node .t { font-size: 12px; font-weight: 600; }
.stepper .node .d { font-size: 11px; color: var(--text-3); }

/* ---------------- Definition grid ---------------- */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.dl .row { background: var(--surface); padding: 12px 14px; }
.dl .row span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-3); margin-bottom: 3px; }
.dl .row b { font-weight: 600; font-size: 13.5px; }
@media (max-width: 720px) { .dl { grid-template-columns: 1fr; } }

/* ---------------- Letter / comms ---------------- */
.letter-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); align-items: flex-start; background: var(--surface); }
.letter-num { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.letter-card .lc { flex: 1; min-width: 0; }
.letter-card .lc h4 { margin: 0 0 3px; font-size: 14px; }
.letter-card .lc p { margin: 0; font-size: 12px; color: var(--text-3); }

.timeline-list { position: relative; padding-left: 22px; }
.timeline-list::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px 0; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-item.muted::before { border-color: var(--line-strong); }
.tl-item .when { font-size: 11px; color: var(--text-3); }
.tl-item b { font-size: 13.5px; }
.tl-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }

/* Letter composer */
.composer { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .composer { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 360px; resize: vertical; line-height: 1.7; }

/* Notice / discipline guard */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); align-items: flex-start; }
.notice .ic { color: var(--accent); flex: none; }
.notice.guard { background: var(--accent-soft); border-color: transparent; }
.notice.guard .ic { color: var(--accent); }
.notice b { font-size: 13.5px; }
.notice p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }

.tag-enh { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: var(--r-pill); }
.tag-enh svg.ic { width: 12px; height: 12px; }
.notice > svg.ic { width: 20px; height: 20px; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; padding-bottom: 4px; }
.cal .day { min-height: 92px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cal .day.out { background: var(--surface-2); opacity: .55; }
.cal .day.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cal .day .num { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cal .day.today .num { color: var(--accent); }
.cal-event { font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.inst { background: var(--ok-soft); color: var(--ok); }
.cal-event.review { background: var(--warn-soft); color: var(--warn); }

/* Risk heatmap cell */
.risk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.lvl-დაბალი { background: var(--ok); } .lvl-საშუალო { background: var(--warn); } .lvl-მაღალი { background: var(--danger); }

/* Photo tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.tile { aspect-ratio: 4/3; border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--text-3); }
.tile.filled { border-style: solid; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); color: var(--accent); }

/* Toast */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--elevated); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); padding: 12px 15px; min-width: 240px; animation: slideIn .25s ease; }
.toast .ic { color: var(--ok); }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Misc helpers */
.muted { color: var(--text-3); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin: 0 0 12px; }
.hr { height: 1px; background: var(--line); border: none; margin: 18px 0; }
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--info-soft); color: var(--info); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }

/* Responsive sidebar collapse */
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; transform: translateX(-100%); transition: transform .25s; width: var(--sidebar-w); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-toggle { display: grid !important; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
}
.menu-toggle { display: none; }

/* ---------------- Modal + inline CRUD controls ---------------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(10,12,18,.5); backdrop-filter: blur(2px); z-index: 200; display: grid; place-items: center; padding: 20px; animation: slideIn .15s ease; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; max-width: 460px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-body { padding: 18px; overflow: auto; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ibtn { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text-3); border: 1px solid transparent; background: transparent; }
.ibtn:hover { background: var(--surface-2); color: var(--text); }
.ibtn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.ibtn svg.ic { width: 15px; height: 15px; }
.row-acts { display: inline-flex; gap: 2px; white-space: nowrap; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row .check { flex: 1; }
.tile.photo { position: relative; }
.tile.photo a { display: block; width: 100%; height: 100%; }
.photo-del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s; border: none; }
.tile.photo:hover .photo-del { opacity: 1; }
.photo-del:hover { background: var(--danger); }
.photo-del svg.ic { width: 13px; height: 13px; }
