/* 后台框架圆角主题，仅作用于主框架和后台内容页。 */

/* 登录页主按钮：与菜单选中态、弹窗标题使用同一渐变。 */
.fa-theme-login #login-form .btn-login {
    border-color: transparent !important;
    border-radius: 6px !important;
    background: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
    box-shadow: 0 8px 18px rgba(24, 188, 156, .18);
    color: #fff !important;
}

.fa-theme-login #login-form .btn-login:hover,
.fa-theme-login #login-form .btn-login:focus,
.fa-theme-login #login-form .btn-login:active {
    border-color: transparent !important;
    background: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
    color: #fff !important;
    opacity: .92;
}

/* 顶部个人资料入口卡片。 */
.fa-theme-shell .navbar-nav > .user-menu > .dropdown-menu {
    overflow: hidden;
    border-radius: 6px !important;
}

.fa-theme-shell .navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    background: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
}

.fa-theme-shell .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn {
    border-radius: 6px !important;
}

/* 语言偏好：选中项及其悬浮/聚焦状态始终保持主题渐变。 */
.fa-theme-shell .main-header .navbar .navbar-nav > li.dropdown-language .dropdown-menu > li.active > a,
.fa-theme-shell .main-header .navbar .navbar-nav > li.dropdown-language .dropdown-menu > li.active > a:hover,
.fa-theme-shell .main-header .navbar .navbar-nav > li.dropdown-language .dropdown-menu > li.active > a:focus {
    background-color: #18bc9c !important;
    background-image: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
    color: #fff !important;
}

/* 弹窗容器与标题栏。 */
.fa-theme-shell .layui-layer-fast,
.fa-theme-content .layui-layer-fast {
    overflow: hidden !important;
    border-radius: 8px !important;
}

.fa-theme-shell .layui-layer-fast.layui-layer-iframe,
.fa-theme-content .layui-layer-fast.layui-layer-iframe {
    overflow: hidden !important;
}

.fa-theme-shell .layui-layer-fast .layui-layer-title,
.fa-theme-content .layui-layer-fast .layui-layer-title {
    border-radius: 8px 8px 0 0 !important;
    background: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
}

.fa-theme-shell .layui-layer-fast .layui-layer-btn,
.fa-theme-shell .layui-layer-fast .layui-layer-footer,
.fa-theme-content .layui-layer-fast .layui-layer-btn,
.fa-theme-content .layui-layer-fast .layui-layer-footer {
    border-radius: 0 0 8px 8px !important;
}

.fa-theme-shell .layui-layer-fast .layui-layer-btn a,
.fa-theme-content .layui-layer-fast .layui-layer-btn a {
    border-radius: 6px !important;
}

/* 输入框、文本域和原生下拉框。 */
.fa-theme-content .form-control,
.fa-theme-content input[type="text"],
.fa-theme-content input[type="password"],
.fa-theme-content input[type="number"],
.fa-theme-content input[type="email"],
.fa-theme-content input[type="url"],
.fa-theme-content input[type="search"],
.fa-theme-content textarea,
.fa-theme-content select {
    border-radius: 6px !important;
}

.fa-theme-content .input-group-addon {
    border-color: #d8dee9;
    border-radius: 6px !important;
}

.fa-theme-content .input-group .form-control:first-child,
.fa-theme-content .input-group-addon:first-child,
.fa-theme-content .input-group-btn:first-child > .btn {
    border-radius: 6px 0 0 6px !important;
}

.fa-theme-content .input-group .form-control:last-child,
.fa-theme-content .input-group-addon:last-child,
.fa-theme-content .input-group-btn:last-child > .btn {
    border-radius: 0 6px 6px 0 !important;
}

.fa-theme-content .form-control:focus,
.fa-theme-content input:focus,
.fa-theme-content textarea:focus,
.fa-theme-content select:focus {
    border-color: #18bc9c !important;
    box-shadow: 0 0 0 2px rgba(24, 188, 156, .12) !important;
}

/* Bootstrap Select、Select2、SelectPage 等增强下拉框。 */
.fa-theme-content .bootstrap-select > .dropdown-toggle,
.fa-theme-content .bootstrap-select > .btn,
.fa-theme-content .select2-container .select2-selection,
.fa-theme-content .sp_container .sp_input,
.fa-theme-content .selectpage .form-control {
    border-radius: 6px !important;
}

.fa-theme-content .bootstrap-select .dropdown-menu,
.fa-theme-content .select2-container .select2-dropdown,
.fa-theme-content .sp_result_area {
    overflow: hidden;
    border-radius: 6px !important;
}

/* Bootstrap/Bootstrap Dialog 弹窗。 */
.fa-theme-content .modal-content,
.fa-theme-content .bootstrap-dialog .modal-content {
    overflow: hidden;
    border-radius: 8px !important;
}

