/**
 * MMS Unified Enterprise Design System
 * 
 * Visual Theme & Aesthetics: Ibnu Habib (MMS)
 * - Color Palette: Calm Industrial Canvas (#f4f7fa), Surface (#ffffff), Panasonic Blue (#0057b8)
 * - Typography: Geist Sans & Plus Jakarta Sans (Primary UI), Geist Mono (Tabular/Codes)
 * - Sharpness & Lighting: Crisp borders (#d7dee8), subtle card lighting, high contrast
 * - Components: Touch-friendly buttons, pill badges, segmented tabs, deep elevation modals
 * 
 * Page Rules, Wireframe & Layout: Raihan (MMS RAIHAN)
 * - Header: Breadcrumb (MENU / SECTION /), concise title, action buttons in single row
 * - Top Metrics: 3-4 KPI summary cards grid across top
 * - Content Card: Icon box header, dashed divider, search + filter tabs toolbar, clean table
 * - Rules: Zero AI slop/filler text, concise hierarchy, page-over-page modal overlays
 */

/* TYPOGRAPHY & ROOT TOKENS (IBNU HABIB PRECISION PALETTE) */
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/v2/fonts/geist/geist-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/v2/fonts/geist/geist-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/v2/fonts/geist/geist-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/v2/fonts/geist/geist-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/v2/fonts/geist/geist-mono.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/v2/fonts/jakarta/plus-jakarta-sans-latin-var.woff2') format('woff2');
}

:root {
  /* Brand Panasonic Blue */
  --color-brand: #0057B8;
  --color-brand-strong: #00458F;
  --color-brand-soft: #EFF6FF;
  --color-brand-border: #BFDBFE;

  /* Canvas & Surface */
  --color-canvas: #F4F7FA;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F8FAFC;
  --color-surface-hover: #F1F5F9;
  --color-surface-active: #E2E8F0;

  /* Sharp Borders & Lines */
  --color-line: #D7DEE8;
  --color-line-strong: #B8C4D2;
  --color-line-subtle: #E2E8F0;

  /* Ink & Text */
  --color-ink: #122033;
  --color-ink-muted: #536276;
  --color-ink-faint: #64748B;

  /* Functional Status Colors */
  --color-success: #087F5B;
  --color-success-bg: #E6F6EF;
  --color-success-border: #A3E5C7;

  --color-attention: #8F5300;
  --color-attention-bg: #FDF5EA;
  --color-attention-border: #F7D5A5;

  --color-danger: #B42318;
  --color-danger-bg: #FDF2F2;
  --color-danger-border: #F8C8C8;

  /* Typography Stacks */
  --font-sans: 'Geist Sans', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(18, 32, 51, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(18, 32, 51, 0.05);
  --shadow-elevated: 0 4px 14px 0 rgba(18, 32, 51, 0.08);
  --shadow-modal: 0 24px 64px -12px rgba(15, 23, 42, 0.32), 0 8px 24px -4px rgba(15, 23, 42, 0.14);
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* PAGE HEADER & WIREFRAME RULES (FULL-WIDTH INDUSTRIAL LAYOUT) */
.qc-page, .dashboard-container, .v2-page-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 24px 32px !important;
  box-sizing: border-box !important;
}

.qc-header, .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.qc-title-wrap, .header-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qc-breadcrumb, .breadcrumb-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qc-title, .page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.qc-actions, .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qc-divider, .dashboard-divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 16px 0 20px 0;
}

/* METRIC KPI SUMMARY CARDS (RAIHAN 3-4 TILES + IBNU SHARPNESS) */
.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card, .v2-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.summary-card:hover, .v2-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-brand);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0;
}

.card-value {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.card-value-brand {
  color: var(--color-brand);
}

.card-value-success {
  color: var(--color-success);
}

.card-unit {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  margin-left: 4px;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.card-footer-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.8rem;
}

.detail-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.summary-card:hover .detail-icon {
  transform: translateX(4px);
}

/* CONTENT CARDS & MATERIAL SECTIONS (RAIHAN WIREFRAME + IBNU BORDERS) */
.material-card, .qc-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.material-card-header, .qc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title-group, .qc-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-box, .qc-icon-box {
  width: 36px;
  height: 36px;
  background-color: var(--color-brand-soft);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand);
}

