/* ==========================================================================
   ATELIER - Premium Minimalist Design System
   ========================================================================== */

:root {
  /* Color Palette: Editorial Minimalist */
  --bg-primary: #FAF9F6;       /* Warm Alabaster / Linen */
  --bg-surface: #FFFFFF;       /* Pure White */
  --text-primary: #121212;     /* Deep Charcoal */
  --text-secondary: #6E6D68;   /* Muted warm grey */
  --border-light: #E8E6E1;     /* Creamy soft border */
  --border-medium: #C0BEB8;    /* Muted dark border */
  --border-dark: #121212;      /* Sharp contrast border */
  
  /* Accent Colors */
  --accent-brand: #3C4F40;     /* Deep Slate Sage */
  --accent-brand-hover: #29382C;
  --accent-brand-light: #F1F5F2;
  
  /* Status/Stock Colors (Muted Editorial Alert Tones) */
  --status-instock: #4F7055;        /* Sage Green */
  --status-instock-bg: #F1F6F2;
  --status-lowstock: #C48E4B;       /* Ochre Gold */
  --status-lowstock-bg: #FCF6EF;
  --status-outofstock: #BE5A4D;     /* Rust Red */
  --status-outofstock-bg: #FAF1F0;

  /* Typography spacing & shadows */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Base Reset & Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Spinner Loader */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 20px;
  background-color: var(--bg-primary);
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  font-family: var(--font-headings);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Common Layout Wrapper */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-smooth);
}

.brand-section {
  margin-bottom: 48px;
}

.brand-logo {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  width: 100%;
}

.nav-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 18px;
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.nav-button:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.nav-button.active {
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

.nav-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

/* User Session Profile Box */
.user-profile-box {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.user-role-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-family: var(--font-headings);
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-brand);
  background-color: var(--accent-brand-light);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
}

.btn-signout {
  background: none;
  border: 1px solid var(--border-light);
  padding: 10px;
  font-size: 12px;
  font-family: var(--font-headings);
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-signout:hover {
  border-color: var(--border-dark);
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

/* Main Content Area */
.main-wrapper {
  margin-left: 280px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 64px;
  transition: var(--transition-smooth);
}

/* Responsive Menu Toggle button (mobile) */
.mobile-header {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 110;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Page Header Structure */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.page-title-group h1 {
  font-family: var(--font-headings);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-title-group p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Grid & Dashboard layout */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 30px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.metric-label {
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.metric-value {
  font-family: var(--font-headings);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 12px;
}

.metric-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Core Dashboard Content Split Layout */
.dashboard-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.dashboard-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-sm);
}

.dashboard-card-title {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* List details */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid transparent;
  background-color: var(--bg-primary);
  transition: var(--transition-smooth);
}

.alert-item.out-of-stock {
  border-left-color: var(--status-outofstock);
  background-color: var(--status-outofstock-bg);
}

.alert-item.low-stock {
  border-left-color: var(--status-lowstock);
  background-color: var(--status-lowstock-bg);
}

.alert-info {
  display: flex;
  flex-direction: column;
}

.alert-product-name {
  font-weight: 600;
  font-size: 13px;
}

.alert-product-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.alert-badge {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.alert-item.out-of-stock .alert-badge {
  color: var(--status-outofstock);
  background-color: #FFF;
  border: 1px solid rgba(190, 90, 77, 0.2);
}

.alert-item.low-stock .alert-badge {
  color: var(--status-lowstock);
  background-color: #FFF;
  border: 1px solid rgba(196, 142, 75, 0.2);
}

/* Login Panel Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-primary);
  padding: 24px;
}

.login-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 440px;
  padding: 48px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  animation: fadeInUp 0.4s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-header h2 {
  font-family: var(--font-headings);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-dark);
  background-color: var(--bg-surface);
}

.btn-primary {
  width: 100%;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border: 1px solid var(--text-primary);
  padding: 16px;
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-primary);
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.login-divider:not(:empty)::before {
  margin-right: 12px;
}

.login-divider:not(:empty)::after {
  margin-left: 12px;
}

.quick-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 12px;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  border-color: var(--border-dark);
  background-color: var(--bg-primary);
}

/* Product Catalog Styles */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  background-color: var(--bg-surface);
  padding: 16px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background-color: var(--bg-primary);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-medium);
  background-color: var(--bg-surface);
}

.filters-group {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.filter-select:hover {
  border-color: var(--border-medium);
}

/* Master Catalog Product Cards / Matrix */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-row-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.product-row-card:hover {
  border-color: var(--border-medium);
}

.product-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.product-title-area {
  display: flex;
  flex-direction: column;
}

.product-name-txt {
  font-family: var(--font-headings);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.product-meta-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  flex-wrap: wrap;
}

.meta-divider {
  color: var(--border-medium);
}

.sku-pill {
  font-family: var(--font-headings);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.brand-badge {
  font-weight: 600;
  text-transform: uppercase;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border-light);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background-color: var(--bg-primary);
}

.btn-icon.delete:hover {
  color: var(--status-outofstock);
  border-color: var(--status-outofstock);
  background-color: var(--status-outofstock-bg);
}

/* Variant Matrix Table Styling */
.matrix-container {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-light);
}

.matrix-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.variant-color-col {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
}

/* Matrix size cells representing items */
.size-stock-cell {
  position: relative;
  text-align: center;
}

.size-stock-badge {
  display: inline-block;
  min-width: 44px;
  padding: 6px 12px;
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  text-align: center;
  transition: var(--transition-smooth);
}

.size-stock-badge.instock {
  background-color: var(--status-instock-bg);
  color: var(--status-instock);
}

.size-stock-badge.low {
  background-color: var(--status-lowstock-bg);
  color: var(--status-lowstock);
  animation: pulseLow 2s infinite ease-in-out;
}

.size-stock-badge.empty {
  background-color: var(--status-outofstock-bg);
  color: var(--status-outofstock);
}

@keyframes pulseLow {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

/* Total variant stock display */
.total-variant-stock {
  font-weight: 600;
  font-family: var(--font-headings);
  text-align: right;
  padding-right: 24px !important;
}

/* Form Modals / Slide panels */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-surface);
  height: 100%;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay.active .drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-headings);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.btn-close svg {
  width: 20px;
  height: 20px;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
}

.drawer-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.drawer-footer .btn-secondary {
  flex: 1;
}

.drawer-footer .btn-primary {
  flex: 2;
}

/* Variant Setup Rows inside Product Creation Panel */
.variant-setup-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  background-color: var(--bg-primary);
  margin-top: 12px;
  margin-bottom: 24px;
}

