/* Ecclivion — 05-anggota.css · Foto anggota, tautan relasi, kontrol seksi, export, CoA, aset
   Pecahan dari styles.css. Urutan pemuatan di index.html dipertahankan. */
/* ---------- Foto anggota, tautan relasi & tabel mini ---------- */
.avatar-s.has-photo, .avatar-l.has-photo{background:var(--sky-100); padding:0; overflow:hidden}
.avatar-s img, .avatar-l img{width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block}

.photo-up{display:flex; flex-direction:column; align-items:center; gap:6px}
.photo-up .avatar-l{cursor:pointer; transition:box-shadow .15s}
.photo-up .avatar-l:hover{box-shadow:0 0 0 3px rgba(240,162,2,.45)}
.photo-btns{display:flex; gap:6px}
.ph-btn{border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.12); color:#fff;
  font:600 10.5px/1 var(--font); padding:5px 9px; border-radius:8px; cursor:pointer}
.ph-btn:hover{background:rgba(255,255,255,.24)}
.ph-btn.danger{border-color:rgba(255,120,120,.6); color:#ffd7d7}

.mem-link{color:var(--blue-600); font-weight:700; text-decoration:none; border-bottom:1px dashed rgba(18,87,166,.45)}
.mem-link:hover{color:var(--gold-600); border-bottom-color:var(--gold-500)}

.table-wrap.mini{margin:0 0 6px; border:1px solid var(--line); border-radius:12px}
.mini-table th{font-size:10.5px; padding:9px 12px}
.mini-table td{padding:9px 12px; font-size:12.5px}
.badge.rel{background:var(--gold-100); color:#8a5b00}
.empty-note{margin:2px 0 8px; padding:12px 14px; border:1px dashed var(--line); border-radius:10px;
  color:var(--muted); font-size:12.5px; background:var(--bg)}

/* ---------- Kontrol tambah/ubah pada seksi & tabel ---------- */
.detail-sect.with-btn{display:flex; align-items:center; justify-content:space-between; gap:10px}
.btn-mini{display:inline-flex; align-items:center; gap:5px; border:1px solid var(--gold-300);
  background:var(--gold-100); color:#7a5200; font:700 11px/1 var(--font);
  padding:6px 10px; border-radius:9px; cursor:pointer; letter-spacing:.02em}
.btn-mini:hover{background:var(--gold-300)}
.btn-mini svg{width:12px; height:12px; stroke:currentColor}

.row-act{white-space:nowrap; text-align:right}
.icon-btn{border:1px solid var(--line); background:#fff; color:var(--blue-600);
  width:26px; height:26px; border-radius:8px; cursor:pointer; font:700 12px/1 var(--font);
  display:inline-flex; align-items:center; justify-content:center; vertical-align:middle}
.icon-btn svg{width:13px; height:13px; stroke:currentColor}
.icon-btn:hover{background:var(--sky-100)}
.icon-btn.danger{color:var(--danger)}
.icon-btn.danger:hover{background:#fdeaea; border-color:#f3c2c2}

.modal.sm{max-width:520px}
.lbl-opt{font-weight:500; color:var(--muted); text-transform:none; letter-spacing:0}
.modal-head .avatar-l svg{width:22px; height:22px; stroke:#fff}

/* ---------- Tombol export pada slicer bar ---------- */
.bar-spacer{flex:1}
.btn.btn-sm{padding:8px 13px; font-size:12px; border-radius:10px}
.btn.btn-sm svg{width:13px; height:13px}
@media (max-width:920px){ .bar-spacer{display:none} }

/* ---------- Chart of Accounts ---------- */
.coa-code{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-weight:700; color:var(--blue-600); font-size:12px}
tr.coa-header td{background:#EEF3FA; border-bottom:1px solid #DCE6F2}
tr.coa-header .coa-name{font-weight:800; color:var(--navy-900); letter-spacing:.01em}
tr.coa-header .coa-code{color:var(--navy-900)}
.coa-table td{vertical-align:top}

/* ---------- Aset tetap: form, ringkasan depresiasi, jurnal ---------- */
.f-hint{margin-top:4px; font-size:10.5px; line-height:1.45; color:var(--muted)}
.f-item input[disabled]{background:#EDF1F7; color:#7A8699; cursor:not-allowed}
.chk-row{display:flex; align-items:center; gap:8px; padding:10px 0 2px}
.chk-row input[type="checkbox"]{width:16px; height:16px; accent-color:var(--gold-500)}
.chk-row label{font-size:12.5px; font-weight:600; color:var(--ink); cursor:pointer}

.dep-summary{display:flex; gap:18px; padding:6px 2px}
.dep-summary > div{display:flex; flex-direction:column; gap:2px}
.dep-summary span{font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.dep-summary b{font-size:14.5px; color:var(--navy-900)}

.warn-note{margin:0 18px 12px; padding:10px 14px; border:1px solid #F3DFAE; background:#FFF8E6;
  border-radius:10px; font-size:12.5px; color:#7A5200}

.coa-link{color:var(--blue-600); text-decoration:none; border-bottom:1px dashed rgba(18,87,166,.45)}
.coa-link:hover{color:var(--gold-600); border-bottom-color:var(--gold-500)}
.coa-link b{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px}

@media (max-width:920px){ .dep-summary{flex-wrap:wrap; gap:12px} }
