/* Shared styles for the job-shop tools (tools/jobshop/). Built on the site's Bootstrap theme so the
   redesign restyles them with everything else: colours come from Bootstrap variables only. */
.js-grid { font-size: 0.85rem; margin-bottom: 0.5rem; }
.js-grid th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--bs-secondary-color); font-weight: 700; white-space: nowrap; vertical-align: bottom; }
.js-grid td { padding: 0.2rem 0.25rem; vertical-align: middle; }
.js-grid .form-control, .js-grid .form-select { font-size: 0.85rem; padding: 0.2rem 0.4rem; min-width: 4.5rem; }
.js-grid .form-select { padding-right: 1.6rem; }
.js-grid td.js-x { width: 1%; white-space: nowrap; }
.js-grid .js-del { padding: 0.1rem 0.4rem; line-height: 1; }
.js-grid td.js-extra { white-space: nowrap; font-size: 0.8rem; }
.js-grid input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
.js-stat { border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 12px; text-align: center; height: 100%; background: var(--bs-body-bg); }
.js-stat .lbl { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--bs-secondary-color); margin-bottom: 2px; }
.js-stat .val { font-weight: 700; font-size: 1.25rem; }
.js-big { border-radius: 8px; padding: 16px; text-align: center; }
.js-big .val { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.js-chart { width: 100%; height: auto; display: block; }
.js-chart text { font-size: 11px; fill: var(--bs-secondary-color); }
.js-chart .axis { stroke: var(--bs-border-color); }
.js-chart .grid { stroke: var(--bs-border-color-translucent); }
.js-legend { font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.js-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.js-saved { max-height: 260px; overflow-y: auto; }
.js-saved-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--bs-border-color-translucent); font-size: 0.85rem; }
.js-saved-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js-status-pass { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.js-status-fail { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.js-status-open { color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }
.js-status-warn { color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); }
.js-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-weight: 700; font-size: 0.75rem; }
.print-only { display: none; }
/* printable sheets (traveller, FAI) */
.js-sheet { font-size: 0.85rem; }
.js-sheet table { width: 100%; border-collapse: collapse; }
.js-sheet th, .js-sheet td { border: 1px solid var(--bs-border-color); padding: 4px 6px; vertical-align: top; }
.js-sheet th { background: var(--bs-tertiary-bg); font-size: 0.72rem; text-transform: uppercase; }
.js-sheet .sign { min-width: 70px; height: 28px; }
.js-sheet-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 16px; margin-bottom: 10px; }
.js-sheet-head div { border-bottom: 1px solid var(--bs-border-color); padding: 2px 0; }
.js-sheet-head b { font-size: 0.7rem; text-transform: uppercase; color: var(--bs-secondary-color); display: block; }
@media print {
    #sidebar-container, #sidebar, .top-navbar, .no-print, ins.adsbygoogle, .mc-ad, .mc-ad-slot, footer, .mc-footer,
    #related-tools, #tool-guide, .mc-quick, nav[aria-label="breadcrumb"], .mc-copy-wrap, .mc-cookie, .mc-consent { display: none !important; }
    #content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    .dashboard-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    .print-only { display: block !important; }
    .js-sheet { font-size: 10pt; color: #000; }
    .js-sheet th, .js-sheet td { border-color: #666 !important; }
    .js-sheet tr { break-inside: avoid; }
    .js-sheet .table-responsive, .dashboard-content .table-responsive { overflow: visible !important; }
    body { background: #fff !important; }
}
/* Bootstrap columns are flex items (min-width: auto), so a wide table would stretch the column past the
   screen; let them shrink so .table-responsive scrolls inside the card instead. */
.dashboard-content .row > * { min-width: 0; }
.js-sheet .table-responsive { overflow-x: auto; }
/* the visually-hidden header label is position: absolute; keep it inside the scroll box */
.dashboard-content .table-responsive { position: relative; }
