.cqs-workbench { min-height: 680px; height: calc(100vh - 278px); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; color: #17324d; }
.cqs-layout { min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 10px; }
.cqs-form-panel, .cqs-table-panel { min-height: 0; border: 1px solid #cfdbea; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(41, 72, 107, .06); }
.cqs-scroll { height: 100%; overflow: auto; box-sizing: border-box; padding: 14px; }
.cqs-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cqs-workbench h3 { margin: 0; font-size: 16px; color: #183b5b; }
.cqs-form-panel label { display: grid; gap: 5px; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #526b83; }
.cqs-form-panel input, .cqs-form-panel select, .cqs-form-panel textarea { width: 100%; box-sizing: border-box; border: 1px solid #b9c9db; border-radius: 5px; padding: 8px 9px; font: inherit; color: #17324d; background: #fff; }
.cqs-form-panel textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.cqs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cqs-actions button, .cqs-link { border: 1px solid transparent; border-radius: 5px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.cqs-primary { color: #fff; background: #1769aa; border-color: #1769aa !important; }
.cqs-success { color: #fff; background: #23845b; border-color: #23845b !important; }
.cqs-link { padding: 5px 9px; color: #1769aa; background: #edf6fd; border-color: #b8d5ec; }
.cqs-actions button:disabled, .cqs-link:disabled { opacity: .5; cursor: not-allowed; }
.cqs-table-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 14px; box-sizing: border-box; }
.cqs-table-panel h3 { margin-bottom: 8px; }
.cqs-table-scroll { min-height: 0; overflow: auto; border: 1px solid #d8e1eb; }
.cqs-table-panel table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 13px; }
.cqs-table-panel th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; text-align: left; white-space: nowrap; color: #38556f; background: #edf3f8; border-bottom: 1px solid #ccd9e6; }
.cqs-table-panel td { padding: 9px 10px; border-bottom: 1px solid #e5ebf1; vertical-align: top; }
.cqs-table-panel tbody tr { cursor: pointer; }
.cqs-table-panel tbody tr:hover, .cqs-table-panel tbody tr.selected { background: #eaf5ff; }
.cqs-title-cell { min-width: 240px; white-space: normal; }
.cqs-empty { text-align: center; color: #778a9d; padding: 28px !important; }
.cqs-status, .cqs-error { border: 1px solid #c8d8e8; border-radius: 6px; padding: 9px 12px; background: #f4f8fb; font-size: 13px; }
.cqs-error { display: grid; gap: 3px; margin-bottom: 8px; color: #9f2929; border-color: #f0b9b9; background: #fff4f4; }
@media (max-width: 1050px) { .cqs-workbench { height: auto; } .cqs-layout { grid-template-columns: 1fr; } .cqs-form-panel { max-height: none; } .cqs-table-panel { min-height: 520px; } }
