:root {
    --brand: #003366;
    --brand-dark: #002a52;
    --brand-soft: #e8eef5;
    --brand-soft-2: #f2f6fa;
    --accent: #2962ff;
    --navy: #003366;
    --navy-deep: #002a52;
    --bg: #f5f5f5;
    --surface: #ffffff;
    --text: rgba(0, 0, 0, .88);
    --text-secondary: rgba(0, 0, 0, .65);
    --text-muted: rgba(0, 0, 0, .65);
    --border: rgba(5, 5, 5, .06);
    --border-strong: #d9d9d9;
    --radius-lg: 14px;
    --radius: 10px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 36px rgba(16, 24, 40, .14);
    --sidebar-w: 220px;
    --header-h: 60px;
    --gap: 8px;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.5714285714285714;
    --bs-body-color: rgba(0, 0, 0, .88);
    --bs-body-bg: #f5f5f5;
    --bs-body-color-rgb: 0, 0, 0;
    --bs-border-color: rgba(5, 5, 5, .06);
    --bs-border-color-translucent: #e8ebf0;
    --bs-border-radius: 8px;
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: 10px;
    --bs-primary: #009efb;
    --bs-primary-rgb: 0, 158, 251;
    --bs-link-color: #009efb;
    --bs-link-color-rgb: 0, 158, 251;
    --bs-link-hover-color: #008ce0;
    --bs-focus-ring-color: rgba(0, 158, 251, .2);
}
.bg-primary { background-color: #2962ff !important; }
.bg-success { background-color: #7bb13c !important; }
.bg-info { background-color: #009efb !important; }
.bg-warning { background-color: #ffbc34 !important; }
.bg-danger { background-color: #e84646 !important; }
.text-primary { color: #2962ff !important; }
.text-success { color: #7bb13c !important; }
.text-info { color: #009efb !important; }
.text-warning { color: #ffbc34 !important; }
.text-danger { color: #e84646 !important; }
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a {
    color: var(--brand);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover {
    color: var(--brand-dark);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -.01em;
}
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
h5 { font-size: 15px; }
h6 { font-size: 14px; }
hr {
    border-color: var(--border);
    opacity: 1;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}
.font-12 { font-size: 12px !important; }
.font-13 { font-size: 13px !important; }
.font-14 { font-size: 14px !important; }
.font-15 { font-size: 15px !important; }
.font-16 { font-size: 16px !important; }
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cfd6e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b6c0cd;
}
.main-wrapper {
    display: block;
    min-height: 100vh;
}
.page-wrapper {
    margin-left: var(--sidebar-w);
    padding-top: var(--header-h);
    min-height: 100vh;
    transition: margin .2s ease;
}
.page-wrapper > .content {
    padding: 20px 24px 28px;
    max-width: 100%;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: linear-gradient(-45deg, #003399, #003366);
    z-index: 1030;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.header .header-left {
    width: var(--sidebar-w);
    height: var(--header-h);
    padding: 0 18px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header .header-left .logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
}
.header .header-left .logo img {
    max-height: 32px;
    width: auto;
}
.header .header-left .logo.logo-small {
    display: none;
}
.header .header-left .logo span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}
#toggle_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    transition: background .15s ease, color .15s ease;
}
#toggle_btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.mobile_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
}
.header .user-menu {
    margin-left: auto;
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header .user-menu .nav-item > .nav-link {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .85);
    transition: background .15s ease;
}
.header .user-menu .nav-item > .nav-link:hover,
.header .user-menu .nav-item.show > .nav-link {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.header .user-menu .nav-link::after {
    display: none;
}
.header .user-img img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .18);
}
.sidebar {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1020;
    transition: left .2s ease, width .2s ease;
}
.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 16px;
}
.sidebar-menu {
    padding: 0 8px;
}
.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-menu li {
    margin-bottom: 4px;
}
.sidebar-menu li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    color: rgba(0, 0, 0, .88);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5715;
    transition: background .2s cubic-bezier(.645, .045, .355, 1), color .2s cubic-bezier(.645, .045, .355, 1);
}
.sidebar-menu li > a > i {
    width: 14px;
    font-size: 14px;
    text-align: center;
    color: rgba(0, 0, 0, .88);
    transition: color .2s cubic-bezier(.645, .045, .355, 1);
}
.sidebar-menu li > a > span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-menu li > a:hover {
    background: rgba(0, 0, 0, .06);
    color: rgba(0, 0, 0, .88);
}
.sidebar-menu li > a:hover > i {
    color: rgba(0, 0, 0, .88);
}
.sidebar-menu li.active > a {
    background: #e6f4ff;
    color: #1677ff;
    font-weight: 400;
}
.sidebar-menu li.active > a > i {
    color: #1677ff;
}
.sidebar-menu li.active > a:hover {
    background: #e6f4ff;
    color: #1677ff;
}
.sidebar-menu .submenu > ul {
    display: none;
    padding: 4px 0 4px 28px;
}
.sidebar-menu .submenu > ul a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 13px;
}
.sidebar-menu .submenu > ul a:hover {
    background: rgba(0,0,0,.04);
    color: var(--brand);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 1015;
}
body.mini-sidebar .sidebar {
    width: 64px;
}
body.mini-sidebar .sidebar-menu li > a {
    justify-content: center;
    padding: 11px 0;
}
body.mini-sidebar .sidebar-menu li > a > span {
    display: none;
}
body.mini-sidebar .page-wrapper {
    margin-left: 64px;
}
body.mini-sidebar .header .header-left {
    width: 64px;
    justify-content: center;
    padding: 0;
}
body.mini-sidebar .header .header-left .logo {
    display: none;
}
body.mini-sidebar .header .header-left .logo.logo-small {
    display: inline-flex;
}
.page-header {
    margin-bottom: 20px;
}
.page-header .page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.4;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.breadcrumb-item {
    color: var(--text-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--border-strong);
    padding: 0 6px 0 2px;
    float: none;
    display: inline;
}
.breadcrumb-item a {
    color: var(--text-muted);
}
.breadcrumb-item a:hover {
    color: var(--brand);
}
.breadcrumb-item.active {
    color: var(--text-secondary);
}
.card {
    --bs-card-bg: var(--surface);
    --bs-card-border-color: transparent;
    --bs-card-border-radius: 6px;
    --bs-card-inner-border-radius: 6px;
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-x: 20px;
    --bs-card-cap-padding-y: 16px;
    --bs-card-spacer-x: 20px;
    --bs-card-spacer-y: 20px;
    background: var(--surface);
    border: 1px solid rgba(5,5,5,.06);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
    margin-bottom: 20px;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(5,5,5,.06);
    padding: 16px 20px;
    border-radius: 6px 6px 0 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.card-header .card-title {
    margin-right: auto;
}
.card-header:first-child {
    border-radius: 6px 6px 0 0;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.card-body {
    padding: 20px;
}
.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 14px 20px;
}
.dash-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}
.dash-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #fff;
}
.dash-widget-info {
    text-align: right;
}
.dash-widget-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
}
.dash-widget-info span {
    color: var(--text-muted);
    font-size: 13px;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.filter-bar .form-control {
    width: 200px;
}
.filter-bar .form-select {
    width: 116px;
}
.filter-bar .btn {
    margin: 0;
}

.card-header .filter-bar {
    margin-bottom: 0;
    flex: 1;
}
.table > tbody > tr {
    height: 84px;
}
.cover-cell img {
    display: block;
    width: 100px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f2f5;
}
.time-cell {
    font-variant-numeric: tabular-nums;
}
.time-item {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(0, 0, 0, .65);
    white-space: nowrap;
}
.time-item:first-child {
    color: rgba(0, 0, 0, .88);
}

.table .nowrap {
    white-space: nowrap;
}
.table,
.table > :not(caption) > *,
.table > :not(caption) > * > *,
.table-bordered {
    border-top: 0;
    border-left: 0;
    border-right: 0;
}
.table > :not(caption) > * {
    border-bottom: 0;
}
.table-responsive {
    border: 0;
}

@media (max-width: 991.98px) {
    .table-responsive > .table {
        min-width: 680px;
    }

    .table-responsive > .table > :not(caption) > * > * {
        white-space: nowrap;
    }
}
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: #fafafa;
    --bs-table-hover-bg: #fafafa;
    margin-bottom: 0;
    font-size: 14px;
    vertical-align: middle;
}
.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(5, 5, 5, .06);
    vertical-align: middle;
}
.table > thead > tr > th {
    background: #f3f6f9;
    color: rgba(0, 0, 0, .65);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-top: 0;
    border-bottom: 1px solid rgba(5, 5, 5, .06);
}
    border-bottom: 0;
}
.table > tbody > tr:hover > * {
    background: rgba(0,0,0,.02);
}
.table-bordered {
    border: 0;
}
.table-bordered > :not(caption) > * > * {
    border: 0;
    border-bottom: 1px solid rgba(5, 5, 5, .06);
}
.table-responsive {
    border-radius: var(--radius-sm);
}
.table img {
    border-radius: var(--radius-xs);
}
.table a:not(.btn) {
    color: var(--text);
    font-weight: 500;
}
.table a:not(.btn):hover {
    color: var(--brand);
}
.table td .btn {
    margin: 1px 0;
}
.table .list-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.table .checkbox {
    margin: 0;
}
.btn {
    --bs-btn-font-size: 14px;
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 6px;
    --bs-btn-border-radius: 4px;
    --bs-btn-font-weight: 400;
    font-weight: 400;
    border-radius: 4px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.5;
}
.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 158, 251, .22);
}
.btn-primary {
    --bs-btn-bg: #003366;
    --bs-btn-border-color: #003366;
    --bs-btn-hover-bg: #002a52;
    --bs-btn-hover-border-color: #002a52;
    --bs-btn-active-bg: #00234a;
    --bs-btn-active-border-color: #00234a;
    --bs-btn-disabled-bg: #6b8cb0;
    --bs-btn-disabled-border-color: #6b8cb0;
}
.btn-secondary {
    --bs-btn-bg: #f1f4f9;
    --bs-btn-border-color: #e4e9f1;
    --bs-btn-color: var(--text-secondary);
    --bs-btn-hover-bg: #e7ecf4;
    --bs-btn-hover-border-color: #dbe2ec;
    --bs-btn-hover-color: var(--text);
    --bs-btn-active-bg: #e1e7f0;
    --bs-btn-active-border-color: #d5dde8;
    --bs-btn-active-color: var(--text);
}
.btn-success {
    --bs-btn-bg: #7bb13c;
    --bs-btn-border-color: #7bb13c;
    --bs-btn-hover-bg: #699834;
    --bs-btn-hover-border-color: #699834;
    --bs-btn-active-bg: #5f8a2f;
    --bs-btn-active-border-color: #5f8a2f;
}
.btn-danger {
    --bs-btn-bg: #e84646;
    --bs-btn-border-color: #e84646;
    --bs-btn-hover-bg: #d63b3b;
    --bs-btn-hover-border-color: #d63b3b;
    --bs-btn-active-bg: #c93434;
    --bs-btn-active-border-color: #c93434;
}
.btn-warning {
    --bs-btn-bg: #ffbc34;
    --bs-btn-border-color: #ffbc34;
    --bs-btn-color: #4a3300;
    --bs-btn-hover-bg: #f5b021;
    --bs-btn-hover-border-color: #f5b021;
    --bs-btn-hover-color: #4a3300;
    --bs-btn-active-bg: #e8a413;
    --bs-btn-active-border-color: #e8a413;
    --bs-btn-active-color: #4a3300;
}
.btn-info {
    --bs-btn-bg: #009efb;
    --bs-btn-border-color: #009efb;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #008ce0;
    --bs-btn-hover-border-color: #008ce0;
    --bs-btn-hover-color: #fff;
}
.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--border-strong);
    --bs-btn-color: var(--text-secondary);
    --bs-btn-hover-bg: #f7f9fc;
    --bs-btn-hover-border-color: #cfd6e0;
    --bs-btn-hover-color: var(--text);
}
.btn-link {
    --bs-btn-color: var(--brand);
    text-decoration: none;
}
.btn-sm {
    --bs-btn-font-size: 13px;
    --bs-btn-padding-x: 8px;
    --bs-btn-padding-y: 4px;
    --bs-btn-border-radius: 3px;
}
.btn-lg {
    --bs-btn-font-size: 15px;
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 10px;
    --bs-btn-border-radius: 10px;
}
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control,
.form-select {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--text);
    background-color: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder {
    color: rgba(0,0,0,.3);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 158, 251, .16);
    background-color: #fff;
}
.form-control:disabled,
.form-control[readonly] {
    background-color: #f6f8fb;
    color: var(--text-muted);
}
.form-select {
    padding-right: 32px;
}
textarea.form-control {
    min-height: 96px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    padding-left: 0;
    margin-bottom: 0;
}
.form-check .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    cursor: pointer;
}
.form-check .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 158, 251, .16);
    border-color: var(--brand);
}
.form-check .form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding-left: 0;
}
.form-radio {
    border-radius: 50%;
}
.input-group {
    flex-wrap: nowrap;
}
.input-group > .form-control,
.input-group > .form-select {
    border-radius: var(--radius-sm);
}
.input-group-text {
    background: #f6f8fb;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 13px;
}