.fa-theme-content .modal-header,
.fa-theme-content .bootstrap-dialog .modal-header {
    border-radius: 8px 8px 0 0 !important;
}

.fa-theme-content .modal-footer,
.fa-theme-content .bootstrap-dialog .modal-footer {
    border-radius: 0 0 8px 8px !important;
}

/* 普通按钮和弹窗底部按钮。 */
.fa-theme-content .btn:not(.btn-link),
.fa-theme-content .layer-footer .btn {
    border-radius: 6px !important;
}

/* 列表工具栏按钮统一使用独立圆角和固定间距。 */
.fa-theme-content .fixed-table-toolbar .toolbar,
.fa-theme-content .fixed-table-toolbar .columns.columns-right.btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fa-theme-content .fixed-table-toolbar .toolbar > .btn,
.fa-theme-content .fixed-table-toolbar .toolbar > .btn-group,
.fa-theme-content .fixed-table-toolbar .columns.columns-right.btn-group > .btn,
.fa-theme-content .fixed-table-toolbar .columns.columns-right.btn-group > .btn-group {
    float: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.fa-theme-content .fixed-table-toolbar .toolbar > .btn,
.fa-theme-content .fixed-table-toolbar .toolbar > .btn-group > .btn,
.fa-theme-content .fixed-table-toolbar .columns.columns-right.btn-group > .btn,
.fa-theme-content .fixed-table-toolbar .columns.columns-right.btn-group > .btn-group > .btn {
    border-radius: 6px !important;
}

/* 通用搜索等独立右侧按钮组与相邻工具组保持相同间距。 */
.fa-theme-content .fixed-table-toolbar > .columns-right {
    margin-left: 8px;
}

/* 页面 Tab 标签仅保留左上、右上圆角，与下方内容区自然衔接。 */
.fa-theme-content .nav-tabs > li > a,
.fa-theme-content .nav-tabs > li > a:hover,
.fa-theme-content .nav-tabs > li > a:focus,
.fa-theme-content .nav-tabs > li.active > a,
.fa-theme-content .nav-tabs > li.active > a:hover,
.fa-theme-content .nav-tabs > li.active > a:focus {
    border-radius: 6px 6px 0 0 !important;
}

.fa-theme-content .nav-tabs > li.active > a,
.fa-theme-content .nav-tabs > li.active > a:hover,
.fa-theme-content .nav-tabs > li.active > a:focus {
    border-bottom-color: #18bc9c !important;
    color: #18bc9c !important;
}

/* 页面头部说明卡片。 */
.fa-theme-content .panel-intro,
.fa-theme-content .panel-default {
    overflow: hidden;
    border-radius: 8px !important;
}

.fa-theme-content .panel-intro > .panel-heading,
.fa-theme-content .panel-default > .panel-heading {
    padding: 15px 18px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e7eaf0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: #fff !important;
    color: #182230 !important;
}

.fa-theme-content .panel-intro > .panel-heading .panel-lead em {
    color: #182230 !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
}

.fa-theme-content .panel-intro > .panel-heading .panel-lead dd {
    color: #667085 !important;
}

/* 头部分类 Tab：透明背景、主题色文字和底部强调线。 */
.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li > a {
    padding: 10px 16px 12px !important;
    border: 0 !important;
    border-radius: 6px 6px 0 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-weight: 500;
}

.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li > a:hover,
.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li > a:focus {
    background: transparent !important;
    color: #4aa3e8 !important;
}

.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li.active > a,
.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li.active > a:hover,
.fa-theme-content .panel-intro > .panel-heading .nav-tabs > li.active > a:focus {
    border: 0 !important;
    border-bottom: 3px solid #18bc9c !important;
    background: transparent !important;
    color: #18bc9c !important;
}

.fa-theme-content .panel-intro > .panel-body,
.fa-theme-content .panel-default > .panel-body {
    padding: 18px;
}

/* 成功 Toast：与菜单选中态、弹窗标题使用同一渐变。 */
.fa-theme-shell #toast-container > .toast-success,
.fa-theme-content #toast-container > .toast-success,
.fa-theme-shell .toast-success,
.fa-theme-content .toast-success {
    border-radius: 6px !important;
    background-color: #18bc9c !important;
    background-image: linear-gradient(90deg, #18bc9c 0%, #4aa3e8 100%) !important;
    box-shadow: 0 8px 20px rgba(24, 188, 156, .18) !important;
    opacity: 1 !important;
}

.fa-theme-shell #toast-container > .toast-success::before,
.fa-theme-content #toast-container > .toast-success::before {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #fff;
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 25px;
    transform: translateY(-50%);
}
