*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* 全站氛围底（与登录页同源） */
body.iforce-ui,
body.iforce-login {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: #0f172a;
    --iforce-accent: #3373F2;
    --iforce-title-bg: #3373F2;
    --iforce-table-head-bg: #f8fafc;
    --iforce-glow-a: rgba(56, 189, 248, 0.28);
    --iforce-glow-b: rgba(51, 115, 242, 0.22);
    --iforce-surface: rgba(255, 255, 255, 0.92);
    --iforce-surface-soft: rgba(255, 255, 255, 0.55);
    --iforce-border: rgba(148, 163, 184, 0.4);
    background:
        radial-gradient(1200px 600px at 12% -10%, var(--iforce-glow-a), transparent 55%),
        radial-gradient(900px 520px at 95% 8%, var(--iforce-glow-b), transparent 50%),
        linear-gradient(165deg, #e8eef8 0%, #f4f7fb 42%, #e2ebf6 100%);
    background-attachment: fixed;
}

body.iforce-ui {
    padding: 0.85rem 1rem 1.35rem;
}

body.iforce-ui.iforce-v1 {
    --iforce-accent: #2563eb;
    --iforce-title-bg: #2563eb;
    --iforce-table-head-bg: #eef2ff;
    --iforce-glow-a: rgba(96, 165, 250, 0.3);
    --iforce-glow-b: rgba(37, 99, 235, 0.22);
}

body.iforce-ui.iforce-v4 {
    --iforce-accent: #0891B2;
    --iforce-title-bg: #0891B2;
    --iforce-table-head-bg: #ecfeff;
    --iforce-glow-a: rgba(34, 211, 238, 0.28);
    --iforce-glow-b: rgba(8, 145, 178, 0.24);
}

body.iforce-ui.iforce-v5 {
    --iforce-accent: #3373F2;
    --iforce-title-bg: #3373F2;
    --iforce-table-head-bg: #eff6ff;
    --iforce-glow-a: rgba(56, 189, 248, 0.28);
    --iforce-glow-b: rgba(51, 115, 242, 0.22);
}

.iforce-page {
    max-width: 100%;
    margin: 0 auto;
}

#reg_records tbody.records td a:any-link {
    text-decoration: none;
}

#reg_records tbody.records td a:hover {
    text-decoration: underline;
}

.page-title-bar {
    margin: 0 0 0.9rem;
    padding: 0.85rem 1.1rem;
    background-color: var(--iforce-title-bg);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 12px 28px rgba(15, 70, 140, 0.18);
}

.page-title-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    display: block;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.toolbar-panels,
.records-panels {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.15rem 0.35rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.toolbar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
    align-items: flex-end;
}

.toolbar-panels .panel,
.records-panels .panel {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
    position: relative;
    min-height: 0;
}

.toolbar-panels .panel-user {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.toolbar-panels .panel-oem {
    flex: 0 1 280px;
    min-width: 160px;
    max-width: 320px;
}

.toolbar-panels .panel-filter {
    flex: 1 1 0;
    min-width: 12rem;
    width: auto;
}

.toolbar-panels legend,
.records-panels legend {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 0 0.4rem;
    padding: 0;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
}

.records-panels .panel-records {
    flex: 1 1 100%;
    width: 100%;
    padding: 0;
}

.records-panels .panel-records-body {
    display: block;
    padding: 0;
    margin: 0.15rem 0 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: transparent;
}

.records-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 1.35rem 1rem;
    color: #64748b;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    text-align: center;
}

.records-loading.is-hidden,
.records-loading[hidden] {
    display: none !important;
}

#reg_records.is-records-loading,
#reg_records.is-records-loading + .records-pager {
    display: none;
}

#reg_records.is-records-refreshing {
    pointer-events: none;
}

.toolbar-panels .panel-body {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    min-height: 1.75rem;
}

.toolbar-panels .panel-body-inline {
    align-items: center;
}

.toolbar-panels .panel-activate {
    display: block;
    position: relative;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 0.9rem;
    scroll-margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
}

.toolbar-panels .panel-hint {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 0.9rem;
    scroll-margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
}

.toolbar-panels .panel-activate.is-collapsed,
.toolbar-panels .panel-hint.is-collapsed {
    display: none !important;
}

.toolbar-panels .panel-caption {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 0 0.45rem;
    padding: 0;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
}

.toolbar-panels .panel-activate .panel-body {
    touch-action: manipulation;
}

.toolbar-panels .user-links .activate-toggle,
.toolbar-panels .user-links .hint-toggle {
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}

