/* ============================================================
   WIP (Work In Progress) Monitoring Dashboard — ADR-043
   Azia Light Theme — white/aqua palette
   ============================================================ */

/* When WIP is active, hide other elements */
body.wip-active #expanded-title,
body.wip-active #detail-panel,
body.wip-active #bg-layer,
body.wip-active #c4-link { display: none !important; }

/* ---- Container ---- */
#wip-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #F0FDFA;
  color: #475569;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

#wip-view::before {
  content: none;
}



/* ---- Header ---- */
.wip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  z-index: 250;
  flex-shrink: 0;
  border-bottom: 2px solid #0D9488;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wip-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wip-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #172351;
}

.wip-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(71, 85, 105, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.wip-header-right {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 3px;
}


/* ---- Filter Bar ---- */
.wip-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  flex-shrink: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
}

.wip-filter-pills {
  display: flex;
  gap: 6px;
}

.wip-filter-pill {
  padding: 5px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(71, 85, 105, 0.6);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wip-filter-pill:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #475569;
  border-color: rgba(0, 0, 0, 0.12);
}

.wip-filter-active {
  background: rgba(6, 147, 227, 0.1);
  color: #0693E3;
  border-color: rgba(6, 147, 227, 0.3);
}

.wip-summary-info {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(71, 85, 105, 0.5);
}


/* ---- Table Container ---- */
.wip-table-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  z-index: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}


/* ---- Table ---- */
.wip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.wip-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(71, 85, 105, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 3;
}

