.toggle-content { display: none; margin-top: 34px; position: absolute; min-width: 180px; max-height: 200px; overflow-y: scroll; z-index: 1; font-size: 12px; padding: 5px 10px; }
.toggle-content.active { display: block; }

.select2-container .select2-selection--multiple .select2-selection__rendered { padding-top: 1.625rem; margin-bottom: 0; display: block; min-height: 55px; }
.select2-container--default .select2-selection--multiple .select2-search__field { font-size: 12px; margin-left: 15px; position: absolute; right: 0px; top: 0px; text-align: right; padding-right: 10px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__display { padding-left: 32px; padding-right: 0px; font-size: 12px; }

label.error { display: flex; flex-basis: 100%; color: #ff0000; font-size: 12px; margin: 3px 0px; }
input.error { border-color: #ff0000; }
.form-floating > label.error { text-align: right; white-space: normal; display: block; transform: none!important; }

#preloader { background-color: rgba(0,0,0,0.7); }
#status { width: auto; height: auto; margin:0px; transform: translate(-50%,-50%); }

.scroll-y-auto { overflow-y: auto; }
.scroll-x-auto { overflow-x: auto; }

/* Toast: the heading carries the error code, which is a single unbroken word
   (CODE_REFERRAL_CODE_NOT_FOUND) and ran straight past the edge of the box. Wrap it instead. */
.jq-toast-single, .jq-toast-single h2 { word-break: break-word; overflow-wrap: anywhere; }
/* 目前所在選單項高亮（金色）+ 保持父群組展開 —— 由 core.js highlightActiveMenu() 加上
   menuitem-active/active class；主題預設 active 色是白的看不出來，這裡覆寫成金色。 */
.side-nav .menuitem-active > a,
.side-nav .menuitem-active > a:hover,
.side-nav .menuitem-active > a:focus,
.side-nav .menuitem-active > a:active,
.side-nav .side-nav-second-level li.menuitem-active > a,
.side-nav .side-nav-second-level li.menuitem-active > a:hover,
.side-nav .side-nav-second-level li.menuitem-active > a:focus {
    color: #fbb034 !important;
    font-weight: 600;
}
.side-nav .side-nav-item.menuitem-active > a > .menu-arrow { color: #fbb034 !important; }

/* Pending badge and collapse arrow are both absolutely positioned and overlap by
   about 16px; the arrow comes later in the DOM so it paints over the badge.
   Lift the badge so the red count stays fully visible. */
.side-nav .badge { z-index: 1; }
