/**
 * SAW Admin - Switchers (Customer, Branch, Language)
 * Modern glassmorphism design for dark sidebar theme
 * @package SAW_Visitors
 * @version 3.1.0
 */

/* ============================================
   COMMON SWITCHER STYLES
   ============================================ */

.sa-switcher {
    position: relative;
}

.sa-switcher-button {
    display: flex;
    align-items: center;
    gap: var(--saw-space-2);
    padding: var(--saw-space-2) var(--saw-space-3);
    background: var(--saw-bg-primary);
    border: 1px solid var(--saw-border-color);
    border-radius: var(--saw-radius-md);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-switcher-button:hover {
    background: var(--saw-bg-secondary);
    border-color: var(--saw-brand-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.sa-switcher-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-switcher-button:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

.sa-switcher-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform var(--saw-transition-fast), color var(--saw-transition-fast);
}

.sa-switcher-button:hover .sa-switcher-arrow {
    color: rgba(255, 255, 255, 0.95);
}

/* Language switcher arrow - always white in header */
.sa-language-switcher-button .sa-switcher-arrow {
    color: rgba(255, 255, 255, 0.9);
}

.sa-language-switcher-button:hover .sa-switcher-arrow {
    color: #ffffff;
}

.sa-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    background: #ffffff !important;
    border: 1px solid var(--saw-border-color);
    border-radius: var(--saw-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    min-width: 280px;
}

.sa-switcher-dropdown--active {
    display: flex !important;
    animation: saDropdownFadeIn 0.2s ease;
}

@keyframes saDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CUSTOMER SWITCHER (Header - unchanged)
   ============================================ */

.sa-customer-switcher {
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.sa-customer-switcher-button {
    display: flex;
    align-items: center;
    gap: var(--saw-space-2);
    padding: var(--saw-space-2) var(--saw-space-3);
    background: var(--saw-bg-primary);
    border: 1px solid var(--saw-border-color);
    border-radius: var(--saw-radius-md);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 300px;
}

.sa-customer-switcher-button:hover {
    background: var(--saw-bg-secondary);
    border-color: var(--saw-brand-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Customer icon */
.sa-customer-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saw-brand-50);
    color: var(--saw-brand-600);
    border-radius: var(--saw-radius-sm);
}

.sa-customer-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--saw-radius-sm);
}

/* Customer info */
.sa-customer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sa-customer-label {
    font-size: 10px;
    font-weight: var(--saw-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--saw-text-muted);
    line-height: 1.2;
}

.sa-customer-name {
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-semibold);
    color: var(--saw-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sa-customer-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    background: rgba(10, 37, 64, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--saw-radius-lg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: none;
    flex-direction: column;
    z-index: 99999 !important; /* Maximum z-index */
    overflow: hidden;
    word-wrap: break-word;
}

.sa-customer-switcher-dropdown.sa-switcher-dropdown--active {
    display: flex !important;
    animation: saDropdownFadeIn 0.2s ease;
}

/* Search */
.sa-customer-switcher-dropdown:not(.sa-switcher-dropdown--active) .sa-switcher-search {
    display: none;
}

.sa-switcher-search {
    padding: var(--saw-space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sa-switcher-search-input {
    width: 100%;
    padding: var(--saw-space-2) var(--saw-space-3) var(--saw-space-2) 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--saw-radius-md);
    font-size: var(--saw-text-sm);
    color: rgba(255, 255, 255, 0.95);
    transition: all var(--saw-transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

.sa-switcher-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sa-switcher-search-input:focus {
    outline: none;
    border-color: rgba(96, 208, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(96, 208, 255, 0.1);
}

.sa-switcher-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--saw-space-2);
    max-height: 400px;
}

.sa-switcher-list::-webkit-scrollbar {
    width: 6px;
}

.sa-switcher-list::-webkit-scrollbar-track {
    background: transparent;
}

.sa-switcher-list::-webkit-scrollbar-thumb {
    background: var(--saw-gray-300);
    border-radius: 3px;
}

.sa-switcher-list::-webkit-scrollbar-thumb:hover {
    background: var(--saw-gray-400);
}

.sa-switcher-item {
    display: flex;
    align-items: center;
    gap: var(--saw-space-3);
    padding: var(--saw-space-3);
    border-radius: var(--saw-radius-md);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    margin-bottom: 2px;
}

.sa-switcher-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sa-switcher-item--active {
    background: rgba(96, 208, 255, 0.2);
    border: 1px solid rgba(96, 208, 255, 0.3);
}

.sa-switcher-item-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--saw-radius-sm);
    overflow: hidden;
    background: var(--saw-bg-tertiary);
    border: 1px solid var(--saw-border-color);
}

.sa-switcher-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-switcher-item-info {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    white-space: normal;
}

.sa-switcher-item-name {
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-medium);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-switcher-item--active .sa-switcher-item-name {
    color: #ffffff;
    font-weight: var(--saw-font-semibold);
}

.sa-switcher-item-ico {
    font-size: var(--saw-text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    line-height: 1.2;
}

.sa-switcher-item-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saw-brand-600);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
}

/* Loading state */
.sa-switcher-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--saw-space-6);
    gap: var(--saw-space-3);
    color: var(--saw-text-muted);
}

