/**
 * PR303 — job_readiness_engine.css
 * Job Readiness Engine styles
 * Brand: #FF6B00 orange, #1A1A2E dark, white surface
 * Follows Fleet-style full-page pattern and existing portal design system
 */

/* ─── Readiness Badge (on PR300 project cards) ──────────────────────────── */
.tr303-card-badge-row {
  margin-top: 8px;
}

.tr-readiness-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.tr-readiness-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.tr-readiness-badge:active { transform: translateY(0); }

.tr-readiness-badge.tr-readiness-sm {
  font-size: 10px;
  padding: 2px 8px 2px 6px;
}

.tr-readiness-off {
  background: #f0f0f0;
  color: #888;
}

.tr-readiness-clean {
  background: #e8f5e9;
  color: #2e7d32;
}
.tr-readiness-warning {
  background: #fff8e1;
  color: #e65100;
}
.tr-readiness-blocker {
  background: #ffebee;
  color: #c62828;
}

.tr-readiness-score {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.tr-readiness-sm .tr-readiness-score { font-size: 11px; }

.tr-readiness-label {
  font-size: 11px;
  font-weight: 600;
}

/* ─── Hub bar (PR300 hub overview section) ──────────────────────────────── */
.tr303-hub-section {
  margin-bottom: 16px;
}

.tr303-activate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.tr303-activate-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tr303-activate-text strong {
  font-size: 14px;
  color: #1A1A2E;
}
.tr303-activate-text span {
  font-size: 12px;
  color: #666;
}

.tr303-activate-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.tr303-activate-btn:hover { background: #e05e00; }

.tr303-hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid;
  flex-wrap: wrap;
}
.tr303-hub-bar-clean  { background: #f0fdf4; border-color: #4caf50; }
.tr303-hub-bar-warning { background: #fffbf0; border-color: #FF6B00; }
.tr303-hub-bar-blocker { background: #fff5f5; border-color: #e53935; }

.tr303-hub-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tr303-hub-score-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.tr303-score-clean   { background: #4caf50; color: #fff; }
.tr303-score-warning { background: #FF6B00; color: #fff; }
.tr303-score-blocker { background: #e53935; color: #fff; }

.tr303-hub-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tr303-hub-bar-text strong { font-size: 14px; color: #1A1A2E; }
.tr303-hub-bar-text span   { font-size: 12px; color: #555; }
.tr303-hub-mob             { font-size: 11px; color: #888; margin-top: 2px; }

.tr303-hub-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tr303-open-btn,
.tr303-dayof-btn {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.tr303-open-btn   { background: #1A1A2E; color: #fff; }
.tr303-open-btn:hover { background: #2d2d4e; }
.tr303-dayof-btn  { background: #f5f5f5; color: #1A1A2E; border: 1px solid #ddd; }
.tr303-dayof-btn:hover { background: #ebebeb; }

/* ─── Full-page panel ───────────────────────────────────────────────────── */
.tr303-panel {
  padding: 0 0 48px 0;
  max-width: 960px;
  margin: 0 auto;
}

.tr303-back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 0;
  font-size: 13px;
  color: #888;
}
.tr303-back-btn {
  background: none;
  border: none;
  color: #FF6B00;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.tr303-back-btn:hover { text-decoration: underline; }
.tr303-back-crumb { color: #888; }

.tr303-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 0;
  flex-wrap: wrap;
}

.tr303-panel-header-left { flex: 1; }
.tr303-panel-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0 0 6px 0;
}
.tr303-panel-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}
.tr303-panel-meta-sep { color: #ccc; }

.tr303-panel-header-right { flex-shrink: 0; }

.tr303-panel-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  min-width: 140px;
  text-align: center;
}
.tr303-panel-score-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.tr303-panel-score-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
  max-width: 140px;
  line-height: 1.3;
}

/* ─── Lily bar ──────────────────────────────────────────────────────────── */
.tr303-lily-bar {
  margin: 14px 20px 0;
  background: #f8f4ff;
  border-left: 4px solid #7c3aed;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #333;
}
.tr303-lily-bar strong { color: #7c3aed; }

/* ─── Stream set toggle ─────────────────────────────────────────────────── */
.tr303-stream-toggle {
  display: flex;
  gap: 0;
  margin: 18px 20px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.tr303-stream-toggle-btn {
  background: #f5f5f5;
  border: none;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: background 0.15s, color 0.15s;
}
.tr303-stream-toggle-btn.active {
  background: #1A1A2E;
  color: #fff;
  font-weight: 600;
}
.tr303-stream-toggle-btn:hover:not(.active) { background: #ebebeb; }

/* ─── Streams ───────────────────────────────────────────────────────────── */
.tr303-streams {
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr303-stream {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}
.tr303-stream:hover { border-color: #bbb; }
.tr303-stream-focused { border-color: #FF6B00; }
.tr303-stream-highlight { animation: tr303-highlight-pulse 1s ease; }

@keyframes tr303-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
  50%  { box-shadow: 0 0 0 8px rgba(255,107,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}

.tr303-stream-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fafafa;
  border: none;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  transition: background 0.15s;
  flex-wrap: wrap;
}
.tr303-stream-header:hover { background: #f0f0f0; }

.tr303-stream-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1A1A2E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.tr303-stream-name { flex: 1; }

.tr303-stream-progress {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

.tr303-stream-status-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}
.tr303-chip-clean   { background: #e8f5e9; color: #2e7d32; }
.tr303-chip-warning { background: #fff8e1; color: #e65100; }
.tr303-chip-blocker { background: #ffebee; color: #c62828; }

.tr303-stream-window-label {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
  margin-left: 4px;
}

.tr303-stream-chevron {
  font-size: 18px;
  color: #aaa;
  transition: transform 0.2s;
  margin-left: auto;
}
.tr303-stream-header[aria-expanded="true"] .tr303-stream-chevron {
  transform: rotate(90deg);
}

/* ─── Stream body ───────────────────────────────────────────────────────── */
.tr303-stream-body {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid #e8e8e8;
}
.tr303-stream-body.tr303-stream-open { display: block; }

/* ─── RFI progress bar ──────────────────────────────────────────────────── */
.tr303-rfi-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
}
.tr303-rfi-progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.tr303-rfi-progress-bar {
  height: 100%;
  background: #FF6B00;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.tr303-rfi-progress-label {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}

/* ─── Item list ─────────────────────────────────────────────────────────── */
.tr303-item-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr303-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  transition: background 0.15s;
}
.tr303-item:hover { background: #f5f5f5; }
.tr303-item-blocker { border-left: 3px solid #e53935; }
.tr303-item-warning { border-left: 3px solid #FF6B00; }
.tr303-item-resolved { border-left: 3px solid #4caf50; opacity: 0.75; }

.tr303-item-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.tr303-dot-open     { background: #e53935; }
.tr303-dot-answered { background: #4caf50; }
.tr303-dot-waived   { background: #bbb; }

.tr303-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tr303-item-label {
  font-size: 13px;
  color: #1A1A2E;
  font-weight: 500;
  line-height: 1.4;
}

.tr303-item-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  width: fit-content;
}

.tr303-item-assigned {
  font-size: 11px;
  color: #888;
}
.tr303-item-note {
  font-size: 11px;
  color: #555;
  font-style: italic;
}

.tr303-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.tr303-item-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.tr303-btn-answer {
  background: #fff;
  border-color: #4caf50;
  color: #2e7d32;
}
.tr303-btn-answer:hover { background: #e8f5e9; }
.tr303-btn-waive {
  background: #fff;
  border-color: #ccc;
  color: #666;
}
.tr303-btn-waive:hover { background: #f0f0f0; }

.tr303-item-resolved-label {
  font-size: 11px;
  color: #4caf50;
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 4px;
}
.tr303-waived-label { color: #aaa; }

.tr303-add-item-btn {
  margin-top: 10px;
  background: none;
  border: 1.5px dashed #ccc;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}
.tr303-add-item-btn:hover { border-color: #FF6B00; color: #FF6B00; }

/* ─── Panel footer ──────────────────────────────────────────────────────── */
.tr303-panel-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 20px 0;
  flex-wrap: wrap;
}

.tr303-override-window-btn,
.tr303-export-btn {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.tr303-override-window-btn {
  background: #f5f5f5;
  color: #1A1A2E;
  border: 1px solid #ddd;
}
.tr303-override-window-btn:hover { background: #e8e8e8; }
.tr303-export-btn {
  background: #f5f5f5;
  color: #1A1A2E;
  border: 1px solid #ddd;
}
.tr303-export-btn:hover { background: #e8e8e8; }

.tr303-dispatch-anyway-btn {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #ffebee;
  color: #c62828;
  border: 1.5px solid #e53935;
  transition: background 0.15s;
  margin-left: auto;
}
.tr303-dispatch-anyway-btn:hover { background: #ffcdd2; }

/* ─── Modal overlay shared ──────────────────────────────────────────────── */
.tr303-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ─── Activate modal ────────────────────────────────────────────────────── */
.tr303-activate-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tr303-activate-modal h3 { font-size: 18px; color: #1A1A2E; margin: 0 0 12px; }
.tr303-activate-modal p  { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 14px; }

.tr303-activate-mob-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.tr303-activate-mob-label { font-size: 13px; font-weight: 600; color: #333; }
.tr303-mob-date-input {
  border: 1.5px solid #ddd;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 14px;
  color: #1A1A2E;
  outline: none;
  transition: border-color 0.15s;
}
.tr303-mob-date-input:focus { border-color: #FF6B00; }

.tr303-activate-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.tr303-activate-confirm-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tr303-activate-confirm-btn:hover { background: #e05e00; }
.tr303-activate-cancel-btn {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tr303-activate-cancel-btn:hover { background: #e8e8e8; }

/* ─── Mob date prompt modal ─────────────────────────────────────────────── */
.tr303-mob-prompt-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tr303-mob-prompt-modal h3 { font-size: 18px; color: #1A1A2E; margin: 0 0 12px; }
.tr303-mob-prompt-modal p  { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 12px; }
.tr303-mob-prompt-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.tr303-mob-prompt-yes {
  background: #FF6B00; color: #fff; border: none; border-radius: 7px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tr303-mob-prompt-yes:hover { background: #e05e00; }
.tr303-mob-prompt-no {
  background: #f5f5f5; color: #555; border: 1px solid #ddd; border-radius: 7px;
  padding: 9px 14px; font-size: 13px; cursor: pointer;
}
.tr303-mob-prompt-no:hover { background: #e8e8e8; }

/* ─── PIN modal ─────────────────────────────────────────────────────────── */
.tr303-pin-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: center;
}
.tr303-pin-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.tr303-pin-lock-icon { font-size: 28px; }
.tr303-pin-modal h3  { font-size: 18px; color: #1A1A2E; margin: 0; }
.tr303-pin-warning   { font-size: 13px; color: #c62828; background: #ffebee; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; line-height: 1.5; }
.tr303-pin-prompt, .tr303-pin-setup-note { font-size: 13px; color: #555; margin-bottom: 14px; }
.tr303-pin-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  outline: none;
  color: #1A1A2E;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.tr303-pin-input:focus { border-color: #FF6B00; }
.tr303-pin-error { color: #c62828; font-size: 12px; margin-top: 6px; }
.tr303-pin-footer { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.tr303-pin-submit-btn {
  background: #1A1A2E; color: #fff; border: none; border-radius: 7px;
  padding: 10px 28px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.tr303-pin-submit-btn:hover { background: #2d2d4e; }
.tr303-pin-cancel-btn {
  background: #f5f5f5; color: #555; border: 1px solid #ddd; border-radius: 7px;
  padding: 10px 18px; font-size: 14px; cursor: pointer;
}
.tr303-pin-cancel-btn:hover { background: #e8e8e8; }

/* ─── Override windows modal ────────────────────────────────────────────── */
.tr303-window-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tr303-window-modal h3 { font-size: 18px; color: #1A1A2E; margin: 0 0 8px; }
.tr303-window-note { font-size: 13px; color: #666; margin-bottom: 16px; }
.tr303-window-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tr303-window-table th {
  text-align: left; padding: 8px 10px; font-weight: 700; color: #fff;
  background: #1A1A2E; border: none;
}
.tr303-window-table td { padding: 8px 10px; border-bottom: 1px solid #ebebeb; }
.tr303-window-table tr:nth-child(even) td { background: #fafafa; }
.tr303-window-select {
  border: 1px solid #ddd; border-radius: 5px; padding: 5px 8px;
  font-size: 12px; color: #1A1A2E; background: #fff; cursor: pointer;
}
.tr303-window-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.tr303-window-save-btn {
  background: #FF6B00; color: #fff; border: none; border-radius: 7px;
  padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tr303-window-save-btn:hover { background: #e05e00; }
.tr303-window-cancel-btn {
  background: #f5f5f5; color: #555; border: 1px solid #ddd; border-radius: 7px;
  padding: 9px 14px; font-size: 13px; cursor: pointer;
}
.tr303-window-cancel-btn:hover { background: #e8e8e8; }

/* ─── Add item modal ────────────────────────────────────────────────────── */
.tr303-additem-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tr303-additem-modal h3 { font-size: 18px; color: #1A1A2E; margin: 0 0 14px; }
.tr303-additem-label { font-size: 13px; font-weight: 600; color: #333; display: block; margin-bottom: 6px; }
.tr303-additem-input {
  width: 100%; border: 1.5px solid #ddd; border-radius: 7px; padding: 10px 12px;
  font-size: 14px; color: #1A1A2E; outline: none; box-sizing: border-box;
  transition: border-color 0.15s;
}
.tr303-additem-input:focus { border-color: #FF6B00; }
.tr303-additem-options { margin-top: 12px; }
.tr303-additem-check-label { font-size: 13px; color: #333; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tr303-additem-check { cursor: pointer; }
.tr303-additem-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.tr303-additem-save-btn {
  background: #FF6B00; color: #fff; border: none; border-radius: 7px;
  padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tr303-additem-save-btn:hover { background: #e05e00; }
.tr303-additem-cancel-btn {
  background: #f5f5f5; color: #555; border: 1px solid #ddd; border-radius: 7px;
  padding: 9px 14px; font-size: 13px; cursor: pointer;
}
.tr303-additem-cancel-btn:hover { background: #e8e8e8; }

/* ─── Day-of Snapshot modal ─────────────────────────────────────────────── */
.tr303-dayof-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.tr303-dayof-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #ebebeb;
  flex-shrink: 0;
}
.tr303-dayof-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tr303-dayof-title-row h3 { font-size: 18px; color: #1A1A2E; margin: 0; }
.tr303-modal-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: #aaa; padding: 0 4px; line-height: 1;
}
.tr303-modal-close:hover { color: #555; }

.tr303-dayof-job { font-size: 14px; color: #555; margin-bottom: 10px; }
.tr303-dayof-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
}
.tr303-dayof-score-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.tr303-dayof-status-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); line-height: 1.3; }

.tr303-dayof-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.tr303-dayof-clean {
  text-align: center;
  padding: 30px 0;
  color: #4caf50;
  font-size: 15px;
  font-weight: 600;
}

.tr303-dayof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr303-dayof-item {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  background: #fafafa;
}
.tr303-dayof-blocker { border-left: 3px solid #e53935; }
.tr303-dayof-warning { border-left: 3px solid #FF6B00; }
.tr303-dayof-stream-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.tr303-dayof-item-label   { font-size: 13px; font-weight: 500; color: #1A1A2E; margin-bottom: 8px; line-height: 1.4; }
.tr303-dayof-view-btn {
  background: none; border: 1px solid #FF6B00; color: #FF6B00; border-radius: 5px;
  padding: 4px 12px; font-size: 11px; font-weight: 600; cursor: pointer; margin-top: 6px;
  transition: background 0.15s;
}
.tr303-dayof-view-btn:hover { background: #fff3ec; }

.tr303-dayof-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #ebebeb;
  flex-shrink: 0;
}
.tr303-view-full-btn {
  background: #1A1A2E; color: #fff; border: none; border-radius: 7px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.tr303-view-full-btn:hover { background: #2d2d4e; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.tr303-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  animation: tr303-toast-in 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.tr303-toast-info    { background: #1A1A2E; color: #fff; }
.tr303-toast-warning { background: #FF6B00; color: #fff; }
.tr303-toast-error   { background: #e53935; color: #fff; }
@keyframes tr303-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .tr303-panel-header { flex-direction: column; }
  .tr303-panel-score-block { min-width: 100%; flex-direction: row; gap: 14px; }
  .tr303-panel-score-num { font-size: 28px; }
  .tr303-hub-bar { flex-direction: column; align-items: flex-start; }
  .tr303-hub-bar-actions { width: 100%; }
  .tr303-stream-header { flex-wrap: wrap; }
  .tr303-stream-window-label { display: none; }
  .tr303-panel-footer { flex-direction: column; align-items: flex-start; }
  .tr303-dispatch-anyway-btn { margin-left: 0; }
}

/* ─── My Day card styles (job_readiness_myday.js) ───────────────────────── */
.tr303-myday-nm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tr303-myday-score-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.tr303-myday-score-blocker { background: #ffebee; color: #c62828; }
.tr303-myday-score-warning { background: #fff8e1; color: #e65100; }

.tr303-myday-blocker { border-left: 3px solid #e53935 !important; }
.tr303-myday-warning { border-left: 3px solid #FF6B00 !important; }

.tr303-pill-blocker { background: #ffebee !important; color: #c62828 !important; }
.tr303-pill-warning { background: #fff8e1 !important; color: #e65100 !important; }

.tr303-blocker-callout b  { color: #c62828; }
.tr303-blocker-callout span { color: #c62828; font-weight: 600; }
.tr303-warning-callout b  { color: #e65100; }
.tr303-warning-callout span { color: #e65100; }
