/* EKOS ID synthetic activation. Existing Compass components and palette. */
.id-panel { margin: 0 0 24px; padding: 20px; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 12px; background: var(--ekos-surface, #fff); color: var(--ekos-text, #20313B); }
.id-panel h3 { margin: 0; font-size: 18px; }
.id-heading, .id-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.id-heading { justify-content: space-between; margin-bottom: 16px; }
.id-muted { color: var(--ekos-text-secondary, #52636C); font-size: 14px; line-height: 1.5; }
.id-panel p { margin: 8px 0 16px; }
.id-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.id-form label, .id-field { display: grid; gap: 6px; font-size: var(--ekos-type-body, 16px); font-weight: 400; }
.id-form input:not([type=checkbox]), .id-form select, .id-link { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 8px; font: inherit; background: var(--ekos-surface, #fff); color: inherit; }
.id-wide { grid-column: 1 / -1; }
.id-locations { display: flex; gap: 12px; flex-wrap: wrap; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 8px; padding: 8px 12px; margin: 0; }
.id-locations legend { padding: 0 4px; font-size: var(--ekos-type-body, 16px); font-weight: 600; }
.id-locations label { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.id-button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 8px; background: var(--ekos-hover, #EFF3F3); color: var(--ekos-text, #20313B); font: inherit; font-weight: 600; cursor: pointer; word-break: normal; overflow-wrap: normal; }
.id-button.primary { background: var(--ekos-accent, #5A7D7D); color: white; border-color: transparent; }
.id-button.danger { color: var(--ekos-negative-text, #B13E38); }
.id-button:disabled { opacity: .55; cursor: wait; }
.id-button:focus-visible, .id-panel :is(input,select,a):focus-visible { outline: 3px solid var(--ekos-focus-ring, #1D6E73); outline-offset: 3px; }
.id-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1fr) 32px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ekos-border, #DCE4E6); }
.id-row-name { overflow-wrap: anywhere; }
.id-row > .id-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.ekos #content .id-row .id-button { min-height: 44px; padding: 8px 12px; font-size: var(--ekos-type-body, 16px); line-height: 1.5; }
.id-more { position: relative; flex: 0 0 auto; }
.id-more summary { display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 6px; cursor: pointer; list-style: none; font-size: 24px; background: #fff; }
.id-more summary::-webkit-details-marker { display: none; }
.id-more summary:focus-visible { outline: 3px solid var(--ekos-focus-ring, #1D6E73); outline-offset: 2px; }
.id-more-list { position: fixed; z-index: 20; width: 220px; max-height: calc(100dvh - 16px); overflow-y: auto; box-sizing: border-box; padding: 4px; background: #fff; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 8px; box-shadow: 0 6px 20px rgb(32 49 59 / .14); }
.id-more-list .id-button { display: block; width: 100%; text-align: left; border: 0; border-radius: 4px; background: transparent; }
.id-more-list .id-button.primary { color: var(--ekos-text, #20313B); }
.id-more-list .id-button:hover { background: var(--ekos-hover, #EFF3F3); }
.id-more-up .id-more-list { top: auto; bottom: calc(100% + 4px); }
.ekos #content .id-unified-table { overflow: visible; }
.id-unified-table tr.id-row { display: table-row; }
.id-unified-table .id-actions { justify-content: flex-end; }
.ekos #content .id-unified-table th:nth-child(1) { width: 34%; }
.ekos #content .id-unified-table th:nth-child(2) { width: 24%; }
.ekos #content .id-unified-table th:nth-child(3) { width: 12%; }
.ekos #content .id-unified-table th:nth-child(4) { width: auto; }
.ekos #content .id-unified-table th:nth-child(5) { width: 76px; }
.id-training-state { margin-top: 4px; font-size: 13px; }
@media (max-width: 767px) { .ekos #content .id-unified-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 44px; } .ekos #content .id-unified-table td:last-child { grid-row: 1 / 5; align-self: start; } }
.id-status { display: inline-block; font-size: 14px; color: var(--ekos-text-secondary, #52636C); }
.id-status.active { color: var(--ekos-positive-text, #246B51); }
.id-status.revoked { color: var(--ekos-negative-text, #B13E38); }
.id-error { color: var(--ekos-negative-text, #B13E38); line-height: 1.5; }
.id-history { padding-left: 20px; }
.id-history li { padding: 8px 0; overflow-wrap: anywhere; }
.id-dialog { width: min(560px, calc(100vw - 32px)); box-sizing: border-box; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--ekos-border, #DCE4E6); border-radius: 12px; color: var(--ekos-text, #20313B); }
.id-dialog::backdrop { background: rgb(32 49 59 / .42); }
.id-dialog h2 { margin: 0 0 12px; font-size: var(--ekos-type-section, 18px); font-weight: 600; }
.id-qr { display: grid; justify-items: center; padding: 16px 0; }
.id-qr svg { width: 224px; height: 224px; max-width: 100%; }
.id-entry { max-width: 520px; margin: 56px auto; padding: 0 16px; font-family: Inter, system-ui, sans-serif; }
.id-entry h1 { font-size: 26px; margin: 0 0 12px; }
.id-test-label { display: block; padding: 10px 12px; border-left: 3px solid var(--ekos-accent, #5A7D7D); background: var(--ekos-hover, #EFF3F3); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
@media (max-width: 1100px) { .id-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .id-row > .id-actions { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 767px) { .id-form { grid-template-columns: 1fr; } .id-row { grid-template-columns: 1fr; gap: 8px; } .id-panel { padding: 16px; } .id-actions .id-button { flex: 1 1 140px; min-width: 132px; } .ekos #content .id-row .id-button { min-height: 44px; padding: 8px 12px; font-size: 14px; } .id-more summary { width: 44px; height: 44px; } .id-entry { margin: 24px auto; } }

@media (min-width: 768px) {
 .ekos #content .id-unified-table table { table-layout: fixed; width: 100%; }
 .ekos #content .id-unified-table :is(th,td):nth-child(2), .ekos #content .id-unified-table :is(th,td):nth-child(3) { display: table-cell; }
 .ekos #content .id-unified-table .sg-bar-value { white-space: nowrap; }
 .ekos #content .id-unified-table .sg-bar-track { width: 48px; }
}
@media (max-width: 767px) {
 .ekos #content .id-unified-table td:nth-child(2) { display: block; grid-column: 1; }
}
