/* Procedure settings are scoped to their own dialog. */
.modal-card:has(.cf-procedure-modal){width:calc(100vw - 48px);max-width:1480px;max-height:calc(100vh - 48px)}
.modal-body:has(.cf-procedure-modal){overflow:auto}
.cf-procedure-modal{font:12px/1.6 Arial,"Microsoft YaHei",sans-serif;color:#303133;min-width:0}
.cf-procedure-info{padding:10px 12px;margin:0 0 16px;background:#ecf5ff;border:1px solid #b3d8ff;border-radius:4px}
.cf-procedure-controls{display:grid;grid-template-columns:minmax(170px,240px) minmax(190px,260px) 1fr;align-items:end;gap:16px}
.cf-procedure-mode-action{display:flex;align-items:center;gap:12px;min-height:30px;color:#606266}
.cf-procedure-mode-action small{font-size:12px}
.cf-procedure-directory{color:#606266;margin:12px 0;font-size:12px}
.cf-procedure-table-wrap{overflow:auto;max-height:48vh;border:1px solid #ebeef5;border-radius:4px}
.cf-procedure-table{width:100%;min-width:1150px;border-collapse:collapse;table-layout:fixed;font:inherit}
.cf-procedure-table th,.cf-procedure-table td{padding:11px 10px;border-bottom:1px solid #ebeef5;text-align:left;vertical-align:top;word-break:break-word;white-space:normal}
.cf-procedure-table th{background:#f5f7fa;font-weight:600;position:sticky;top:0;z-index:1}
.cf-procedure-table th:nth-child(1){width:13%}.cf-procedure-table th:nth-child(2){width:11%}.cf-procedure-table th:nth-child(3){width:21%}.cf-procedure-table th:nth-child(4){width:8%}.cf-procedure-table th:nth-child(5){width:12%}.cf-procedure-table th:nth-child(6){width:19%}.cf-procedure-table th:nth-child(7){width:16%}
.cf-procedure-table td small{display:block;color:#909399;line-height:1.55;margin-top:5px;font-size:11px}
.cf-procedure-table td strong{font-weight:500;color:#303133}
.cf-procedure-table textarea{box-sizing:border-box;min-height:54px;width:100%;font:inherit;padding:5px 7px;border:1px solid #dcdfe6;border-radius:4px;resize:vertical;background:#fff;color:#303133}
.cf-procedure-table textarea:focus{outline:1px solid #409eff;border-color:#409eff}
.cf-procedure-address-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.cf-procedure-table td .cf-procedure-warning{color:#a76c16}
.cf-procedure-row-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:7px}
.cf-procedure-review{display:flex;align-items:flex-start;gap:8px;margin:15px 0 8px;color:#606266}
.cf-procedure-review input{margin-top:3px;accent-color:#1677ff;flex:none}
.cf-procedure-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}
.cf-procedure-actions>span{margin-right:auto;color:#909399}
.cf-procedure-modal .btn-primary,.cf-procedure-modal .btn-ghost{font-family:inherit;font-size:12px;font-weight:400;white-space:nowrap;line-height:20px;padding:5px 13px;border-radius:4px;cursor:pointer;box-shadow:none}
.cf-procedure-modal .btn-primary{color:#fff;background:#1677ff;border:1px solid #1677ff}
.cf-procedure-modal .btn-ghost{color:#606266;background:#fff;border:1px solid #dcdfe6}
.cf-procedure-modal button:disabled{opacity:.5;cursor:not-allowed}
.cf-procedure-modal button:focus-visible{outline:2px solid #409eff;outline-offset:2px}
#cf-procedure-result{min-height:20px;color:#a76c16}
.cf-procedure-search{padding:14px;border:1px solid #b3d8ff;border-radius:4px;background:#f8fbff;margin:0 0 14px}
.cf-procedure-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
#cf-court-search-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}
.cf-procedure-search-count{color:#606266;margin:10px 0 6px}
.cf-procedure-court-results{max-height:220px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.cf-procedure-court-option{display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;padding:8px 10px;background:#fff;border:1px solid #dcdfe6;border-radius:4px;font:inherit;color:#303133;cursor:pointer;min-width:0}
.cf-procedure-court-option:hover{border-color:#409eff;background:#ecf5ff}
.cf-procedure-court-option strong{font-weight:500;overflow-wrap:anywhere}
.cf-procedure-court-option small{grid-column:1;font-size:11px;color:#909399}
.cf-procedure-court-option span{grid-column:2;grid-row:1/3;color:#1677ff;margin-left:10px}
.cf-procedure-search-pages{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.cf-procedure-entry{margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #ebeef5}
@media(max-width:760px){.modal-card:has(.cf-procedure-modal){width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.cf-procedure-controls{grid-template-columns:1fr 1fr;gap:10px}.cf-procedure-mode-action{grid-column:1/-1}.cf-procedure-actions{flex-wrap:wrap}.cf-procedure-actions>span{width:100%}#cf-court-search-form{grid-template-columns:1fr 1fr}#cf-court-search-form>.cf-field:first-child{grid-column:1/-1}.cf-procedure-court-results{grid-template-columns:1fr}.cf-procedure-table-wrap{max-height:42vh}}
