.select2-container.shop-select-box .select2-selection--single {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.select2-container.shop-select-box--login .select2-selection--single {
    height: 48px;
    border-radius: 12px;
    padding: 0 .9rem;
}

.select2-container.shop-select-box--header .select2-selection--single {
    height: 38px;
    border-radius: 10px;
    padding: 0 .7rem;
    background: #f8f5ee;
    border-color: #e4d7b8;
}

.select2-container.shop-select-box.select2-container--open .select2-selection--single,
.select2-container.shop-select-box.select2-container--focus .select2-selection--single {
    border-color: #1a2035;
    box-shadow: 0 0 0 3px rgba(26, 32, 53, 0.12);
}

.select2-container.shop-select-box .select2-selection__rendered {
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1.2;
    color: #1f2937;
    width: calc(100% - 18px);
}

.select2-container.shop-select-box .select2-selection__arrow {
    height: 100%;
    right: 8px;
    width: 16px;
}

.select2-container.shop-select-box .select2-selection__arrow b {
    border: none;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.6px solid #6b7280;
    border-bottom: 1.6px solid #6b7280;
    transform: rotate(45deg);
}

.select2-container.shop-select-box.select2-container--disabled .select2-selection--single {
    background: #f3f4f6;
    cursor: not-allowed;
}

.shop-dd-selected,
.shop-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.shop-dd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    color: #1a2035;
    background: #f3efe4;
}

.shop-dd-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.shop-dd-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #1f2937;
}

.shop-dd-selected .shop-dd-name {
    font-weight: 600;
    font-size: 13px;
}

.shop-dd-code {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef1f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.shop-dd-selected .shop-dd-code {
    margin-left: auto;
}

.shop-dd-type {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #1a2035;
    color: #f6e7c1;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.select2-container--open .select2-dropdown.shop-select-menu.select2-dropdown--below,
.select2-container--open .select2-dropdown.shop-select-menu.select2-dropdown--above {
    max-height: none;
    border: 1px solid #e7e2d6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(26, 32, 53, 0.16);
}

.select2-dropdown.shop-select-menu {
    z-index: 1080;
}

.select2-dropdown.shop-select-menu .select2-search--dropdown {
    padding: 8px 8px 0;
}

.select2-dropdown.shop-select-menu .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    outline: none;
}

.select2-dropdown.shop-select-menu .select2-results__options {
    max-height: 280px;
    padding: 6px 0;
}

.select2-dropdown.shop-select-menu .select2-results__option {
    padding: 8px 10px;
    margin: 4px 6px;
    border-radius: 10px;
}

.select2-dropdown.shop-select-menu .select2-results__option:hover {
    color: inherit;
    background: transparent;
}

.select2-dropdown.shop-select-menu .select2-results__option--highlighted,
.select2-dropdown.shop-select-menu .select2-results__option--highlighted .shop-dd-name,
.select2-dropdown.shop-select-menu .select2-results__option--highlighted .shop-dd-code {
    background: #1a2035;
    color: #fff;
}

.select2-dropdown.shop-select-menu .select2-results__option--highlighted .shop-dd-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #f6e7c1;
}

.select2-dropdown.shop-select-menu .select2-results__option--highlighted .shop-dd-type {
    background: #c9a962;
    color: #1a2035;
}

.select2-dropdown.shop-select-menu .select2-results__option--selected {
    background: #f8f5ee;
}

body.dark .select2-container.shop-select-box .select2-selection--single,
body.dark .select2-container.shop-select-box--header .select2-selection--single {
    background: #121826;
    border-color: #3a455c;
    color: #d7dbe6;
}

body.dark .select2-container.shop-select-box .select2-selection__rendered,
body.dark .shop-dd-name {
    color: #e8ecf4;
}

body.dark .shop-dd-icon {
    background: #243049;
    color: #f6e7c1;
}

body.dark .shop-dd-code {
    background: #243049;
    color: #c5cedd;
}

body.dark .select2-container--open .select2-dropdown.shop-select-menu.select2-dropdown--below,
body.dark .select2-container--open .select2-dropdown.shop-select-menu.select2-dropdown--above,
body.dark .select2-dropdown.shop-select-menu {
    background: #161c2b;
    border-color: #2a3348;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body.dark .select2-dropdown.shop-select-menu .select2-search__field {
    background: #121826;
    border-color: #3a455c;
    color: #e8ecf4;
}

select.branch-multi-select + .select2-container {
    padding: 0;
    background: transparent;
    background-image: none;
}

select.branch-multi-select + .select2-container .select2-selection--multiple {
    min-height: 2.4rem !important;
    border: 1px solid var(--bl-border-strong, #d7dbe7) !important;
    border-radius: 0.55rem !important;
    background-color: var(--bl-input-bg, #fff) !important;
    padding: 0.15rem 0.35rem !important;
    display: flex;
    align-items: center;
}

select.branch-multi-select + .select2-container .select2-selection--multiple .select2-selection__choice {
    margin-top: 2px !important;
    margin-bottom: 2px;
}

select.branch-multi-select + .select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 1.4rem;
}

body.dark select.branch-multi-select + .select2-container .select2-selection--multiple {
    background-color: var(--bl-input-bg) !important;
    border-color: var(--bl-border-strong) !important;
    color: var(--bl-text);
}

body.dark .select2-dropdown.shop-select-menu .select2-results__option--selected {
    background: #243049;
}

body.dark .select2-container.shop-select-box.select2-container--disabled .select2-selection--single {
    background: #0e1420;
}

.header-shop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    height: 38px;
    padding: 0 10px 0 8px;
    border: 1px solid #e4d7b8;
    border-radius: 12px;
    background: #f8f5ee;
    color: #1a2035;
    box-shadow: none;
}

