/*
 * SP — Index Chrome Styles
 * v162 (Faz 5 sonrasi style-src refactor pilot)
 *
 * Amac: index.html'deki tekrarli inline style attribute'larini sınıflara cikarmak.
 * Strateji: yuksek tekrarli pattern'lar oncelik (28x display:none, 12x display:none + bg).
 * Tek-seferlik style'lar bu adimda dokunulmadi — incremental refactor.
 */

/* ============================================================
 * Login Overlay
 * ============================================================ */
.sp-login-overlay-hidden {
    display: none;
}

/* ============================================================
 * Brand & Header
 * ============================================================ */
/* ── UZUN KURUM ADI ÇAKIŞMA KAPISI (2026-08-08, Yüksel ekran görüntüsü) ──────────
 * "kurum adı çok uzun olması durumunda genişlik ayarlanabilmeli. kurum adı ile
 *  Stratejik Plan üst üste binmesi engellenmeli."
 *
 * ESKİ KUSUR: .sp-brand-ad `overflow:visible` + `white-space:nowrap` + sabit
 * `max-width` taşıyordu. Metin kutusunu AŞIP kardeşi olan "Stratejik Plan"
 * ayracının üstüne BASIYORDU (kutu daralıyor, boya daralmıyordu).
 *
 * ONARIM üç kuralda: (a) marka zinciri `min-width:0` ile GERÇEKTEN daralabilsin,
 * (b) taşan ad kırpılıp elipsle bitsin (tam ad `title` ipucunda durur),
 * (c) ayraç `flex:0 0 auto` ile ne ezilir ne de üstüne basılır.
 * Punto kurum adının uzunluğuna göre sunucuda seçilir → --sp-ad-fs.
 * ──────────────────────────────────────────────────────────────────────────── */
.sp-brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    /* (b) daralabilmesi için zincirin HER halkası min-width:0 olmalı */
    overflow: hidden;
}

.sp-brand-logo {
    filter: brightness(0) invert(1);
}

