.op-course-results{margin:20px 0;padding:20px;border:1px solid #dce3ef;border-top:3px solid var(--crm-accent,#eb008b);border-radius:18px;background:#fff}.op-finish-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px}.op-finish-head h2,.op-finish-head h3{display:flex;align-items:center;gap:12px;margin:0;font-size:21px;color:#1b2940}.op-finish-head svg{width:25px;height:25px;color:var(--crm-accent,#eb008b);flex:none}.op-finish-head .actions svg,.op-finish-table .actions svg,.op-finish-table button svg{width:19px;height:19px}.op-finish-head .actions,.op-finish-table .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.op-finish-head .button,.op-finish-head button,.op-finish-table .button,.op-finish-table button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;font:inherit;font-size:14px;min-height:40px}.op-finish-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.op-finish-counts>div{padding:14px 18px;border:1px solid #eadced;border-left:3px solid var(--crm-accent,#eb008b);background:#fcf6fa;border-radius:12px;display:flex;gap:8px;flex-direction:column}.op-finish-counts strong{color:var(--crm-accent,#eb008b);font-size:25px;line-height:1.2}.op-finish-counts span{font-size:14px;color:#4c5d75}.op-finish-table{max-width:100%;overflow:auto}.op-finish-table table{width:100%;border-collapse:collapse;font-size:15px}.op-finish-table th,.op-finish-table td{padding:13px 12px;text-align:left;vertical-align:middle;white-space:normal}.op-finish-table th{background:#edf2f9;color:#465b77;font-size:14px}.op-finish-table td{border-bottom:1px solid #e5eaf1;color:#25364c}.op-finish-table small{display:block;color:#647188;font-size:13px;margin-top:4px}.op-finish-form{max-width:900px;font-size:16px}.op-finish-form .form-grid{gap:18px}.op-finish-form input,.op-finish-form select,.op-finish-form textarea{font:inherit;width:100%;box-sizing:border-box}.op-finish-form .op-finish-check{display:flex;gap:12px;align-items:center}.op-finish-form input[type=checkbox]{width:19px;height:19px;flex:none;margin:0}.op-finish-form>.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.op-finish-alert{padding:12px;background:#fff1f4;border-radius:10px;color:#9b2451}.op-finish-filters{display:flex;gap:18px;align-items:end;flex-wrap:wrap}.op-finish-filters label{display:grid;gap:7px;min-width:180px}.op-sg-status{padding:6px 10px;border-radius:8px;background:#f5edf8;color:#68498b;font-size:13px;white-space:nowrap}.op-sg-status.done{background:#e8f8ee;color:#197047}.op-sg-status.error{background:#fff0f3;color:#a92452}.op-finish-association{font-size:15px;color:#42546b}.crm-catering-estimate{grid-column:1/-1;border:1px solid #eadced;border-left:3px solid var(--crm-accent,#eb008b);padding:16px;border-radius:14px;background:#fcf6fa}.crm-catering-estimate p{margin:6px 0;color:#465b77;font-size:15px}.crm-catering-estimate output{display:block;font-size:20px;color:var(--crm-accent,#eb008b);font-weight:600;margin-bottom:8px}.crm-catering-estimate button{margin-top:8px}.crm-catering-estimate input[type=range]{width:100%;accent-color:var(--crm-accent,#eb008b)}.crm-catering-estimate .op-meal-slider{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:14px;align-items:center}.op-meal-slider strong{color:var(--crm-accent,#eb008b)}.crm-catering-estimate .small{font-size:13px}@media(max-width:700px){.op-finish-counts{grid-template-columns:1fr}.op-course-results{padding:16px}.op-finish-head .actions{width:100%}.op-finish-head .actions>*{flex:1}.op-finish-table table{min-width:660px}.op-finish-filters>*{width:100%}.op-finish-form .form-grid{grid-template-columns:1fr}}

.op-signage-upload{display:flex;align-items:end;gap:14px;flex-wrap:wrap;background:#f7f7fc;padding:16px;border-radius:12px;margin-top:18px}.op-signage-upload label{display:grid;gap:7px}.op-signage-upload input[type=file]{font:inherit;width:100%;max-width:400px}.op-signage-upload [role=alert]{margin:0;color:#a92452}
.op-finish-table table{min-width:860px;table-layout:auto!important}.op-finish-table th{white-space:nowrap;word-break:normal;overflow-wrap:normal}.op-finish-table td{word-break:normal;overflow-wrap:normal}.op-finish-table button,.op-finish-table td:nth-child(1),.op-finish-table td:nth-child(2),.op-finish-table td:nth-child(4){white-space:nowrap}

.op-race-state{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 20px;padding:18px 20px;border:1px solid #cce9df;border-left:4px solid #329a7b;border-radius:16px;background:#f1fbf6;color:#264f44}.op-race-state h3{margin:0 0 7px;font-size:18px}.op-race-state p{margin:0 0 6px;font-size:14px;line-height:1.55}.op-race-state small{font-size:12px}.op-race-state[data-state=cancelled]{background:#fff2f6;border-color:#efc9d7;border-left-color:#e93d75;color:#8b2d4c}.op-race-state[data-state=postponed]{background:#f2f6ff;border-color:#d0dff5;border-left-color:#4f86d5;color:#385778}.op-race-state button{flex:none;white-space:nowrap;display:flex;align-items:center;gap:10px}.op-race-state button svg{width:19px;height:19px}.op-race-options{display:grid;gap:12px}.op-race-options label{display:flex!important;align-items:flex-start;gap:13px;padding:15px;border:1px solid #dfe4ef;border-radius:12px;cursor:pointer}.op-race-options label:has(:checked){background:#fff1f8;border-color:var(--crm-accent,#eb008b)}.op-race-options input{width:20px!important;height:20px!important;flex:none;accent-color:var(--crm-accent,#eb008b);margin:2px 0}.op-race-options strong{font-size:15px}.op-race-options small{display:block;font-size:13px;line-height:1.5;margin-top:5px;color:#53647d}@media(max-width:620px){.op-race-state{align-items:flex-start;flex-direction:column}}

/* The course state shares the existing title bar instead of a separate large panel. */
#content #course-idef>.crm-course-heading{margin-bottom:10px;gap:14px;min-height:76px!important;padding:16px 20px!important}
#content #course-idef>.crm-course-heading h2{margin:0!important;font-size:24px!important;line-height:1.2!important}
#content #course-idef>.crm-course-heading>.actions{align-items:center;gap:8px}
#content #course-idef .op-race-state-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:36px!important;padding:7px 11px!important;border:1px solid #bfe3d4!important;border-radius:9px!important;background:#edf9f2!important;color:#247055!important;font-size:13px!important;line-height:1.25!important;font-weight:600!important;white-space:nowrap!important}
#content #course-idef .op-race-state-button>svg{width:17px;height:17px;flex:0 0 17px;margin:0}
#content #course-idef .op-race-state-button[data-state=cancelled]{background:#fff1f5!important;border-color:#edbfd0!important;color:#a72c50!important}
#content #course-idef .op-race-state-button[data-state=postponed]{background:#eef4ff!important;border-color:#c4d6f0!important;color:#356399!important}
#content #course-idef>.op-race-summary{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.5;color:#63738b;margin:0 3px 16px;padding:0;border:0;background:none}
#content #course-idef>.op-race-summary>svg{width:17px;height:17px;flex:0 0 17px;margin-top:1px;color:#8e739c}
#content #course-idef>.op-race-summary strong{font-weight:600}
#content #course-idef>.op-race-summary[data-state=cancelled],#content #course-idef>.op-race-summary[data-state=postponed]{padding:9px 12px;border-radius:9px;background:#fff3f7;color:#8e3754}
#content #course-idef>.op-race-summary[data-state=postponed]{background:#f1f6ff;color:#3b5d88}
@media(max-width:700px){#content #course-idef>.crm-course-heading{flex-wrap:wrap;padding:13px 15px!important;gap:12px}#content #course-idef>.crm-course-heading>div:first-child{min-width:0;flex:1 1 150px}#content #course-idef>.crm-course-heading>.actions{flex:0 1 auto;flex-wrap:wrap}#content #course-idef>.crm-course-heading h2{font-size:22px!important}}