.header-shop-toggle:hover,
.header-shop-toggle:focus,
.header-shop-toggle.show {
    border-color: #1a2035;
    box-shadow: 0 0 0 3px rgba(26, 32, 53, 0.12);
    color: #1a2035;
}

.header-shop-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.header-shop-copy .shop-dd-code {
    flex: 0 0 auto;
}

.header-shop-menu form {
    width: 100%;
}

.header-shop-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.header-shop-chevron {
    flex: 0 0 auto;
    color: #6b7280;
}

.header-shop-menu.dropdown-menu {
    min-width: 280px;
    padding: 8px;
    border: 1px solid #e7e2d6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(26, 32, 53, 0.16);
}

.header-shop-menu-label {
    padding: 4px 8px 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.header-shop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 2px 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.header-shop-item:hover:not(:disabled),
.header-shop-item:focus:not(:disabled) {
    background: #1a2035;
    color: #fff;
}

.header-shop-item:hover:not(:disabled) .shop-dd-name,
.header-shop-item:focus:not(:disabled) .shop-dd-name,
.header-shop-item:hover:not(:disabled) .shop-dd-code,
.header-shop-item:focus:not(:disabled) .shop-dd-code {
    color: #fff;
    background: transparent;
}

.header-shop-item:hover:not(:disabled) .shop-dd-icon,
.header-shop-item:focus:not(:disabled) .shop-dd-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #f6e7c1;
}

.header-shop-item.is-current,
.header-shop-item:disabled {
    opacity: 1;
    background: #f8f5ee;
    cursor: default;
}

.header-shop-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    flex: 0 0 22px;
    border-radius: 999px;
    background: #1a2035;
    color: #f6e7c1;
}

.header-shop-menu .shop-dd-copy {
    flex: 1;
}

.header-shop-menu .shop-dd-code {
    margin-top: 1px;
}

body.dark .header-shop-toggle {
    background: #121826;
    border-color: #3a455c;
    color: #e8ecf4;
}

body.dark .header-shop-toggle:hover,
body.dark .header-shop-toggle:focus,
body.dark .header-shop-toggle.show {
    border-color: #c9a962;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.18);
    color: #e8ecf4;
}

body.dark .header-shop-chevron {
    color: #c5cedd;
}

body.dark .header-shop-menu.dropdown-menu {
    background: #161c2b;
    border-color: #2a3348;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body.dark .header-shop-menu-label {
    color: #c5cedd;
}

body.dark .header-shop-item.is-current,
body.dark .header-shop-item:disabled {
    background: #243049;
}

.header-profile-toggle {
    display: inline-flex;
    padding: 0;
    border: 2px solid #e4d7b8;
    border-radius: 999px;
    background: #f8f5ee;
    line-height: 0;
}

.header-profile-toggle:hover,
.header-profile-toggle:focus,
.header-profile-toggle.show {
    border-color: #1a2035;
    box-shadow: 0 0 0 3px rgba(26, 32, 53, 0.12);
}

.header-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
}

.header-profile-menu.dropdown-menu {
    min-width: 240px;
    padding: 8px;
    border: 1px solid #e7e2d6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(26, 32, 53, 0.16);
}

.header-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px;
    border-radius: 12px;
    background: #f8f5ee;
}

.header-profile-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a2035;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.header-profile-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-size: 12px;
}

.header-profile-role {
    width: fit-content;
    margin-top: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #1a2035;
    color: #f6e7c1;
    font-size: 11px;
    font-weight: 600;
}

.header-profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 10px;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.header-profile-item:hover,
.header-profile-item:focus {
    background: #1a2035;
    color: #fff;
}

.header-profile-item:hover .shop-dd-icon,
.header-profile-item:focus .shop-dd-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #f6e7c1;
}

.header-profile-logout {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #e7e2d6;
}

body.dark .header-profile-toggle {
    background: #121826;
    border-color: #3a455c;
}

body.dark .header-profile-toggle:hover,
body.dark .header-profile-toggle:focus,
body.dark .header-profile-toggle.show {
    border-color: #c9a962;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.18);
}

body.dark .header-profile-menu.dropdown-menu {
    background: #161c2b;
    border-color: #2a3348;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body.dark .header-profile-card {
    background: #243049;
}

body.dark .header-profile-name,
body.dark .header-profile-item {
    color: #e8ecf4;
}

body.dark .header-profile-meta {
    color: #c5cedd;
}

body.dark .header-profile-logout {
    border-top-color: #2a3348;
}

.menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #c2410c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