.toolbar-panels .user-links .activate-toggle:hover,
.toolbar-panels .user-links .hint-toggle:hover {
    text-decoration: underline;
}

.toolbar-panels .panel-activate .activate-close,
.toolbar-panels .panel-hint .hint-close {
    margin-left: auto;
    align-self: flex-start;
    flex: 0 0 auto;
}

.toolbar-panels .panel-hint .panel-body {
    align-items: flex-start;
}

.toolbar-panels .panel-hint-body {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #475569;
}

.toolbar-panels .panel-hint-body x {
    color: red;
    font-weight: bold;
}

.toolbar-panels .user-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.toolbar-panels .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.toolbar-panels .user-name {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.toolbar-panels .user-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.toolbar-panels .user-links a:any-link {
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.toolbar-panels .user-links a:hover {
    text-decoration: underline;
}

.toolbar-panels .field {
    display: inline-flex;
    align-items: center;
    margin: 0;
    gap: 0.35rem;
}

.toolbar-panels .field-label {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

.toolbar-panels .field input[type="text"] {
    width: 9em;
    padding: 0.3rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

.toolbar-panels .panel-oem .panel-body {
    width: 100%;
}

.toolbar-panels .panel-oem select {
    width: 100%;
    padding: 0.3rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

.toolbar-panels .btn-action {
    margin: 0;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.toolbar-panels .radio-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.toolbar-panels .radio-row {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    white-space: nowrap;
}

.toolbar-panels .panel-filter .filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.toolbar-panels .panel-filter .filter-checks {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.55rem;
    margin: 0 0 0 auto;
}

.toolbar-panels .panel-filter .checkbox-row {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}

.toolbar-panels .panel-filter .checkbox-concern {
    color: #b45309;
}

.toolbar-panels .panel-filter .checkbox-act input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.toolbar-panels .panel-filter .checkbox-act.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.toolbar-panels .panel-filter .checkbox-row input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex: 0 0 auto;
}

#reg_records tbody.records tr {
    position: relative;
}

.iforce-dialog[hidden] {
    display: none !important;
}

.iforce-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.iforce-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.iforce-dialog-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    padding: 1.15rem 1.1rem 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
}

.iforce-dialog-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 650;
    color: #0f172a;
}

.iforce-dialog-card .iforce-msg-body {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 40vh;
    overflow: auto;
}

.iforce-dialog-card .iforce-msg-body:empty {
    display: none;
    margin: 0;
}

.iforce-dialog-card .iforce-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.iforce-dialog-card .iforce-dialog-field[hidden] {
    display: none !important;
}

.iforce-dialog-card .iforce-dialog-field .field-label {
    font-size: 0.85rem;
    color: #64748b;
}

.iforce-dialog-card .iforce-dialog-field input[type="date"],
.iforce-dialog-card .iforce-dialog-field input[type="text"],
.iforce-dialog-card .iforce-dialog-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    color: #0f172a;
    background: #fff;
    resize: vertical;
}

.iforce-dialog-card .iforce-dialog-field textarea {
    min-height: 5.5rem;
}

.iforce-dialog-card .iforce-dialog-field input:focus,
.iforce-dialog-card .iforce-dialog-field textarea:focus {
    outline: none;
    border-color: var(--iforce-accent, #3373f2);
    box-shadow: 0 0 0 3px rgba(51, 115, 242, 0.15);
}

.iforce-dialog-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.iforce-dialog-actions .btn-clear,
.iforce-dialog-actions .btn-action {
    box-sizing: border-box;
    min-width: 4.5rem;
    height: 2.15rem;
    margin: 0;
    padding: 0 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.iforce-dialog-actions .btn-action {
    border-color: var(--iforce-accent, #3373f2);
    background: var(--iforce-accent, #3373f2);
    color: #fff;
}

.toolbar-panels .panel-filter input[type="search"],
.toolbar-panels .panel-filter .btn-clear {
    box-sizing: border-box;
    height: 1.9rem;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    vertical-align: middle;
    background: #fff;
}

.toolbar-panels .panel-filter input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0 0.55rem;
}

.toolbar-panels .btn-clear {
    flex: 0 0 auto;
    padding: 0 0.85rem;
    cursor: pointer;
}

.records-pager:empty {
    display: none;
}

#reg_records {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
    box-shadow: none;
}

#reg_records th {
    background-color: transparent;
    white-space: nowrap;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

#reg_records td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #eef1f5;
}

/* 到期前列色点（仅预警时显示，无预警不占位） */
#reg_records .expiry-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    white-space: nowrap;
}

#reg_records .expiry-dot {
    box-sizing: border-box;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    flex: 0 0 0.5em;
}