/* Logo yoksa sunucu <img> yerine bu <span>'i basar (kurum adı düz metin). */
.sp-brand-ad {
    --sp-ad-fs: 21px;
    /* sunucu ad uzunluğuna göre override eder */
    --sp-ad-max: min(42vw, 560px);
    /* başlıkta ada ayrılan pay */
    display: block;
    min-width: 0;
    flex: 0 1 auto;
    max-width: var(--sp-ad-max);
    color: #fff;
    font-size: var(--sp-ad-fs);
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 43px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-brand-divider {
    color: var(--surface-white);
    font-weight: 400;
    font-size: 14px;
    margin-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    /* (c) ayraç ne ezilir ne sarılır — ad ona ASLA giremez */
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Dar ekranda ada daha çok pay: punto bir kademe küçülür, sınır genişler */
@media (max-width: 1100px) {
    .sp-brand-ad {
        --sp-ad-max: min(48vw, 440px);
        font-size: calc(var(--sp-ad-fs) * .88);
    }
}

@media (max-width: 760px) {
    .sp-brand-ad {
        --sp-ad-max: 62vw;
        font-size: calc(var(--sp-ad-fs) * .78);
    }

    /* Telefonda "Stratejik Plan" ayracı gizlenir — kurum adı tüm genişliği alır
       (ad KİMLİKTİR; ayraç sayfa başlığında/tab'de zaten yazılı). */
    .sp-brand-divider {
        display: none;
    }
}

/* Giriş ekranındaki kurum adı — başlıktakiyle aynı ölçek ailesi, kırpılmadan sarar */
.sp-login-ad {
    --sp-ad-fs: 21px;
    color: #fff;
    font-size: calc(var(--sp-ad-fs) * 1.25);
    font-weight: 800;
    letter-spacing: .4px;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin: 0 auto 30px;
}

/* v241: Sol-orta alan boş bırakıldı — flex spacer olarak banner'ı sağa iter */
.sp-quick-links {
    flex: 1;
}

/* v241: Hızlı erişim dropdown — sag tarafa, ikon kümesinde */
.sp-links-wrap {
    position: relative;
}

.sp-links-toggle {
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.sp-links-toggle:hover {
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.sp-links-toggle:active {
    transform: translateY(1px) scale(0.94);
    transition-duration: 0.06s;
}

.sp-links-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.40);
    border-color: rgba(255, 255, 255, 0.7);
}

.sp-links-toggle i {
    pointer-events: none;
    font-size: 14px;
    line-height: 1;
}

.sp-links-menu {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    padding: 6px;
    z-index: 99999;
    flex-direction: column;
    gap: 2px;
}

.sp-links-menu.is-open {
    display: flex;
}

.sp-links-menu-header {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 12px 4px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
}

.sp-links-menu .hzl-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.sp-links-menu .hzl-link:hover {
    background: rgba(192, 57, 43, 0.08);
    border-color: rgba(192, 57, 43, 0.18);
    color: #c0392b;
}

.sp-links-menu .hzl-link:active {
    background: rgba(192, 57, 43, 0.16);
}

.sp-links-menu .hzl-link img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ============================================================
 * Action / Top Right Buttons
 * ============================================================ */
/* v241: max-width kaldirildi — ikon kumesi + pill + search hepsi sigsin */
.sp-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    /* 2026-08-08: uzun kurum adı sağdaki kümeyi (zil/kullanıcı/arama) EZEMEZ —
       daralma marka bloğunda olur, aksiyonlarda değil. */
    flex: 0 0 auto;
}

/* v241: + Hedef Ekle — diger 2 ikona uyumlu 36px daire */
.sp-fab-create-goal {
    background: rgba(255, 255, 255, 0.28);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.22s, border-color 0.2s;
    z-index: 9999;
}

.sp-fab-create-goal i {
    pointer-events: none;
    font-size: 17px;
    line-height: 1;
}

.sp-notif-wrap {
    position: relative;
    margin-right: 6px;
}

.sp-notif-bell {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sp-notif-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary, #1e40af);
}

.sp-notif-badge.is-active {
    display: flex;
}

.sp-notif-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 99999;
}

.sp-notif-menu.is-open {
    display: block;
}

.sp-notif-menu-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
}

.sp-notif-menu-title {
    font-size: 13px;
    color: #374151;
}

.sp-notif-read-all {
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 11px;
    cursor: pointer;
}

.sp-notif-list {
    padding: 0;
}

.sp-auth-info {
    font-size: 12px;
    color: #fff;
    text-align: right;
    margin-right: 5px;
}

/* v240: Kullanıcı kapsülü — avatar + isim + logout tek glass panel,
   yatay hizali. Logout artik isim altinda DEGIL, isim yaninda. */
.sp-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease;
    min-height: 38px;
    box-sizing: border-box;
}

