/* ====================================================================
   TABLE OF CONTENTS
   ====================================================================
   1.  CSS Variables
   2.  Reset & Base
   3.  Typography
   4.  Links
   5.  Lists
   6.  Form Elements Reset
   7.  Container & Layout
   8.  Display Utilities
   9.  Shadow Utilities
   10. Color & Background Utilities
   11. Animations
   12. Shared Components
   13. Navbar
   14. Topbar
   15. Sidebar
   16. Dropdown
   17. Nav Tabs
   18. Breadcrumb
   19. Form Controls & Responsive Form Layout
   20. Buttons
   21. Cards
   22. Tables
   23. Footer
   24. Custom Components (ibox, icon-btn, sortable, password, loading, info-box)
   25. Layout Overrides
   26. Print Utilities
   27. Page-link
   28. Autocomplete
   29. Notice Feed
   ==================================================================== */


/* ====================================================================
   1. CSS Variables
   ==================================================================== */
:root {
    --blue: #4e73df;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #e74a3b;
    --orange: #fd7e14;
    --yellow: #f6c23e;
    --green: #1cc88a;
    --teal: #20c9a6;
    --cyan: #36b9cc;
    --white: #fff;
    --gray: #858796;
    --gray-dark: #5a5c69;
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* ====================================================================
   2. Reset & Base
   ==================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-family: sans-serif;
        line-height: 1.15;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        font-size: 18px;
    }
}

body {
    margin: 0;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #858796;
    text-align: left;
    background-color: #fff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(133, 135, 150, 0.35);
}


/* ====================================================================
   3. Typography
   ==================================================================== */
small,
.small {
    font-size: 80%;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.2;
}

h1, .h1 {
    font-size: 2.5rem;
}

h2, .h2 {
    font-size: 2rem;
}

h3, .h3 {
    font-size: 1.75rem;
}

h4, .h4 {
    font-size: 1.5rem;
}

h5, .h5 {
    font-size: 1.25rem;
}

h6, .h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* ====================================================================
   4. Links
   ==================================================================== */
a {
    color: #4e73df;
    text-decoration: none;
    background-color: transparent;
}

    a:hover {
        color: #224abe;
        text-decoration: none;
    }

    a:not([href]):not([class]) {
        color: inherit;
        text-decoration: none;
    }

        a:not([href]):not([class]):hover {
            color: inherit;
            text-decoration: none;
        }


/* ====================================================================
   5. Lists
   ==================================================================== */
ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

    ol ol,
    ul ul,
    ol ul,
    ul ol {
        margin-bottom: 0;
    }


/* ====================================================================
   6. Form Elements Reset
   ==================================================================== */
label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

button {
    border-radius: 0;
}

    button:focus:not(:focus-visible) {
        outline: 0;
    }

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

[role="button"] {
    cursor: pointer;
}

select {
    word-wrap: normal;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

    button:not(:disabled),
    [type="button"]:not(:disabled),
    [type="reset"]:not(:disabled),
    [type="submit"]:not(:disabled) {
        cursor: pointer;
    }

    button::-moz-focus-inner,
    [type="button"]::-moz-focus-inner,
    [type="reset"]::-moz-focus-inner,
    [type="submit"]::-moz-focus-inner {
        padding: 0;
        border-style: none;
    }

input[type="radio"],
input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

.btn-check:focus + .btn-info, .btn-info:focus {
    color: #fff;
    background-color: #36b9cc;
}

/* ====================================================================
   7. Container & Layout
   ==================================================================== */
#wrapper {
    display: flex;
}

    #wrapper #content-wrapper {
        background-color: #f8f9fc;
        width: 100%;
        overflow-x: hidden;
    }

        #wrapper #content-wrapper #content {
            flex: 1 0 auto;
        }

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container, .container-sm, .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1140px;
    }
}


/* ====================================================================
   8. Display Utilities
   ==================================================================== */
.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-table {
    display: table !important;
}

.d-table-row {
    display: table-row !important;
}