.datetime-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.datetime-group .input-group-btn > .btn {
    height: 38px;
    margin-left: 0;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.time-range {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.time-range > .form-control {
    flex: 1;
    min-width: 0;
}

.time-range-item {
    flex: 1;
    min-width: 0;
}

.time-sep {
    line-height: 38px;
    color: rgba(0, 0, 0, .45);
}

.help-block-none {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(0, 0, 0, .45);
}

.live-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    padding: 2px 0;
}

.live-status-label {
    color: rgba(0, 0, 0, .65);
}

.live-status-value {
    font-weight: 500;
}

.video-upload {
    border: 1px solid rgba(5, 5, 5, .06);
    border-radius: 6px;
    padding: 16px;
    background: #fafafa;
    max-width: 720px;
}

.video-upload-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-progress {
    flex: 1;
    min-width: 180px;
}

.video-progress .progress {
    margin: 0;
    height: 8px;
}

.video-picker {
    min-width: 104px;
    height: 38px;
    padding: 0 16px;
    line-height: 38px;
    text-align: center;
    color: #fff;
    background: #1677ff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.video-upload-head .webuploader-container {
    flex-shrink: 0;
}

.video-upload .webuploader-pick {
    padding: 0;
    background: transparent;
    border-radius: 6px;
}

.video-upload-tip {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, .45);
}