.card-icon-box img, .qc-icon-box img, .card-icon-box svg, .qc-icon-box svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.card-title, .qc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.card-dashed-divider, .qc-dashed {
  width: 100%;
  height: 1px;
  margin: 16px 0 18px 0;
  background-image: linear-gradient(to right, var(--color-line) 40%, transparent 0%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  border: none;
}

/* BUTTONS (IBNU LIGHTING & CRISP HOVER ELEVATION) */
.qc-btn, .btn, .v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  user-select: none;
}

.qc-btn-primary, .btn-primary, .v2-btn-primary {
  background-color: var(--color-brand);
  color: #FFFFFF !important;
  border-color: var(--color-brand);
  box-shadow: 0 1px 2px rgba(0, 87, 184, 0.25);
}

.qc-btn-primary:hover, .btn-primary:hover, .v2-btn-primary:hover {
  background-color: var(--color-brand-strong);
  border-color: var(--color-brand-strong);
  box-shadow: 0 2px 6px rgba(0, 87, 184, 0.32);
}

.qc-btn-primary:disabled, .btn-primary:disabled, .v2-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.qc-btn-outline, .btn-outline, .v2-btn-outline {
  background-color: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line);
  box-shadow: var(--shadow-xs);
}

.qc-btn-outline:hover, .btn-outline:hover, .v2-btn-outline:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-line-strong);
  color: var(--color-ink);
}

.qc-btn-sm, .v2-btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

/* SEGMENTED TABS (RAIHAN WIREFRAME + IBNU CONTRAST) */
.material-tabs-row, .v2-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: var(--color-surface-active);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.material-tab, .v2-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.material-tab:hover, .v2-tab:hover {
  color: var(--color-ink);
}

.material-tab-active, .v2-tab.active {
  background-color: var(--color-surface) !important;
  color: var(--color-brand) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.material-tab-badge {
  background-color: var(--color-surface-active);
  color: var(--color-ink-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
}

.material-tab-active .material-tab-badge {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
}

/* TOOLBAR, SEARCH & DROPDOWNS (IBNU ERGONOMICS) */
.material-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.material-search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  max-width: 380px;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-ink-faint);
  pointer-events: none;
}

/* MODERN CUSTOM SCROLLBAR (SLIM FLOATING PILL) */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #64748b;
}

::-webkit-scrollbar-thumb:active {
  background-color: #0057b8;
}

.search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 32px 0 36px;
  background-color: var(--color-surface);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.825rem;
  color: var(--color-ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="password"],
.qc-input,
.v2-input,
.form-control {
  min-height: 42px;
  padding: 8px 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
.qc-input::placeholder,
.v2-input::placeholder,
.search-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

select,
.qc-select,
.v2-select,
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding: 8px 36px 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 42px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

select:hover,
.qc-select:hover,
.v2-select:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* Refined Borders, Outlines & Focus Rings */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
select:focus,
.qc-input:focus,
.v2-input:focus,
.search-input:focus,
.qc-select:focus,
.v2-select:focus,
input:focus-visible,
select:focus-visible {
  outline: none !important;
  border-color: #0057b8 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Sticky Table Headers across all tables for Single-Scroll Architecture */
.qc-table thead,
.v2-table thead,
.production-table thead,
.user-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f8fafc;
}

/* TABLES (IBNU TABLE VIEW: ZEBRA, HOVER HIGHLIGHT, CRISP BORDERS) */
.qc-table-container, .v2-table-container {
  width: 100%;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.qc-table, .production-table, .user-table, .v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.qc-table thead th, .production-table thead th, .user-table thead th, .v2-table thead th {
  padding: 12px 16px;
  background-color: var(--color-surface-subtle);
  color: var(--color-ink-muted);
  font-weight: 700;
  font-size: 0.725rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-line);
  white-space: nowrap;
}

.qc-table tbody td, .production-table tbody td, .user-table tbody td, .v2-table tbody td {
  padding: 12px 16px;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-size: 0.825rem;
  font-weight: 500;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
  transition: background-color 0.12s ease;
}

/* Subtle Zebra Striping from Ibnu Habib */
.qc-table tbody tr:nth-child(even) td,
.production-table tbody tr:nth-child(even) td,
.v2-table tbody tr:nth-child(even) td {
  background-color: #FAFBFD;
}

/* Soft Row Hover Highlight */
.qc-table tbody tr:hover td,
.production-table tbody tr:hover td,
.user-table tbody tr:hover td,
.v2-table tbody tr:hover td {
  background-color: #F0F7FF !important;
}

.qc-center, .text-center {
  text-align: center !important;
}

.qc-right, .text-right {
  text-align: right !important;
}

/* PILL BADGES & CHIPS (IBNU HIGH CONTRAST STATUS) */
.badge, .v2-badge, .trend-badge, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-success, .v2-badge-success, .trend-up {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.badge-warning, .v2-badge-warning, .trend-warning {
  background-color: var(--color-attention-bg);
  color: var(--color-attention);
  border: 1px solid var(--color-attention-border);
}

.badge-danger, .v2-badge-danger, .trend-down {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-border);
}

.badge-info, .v2-badge-info, .badge-brand {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
  border: 1px solid var(--color-brand-border);
}

.badge-secondary, .v2-badge-secondary, .badge-neutral {
  background-color: var(--color-surface-subtle);
  color: var(--color-ink-muted);
  border: 1px solid var(--color-line);
}

/* ENHANCED PAGE-OVER-PAGE POPUP OVERLAY (IBNU DEEP ELEVATION & SHARPNESS) */
.qc-modal-overlay, .modal-overlay, .md-modal-overlay, .v2-dialog-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  padding: 24px;
  box-sizing: border-box;
  will-change: opacity;
  transform: translateZ(0);
}