.wip-table tbody tr.wip-row {
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.wip-table tbody tr.wip-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.wip-table tbody tr.wip-row-expanded {
  background: rgba(0, 0, 0, 0.04);
}

.wip-table td {
  padding: 10px 12px;
  vertical-align: middle;
}


/* ---- Cell Styles ---- */
.wip-cell-worker {
  white-space: nowrap;
}

.wip-worker-name {
  font-weight: 600;
  color: #172351;
}

.wip-worker-role {
  display: block;
  font-size: 0.7rem;
  color: rgba(71, 85, 105, 0.5);
  margin-top: 2px;
}

.wip-cell-task {
  max-width: 300px;
  color: rgba(71, 85, 105, 0.85);
  line-height: 1.4;
}

.wip-cell-date {
  font-size: 0.78rem;
  color: rgba(71, 85, 105, 0.6);
  white-space: nowrap;
}

.wip-cell-deps {
  font-size: 0.78rem;
  color: rgba(71, 85, 105, 0.5);
  max-width: 200px;
}

.wip-cell-output {
  font-size: 0.78rem;
}

.wip-cell-folder {
  font-size: 0.7rem;
  color: rgba(71, 85, 105, 0.45);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Consolas', 'Fira Code', monospace;
}


/* ---- Status Badges ---- */
.wip-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.wip-status-pending {
  background: rgba(239, 68, 68, 0.12);
  color: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.wip-status-authorised {
  background: rgba(34, 197, 94, 0.15);
  color: rgba(34, 197, 94, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.wip-status-in-progress {
  background: rgba(245, 158, 11, 0.15);
  color: rgba(251, 191, 36, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.wip-status-complete {
  background: rgba(20, 184, 166, 0.15);
  color: rgba(45, 212, 191, 0.9);
  border: 1px solid rgba(20, 184, 166, 0.25);
}


/* ---- Source Pills ---- */
.wip-source-pill {
  font-size: 0.6rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.wip-source-nextstep {
  background: rgba(96, 165, 250, 0.1);
  color: rgba(96, 165, 250, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.wip-source-email {
  background: rgba(168, 85, 247, 0.1);
  color: rgba(192, 132, 252, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.wip-source-project {
  background: rgba(34, 197, 94, 0.1);
  color: rgba(74, 222, 128, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.2);
}


/* ---- Output Link ---- */
.wip-output-link {
  color: #0693E3;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wip-output-link:hover {
  color: #0574b8;
  text-decoration: underline;
}


/* ---- Detail Row (expandable) ---- */
.wip-detail-row {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wip-detail-row td {
  padding: 0;
}

.wip-detail-content {
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wip-detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  max-width: 400px;
}

.wip-detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(6, 147, 227, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wip-detail-field span,
.wip-detail-field a {
  font-size: 0.82rem;
  color: rgba(71, 85, 105, 0.8);
  line-height: 1.4;
}


/* ---- Edit Column ---- */
.wip-th-edit { width: 44px; text-align: center; }
.wip-cell-edit { text-align: center; width: 44px; }
.wip-edit-btn {
  background: none; border: 1px solid rgba(6, 147, 227, 0.3); border-radius: 4px;
  cursor: pointer; font-size: 0.85rem; padding: 2px 6px; color: rgba(6, 147, 227, 0.7);
  transition: all 0.15s;
}
.wip-edit-btn:hover { background: rgba(6, 147, 227, 0.08); border-color: rgba(6, 147, 227, 0.6); color: #0693e3; }

/* ---- Edit Section in Detail Row ---- */
.wip-edit-section {
  width: 100%; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid rgba(6, 147, 227, 0.12);
}
.wip-edit-notes {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-family: inherit; font-size: 0.82rem; resize: vertical; color: #334155;
  transition: border-color 0.15s;
}
.wip-edit-notes:focus { border-color: #0693e3; outline: none; box-shadow: 0 0 0 2px rgba(6, 147, 227, 0.12); }
.wip-edit-actions {
  display: flex; gap: 8px; margin-top: 8px; align-items: center;
}
.wip-edit-reassign {
  padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 5px;
  font-size: 0.78rem; color: #475569; background: #fff; cursor: pointer;
}
.wip-edit-save {
  padding: 5px 16px; background: #0693e3; color: #fff; border: none; border-radius: 5px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.wip-edit-save:hover { background: #0574b8; }
.wip-edit-delete {
  padding: 5px 12px; background: #fff; color: #ef4444; border: 1px solid #fca5a5; border-radius: 5px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.wip-edit-delete:hover { background: #fef2f2; border-color: #ef4444; }
.wip-edit-authorise-dispatch {
  padding: 5px 14px; background: #16a34a; color: #fff; border: none; border-radius: 5px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.wip-edit-authorise-dispatch:hover { background: #15803d; }
.wip-edit-authorise-dispatch:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Empty / Loading ---- */
.wip-empty,
.wip-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: rgba(71, 85, 105, 0.4);
  font-size: 0.9rem;
}

.wip-empty-text {
  font-size: 0.9rem;
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wip-header { padding: 10px 16px; }
  .wip-filter-bar { padding: 8px 16px; flex-wrap: wrap; }
  .wip-table-container { padding: 14px 16px; overflow-x: auto; }
  .wip-table { min-width: 850px; }
  .wip-subtitle { display: none; }
  .wip-summary-info { display: none; }
}

@media (max-width: 480px) {
  .wip-header { padding: 8px 12px; }
  .wip-filter-bar { padding: 6px 12px; gap: 8px; }
  .wip-table-container { padding: 10px 12px; }
}

/* ---- R/T/P Type Pills (ADR-095) ---- */
.wip-type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.wip-type-routine { background: #dbeafe; color: #1e40af; }
.wip-type-task { background: #fef3c7; color: #92400e; }
.wip-type-project { background: #d1fae5; color: #065f46; }

.wip-ref {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  color: #7c3aed;
  font-weight: 500;
}
.wip-cell-ref { white-space: nowrap; }
.wip-cell-type { white-space: nowrap; }
.wip-cell-deadline { white-space: nowrap; }

/* ---- Gantt Chart ---- */
.wip-gantt-container {
  padding: 0 28px 8px;
  flex-shrink: 0;
  z-index: 2;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.1) transparent;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

/* ---- Resizable Splitter ---- */
.wip-splitter {
  flex-shrink: 0;
  height: 8px;
  background: #e2e8f0;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s ease;
}

.wip-splitter:hover,
.wip-splitter:active {
  background: #0D9488;
}

.wip-splitter-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #94a3b8;
  pointer-events: none;
}

.wip-splitter:hover .wip-splitter-grip,
.wip-splitter:active .wip-splitter-grip {
  background: rgba(255,255,255,0.8);
}

.gantt-chart {
  min-width: 700px;
}

/* Header row with month labels */
.gantt-header-row {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(240, 253, 250, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 4px;
}

.gantt-label-col {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
}

.gantt-timeline-col {
  flex: 1;
  position: relative;
  height: 28px;
}

.gantt-month-header {
  position: relative;
  height: 100%;
}

.gantt-month-label {
  position: absolute;
  top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #172351;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Body with rows */
.gantt-body {
  position: relative;
}

/* Grid lines (weeks) */
.gantt-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gantt-week-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.06);
}

.gantt-week-label {
  position: absolute;
  top: -18px;
  left: 2px;
  font-size: 0.55rem;
  color: rgba(71, 85, 105, 0.4);
  white-space: nowrap;
}

/* Today marker */
.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 3;
}

.gantt-today-label {
  position: absolute;
  top: -18px;
  left: -12px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
}

/* Individual row */
.gantt-row {
  display: flex;
  align-items: center;
  height: 30px;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.gantt-row:hover {
  background: rgba(0,0,0,0.03);
}

.gantt-row-label {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow: hidden;
}

.gantt-row-worker {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 55px;
}

.gantt-row-title {
  font-size: 0.68rem;
  color: rgba(71, 85, 105, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-row-track {
  flex: 1;
  position: relative;
  height: 100%;
}

/* Bar */
.gantt-bar {
  position: absolute;
  top: 5px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.1s ease;
  z-index: 2;
  min-width: 20px;
}

.gantt-bar:hover {
  opacity: 1;
  transform: scaleY(1.15);
  z-index: 4;
}

.gantt-bar-overdue {
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.2) 3px,
    rgba(255,255,255,0.2) 6px
  ) !important;
}

.gantt-bar-text {
  font-size: 0.58rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

/* Row highlight when clicked from Gantt */
.wip-row-highlight {
  background: rgba(6, 147, 227, 0.12) !important;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  .wip-gantt-container { padding: 0 16px 8px; max-height: 40vh; }
  .gantt-label-col, .gantt-row-label { width: 130px; min-width: 130px; }
  .gantt-row-title { display: none; }
}

/* ---- Plan Document Viewer (EPW-PRO-061) ---- */

.wip-plan-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 8px;
  margin-top: 4px;
}

.wip-plan-path-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
  word-break: break-all;
}

.wip-plan-no-plan {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}
.wip-plan-version-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.wip-plan-open-tab {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 10px;
}

.wip-plan-open-tab:hover {
  background: #2563eb;
  color: #fff;
}

.wip-plan-content {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 6px;
}

/* Plan path edit field (in the edit section below instructions textarea) */
.wip-plan-path-edit {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.wip-plan-path-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wip-plan-path-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.74rem;
  font-family: 'Courier New', Courier, monospace;
  padding: 5px 8px;
  min-width: 0;
}

.wip-plan-path-input::placeholder {
  color: #475569;
}

.wip-plan-path-save {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.wip-plan-path-save:hover {
  background: #0d9488;
}

.wip-plan-path-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Night Shift Section ---- */

.wip-ns-section {
  margin: 0 16px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.wip-ns-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
  user-select: none;
}

.wip-ns-header:hover { opacity: 0.95; }

.wip-ns-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.wip-ns-badge {
  background: #f59e0b;
  color: #1e1b4b;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.wip-ns-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.7;
}

.wip-ns-body {
  padding: 12px 16px;
}

.wip-ns-queue, .wip-ns-morning {
  margin-bottom: 16px;
}

.wip-ns-queue h4, .wip-ns-morning h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #312e81;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wip-ns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.wip-ns-table th {
  background: #e0e7ff;
  color: #312e81;
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wip-ns-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.wip-ns-table tr:hover td {
  background: #eef2ff;
}

.wip-ns-empty {
  color: #94a3b8;
  font-size: 0.8rem;
  font-style: italic;
  padding: 8px 0;
}

.wip-ns-priority-badge {
  display: inline-block;
  background: #312e81;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.wip-ns-remove-btn {
  background: none;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.wip-ns-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.wip-ns-report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.wip-ns-report-date {
  font-weight: 700;
  color: #312e81;
}

.wip-ns-stat-complete { color: #16a34a; font-weight: 600; }
.wip-ns-stat-partial { color: #f59e0b; font-weight: 600; }
.wip-ns-stat-error { color: #dc2626; font-weight: 600; }
.wip-ns-stat-turns { color: #6366f1; font-weight: 500; }

.wip-ns-report-section {
  margin-bottom: 12px;
}

.wip-ns-report-section h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 6px;
}

.wip-ns-approve-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.wip-ns-approve-btn:hover { background: #15803d; }
.wip-ns-approve-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wip-ns-requeue-btn {
  background: #f59e0b;
  color: #1e1b4b;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.wip-ns-requeue-btn:hover { background: #d97706; }
.wip-ns-requeue-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wip-ns-error-detail {
  color: #dc2626;
  font-size: 0.72rem;
}

/* Night Shift button in WIP edit panel */

.wip-edit-night-shift {
  background: linear-gradient(135deg, #312e81, #4338ca);
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.wip-edit-night-shift:hover { opacity: 0.9; }
.wip-edit-night-shift:disabled { opacity: 0.5; cursor: not-allowed; }

.wip-ns-priority {
  font-size: 0.72rem;
  padding: 3px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #312e81;
  font-weight: 600;
}

.wip-night-shift-controls {
  border-left: 1px solid #e2e8f0;
  padding-left: 10px;
}