.video-upload-log {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(0, 0, 0, .65);
    max-height: 80px;
    overflow: auto;
}

.video-preview {
    display: block;
    width: 100%;
    max-width: 480px;
    margin-top: 12px;
    border-radius: 6px;
    background: #000;
}

.cover-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cover-option {
    width: 160px;
    text-align: center;
}

.cover-thumb {
    position: relative;
    display: block;
    width: 160px;
    height: 90px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color .2s;
}

.cover-thumb:hover {
    border-color: #1677ff;
}

.cover-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cover-empty {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(0, 0, 0, .45);
    font-size: 12px;
}

.cover-empty i {
    font-size: 18px;
    color: #bfbfbf;
}

.cover-empty em {
    font-style: normal;
}

.cover-option input[type=radio] {
    width: 16px;
    height: 16px;
    accent-color: #1677ff;
    cursor: pointer;
}

.cover-option:has(input:checked) .cover-thumb {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, .15);
}
.form-text {
    font-size: 12px;
    color: var(--text-muted);
}
.invalid-feedback,
.valid-feedback {
    font-size: 12px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group > label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.upload-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.upload-box-lg {
    width: 320px;
    height: 180px;
}
.upload-box:hover {
    border-color: #1677ff;
    background: #f5faff;
}
.upload-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
}
.upload-box.has-image img {
    opacity: 1;
}
.upload-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(0, 0, 0, .45);
    font-size: 13px;
}
.upload-empty i {
    font-size: 20px;
    color: #bfbfbf;
}
.upload-empty em,
.upload-hover em {
    font-style: normal;
}
.upload-box.has-image .upload-empty {
    display: none;
}
.upload-hover {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
}
.upload-box.has-image:hover .upload-hover {
    display: flex;
}
.upload-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(0, 0, 0, .45);
}
.dropdown-menu {
    --bs-dropdown-border-color: var(--border);
    --bs-dropdown-border-radius: var(--radius);
    --bs-dropdown-padding-y: 6px;
    --bs-dropdown-font-size: 14px;
    --bs-dropdown-item-border-radius: 6px;
    --bs-dropdown-link-active-bg: var(--brand-soft);
    --bs-dropdown-link-active-color: var(--brand);
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.dropdown-item {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0,0,0,.04);
    color: var(--text);
}
.dropdown-item.active,
.dropdown-item:active {
    background: var(--brand-soft);
    color: var(--brand);
}
.dropdown-divider {
    border-color: var(--border);
    margin: 6px 0;
}
.header .dropdown-menu .user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.header .dropdown-menu .user-header .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.header .dropdown-menu .user-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header .dropdown-menu .user-header .user-text h6 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.header .dropdown-menu .user-header .user-text p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}
.modal {
    --bs-modal-border-radius: var(--radius-lg);
    --bs-modal-header-padding: 16px 20px;
    --bs-modal-padding: 20px;
    --bs-modal-footer-gap: 8px;
}
.modal-backdrop {
    --bs-backdrop-bg: #0f172a;
    --bs-backdrop-opacity: .45;
}
.modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.modal-body {
    padding: 20px;
    font-size: 14px;
}
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.modal-footer > * {
    margin: 0;
}
.btn-close {
    width: 12px;
    height: 12px;
    padding: 6px;
    background-size: 12px;
    border-radius: 6px;
    opacity: .45;
    transition: background-color .15s ease, opacity .15s ease;
}
.btn-close:hover {
    opacity: .8;
    background-color: #f1f4f9;
}
.modal-body .form-group:last-child {
    margin-bottom: 0;
}
.badge {
    --bs-badge-font-size: 12px;
    --bs-badge-font-weight: 500;
    --bs-badge-padding-x: 8px;
    --bs-badge-padding-y: 3px;
    border-radius: 6px;
    letter-spacing: .01em;
}
.alert {
    --bs-alert-border-radius: var(--radius-sm);
    --bs-alert-padding-x: 16px;
    --bs-alert-padding-y: 12px;
    --bs-alert-font-size: 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}