.d-table-cell {
    display: table-cell !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

@media (min-width: 576px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-inline {
        display: inline !important;
    }

    .d-sm-inline-block {
        display: inline-block !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-table {
        display: table !important;
    }

    .d-sm-table-row {
        display: table-row !important;
    }

    .d-sm-table-cell {
        display: table-cell !important;
    }

    .d-sm-flex {
        display: flex !important;
    }

    .d-sm-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-inline {
        display: inline !important;
    }

    .d-md-inline-block {
        display: inline-block !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-table {
        display: table !important;
    }

    .d-md-table-row {
        display: table-row !important;
    }

    .d-md-table-cell {
        display: table-cell !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-inline {
        display: inline !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-table {
        display: table !important;
    }

    .d-lg-table-row {
        display: table-row !important;
    }

    .d-lg-table-cell {
        display: table-cell !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-lg-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }

    .d-xl-inline {
        display: inline !important;
    }

    .d-xl-inline-block {
        display: inline-block !important;
    }

    .d-xl-block {
        display: block !important;
    }

    .d-xl-table {
        display: table !important;
    }

    .d-xl-table-row {
        display: table-row !important;
    }

    .d-xl-table-cell {
        display: table-cell !important;
    }

    .d-xl-flex {
        display: flex !important;
    }

    .d-xl-inline-flex {
        display: inline-flex !important;
    }
}


/* ====================================================================
   9. Shadow Utilities
   ==================================================================== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2) !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-none {
    box-shadow: none !important;
}


/* ====================================================================
   10. Color & Background Utilities
   ==================================================================== */
.bg-gradient-primary {
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
}

.bg-gray-200 {
    background-color: #eaecf4 !important;
}

.text-gray-400 {
    color: #d1d3e2 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-600 {
    color: #858796 !important;
}


/* ====================================================================
   11. Animations
   ==================================================================== */
@keyframes growIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animated--grow-in {
    -webkit-animation-name: growIn;
    animation-name: growIn;
    -webkit-animation-duration: 200ms;
    animation-duration: 200ms;
    -webkit-animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}


/* ====================================================================
   12. Shared Components
   ==================================================================== */
.icon-circle {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ====================================================================
   13. Navbar
   ==================================================================== */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

    .navbar .container,
    .navbar .container-fluid, .navbar .container-sm, .navbar .container-md, .navbar .container-lg, .navbar .container-xl {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

.navbar-brand {
    display: inline-block;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
}

    .navbar-brand:hover, .navbar-brand:focus {
        text-decoration: none;
    }

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

    .navbar-nav .nav-link {
        padding-right: 0;
        padding-left: 0;
    }

.nav-link:hover, .nav-link:focus {
    text-decoration: none;
}

.navbar-nav .dropdown-menu {
    position: static;
    float: none;
}

.navbar-text {
    display: inline-block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.35rem;
}

    .navbar-toggler:hover, .navbar-toggler:focus {
        text-decoration: none;
    }

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: 50% / 100% 100% no-repeat;
}

.navbar-nav-scroll {
    max-height: 75vh;
    overflow-y: auto;
}

/* --- Navbar Responsive (sm) --- */
@media (max-width: 575.98px) {
    .navbar-expand-sm > .container,
    .navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 576px) {
    .navbar-expand-sm {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-sm .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-sm .navbar-nav .dropdown-menu {
                position: absolute;
            }

            .navbar-expand-sm .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-sm > .container,
        .navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
            flex-wrap: nowrap;
        }

        .navbar-expand-sm .navbar-nav-scroll {
            overflow: visible;
        }

        .navbar-expand-sm .navbar-collapse {
            display: flex !important;
            flex-basis: auto;
        }

        .navbar-expand-sm .navbar-toggler {
            display: none;
        }
}

/* --- Navbar Responsive (md) --- */
@media (max-width: 767.98px) {
    .navbar-expand-md > .container,
    .navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 768px) {
    .navbar-expand-md {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-md .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-md .navbar-nav .dropdown-menu {
                position: absolute;
            }

            .navbar-expand-md .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-md > .container,
        .navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
            flex-wrap: nowrap;
        }

        .navbar-expand-md .navbar-nav-scroll {
            overflow: visible;
        }

        .navbar-expand-md .navbar-collapse {
            display: flex !important;
            flex-basis: auto;
        }

        .navbar-expand-md .navbar-toggler {
            display: none;
        }
}

/* --- Navbar Responsive (lg) --- */
@media (max-width: 991.98px) {
    .navbar-expand-lg > .container,
    .navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-lg .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-lg .navbar-nav .dropdown-menu {
                position: absolute;
            }

            .navbar-expand-lg .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-lg > .container,
        .navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
            flex-wrap: nowrap;
        }

        .navbar-expand-lg .navbar-nav-scroll {
            overflow: visible;
        }

        .navbar-expand-lg .navbar-collapse {
            display: flex !important;
            flex-basis: auto;
        }

        .navbar-expand-lg .navbar-toggler {
            display: none;
        }
}

/* --- Navbar Responsive (xl) --- */
@media (max-width: 1199.98px) {
    .navbar-expand-xl > .container,
    .navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 1200px) {
    .navbar-expand-xl {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-xl .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-xl .navbar-nav .dropdown-menu {
                position: absolute;
            }

            .navbar-expand-xl .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-xl > .container,
        .navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
            flex-wrap: nowrap;
        }

        .navbar-expand-xl .navbar-nav-scroll {
            overflow: visible;
        }

        .navbar-expand-xl .navbar-collapse {
            display: flex !important;
            flex-basis: auto;
        }

        .navbar-expand-xl .navbar-toggler {
            display: none;
        }
}

/* --- Navbar Expand (no breakpoint) --- */
.navbar-expand {
    flex-flow: row nowrap;
    justify-content: flex-start;
}

    .navbar-expand > .container,
    .navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar-expand .navbar-nav {
        flex-direction: row;
    }

        .navbar-expand .navbar-nav .dropdown-menu {
            position: absolute;
        }

        .navbar-expand .navbar-nav .nav-link {
            padding-right: 0.5rem;
            padding-left: 0.5rem;
        }

    .navbar-expand > .container,
    .navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
        flex-wrap: nowrap;
    }

    .navbar-expand .navbar-nav-scroll {
        overflow: visible;
    }

    .navbar-expand .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand .navbar-toggler {
        display: none;
    }

/* --- Navbar Light Theme --- */
.navbar-light .navbar-brand {
    color: rgba(0, 0, 0, 0.9);
}

    .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus {
        color: rgba(0, 0, 0, 0.9);
    }

.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.5);
}

    .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
        color: rgba(0, 0, 0, 0.7);
    }

    .navbar-light .navbar-nav .nav-link.disabled {
        color: rgba(0, 0, 0, 0.3);
    }

    .navbar-light .navbar-nav .show > .nav-link,
    .navbar-light .navbar-nav .active > .nav-link,
    .navbar-light .navbar-nav .nav-link.show,
    .navbar-light .navbar-nav .nav-link.active {
        color: rgba(0, 0, 0, 0.9);
    }

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-light .navbar-text {
    color: rgba(0, 0, 0, 0.5);
}

    .navbar-light .navbar-text a {
        color: rgba(0, 0, 0, 0.9);
    }

        .navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {
            color: rgba(0, 0, 0, 0.9);
        }


/* ====================================================================
   14. Topbar
   ==================================================================== */
/* --- Sidebar / Topbar 共用 --- */
.sidebar .nav-item.dropdown .dropdown-toggle::after,
.topbar .nav-item.dropdown .dropdown-toggle::after {
    width: 1rem;
    text-align: center;
    float: right;
    vertical-align: 0;
    border: 0;
    font-weight: 900;
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
}

.sidebar .nav-item.dropdown.show .dropdown-toggle::after,
.topbar .nav-item.dropdown.show .dropdown-toggle::after {
    content: '\f107';
}

.sidebar .nav-item .nav-link,
.topbar .nav-item .nav-link {
    position: relative;
}

    .sidebar .nav-item .nav-link .badge-counter,
    .topbar .nav-item .nav-link .badge-counter {
        position: absolute;
        transform: scale(0.7);
        transform-origin: top right;
        right: .07rem;
        top: 1rem;
    }

    .sidebar .nav-item .nav-link .img-profile,
    .topbar .nav-item .nav-link .img-profile {
        height: 2rem;
        width: 2rem;
    }

/* --- Topbar 基本 --- */
.topbar {
    height: 4.375rem;
}

    .topbar #sidebarToggleTop {
        height: 2.5rem;
        width: 2.5rem;
    }

        .topbar #sidebarToggleTop:hover {
            background-color: #eaecf4;
        }

        .topbar #sidebarToggleTop:active {
            background-color: #dddfeb;
        }

    .topbar .navbar-search {
        width: 25rem;
    }

        .topbar .navbar-search input {
            font-size: 0.85rem;
            height: auto;
        }

    .topbar .topbar-divider {
        width: 0;
        border-right: 1px solid #e3e6f0;
        height: calc(4.375rem - 2rem);
        margin: auto 1rem;
    }

    .topbar .nav-item .nav-link {
        height: 4.375rem;
        display: flex;
        align-items: center;
        padding: 0 0.75rem;
    }

        .topbar .nav-item .nav-link:focus {
            outline: none;
        }

    .topbar .nav-item:focus {
        outline: none;
    }

    .topbar .dropdown {
        position: static;
    }

        .topbar .dropdown .dropdown-menu {
            width: calc(100% - 1.5rem);
            right: 0.75rem;
        }

    .topbar .dropdown-list {
        padding: 0;
        border: none;
        overflow: hidden;
    }

        .topbar .dropdown-list .dropdown-header {
            background-color: #4e73df;
            border: 1px solid #4e73df;
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
            color: #fff;
        }

        .topbar .dropdown-list .dropdown-item {
            white-space: normal;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            border-left: 1px solid #e3e6f0;
            border-right: 1px solid #e3e6f0;
            border-bottom: 1px solid #e3e6f0;
            line-height: 1.3rem;
        }

            .topbar .dropdown-list .dropdown-item .dropdown-list-image {
                position: relative;
                height: 2.5rem;
                width: 2.5rem;
            }

                .topbar .dropdown-list .dropdown-item .dropdown-list-image img {
                    height: 2.5rem;
                    width: 2.5rem;
                }

                .topbar .dropdown-list .dropdown-item .dropdown-list-image .status-indicator {
                    background-color: #eaecf4;
                    height: 0.75rem;
                    width: 0.75rem;
                    border-radius: 100%;
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    border: 0.125rem solid #fff;
                }

            .topbar .dropdown-list .dropdown-item .text-truncate {
                max-width: 10rem;
            }

            .topbar .dropdown-list .dropdown-item:active {
                background-color: #eaecf4;
                color: #3a3b45;
            }

