/* RoleGear: styles that exist only in this tool. Shared look: ../../shared/css/style.css */

/* Page shell: a one-screen cockpit on desktop; stacked and scrolling below 1024px. */

html, body { min-height: 100%; }

.app-shell { min-height: 100vh; min-height: 100dvh; }

@media (min-width: 1024px) {
  html, body { height: 100%; overflow: hidden; }

  .app-shell { height: 100vh; height: 100dvh; }
}

/* Role rules (left, section 3) */

.rule-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 7px 10px; }
.rule-card.is-base { background: #eef2ff; border-color: #c7d2fe; }
.rule-meta { font-size: 8.5pt; color: #64748b; line-height: 1.35; margin-top: 1px; overflow-wrap: anywhere; }

/* By hire / Order list switch (same as DiePack's IN / MM switch) */

.view-btn { color: #475569; }

.view-btn:hover { color: #0f172a; }

.view-btn.is-active { background: #4f46e5; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }

/* New hires (same card, buttons and pills as HostCheck's rooms and tasks) */

.q-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.q-card.is-unmatched { border-color: #fecdd3; }

.q-num {
  flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 9pt; font-weight: 700; color: #fff; background: #4f46e5;
}

.prio { font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.prio-standard { background: #f1f5f9; color: #475569; }
.prio-detail { background: #ede9fe; color: #6d28d9; }
.prio-missing { background: #ffe4e6; color: #be123c; }
button.prio:hover { box-shadow: 0 0 0 1px currentColor; }

.kit-progress { flex-shrink: 0; font-size: 8.5pt; font-weight: 700; color: #94a3b8; }

.kit-row { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; border-top: 1px dashed #e2e8f0; }
.kit-label { flex-shrink: 0; width: 92px; padding-top: 4px; font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.kit-items { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.kit-item-wrap { display: flex; align-items: center; }

.kit-item {
  display: inline-flex; align-items: center; gap: 6px; text-align: left;
  padding: 3px 8px 3px 4px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: 9.5pt; color: #1e293b; transition: border-color 0.15s, background 0.15s;
}
.kit-item:hover { border-color: #c7d2fe; background: #eef2ff; }

.kit-box {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center;
  font-size: 8pt; font-weight: 700; color: #fff; background: #fff; border: 1px solid #cbd5e1;
}
.kit-item.is-done { border-color: #6ee7b7; background: #f0fdf4; color: #64748b; text-decoration: line-through; }
.kit-item.is-done .kit-box { background: #10b981; border-color: #10b981; }

.task-btn { color: #94a3b8; font-size: 11pt; line-height: 1; padding: 1px 3px; }
.task-btn:hover { color: #4f46e5; }
.task-btn:disabled { opacity: 0.35; cursor: default; color: #94a3b8; }

.add-task { margin-top: 2px; align-self: flex-start; font-size: 9pt; font-weight: 600; color: #4f46e5; }
.add-task:hover { color: #312e81; text-decoration: underline; }

/* No rule yet: ask the AI */

.ai-banner {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: 9.5pt; line-height: 1.4;
}

/* Order list */

.seat-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.seat-table th { text-align: left; font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; padding: 0 6px 4px; border-bottom: 1px solid #e2e8f0; }
.seat-table td { padding: 5px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.seat-table tr:last-child td { border-bottom: 0; }
.seat-table .num { text-align: right; width: 64px; }

@media (max-width: 639px) {
  .kit-row { flex-direction: column; gap: 2px; }
  .kit-label { width: auto; padding-top: 0; }
}

/* Export window: the file type badge */

.format-ext {
  flex-shrink: 0; width: 2.25rem; height: 2rem; margin-top: 2px; border-radius: 0.5rem;
  display: grid; place-items: center; background: #e0e7ff; color: #4338ca;
  font-size: 7.5pt; font-weight: 700; text-transform: uppercase;
}

/* Print / PDF: the checklist per hire, or the order list. */

.print-only { display: none; }

@media print {
  @page { margin: 12mm; size: letter portrait; }

  html, body, main, main > section, main section > div, #blueprintList {
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; position: static !important; display: block !important;
    background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
  }
  #toolHeader, #outputLockOverlay, #exampleBadge, #countText, #blueprintSubtitle, .task-btn, .add-task, .no-print { display: none !important; }

  .print-only { display: block !important; white-space: pre-wrap; font-size: 11pt; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
  .q-card { break-inside: avoid; border: 1px solid #cbd5e1 !important; margin-bottom: 8px; padding: 8px 10px !important; }
  .q-card header { display: flex !important; }
  .kit-row { display: flex !important; }
  .kit-items { display: flex !important; }
  .kit-item { border: 0 !important; background: transparent !important; text-decoration: none !important; color: #0f172a !important; }
  .kit-box { color: #0f172a !important; background: #fff !important; border-color: #475569 !important; }
}

#formatList { max-height: 60vh; }