#reg_records .expiry-dot.notice {
    background: #0891b2;
}

#reg_records .expiry-dot.warning {
    background: #ca8a04;
}

#reg_records .expiry-dot.expired {
    background: #dc2626;
}

#reg_records .expiry-date {
    font-variant-numeric: tabular-nums;
}

#reg_records tbody.records tr:last-child td {
    border-bottom: none;
}

#reg_records tfoot td {
    padding: 0.55rem 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

#reg_records th.func,
#reg_records td.func {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

#reg_records th.code-col {
    text-align: center;
}

#reg_records td.code {
    max-width: 14em;
    word-break: break-all;
    text-align: center;
    font-size: 0.85rem;
}

#reg_records td.memo {
    max-width: 10em;
    text-align: left;
}

#reg_records td.s {
    white-space: nowrap;
}

#reg_records td.func input[type="date"],
#reg_records td.func button {
    box-sizing: border-box;
    height: 1.9rem;
    margin: 0 0.15rem;
    padding: 0 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    vertical-align: middle;
    background: #fff;
}

#reg_records td.func input[type="date"] {
    /* Chrome 日期+日历图标：9.5em 会裁掉日，显示成 2026/08/ */
    width: 12.5em;
    min-width: 12.5em;
    margin-right: 0.25rem;
    text-align: center;
}

#reg_records td.func button {
    cursor: pointer;
}

#reg_records td.func button:hover {
    background: #f8fafc;
}

#reg_records tbody.records tr.row-filter-hidden {
    display: none !important;
}

#reg_records tbody.records tr.row-page-hidden {
    display: none !important;
}

.records-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.records-pager:empty {
    display: none;
}

.records-pager .pager-btn {
    min-width: 2.2rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
}

.records-pager .pager-btn.is-current {
    background: var(--iforce-accent);
    border-color: var(--iforce-accent);
    color: #fff;
    font-weight: 600;
}

.records-pager .pager-btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

.records-pager .pager-ellipsis {
    padding: 0 0.2rem;
    color: #64748b;
}

td.code,
td.memo,
td.s,
#qrtext {
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) and (min-width: 601px),
       (max-width: 768px) and (orientation: landscape) {
    .toolbar-panels .panel {
        flex: 1 1 45%;
        min-width: 200px;
    }

    .records-panels {
        margin-bottom: 1rem;
    }

    #reg_records {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }

    #reg_records thead,
    #reg_records tbody,
    #reg_records tfoot {
        display: table;
        width: max-content;
        min-width: 100%;
    }

    #reg_records td,
    #reg_records th {
        white-space: nowrap;
        font-size: 0.875rem;
    }
}

