.crm-ops-workflow { margin: 14px 0; padding: 16px; border: 1px solid var(--crm-line, var(--border)); border-radius: 12px; background: var(--crm-surface, var(--bg-soft)); color: var(--text); }
.crm-ops-workflow h3, .crm-ops-workflow h4 { margin: 0 0 10px; font-size: 12px; }
.crm-ops-workflow section + section { margin-top: 18px; }
.crm-ops-help, .crm-ops-empty { color: var(--text3); font-size: 11px; }
.crm-ops-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.crm-ops-workflow button, .crm-ops-dialog button { border: 1px solid var(--crm-line, var(--border)); border-radius: 7px; padding: 7px 10px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; }
.crm-ops-workflow button:disabled, .crm-ops-dialog button:disabled { cursor: not-allowed; opacity: .6; }
.crm-ops-workflow [type="submit"], .crm-ops-dialog [type="submit"] { background: var(--accent); color: #102018; font-weight: 700; }
.crm-ops-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.crm-ops-field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; margin-bottom: 10px; }
.crm-ops-field input, .crm-ops-field select, .crm-ops-field textarea { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--crm-line, var(--border)); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; }
.crm-ops-field textarea { min-height: 70px; resize: vertical; }
.crm-ops-inline { display: flex; gap: 7px; align-items: center; font-size: 11px; }
.crm-ops-tag { display: inline-block; border-radius: 999px; padding: 3px 7px; font-size: 10px; background: rgba(245,158,11,.1); color: var(--text2); }
.crm-ops-tag.is-complete { background: rgba(34,197,94,.14); color: #22c55e; }
.crm-ops-record { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--crm-line, var(--border)); border-radius: 8px; padding: 10px; margin-bottom: 7px; font-size: 11px; }
.crm-ops-record p { flex: 1 0 100%; margin: 0; color: var(--text2); }
.crm-ops-contact-link { color: var(--accent) !important; text-decoration: underline; }
.crm-ops-readonly > summary { grid-template-columns: 38px minmax(0, 1fr) auto auto; }
.crm-ops-readonly > summary .crm-layout-chevron { grid-column: 4; grid-row: 1; }
.crm-ops-readonly-label { grid-column: 3; grid-row: 1; white-space: nowrap; font-size: 9px; padding: 3px 6px; border: 1px solid var(--crm-line, var(--border)); border-radius: 999px; color: var(--text3); }
.crm-ops-readonly input:disabled, .crm-ops-readonly select:disabled, .crm-ops-readonly textarea:disabled { color: var(--text2); -webkit-text-fill-color: var(--text2); opacity: 1; }
.crm-ops-form-error { color: #ef4444; font-size: 11px; }
.crm-ops-overlay { position: fixed; inset: 0; z-index: 130000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); }
.crm-ops-dialog { width: min(700px, 100%); max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--bg-soft); color: var(--text); }
.crm-ops-dialog header, .crm-ops-dialog footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 16px; }
.crm-ops-dialog footer { justify-content: flex-end; margin: 14px 0 0; }
.crm-ops-expense-row, .crm-ops-document-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; }
.crm-ops-expense-row { grid-column: 1/-1; }
.crm-ops-expense-row .crm-ops-field { flex: 1 0 100px; }
.crm-ops-document-row .crm-ops-field { flex: 1; }
[data-expense-items] { grid-column: 1/-1; }
@media (max-width: 560px) { .crm-ops-workflow { padding: 12px; } .crm-ops-overlay { padding: 8px; } .crm-ops-form-grid { grid-template-columns: 1fr; } }

.crm-ops-commercial-return { border-left: 3px solid #ef4444; padding: 10px; background: rgba(239,68,68,.08); }
.crm-ops-planning-warning { color: #f59e0b; font-size: 11px; }

.crm-ops-commercial-return.is-resolved { border-left-color: #22c55e; background: rgba(34,197,94,.07); }

.crm-ops-technician-picker { min-width: 0; }

.crm-automation-alert[hidden] { display: none; }

.crm-ops-saved-records { display:grid; gap:12px; margin-top:12px; }
.crm-ops-record-body { padding:14px; }
.crm-ops-record-body .crm-ops-record:last-child { margin-bottom:0; }
.crm-ops-record-body button { border:1px solid var(--crm-line,var(--border)); border-radius:7px; background:var(--bg-soft); color:var(--text); padding:7px 10px; font:inherit; cursor:pointer; }
.crm-ops-control-explanation,.crm-ops-span,.crm-ops-schedule-period { grid-column:1/-1; }
.crm-ops-dialog .crm-ops-help,.crm-ops-dialog .crm-ops-control-explanation { color:var(--text2,#aeb5ac); line-height:1.5; }
.crm-ops-schedule-period { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.crm-ops-date-row { display:flex; gap:8px; margin:8px 0; }
.crm-ops-date-row input { flex:1; min-width:0; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:7px; padding:8px; }
.crm-ops-form [hidden] { display:none !important; }
@media(max-width:560px) { .crm-ops-schedule-period { grid-template-columns:1fr; } }

.crm-ops-inline-options > .crm-ops-action-option { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:10px 12px; }
.crm-ops-action-option strong { font-size:11px; line-height:1.4; }
.crm-ops-action-option small { color:var(--text3); font-size:10px; line-height:1.4; font-weight:400; }
.crm-ops-dialog-eyebrow { display:block; margin-bottom:5px; color:var(--accent); font-size:9px; font-weight:700; letter-spacing:.09em; }
.crm-ops-dialog header strong { display:block; font-size:16px; }
.crm-ops-dialog header .crm-ops-help { margin:6px 0 0; }
.crm-ops-coverage-toggle { padding:12px; border:1px solid var(--crm-line,var(--border)); border-radius:8px; background:var(--crm-modal-field,var(--bg)); }
.crm-ops-coverage-toggle input { accent-color:var(--accent); }
.crm-ops-absence-backfill { min-width:0; margin:0 0 10px; padding:14px; border:1px solid var(--crm-line,var(--border)); border-radius:10px; }
.crm-ops-absence-backfill legend { padding:0 6px; color:var(--accent); font-size:11px; font-weight:700; }
