/* Asset panels: AI-read (document) vs self-reported values. AssetAiCompareToolbar / AssetAiCompareDetail. */

.asd-header-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: normal; font-size: 12.5px; font-weight: 500; }
.asd-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.asd-pill.ok { background: #dcf3e4; color: #1e6b45; }
.asd-pill.bad { background: #fde2e2; color: #b42318; }

.asd-switch { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; padding: 0; cursor: pointer; color: #5f708c; font: inherit; }
.asd-switch-track { width: 32px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; }
.asd-switch-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.asd-switch.on .asd-switch-track { background: var(--dx-primary, #2563eb); }
.asd-switch.on .asd-switch-knob { left: 16px; }

.asd-chev-btn { border: none; background: none; padding: 2px; cursor: pointer; line-height: 0; }
.asd-chev { width: 14px; height: 14px; fill: none; stroke: #7a8aa5; stroke-width: 2; transition: transform .15s; }
.asd-chev.open { transform: rotate(90deg); }
.asd-sub { font-size: 12px; color: #6b7a93; font-weight: 400; }
.asd-muted { color: #8a97ad; font-style: italic; }
.asd-num { text-align: right; white-space: nowrap; }

table.asd-compare { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid #e5eaf3; border-radius: 6px; }
table.asd-compare { table-layout: fixed; }
table.asd-compare thead th { background: #eef2fb; font-size: 11px; color: #5f708c; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding: 7px 10px; border-bottom: 1px solid #e5eaf3; text-align: left; }
table.asd-compare tbody td { padding: 7px 10px; border-top: none; border-bottom: 1px solid #eef2f7; font-size: 13px; color: #28344d; font-weight: 400; vertical-align: middle; text-align: left; }
/* Header and value share one grid and one alignment: every column left, Status centred. */
table.asd-compare col.asd-col-field, table.asd-compare col.asd-col-val { width: 30%; }
table.asd-compare col.asd-col-status { width: 10%; }
table.asd-compare > thead > tr > th.asd-col-field, table.asd-compare > tbody > tr > td.asd-col-field,
table.asd-compare > thead > tr > th.asd-col-val, table.asd-compare > tbody > tr > td.asd-col-val { text-align: left; padding-left: 10px; padding-right: 10px; overflow-wrap: anywhere; }
table.asd-compare > tbody > tr > td.asd-col-field { font-weight: 600; }
table.asd-compare > thead > tr > th.asd-col-status, table.asd-compare > tbody > tr > td.asd-col-status { text-align: center; }
table.asd-compare tr.bad td { background: #fdecec; }
.asd-status { width: 16px; height: 16px; fill: none; stroke-width: 2.5; vertical-align: middle; }
.asd-status.ok { stroke: #1e6b45; }
.asd-status.bad { stroke: #b42318; }

.asd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 4px 2px; }
.asd-chips-label { font-size: 11px; color: #5f708c; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-right: 4px; }
.asd-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 6px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
.asd-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.asd-chip.ok { background: #dcf3e4; color: #1e6b45; }
.asd-chip.bad { background: #fde2e2; color: #b42318; }
.asd-chip.selected { border-color: currentColor; }
.asd-chip-panel { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 4px 2px; padding: 6px 12px; border-radius: 6px; font-size: 12.5px; }
.asd-chip-panel.ok { background: #f0faf4; }
.asd-chip-panel.bad { background: #fdf2f2; }

.asd-detail-row > td { background: #f7f9fc; padding: 8px 12px 10px 40px; }
