/* 投诉消息模板沿用店铺声誉布局；主列表仅使用 app-main 的自然纵向滚动。 */
body.hl-complaint-template-layout .app-main{padding:0 11px!important;gap:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:auto!important}
body.hl-complaint-template-layout .hl-template-host{height:auto!important;min-height:0!important;min-width:0!important;overflow:visible!important;border:0!important;margin:0!important;box-shadow:none!important}
body.hl-complaint-template-layout .hl-template-app.hl-complaint-template-app{height:auto!important;min-height:0!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0!important;box-sizing:border-box}
body.hl-complaint-template-layout .hl-ct-panel{display:block;height:auto;min-width:0;min-height:calc(var(--ct-viewport-height,0px) - 10px);margin-top:10px;padding-bottom:var(--ct-bottom-space,80px);overflow:visible;background:#fff;border:1px solid #e2e7ed;box-sizing:border-box}
body.hl-complaint-template-layout .hl-ct-fixed-top{position:sticky;top:10px;z-index:140;background:#fff;isolation:isolate}
body.hl-complaint-template-layout .hl-ct-fixed-top::before{content:"";position:absolute;top:-10px;left:-1px;right:-1px;height:10px;background:#f1f4f8;pointer-events:none}
body.hl-complaint-template-layout .hl-ct-table-region{margin:0 12px;min-width:0}
body.hl-complaint-template-layout .hl-tpl-table-wrap{width:100%!important;max-width:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow-x:clip!important;overflow-y:visible!important;scrollbar-gutter:auto!important}
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table{translate:var(--ct-horizontal-offset,0px) 0;border-collapse:separate!important;border-spacing:0!important}
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table th,
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table td{border:0;border-right:1px solid #e1e7ee;border-bottom:1px solid #e1e7ee;background-clip:border-box}
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table th:first-child,
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table td:first-child{border-left:1px solid #e1e7ee}
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table>thead{position:static!important;z-index:auto!important;isolation:auto!important;box-shadow:none!important}
body.hl-complaint-template-layout .hl-tpl-table-wrap>.hl-tpl-table>thead>tr>th{position:sticky!important;top:var(--ct-header-top,180px)!important;z-index:130!important;border-top:1px solid #e1e7ee;box-shadow:none!important;background:#f4f7fa!important}
body.hl-complaint-template-layout .hl-tpl-foot{position:fixed!important;bottom:0!important;right:auto!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 12px!important;display:flex!important;justify-content:space-between!important;gap:12px;box-sizing:border-box;background:#fff;border-top:1px solid #dce3eb;box-shadow:0 -2px 7px rgba(25,45,75,.04);z-index:150!important;font-size:12px!important;color:#657283!important}
body.hl-complaint-template-layout .hl-tpl-foot>span{font-size:12px!important;white-space:nowrap}
body.hl-complaint-template-layout .hl-ct-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;font-size:12px!important}
body.hl-complaint-template-layout .hl-tpl-foot select{height:28px!important;min-width:86px!important;width:auto!important;padding:0 24px 0 9px!important;border:1px solid #dce3eb!important;border-radius:4px!important;background:#fff!important;color:#6c7885!important;font-size:11px!important}
body.hl-complaint-template-layout .hl-ct-page-nav{display:flex;align-items:center;gap:4px}
body.hl-complaint-template-layout .hl-ct-page-nav button{min-width:28px!important;width:28px!important;height:28px!important;padding:0!important;border:1px solid #e1e7ed!important;border-radius:2px!important;background:#f7f8fa!important;color:#8e99a6!important;font-size:12px!important;font-weight:400;line-height:26px!important;text-align:center!important}
body.hl-complaint-template-layout .hl-ct-page-nav button.active{background:#269bf0!important;border-color:#269bf0!important;color:#fff!important}
body.hl-complaint-template-layout .hl-ct-page-nav button:disabled{opacity:.4!important;cursor:not-allowed!important}
body.hl-complaint-template-layout .hl-tpl-foot label{display:flex;align-items:center;gap:5px;margin-left:0;font-weight:400;font-size:12px!important;color:#657283}
body.hl-complaint-template-layout .hl-tpl-foot input{width:42px!important;height:28px!important;padding:0 5px!important;border:1px solid #dce3eb!important;border-radius:3px!important;background:#fff!important;text-align:center!important;color:#657283!important;font-size:11px!important;box-sizing:border-box!important;-moz-appearance:textfield}
body.hl-complaint-template-layout .hl-tpl-foot input::-webkit-inner-spin-button,
body.hl-complaint-template-layout .hl-tpl-foot input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.hl-complaint-template-layout .hl-template-app.hl-complaint-template-app .hl-pagination-spacer-v250{display:none!important;height:0!important;min-height:0!important}
body.hl-complaint-template-layout>#hl-management-top-guard-v021,
body.hl-complaint-template-layout>#hl-management-fixed-hscroll-v021,
body.hl-complaint-template-layout>#hl-fixed-hscroll{display:none!important}
#hl-ct-horizontal-scroll{position:fixed;bottom:48px;height:20px;z-index:151;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;background:#fbfcfd;border-top:1px solid #eef2f5;border-bottom:1px solid #eef2f5;scrollbar-width:auto;overscroll-behavior-x:contain}
#hl-ct-horizontal-scroll[hidden]{display:none!important}
#hl-ct-horizontal-scroll>div{height:1px;pointer-events:none}
#hl-ct-horizontal-scroll::-webkit-scrollbar{height:18px}
#hl-ct-horizontal-scroll::-webkit-scrollbar-track{background:#f5f7f9}
#hl-ct-horizontal-scroll::-webkit-scrollbar-thumb{background:#c8d0d8;border-radius:6px;border:2px solid #f5f7f9}
#hl-ct-horizontal-scroll::-webkit-scrollbar-thumb:hover{background:#aab6c1}
body.hl-complaint-template-layout .hl-ct-short-viewport .hl-ct-fixed-top{position:relative!important;top:auto!important}
body.hl-complaint-template-layout .hl-ct-short-viewport .hl-tpl-table-wrap>.hl-tpl-table>thead>tr>th::before{content:"";position:absolute;top:-11px;left:-1px;right:-1px;height:10px;background:#f1f4f8;pointer-events:none}

/* 只覆盖投诉模板，不改变共用样式中的售前/售后模板和编辑弹层。 */
body.hl-complaint-template-layout .hl-template-app.hl-complaint-template-app{position:static;inset:auto;overflow:visible}
body.hl-complaint-template-layout .hl-ct-panel .hl-tpl-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;height:54px;padding:0 14px;border:0;box-sizing:border-box}
body.hl-complaint-template-layout .hl-ct-panel .hl-tpl-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#e5e9ef;pointer-events:none}
body.hl-complaint-template-layout .hl-ct-panel .hl-tpl-head h2{position:relative;z-index:1;flex:0 0 auto;margin:0;font-size:17px;font-weight:600}
body.hl-complaint-template-layout .hl-tpl-head-clock{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;margin-left:auto;color:#637083;font-size:13px;white-space:nowrap}
body.hl-complaint-template-layout .hl-tpl-head-clock b{color:#24344e;font-size:13px;font-weight:600}
body.hl-complaint-template-layout .hl-tpl-head-clock small{color:#7b889a;font-size:12px;font-weight:400}
body.hl-complaint-template-layout .hl-tpl-head-clock time{color:#637083;font-variant-numeric:tabular-nums}
body.hl-complaint-template-layout .hl-tpl-toolbar{min-height:60px;height:auto;padding:14px 12px 10px;gap:12px;flex-wrap:wrap;border:0;box-sizing:border-box;background:#fff}
body.hl-complaint-template-layout .hl-tpl-add{flex:0 0 auto}
body.hl-complaint-template-layout .hl-tpl-search{margin-left:auto;flex:0 0 auto}
body.hl-complaint-template-layout .hl-tpl-search input{width:220px;min-width:0;box-sizing:border-box}
body.hl-complaint-template-layout .hl-tpl-rule{min-height:32px;height:auto;max-width:none;white-space:normal;flex:0 1 auto;gap:8px;box-sizing:border-box;line-height:20px;font-size:12px}
body.hl-complaint-template-layout .hl-tpl-rule-link{white-space:nowrap;font-weight:400}
body.hl-complaint-template-layout .hl-tpl-table{width:100%;min-width:1664px;table-layout:fixed;font-size:12px}
body.hl-complaint-template-layout .hl-tpl-table th{height:58px;padding:10px;box-sizing:border-box}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(1){width:260px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(2){width:250px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(3){width:300px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(4){width:230px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(5){width:90px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(6){width:160px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(7){width:110px}
body.hl-complaint-template-layout .hl-tpl-table th:nth-child(8){width:264px}
body.hl-complaint-template-layout .hl-tpl-table td{height:58px;padding:12px 10px;box-sizing:border-box;background:#fff;line-height:18px}
body.hl-complaint-template-layout .hl-tpl-table td:first-child b{font-weight:400}
body.hl-complaint-template-layout .hl-tpl-table td:nth-child(5),body.hl-complaint-template-layout .hl-tpl-table td:nth-child(6),body.hl-complaint-template-layout .hl-tpl-table td:nth-child(7){text-align:center}
body.hl-complaint-template-layout .hl-complaint-template-app .hl-tpl-table .status{display:inline;color:inherit;background:transparent!important;border:0;padding:0;box-shadow:none;font-size:12px;font-weight:400}
body.hl-complaint-template-layout .hl-complaint-template-app .hl-tpl-table .status.on{color:#67c23a!important}
body.hl-complaint-template-layout .hl-complaint-template-app .hl-tpl-table .status.off{color:#f56c6c!important}
body.hl-complaint-template-layout .hl-tpl-table .actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:72px;min-width:72px;height:28px;box-sizing:border-box;margin:0 3px;padding:0;border-radius:3px;font:12px "Microsoft YaHei",sans-serif;cursor:pointer;vertical-align:middle}
body.hl-complaint-template-layout .hl-ct-action-icon{width:13px;height:13px;flex:0 0 13px}
body.hl-complaint-template-layout .hl-tpl-table .actions .edit{color:#409eff;background:#ecf5ff;border:1px solid #b3d8ff}
body.hl-complaint-template-layout .hl-tpl-table .actions .stop{color:#f56c6c;background:#fef0f0;border:1px solid #fbc4c4}
body.hl-complaint-template-layout .hl-tpl-table .actions .start{color:#67c23a;background:#f0f9eb;border:1px solid #c2e7b0}
body.hl-complaint-template-layout .hl-tpl-table .actions .del{color:#e6a23c;background:#fdf6ec;border:1px solid #f5dab1}
body.hl-complaint-template-layout .hl-tpl-table .actions .edit:hover{background:#409eff;border-color:#409eff;color:#fff}
body.hl-complaint-template-layout .hl-tpl-table .actions .stop:hover{background:#f56c6c;border-color:#f56c6c;color:#fff}
body.hl-complaint-template-layout .hl-tpl-table .actions .start:hover{background:#67c23a;border-color:#67c23a;color:#fff}
body.hl-complaint-template-layout .hl-tpl-table .actions .del:hover{background:#e6a23c;border-color:#e6a23c;color:#fff}
body.hl-complaint-template-layout .hl-tpl-foot{align-items:center;overflow-x:auto}
body.hl-complaint-template-layout .hl-ct-editor{z-index:2147483640}
body.hl-complaint-template-layout>.hl-ct-rules-portal-root>.hl-ct-rules-modal{z-index:2147483642!important}
.hl-ct-confirm-layer{position:fixed;inset:0;z-index:2147483640;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:16px;background:rgba(0,0,0,.5);font:14px/1.5 "Microsoft YaHei",sans-serif;color:#606266}
.hl-ct-confirm-card{width:420px;max-width:100%;max-height:calc(100vh - 32px);overflow:auto;background:#fff;border:1px solid #ebeef5;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.1);box-sizing:border-box}
.hl-ct-confirm-card header{display:flex;align-items:center;justify-content:space-between;height:46px;padding:0 15px;font-size:18px;font-weight:400}
.hl-ct-confirm-card header button{border:0;background:transparent;color:#909399;font:22px Arial;cursor:pointer}
.hl-ct-confirm-message{display:flex;align-items:center;gap:12px;padding:10px 16px 14px;font-size:14px}
.hl-ct-confirm-message>span{display:flex;align-items:center;justify-content:center;flex:0 0 22px;height:22px;border-radius:50%;background:#e6a23c;color:white;font-size:16px;font-weight:700}
.hl-ct-confirm-message p{margin:0}
.hl-ct-confirm-card footer{display:flex;justify-content:flex-end;gap:10px;padding:5px 15px 10px}
.hl-ct-confirm-card footer button{height:32px;min-width:56px;padding:0 15px;border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#606266;font-size:12px;cursor:pointer}
.hl-ct-confirm-card footer button.primary{border-color:#409eff;background:#409eff;color:#fff}
.hl-ct-confirm-card button:focus-visible{outline:2px solid #409eff;outline-offset:2px}
@media(max-width:700px){body.hl-complaint-template-layout .hl-tpl-search input{width:180px}body.hl-complaint-template-layout .hl-tpl-rule{width:100%;order:3}body.hl-complaint-template-layout .hl-tpl-head-clock{gap:4px;font-size:12px}body.hl-complaint-template-layout .hl-tpl-head-clock b{font-size:12px}body.hl-complaint-template-layout .hl-tpl-head-clock small{display:none}}
