/* SuperAdmin Business Switcher */

#superadmin-business-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #f4f6f8;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    font-size: 0.95rem;
}

#superadmin-business-display,
#superadmin-business-edit {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Let the edit row fill the switcher so the autocomplete has space to grow into */
#superadmin-business-edit {
    flex: 1 1 auto;
    min-width: 0;
}

.superadmin-business-edit-hidden {
    display: none !important;
}

#superadmin-business-label {
    color: #6b7280;
    font-weight: 500;
}

#superadmin-business-name {
    font-weight: 700;
    color: #111827;
}

/* Grow to fill remaining space on mobile.
   flex-basis 0 + width auto overrides the base `.autocomplete-container { width: 100% }`,
   and min-width 0 lets it shrink below its content width. */
#superadmin-business-autocomplete {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

/* Cap the width on larger devices */
@media (min-width: 768px) {
    #superadmin-business-autocomplete {
        max-width: 300px;
    }
}

.superadmin-business-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.superadmin-business-icon-btn:hover {
    background-color: #e5e7eb;
}

.superadmin-business-icon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.superadmin-business-save {
    color: #16a34a;
}

.superadmin-business-save:hover {
    background-color: #dcfce7;
}

.superadmin-business-cancel {
    color: #dc2626;
}

.superadmin-business-cancel:hover {
    background-color: #fee2e2;
}