.sp-user-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.sp-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.sp-auth-user {
    font-weight: 600;
    color: #fff;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    line-height: 1.1;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* v240: Logout — kapsulun sag ucundaki kucuk yuvarlak ikon */
.sp-logout-btn {
    display: none;
    margin: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.sp-logout-btn:hover {
    background: #fff;
    color: #c0392b;
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.sp-logout-btn:active {
    transform: translateY(1px) scale(0.94);
    transition-duration: 0.06s;
}

.sp-logout-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.sp-logout-btn.is-visible {
    display: inline-flex;
}

.sp-logout-btn i {
    pointer-events: none;
    font-size: 13px;
}

.sp-global-search {
    width: 190px;
    padding: 9px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    color: #374151;
    outline: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.1px;
    box-sizing: border-box;
    flex: 0 0 190px;
}

/* ============================================================
 * v242: Departman Hedefleri — Hızlı Filtre Bandı (OrgView)
 * Kapsam sekmeleri + Status banner + Ana Aksiyon dropdown
 * ============================================================ */
.org-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.org-scope-tabs {
    display: inline-flex;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 3px;
    gap: 0;
}

.org-scope-tab {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.org-scope-tab:hover:not(.is-active) {
    background: rgba(192, 57, 43, 0.06);
    color: #c0392b;
}

.org-scope-tab.is-active {
    background: #fff;
    color: #c0392b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.org-scope-tab .scope-icon {
    font-size: 14px;
    line-height: 1;
}

/* v244: Toolbar sağ ekstralar (Birim Havuzu Badge konteyneri) */
.org-toolbar-extras {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    position: relative;
}

.org-status-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    flex-shrink: 0;
}

.org-status-banner::-webkit-scrollbar {
    height: 6px;
}

.org-status-banner::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.org-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.org-status-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.org-status-chip[data-status=""]:hover { background: #fff5e6; color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.org-status-chip[data-status="delayed"]:hover { background: #fdecee; color: #e2445c; border-color: rgba(226, 68, 92, 0.35); }
.org-status-chip[data-status="this_month"]:hover { background: #e7f0fb; color: #0073ea; border-color: rgba(0, 115, 234, 0.35); }
.org-status-chip[data-status="future"]:hover { background: #eef3fb; color: #579bfc; border-color: rgba(87, 155, 252, 0.35); }
.org-status-chip[data-status="closing_approval"]:hover { background: #f3e8fb; color: #a25ddc; border-color: rgba(162, 93, 220, 0.35); }
.org-status-chip[data-status="delay_approval"]:hover { background: #fff8d6; color: #b08600; border-color: rgba(255, 203, 0, 0.45); }
.org-status-chip[data-status="completed_late"]:hover { background: #fef0e0; color: #fdab3d; border-color: rgba(253, 171, 61, 0.4); }
.org-status-chip[data-status="completed_success"]:hover { background: #e3fbef; color: #00c875; border-color: rgba(0, 200, 117, 0.35); }
.org-status-chip[data-status="cancelled"]:hover { background: #ececec; color: #333333; border-color: rgba(51, 51, 51, 0.35); }
.org-status-chip[data-status="suspended"]:hover { background: #efe8e3; color: #7f5347; border-color: rgba(127, 83, 71, 0.35); }

.org-status-chip.is-active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    color: #fff;
}

.org-status-chip.is-active .org-chip-count { background: rgba(255, 255, 255, 0.28); color: #fff; }

.org-status-chip[data-status=""].is-active { background: #d97706; border-color: #d97706; }
.org-status-chip[data-status="delayed"].is-active { background: #e2445c; border-color: #e2445c; }
.org-status-chip[data-status="this_month"].is-active { background: #0073ea; border-color: #0073ea; }
.org-status-chip[data-status="future"].is-active { background: #579bfc; border-color: #579bfc; }
.org-status-chip[data-status="closing_approval"].is-active { background: #a25ddc; border-color: #a25ddc; }
.org-status-chip[data-status="delay_approval"].is-active { background: #b08600; border-color: #b08600; }
.org-status-chip[data-status="completed_late"].is-active { background: #fdab3d; border-color: #fdab3d; }
.org-status-chip[data-status="completed_success"].is-active { background: #00c875; border-color: #00c875; }
.org-status-chip[data-status="cancelled"].is-active { background: #333333; border-color: #333333; }
.org-status-chip[data-status="suspended"].is-active { background: #7f5347; border-color: #7f5347; }

/* v244: Yıl çipi (unit2/unit3 modu) — mavi-mor stratejik ton */
.org-year-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.org-year-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    background: #e7f0fb;
    color: #0073ea;
    border-color: rgba(0, 115, 234, 0.30);
}

.org-year-chip.is-active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    background: #0073ea;
    color: #fff;
    border-color: #0073ea;
}

.org-year-chip[data-year=""]:hover { background: #fff5e6; color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.org-year-chip[data-year=""].is-active { background: #d97706; border-color: #d97706; }

.org-year-chip[data-year="2026"]:hover { background: #e3fbef; color: #00c875; border-color: rgba(0, 200, 117, 0.35); }
.org-year-chip[data-year="2026"].is-active { background: #00c875; border-color: #00c875; }

.org-year-chip.is-active .org-chip-count { background: rgba(255, 255, 255, 0.28); color: #fff; }
.org-year-chip.is-empty { opacity: 0.45; cursor: not-allowed; }
.org-year-chip.is-empty:hover { transform: none; box-shadow: none; }

/* v244: Diğer aksiyon çipi (all modu) — gri-yeşil profesyonel ton */
.org-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 280px;
}

.org-action-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    background: #f0f7ff;
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.30);
}

.org-action-chip.is-active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

.org-action-chip[data-action-no=""]:hover { background: #fff5e6; color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.org-action-chip[data-action-no=""].is-active { background: #d97706; border-color: #d97706; }

.org-action-chip.is-active .org-chip-count { background: rgba(255, 255, 255, 0.28); color: #fff; }
.org-action-chip.is-active .org-chip-code { background: rgba(255, 255, 255, 0.22); color: #fff; }
.org-action-chip.is-empty { opacity: 0.45; cursor: not-allowed; }
.org-action-chip.is-empty:hover { transform: none; box-shadow: none; }

.org-chip-code {
    background: rgba(0, 0, 0, 0.06);
    color: #6b7280;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: background 0.18s ease, color 0.18s ease;
}

.org-banner-empty {
    color: #9ca3af;
    font-size: 12px;
    padding: 8px 14px;
    font-style: italic;
}

.org-status-chip.is-empty {
    opacity: 0.45;
    cursor: not-allowed;
}

.org-status-chip.is-empty:hover {
    transform: none;
    box-shadow: none;
}

.org-chip-icon {
    font-size: 13px;
    line-height: 1;
}

.org-chip-label {
    font-size: 12px;
    line-height: 1;
}

.org-chip-count {
    background: rgba(0, 0, 0, 0.08);
    color: #4b5563;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.org-scope-summary {
    font-size: 11px;
    color: #6b7280;
    margin-left: 6px;
    font-weight: 500;
}

/* v243: Birim eşleştirme havuzu badge + popover */
.org-unit-pool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 9px;
    border: 1px solid rgba(192, 57, 43, 0.30);
    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    margin-left: 4px;
    line-height: 1;
}

.org-unit-pool-badge:hover {
    background: rgba(192, 57, 43, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.16);
}

.org-unit-pool-badge.is-empty {
    border-color: rgba(217, 119, 6, 0.45);
    background: rgba(217, 119, 6, 0.10);
    color: #b45309;
}

.org-unit-pool-badge i {
    font-size: 11px;
    line-height: 1;
}

.org-unit-pool-badge .pool-count {
    background: #c0392b;
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
}

.org-unit-pool-badge.is-empty .pool-count {
    background: #b45309;
}

.org-unit-pool-popover {
    position: absolute;
    top: 60px;
    right: 18px;
    width: 360px;
    max-height: 380px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    padding: 12px;
    z-index: 99998;
    overflow-y: auto;
}

.pool-popover-header {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.pool-popover-hint {
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pool-popover-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pool-pill {
    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.20);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-empty {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* ============================================================
 * View Containers — Hidden by default, with various background colors
 * ============================================================ */
.sp-view {
    display: none;
}

.sp-view.is-active {
    display: block;
}

.sp-view--bg1 { background: #f4f6f8; }
.sp-view--bg2 { background: #f5f6f8; }
.sp-view--bg3 { background: #f9f9f9; }
.sp-view--bg4 { background: #f4f7f6; }
.sp-view--bg5 { background: #f5f5f5; }
.sp-view--bg6 { background: #f8fafc; }
.sp-view--bg7 { background: #f4f7fb; }

.sp-view--col {
    flex-direction: column;
}

.sp-view--col-overflow {
    flex-direction: column;
    overflow: hidden;
}

.sp-view--scroll {
    overflow-y: auto;
}

.sp-view--zero-pad {
    padding: 0;
}
