/* Replacement planning. Uses the variables and components of style.css. */

.lc-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lc-tiles .tile { min-width: 0; }
.lc-tiles .tile.bad .chip { background: var(--bad-soft); color: var(--bad); }
.lc-tiles .tile.bad.hot .value { color: var(--bad); }
.lc-tiles button.tile.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lc-tiles .tile .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lc-orgsearch { max-width: 320px; }
.dtools .lc-orgsearch input { width: 100%; padding-left: 34px; }
.lc-orgtable tbody tr { cursor: pointer; }
.lc-orgtable tbody tr:hover { background: var(--panel-2); }
.lc-orgtable tbody tr:last-child td { border-bottom: 0; }
.lc-orgtable .pill { min-width: 26px; justify-content: center; }
a.lc-link { color: var(--text); text-decoration: none; font-weight: 650; }
a.lc-link:hover { color: var(--accent); text-decoration: underline; }

.lc-crumbs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 550; }
.lc-back:hover { color: var(--text); }
.lc-crumbs select { max-width: 100%; font-weight: 600; }

.lc-group { margin-bottom: 16px; }
.lc-group .panel-head .note { max-width: 60%; }
.lc-row { display: grid; grid-template-columns: minmax(210px, 1.15fr) minmax(240px, 2fr) minmax(150px, .8fr) minmax(190px, auto); gap: 18px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lc-row:last-child { border-bottom: 0; }
.lc-who { align-items: flex-start; min-width: 0; }
.lc-who > div { min-width: 0; }
.lc-who .name { overflow-wrap: anywhere; }
.lc-spec { overflow-wrap: anywhere; }

.lc-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lc-reasons li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 13.5px; line-height: 1.45; }
.lc-reasons i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--off); }
.lc-reasons .hard i { background: var(--bad); }
.lc-reasons .soft i { background: var(--warn); }
.lc-reasons .unknown { color: var(--muted); }
.lc-reasons .unknown i { background: none; border: 1.5px solid var(--off); }
.lc-reasons .note i { background: var(--accent); }
.lc-nothing { font-size: 13.5px; }

.lc-dates { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 13.5px; }
.lc-dates dt { color: var(--muted); }
.lc-dates dd { margin: 0; }
.lc-dates dd.bad { color: var(--bad); }
.lc-dates .sub { display: block; font-size: 12.5px; color: var(--muted); }

.lc-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.lc-actions button { justify-content: flex-start; white-space: nowrap; }
.lc-count { margin: 4px 2px 0; }
.lc-help { font-weight: 400; }

/* the card in a device's Hardware section */
.lc-standing { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lc-standing a { font-size: 13px; }
.lc-buy { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lc-buy label { flex: 0 1 190px; }
.lc-buy input { width: 100%; }
.lc-w11 { margin: 0 0 10px; }
.lc-checks dt { display: flex; align-items: center; gap: 8px; }
.lc-mark { width: 9px; height: 9px; border-radius: 50%; flex: none; background: none; border: 1.5px solid var(--off); }
.lc-mark.ok { background: var(--ok); border-color: var(--ok); }
.lc-mark.fail { background: var(--bad); border-color: var(--bad); }
.lc-rule { margin-top: 12px; }

.lc-print { display: none; }

@media (max-width: 1280px) {
  .lc-row { grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.6fr) minmax(150px, .7fr); }
  .lc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1100px) { .lc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .lc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lc-tiles .tile { padding: 12px; gap: 10px; }
  .lc-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .lc-group .panel-head { flex-wrap: wrap; }
  .lc-group .panel-head .note { max-width: none; margin-left: 0; text-align: left; flex-basis: 100%; }
  .lc-orgtable th:nth-child(n+4):not(:last-child), .lc-orgtable td:nth-child(n+4):not(:last-child) { display: none; }
  .lc-orgtable th, .lc-orgtable td { padding-left: 8px; padding-right: 8px; white-space: normal; }
  .lc-crumbs select { width: 100%; }
}

/* The printed plan: only the plain list, dark on white, whatever theme the console is in. */
@media print {
  html:has(#lc-print:not(:empty)), html:has(#lc-print:not(:empty)) body { background: #fff !important; height: auto; }
  body:has(#lc-print:not(:empty)) .app { display: block; min-height: 0; }
  body:has(#lc-print:not(:empty)) :is(.rail, .pagehead, #agent-banner, .lc-screen, dialog, .ad-toasts) { display: none !important; }
  body:has(#lc-print:not(:empty)) .main { padding: 0; }
  #lc-print:not(:empty) { display: block; color: #111; font-size: 11pt; line-height: 1.4; }
  .lc-print * { color: #111 !important; }
  .lc-print header { display: flex; align-items: center; gap: 18px; padding-bottom: 10pt; border-bottom: 1.5pt solid #1695e8; }
  .lc-print header img { height: 44pt; width: auto; }
  .lc-print h1 { font-size: 18pt; margin: 0; }
  .lc-print header p { margin: 2pt 0 0; font-size: 10pt; color: #444 !important; }
  .lc-print-sum { margin: 12pt 0 4pt; font-weight: 600; }
  .lc-print h2 { font-size: 13pt; margin: 16pt 0 2pt; break-after: avoid; }
  .lc-print-lead { margin: 0 0 6pt; color: #444 !important; font-size: 10pt; }
  .lc-print table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .lc-print th:nth-child(1) { width: 29%; } .lc-print th:nth-child(2) { width: 14%; } .lc-print th:nth-child(3) { width: 9%; } .lc-print th:nth-child(4) { width: 15%; }
  .lc-print th, .lc-print td { white-space: normal; text-align: left; vertical-align: top; padding: 5pt 6pt; border-bottom: .5pt solid #bbb; font-size: 10pt; }
  .lc-print th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; color: #444 !important; border-bottom: 1pt solid #444; }
  .lc-print td div { font-size: 9pt; color: #444 !important; }
  .lc-print tr { break-inside: avoid; }
  .lc-print td ul { margin: 0; padding-left: 12pt; }
  .lc-print-foot { margin-top: 16pt; padding-top: 8pt; border-top: .5pt solid #bbb; font-size: 9pt; color: #444 !important; }
}