@media (max-width: 600px) and (orientation: portrait),
       (max-width: 480px) {
    body.iforce-ui {
        padding: 0;
        font-size: 15px;
    }

    .iforce-page {
        width: 100%;
    }

    .page-title-bar {
        margin: 0;
        border-radius: 0;
        padding: 1rem 0.85rem;
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .page-title-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .toolbar-panels {
        background: transparent;
        margin: 0;
        padding: 0.7rem 0.85rem 0.25rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .toolbar-grid {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .toolbar-panels .panel {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0.85rem 0;
        border: none;
        border-radius: 0;
        background: transparent;
        flex: none;
        max-width: none;
        min-height: 0;
        position: static;
        box-shadow: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    }

    .toolbar-panels .panel + .panel {
        margin-top: 0;
    }

    .toolbar-panels .panel:last-child {
        border-bottom: none;
    }

    .records-panels {
        background: transparent;
        margin: 0;
        padding: 0.7rem 0.85rem 0.85rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .records-panels .panel-records {
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        min-height: 0;
    }

    .records-panels .panel-records-body {
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .records-loading {
        min-height: 5rem;
        padding: 1.6rem 0.85rem;
        font-size: 1rem;
    }

    .toolbar-panels .panel-filter {
        margin-top: 0;
        overflow: hidden;
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .toolbar-panels .panel-filter .filter-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.3rem;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .toolbar-panels .panel-filter .checkbox-row {
        display: none !important;
    }

    .toolbar-panels .panel-filter .filter-checks {
        display: inline-flex;
        margin-left: 0;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 0.3rem;
        align-items: center;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern,
    .toolbar-panels .panel-filter .checkbox-row.checkbox-act {
        display: inline-flex !important;
        margin: 0;
        padding: 0.35rem 0.4rem;
        border-radius: 8px;
        font-size: 13px;
        gap: 0.25rem;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern {
        border: 1px solid #f59e0b;
        background: #fffbeb;
        color: #b45309;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-act {
        border: 1px solid var(--iforce-accent, #3373f2);
        background: #eff6ff;
        color: var(--iforce-accent, #3373f2);
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern input,
    .toolbar-panels .panel-filter .checkbox-row.checkbox-act input {
        display: inline-block !important;
        width: 0.95rem;
        height: 0.95rem;
    }

    .toolbar-panels .panel:first-child {
        border-top: none;
        padding-top: 0.7rem;
    }

    .toolbar-panels legend,
    .toolbar-panels .panel-caption,
    .records-panels legend {
        position: static;
        transform: none;
        background: transparent;
        font-weight: 600;
        font-size: 0.78rem;
        color: #64748b;
        letter-spacing: 0.06em;
        padding: 0;
        margin: 0 0 0.35rem;
        display: block;
    }

    .toolbar-panels .panel-body {
        display: block;
        min-height: 0;
    }

    .toolbar-panels .user-identity {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.45rem;
    }

    .toolbar-panels .user-name {
        display: inline;
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
    }

    .toolbar-panels .user-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
    }

    .toolbar-panels .user-links a:any-link {
        margin: 0;
        text-decoration: none;
    }

    .toolbar-panels .field {
        display: block;
        margin: 0 0 0.85rem;
        width: 100%;
    }

    .toolbar-panels .panel-body-inline {
        display: block;
    }

    .toolbar-panels .panel-activate .activate-close,
    .toolbar-panels .panel-hint .hint-close {
        display: block;
        width: 100%;
        margin-top: 0.35rem;
    }

    .toolbar-panels .panel-activate,
    .toolbar-panels .panel-hint {
        max-height: 520px;
        overflow: hidden;
        scroll-margin-top: 4.5rem;
        transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
    }

    .toolbar-panels .panel-hint {
        margin: 0;
        width: 100%;
        flex: none;
    }

    .toolbar-panels .panel-activate {
        margin-top: 0.65rem;
    }

    .toolbar-panels .panel-activate.is-closing,
    .toolbar-panels .panel-activate.is-collapsed,
    .toolbar-panels .panel-hint.is-closing,
    .toolbar-panels .panel-hint.is-collapsed {
        display: block !important;
        max-height: 0 !important;
        opacity: 0;
        margin: 0 !important;
        padding: 0 !important;
        border-width: 0 !important;
        visibility: hidden;
        pointer-events: none;
        box-shadow: none;
        overflow: hidden;
    }

    .toolbar-panels .field-label {
        display: block;
        margin: 0 0 0.3rem;
        font-size: 0.82rem;
        color: #64748b;
    }

    .toolbar-panels .field input[type="text"],
    .toolbar-panels .field input,
    .toolbar-panels .panel-filter .filter-row input[type="search"] {
        display: block;
        width: auto;
        max-width: none;
        padding: 0.55rem 0.65rem;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 16px;
        background: #fff;
        box-sizing: border-box;
        flex: 1 1 0;
        min-width: 0;
    }

    .toolbar-panels .panel-filter .btn-clear {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 14px;
        padding: 0.55rem 0.65rem;
    }

    .toolbar-panels .panel-filter .checkbox-row {
        display: none !important;
    }

    .toolbar-panels .panel-filter .checkbox-row input {
        display: none !important;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern,
    .toolbar-panels .panel-filter .checkbox-row.checkbox-act {
        display: inline-flex !important;
        margin: 0;
        padding: 0.35rem 0.4rem;
        border-radius: 8px;
        font-size: 13px;
        gap: 0.25rem;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern {
        border: 1px solid #f59e0b;
        background: #fffbeb;
        color: #b45309;
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-act {
        border: 1px solid var(--iforce-accent, #3373f2);
        background: #eff6ff;
        color: var(--iforce-accent, #3373f2);
    }

    .toolbar-panels .panel-filter .checkbox-row.checkbox-concern input,
    .toolbar-panels .panel-filter .checkbox-row.checkbox-act input {
        display: inline-block !important;
        width: 0.95rem;
        height: 0.95rem;
    }

    .toolbar-panels .panel-oem {
        width: 100%;
        max-width: none;
    }

    .toolbar-panels .panel-oem .panel-body {
        width: 100%;
    }

    .toolbar-panels .panel-oem select,
    .toolbar-panels .panel-oem .field-value {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0.65rem 0.75rem;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 16px;
        background: #fff;
        box-sizing: border-box;
    }

    .records-pager {
        margin: 0;
        padding: 0.5rem 0.65rem 0.65rem;
    }

    .records-pager .pager-btn {
        min-width: 2.5rem;
        padding: 0.55rem 0.65rem;
        font-size: 16px;
        border-radius: 8px;
    }

    .toolbar-panels .btn-clear {
        flex: 0 0 auto;
        padding: 0.65rem 0.75rem;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
        white-space: nowrap;
        font-size: 16px;
    }

    .toolbar-panels .btn-action {
        display: block;
        width: 100%;
        margin: 0.35rem 0 0;
        padding: 0.7rem 0.85rem;
        border: none;
        border-radius: 8px;
        background: var(--iforce-accent);
        color: #fff;
        font-size: 16px;
    }

    .toolbar-panels .radio-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .toolbar-panels .radio-row {
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        margin: 0;
        padding: 0.45rem 0.35rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        white-space: nowrap;
        font-size: 0.85rem;
        min-width: 0;
    }

    .center {
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
    }

    #reg_records {
        display: block;
        width: 100% !important;
        max-width: none;
        margin: 0;
        overflow-x: hidden;
        border: none !important;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #reg_records thead,
    #reg_records tbody,
    #reg_records tfoot,
    #reg_records tr {
        display: block;
        width: 100%;
    }

    #reg_records tr.records-cols {
        display: none;
    }

    #reg_records tfoot td {
        display: block;
        width: auto;
        margin: 0.55rem 0 0;
        border: none;
        border-radius: 0;
        padding: 0.45rem 0.15rem;
        background: transparent;
        box-shadow: none;
        text-align: center;
        color: #64748b;
        font-size: 0.9rem;
    }

    #reg_records tbody.records {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #reg_records tbody.records tr.is-page-flash {
        animation: iforce-card-page-flash 0.35s ease;
    }

    @keyframes iforce-card-page-flash {
        0% { background: rgba(255, 255, 255, 0.78); }
        35% { background: rgba(51, 115, 242, 0.18); }
        100% { background: rgba(255, 255, 255, 0.78); }
    }

    #reg_records tbody.records tr.ai.is-page-flash {
        animation-name: iforce-card-page-flash-ai;
    }

    @keyframes iforce-card-page-flash-ai {
        0% { background: rgba(255, 255, 255, 0.78); }
        35% { background: rgba(230, 168, 0, 0.22); }
        100% { background: rgba(255, 255, 255, 0.78); }
    }

    #reg_records tbody.records tr {
        display: block;
        width: 100%;
        border: none;
        border-top: 2px solid var(--iforce-accent);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: none;
        margin: 0;
        padding: 0.55rem 0.7rem 0.45rem;
        position: relative;
        transform: translateZ(0);
        overflow: visible;
    }

    #reg_records tbody.records tr:last-child {
        margin-bottom: 0;
    }

    #reg_records tbody.records tr.ai {
        border-left: 4px solid #e6a800;
    }

    #reg_records tbody.records tr:hover {
        background-color: #fff;
    }

    #reg_records tbody.records td {
        display: grid;
        grid-template-columns: 4.5rem 1fr;
        align-items: start;
        gap: 0.2rem 0.55rem;
        width: 100%;
        padding: 0.45rem 0;
        border: none !important;
        text-align: left !important;
        white-space: normal;
        word-break: break-word;
        max-width: none;
    }

    #reg_records tbody.records td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    #reg_records tbody.records td:not([data-label])::before {
        content: none;
    }

    #reg_records tbody.records td.func {
        display: flex;
        flex-wrap: wrap;
        justify-content: stretch;
        align-items: stretch;
        gap: 0.35rem;
        border-top: 1px dashed rgba(51, 115, 242, 0.35);
        margin-top: 0.35rem;
        padding-top: 0.55rem;
        white-space: normal;
        text-align: center;
    }

    #reg_records tbody.records td.func::before {
        flex: 1 1 100%;
        display: block;
        content: attr(data-label);
        margin-bottom: 0.15rem;
        font-size: 0.75rem;
        text-align: left;
    }

    #reg_records tbody.records td.func input[type="date"] {
        flex: 1 1 58%;
        display: block;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        font-size: 16px;
        padding: 0.65rem 0.45rem;
        border-radius: 8px;
        text-align: center;
    }

    #reg_records tbody.records td.func input[type="date"] + button {
        flex: 1 1 38%;
        width: auto;
        min-width: 0;
    }

    #reg_records tbody.records td.func button {
        flex: 1 1 100%;
        display: block;
        width: auto;
        min-width: 0;
        margin: 0;
        font-size: 14px;
        padding: 0.55rem 0.35rem;
        border-radius: 8px;
        text-align: center;
    }

    #reg_records tbody.records td.func button.btn-remove {
        display: none !important;
    }

    #reg_records tbody.records td.c {
        font-weight: 600;
    }
}

