.unit-organisasi-section {
    padding: 1.5rem 0 3rem;
}

.unit-organisasi-head .card-body {
    padding: 1.1rem 1.1rem 1rem;
}

.unit-organisasi-stats {
    align-items: stretch;
}

.unit-organisasi-stat-pill {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.unit-organisasi-stat-pill .label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.1rem;
}

.unit-organisasi-stat-pill strong {
    font-size: 1rem;
    color: #111827;
}

.unit-organisasi-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.unit-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.unit-filter-pill small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(31, 162, 166, 0.1);
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.35rem;
}

.unit-filter-pill:hover,
.unit-filter-pill.is-active {
    border-color: rgba(31, 162, 166, 0.35);
    color: #0f172a;
    background: #f8ffff;
}

.unit-filter-pill.is-active small {
    background: #1fa2a6;
    color: #fff;
}

.unit-card {
    border-radius: 14px;
}

.unit-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, rgba(31, 162, 166, 0.18), rgba(31, 162, 166, 0.05));
    color: #0f766e;
    border: 1px solid rgba(31, 162, 166, 0.2);
    flex-shrink: 0;
}

.unit-card-badge {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.unit-card-title {
    line-height: 1.35;
    word-break: break-word;
}

.unit-card-address {
    line-height: 1.5;
}

.unit-contact-list {
    margin-top: auto;
}

.unit-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(248, 250, 252, 0.8);
    color: #334155;
    line-height: 1.35;
}

.unit-contact-link i {
    margin-top: 0.15rem;
    width: 16px;
    text-align: center;
    color: #1fa2a6;
    flex-shrink: 0;
}

.unit-contact-link span {
    word-break: break-word;
}

.unit-contact-link:hover {
    border-color: rgba(31, 162, 166, 0.25);
    background: #fff;
}

.unit-contact-link.is-static {
    cursor: default;
}

.unit-organisasi-loading,
.unit-organisasi-empty {
    border-radius: 14px;
}

.unit-organisasi-head h2 {
    color: #111827;
}

.unit-organisasi-pagination-wrap .pagination .page-link {
    border-radius: 10px;
    margin: 0 0.15rem;
    border-color: rgba(15, 23, 42, 0.08);
    color: #334155;
    background: #fff;
}

.unit-organisasi-pagination-wrap .pagination .page-item.active .page-link {
    background: #1fa2a6;
    border-color: #1fa2a6;
    color: #fff;
}

.unit-organisasi-pagination-wrap .pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
}

.unit-organisasi-pagination-wrap .pagination-meta {
    color: #64748b;
}

.unit-organisasi-pagination-wrap .pagination-meta-badge {
    background: rgba(31, 162, 166, 0.08);
    color: #1fa2a6;
    border: 1px solid rgba(31, 162, 166, 0.18);
}

[data-bs-theme="dark"] .unit-organisasi-head,
[data-bs-theme="dark"] .unit-organisasi-loading,
[data-bs-theme="dark"] .unit-organisasi-empty,
[data-bs-theme="dark"] .unit-card {
    background: #111827 !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

[data-bs-theme="dark"] .unit-organisasi-stat-pill {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] .unit-organisasi-stat-pill .label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .unit-organisasi-stat-pill strong {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .unit-organisasi-head h2,
[data-bs-theme="dark"] .unit-card-title,
[data-bs-theme="dark"] .unit-organisasi-empty h3 {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .unit-card-address,
[data-bs-theme="dark"] .unit-organisasi-head .text-muted,
[data-bs-theme="dark"] .unit-organisasi-empty .text-muted,
[data-bs-theme="dark"] .unit-organisasi-loading .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .unit-organisasi-empty .fa-building,
[data-bs-theme="dark"] .unit-organisasi-loading .fa-spinner {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .unit-filter-pill {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .unit-filter-pill small {
    background: rgba(31, 162, 166, 0.18);
    color: #d5fbfc;
}

[data-bs-theme="dark"] .unit-filter-pill:hover,
[data-bs-theme="dark"] .unit-filter-pill.is-active {
    border-color: rgba(31, 162, 166, 0.35);
    background: #10232b;
    color: #fff;
}

[data-bs-theme="dark"] .unit-filter-pill.is-active small {
    background: #1fa2a6;
}

[data-bs-theme="dark"] .unit-card-avatar {
    background: linear-gradient(135deg, rgba(31, 162, 166, 0.2), rgba(31, 162, 166, 0.06));
    border-color: rgba(31, 162, 166, 0.2);
    color: #bff4f6;
}

[data-bs-theme="dark"] .unit-card-badge {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] .unit-contact-link {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.14);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .unit-contact-link i {
    color: #67e8f9;
}

[data-bs-theme="dark"] .unit-contact-link:hover {
    background: #12202b;
    border-color: rgba(31, 162, 166, 0.28);
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination .page-link {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
    color: #94a3b8;
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination .page-link:hover {
    background: #12202b;
    border-color: rgba(31, 162, 166, 0.28);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination .page-item.active .page-link {
    background: #1fa2a6;
    border-color: #1fa2a6;
    color: #fff;
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination .page-item.disabled .page-link {
    background: #111827;
    color: rgba(148, 163, 184, 0.5);
    border-color: rgba(148, 163, 184, 0.1);
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination-meta {
    color: #94a3b8;
}

[data-bs-theme="dark"] .unit-organisasi-pagination-wrap .pagination-meta-badge {
    background: rgba(31, 162, 166, 0.18);
    color: #d5fbfc;
    border-color: rgba(31, 162, 166, 0.28);
}

[data-bs-theme="dark"] .unit-organisasi-error.alert-danger {
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(239, 68, 68, 0.22);
    color: #f3d4d4;
}

@media (max-width: 767.98px) {
    .unit-organisasi-stat-pill {
        min-width: 0;
        flex: 1 1 calc(50% - 0.3rem);
    }

    .unit-filter-pill {
        width: 100%;
        justify-content: space-between;
    }
}
