#case-profile-controls, #case-profile-saved-filters { margin: 18px 0 22px; color: var(--text-main); }
.cp-table-scroll { max-width: 100%; overflow-x: auto; }
#case-profile-controls [hidden], .cp-dialog [hidden] { display: none !important; }
.cp-column-filter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cp-column-filter input { font-weight: 400; }
.cp-panel-toggles { margin: 0 0 12px; }
.cp-panel { padding: 16px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.cp-panel .cp-filter-row { margin-bottom: 12px; }
.cp-panel #cp-saved { margin-top: 14px; }
.cp-filter-row { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.cp-advanced { padding: 18px 0 7px; border-top: 1px solid var(--border); }
.cp-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 650; }
.cp-field input, .cp-field select, #cp-note { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #839184; border-radius: 6px; color: var(--text-main); background: #fffefa; font: inherit; }
.cp-field input::placeholder, #cp-note::placeholder { color: #50635a; }
.cp-field input:focus-visible, .cp-field select:focus-visible, #cp-note:focus-visible, .cp-button:focus-visible, .case-profile-eye:focus-visible { outline: 3px solid #855710; outline-offset: 2px; }
.cp-actions, .cp-saved-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.cp-button, .case-profile-eye { background: transparent; border: 1px solid var(--accent-green); color: var(--accent-green); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 650; cursor: pointer; }
.cp-button:hover, .case-profile-eye:hover { background: var(--input-bg); }
.cp-primary { color: #fff; background: var(--accent-green); }
.cp-primary:hover { background: #093e2b; }
.cp-button:disabled { opacity: .55; cursor: not-allowed; }
.case-profile-eye { display: inline-flex; padding: 7px; align-items: center; justify-content: center; }
.cp-check { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; }
.cp-check input { width: auto; min-width: 16px; }
.cp-saved { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 13px; }
.cp-saved h3 { margin: 0 0 10px; font-size: 17px; }
.cp-saved-row { border-bottom: 1px solid var(--border); padding: 9px 0; }
.cp-saved-row > .cp-button:first-child { min-width: 200px; text-align: left; }
.cp-muted { color: #4d6057; font-size: 13px; line-height: 1.5; }
.cp-status { min-height: 1.3em; color: var(--accent-green); font-size: 13px; }
.cp-dialog { box-sizing: border-box; width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0 24px 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-main); box-shadow: 0 22px 60px rgba(6, 21, 16, .3); }
.cp-dialog::backdrop { background: rgba(10, 25, 20, .8); }
.cp-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 0 14px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.cp-dialog-head h2 { margin: 0; color: var(--accent-cyan); font-size: 23px; }
.cp-dialog-head p { margin: 5px 0 0; }
.cp-dialog-body { padding: 4px 0; }
.cp-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cp-section { border-bottom: 1px solid var(--border); padding: 12px 0 18px; }
.cp-section h3 { color: var(--accent-cyan); font-size: 18px; margin: 8px 0 12px; }
.cp-facts { margin: 0; }
.cp-fact { display: grid; grid-template-columns: minmax(135px, 35%) 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #c6cebf; overflow-wrap: anywhere; }
.cp-fact dt { color: #4d6057; font-size: 13px; }
.cp-fact dd { margin: 0; font-weight: 550; }
.cp-section ul { padding-left: 19px; }
.cp-section li { margin: 8px 0; overflow-wrap: anywhere; }
.cp-section a { color: var(--accent-green); text-underline-offset: 3px; }
.cp-financial-scroll { max-width: 100%; overflow-x: auto; }
.cp-financial-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cp-financial-table th, .cp-financial-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.cp-financial-table th:first-child, .cp-financial-table td:first-child { text-align: left; }
.cp-financial-table th { color: var(--accent-cyan); background: var(--input-bg); }
#cp-note { display: block; margin: 10px 0; resize: vertical; }
#cp-drive { margin-left: 8px; }
@media (max-width: 900px) { .cp-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp-people { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 520px) { .cp-filter-row { grid-template-columns: 1fr; } .cp-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); padding: 0 14px 18px; } .cp-dialog-head h2 { font-size: 19px; } .cp-fact { grid-template-columns: 115px 1fr; } .cp-saved-row > .cp-button:first-child { min-width: 0; width: 100%; } #cp-drive { margin: 8px 0 0; } }
.cp-list-detail { display: block; margin-top: .15rem; }

.cp-selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cp-selection-group{border:1px solid #b9ac87;padding:12px 16px;margin:8px 0;min-width:0}.cp-selection-group legend{font-weight:700;color:#102742;padding:0 5px}.cp-selection-group .cp-check{display:flex;gap:8px;align-items:center;margin:9px 0}.cp-selection-group input{width:auto;accent-color:#102742}.cp-selection-group input:focus-visible{outline:2px solid #102742;outline-offset:3px}@media(max-width:760px){.cp-selection-grid{grid-template-columns:1fr}}