.pagination {
    --bs-pagination-font-size: 14px;
    --bs-pagination-padding-x: 10px;
    --bs-pagination-padding-y: 6px;
    --bs-pagination-border-radius: 6px;
    --bs-pagination-color: var(--text-secondary);
    --bs-pagination-border-color: var(--border);
    --bs-pagination-hover-bg: rgba(0,0,0,.04);
    --bs-pagination-hover-color: var(--accent);
    --bs-pagination-hover-border-color: var(--border);
    --bs-pagination-active-bg: var(--accent);
    --bs-pagination-active-border-color: var(--accent);
    --bs-pagination-disabled-color: #c2cad6;
    gap: 4px;
    margin: 0;
}
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 6px;
}
.page-link {
    border-radius: 6px;
    min-width: 34px;
    text-align: center;
    line-height: 1.4;
}
.patination-tip {
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    padding: 8px 0;
}
.progress {
    --bs-progress-height: 8px;
    --bs-progress-border-radius: 4px;
    --bs-progress-bg: #eef2f7;
}
.progress-bar {
    border-radius: 4px;
}
.nav-tabs {
    --bs-nav-tabs-border-color: var(--border);
    --bs-nav-tabs-link-active-color: var(--brand);
    --bs-nav-tabs-link-active-border-color: var(--border) var(--border) #fff;
    border-bottom: 1px solid var(--border);
    gap: 2px;
}
.nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 14px;
}
.nav-tabs .nav-link:hover {
    color: var(--text);
}
.nav-tabs .nav-link.active {
    color: var(--brand);
    background: transparent;
    border-bottom-color: var(--brand);
    font-weight: 500;
}
.nav-pills .nav-link {
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.nav-pills .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
}
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}
.thumb-sm {
    width: 100px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    background: #eef2f7;
}
.login-body {
    min-height: 100vh;
    background: #fafafa;
    display: flex;
    align-items: center;
}
.login-wrapper {
    width: 100%;
    padding: 32px 16px;
}
.loginbox {
    display: flex;
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 47, 92, .12);
    overflow: hidden;
    min-height: 460px;
}
.login-left {
    width: 50%;
    background: linear-gradient(180deg, #003399, #003366);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.login-left::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(0, 158, 251, .18);
}
.login-left img {
    max-width: 72%;
    max-height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 52px;
}
.login-right-wrap {
    width: 100%;
}
.login-right-wrap h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text);
    text-align: center;
}
.login-right-wrap .account-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 26px;
    text-align: center;
}
.login-right-wrap .form-group {
    margin-bottom: 16px;
}
.login-right-wrap .form-control {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border-color: #e4e9f1;
}
.login-right-wrap .form-control:focus {
    background: #fff;
}
.btn-login {
    min-height: 44px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 4px;
}
.login-or {
    position: relative;
    text-align: center;
    margin: 22px 0 14px;
}
.login-or .or-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}
.login-or .span-or {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(0,0,0,.3);
}
.copyright-login {
    text-align: center;
    font-size: 12px;
    color: #a6afbd;
    margin-top: 8px;
}
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.form-inline .form-group {
    margin-bottom: 0;
}
.form-inline .form-control,
.form-inline .form-select {
    width: auto;
    min-width: 150px;
}
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.float-right { float: right !important; }
.float-left { float: left !important; }
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.btn-block {
    display: block;
    width: 100%;
}
.input-group-prepend,
.input-group-append {
    display: flex;
}
.no-gutters {
    margin-right: 0;
    margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.close {
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 1;
    color: rgba(0,0,0,.45);
    opacity: .75;
    background: transparent;
    border: 0;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.close:hover {
    opacity: 1;
    color: var(--text);
    background: #f1f4f9;
}
.close i {
    font-size: 14px;
}
.modal-header .close {
    float: none;
    margin-left: auto;
}
.card .table-responsive > .table-bordered {
    border: 0;
}
.form-horizontal .control-label {
    padding-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.has-arrow > a::after {
    display: none;
}
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.panel-default {
    border-color: var(--border);
}
.panel-heading {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}
.panel-body {
    padding: 14px 16px;
    font-size: 14px;
}
.panel-body .panel-body {
    padding: 0;
}
.input-group-btn {
    display: flex;
    align-items: stretch;
}
.input-group-btn > .btn {
    border-radius: var(--radius-sm);
    margin-left: 8px;
}
.form-control-label,
.form-control-label label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.m-t-5 { margin-top: 5px !important; }
.m-t-10 { margin-top: 10px !important; }
.m-t-20 { margin-top: 20px !important; }
.m-t-30 { margin-top: 30px !important; }
.m-b-5 { margin-bottom: 5px !important; }
.m-b-10 { margin-bottom: 10px !important; }
.m-b-20 { margin-bottom: 20px !important; }
.m-b-30 { margin-bottom: 30px !important; }
.p-t-10 { padding-top: 10px !important; }
.p-t-20 { padding-top: 20px !important; }
.p-b-10 { padding-bottom: 10px !important; }
.p-b-20 { padding-bottom: 20px !important; }
.header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}
.icons.jebtns {
    cursor: pointer;
}
@media (max-width: 1199.98px) {
    .page-wrapper > .content {
        padding: 18px 18px 24px;
    }
}
@media (max-width: 991.98px) {
    .sidebar {
        left: calc(var(--sidebar-w) * -1);
        box-shadow: var(--shadow-lg);
    }
    .page-wrapper {
        margin-left: 0;
    }
    body.menu-opened .sidebar {
        left: 0;
    }
    body.menu-opened .sidebar-overlay {
        display: block;
    }
    .header .header-left {
        width: auto;
        padding: 0 14px;
    }
    .header .header-left .logo {
        display: none;
    }
    .header .header-left .logo.logo-small {
        display: inline-flex;
    }
    #toggle_btn {
        display: none;
    }
    .mobile_btn {
        display: inline-flex;
    }
    body.mini-sidebar .sidebar {
        width: var(--sidebar-w);
    }
    body.mini-sidebar .page-wrapper {
        margin-left: 0;
    }
    body.mini-sidebar .sidebar-menu li > a {
        justify-content: flex-start;
        padding: 9px 12px;
    }
    body.mini-sidebar .sidebar-menu li > a > span {
        display: inline;
    }
    .loginbox {
        flex-direction: column;
        max-width: 460px;
        min-height: 0;
    }
    .login-left {
        width: 100%;
        min-height: 130px;
        padding: 26px;
    }
    .login-left img {
        max-height: 56px;
    }
    .login-right {
        padding: 32px 28px;
    }
}
@media (max-width: 767.98px) {
    .page-wrapper > .content {
        padding: 14px 14px 20px;
    }
    .page-header .page-title {
        font-size: 18px;
    }
    .card-body {
        padding: 16px;
    }
    .card-header {
        padding: 14px 16px;
    }
    .table > :not(caption) > * > * {
        padding: 10px 10px;
    }
    .login-right {
        padding: 26px 20px;
    }
    .form-inline {
        gap: 6px;
    }
    .form-inline .form-control,
    .form-inline .form-select {
        min-width: 120px;
        width: 100%;
    }
}
@media print {
    .header,
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }
    .page-wrapper {
        margin-left: 0;
        padding-top: 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
