.custom-filter-style {
    width: 50%;
    height: 3em;
    display: inline-block;
    cursor: pointer;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 0.5em;
    cursor: pointer;
}

.label-custom-filter {
    display: flex;
    align-items: center;
    margin-left: 0.5em;
    font-size: 1em;
}

.checkbox-custom-filter {
    margin-right: 0.5em;
}

#detail-pelayanan-tabs .card-title {
    margin-left: 16px;
}
#detail-pelayanan-tabs .card-title:before {
    margin-left: 17px;
}

.detail-card {
    background-color: var(--custom-white) !important;
    max-height: 375px;
    height: 100%;
}
[data-theme-mode="dark"] .detail-card {
    background-color: #1e293b !important;
}

@media (max-width: 768px) {
    .detail-card {
        margin-bottom: 1rem;
        max-height: none;
    }
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-select {
    width: auto !important;
    min-width: 80px;
}

/* Hide original select */
.status-wrapper select {
    display: none;
}

/* Custom badge dropdown */
.status-badge-dropdown {
    position: relative;
    display: inline-block;
}

.status-badge-dropdown .badge::after {
    content: '▼';
    font-size: 8px;
    margin-left: 4px;
    opacity: 0.7;
}
.status-dropdown-menu {
    position: fixed;
    top: 32%;
    left: 40%;
    transform: translate(-50%, -50%);
    background: var(--custom-white);
    border-radius: 8px;
    border: 1px solid var(--gray-3);
    z-index: 1000;
    padding: 8px;
    display: none;
    min-width: 200px;
}

[data-theme-mode="dark"] .status-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .status-dropdown-menu {
        left: 50%;
        top: 50%;
    }
}

.status-dropdown-menu.show {
    display: block;
}

.status-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

[data-theme-mode="dark"] .status-dropdown-item:hover {
    background-color: #334155;
}

/* Dark mode — global overrides */
[data-theme-mode="dark"] body {
    background-color: #0f172a;
    color: #f1f5f9;
}

[data-theme-mode="dark"] .card {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme-mode="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom-color: #334155;
}

[data-theme-mode="dark"] .card-title,
[data-theme-mode="dark"] .h1, 
[data-theme-mode="dark"] .h2, 
[data-theme-mode="dark"] .h3, 
[data-theme-mode="dark"] .h4, 
[data-theme-mode="dark"] .h5, 
[data-theme-mode="dark"] .h6, 
[data-theme-mode="dark"] h1, 
[data-theme-mode="dark"] h2, 
[data-theme-mode="dark"] h3, 
[data-theme-mode="dark"] h4, 
[data-theme-mode="dark"] h5, 
[data-theme-mode="dark"] h6 {
    color: #f8fafc;
}

[data-theme-mode="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme-mode="dark"] .breadcrumb-item.active {
    color: #cbd5e1;
}

[data-theme-mode="dark"] .placeholder {
    background-color: #334155;
}

/* Tabs & Navigation */
[data-theme-mode="dark"] .nav-tabs {
    border-bottom-color: #334155;
}

[data-theme-mode="dark"] .nav-tabs .nav-link.active {
    background-color: #1e293b;
    border-color: #334155 #334155 #1e293b;
    color: #3b82f6;
}

[data-theme-mode="dark"] .nav-tabs .nav-link:hover:not(.active) {
    border-color: transparent;
    background-color: #334155;
}

[data-theme-mode="dark"] .tabs-scroll {
    background: #1e293b !important;
}
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: background-color 0.2s;
}

.status-dropdown-item:hover {
    background-color: var(--gray-3);
}

.search-box {
    padding: 8px 12px;
    background-color: var(--custom-white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
}

.search-box:focus {
    outline: none;
    border-color: #036ee0;
}


[data-tooltip-custom-table-status] {
    position: relative;
}

[data-tooltip-custom-table-status]:hover::after {
    content: attr(data-tooltip-custom-table-status);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--custom-white);
    color: var(--custom-gray-800);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--gray-3);
    font-size: 12px;
    white-space: normal;
    width: 250px;
    margin-left: 10px;
    text-align: left;
    z-index: 1000;
}