@media (min-width: 576px) {
    .topbar .dropdown {
        position: relative;
    }

        .topbar .dropdown .dropdown-menu {
            width: auto;
            right: 0;
        }

    .topbar .dropdown-list {
        width: 20rem !important;
    }

        .topbar .dropdown-list .dropdown-item .text-truncate {
            max-width: 13.375rem;
        }
}

/* --- Topbar Dark Theme --- */
.topbar.navbar-dark .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

    .topbar.navbar-dark .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    }

    .topbar.navbar-dark .navbar-nav .nav-item .nav-link:active {
        color: #fff;
    }

/* --- Topbar Light Theme --- */
.topbar.navbar-light .navbar-nav .nav-item .nav-link {
    color: #d1d3e2;
}

    .topbar.navbar-light .navbar-nav .nav-item .nav-link:hover {
        color: #b7b9cc;
    }

    .topbar.navbar-light .navbar-nav .nav-item .nav-link:active {
        color: #858796;
    }


/* ====================================================================
   15. Sidebar
   ==================================================================== */
/* --- Sidebar 基本 --- */
.sidebar {
    width: 6.5rem;
    min-height: 100vh;
}

    .sidebar .nav-item {
        position: relative;
    }

        .sidebar .nav-item:last-child {
            margin-bottom: 1rem;
        }

        .sidebar .nav-item .nav-link {
            text-align: center;
            padding: 0.75rem 1rem;
            width: 6.5rem;
        }

            .sidebar .nav-item .nav-link span {
                font-size: 0.65rem;
                display: block;
            }

        .sidebar .nav-item.active .nav-link {
            font-weight: 700;
        }

        .sidebar .nav-item .collapse {
            position: absolute;
            left: calc(6.5rem + 1.5rem / 2);
            z-index: 1;
            top: 2px;
        }

            .sidebar .nav-item .collapse .collapse-inner {
                border-radius: 0.35rem;
                box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
            }

        .sidebar .nav-item .collapsing {
            display: none;
            transition: none;
        }

            .sidebar .nav-item .collapse .collapse-inner,
            .sidebar .nav-item .collapsing .collapse-inner {
                padding: .5rem 0;
                min-width: 10rem;
                font-size: 0.85rem;
                margin: 0 0 1rem 0;
            }

                .sidebar .nav-item .collapse .collapse-inner .collapse-item,
                .sidebar .nav-item .collapsing .collapse-inner .collapse-item {
                    padding: 0.5rem 1rem;
                    margin: 0 0.5rem;
                    display: block;
                    color: #3a3b45;
                    text-decoration: none;
                    border-radius: 0.35rem;
                    white-space: nowrap;
                }

                    .sidebar .nav-item .collapse .collapse-inner .collapse-item:hover,
                    .sidebar .nav-item .collapsing .collapse-inner .collapse-item:hover {
                        background-color: #eaecf4;
                    }

                    .sidebar .nav-item .collapse .collapse-inner .collapse-item:active,
                    .sidebar .nav-item .collapsing .collapse-inner .collapse-item:active {
                        background-color: #dddfeb;
                    }

                    .sidebar .nav-item .collapse .collapse-inner .collapse-item.active,
                    .sidebar .nav-item .collapsing .collapse-inner .collapse-item.active {
                        background-color: #eaecf4;
                        font-weight: 600;
                    }

    /* --- Sidebar Toggle Button --- */
    .sidebar #sidebarToggle {
        width: 2.5rem;
        height: 2.5rem;
        text-align: center;
        margin-bottom: 1rem;
        cursor: pointer;
    }

        .sidebar #sidebarToggle::after {
            font-weight: 900;
            content: '\f104';
            font-family: 'Font Awesome 5 Free';
            margin-right: 0.1rem;
        }

        .sidebar #sidebarToggle:hover {
            text-decoration: none;
        }

        .sidebar #sidebarToggle:focus {
            outline: none;
        }

    .sidebar.toggled {
        width: 0 !important;
        overflow: hidden;
    }

        .sidebar.toggled #sidebarToggle::after {
            content: '\f105';
            font-family: 'Font Awesome 5 Free';
            margin-left: 0.25rem;
        }

    /* --- Sidebar Brand & Heading --- */
    .sidebar .sidebar-brand {
        height: 4.375rem;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 800;
        padding: 1.5rem 1rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.05rem;
        z-index: 1;
    }

        .sidebar .sidebar-brand .sidebar-brand-text {
            display: none;
        }

    .sidebar hr.sidebar-divider {
        margin: 0 1rem 1rem;
    }

    .sidebar .sidebar-heading {
        text-align: center;
        padding: 0 1rem;
        font-weight: 800;
        font-size: 0.65rem;
    }