.variant-setup-row {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.variant-setup-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.variant-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.variant-row-title {
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.size-input-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.size-input-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 6px;
}

.size-input-label {
  font-family: var(--font-headings);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.size-input-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

/* Employee Stock Entry View Layout */
.entry-panel-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.product-selector-list {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.selector-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.selector-item:last-child {
  border-bottom: none;
}

.selector-item:hover {
  background-color: var(--bg-primary);
}

.selector-item.selected {
  border-left: 4px solid var(--border-dark);
  background-color: var(--bg-primary);
}

.selector-item-name {
  font-weight: 600;
  font-size: 13px;
}

.selector-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.variant-adjustment-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 32px;
}

.variant-adjuster-row {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.variant-adjuster-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.adjuster-color-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-headings);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
}

.interactive-counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.counter-tile {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--bg-primary);
  transition: var(--transition-smooth);
}

.counter-tile.low {
  background-color: var(--status-lowstock-bg);
  border-color: rgba(196, 142, 75, 0.3);
}

.counter-tile.empty {
  background-color: var(--status-outofstock-bg);
  border-color: rgba(190, 90, 77, 0.3);
}

.counter-tile-label {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.counter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-counter {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.btn-counter:hover {
  border-color: var(--border-dark);
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

.counter-value {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
}

/* Logs and tables */
.logs-table-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
}

.logs-table th {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 20px;
  border-bottom: 2px solid var(--border-light);
  background-color: var(--bg-surface);
}

.logs-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

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

.log-role-tag {
  font-family: var(--font-headings);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
}

.log-role-tag.admin {
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

.log-role-tag.employee {
  background-color: var(--border-light);
  color: var(--text-primary);
}

.log-time {
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Employee Setup Panel styling */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.employee-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.employee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.employee-card-name {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.employee-card-email {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.employee-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.employee-status-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
}

.employee-status-badge.active {
  background-color: var(--status-instock-bg);
  color: var(--status-instock);
}

.employee-status-badge.inactive {
  background-color: var(--status-outofstock-bg);
  color: var(--status-outofstock);
}

/* Elegant Switch styling for status toggling */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-medium);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-brand);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-brand);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Responsive Overrides (Media queries) */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-wrapper {
    margin-left: 0;
    padding: 24px;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-group {
    flex-direction: column;
  }
  
  .entry-panel-layout {
    grid-template-columns: 1fr;
  }
  
  .product-selector-list {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-roles-grid {
    grid-template-columns: 1fr;
  }
  
  .size-input-grid, .interactive-counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
