/**
 * user-tab-forms (Wave D residual)
 */

/* --- styles.css L3460-L3649 --- */
/* === User Tab: Button & Form Polish (Scoped) === */
#user-tab h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

#user-tab .section-content button,
#user-tab .section-content .button {
    width: 100%;
}

#user-tab .self-assessment-form button[type="submit"] {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

@media (min-width: 768px) {
    #user-tab .self-assessment-form {
        padding: 0;
    }
}

/* === Company Info Display === */
.company-info-display {
    background-color: var(--bg-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-left: 4px solid var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: var(--brand-fg, var(--primary-color));
    min-width: 150px;
}

.info-row span {
    color: var(--text-color);
    text-align: right;
}

#edit-company-btn {
    width: 100%;
    padding: var(--touch-padding);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-touch);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#edit-company-btn:hover {
    background-color: var(--primary-hover);
    color: var(--text-on-brand, #ffffff);
}

/* === Select2 Styling untuk Modal === */
.select2-container {
    width: 100% !important;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.select2-container--default .select2-selection--single {
    height: auto;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    line-height: 1.5;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-secondary);
}

/* Select2 Multiple Select */
.select2-container--default .select2-selection--multiple {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    min-height: 48px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 7px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #eee;
}

/* Dropdown styling */
.select2-dropdown {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
    z-index: 10060 !important;
}

.select2-container--open .select2-dropdown {
    border-color: var(--primary-color);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-search--dropdown .select2-search__field {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
}

.select2-results__option {
    padding: 12px 14px;
    font-size: var(--font-size-base);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--bg-surface-1);
    color: var(--brand-fg, var(--primary-color));
}

/* Fix untuk dialog modal - SIMPLE version */
dialog.modal-dialog,
dialog.modal {
    overflow: visible;
}

dialog.modal-dialog .modal-content,
dialog.modal .modal-content {
    overflow-y: auto;
    overflow-x: visible;
    max-height: 75vh;
}

/* Select2 di dalam modal - pastikan dropdown muncul di atas */
dialog.modal-dialog .select2-container--open,
dialog.modal .select2-container--open {
    z-index: 10050;
}

dialog.modal-dialog .select2-dropdown,
dialog.modal .select2-dropdown {
    position: absolute !important;
}

/* bulk-import (L3646-L3765) → styles/modules/bulk-import.css */

/* badges (L3766-L4033) → styles/modules/badges.css */


