/* FastAdmin 风格微调（与 AdminLTE login-page 一致） */
.login-page {
    background: #f1f4fd;
}
.login-box-body {
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.login-logo a {
    color: #444;
}
.btn-primary {
    background-color: #18bc9c;
    border-color: #18bc9c;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #15a589;
    border-color: #15a589;
}
.skin-blue .main-header .logo {
    background-color: #18bc9c;
}
.skin-blue .main-header .navbar {
    background-color: #18bc9c;
}
.skin-blue .sidebar-menu > li.active > a {
    border-left-color: #18bc9c;
}

/* 侧栏二级菜单：展开态与倒三角方向（配合 layout.js initSidebarTree） */
.sidebar-menu .treeview > .treeview-menu {
    display: none;
}
.sidebar-menu .treeview.menu-open > .treeview-menu {
    display: block;
}
.sidebar-menu .treeview > a > .pull-right-container > .fa-angle-left {
    transition: transform 0.2s ease-in-out;
    transform: rotate(0deg);
}
.sidebar-menu .treeview.menu-open > a > .pull-right-container > .fa-angle-left {
    transform: rotate(-90deg);
}

/* 弹窗内分页：与 box-footer 一致，避免 pull-right 溢出 modal-body */
.modal-body .qfz-modal-pager {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}
.modal-body .qfz-modal-pager > .text-muted {
    margin: 7px 0 0;
    line-height: 30px;
}
.modal-body .qfz-modal-pager .pagination {
    margin: 0;
}
.qfz-pager-tools {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}
.qfz-page-size-label {
    font-weight: normal;
    margin: 0;
    font-size: 12px;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.qfz-page-size-select {
    width: auto;
    display: inline-block;
    min-width: 58px;
    height: 28px;
    padding: 2px 8px;
}

/* 模态框：视口内固定高度，内容区滚动，底部分页固定 */
.modal.qfz-modal-fixed .modal-dialog {
    margin: 20px auto;
}
.modal.qfz-modal-fixed .modal-content {
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.qfz-modal-fixed .modal-header,
.modal.qfz-modal-fixed .modal-footer {
    flex-shrink: 0;
}
.modal.qfz-modal-fixed .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal.qfz-modal-fixed .modal-body > .alert,
.modal.qfz-modal-fixed .modal-body > .nav-tabs,
.modal.qfz-modal-fixed .modal-body > .qfz-subs-toolbar {
    flex-shrink: 0;
}
.modal.qfz-modal-fixed .modal-body > .qfz-sub-tasks-tab-content,
.modal.qfz-modal-fixed .modal-body > .qfz-modal-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
}
.modal.qfz-modal-fixed .modal-body > .qfz-modal-pager {
    flex-shrink: 0;
    margin-top: 10px;
}
.modal.qfz-modal-fixed .qfz-modal-body-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.modal.qfz-modal-fixed .qfz-modal-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.qfz-modal-fixed .qfz-modal-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}
.modal.qfz-modal-fixed .qfz-sub-tasks-tab-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 14px;
}
.modal.qfz-modal-fixed .qfz-sub-tasks-tab-content > .tab-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.modal.qfz-modal-fixed .qfz-sub-tasks-tab-content > .tab-pane.active {
    display: flex;
}
.modal.qfz-modal-fixed .qfz-tab-pane-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.qfz-modal-fixed .qfz-tab-pane-inner > p,
.modal.qfz-modal-fixed .qfz-tab-pane-inner > .qfz-daily-enabled-summary,
.modal.qfz-modal-fixed .qfz-tab-pane-inner > p.text-right,
.modal.qfz-modal-fixed .qfz-tab-pane-inner > .clearfix.qfz-modal-pager {
    flex-shrink: 0;
}
.modal.qfz-modal-fixed .qfz-tab-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table {
    table-layout: fixed;
    width: 100%;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-time {
    width: 96px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-start-time {
    width: 122px;
    min-width: 122px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-updated {
    width: 158px;
    min-width: 158px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-start-time input[type="time"],
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-time input[type="time"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-updated .sub-nurture-daily-updated {
    display: block;
    white-space: nowrap;
    overflow: visible;
    font-size: 12px;
    line-height: 1.4;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-kind {
    width: 108px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-jitter {
    width: 138px;
    padding-left: 4px;
    padding-right: 4px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-enabled {
    width: 52px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-ops {
    width: 52px;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .qfz-col-wf {
    overflow: hidden;
}
.modal.qfz-modal-fixed .qfz-sub-daily-table .sub-daily-wf {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.modal.qfz-modal-fixed .qfz-sub-daily-jitter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}
.modal.qfz-modal-fixed .qfz-sub-daily-jitter .sub-daily-jmin,
.modal.qfz-modal-fixed .qfz-sub-daily-jitter .sub-daily-jmax {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    padding: 5px 2px;
    text-align: center;
    box-sizing: border-box;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-summary {
    padding: 10px 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
    overflow: visible;
    /* AdminLTE callout-success 默认浅色字，内嵌白底表格需单独设色 */
    color: #3c763d;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-summary .table-responsive {
    overflow: visible;
    max-height: none;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #00733e;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-summary .qfz-daily-enabled-table {
    color: #333;
    background: #fff;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-table > thead > tr > th {
    font-size: 12px;
    padding: 6px 8px;
    color: #555;
    background: #f9f9f9;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-table > tbody > tr > td {
    font-size: 12px;
    padding: 6px 8px;
    vertical-align: middle;
    color: #333;
    background: #fff;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-table > tbody > tr > td strong {
    color: #222;
}
.modal.qfz-modal-fixed .qfz-daily-enabled-table > tbody > tr:hover > td {
    background: #f5f5f5;
}

.modal.qfz-modal-fixed .qfz-sub-daily-jitter .qfz-jitter-sep {
    flex: 0 0 auto;
    line-height: 1;
    color: #999;
}

/* 子账号管理等宽表：大屏拉宽、小屏横向滚动 */
.modal .modal-dialog.qfz-modal-wide {
    width: auto;
    max-width: min(1280px, calc(100vw - 32px));
    margin: 24px auto;
}
@media (min-width: 992px) {
    .modal .modal-dialog.qfz-modal-wide {
        width: 92%;
    }
}
@media (max-width: 767px) {
    .modal .modal-dialog.qfz-modal-wide {
        max-width: calc(100vw - 16px);
        margin: 8px auto;
    }
}
.qfz-sub-tasks-tabs {
    margin-bottom: 0;
}
.qfz-sub-nurture-current > td {
    background-color: #f0faf7;
}
/* 按定时串联预估的「当前执行中」高亮：整行一条外框，非每格单独框线 */
#modal-subs .qfz-subs-table tr.qfz-sub-executing > td {
    background-color: #fffbf0;
    border-top: 2px solid #f0ad4e !important;
    border-bottom: 2px solid #f0ad4e !important;
}
#modal-subs .qfz-subs-table tr.qfz-sub-executing > td:first-child {
    border-left: 2px solid #f0ad4e !important;
}
#modal-subs .qfz-subs-table tr.qfz-sub-executing > td:last-child {
    border-right: 2px solid #f0ad4e !important;
}
#modal-subs .qfz-label-executing {
    font-weight: 600;
    vertical-align: middle;
}
.qfz-subs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.qfz-subs-table-wrap {
    margin-bottom: 0;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
}
#modal-subs .qfz-subs-table {
    font-size: 13px;
    margin-bottom: 0;
}
#modal-subs .qfz-subs-table th {
    white-space: nowrap;
    vertical-align: middle !important;
}
#modal-subs .qfz-subs-table td {
    vertical-align: middle !important;
}
#modal-subs .qfz-subs-table .col-ops {
    min-width: 220px;
    width: 18%;
}
#modal-subs .qfz-subs-table .col-remark {
    max-width: 120px;
}
#modal-subs .qfz-subs-table td.col-remark {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#modal-subs .qfz-subs-table .cell-machine code {
    display: inline-block;
    max-width: 140px;
    word-break: break-all;
    white-space: normal;
    font-size: 11px;
    line-height: 1.35;
}
.qfz-sub-ops {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    max-width: 360px;
}
.qfz-sub-ops .btn {
    margin: 0;
    flex: 0 0 auto;
}
.qfz-runlog-pre {
    max-height: 300px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.4;
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #333;
    padding: 8px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
