/* 表单列表页专属样式；设计器样式统一维护在 form-designer.css。 */
.form-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.form-card-header,
.form-header-actions,
.pagination {
    display: flex;
    align-items: center;
}
.form-card-header {
    flex-shrink: 0;
    justify-content: space-between;
    margin-bottom: 20px;
}
.form-card-header h3 {
    margin: 0;
    font-size: 16px;
}
.form-header-actions {
    gap: 12px;
}
.form-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.form-search-input {
    width: 220px;
    height: 34px;
    padding: 0 34px 0 12px;
    border: 1px solid #e4e7ed;
    border-radius: 17px;
    outline: none;
    font-size: 14px;
    color: #333;
    background: #fff;
}
.form-search-input::placeholder { color: #c0c4cc; }
.form-search-input:focus { border-color: #266fff; }
.form-search-icon {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 18px;
    color: #c0c4cc;
    cursor: pointer;
}
.form-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    color: #666;
    cursor: pointer;
}
.form-refresh-btn:hover { color: #266fff; }
.form-refresh-btn svg { width: 18px; height: 18px; }
.form-create-btn {
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(268.5deg, #266fff 1.98%, #46b3f0 98.71%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.table-container {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}
.form-table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.form-table-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.form-table-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.form-table-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.form-table-scroll::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.form-table-scroll::-webkit-scrollbar-button { display: none; }
.table-container,
.table-container tr,
.table-container th,
.table-container td { border: 0; }
.table-container th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 0;
    background: #f5f5f5;
    font-weight: 500;
}
.table-container td {
    overflow: hidden;
    padding: 15px 0;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.form-list-row { cursor: pointer; }
.form-list-row:hover { background: #edf3ff; }
.form-list-count,
.form-list-link { color: #266fff; }
.form-list-link { margin-left: 4px; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.form-list-link:hover { color: #66b1ff; }
.table-container th:last-child { width: 320px; }
.form-list-actions { overflow: visible !important; }
.form-list-actions .opt-btn { margin: 0 8px; }
.form-more { position: relative; display: inline-flex; align-items: center; }
.form-more-trigger { padding: 0; border: 0; background: transparent; font: inherit; }
.form-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 20;
    display: none;
    width: 84px;
    padding: 6px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
}
.form-more-menu.show { display: block; }
.form-more-menu.up { top: auto; bottom: calc(100% + 6px); }
.form-more-menu::before { content: ''; position: absolute; right: 0; bottom: 100%; left: 0; height: 6px; }
.form-more-menu.up::before { top: 100%; bottom: auto; }
.form-more-menu button {
    display: block;
    width: 100%;
    height: 34px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}
.form-more-menu button:hover { background: #edf3ff; color: #266fff; }
.form-more-menu button.danger { color: #111; }
.form-more-menu button.danger:hover { background: #fff1f1; color: #f23c3c; }
.empty-tip {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.status-normal,
.status-paused {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 13px;
}
.status-normal { background: #f0f9eb; color: #67c23a; }
.status-paused { background: #fef0f0; color: #f56c6c; }
.opt-btn {
    margin: 0 16px;
    color: #266fff;
    cursor: pointer;
}
.opt-btn:hover { color: #66b1ff; }
.opt-btn.danger { color: #f56c6c; }
.opt-btn.danger:hover { color: #f78989; }
.pagination {
    flex-shrink: 0;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    margin: 0;
    padding-top: 16px;
}
.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #f5f6f8;
    color: #555;
    cursor: pointer;
}
.page-btn.active { background: #2f7cf6; color: #fff; }
.page-btn:disabled { color: #b8bec8; cursor: not-allowed; }
.page-btn.ellipsis { color: #687386; }
.page-arrow { font-size: 20px; line-height: 1; }
.page-total { margin-right: 10px; color: #333; font-size: 14px; }
.page-size { height: 32px; margin-left: 8px; padding: 0 28px 0 12px; border: 0; border-radius: 4px; background: #f5f6f8; color: #333; font-size: 14px; }
.page-jump { display: flex; align-items: center; gap: 8px; margin-left: 2px; color: #333; font-size: 14px; }
.page-jump input { width: 48px; height: 32px; padding: 0 6px; border: 0; border-radius: 4px; outline: none; background: #f5f6f8; text-align: center; color: #333; }
.page-jump input:focus { box-shadow: inset 0 0 0 1px #266fff; }
.page-jump input::-webkit-inner-spin-button,
.page-jump input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.form-data-mask { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.form-data-mask ~ [x-data="previewModal"] .preview-modal,
body > [x-data="previewModal"] .preview-modal { z-index: 10020; }
.form-data-dialog { width: min(1160px, calc(100vw - 24px)); height: min(760px, calc(100vh - 32px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #f4f4f4; color: #111; }
.form-data-header { position: relative; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; background: #fff; }
.form-data-header h3 { margin: 0; font-size: 16px; }
.form-data-close { position: absolute; top: 8px; right: 12px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #999; cursor: pointer; }
.form-data-close svg { width: 20px; height: 20px; }
.form-data-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 26px 18px; }
.form-data-top { flex-shrink: 0; padding: 10px 16px 0; border-radius: 12px; background: #fff; }
.form-data-title-row { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin-bottom: 10px; }
.form-data-title-row h4 { margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-data-actions { display: flex; gap: 14px; }
.form-data-actions button { min-width: 86px; height: 26px; border: 1px solid #87acff; border-radius: 16px; background: #edf3ff; color: #266fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.form-data-actions button.primary { border: 0; background: linear-gradient(100deg,#46b3f0,#266fff); color: #fff; }
.form-data-actions button:disabled { opacity: .45; cursor: not-allowed; }
.form-data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 42px; padding-bottom: 8px; }
.form-data-tabs { display: flex; align-items: center; flex-shrink: 0; gap: 28px; height: 34px; }
.form-data-tabs button { position: relative; height: 34px; padding: 0; border: 0; background: transparent; color: #777; font-size: 14px; cursor: pointer; }
.form-data-tabs button:hover { color: #266fff; }
.form-data-tabs button.active { color: #111; font-weight: 600; }
.form-data-tabs button.active::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 36px; height: 3px; border-radius: 3px; background: #266fff; transform: translateX(-50%); }
.form-data-filters { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.form-data-dates { display: flex; align-items: center; width: 264px; height: 34px; padding: 0 9px; border: 1px solid #d5d5d5; border-radius: 6px; color: #999; }
.form-data-dates label { position: relative; flex: 1; min-width: 0; }
.form-data-dates label > span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; }
.form-data-dates input { width: 100%; height: 30px; border: 0; background: transparent; font-size: 12px; color: #555; }
.form-data-dates label.empty input { color: transparent; }
.form-data-dates input::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.form-data-dates > span { margin: 0 10px; }
.form-data-qr-filter { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.form-data-qr-select { position: relative; display: block; width: 180px; height: 34px; }
.form-data-qr-select::after { content: ''; position: absolute; top: 13px; right: 12px; width: 6px; height: 6px; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; transform: rotate(45deg); pointer-events: none; transition: opacity .15s; }
.form-data-qr-select select { width: 100%; height: 34px; padding: 0 34px 0 8px; border: 1px solid #d5d5d5; border-radius: 6px; outline: none; appearance: none; background: #fff; color: #777; font-size: 12px; cursor: pointer; }
.form-data-qr-placeholder { position: absolute; inset: 1px 30px 1px 9px; display: flex; align-items: center; background: #fff; color: #aaa; font-size: 12px; pointer-events: none; }
.form-data-qr-clear { position: absolute; top: 1px; right: 1px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 0 5px 5px 0; background: #fff; color: #aaa; opacity: 0; pointer-events: none; cursor: pointer; transition: opacity .15s; }
.form-data-qr-clear svg { width: 18px; height: 18px; }
.form-data-qr-select.filled:hover::after { opacity: 0; }
.form-data-qr-select.filled:hover .form-data-qr-clear { opacity: 1; pointer-events: auto; }
.form-data-qr-clear:hover { color: #666; }
.form-data-search { display: flex; align-items: center; width: 180px; height: 34px; border: 1px solid #d5d5d5; border-radius: 6px; }
.form-data-search input { width: 100%; min-width: 0; border: 0; padding: 0 8px; background: transparent; font-size: 12px; }
.form-data-search input::placeholder { color: #aaa; }
.form-data-search button { width: 30px; flex-shrink: 0; padding: 5px; border: 0; background: transparent; color: #aaa; cursor: pointer; }
.form-data-search svg { width: 18px; height: 18px; }
.form-data-content-card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 0 8px; border-radius: 12px; background: #fff; }
.form-data-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 16px; }
.form-data-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.form-data-scroll::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 2px; }
.form-data-scroll::-webkit-scrollbar-track { background: transparent; }
.form-data-scroll::-webkit-scrollbar-button { display: none; }
.form-data-record-head, .form-data-record-row { display: grid; grid-template-columns: 44px minmax(280px,1fr) 120px 156px 210px; gap: 0; align-items: center; font-size: 14px; }
.form-data-record-head, .form-data-qr-head { position: sticky; top: 0; z-index: 1; min-height: 42px; background: #fafafa; border-bottom: 1px solid #eee; color: #777; }
.form-data-record-head > span:not(:nth-child(2)), .form-data-record-row > span, .form-data-record-row > time { text-align: center; padding: 0 8px; overflow-wrap: anywhere; }
.form-data-record-head > span:nth-child(2) { padding-left: 20px; text-align: left; }
.form-data-record-head input, .form-data-record-row > input { appearance: none; justify-self: center; width: 16px; height: 16px; border: 1px solid #c6c6c6; border-radius: 50%; background: #fff; cursor: pointer; }
.form-data-record-head input:checked, .form-data-record-row > input:checked { border-color: #266fff; background: #266fff; box-shadow: inset 0 0 0 3px #fff; }
.form-data-record-row { min-height: 120px; border-bottom: 1px solid #f1f1f1; }
.form-data-record-row dl { display: grid; gap: 14px; margin: 0; padding: 18px 12px 28px 20px; }
.form-data-record-row dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.form-data-check-group .form-data-value + .form-data-value { margin-top: 6px; }
.form-data-record-row dt { color: #888; font-size: 13px; overflow-wrap: anywhere; }
.form-data-record-row dd { margin: 0; min-width: 0; color: #555; font-size: 13px; }
.form-data-value { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.form-data-line-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.form-data-value + .form-data-value { margin-top: 7px; }
.form-data-value.muted { color: #aaa; }
.form-data-value img { max-width: 110px; max-height: 90px; object-fit: contain; }
.form-data-value a { color: #266fff; cursor: pointer; }
.form-data-image-preview { display: inline-flex; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.form-data-score { width: 100%; max-width: 300px; gap: 5px; }
.form-data-score .block-form-rate-stars { min-height: 34px; padding: 0 10px; }
.form-data-score .block-form-rate-star { font-size: 20px; cursor: default; }
.form-data-score .block-form-nps-scale { gap: 2px; }
.form-data-score .block-form-nps-score { height: 26px; font-size: 11px; cursor: default; }
.form-data-score .block-form-rate-labels,
.form-data-score .block-form-nps-labels { font-size: 11px; line-height: 16px; }
.form-data-readonly-table { width: 100%; max-width: 360px; }
.form-data-readonly-table .block-form-table-row { min-height: 38px; height: auto; }
.form-data-readonly-table .block-form-table-row > span:first-child { width: 90px; flex-basis: 90px; min-width: 0; height: auto; padding: 8px 10px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.form-data-readonly-table .block-form-table-row > .form-data-table-cell { width: auto; height: auto; flex: 1; min-width: 0; padding: 8px 10px; background: #fff; border-right: 0; color: #555; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.form-data-table-empty { padding: 10px; color: #aaa; font-size: 12px; }
.form-data-check-status { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; line-height: 1; font-size: 12px; }
.form-data-check-status.pass { color: #23c36b; }
.form-data-check-status.fail { color: #ff4758; }
.form-data-check-status.pass, .form-data-check-status.fail { border: 0; }
.form-data-check-status.pass::before, .form-data-check-status.fail::before { content: ''; display: block; width: 16px; height: 16px; background-color: currentColor; mask-repeat: no-repeat; mask-position: center; mask-size: contain; }
.form-data-check-status.pass::before { mask-image: url('../image/icon-tick.png'); }
.form-data-check-status.fail::before { mask-image: url('../image/icon-close.png'); }
.form-data-check-status.skip { border: 0; }
.form-data-check-status.skip::before { content: ''; width: 16px; height: 16px; background: url('../image/wuxu.png') center / contain no-repeat; }
.form-data-check-status.skip, .form-data-check-status.empty { color: #aaa; }
.form-data-qr-head, .form-data-qr-row { display: grid; grid-template-columns: 120px 1fr 1fr 1fr 250px; align-items: center; text-align: center; font-size: 14px; }
.form-data-qr-row { min-height: 70px; border-bottom: 1px solid #f1f1f1; }
.form-data-qr-row > span { padding: 0 12px; overflow-wrap: anywhere; }
.form-data-qr-row img { width: 46px; height: 46px; object-fit: contain; vertical-align: middle; cursor: zoom-in; }
.form-data-qr-actions { display: flex; justify-content: center; align-items: center; }
.form-data-qr-actions button, .form-data-qr-actions a { padding: 0 16px; border: 0; background: transparent; color: #266fff; font-size: 14px; cursor: pointer; }
.form-data-qr-actions > * + * { border-left: 1px solid #ddd; }
.form-qr-image-modal { position: fixed; inset: 0; z-index: 10040; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.form-qr-image-modal.show { opacity: 1; visibility: visible; }
.form-qr-image-modal-box { position: relative; display: flex; flex-direction: column; align-items: center; }
.form-qr-image-modal-box > img { width: 320px; height: 320px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 8px 40px rgba(0, 0, 0, .3); }
.form-qr-image-modal-box.is-attachment > img { width: auto; height: auto; max-width: min(86vw, 960px); max-height: 86vh; }
.form-qr-image-modal-close { position: absolute; top: -20px; right: -60px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); cursor: pointer; transition: background .2s; }
.form-qr-image-modal-close::before, .form-qr-image-modal-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 2px; height: 16px; border-radius: 2px; background: #fff; }
.form-qr-image-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.form-qr-image-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.form-qr-image-modal-close:hover { background: rgba(0, 0, 0, .7); }
.form-data-stat-section { margin: 4px 0 18px; }
.form-data-stat-section h5 { margin: 0 0 10px; font-size: 14px; }
.form-data-stat-section table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid #ddd; border-radius: 9px; overflow: hidden; font-size: 14px; }
.form-data-stat-section th, .form-data-stat-section td { height: 41px; padding: 8px 16px; text-align: center; font-weight: 400; }
.form-data-stat-section th { background: #fafafa; }
.form-data-stat-section th:nth-child(1) { width: 39%; }
.form-data-stat-section th:nth-child(2) { width: 20%; }
.form-data-stat-section tr > * + * { border-left: 1px solid #ddd; }
.form-data-stat-section tbody tr > * { border-top: 1px solid #ddd; }
.form-data-percentage { display: flex; align-items: center; gap: 20px; }
.form-data-percentage > span { min-width: 44px; text-align: right; }
.form-data-progress { flex: 1; height: 6px; border-radius: 6px; background: #e7e7e7; overflow: hidden; }
.form-data-progress i { display: block; height: 100%; border-radius: inherit; background: #266fff; }
.form-data-pagination { flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding-top: 8px; }
.form-data-pagination button { min-width: 32px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: #f5f5f5; color: #111; font-size: 14px; font-weight: 600; cursor: pointer; }
.form-data-pagination button.active { background: #edf3ff; color: #266fff; }
.form-data-pagination button:disabled { opacity: .45; cursor: default; }
.form-data-pagination select { height: 32px; margin-right: 12px; border: 1px solid #eee; border-radius: 6px; background: #fff; padding: 0 10px; font-size: 14px; }
.form-data-message { padding: 70px 16px; text-align: center; color: #999; font-size: 14px; }
.form-data-message button { margin-left: 12px; border: 0; color: #266fff; background: transparent; cursor: pointer; }
.form-export-mask { position: fixed; inset: 0; z-index: 10030; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.form-export-dialog { width: 620px; max-width: calc(100vw - 32px); overflow: hidden; border-radius: 10px; background: #fff; color: #111; }
.form-export-header { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border-bottom: 1px solid #eee; }
.form-export-header h3 { margin: 0; font-size: 18px; }
.form-export-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; color: #999; cursor: pointer; }
.form-export-close svg { width: 20px; height: 20px; }
.form-export-content { padding: 28px 32px 34px; }
.form-export-row { display: flex; align-items: center; gap: 32px; min-height: 32px; font-size: 16px; }
.form-export-row + .form-export-row { margin-top: 22px; }
.form-export-row > span { width: 120px; flex-shrink: 0; }
.form-export-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.form-export-row input { position: absolute; opacity: 0; pointer-events: none; }
.form-export-row i { width: 20px; height: 20px; border: 1px solid #c6cbd3; border-radius: 50%; background: #fff; }
.form-export-row input:checked + i { border: 6px solid #347cff; }
.form-export-content p { margin: 5px 0 0 152px; color: #b7bbc3; font-size: 13px; }
.form-export-footer { display: flex; justify-content: flex-end; gap: 16px; padding: 12px 22px; border-top: 1px solid #eee; }
.form-export-footer button { min-width: 108px; height: 36px; border: 1px solid #266fff; border-radius: 19px; background: #fff; color: #266fff; font-size: 14px; cursor: pointer; }
.form-export-footer button.primary { border: 0; background: linear-gradient(100deg,#46b3f0,#266fff); color: #fff; }
.form-export-footer button:disabled { opacity: .55; cursor: not-allowed; }
.edit-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
}
.edit-modal-mask.show { display: flex; }
.edit-modal-dialog {
    width: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}
