.contract-template-content{
    box-sizing:border-box;
    margin:24px auto 40px;
    max-width:1180px;
    padding:0 16px;
}
.contract-template-content .lawyer-toolbar{
    align-items:center;
    display:flex;
    gap:10px;
    margin-bottom:12px;
}
.template-search-wrapper{
    flex:1;
    min-width:280px;
    position:relative;
}
.template-search-wrapper input{
    background:#fff;
    border:1px solid #d9e0e8;
    border-radius:7px;
    box-sizing:border-box;
    font:inherit;
    height:34px;
    padding:6px 32px 6px 12px;
    width:100%;
}
.template-search-wrapper input:focus{
    border-color:#3478df;
    outline:none;
}
.template-clear-btn{
    align-items:center;
    background:transparent;
    border:0;
    color:#94a3b8;
    cursor:pointer;
    display:flex;
    font-size:18px;
    height:34px;
    justify-content:center;
    line-height:1;
    padding:0;
    position:absolute;
    right:6px;
    top:0;
    width:24px;
}
.template-clear-btn:hover{
    color:#475569;
}
.template-pagination-container{
    align-items:center;
    display:flex;
    justify-content:flex-start;
    margin-bottom:12px;
}
.contract-template-content .lawyer-workbench-table-head,
.contract-template-content .lawyer-workbench-row{
    min-width:100%;
}
.contract-template-content .col-idx{
    color:#758196;
    text-align:center;
    width:50px;
}
.contract-template-content .col-name{
    width:38%;
}
.contract-template-content .col-category{
    width:20%;
}
.contract-template-content .col-size{
    color:#758196;
    width:12%;
}
.contract-template-content .lawyer-actions-cell{
    text-align:right;
    vertical-align:middle;
    white-space:nowrap;
    width:24%;
}
.contract-template-content .lawyer-actions-cell-inner{
    align-items:center;
    display:inline-flex;
    gap:8px;
    justify-content:flex-end;
    vertical-align:middle;
}
.contract-template-content .lawyer-actions-cell .lawyer-text-button{
    align-items:center;
    background:transparent;
    border:0;
    box-sizing:border-box;
    color:#2263c7;
    cursor:pointer;
    display:inline-flex;
    font:inherit;
    font-size:13px;
    height:28px;
    justify-content:center;
    line-height:20px;
    margin:0;
    padding:4px 6px;
    text-decoration:none;
    vertical-align:middle;
}
.contract-template-content .lawyer-actions-cell .lawyer-text-button:hover{
    text-decoration:underline;
}
.contract-template-content .lawyer-actions-cell .lawyer-text-button.is-draft-edit{
    color:#059669;
    font-weight:600;
}
.contract-template-content .lawyer-actions-cell .lawyer-text-button.is-draft-edit:hover{
    color:#047857;
    text-decoration:underline;
}
.lawyer-docx-edit [style*="underline"]{
    text-decoration-skip-ink:none;
}
.lawyer-docx-edit section.docx,
.lawyer-docx-edit .docx-wrapper{
    cursor:text;
    outline:none;
    user-select:text;
    -webkit-user-select:text;
}
.lawyer-docx-edit p.is-editable{
    border-radius:2px;
    outline:none;
}
.lawyer-docx-edit p.is-editable:focus-within{
    background:rgba(40, 107, 214, .05);
}
.lawyer-docx-edit .is-readonly{
    cursor:default;
    opacity:.92;
    user-select:none;
    -webkit-user-select:none;
}
.template-editor-heading-left{
    align-items:center;
    display:flex;
    gap:10px;
    flex:1 1 210px;
    min-width:0;
}
.template-draft-status{
    color:#059669;
    flex:0 0 auto;
    font-size:14px;
    font-weight:normal;
}
.template-draft-status.is-dirty{
    color:#d97706;
}
.template-editor-actions{
    align-items:center;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-left:auto;
}
.template-editor-actions .lawyer-primary,
.template-editor-actions .lawyer-text-button{
    margin:0;
}
#templateRows.is-loading{
    opacity:0.5;
    pointer-events:none;
    transition:opacity .15s ease;
}
@media (max-width:768px){
    .contract-template-content{
        margin:16px auto;
        padding:0 10px;
    }
    .contract-template-content .lawyer-workbench-table-head,
    .contract-template-content .lawyer-workbench-row{
        min-width:620px;
    }
    .contract-template-content .lawyer-toolbar{
        flex-direction:row;
        gap:8px;
    }
    .lawyer-modal-content.lawyer-preview-modal-content{
        padding:8px;
    }
    .template-editor-heading-left strong{
        font-size:14px;
        max-width:180px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    .template-editor-actions{
        gap:6px;
    }
    .lawyer-docx-edit{
        padding:8px 4px;
    }
    .lawyer-docx-edit section.docx{
        box-sizing:border-box !important;
        margin:0 auto 12px !important;
        max-width:100% !important;
        min-height:auto !important;
        min-width:0 !important;
        padding:20px 14px !important;
        width:100% !important;
    }
    .lawyer-docx-edit table{
        box-sizing:border-box !important;
        max-width:100% !important;
        table-layout:auto !important;
        width:100% !important;
        word-break:break-word;
    }
    .lawyer-docx-edit td,
    .lawyer-docx-edit th{
        box-sizing:border-box !important;
        padding:6px 4px !important;
        word-break:break-word;
    }
}
.lawyer-preview-toolbar .preview-to-editor-btn{
    background:#e6f0ff;
    border:0;
    border-radius:8px;
    color:#286bd6;
    height:34px;
    margin:0;
    padding:0 12px;
    white-space:nowrap;
}
.lawyer-preview-toolbar .preview-to-editor-btn:hover{
    background:#d6e7ff;
}
.lawyer-preview-toolbar .preview-to-editor-btn:active{
    transform:scale(.98);
}
.template-editor-modal{
    border:0;
    height:100%;
    margin:0;
    max-height:none;
    max-width:none;
    width:100%;
}
.template-editor-modal .lawyer-modal-heading{
    flex:0 0 auto;
}
.template-editor-actions button{
    box-sizing:border-box;
    height:34px;
    white-space:nowrap;
}
@media (max-width:640px){
    .fabao-doc-preview-heading{
        flex-wrap:wrap;
    }
    .fabao-doc-preview-title{
        flex:1 1 0;
    }
    .fabao-doc-preview-toolbar{
        flex:0 0 100%;
        order:1;
    }
}
