/* The Salesforce mirror panel and the browser over what it holds.
   Both sit inside the settings page, so they inherit .identity-card and the .sf-* table styles. */
.mir-panel{max-width:none}
.mir-summary{margin:18px 0 10px}
.mir-summary>div:last-child{border-right:0}

.mir-schedule{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.mir-schedule .identity-actions{flex-wrap:wrap}
.mir-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:500;margin:0 0 16px;max-width:320px}
.mir-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;font-size:13px;font-weight:500}
.mir-check input{width:auto;margin-top:2px;flex:none}
.mir-check small{display:block;margin-top:5px;font-weight:400;line-height:1.6;color:var(--text-muted)}

.mir-objects{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}
.mir-objects summary{cursor:pointer;font-size:13px;color:var(--text-muted)}
.mir-objects .sf-table-wrap{margin-top:14px;max-height:420px;overflow:auto}
.mir-objects .sf-table td{vertical-align:top}
.mir-objects .sf-table code{font-size:12px}
.mir-off code{color:var(--text-muted)}

/* The browser. A panel rather than a drawer: these are wide tables of arbitrary objects. */
.mir-browser{background:var(--surface);width:min(1100px,100%);height:100%;overflow:auto;padding:24px 26px 40px;display:flex;flex-direction:column;gap:14px}
.mir-browser-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.mir-browser-head h2,.mir-browser-head h3{margin:0 0 4px;font-size:19px;letter-spacing:-.02em}
.mir-browser .sf-table{font-size:12px}
.mir-browser .sf-table td{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mir-browser .sf-table tbody tr{cursor:pointer}
.mir-browser .sf-table tbody tr:hover{background:var(--hover,#f4f6fa)}
.mir-record{border-top:1px solid var(--line);padding-top:16px}
.mir-record .mvp-json{max-height:340px;background:#f7f8fb;border:1px solid var(--line);border-radius:8px;padding:12px}
@media(max-width:900px){.mir-summary{grid-template-columns:repeat(2,1fr)}}
.mir-headactions{margin-top:0;flex:none}
.mir-browser .sf-table tbody tr.mir-picked{background:#eef4ff;box-shadow:inset 3px 0 0 var(--blue)}
.mir-browser .sf-table tbody tr.mir-picked:hover{background:#e6eeff}

/* Searching 1,248 objects by eye is not a thing anyone should be asked to do. Sized to the table
   it filters, and sitting under the chips because it narrows what they selected rather than
   replacing it. */
.mir-search{display:flex;align-items:center;gap:12px;margin:10px 0;flex-wrap:wrap}
.mir-search input{flex:1;min-width:0;max-width:340px;padding:7px 10px;border:1px solid #D8DEE9;border-radius:6px;font-size:13px;background:#fff;color:inherit}
.mir-search input:focus-visible{outline:2px solid #4F63D2;outline-offset:1px;border-color:#4F63D2}

/* A run opens to what it did, object by object. Set apart from the run row so the two do not read
   as one table: the outer table is runs, the inner ones are objects within a run. */
.mir-expand{border:0;background:transparent;cursor:pointer;padding:2px 6px;font-size:12px;color:inherit;line-height:1}
.mir-expand:focus-visible{outline:2px solid #4F63D2;outline-offset:1px;border-radius:4px}
.mir-run-detail>td{background:#F7F9FC;padding:14px 16px}
.mir-run-detail-body h5{margin:14px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#5A6474}
.mir-run-detail-body h5:first-of-type{margin-top:8px}
.mir-outcome{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;background:#E7EBF2;color:#3A4354}
.mir-outcome.mir-unpageable{background:#FFF1D6;color:#7A4F00}
.mir-outcome.mir-timed_out{background:#FFE9E6;color:#8A2A1C}
.mir-outcome.mir-refused{background:#E9E7F7;color:#4A3E8A}
.mir-outcome.mir-failed{background:#FFE9E6;color:#8A2A1C}
/* What this platform spends of Madison's Salesforce allowance (salesforce-usage-v1). Amber once pulls are paused at the floor. */
.mir-usage{display:flex;flex-direction:column;gap:4px;margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:#F7F9FC}
.mir-usage strong{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}
.mir-usage-paused{background:#FFF8E6;border-color:#EBD9A8}
.mir-tier{margin-left:8px;font-size:11px}
