.cw-page{min-width:0;font-size:14px;line-height:22px}.cw-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.cw-head h1{font-size:18px;line-height:26px;margin:0}.cw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cw-muted{color:#64748b;font-size:12px}.cw-page .cw-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;margin:0;padding:0 16px;border:1px solid #e6ebf2;border-radius:8px 8px 0 0;background:#fff}.cw-tabs .tab-item{white-space:nowrap;flex-shrink:0}.cw-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 16px;padding:14px 16px;background:#fff;border:1px solid #e6ebf2;border-top:0;border-radius:0 0 8px 8px}.cw-filter-actions{margin-left:auto;padding:8px 0 8px 16px;display:flex;align-items:center;gap:8px;flex:0 0 auto}.cw-filters .form-control{height:32px}.cw-filters button[type=submit]{color:#2f6fed;border-color:#2f6fed;background:#fff}.cw-filters input[type=search]{width:220px}.cw-filters select{width:136px}.cw-filters input[type=date]{width:136px}.cw-range{display:flex;gap:8px;align-items:center}.cw-page .form-control,.cw-layer .form-control{border-color:#d8dee6;font-size:14px;max-width:100%}.cw-table{overflow:auto;max-width:100%;border:1px solid #e5e7eb;border-radius:6px;background:white}.cw-page .cw-table>table,.cw-layer .cw-table>table,.cw-order .cw-table>table{table-layout:fixed;width:100%;min-width:var(--cw-width,1080px);border-collapse:collapse}.cw-page .cw-table table th,.cw-page .cw-table table td,.cw-layer .cw-table table th,.cw-layer .cw-table table td,.cw-order .cw-table table th,.cw-order .cw-table table td{width:auto;min-width:0;max-width:none;padding:12px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}.cw-table th{background:#f8fafc}.cw-table strong,.cw-table .cw-sub{display:block}.cw-sub{font-size:12px;color:#64748b;margin-top:3px}.cw-page .cw-table .cw-short,.cw-layer .cw-table .cw-short,.cw-order .cw-table .cw-short{white-space:nowrap}.cw-page .cw-table table .cw-action,.cw-layer .cw-table table .cw-action,.cw-order .cw-table table .cw-action{width:160px;min-width:160px;max-width:160px;position:sticky;right:0;background:#fff;box-shadow:-1px 0 #edf0f3;z-index:2}.cw-table th.cw-action{background:#f8fafc!important}.cw-table .cw-action>div{display:flex;align-items:center;gap:12px;white-space:nowrap}.cw-table .cw-action button{white-space:nowrap}.cw-table .tag{white-space:nowrap}.cw-empty{text-align:center;padding:32px!important;color:#64748b}.cw-foot{display:flex;gap:16px;align-items:center;margin:16px 0}.cw-error{color:#b42318;white-space:pre-line;line-height:24px}.cw-error:empty{display:none}.cw-layer .drawer-modal{width:min(920px,100vw);max-width:100vw;display:flex;flex-direction:column;height:100vh}.cw-layer .modal-body{padding:16px 20px;display:block;overflow:auto;flex:1;min-height:0}.cw-layer .modal-footer{flex-shrink:0;flex-wrap:wrap;gap:8px}.cw-layer .modal-header{flex-shrink:0}.cw-section{border:1px solid #e5e7eb;border-radius:6px;margin:16px 0;overflow:hidden}.cw-section>h3{margin:0;padding:10px 16px;font-size:15px;line-height:24px;background:#f8fafc;border-bottom:1px solid #e5e7eb}.cw-section-body{padding:16px}.cw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:0}.cw-grid>div{min-width:0}.cw-grid dt{color:#64748b;font-size:12px;margin-bottom:4px}.cw-grid dd{margin:0;overflow-wrap:anywhere}.cw-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}.cw-form label{display:flex;flex-direction:column;gap:6px;min-width:0}.cw-wide{grid-column:1/-1}.cw-document{white-space:pre-wrap;line-height:1.9;border:1px solid #e5e7eb;background:#fff;padding:24px;overflow-wrap:anywhere}.cw-simulation{margin-top:16px;color:#475569;font-size:13px}.cw-simulation>summary{cursor:pointer}.cw-simulation .cw-actions{margin-top:12px}.cw-simulation select{width:200px}.cw-feedback{margin-top:12px;line-height:24px;color:#475569}.cw-checks{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.cw-layer [hidden],.cw-page [hidden],.cw-order [hidden]{display:none!important}.cw-order{margin-bottom:24px}.cw-order .cw-grid{margin:16px 0}.cw-file-input{display:block;max-width:220px}.cw-layer .cw-small-input{width:108px}.cw-layer .cw-summary{display:flex;gap:16px;align-items:center;justify-content:space-between}.cw-layer .cw-summary h2{margin:0;font-size:18px}.cw-log{padding-left:18px}.cw-log li{margin-bottom:12px}.cw-order .cw-head h3{margin:0;font-size:16px}.cw-mode{margin:12px 0}.cw-mode label{margin-right:16px}.cw-layer .btn-text,.cw-page .btn-text{padding:0}.cw-layer .cw-list{margin:0;padding-left:20px}
@media(max-width:700px){.cw-grid,.cw-form{grid-template-columns:1fr}.cw-layer .modal-body{padding:16px}.cw-head{flex-wrap:wrap}.cw-page .cw-filters input,.cw-page .cw-filters select{max-width:100%}.cw-range{max-width:100%}.cw-range input{min-width:0}.cw-layer .modal-footer .btn{padding-left:10px;padding-right:10px}.cw-simulation select{max-width:100%}}

.cw-order .cw-grid dd{font-size:14px;line-height:22px}.cw-order > .order-tab-section{margin-top:24px}.cw-order .cw-table a{color:var(--primary,#2563eb)}

#approvalDetailContent > .cw-section{grid-column:1/-1;width:100%;margin:8px 0 0}#approvalDetailContent .cw-section-body details{padding:8px 0}#approvalDetailContent .cw-section-body p{line-height:1.7}

/* Contract editing: quiet sections and compact, explicit attachment actions. */
.cw-edit-layer .modal-header{padding:20px 24px;border-bottom:1px solid #e5e7eb}
.cw-edit-layer .modal-body{padding:20px 24px}
.cw-edit-layer .modal-footer{padding:16px 24px;border-top:1px solid #e5e7eb;background:#fff}
.cw-edit-layer .modal-footer [data-cw="close"]{margin-right:auto}
.cw-edit-layer .cw-summary{margin-bottom:12px}
.cw-edit-layer .cw-summary h2{font-size:16px;line-height:24px}
.cw-edit-layer .cw-section{margin:24px 0 0;border:0;border-radius:0;overflow:visible}
.cw-edit-layer .cw-section>h3{padding:0 0 12px;background:none;border-bottom:1px solid #e5e7eb;font-size:14px;line-height:22px;font-weight:600}
.cw-edit-layer .cw-section-body{padding:16px 0 0}
.cw-edit-layer .cw-section-body>p:last-child{margin-bottom:0}
.cw-edit-layer .cw-grid{gap:16px 24px}
.cw-edit-layer .cw-form{gap:16px 24px}
.cw-edit-layer .cw-form label{gap:8px;color:#475569;font-size:13px}
.cw-edit-layer .cw-form .form-control{color:#1e293b;border-radius:6px}
.cw-edit-layer textarea.form-control{min-height:80px;resize:vertical}
.cw-edit-layer .cw-table table th{font-weight:500;font-size:12px;color:#64748b}
.cw-edit-layer .cw-table table td{background:#fff}
.cw-edit-layer .cw-table table tbody tr:last-child td{border-bottom:0}
.cw-edit-layer .cw-feedback:empty{display:none}
.cw-edit-layer .cw-attachment-hint{margin:0 0 12px;color:#64748b;font-size:12px;line-height:20px}
.cw-attachments{list-style:none;margin:0;padding:0;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.cw-attachment{display:grid;grid-template-columns:176px minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;background:#fff}
.cw-attachment+.cw-attachment{border-top:1px solid #edf0f3}
.cw-attachment-info,.cw-attachment-file{min-width:0}
.cw-attachment-title{display:flex;gap:8px;align-items:center}
.cw-attachment-title strong{font-size:14px;font-weight:500;color:#1e293b}
.cw-attachment-version{font-size:12px;line-height:20px;color:#64748b;white-space:nowrap}
.cw-attachment .cw-sub{margin-top:4px;overflow-wrap:anywhere}
.cw-attachment-filename{display:block;font-size:13px;line-height:22px;color:#475569;overflow-wrap:anywhere}
.cw-attachment-missing{font-size:13px;color:#b45309}
.cw-attachment-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cw-attachment-actions .btn{height:32px;padding:0 12px;font-size:13px;border-radius:6px;white-space:nowrap}
.cw-attachment-actions .btn-text{font-size:13px;line-height:32px;white-space:nowrap}
.cw-attachment-actions [data-cw="remove-file"]{color:#64748b}
.cw-attachment-actions [data-cw="remove-file"]:hover{color:#dc2626}
.cw-attachment-actions [data-cw="sample-file"]{color:#64748b}
@media(max-width:700px){
  .cw-edit-layer .modal-header,.cw-edit-layer .modal-body{padding:16px}
  .cw-edit-layer .modal-footer{padding:12px 16px}
  .cw-edit-layer .modal-footer [data-cw="close"]{margin-right:0}
  .cw-attachment{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px}
  .cw-attachment-actions{margin-top:4px}
}

.cw-signer-settings{margin-top:20px;border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px}.cw-signer-settings summary{cursor:pointer;font-weight:600;color:#334155}.cw-signer-card{padding:14px 0}.cw-signer-card+.cw-signer-card{border-top:1px solid #edf0f3}.cw-signer-card>.cw-form{margin-top:12px}.cw-signer-settings>.btn{margin-top:8px}

/* Necessary parties and contractual changes use cards to keep names and results legible. */
.cw-party-list{display:grid;gap:0;margin:12px 0}.cw-party{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,230px);gap:20px;padding:16px 0;border-bottom:1px solid #e5e7eb;align-items:center}.cw-party:last-child{border-bottom:0}.cw-party>div{min-width:0;overflow-wrap:anywhere}.cw-party>div:last-child{align-self:center}.cw-term-diffs article{padding:12px 0;border-bottom:1px solid #e5e7eb}.cw-term-diffs h4{margin:0 0 8px;font-size:14px}.cw-term-diffs p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.cw-term-diffs p span{display:block;color:#64748b;font-size:12px;margin-bottom:4px}.cw-layer .cw-section>h3{display:flex;gap:8px;align-items:center}.cw-layer .cw-section>h3:before{content:'';width:3px;height:14px;background:var(--primary,#2563eb);flex-shrink:0}.cw-layer #cwTermFields{margin-top:16px}.cw-layer .cw-simulation .cw-form{margin:12px 0}.cw-layer .cw-simulation .cw-form select{width:100%}.cw-layer [data-proof]{width:100%}.cw-layer input[type=checkbox][data-proof]{width:auto}
@media(max-width:700px){.cw-party{grid-template-columns:minmax(0,1fr) 120px;gap:12px}}

.cw-party .cw-sub{display:block;margin-top:4px}.cw-party strong{display:block}
.cw-page .cw-table>table.table-column-runtime,.cw-layer .cw-table>table.table-column-runtime,.cw-order .cw-table>table.table-column-runtime{table-layout:fixed;width:max(100%,var(--cw-width,1080px));min-width:var(--cw-width,1080px)}