/* --- Sidebar 響應式 (>= 768px) --- */
@media (min-width: 768px) {
    .sidebar {
        width: 14rem !important;
    }

        .sidebar .nav-item .collapse {
            position: relative;
            left: 0;
            z-index: 1;
            top: 0;
            animation: none;
        }

            .sidebar .nav-item .collapse .collapse-inner {
                border-radius: 0;
                box-shadow: none;
            }

        .sidebar .nav-item .collapsing {
            display: block;
            transition: height 0.15s ease;
        }

        .sidebar .nav-item .collapse,
        .sidebar .nav-item .collapsing {
            margin: 0 1rem;
        }

        .sidebar .nav-item .nav-link {
            display: block;
            width: 100%;
            text-align: left;
            padding: 1rem;
            width: 14rem;
        }

            .sidebar .nav-item .nav-link i {
                font-size: 0.85rem;
                margin-right: 0.25rem;
            }

            .sidebar .nav-item .nav-link span {
                font-size: 0.85rem;
                display: inline;
            }

            /* BS5: data-bs-toggle collapse 箭頭 */
            .sidebar .nav-item .nav-link[data-bs-toggle="collapse"]::after {
                width: 1rem;
                text-align: center;
                float: right;
                vertical-align: 0;
                border: 0;
                font-weight: 900;
                content: '\f107';
                font-family: 'Font Awesome 5 Free';
            }

            .sidebar .nav-item .nav-link[data-bs-toggle="collapse"].collapsed::after {
                content: '\f105';
            }

        .sidebar .sidebar-brand .sidebar-brand-text {
            display: inline;
        }

        .sidebar .sidebar-heading {
            text-align: left;
        }

        /* Sidebar toggled 狀態 (桌面) */
        .sidebar.toggled {
            overflow: visible;
            width: 6.5rem !important;
        }

            .sidebar.toggled .nav-item .collapse {
                position: absolute;
                left: calc(6.5rem + 1.5rem / 2);
                z-index: 1;
                top: 2px;
                animation-name: growIn;
                animation-duration: 200ms;
                animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
            }

                .sidebar.toggled .nav-item .collapse .collapse-inner {
                    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
                    border-radius: 0.35rem;
                }

            .sidebar.toggled .nav-item .collapsing {
                display: none;
                transition: none;
            }

            .sidebar.toggled .nav-item .collapse,
            .sidebar.toggled .nav-item .collapsing {
                margin: 0;
            }

            .sidebar.toggled .nav-item:last-child {
                margin-bottom: 1rem;
            }

            .sidebar.toggled .nav-item .nav-link {
                text-align: center;
                padding: 0.75rem 1rem;
                width: 6.5rem;
            }

                .sidebar.toggled .nav-item .nav-link span {
                    font-size: 0.65rem;
                    display: block;
                }

                .sidebar.toggled .nav-item .nav-link i {
                    margin-right: 0;
                }

                .sidebar.toggled .nav-item .nav-link[data-bs-toggle="collapse"]::after {
                    display: none;
                }

            .sidebar.toggled .sidebar-brand .sidebar-brand-text {
                display: none;
            }

            .sidebar.toggled .sidebar-heading {
                text-align: center;
            }
}

