/* ==========================================================================
   EMPLOYEE MONITORING & PRODUCTION PROFILE STYLES
   Matches Enterprise Spec (media_1794055007726_f71f7097.jpg)
   ========================================================================== */

/* Directory List View Cards */
.emp-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.emp-directory-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.emp-directory-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.emp-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.emp-avatar-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex: 0 0 52px;
  flex-shrink: 0;
}

.emp-avatar-img,
.emp-avatar-initials {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.emp-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
}

.emp-badge-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.675rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   PROFILE VIEW (MINI / COMPACT STREAMLINED LAYOUT)
   ========================================================================== */

.profile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.profile-breadcrumb-link {
  color: #059669;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.profile-breadcrumb-link:hover {
  text-decoration: underline;
}

.profile-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.profile-hero-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-hero-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-hero-avatar-box > .profile-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.profile-meta-grid {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-meta-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #475569;
}

.profile-meta-label {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.1;
}

.profile-meta-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Sub-Tabs Nav (Mini) */
.profile-subtabs-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.65rem;
  padding-bottom: 0.2rem;
}

.profile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.profile-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.profile-tab-btn.active {
  color: #ffffff;
  background: #065f46;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(6, 95, 70, 0.2);
}

/* Filters Bar (Mini) */
.profile-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-period-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 0.15rem;
  border-radius: 6px;
  gap: 0.15rem;
}

.profile-period-btn {
  border: none;
  background: transparent;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-period-btn.active {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}

/* Active Items Only Toggle Switch */
.active-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.2rem 0.55rem 0.2rem 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.active-toggle-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: #334155;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.active-toggle-btn {
  position: relative;
  width: 44px;
  height: 22px;
  background: #cbd5e1;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
}

.active-toggle-btn.on {
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.active-toggle-knob {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.active-toggle-btn.on .active-toggle-knob {
  transform: translateX(22px);
}

.active-toggle-status {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.active-toggle-status.on {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.active-toggle-status.off {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* 5 KPI Cards Grid (Mini) */
.profile-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.profile-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.profile-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.profile-kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.profile-kpi-icon.green { background: #ecfdf5; color: #059669; }
.profile-kpi-icon.amber { background: #fef3c7; color: #d97706; }
.profile-kpi-icon.purple { background: #f3e8ff; color: #9333ea; }

.profile-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.profile-kpi-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 1px;
}

.profile-kpi-sub {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 600;
}

/* Split Row (Mini) */
.profile-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 900px) {
  .profile-split-row {
    grid-template-columns: 1fr;
  }
}

.profile-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Hourly Bar Chart (Mini) */
.hourly-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 68px;
  gap: 0.4rem;
  padding-top: 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.hourly-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.hourly-bar-fill {
  width: 100%;
  max-width: 32px;
  background: #10b981;
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
  min-height: 4px;
  position: relative;
}

.hourly-bar-val {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 800;
  color: #0f172a;
}

.hourly-bar-time {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
}

/* Assigned Production Component Card (Mini) */
.assigned-prod-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  gap: 0.55rem;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.assigned-prod-card:hover {
  border-color: #cbd5e1;
}

.assigned-prod-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.badge-in-progress {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.badge-completed {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Target vs Actual Table (Mini) */
.target-vs-actual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.725rem;
}

.target-vs-actual-table th {
  background: #f8fafc;
  padding: 0.35rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.target-vs-actual-table td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-size: 0.725rem;
}

.target-vs-actual-table tr.total-row td {
  background: #f8fafc;
  font-weight: 800;
  border-top: 1.5px solid #cbd5e1;
  border-bottom: none;
}

/* ==========================================================================
   SUB-TABS PANES & DYNAMIC MODULE STYLES (100% Real-Time Responsive Layout)
   ========================================================================== */

.profile-subtab-pane {
  display: none;
}

.profile-subtab-pane.active {
  display: block;
  animation: fadeInPane 0.2s ease-in-out;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub-Tab Header Toolbar */
.subtab-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.subtab-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subtab-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.subtab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Tasks Grid */
.task-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0.65rem;
}

.task-card-mini {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.task-card-mini:hover {
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.task-card-body {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.task-card-thumb {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.task-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.task-card-meta {
  font-size: 0.675rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.task-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.task-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0.45rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.task-metric-item {
  text-align: center;
}

.task-metric-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  display: block;
}

.task-metric-val {
  font-size: 0.775rem;
  font-weight: 800;
  color: #0f172a;
}

/* Shift Summary Cards */
.shift-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.shift-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.shift-summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Supervisor Remarks Module */
.remarks-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .remarks-layout {
    grid-template-columns: 1fr;
  }
}

.remark-form-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.remark-feed-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.remark-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.remark-card:hover {
  border-color: #cbd5e1;
}

.remark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.remark-author-name {
  font-size: 0.825rem;
  font-weight: 800;
  color: #0f172a;
}

.remark-author-role {
  font-size: 0.675rem;
  color: #64748b;
  font-weight: 600;
}

.remark-date {
  font-size: 0.675rem;
  color: #94a3b8;
  font-weight: 600;
}

.remark-body {
  font-size: 0.775rem;
  color: #334155;
  line-height: 1.45;
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #10b981;
}

.star-rating-selector {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
  transition: transform 0.1s ease, color 0.1s ease;
}

.star-btn.active,
.star-btn:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

/* ==========================================================================
   Shifting Segmented Track & Sliding Pill Indicator
   ========================================================================== */
.period-shifting-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  border: 1px solid #e2e8f0;
  user-select: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.period-slider-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.period-shift-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 9px;
  font-size: 0.775rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.25s ease, transform 0.15s ease;
  outline: none;
}

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

.period-shift-btn.active {
  color: #065f46;
  font-weight: 800;
}

.period-shift-btn:active {
  transform: scale(0.97);
}

/* Dynamic Shift Content Fade */
.grid-shifting-fade {
  animation: periodContentGlide 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes periodContentGlide {
  0% {
    opacity: 0.2;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Finished Product Target Management Studio
   ========================================================================== */
.target-studio-modal {
  max-width: 880px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: none;
  background: #ffffff;
}

.target-studio-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  position: relative;
  flex-shrink: 0;
}

.target-studio-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 1rem 1.25rem;
  background: #ffffff;
}

.target-studio-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.target-studio-hero-subtitle {
  font-size: 0.8rem;
  color: #a7f3d0;
  margin-top: 0.25rem;
}

.target-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  height: 12px;
  overflow: hidden;
  position: relative;
  margin-top: 0.85rem;
}

.target-progress-bar-fill {
  background: linear-gradient(90deg, #34d399 0%, #10b981 50%, #6ee7b7 100%);
  height: 100%;
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.target-studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.target-studio-stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.target-studio-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.target-studio-stat-label {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d1fae5;
  margin-top: 0.25rem;
}

/* Studio Sub-Navigation Track */
.studio-tab-track {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  position: relative;
  gap: 4px;
  user-select: none;
}

.studio-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.studio-tab-btn {
  flex: 1;
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

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

.studio-tab-btn.active {
  color: #065f46;
  font-weight: 800;
}

/* BOM Requirements Table in Target Studio */
.studio-bom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.775rem;
}

.studio-bom-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.studio-bom-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.studio-bom-table tr:last-child td {
  border-bottom: none;
}

.studio-bom-table tr.has-shortage {
  background: #fff5f5;
}

.studio-bom-table tr.is-ok {
  background: #ffffff;
}

/* Quick Increment Buttons */
.quick-qty-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-qty-btn:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  transform: translateY(-1px);
}

