body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    flex-shrink: 0;
    overflow-y: visible;
}

.sidebar .sidebar-header h5 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.sidebar .sidebar-header small,
.sidebar .sidebar-header .small {
    font-size: 0.75rem;
}

.sidebar .nav-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.sidebar .nav .nav .nav-link {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 0.84rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar .sia-sidebar-toggle {
    cursor: pointer;
    user-select: none;
}

.sidebar .sia-sidebar-chevron {
    transition: transform 0.15s ease;
}

.sidebar .sia-sidebar-toggle:not(.collapsed) .sia-sidebar-chevron,
.sidebar .sia-sidebar-toggle[aria-expanded="true"] .sia-sidebar-chevron {
    transform: rotate(180deg);
}

/* Submenu sidebar — tanpa Bootstrap Collapse (hindari stuck collapsing) */
.sidebar .sia-submenu {
    display: none;
}

.sidebar .sia-submenu.is-open {
    display: block;
}

/* Topbar profile: native <details>, tidak bergantung Bootstrap dropdown */
.sia-topbar {
    position: relative;
    z-index: 1030;
    overflow: visible;
}

.sia-user-profile {
    position: relative;
}

.sia-user-profile-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.sia-user-profile-toggle::-webkit-details-marker {
    display: none;
}

.sia-user-profile-toggle::marker {
    content: '';
    display: none;
}

.sia-user-profile-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 2000;
    min-width: 16rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
}

.main-content {
    overflow: visible;
}

/* Login: icon mata (bukan tombol teks) di dalam field password */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.75rem;
}

.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem;
    line-height: 1;
    cursor: pointer;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus {
    color: #343a40;
    outline: none;
}

.account-tree .account-root {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.account-tree .account-child {
    border-left: 2px solid #dee2e6;
    padding-left: 0.75rem;
}

.ts-wrapper {
    min-width: 12rem;
}

.ts-dropdown {
    font-size: 0.875rem;
}

.table .ts-wrapper {
    width: 100%;
}

/* Loan product form */
.product-form-shell {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    overflow: hidden;
}
.product-form-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.85rem 1rem 0;
    background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
    border-bottom: 1px solid #eef0f2;
}
.product-form-tabs .nav-link {
    border: 0;
    border-radius: 8px 8px 0 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
}
.product-form-tabs .nav-link:hover {
    color: #212529;
    background: rgba(13, 110, 253, 0.06);
}
.product-form-tabs .nav-link.active {
    color: #0d6efd;
    background: #fff;
    box-shadow: inset 0 -2px 0 #0d6efd;
}
.product-form-body {
    padding: 1.25rem 1.25rem 0.5rem;
}
.product-section {
    border: 1px solid #eef0f2;
    border-radius: 10px;
    background: #fcfcfd;
    padding: 1rem 1.1rem 0.35rem;
    margin-bottom: 1rem;
}
.product-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #eef0f2;
}
.product-section-title .sec-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.product-section .form-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.3rem;
}
.product-section .form-text {
    font-size: 0.75rem;
}
.product-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
}
.product-hint {
    border-left: 3px solid #0d6efd;
    background: #f0f6ff;
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: #334;
    margin-bottom: 1rem;
}
.product-hint.warn {
    border-left-color: #fd7e14;
    background: #fff8f0;
}
#bulletConfigPanel.product-section {
    border-color: #cfe2ff;
    background: #f5f9ff;
}
.product-form-shell .ts-wrapper {
    width: 100%;
}

/* Loan product detail (read-only) */
.product-detail-header {
    padding: 1.1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #eef0f2;
    background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}
.product-summary-stats .summary-stat {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    height: 100%;
}
.product-summary-stats .summary-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}
.product-summary-stats .summary-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}
.product-detail-item {
    margin-bottom: 0.15rem;
}
.product-detail-item .field-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.15rem;
    display: block;
}
.product-detail-item .field-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.35;
}

