.contract-cards{margin-bottom:24px}.contract-filters{display:flex;gap:10px;align-items:stretch;flex-wrap:nowrap;margin-bottom:20px}.contract-filters input,.contract-filters select,.contract-filters button,.contract-filters .button{height:52px}.contract-filters input{flex:1.7 1 230px;min-width:180px}.contract-filters select{flex:1 1 150px;min-width:130px}.contract-filters button,.contract-filters .button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 18px}.contract-filters .push{margin-left:auto}.contract-list{padding:16px}.table-scroll{overflow-x:auto}.contract-list table{table-layout:fixed;min-width:1120px}.contract-list th:nth-child(2){width:17%}.contract-list th:nth-child(3){width:9%}.contract-list th:nth-child(4){width:17%}.contract-list th:nth-child(5){width:16%}.contract-list th:nth-child(6){width:10%}.contract-list th:nth-child(7){width:13%}.contract-list th:nth-child(8){width:12%}.contract-list th:nth-child(9){width:6%}.contract-list td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contract-list td small{display:block;color:#66788a;overflow:hidden;text-overflow:ellipsis}.truncate{overflow:hidden;text-overflow:ellipsis}.nowrap{white-space:nowrap}.row-actions{display:flex;gap:10px}.status{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8eef3;font-size:13px}.status-active,.status-amended,.status-accepted{background:#dff3e8;color:#177245}.status-sent{background:#e1f1fa;color:#0b6f9f}.status-expired,.status-rejected,.status-cancelled{background:#fde8e8;color:#a02c2c}.status-draft{background:#fff2cf;color:#7c5b00}.contract-form .wide{grid-column:1/-1}.contract-form label small{display:block;margin-top:6px;color:#66788a}.contract-actions{display:flex;justify-content:flex-end;align-items:stretch;gap:18px;margin-top:14px}.contract-actions .button,.contract-actions button{height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;margin:0;font:inherit;font-weight:600;line-height:1}.alert.error{margin-bottom:18px;padding:14px 18px;border-radius:8px;background:#fde8e8;color:#8b2020}.event-type{font-size:12px;font-weight:700;text-transform:uppercase}.event-expiry,.event-validity{color:#a02c2c}.event-action{color:#0b6f9f}@media(max-width:1100px){.contract-filters{flex-wrap:wrap}.contract-filters .push{margin-left:0}}@media(max-width:800px){.contract-filters>*{width:100%;margin-left:0!important;flex-basis:100%!important}.contract-list{padding:8px}}
.contract-events{margin-bottom:20px;padding:16px}.contract-events table{width:100%}.contract-events td small{display:block;color:#66788a}.event-overdue{color:#a02c2c;font-weight:700}.form-section{margin:8px 0 0;padding-top:14px;border-top:1px solid #dfe7ed;font-size:17px}.form-section small{font-size:13px;font-weight:400;color:#66788a}.event-block{padding:0}.form-grid.compact{margin-top:12px}.form-grid.compact label{min-width:0}
.contract-form [hidden]{display:none!important}.contract-form .form-grid{align-items:start}.contract-form .form-grid>label{min-width:0}.contract-form input:not([type=checkbox]),.contract-form select,.contract-form textarea{width:100%}.contract-form input[type=checkbox]{width:auto;flex:0 0 auto}.contract-list th:nth-child(9),.contract-list td:nth-child(9){white-space:nowrap;text-align:left}.contract-list td:nth-child(9){overflow:visible}

.status-on-time{background:#dff3e8;color:#177245}.status-soon{background:#fff2cf;color:#7c5b00}.status-overdue{background:#fde8e8;color:#a02c2c}.contract-events table{min-width:1050px}.contract-events th:nth-child(1){width:20%}.contract-events th:nth-child(2){width:18%}.contract-events th:nth-child(3){width:12%}.contract-events th:nth-child(4){width:28%}.contract-events th:nth-child(5){width:12%}.contract-events th:nth-child(6){width:10%}

/* Compact event lists shared by the dashboard and contracts. */
.pending-events-table{width:100%;table-layout:fixed;min-width:1050px}
.pending-events-table th:nth-child(1){width:22%}
.pending-events-table th:nth-child(2){width:22%}
.pending-events-table th:nth-child(3),.pending-events-table th:nth-child(5){width:130px}
.pending-events-table th:nth-child(4){width:auto}
.pending-events-table th:nth-child(6){width:110px}
.pending-events-table th,.pending-events-table td{white-space:nowrap;vertical-align:middle}
.pending-events-table .event-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.contract-list th.record-number{width:4%}.contract-list th:nth-child(2){width:15%}.contract-list th:nth-child(4){width:15%}
