/* "Kadromuz" hiyerarşisi — herkese açık sayfa (Bootstrap) ve panel (Tailwind) içinde aynı görünüm; kurum rengi #a41e35. */
.staff-chart { --sc-brand: #a41e35; --sc-ink: #1f2937; --sc-muted: #6b7280; --sc-line: #e5e7eb; --sc-card: #fff; --sc-soft: #fbeef1;
    display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 0 4px; }
html[data-theme="dark"] .staff-chart { --sc-ink: #f3f4f6; --sc-muted: #9ca3af; --sc-line: #374151; --sc-card: #1f2937; --sc-soft: rgba(164,30,53,.18); }
.staff-tier { width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 4px; }
.staff-connector { display: block; width: 2px; height: 28px; background: var(--sc-line); margin: 0 auto 8px; border-radius: 2px; }
.staff-tier-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.staff-tier-title { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-brand);
    background: var(--sc-soft); padding: 6px 14px; border-radius: 999px; }
.staff-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.staff-person-wrap { position: relative; }
.staff-person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; min-height: 44px; padding: 14px 10px 12px;
    border: 1px solid var(--sc-line); border-radius: 16px; background: var(--sc-card); color: var(--sc-ink); cursor: pointer; font: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.staff-person:hover, .staff-person:focus-visible { transform: translateY(-2px); border-color: var(--sc-brand); box-shadow: 0 8px 20px rgba(164,30,53,.12); }
.staff-person:focus-visible { outline: 3px solid rgba(164,30,53,.35); outline-offset: 2px; }
.staff-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.staff-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--sc-soft); color: var(--sc-brand); font-weight: 700; font-size: 1.4rem; }
.staff-name { font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.staff-role { font-size: .75rem; color: var(--sc-muted); text-align: center; }
.staff-empty { color: var(--sc-muted); font-size: .9rem; text-align: center; padding: 6px 0; }
@media (max-width: 400px) { .staff-person { width: calc(50vw - 30px); } .staff-photo { width: 60px; height: 60px; } }

/* Düzenleme araçları (yalnızca panelde, Admin / Branş Sorumlusu) */
.staff-tools { display: inline-flex; align-items: center; gap: 2px; }
.staff-tools form { margin: 0; }
.staff-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px;
    background: transparent; color: var(--sc-muted); cursor: pointer; list-style: none; }
.staff-tool::-webkit-details-marker { display: none; }
.staff-tool:hover:not(:disabled) { background: var(--sc-soft); color: var(--sc-brand); }
.staff-tool:disabled { opacity: .35; cursor: default; }
.staff-tool-danger:hover:not(:disabled) { background: #fee2e2; color: #b91c1c; }
.staff-rename { position: relative; }
.staff-rename-form { position: absolute; z-index: 5; top: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px;
    background: var(--sc-card); border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.staff-rename-form input, .staff-add select { min-height: 40px; border: 1px solid var(--sc-line); border-radius: 10px; padding: 0 10px; background: var(--sc-card); color: var(--sc-ink); }
.staff-rename-form button, .staff-add button { min-height: 40px; border: 0; border-radius: 10px; padding: 0 14px; background: var(--sc-brand); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.staff-remove { position: absolute; top: -8px; right: -8px; margin: 0; }
.staff-remove button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sc-line); background: var(--sc-card); color: var(--sc-muted); cursor: pointer; }
.staff-remove button:hover { color: #b91c1c; border-color: #fca5a5; }
.staff-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; max-width: 100%; }
.staff-add select { max-width: 260px; }
.staff-preview { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--sc-ink); }
.staff-preview-photo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    background: var(--sc-soft); color: var(--sc-brand); font-weight: 700; font-size: .8rem; }
.staff-preview-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Bilgi penceresi */
.staff-dialog { width: min(92vw, 440px); border: 0; border-radius: 20px; padding: 24px; color: #1f2937; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
html[data-theme="dark"] .staff-dialog { background: #1f2937; color: #f3f4f6; }
.staff-dialog::backdrop { background: rgba(17,24,39,.55); }
.staff-dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.staff-dialog-close:hover { background: rgba(0,0,0,.06); }
.staff-dialog-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-right: 36px; }
.staff-dialog-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.staff-dialog-name { margin: 0; font-size: 1.2rem; font-weight: 700; }
.staff-dialog-role { margin: 2px 0 0; color: #a41e35; font-weight: 600; font-size: .9rem; }
.staff-dialog-expertise { margin: 0 0 8px; font-size: .9rem; font-weight: 600; }
.staff-dialog-bio { margin: 0 0 12px; font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.staff-dialog-empty { margin: 0 0 12px; color: #6b7280; font-size: .9rem; }
.staff-dialog-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.staff-dialog-contact a { color: #a41e35; text-decoration: none; overflow-wrap: anywhere; }
.staff-dialog-contact li { min-height: 32px; display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .staff-person { transition: none; } .staff-person:hover { transform: none; } }