/* --- Sidebar 暗色主題 --- */
.sidebar-dark .sidebar-brand {
    color: #fff;
}

.sidebar-dark hr.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-dark .sidebar-heading {
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-dark .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

    .sidebar-dark .nav-item .nav-link i {
        color: rgba(255, 255, 255, 0.3);
    }

    .sidebar-dark .nav-item .nav-link:active,
    .sidebar-dark .nav-item .nav-link:focus,
    .sidebar-dark .nav-item .nav-link:hover {
        color: #fff;
    }

        .sidebar-dark .nav-item .nav-link:active i,
        .sidebar-dark .nav-item .nav-link:focus i,
        .sidebar-dark .nav-item .nav-link:hover i {
            color: #fff;
        }

    .sidebar-dark .nav-item .nav-link[data-bs-toggle="collapse"]::after {
        color: rgba(255, 255, 255, 0.5);
    }

.sidebar-dark .nav-item.active .nav-link {
    color: #fff;
}

    .sidebar-dark .nav-item.active .nav-link i {
        color: #fff;
    }

.sidebar-dark #sidebarToggle {
    background-color: rgba(255, 255, 255, 0.2);
}

    .sidebar-dark #sidebarToggle::after {
        color: rgba(255, 255, 255, 0.5);
    }

    .sidebar-dark #sidebarToggle:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