.sa-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--saw-gray-200);
    border-top-color: var(--saw-brand-600);
    border-radius: 50%;
    animation: sa-spin 0.8s linear infinite;
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.sa-switcher-empty {
    padding: var(--saw-space-4);
    text-align: center;
    color: var(--saw-text-muted);
    font-size: var(--saw-text-sm);
}

/* Error state */
.sa-switcher-error {
    padding: var(--saw-space-4);
    text-align: center;
    color: var(--saw-danger);
    font-size: var(--saw-text-sm);
}

/* Static customer info (non-superadmin) */
.sa-customer-info-static {
    display: flex;
    align-items: center;
    gap: var(--saw-space-3);
}

.sa-customer-info-static .sa-switcher-logo {
    width: 36px;
    height: 36px;
}

.sa-customer-info-static .sa-switcher-info {
    border-left: 1px solid var(--saw-border-color);
    padding-left: var(--saw-space-3);
}

/* ============================================
   BRANCH SWITCHER (Sidebar) - GLASSMORPHISM DARK THEME
   ============================================ */

.sa-branch-switcher {
    position: relative;
    margin: 0;
    margin-top: var(--saw-space-2);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    min-width: 0;
}

.sa-branch-switcher-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--saw-space-3);
    padding: var(--saw-space-3);
    
    /* Glassmorphism button on dark background */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--saw-radius-md);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    
    transition: all 0.2s ease;
    cursor: pointer;
}

.sa-branch-switcher-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sa-branch-switcher-button:active {
    transform: translateY(0);
}

.sa-branch-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Icon container - subtle glass effect */
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: var(--saw-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sa-branch-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ============================================
   SWITCHERS IN SIDEBAR - DARK THEME OVERRIDES
   ============================================ */

/* Customer and Branch switchers in sidebar - same image size */
.sa-app-sidebar .sa-customer-switcher .sa-customer-icon,
.sa-app-sidebar .sa-branch-switcher .sa-branch-icon {
    width: 36px !important;
    height: 36px !important;
}

/* Customer switcher in sidebar - glassmorphism styling */
.sa-app-sidebar .sa-customer-switcher {
    margin: 0;
    margin-bottom: var(--saw-space-2);
    padding: 0;
}

.sa-app-sidebar .sa-customer-switcher-button {
    width: 100%;
    min-width: auto;
    max-width: none;
    
    /* Glassmorphism button on dark background */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--saw-radius-md);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: var(--saw-space-3);
}

.sa-app-sidebar .sa-customer-switcher-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Customer icon in sidebar - match branch icon */
.sa-app-sidebar .sa-customer-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Customer info in sidebar - light text */
.sa-app-sidebar .sa-customer-label {
    color: rgba(255, 255, 255, 0.5);
}

.sa-app-sidebar .sa-customer-name {
    color: #ffffff;
}

/* Switcher arrow in sidebar */
.sa-app-sidebar .sa-switcher-arrow {
    color: rgba(255, 255, 255, 0.5);
}

.sa-app-sidebar .sa-customer-switcher-button:hover .sa-switcher-arrow,
.sa-app-sidebar .sa-branch-switcher-button:hover .sa-switcher-arrow {
    color: #ffffff;
}

/* Branch info in sidebar */
.sa-branch-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sa-branch-label {
    font-size: 10px;
    font-weight: var(--saw-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.sa-branch-name {
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-semibold);
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sa-branch-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 37, 64, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--saw-radius-lg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: none;
    flex-direction: column;
    z-index: 99999 !important; /* Maximum z-index */
    overflow: hidden;
    max-height: 400px;
}

.sa-branch-switcher-dropdown.sa-switcher-dropdown--active {
    display: flex !important;
    animation: saDropdownFadeIn 0.2s ease;
}

.sa-branch-list {
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--saw-space-1);
    max-height: 350px;
    background: transparent;
}

.sa-branch-list::-webkit-scrollbar {
    width: 6px;
}

.sa-branch-list::-webkit-scrollbar-track {
    background: transparent;
}

.sa-branch-list::-webkit-scrollbar-thumb {
    background: var(--saw-gray-300);
    border-radius: 3px;
}

.sa-branch-list::-webkit-scrollbar-thumb:hover {
    background: var(--saw-gray-400);
}

.sa-branch-item {
    display: flex;
    align-items: center;
    gap: var(--saw-space-2);
    padding: var(--saw-space-2) var(--saw-space-3);
    border-radius: var(--saw-radius-md);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    margin-bottom: 1px;
    background: transparent;
}

