
:root {
  --navy-header: #0B192C;
  --navy-sidebar: #0A1626;
  --navy-sidebar-hover: rgba(255, 255, 255, 0.06);
  --navy-sidebar-text: #94A3B8;
  --blue-primary: #1D58FF;
  --blue-primary-hover: #1646D2;
  --bg-content: #F0F4F8;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-sub: #94A3B8;
  
  --team-a: #059669;
  --team-b: #2563EB;
  --team-c: #7C3AED;
  --team-d: #D97706;
  --team-e: #DB2777;
  --team-f: #0891B2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-content);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

/* ====================================================
   APP HEADER (TOP NAV BAR)
   ==================================================== */
.app-header {
  background: var(--navy-header);
  border-bottom: 1px solid #1E293B;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.app-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(29, 88, 255, 0.15); border: 1px solid rgba(29, 88, 255, 0.3);
  display: flex; align-items: center; justify-content: center; color: #60A5FA;
}
.app-title { font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.app-subtitle { font-size: 11px; color: #94A3B8; }
.header-right { display: flex; align-items: center; gap: 10px; }

.db-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 500; color: #6EE7B7;
}
.db-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 8px #10B981; }

.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1D58FF; color: #FFFFFF; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 5px rgba(29, 88, 255, 0.4);
  transition: transform 0.15s ease;
}
.user-avatar:hover { transform: scale(1.05); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: all 0.15s ease;
}
.btn-primary { background: #1D58FF; color: #FFFFFF; border: none; box-shadow: 0 2px 5px rgba(29, 88, 255, 0.3); }
.btn-primary:hover { background: #1646D2; box-shadow: 0 3px 8px rgba(29, 88, 255, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); border: 1px solid #334155; color: #E2E8F0; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #475569; color: #FFFFFF; }
.btn-outline { background: #FFFFFF; border: 1px solid #CBD5E1; color: #1D58FF; }
.btn-outline:hover { background: #EFF6FF; border-color: #1D58FF; }
.btn-warning { background: #FEF3C7; border: 1px solid #FDE68A; color: #B45309; }
.btn-warning:hover { background: #FDE68A; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

/* ====================================================
   APP SHELL LAYOUT (SIDEBAR + MAIN CONTENT)
   ==================================================== */
.app-layout {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.app-sidebar {
  width: 260px; min-width: 260px;
  background: var(--navy-sidebar);
  border-right: 1px solid #1E293B;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 10px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; background: transparent; border: none;
  border-radius: 8px; color: #94A3B8; font-size: 13px; font-weight: 500;
  text-align: left; cursor: pointer; transition: all 0.15s ease;
}
.sidebar-item:hover { background: rgba(255, 255, 255, 0.05); color: #F8FAFC; }
.sidebar-item.active {
  background: #1D58FF; color: #FFFFFF; font-weight: 600;
  box-shadow: 0 4px 12px rgba(29, 88, 255, 0.35);
}
.sidebar-item svg { flex-shrink: 0; }
.sidebar-divider { height: 1px; background: #1E293B; margin: 12px 6px; }

.sidebar-monarch-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 9px 10px;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-monarch-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.monarch-card-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.monarch-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.monarch-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.monarch-title {
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.monarch-sub {
  font-size: 9.5px;
  color: #64748B;
  margin-top: 3px;
  margin-bottom: 4px;
  font-weight: 500;
}
.monarch-pill {
  display: inline-block;
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #BFDBFE;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content Area */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-content);
  padding: 20px 24px 40px 24px;
  min-width: 0;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.section-header { margin-bottom: 16px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text-main); letter-spacing: -0.01em; }
.section-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ====================================================
   5 TOP METRIC STAT CARDS
   ==================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1300px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.metric-icon-wrap {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-blue { background: #EFF6FF; color: #1D58FF; }
.icon-green { background: #ECFDF5; color: #059669; }
.icon-teal { background: #F0FDFA; color: #0D9488; }
.icon-indigo { background: #EEF2FF; color: #4F46E5; }
.icon-red { background: #FEF2F2; color: #DC2626; }

.metric-details { flex: 1; min-width: 0; }
.metric-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 3px;
}
.metric-value {
  font-size: 22px; font-weight: 800; color: var(--text-main);
  letter-spacing: -0.02em; line-height: 1.1;
}
.metric-unit { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.metric-sub {
  font-size: 11px; color: var(--text-sub); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.metric-accent-bar {
  position: absolute; bottom: 0; left: 14px; width: 40px; height: 3px;
  border-radius: 3px 3px 0 0;
}
.bar-blue { background: #1D58FF; }
.bar-green { background: #059669; }
.bar-teal { background: #0D9488; }
.bar-indigo { background: #4F46E5; }
.bar-red { background: #DC2626; }

/* ====================================================
   CONTENT PANELS
   ==================================================== */
.content-panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.panel-title-group { display: flex; align-items: center; gap: 10px; }
.panel-icon-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-blue-circle { background: #EFF6FF; color: #1D58FF; }
.icon-indigo-circle { background: #EEF2FF; color: #4F46E5; }
.panel-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
.panel-subtitle { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ====================================================
   SURVEY TEAMS OVERVIEW GRID (6 CARDS)
   ==================================================== */
.teams-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) {
  .teams-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .teams-overview-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.team-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.team-card-top-left { display: flex; align-items: center; gap: 8px; }
.team-badge {
  font-size: 11.5px; font-weight: 700; color: #FFFFFF;
  padding: 2px 9px; border-radius: 5px;
}
.team-status-active {
  background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0;
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px;
}
.team-equip-summary {
  font-size: 11px; color: var(--text-muted);
  background: #F8FAFC; border: 1px solid #F1F5F9;
  padding: 2px 7px; border-radius: 4px;
}

.team-card-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.team-thumbnail {
  width: 95px; height: 74px; border-radius: 7px;
  overflow: hidden; flex-shrink: 0; background: #0E233E;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.team-thumbnail img, .team-thumbnail svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-info { flex: 1; min-width: 0; }
.team-project-name {
  font-size: 12.5px; font-weight: 700; color: var(--text-main);
  line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-chainage { font-size: 10.5px; color: var(--text-muted); margin-bottom: 3px; }
.team-location-line {
  font-size: 11px; color: #334155;
  display: flex; align-items: center; gap: 4px; margin-bottom: 2px;
}
.team-date-line {
  font-size: 10.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}

.team-progress-wrap {
  background: #F8FAFC; border: 1px solid #F1F5F9;
  border-radius: 7px; padding: 8px 10px;
}
.team-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.progress-track {
  background: #E2E8F0; height: 6px; border-radius: 3px;
  margin: 4px 0; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.3s ease;
}
.team-next-avail {
  font-size: 10.5px; color: var(--text-muted);
}

.team-card-footer {
  display: flex; gap: 8px; margin-top: 4px;
}
.btn-card-details {
  background: #FFFFFF; border: 1px solid #CBD5E1; color: #1D58FF;
  font-weight: 600; font-size: 11.5px; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; flex: 1; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-card-details:hover { background: #EFF6FF; border-color: #1D58FF; }

.btn-card-dispatch {
  background: #1D58FF; color: #FFFFFF; border: none;
  font-weight: 600; font-size: 11.5px; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; flex: 1; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px; box-shadow: 0 2px 4px rgba(29, 88, 255, 0.25);
  transition: all 0.15s ease;
}
.btn-card-dispatch:hover { background: #1646D2; }
.btn-card-interruption {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF; border: none;
  font-weight: 700; font-size: 11.5px; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; flex: 1; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px; box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
  transition: all 0.15s ease;
}
.btn-card-interruption:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  box-shadow: 0 3px 6px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

/* ====================================================
   UNASSIGNED PRIORITY QUEUE TABLE
   ==================================================== */
.queue-toolbar { display: flex; align-items: center; gap: 8px; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: #FFFFFF; border: 1px solid #CBD5E1;
  border-radius: 6px; padding: 5px 10px;
}
.search-box input {
  border: none; outline: none; font-size: 12px; color: var(--text-main);
  width: 160px; background: transparent;
}
.search-box input:focus { width: 200px; }

.table-responsive { width: 100%; overflow-x: auto; }
.executive-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.executive-table th {
  background: #F8FAFC; text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.executive-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main); vertical-align: middle;
}
.executive-table tr:hover td { background: #F8FAFC; }

.priority-pill {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-align: center;
}
.priority-pill.high { background: #FEE2E2; color: #DC2626; }
.priority-pill.medium { background: #FEF3C7; color: #D97706; }
.priority-pill.low { background: #E2E8F0; color: #475569; }

/* User-Controlled Interactive Priority Badges */
.priority-badge-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 3px 20px 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: all 0.15s ease;
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 8px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.priority-badge-select.p-badge-1 { background-color: #FEE2E2; color: #DC2626; border-color: #FECACA; }
.priority-badge-select.p-badge-2 { background-color: #FFEDD5; color: #EA580C; border-color: #FED7AA; }
.priority-badge-select.p-badge-3 { background-color: #FEF3C7; color: #D97706; border-color: #FDE68A; }
.priority-badge-select.p-badge-4 { background-color: #E0E7FF; color: #4338CA; border-color: #C7D2FE; }
.priority-badge-select.p-badge-5 { background-color: #F1F5F9; color: #64748B; border-color: #CBD5E1; }
.prio-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.prio-input {
  width: 74px; padding: 4px 8px; font-size: 12px; font-weight: 700; border-radius: 8px;
  border: 1px solid #CBD5E1; background: #FFFFFF; color: #64748B; outline: none;
}
.prio-input::placeholder { color: #94A3B8; font-weight: 500; font-size: 11px; }
.prio-input.is-set { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.prio-input:focus { border-color: #1D58FF; box-shadow: 0 0 0 3px rgba(29, 88, 255, 0.12); }
.prio-of { font-size: 10.5px; color: #64748B; font-weight: 600; }
.prio-line { display: flex; align-items: center; gap: 6px; }
.tie-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; background: #F8FAFC;
}
.tie-row .tie-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.tie-row .tie-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.tie-badge { background: #1D58FF; color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-left: 6px; }
.tie-row input[type="date"] { width: 160px; flex-shrink: 0; }
.prio-by { font-size: 9.5px; font-weight: 600; color: #1D4ED8; letter-spacing: 0.02em; }
.prio-note {
  background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; border-radius: 8px;
  padding: 7px 12px; font-size: 11.5px; margin-bottom: 12px;
}
.priority-badge-select:hover { filter: brightness(0.96); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Auto-Assign Strategy Selection Cards */
.strategy-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s ease;
}
.strategy-card:hover { border-color: #93C5FD; background: #F8FAFC; }
.strategy-card.selected { border-color: var(--blue-primary); background: #EFF6FF; box-shadow: 0 0 0 1px var(--blue-primary); }

.dept-tag, .dept-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.dept-southern { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.dept-northern { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.dept-wcr { background: #FAF5FF; color: #6B21A8; border: 1px solid #E9D5FF; }

/* Queue Dept Tabs */
.queue-dept-tabs {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.dept-tab-btn {
  background: #F8FAFC; border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px; font-size: 11.5px;
  font-weight: 600; color: var(--text-muted); cursor: pointer;
  transition: all 0.15s ease;
}
.dept-tab-btn:hover { background: #EFF6FF; color: #1D58FF; }
.dept-tab-btn.active {
  background: #1D58FF; color: #FFFFFF; border-color: #1D58FF;
  box-shadow: 0 2px 6px rgba(29, 88, 255, 0.25);
}

/* Projects Master Registry Toolbar */
.projects-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
  background: #F8FAFC; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border);
}
.toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-count-badge {
  font-size: 11.5px; font-weight: 700; color: #1D58FF;
  background: #EFF6FF; padding: 4px 10px; border-radius: 20px;
  border: 1px solid #BFDBFE; white-space: nowrap;
}

/* Phase chips in table */
.phase-chips-wrap { display: flex; gap: 4px; flex-wrap: wrap; }
.phase-chip {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.phase-chip.gcp { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.phase-chip.tbm { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.phase-chip.hyd { background: #FAF5FF; color: #6D28D9; border: 1px solid #DDD6FE; }
.phase-chip.p1 { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.phase-chip.p2 { background: #FFE4E6; color: #BE123C; border: 1px solid #FECDD3; }
.phase-chip.tree { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.phase-chip.gut { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }

/* Work Scope Selector in Modal */
.work-scope-selector {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px; margin-top: 8px; margin-bottom: 12px;
}
.scope-checkbox-card {
  display: flex; align-items: flex-start; gap: 8px;
  background: #F8FAFC; border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  transition: all 0.15s ease;
}
.scope-checkbox-card:hover {
  background: #EFF6FF; border-color: #93C5FD;
}
.scope-checkbox-card.selected {
  background: #EFF6FF; border-color: #1D58FF;
}
.scope-checkbox-card input[type="checkbox"] {
  margin-top: 2px; cursor: pointer; accent-color: #1D58FF;
}
.scope-card-title {
  font-size: 11.5px; font-weight: 700; color: var(--text-main); line-height: 1.2;
}
.scope-card-desc {
  font-size: 10px; color: var(--text-muted); margin-top: 2px;
}
.scope-preset-buttons {
  display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap;
}
.scope-preset-btn {
  background: #FFFFFF; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  padding: 3px 8px; border-radius: 4px; cursor: pointer;
  transition: all 0.15s ease;
}
.scope-preset-btn:hover {
  background: #EFF6FF; color: #1D58FF; border-color: #93C5FD;
}

.badge-unassigned {
  background: #F1F5F9; color: #64748B; padding: 2px 8px;
  border-radius: 12px; font-size: 11px; font-weight: 600;
  border: 1px solid #E2E8F0;
}
.icon-teal-circle { background: #F0FDFA; color: #0D9488; }
.panel-actions { display: flex; align-items: center; gap: 8px; }

.queue-select {
  padding: 5px 8px; font-size: 11.5px; border: 1px solid #CBD5E1;
  border-radius: 6px; background: #FFFFFF; outline: none; width: 100%;
}
.btn-assign {
  background: #1D58FF; color: #FFFFFF; border: none;
  padding: 5px 12px; font-size: 11.5px; font-weight: 600;
  border-radius: 6px; cursor: pointer; display: inline-flex;
  align-items: center; gap: 4px; box-shadow: 0 1px 3px rgba(29, 88, 255, 0.25);
  transition: all 0.15s ease;
}
.btn-assign:hover { background: #1646D2; }

/* ====================================================
   TAB 2: LOCATIONS & GPS RADAR LAYOUT
   ==================================================== */
.locations-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
}
@media (max-width: 1024px) {
  .locations-layout { grid-template-columns: 1fr; }
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.map-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}
.map-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* --- Interactive Leaflet Map & Distinct Upcoming Project Markers --- */
.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.team-marker-solid {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.team-marker-solid:hover {
  transform: scale(1.15);
}
.team-pulse-ring {
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.6;
  animation: teamPulseAnim 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}
@keyframes teamPulseAnim {
  0% { transform: scale(0.85); opacity: 0.85; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.team-badge-live {
  position: absolute;
  bottom: -8px;
  background: #10B981;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  border: 1px solid #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  line-height: 1.1;
}

/* Upcoming Projects ("Going to Take Place") - Distinct Light Styling */
.proj-marker-upcoming {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px dashed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.proj-marker-upcoming:hover {
  transform: scale(1.22);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.upcoming-indicator-tag {
  position: absolute;
  top: -8px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  border: 1px solid #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  line-height: 1.1;
}

/* Pipeline Unassigned Projects */
.proj-marker-pipeline {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  border: 1.5px solid #64748B;
  color: #475569;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.proj-marker-pipeline:hover {
  transform: scale(1.35);
  background: #64748B;
  color: #ffffff;
  border-color: #0F172A;
}

/* Map Legend and Filter Controls */
.map-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot.active {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563EB;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #2563EB;
  display: inline-block;
}
.legend-dot.upcoming {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 2px dashed #2563EB;
  display: inline-block;
}
.legend-dot.pipeline {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1.5px solid #64748B;
  display: inline-block;
}
.legend-line {
  width: 20px;
  height: 0px;
  border-top: 2.5px dashed #2563EB;
  display: inline-block;
}
.map-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.map-filter-pill.active {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}
.map-filter-pill input {
  margin: 0;
  cursor: pointer;
}


.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.upload-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #F8FAFC;
  transition: all 0.2s ease;
}
.upload-dropzone:hover {
  border-color: #1D58FF;
  background: #EFF6FF;
}

.badge-success {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.radar-recommend-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.radar-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1D58FF;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.radar-other-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

/* ====================================================
   CALENDAR STYLES
   ==================================================== */
.calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.cal-nav-group { display: flex; align-items: center; gap: 8px; }
.cal-month-heading { font-size: 16px; font-weight: 700; color: var(--text-main); margin-left: 6px; }
.calendar-wrapper {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.calendar-week-header {
  display: grid; grid-template-columns: repeat(7, 1fr); background: #F8FAFC;
  border-bottom: 1px solid var(--border); text-align: center;
  font-size: 11.5px; font-weight: 600; color: var(--text-muted); padding: 8px 0;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day-cell {
  min-height: 105px; border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px; background: #FFFFFF; cursor: pointer; transition: background 0.1s ease;
}
.calendar-day-cell:hover { background: #FBFDFF; }
.calendar-day-cell:nth-child(7n) { border-right: none; }
.calendar-day-cell.other-month { background: #F8FAFC; opacity: 0.5; }
.cal-day-num { font-size: 11.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.cal-event-pill {
  font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; color: #FFFFFF;
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ====================================================
   GANTT TIMELINE STYLES
   ==================================================== */
.gantt-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 10px;
}
.gantt-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; }
.legend-item.plain { background: transparent; border-color: transparent; padding: 3px 4px; }
.legend-box { width: 9px; height: 9px; border-radius: 50%; }
.phase-tag { display: inline-block; width: 14px; height: 5px; border-radius: 3px; }
.phase-tag.gcp { background: #34D399; }
.phase-tag.tbm { background: #60A5FA; }
.phase-tag.hyd { background: #A78BFA; }
.legend-sep { width: 1px; height: 16px; background: var(--border); margin: 0 6px; }

.gantt-jumps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gantt-jump-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-right: 2px; }
.gantt-jump-btn {
  background: #FFFFFF; border: 1px solid #CBD5E1; color: #334155;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  transition: all 0.15s ease;
}
.gantt-jump-btn:hover { background: #EFF6FF; border-color: #1D58FF; color: #1D58FF; }
.gantt-jump-btn.primary { background: #1D58FF; border-color: #1D58FF; color: #FFFFFF; }
.gantt-jump-btn.primary:hover { background: #1646D2; color: #FFFFFF; }

.gantt-chart-container {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px;
  overflow: auto; box-shadow: var(--shadow-sm); max-width: 100%;
  max-height: calc(100vh - 290px);
}
.gantt-inner { position: relative; min-width: 100%; }
.gantt-header { display: flex; position: sticky; top: 0; z-index: 30; background: #FFFFFF; border-bottom: 1px solid var(--border); }
.gantt-side-header {
  position: sticky; left: 0; z-index: 40; flex-shrink: 0;
  background: #F8FAFC; border-right: 1px solid var(--border);
  padding: 0 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: flex-end; padding-bottom: 8px;
}
.gantt-header-dates { flex-shrink: 0; }
.gantt-month-row { display: flex; background: #F8FAFC; border-bottom: 1px solid var(--border-subtle); }
.gantt-month-cell {
  flex-shrink: 0; padding: 6px 10px; font-size: 11.5px; font-weight: 700; color: var(--text-main);
  border-right: 1px solid var(--border); white-space: nowrap; overflow: hidden;
}
.gantt-day-row { display: flex; }
.gantt-day-header {
  flex-shrink: 0; text-align: center; padding: 5px 0 6px; font-size: 11px; font-weight: 600; color: var(--text-main);
  border-right: 1px solid var(--border-subtle); line-height: 1.25;
}
.gantt-day-header small { display: block; font-size: 9.5px; font-weight: 500; color: var(--text-sub); }
.gantt-day-header.weekend { background: #F8FAFC; color: var(--text-sub); }
.gantt-day-header.today { background: #1D58FF; color: #FFFFFF; border-radius: 6px; }
.gantt-day-header.today small { color: #DBEAFE; }

.gantt-row { display: flex; border-bottom: 1px solid var(--border-subtle); }
.gantt-row:last-child { border-bottom: none; }
.gantt-team-side {
  position: sticky; left: 0; z-index: 20; flex-shrink: 0;
  background: #FFFFFF; border-right: 1px solid var(--border);
  padding: 0 16px; display: flex; align-items: center; gap: 10px;
}
.gantt-team-chip { width: 4px; height: 34px; border-radius: 3px; flex-shrink: 0; }
.gantt-team-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.gantt-team-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.gantt-track-area {
  position: relative; flex-shrink: 0;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--col) - 1px), #EEF2F7 calc(var(--col) - 1px), #EEF2F7 var(--col));
}
.gantt-weekend { position: absolute; top: 0; bottom: 0; background: rgba(241, 245, 249, 0.75); }
.gantt-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #EF4444; z-index: 4; opacity: 0.75; pointer-events: none; }
.gantt-empty {
  position: sticky; left: 230px; top: 50%; display: inline-block; transform: translateY(-50%);
  margin-left: 20px; font-size: 12px; color: var(--text-sub); font-style: italic;
}
.gantt-bar {
  position: absolute; border-radius: 9px; color: #FFFFFF; overflow: hidden; cursor: pointer; z-index: 3;
  padding: 7px 11px 11px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.gantt-bar:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2), 0 8px 16px -6px rgba(15, 23, 42, 0.35); }
.gantt-bar.focus { outline: 3px solid #FACC15; outline-offset: 2px; }
.gantt-bar-title { position: relative; z-index: 2; font-size: 12px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-bar-sub { position: relative; z-index: 2; font-size: 10.5px; font-weight: 500; opacity: 0.88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.gantt-bar-badge {
  position: absolute; z-index: 3; top: 5px; right: 6px; background: #FEF3C7; color: #92400E;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
}
.gantt-phase { position: absolute; bottom: 0; height: 5px; z-index: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.gantt-phase.gcp { background: #34D399; }
.gantt-phase.tbm { background: #60A5FA; }
.gantt-phase.hyd { background: #A78BFA; }
.gantt-pause-gap {
  position: absolute; top: 0; bottom: 0; z-index: 1;
  background: repeating-linear-gradient(45deg, #FEF3C7, #FEF3C7 4px, #F59E0B 4px, #F59E0B 8px);
  border-left: 2px solid #B45309; border-right: 2px solid #B45309; opacity: 0.95;
}
.gantt-travel-bar {
  position: absolute;
  background: repeating-linear-gradient(45deg, #FEF3C7, #FEF3C7 5px, #FDE68A 5px, #FDE68A 10px);
  border: 1.5px dashed #D97706;
  border-radius: 4px;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  white-space: nowrap;
  padding: 0 4px;
  transition: transform 0.15s ease;
}
.gantt-travel-bar:hover {
  transform: scale(1.04);
  border-color: #B45309;
}
.gantt-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gantt-zoom-group { display: inline-flex; align-items: center; gap: 3px; background: #F1F5F9; padding: 2px; border-radius: 7px; }
.gantt-filter-select { font-size: 11.5px; padding: 4px 8px; height: 28px; }
.gantt-search-input { font-size: 11.5px; padding: 4px 9px; height: 28px; width: 150px; border: 1px solid #CBD5E1; border-radius: 6px; }
.gantt-track-area.drag-over {
  background-color: rgba(37, 99, 235, 0.08);
  outline: 2px dashed #2563EB;
  outline-offset: -2px;
}
.gantt-bar[draggable="true"] { cursor: grab; }
.gantt-bar.dragging { opacity: 0.45; cursor: grabbing; }
.gantt-bar.dimmed { opacity: 0.28; filter: grayscale(40%); }
.gantt-bar-progress {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 0;
  background: rgba(255, 255, 255, 0.16); pointer-events: none;
}
.gantt-bar-quick-btns {
  position: absolute; top: 4px; right: 6px; z-index: 5;
  display: none; align-items: center; gap: 3px;
}
.gantt-bar:hover .gantt-bar-quick-btns { display: flex; }
.gantt-bar-qbtn {
  background: rgba(15, 23, 42, 0.55); color: #FFFFFF; border: none;
  border-radius: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px;
  cursor: pointer; line-height: 1.3;
}
.gantt-bar-qbtn:hover { background: rgba(15, 23, 42, 0.9); }
.gantt-unassigned-tray {
  background: #F8FAFC; border: 1px dashed #94A3B8; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px; transition: all 0.15s ease;
}
.gantt-unassigned-tray.drag-over {
  background: #FEF2F2; border-color: #EF4444;
}
.gantt-unassigned-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 8px;
}
.gantt-unassigned-list {
  display: flex; flex-wrap: wrap; gap: 7px; max-height: 150px; overflow-y: auto;
}
.gantt-unassigned-chip {
  background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 7px;
  padding: 5px 9px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 7px;
  cursor: grab; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.gantt-unassigned-chip:hover { border-color: #2563EB; background: #EFF6FF; }
.gantt-unassigned-chip.dragging { opacity: 0.45; }

/* Secondary buttons placed on light surfaces (the default style is made for the dark header) */
.main-content .btn-secondary, .modal-dialog .btn-secondary {
  background: #FFFFFF; border: 1px solid #CBD5E1; color: #334155;
}
.main-content .btn-secondary:hover, .modal-dialog .btn-secondary:hover {
  background: #F1F5F9; border-color: #94A3B8; color: #0F172A;
}
.cal-event-pill.cal-paused {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.45), rgba(255,255,255,0.45) 4px, transparent 4px, transparent 8px);
  outline: 1.5px dashed #B45309; outline-offset: -1.5px;
}

/* ====================================================
   TEAMS & BENCHMARKS (TAB 6)
   ==================================================== */
.sets-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.set-card {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
}
.set-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.set-color-chip { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.benchmark-spec-box {
  background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 10px; font-size: 12px;
}
.spec-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.spec-row:last-child { margin-bottom: 0; }
.spec-val { font-weight: 600; color: var(--text-main); }

/* ====================================================
   MODALS & FORMS
   ==================================================== */
.modal-backdrop {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 25, 44, 0.65); backdrop-filter: blur(3px);
  z-index: 2000; align-items: center; justify-content: center;
}
.modal-backdrop.active { display: flex; }
.modal-dialog {
  background: #FFFFFF; border-radius: var(--radius-lg); width: 95%; max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); overflow: hidden;
}
.modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
.modal-close {
  background: none; border: none; font-size: 20px; color: var(--text-muted);
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-main); }
.modal-body { padding: 16px 18px; }
.modal-footer {
  padding: 12px 18px; background: #F8FAFC; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

.form-group { margin-bottom: 12px; }
.form-row { display: flex; gap: 10px; }
.col-6 { flex: 1; }
.form-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.form-control, .input-select, .input-search {
  width: 100%; padding: 7px 10px; font-size: 12.5px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #FFFFFF; color: var(--text-main); outline: none;
}
.form-control:focus, .input-select:focus, .input-search:focus {
  border-color: #1D58FF; box-shadow: 0 0 0 3px rgba(29, 88, 255, 0.12);
}
.calc-preview-card {
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 12px; margin-top: 8px;
}
.notice-info {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: 11.5px; margin-top: 10px;
}

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 6px; }
.toast {
  background: #0B192C; color: #FFFFFF; padding: 9px 14px;
  border-radius: var(--radius-sm); font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-left: 4px solid #1D58FF;
}
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }

/* MANPOWER KANBAN & CARDS */
.manpower-board-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
  min-height: 520px;
}
.manpower-lane {
  flex: 0 0 290px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.manpower-lane.drag-over {
  background: #EFF6FF !important;
  border: 2px dashed #2563EB !important;
  transform: scale(1.01);
}
.manpower-lane-header {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.manpower-lane-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.manpower-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  cursor: grab;
  user-select: none;
  transition: all 0.15s ease;
}
.manpower-card:hover {
  border-color: #94A3B8;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.manpower-card.dragging {
  opacity: 0.4;
  transform: rotate(2deg);
}
.badge-status-working { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; font-weight: 600; padding: 2px 7px; border-radius: 10px; font-size: 11px; }
.badge-status-due { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; font-weight: 600; padding: 2px 7px; border-radius: 10px; font-size: 11px; }
.badge-status-maint { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; font-weight: 600; padding: 2px 7px; border-radius: 10px; font-size: 11px; }
.badge-status-faulty { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; font-weight: 600; padding: 2px 7px; border-radius: 10px; font-size: 11px; }