.sidebar-dark.toggled #sidebarToggle::after {
    color: rgba(255, 255, 255, 0.5);
}


/* ====================================================================
   16. Dropdown
   ==================================================================== */
.dropdown .dropdown-menu {
    font-size: 0.85rem;
}

    .dropdown .dropdown-menu .dropdown-header {
        font-weight: 800;
        font-size: 0.65rem;
        color: #b7b9cc;
    }

.dropdown.no-arrow .dropdown-toggle::after {
    display: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #3a3b45;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

    .dropdown-item:hover, .dropdown-item:focus {
        color: #2e2f37;
        text-decoration: none;
        background-color: #eaecf4;
    }

    .dropdown-item.active, .dropdown-item:active {
        color: #fff;
        text-decoration: none;
        background-color: #4e73df;
    }

    .dropdown-item.disabled, .dropdown-item:disabled {
        color: #b7b9cc;
        pointer-events: none;
        background-color: transparent;
    }

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #858796;
    white-space: nowrap;
}

.dropdown-item-text {
    display: block;
    padding: 0.25rem 1.5rem;
    color: #3a3b45;
}


/* ====================================================================
   17. Nav Tabs
   ==================================================================== */
.nav-tabs .nav-link {
    color: #999;
}

    .nav-tabs .nav-link:hover {
        color: #666;
    }

    .nav-tabs .nav-link.active {
        color: #000;
    }

    .nav-tabs .nav-link.active,
    .nav-tabs .nav-item.show .nav-link {
        color: #6e707e;
        background-color: #fff;
        border-color: #dddfeb #dddfeb #fff;
    }


/* ====================================================================
   18. Breadcrumb
   ==================================================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #eaecf4;
    border-radius: 0.35rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

    .breadcrumb-item + .breadcrumb-item::before {
        float: left;
        padding-right: 0.5rem;
        color: #858796;
        content: "/";
    }

    .breadcrumb-item + .breadcrumb-item:hover::before {
        text-decoration: none;
    }

.breadcrumb-item.active {
    color: #858796;
}

.breadcrumb-item:only-child::before {
    content: none !important;
}


/* ====================================================================
   19. Form Controls & Responsive Form Layout
   ==================================================================== */
/* --- Form Controls (SB Admin 2 theme) --- */
.form-control {
    color: #6e707e;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
}

    .form-control:focus {
        color: #6e707e;
        border-color: #adb5bd;
        box-shadow: 0 0 0 0.1rem rgba(133, 135, 150, 0.35);
    }

    .form-control::placeholder {
        color: #858796;
        opacity: 1;
    }

    .form-control:disabled, .form-control[readonly] {
        background-color: #eaecf4;
    }

.form-control-sm {
    border-radius: 0.2rem;
}

.form-select {
    color: #6e707e;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
}

    .form-select:focus {
        border-color: #adb5bd;
        box-shadow: 0 0 0 0.1rem rgba(133, 135, 150, 0.35);
    }

.form-select-sm {
    border-radius: 0.2rem;
}

.form-check-input:disabled ~ .form-check-label {
    color: #858796;
}

.col-form-label {
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
}

.form-check-label {
    margin-bottom: 0;
}

/* --- 全域表單響應式樣式 --- */
.form-group {
    margin-bottom: 1rem;
}

    .form-group.row {
        align-items: center;
    }

/* 中大型螢幕 - Flexbox 佈局 (適應側邊欄展開/收合) */
@media (min-width: 768px) {
    .ibox-title .form-group.row,
    .ibox-content .form-group.row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Label 樣式 - 彈性寬度 */
    .ibox-title .col-form-label,
    .ibox-content .col-form-label {
        flex: 0 0 auto;
        width: 15%;
        min-width: 110px;
        max-width: 160px;
        padding-right: 0.5rem;
        text-align: left;
        white-space: nowrap;
    }

    /* Input 區域 - 適中長度 */
    .ibox-title [class*="col-"],
    .ibox-content [class*="col-"] {
        flex: 1 1 auto;
        max-width: 100%;
    }

    /* 保持 label 不受影響 */
    .ibox-title .col-form-label,
    .ibox-content .col-form-label {
        flex: 0 0 auto;
        width: 15%;
    }
}

/* 大螢幕 - 側邊欄收合時給予更多空間 */
@media (min-width: 1200px) {
    .ibox-title .col-form-label,
    .ibox-content .col-form-label {
        width: 12%;
        min-width: 120px;
        gap: 0rem;
    }

    /* 大螢幕時稍微放寬 input 長度 */
    .ibox-title [class*="col-"],
    .ibox-content [class*="col-"] {
        max-width: 50%;
    }
}

