/* Schedule import preview (import.js), plant matching (plantmatch.js) and Nursery Quotes (quotes.js). */
.modal.pm-wide { width: min(1080px, 100%); }
.modal-back.pm-back { grid-template-columns: minmax(0, 1fr); }   /* so a wide table scrolls inside the window instead of pushing it off a narrow screen */
.pm-scroll { max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pm-tbl th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pm-tbl th, .pm-tbl td { padding: 7px 10px; font-size: 13px; }
.pm-tbl td { vertical-align: top; }
.pm-sel { min-width: 230px; max-width: 340px; padding: 5px 8px; font-size: 13px; }
.pm-off td { opacity: .5; }
.pm-opt { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 8px 0; cursor: pointer; font-size: 13px; }
.pm-opt input { margin-top: 3px; flex: none; }
.pm-cols { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.pm-cols summary { cursor: pointer; }
.pm-link { color: var(--accent); text-decoration: underline; margin-left: 6px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; margin-top: 10px; }
.pm-pick { margin-top: 6px; min-width: 230px; }
.pm-res { display: grid; gap: 4px; margin-top: 6px; }
.pm-hit { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 9px; cursor: pointer; font: inherit; color: inherit; }
.pm-hit:hover, .pm-hit:focus-visible { background: var(--surface-2); }

.qt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qt-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 7px 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.qt-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.qt-chip small { display: block; color: var(--ink-3); }
.qt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; padding: 14px 18px; }
.qt-tile { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.qt-tile b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.qt-tile small { color: var(--ink-3); font-size: 12px; }
.qt-tile.good b { color: var(--good-ink); } .qt-tile.warn b { color: var(--warn-ink); } .qt-tile.bad b { color: var(--bad-ink); }
.qt-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 0 18px 12px; }
.qt-tbl td small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.qt-tbl td.qt-name { min-width: 200px; }
.qt-tbl td.qt-note, .pm-tbl td.qt-note { min-width: 140px; max-width: 280px; font-size: 13px; }
.qt-tbl tr.qt-band td { background: var(--surface-2); font-weight: 600; padding-top: 7px; padding-bottom: 7px; }
.qt-in { width: 96px; padding: 5px 8px; } .qt-in2 { min-width: 150px; padding: 5px 8px; }
.qt-match { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .pm-sel { min-width: 180px; } .qt-tiles { padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .qt-bar { padding: 0 12px 10px; } }

/* Previous / Next in a plant's pop-up when it is opened from a project's Plant Palette (plants.js openPlant) */
.pp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pal-open { cursor: pointer; } .pal-open:hover { text-decoration: underline; }
.pal-card .pc-photo[data-action] { cursor: pointer; }
.pm-diff td { background: var(--surface-2); font-size: 12.5px; padding-top: 6px; }
.pm-difflist .pm-opt { margin: 4px 0; font-size: 12.5px; }

/* the count tiles are buttons that filter the list; quote-only lines can be matched to a schedule plant */
button.qt-tile { border: 1px solid transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.qt-tile:hover, button.qt-tile:focus-visible { border-color: var(--line-2); }
button.qt-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.qt-matchsel { width: auto; max-width: 250px; padding: 4px 8px; font-size: 13px; }
.qt-acts { white-space: nowrap; }
.qt-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.qt-sort:hover, .qt-sort:focus-visible { color: var(--ink); text-decoration: underline; }
th[aria-sort="ascending"] .qt-sort, th[aria-sort="descending"] .qt-sort { color: var(--accent); }

/* Substitute column: each substitute with her decision (approved / rejected / to decide) */
.qt-subs { min-width: 220px; }
.qt-subline { display: grid; gap: 4px; font-size: 13px; margin: 2px 0 8px; } .qt-subline:last-child { margin-bottom: 2px; }
.qt-subline.no span { text-decoration: line-through; color: var(--ink-3); } .qt-subline.yes span { color: var(--good-ink); font-weight: 600; }
.qt-subok { width: auto; max-width: 150px; padding: 3px 8px; font-size: 12.5px; }