/* ---- utilities (legacy style.css) ---- */
.center {
    margin-left: auto;
    margin-right: auto;
}

.tcenter {
    text-align: center;
}

.right {
    text-align: right;
}

/* ---- login / account forms ---- */
.login-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 1.5rem 1rem 3rem;
}

.login-brand {
    text-align: center;
}

.login-brand-icon {
    width: 3rem;
    height: 3rem;
    display: block;
    margin: 0 auto 0.85rem;
    border-radius: 0.65rem;
    background: var(--iforce-accent);
    box-shadow: 0 8px 24px rgba(15, 70, 140, 0.22);
}

.login-brand-name {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: #0b1f44;
}

.login-brand-sub {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
    color: #475569;
}

.login-icp {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
}

.login-icp a {
    color: #64748b;
    text-decoration: none;
}

.login-icp a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.login-card {
    width: 100%;
    max-width: 22rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--iforce-border);
    border-radius: 14px;
    background: var(--iforce-surface);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 40px rgba(15, 35, 70, 0.12);
    backdrop-filter: blur(8px);
}

.login-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.login-lead {
    margin: 0.4rem 0 1.35rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #64748b;
}

.login-error {
    margin: -0.55rem 0 1.1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-error.is-hidden {
    display: none;
}

.login-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.login-captcha.is-hidden {
    display: none;
}

.login-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.login-field {
    display: block;
    margin: 0 0 0.95rem;
}

.login-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    color: #475569;
}