.qc-modal-box, .modal-box, .md-modal-box, .v2-operator-modal-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-line-strong);
  width: 100%;
  max-width: 860px;
  box-shadow: var(--shadow-modal);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.qc-modal-wide, .modal-wide, .md-modal-wide {
  max-width: 1180px !important;
}

.qc-modal-compact, .modal-compact {
  max-width: 540px !important;
}

@keyframes modalPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.qc-modal-header, .modal-header-row, .md-modal-header, .v2-operator-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
}

.qc-modal-title-wrap, .modal-title-group, .md-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qc-modal-title, .md-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.qc-modal-subtitle, .modal-subtitle, .md-modal-subtitle {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}

.qc-modal-close, .modal-close-btn, .md-modal-close, .v2-operator-modal-close {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-ink-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.qc-modal-close:hover, .modal-close-btn:hover, .md-modal-close:hover, .v2-operator-modal-close:hover {
  background: var(--color-surface-active);
  color: var(--color-ink);
}

.qc-modal-body, .modal-body, .md-modal-body, .v2-operator-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
}

.qc-modal-footer, .modal-footer-row, .v2-operator-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  box-sizing: border-box;
}

/* EMPTY STATES & PLACEHOLDERS (ANTI-SLOP: ZERO FILLER GRAPHICS) */
.production-content-placeholder, .empty-state-box {
  background-color: var(--color-surface);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  box-sizing: border-box;
}

.empty-state-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.empty-state-subtext {
  font-size: 0.825rem;
  color: var(--color-ink-muted);
}

/* FLATPICKR DATE RANGE PICKER ENHANCEMENTS */
.flatpickr-calendar {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #cbd5e1 !important;
  font-family: inherit !important;
  z-index: 99999 !important;
  padding: 0 !important;
  width: 316px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.flatpickr-months {
  padding: 8px 6px 4px 6px !important;
}

.flatpickr-weekdays {
  width: 100% !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

.flatpickr-days {
  width: 308px !important;
  margin: 0 auto !important;
  padding-bottom: 8px !important;
}

.dayContainer {
  width: 307.875px !important;
  min-width: 307.875px !important;
  max-width: 307.875px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #ffffff !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #0057B8 !important;
  border-color: #0057B8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.flatpickr-day.inRange {
  background: #EFF6FF !important;
  border-color: #DBEAFE !important;
  box-shadow: -5px 0 0 #EFF6FF, 5px 0 0 #EFF6FF !important;
  color: #0057B8 !important;
}

.flatpickr-day:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

.flatpickr-current-month {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  padding: 0 !important;
  color: #475569 !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: #F1F5F9 !important;
  color: #0057B8 !important;
}

/* Semua input angka: tanpa tombol panah naik/turun (spinner) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

