.template-page{padding:0;overflow:hidden}.template-filter{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:18px;background:#f8fbff;border-bottom:1px solid #dbe5ee}.template-filter label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#587086;width:185px}.template-filter label:nth-child(2){width:260px}.template-filter input,.template-filter select{height:35px;width:100%;border:1px solid #c7d7e6;border-radius:4px;padding:6px 10px;color:#29465f;background:white}.template-query-actions{display:flex;gap:8px}.template-query-actions .btn{height:35px}.template-list-table{table-layout:fixed;min-width:1040px;width:100%}.template-list-table th{background:#edf4fb;color:#405c73;border-right:1px solid #dce6f0;height:43px}.template-list-table th:first-child{width:60px}.template-list-table th:nth-child(2){width:16%}.template-list-table th:nth-child(3){width:24%}.template-list-table th:nth-child(4){width:13%}.template-list-table th:nth-child(5){width:14%}.template-list-table th:nth-child(6){width:140px}.template-list-table th:nth-child(7){width:85px}.template-list-table th:nth-child(8){width:140px}.template-list-table td{padding:15px 10px;border-right:1px solid #e8eef4;overflow-wrap:anywhere;vertical-align:middle}.template-list-table td strong{font-weight:500}.template-list-table tr:nth-child(even){background:#f9fbfd}.template-description{white-space:pre-wrap;text-align:left!important}.template-time{font-size:12px;white-space:nowrap}.template-sort{border:0;background:none;color:inherit;font:inherit;padding:0;cursor:pointer}.template-sort span{font-size:12px;color:#839bb0}.template-row-actions{display:flex;gap:8px 12px;flex-wrap:wrap;justify-content:center}.template-row-actions .link{font-size:12px;white-space:nowrap;padding:0}.template-delete{color:#b93f3f!important}.template-state{display:inline-flex;align-items:center;gap:4px;font-size:11px}.template-state b{font-size:25px;font-weight:500;line-height:1}.template-state.enabled{color:#2c73af}.template-state.disabled{color:#b75252}.template-empty{height:390px;color:#73899b;text-align:center!important}.template-empty small{display:block;margin-top:8px;font-size:11px}.template-pagination{padding:14px 17px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #dce6f0;font-size:12px;color:#637d92}.template-pagination>div{display:flex;gap:8px;align-items:center}.template-pagination .btn{padding:5px 10px}.template-pagination select{padding:6px;border:1px solid #c7d7e6;border-radius:4px}.template-detail{padding:22px;max-height:70vh;overflow:auto}.template-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-detail-summary small{display:block;color:#73899b;margin-bottom:6px}.template-detail-summary strong{font-weight:500;overflow-wrap:anywhere}.template-detail section{margin-top:24px}.template-detail h3{font-size:14px;margin:0 0 12px}.template-detail-description{white-space:pre-wrap;background:#f6f9fc;padding:12px}.template-detail table{min-width:1000px}.template-detail-total{text-align:right;padding:15px;color:#59738b}.template-detail-total strong{color:#2d608b;font-size:18px;margin-left:8px}.template-detail details{font-size:12px;color:#617d93;border-top:1px solid #dce6ef;padding-top:12px}.template-detail summary{cursor:pointer}.template-confirm{padding:20px 24px}.template-confirm h3{margin-top:0;font-size:16px;overflow-wrap:anywhere}.template-confirm p{line-height:1.8;color:#637a8e}.cost-template-document .arrangement-cost-editor{min-width:1180px}.cost-template-document .arrangement-cost-editor input,.cost-template-document .arrangement-cost-editor select{min-width:72px}@media(max-width:800px){.template-filter label,.template-filter label:nth-child(2){flex:1 1 160px}.template-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.template-pagination{gap:12px;flex-wrap:wrap}.template-pagination>div{flex-wrap:wrap}}

/* Compact, consistent business list controls. */
.template-list-table th:nth-child(7){width:94px}
.template-list-table th:nth-child(8){width:164px}
.template-list-table td:nth-child(7),.template-list-table td:nth-child(8){vertical-align:middle;text-align:center}
.template-list-table tbody tr:hover{background:#f3f7fb}
.template-row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;min-width:0}
.template-row-actions .template-action-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#58738b;cursor:pointer;transition:background-color .12s,color .12s,border-color .12s}
.template-row-actions .template-action-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.template-row-actions .template-action-icon:hover{color:#2f6ea7;background:#e8f0f8;border-color:#d6e4f1}
.template-row-actions .template-action-delete{color:#b96161}
.template-row-actions .template-action-delete:hover{color:#b43535;background:#fff0f0;border-color:#f2d4d4}
.template-row-actions .template-action-icon:focus-visible{outline:2px solid #528fbd;outline-offset:2px;background:#e8f0f8}
.template-row-actions .template-action-icon:disabled{opacity:.45;cursor:wait}
.template-list-table .row-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;padding:3px 8px;border-radius:4px;font-size:12px;font-weight:400;line-height:18px;color:#677787;background:#edf1f5}
.template-list-table .row-status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.template-list-table .row-status.is-active{color:#30755b;background:#edf6f1}