.login-field input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--iforce-accent);
    box-shadow: 0 0 0 3px rgba(51, 115, 242, 0.18);
}

.login-submit {
    display: block;
    width: 100%;
    margin-top: 1.15rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--iforce-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.login-submit:hover {
    filter: brightness(0.94);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-alt {
    margin-top: 1.15rem;
    text-align: center;
}

.login-wx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: none;
    background: transparent;
    color: #07c160;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.login-wx-btn:hover {
    color: #06ad56;
}

.login-wx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    color: inherit;
    line-height: 0;
}

.login-wx-icon svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.login-card.is-hidden,
.login-wx-panel.is-hidden {
    display: none;
}

.login-wx-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 11rem;
    margin: 0 auto 0.85rem;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.login-wx-qr-wrap svg {
    width: 11rem;
    height: 11rem;
    display: block;
}

.login-wx-hint {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.login-wx-refresh {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.65rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
}

.login-wx-refresh:hover {
    border-color: #07c160;
    color: #07c160;
}

.login-back {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.login-back a:any-link {
    color: #475569;
    text-decoration: none;
}

.login-back a:hover {
    color: var(--iforce-accent);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-shell {
        gap: 1.35rem;
        padding: 1.25rem 0.85rem 1.75rem;
        justify-content: flex-start;
        padding-top: 12vh;
    }

    .login-card {
        padding: 1.45rem 1.15rem 1.25rem;
        border-radius: 12px;
    }
}

/* ---- 机器配置 list_machines ---- */
.list-machines-page .panel-columns {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.75rem;
}

.list-machines-page .columns-body {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.list-machines-page .columns-list {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 0.35rem 0.85rem;
    min-width: 0;
}

.list-machines-page .columns-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 0.35rem;
    margin-left: auto;
}

.list-machines-page .columns-list .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}

.list-machines-page .machines-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.list-machines-page .machines-table {
    min-width: 100%;
}

.list-machines-page #reg_records td {
    white-space: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    vertical-align: top;
}

.list-machines-page #reg_records th {
    font-size: 0.85rem;
}

@media (max-width: 600px) and (orientation: portrait),
       (max-width: 480px) {
    .list-machines-page .panel-columns {
        margin-top: 0.35rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(148, 163, 184, 0.28);
    }

    .list-machines-page .toolbar-panels .panel-scope .radio-list {
        width: 100%;
    }
}