/* 小螢幕 - 垂直排列 */
@media (max-width: 767.98px) {
    .ibox-title .col-form-label,
    .ibox-content .col-form-label {
        text-align: left;
        max-width: none;
        padding-right: 0;
        width: 100% !important;
        margin-bottom: 0.5rem;
        flex: none;
    }

    .ibox-title [class*="col-"],
    .ibox-content [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- Input Group --- */
.input-group {
    flex-wrap: nowrap;
}

    .input-group .form-control {
        min-width: 0;
        flex: 1;
    }

    .input-group .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }


/* ====================================================================
   20. Buttons
   ==================================================================== */
.btn {
    border-radius: 0.35rem;
}

.btn-primary {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #2e59d9;
        border-color: #2653d4;
    }

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #858796;
    --bs-btn-border-color: #858796;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #717384;
    --bs-btn-hover-border-color: #6b6d7d;
    --bs-btn-focus-shadow-rgb: 151, 153, 166;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6b6d7d;
    --bs-btn-active-border-color: #656776;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #858796;
    --bs-btn-disabled-border-color: #858796;
}

.btn-success {
    color: #fff;
    background-color: #1cc88a;
    border-color: #1cc88a;
}

    .btn-success:hover {
        color: #fff;
        background-color: #17a673;
        border-color: #169b6b;
    }

.btn-info {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
}

    .btn-info:hover {
        color: #fff;
        background-color: #2c9faf;
        border-color: #2a96a5;
    }

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #e74a3b;
    --bs-btn-border-color: #e74a3b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e02d1b;
    --bs-btn-hover-border-color: #d52a1a;
    --bs-btn-focus-shadow-rgb: 235, 101, 88;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d52a1a;
    --bs-btn-active-border-color: #ca2819;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #e74a3b;
    --bs-btn-disabled-border-color: #e74a3b;
}

.btn-outline-dark {
    --bs-btn-color: #5a5c69;
    --bs-btn-border-color: #5a5c69;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5a5c69;
    --bs-btn-hover-border-color: #5a5c69;
    --bs-btn-focus-shadow-rgb: 90, 92, 105;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5a5c69;
    --bs-btn-active-border-color: #5a5c69;
    --bs-btn-disabled-color: #5a5c69;
    --bs-btn-disabled-bg: transparent;
}

.btn-link {
    color: #4e73df;
}

    .btn-link:hover {
        color: #224abe;
    }

    .btn-link:disabled, .btn-link.disabled {
        color: #858796;
    }

.btn-sm {
    border-radius: 0.2rem;
}


/* ====================================================================
   21. Cards
   ==================================================================== */
.card {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

    .card-header:first-child {
        border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0;
    }

.card-body {
    padding: 1.25rem;
}


/* ====================================================================
   22. Tables
   ==================================================================== */
.table {
    color: #858796;
}

    .table th,
    .table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #e3e6f0;
    }

    .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #e3e6f0;
        border-top: none;
    }

    .table tbody + tbody {
        border-top: 2px solid #e3e6f0;
    }

/* ====================================================================
   23. Footer
   ==================================================================== */
footer.sticky-footer {
    padding: 2rem 0;
    flex-shrink: 0;
}

    footer.sticky-footer .copyright {
        line-height: 1;
        font-size: 0.8rem;
    }

body.sidebar-toggled footer.sticky-footer {
    width: 100%;
}


/* ====================================================================
   24. Custom Components
   ==================================================================== */
/* --- Password Wrapper --- */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

    .password-toggle:hover {
        color: #495057;
    }

/* --- Page Loading --- */
#page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dots {
    display: flex;
    gap: 8px;
    z-index: 1;
}

    .loading-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #28a745;
        animation: dot-bounce 1.4s ease-in-out infinite;
    }

        .loading-dots .dot:nth-child(1) {
            animation-delay: 0s;
        }

        .loading-dots .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        .loading-dots .dot:nth-child(4) {
            animation-delay: 0.6s;
        }

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #28a745;
    width: 0%;
    animation: loading-progress 8s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes loading-progress {
    0% {
        width: 0%;
    }

    10% {
        width: 30%;
    }

    30% {
        width: 55%;
    }

    50% {
        width: 72%;
    }

    70% {
        width: 85%;
    }

    90% {
        width: 92%;
    }

    100% {
        width: 95%;
    }
}

/* --- ibox --- */
.ibox {
    background-color: transparent;
    border-radius: 4px;
    margin-bottom: 20px;
    gap: 8px;
}

.ibox-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #e7eaec;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

    .ibox-title h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

.ibox-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e7eaec;
}

/* ibox color */
.ibox-primary {
    border-top: 3px solid #1ab394;
}

.ibox-success {
    border-top: 3px solid #28a745;
}

.ibox-warning {
    border-top: 3px solid #ffc107;
}

.ibox-danger {
    border-top: 3px solid #dc3545;
}

/* ibox tools */
.ibox-tools a {
    color: #666;
    margin-left: 8px;
    cursor: pointer;
}

    .ibox-tools a:hover {
        color: #000;
    }