.sa-branch-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sa-branch-item--active {
    background: rgba(96, 208, 255, 0.2);
    border-left: 3px solid rgba(96, 208, 255, 0.5);
    padding-left: calc(var(--saw-space-3) - 3px);
}

.sa-branch-item-icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--saw-radius-sm);
    color: rgba(255, 255, 255, 0.7);
}

.sa-branch-item--active .sa-branch-item-icon {
    background: rgba(96, 208, 255, 0.3);
    color: rgba(96, 208, 255, 1);
}

.sa-branch-item-info {
    flex: 1;
    min-width: 0;
}

.sa-branch-item-name {
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-medium);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-branch-item--active .sa-branch-item-name {
    font-weight: var(--saw-font-semibold);
    color: #ffffff;
}

.sa-branch-item-address {
    font-size: var(--saw-text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sa-branch-item-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saw-brand-600);
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: var(--saw-font-bold);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.sa-language-switcher {
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.sa-language-switcher-button {
    display: flex;
    align-items: center;
    gap: var(--saw-space-2);
    padding: 6px 12px 6px 6px;
    height: 48px; /* Same as user menu toggle */
    min-width: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--saw-radius-lg);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sa-language-switcher-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.sa-language-switcher-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sa-language-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.sa-language-code {
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-semibold);
    color: rgba(255, 255, 255, 0.95);
}

.sa-language-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 37, 64, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--saw-radius-lg);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    min-width: 200px;
    padding: var(--saw-space-2);
}

.sa-language-switcher-dropdown.sa-switcher-dropdown--active {
    display: flex !important;
    animation: saDropdownFadeIn 0.2s ease;
}

.sa-language-item {
    display: flex;
    align-items: center;
    gap: var(--saw-space-3);
    padding: var(--saw-space-3);
    border-radius: var(--saw-radius-md);
    cursor: pointer;
    transition: all var(--saw-transition-fast);
    margin-bottom: 2px;
}

.sa-language-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sa-language-item--active {
    background: rgba(96, 208, 255, 0.2);
    border: 1px solid rgba(96, 208, 255, 0.3);
}

.sa-language-item-flag {
    font-size: 20px;
    flex-shrink: 0;
}

.sa-language-item-name {
    flex: 1;
    font-size: var(--saw-text-sm);
    font-weight: var(--saw-font-medium);
    color: rgba(255, 255, 255, 0.95);
}

.sa-language-item-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saw-brand-600);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .sa-switcher-info {
        display: none;
    }
    
    .sa-customer-switcher-button {
        padding: var(--saw-space-2);
        min-width: auto;
        max-width: 200px;
    }
    
    .sa-switcher-logo {
        width: 32px;
        height: 32px;
    }
    
    .sa-customer-switcher-dropdown {
        width: calc(100vw - 32px);
        max-width: 360px;
        left: 0;
        right: auto;
    }
    
    .sa-language-code {
        display: none;
    }
    
    .sa-language-switcher-button {
        padding: 6px;
        height: 36px;
        min-width: 48px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide arrows on mobile */
    .sa-customer-switcher-button .sa-switcher-arrow,
    .sa-language-switcher-button .sa-switcher-arrow,
    .sa-branch-switcher-button .sa-switcher-arrow {
        display: none;
    }
    
    .sa-customer-switcher-button {
        padding: var(--saw-space-1);
        min-width: auto;
        max-width: 150px;
        justify-content: flex-start;
    }
    
    .sa-switcher-logo {
        width: 28px;
        height: 28px;
    }
    
    .sa-switcher-info {
        min-width: 0;
    }
    
    .sa-switcher-name {
        font-size: var(--saw-text-xs);
    }
    
    .sa-switcher-ico {
        display: none;
    }
    
    .sa-customer-switcher-dropdown {
        width: calc(100vw - 16px);
        max-width: none;
        left: 8px;
        right: 8px;
    }
    
    /* Branch switcher - mobile */
    .sa-app-sidebar .sa-customer-switcher,
    .sa-branch-switcher {
        margin: 0;
        margin-top: var(--saw-space-2);
    }
    
    .sa-app-sidebar .sa-customer-switcher-button,
    .sa-branch-switcher-button {
        padding: var(--saw-space-2);
    }
    
    .sa-branch-switcher-dropdown {
        left: 0;
        right: 0;
        width: 100%;
        max-width: calc(100vw - 16px);
    }
    
    /* Language switcher - mobile */
    .sa-language-switcher-button {
        padding: 6px;
        height: 36px;
        min-width: 40px;
        justify-content: center;
    }
    
    .sa-language-flag {
        font-size: 16px;
    }
    
    .sa-language-switcher-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .sa-customer-switcher-dropdown {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
    }
}