/* equipment.css — Tools & Equipment checkout module styles.
   Minimal; reuses the frame's design tokens (module-template idiom). */

/* light design-system canvas (same as #frame-estimating in shell-frame.css) —
   without it the dark body shows through and the page title goes dark-on-dark */
#frame-equipment { background: var(--bg, #f7f8fa); }

.eq-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-dim { color: var(--text-muted); }
.eq-row { cursor: pointer; }
.eq-row:hover td { background: var(--gold-soft); }

.eq-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.eq-toolbar input[type="search"] { flex: 1; min-width: 160px; height: var(--h-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; background: var(--surface); color: var(--text); }
.eq-toolbar select { height: var(--h-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 8px; font-size: 13px; background: var(--surface); color: var(--text); }

.eq-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .eq-meta { grid-template-columns: 1fr; } }
.eq-field { display: flex; flex-direction: column; gap: 4px; }
.eq-field span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.eq-field input, .eq-field select, .eq-field textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; background: var(--surface); color: var(--text); }
.eq-field input, .eq-field select { height: var(--h-input); }
.eq-field textarea { padding: 8px 10px; min-height: 56px; resize: vertical; font-family: inherit; }
.eq-field input:focus, .eq-field select:focus, .eq-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.eq-field input:disabled, .eq-field select:disabled, .eq-field textarea:disabled { background: var(--surface-2); color: var(--text-muted); }

.eq-badge--out { background: #fdf1e2; color: #9a5b13; }
.eq-badge--available { background: #e8f5ec; color: #1f7a3d; }
.eq-badge--retired, .eq-badge--lost { background: var(--surface-2); color: var(--text-muted); }

.eq-actioncard { padding: 14px 18px; margin-bottom: 14px; }
.eq-actioncard h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }

.eq-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; margin-top: 14px; font-size: 16px; }
.eq-total span { color: var(--text-muted); }
.eq-total b { font-size: 18px; }

.eq-cat-row td { vertical-align: middle; }
.eq-del { width: 26px; height: 26px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--danger-2); font-size: 16px; line-height: 1; cursor: pointer; }
.eq-del:hover { background: #fdecec; border-color: #f0c9c9; }

/* Separation report — printable. Print button adds .eq-printing to <body>;
   then only the report block prints. */
.eq-report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 26px; }
.eq-report h2 { margin: 0 0 2px; }
.eq-report .eq-rephead { color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }
.eq-report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eq-report th, .eq-report td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.eq-report .eq-sign { margin-top: 28px; font-size: 13px; }
.eq-report .eq-signline { display: inline-block; min-width: 260px; border-bottom: 1px solid var(--text); margin: 22px 24px 0 0; }
@media print {
  body.eq-printing > *:not(#frame-equipment) { display: none !important; }
  body.eq-printing #frame-equipment > *:not(#equipment-root) { display: none !important; }
  body.eq-printing #equipment-root > *:not(.eq-report) { display: none !important; }
  body.eq-printing .eq-report { border: none; padding: 0; }
  body.eq-printing .eq-noprint { display: none !important; }
}