[data-tooltip-custom-table-status]:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--gray-3);
    border-right-color: var(--custom-white);
    margin-left: -2px;
    z-index: 1000;
}
.auth {
    max-width: 1000px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
  }

  .auth-left {
    background-color: #eef3f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex: 1 1 50%;
  }

  .auth-right {
    padding: 40px;
    flex: 1 1 50%;
  }

  .sign-favicon {
    height: 40px;
  }

  .img-fluid {
    max-width: 100%;
    height: auto;
  }

  h2 {
    font-weight: 700;
    margin-bottom: 30px;
  }

  .main-signin-footer {
    margin-top: 20px;
  }

  @media (max-width: 768px) {
    .auth {
      flex-direction: column;
    }
    .auth-left {
      display: none;
    }
    .auth-right {
      padding: 20px;
    }
  }

/* Dark-mode overrides for auth (login / register) */
[data-theme-mode="dark"] .auth {
    background-color: transparent;
    box-shadow: none;
}

[data-theme-mode="dark"] .auth-left {
    background-color: #0b1220;
}

[data-theme-mode="dark"] .auth-right {
    background-color: rgba(255,255,255,0.02);
    color: #f8fafc;
}

[data-theme-mode="dark"] .auth-right h2 {
    color: #f8fafc;
}

[data-theme-mode="dark"] .auth-right .form-label {
    color: #cbd5e1;
}

[data-theme-mode="dark"] .auth-right .form-control {
    background-color: #0f172a;
    color: #e6eef8;
    border-color: #334155;
}

[data-theme-mode="dark"] .auth-right .form-control:focus {
    background-color: #0f172a;
    color: #f8fafc;
    border-color: #1e88e5;
    box-shadow: 0 0 0 0.15rem rgba(30,144,255,0.12);
}

[data-theme-mode="dark"] .auth-right .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

[data-theme-mode="dark"] .auth-right .invalid-feedback {
    color: #fca5a5;
}

[data-theme-mode="dark"] .btn-primary {
    background-color: #0b5394 !important;
    border-color: #08345a !important;
    color: #ffffff !important;
}

[data-theme-mode="dark"] .toggle-password,
[data-theme-mode="dark"] .password-input-container .toggle-password {
    color: #cbd5e1;
}

/* Modal overrides for captcha/otp */
[data-theme-mode="dark"] .modal-content {
    background: #0b1220 !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6) !important;
}

[data-theme-mode="dark"] .modal-header {
    background: transparent !important;
    border-bottom-color: #334155 !important;
}

[data-theme-mode="dark"] .onboarding-title {
    color: #f8fafc !important;
}

[data-theme-mode="dark"] .btn-close {
    filter: invert(1) brightness(2);
}

/* Ensure logos/icons remain visible */
[data-theme-mode="dark"] .sign-favicon,
[data-theme-mode="dark"] .auth-left img {
    filter: none !important;
}

/* Additional safety overrides for auth pages */
[data-theme-mode="dark"] .auth {
    background-color: rgba(15,23,42,0.6) !important;
    border: 1px solid rgba(255,255,255,0.02) !important;
}

[data-theme-mode="dark"] .auth .alert {
    background-color: rgba(255,255,255,0.03) !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme-mode="dark"] .auth-right a {
    color: #7cc4ff !important;
}

[data-theme-mode="dark"] .btn-primary:hover,
[data-theme-mode="dark"] .btn-primary:focus {
    background-color: #0a4674 !important;
    border-color: #062d45 !important;
}

[data-theme-mode="dark"] .auth-left {
    background-image: none !important;
}

[data-theme-mode="dark"] .auth-left img {
    filter: brightness(0.95) contrast(1.02) !important;
}