/* ibox 收合狀態 */
.ibox.collapsed .ibox-content {
    display: none;
}

.ibox.collapsed .ibox-title i {
    transform: rotate(180deg);
}

/* ibox-title 連接收合區塊時，移除底部圓角與間距 */
.ibox-title.ibox-open {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    margin-bottom: 0;
}

/* 收合內容區塊，樣式與 ibox-title 一致並緊接其下 */
.ibox-collapse-content {
    padding: 12px 15px;
    border: 1px solid #e7eaec;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    margin-bottom: 10px;
}

/* --- Table Sortable --- */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 26px !important;
    white-space: normal;
}

    .sortable:hover {
        background-color: #f5f5f5;
    }

    .sortable i {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.5;
        font-size: 0.75em;
        margin-left: 0 !important;
    }

    .sortable.text-nowrap {
        padding-right: 26px !important;
    }

/* --- Icon Buttons --- */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

    .icon-btn:hover {
        transform: scale(1.2);
    }

.icon-btn-copy {
    color: #1ab394;
}

.icon-btn-delete {
    color: #ed5565;
}

    .icon-btn-delete:disabled {
        color: lightgray;
        cursor: not-allowed;
    }

/* info-box */
.info-box {
    clear: both;
    margin-bottom: 25px;
    margin-top: 0px;
    padding: 0px;
}

.info-box-title {
    background-color: rgb(255, 255, 255);
    color: inherit;
    margin-bottom: 0px;
    min-height: 48px;
    position: relative;
    clear: both;
    border-color: rgb(231, 234, 236);
    border-style: solid solid none;
    border-width: 2px 0px 0px;
    padding: 12px 90px 8px 15px;
    font-weight: bold;
}

.info-box-content {
    background-color: rgb(255, 255, 255);
    color: inherit;
    border-color: rgb(231, 234, 236);
    border-width: 1px 0px;
    border-style: solid solid none;
    padding: 15px 20px 20px;
}

/* ====================================================================
   25. Layout Overrides
   ==================================================================== */
.sidebar-color {
    background-color: #1B2E4A;
    background-image: linear-gradient(180deg, #3D5267 10%, #1B2E4A 100%);
    background-size: cover;
}


/* ====================================================================
   26. Print Utilities
   ==================================================================== */
@media print {
    .d-print-none {
        display: none !important;
    }

    .d-print-inline {
        display: inline !important;
    }

    .d-print-inline-block {
        display: inline-block !important;
    }

    .d-print-block {
        display: block !important;
    }

    .d-print-table {
        display: table !important;
    }

    .d-print-table-row {
        display: table-row !important;
    }

    .d-print-table-cell {
        display: table-cell !important;
    }

    .d-print-flex {
        display: flex !important;
    }

    .d-print-inline-flex {
        display: inline-flex !important;
    }
}

/* ====================================================================
   27. Page-link
   ==================================================================== */
.page-link:focus {
    box-shadow: 0 0 0 0.1rem rgba(133, 135, 150, 0.35);
    background-color: transparent;
}

/* ====================================================================
   28. Autocomplete
   ==================================================================== */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .autocomplete-dropdown .dropdown-item {
        padding: 0.35rem 0.75rem;
        cursor: pointer;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .autocomplete-dropdown .dropdown-item:hover {
            background-color: #f0f0f0;
        }

    .autocomplete-dropdown .dropdown-empty,
    .autocomplete-dropdown .dropdown-loading {
        padding: 0.35rem 0.75rem;
        color: #999;
        font-size: 0.875rem;
    }

/* ====================================================================
   29. Notice Feed
   ==================================================================== */
.notice-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-item + .notice-item {
    border-top: 1px solid #e7eaec;
}

.notice-item > a {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

    .notice-item > a:hover {
        background-color: #eef6fc;
    }

        .notice-item > a:hover .notice-title {
            color: #1c84c6;
        }

.notice-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e7f4ff;
    color: #1c84c6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 0.9rem;
}

.notice-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background-color: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}

.notice-body {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-meta {
    font-size: 0.75rem;
    color: #888;
}

    .notice-meta .divider {
        margin: 0 8px;
        color: #ccc;
    }

.notice-empty {
    padding: 24px 20px;
    text-align: center;
    color: #aaa;
}

    .notice-empty i {
        font-size: 2rem;
        margin-bottom: 8px;
        display: block;
        opacity: 0.5;
    }

.notice-footer {
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #e7eaec;
    background-color: #fafbfc;
}

    .notice-footer a {
        color: #676a6c;
        text-decoration: none;
        font-size: 0.85rem;
    }

        .notice-footer a:hover {
            color: #1c84c6;
        }

.notice-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}

.notice-count {
    font-size: 0.75rem;
    font-weight: normal;
    color: #888;
    margin-left: 8px;
}
