/* ============================================
   Supervisor Mobile-First Styles
   ============================================ */

/* Box Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Auth Styles */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  animation: slideUp 0.4s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-logo {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.login-footer {
  margin-top: var(--space-xl);
  text-align: center;
}

.login-help {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Supervisor Layout */
.supervisor-body {
  min-height: 100vh;
  padding-bottom: calc(70px + var(--safe-area-bottom));
  overflow-x: hidden;
}

/* Header */
.supervisor-header {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo {
  font-size: 1.75rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.header-farm-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.header-user-name {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.header-right {
  position: relative;
}

.header-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent-primary);
}

.header-menu-btn:active {
  transform: scale(0.95);
}

.menu-icon {
  font-size: 1.25rem;
}

/* Dropdown Menu */
.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: hidden;
}

.header-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--transition-fast);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-primary);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item:active {
  background: rgba(255, 255, 255, 0.12);
}

.dropdown-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.dropdown-text {
  font-weight: 600;
  font-size: 0.9375rem;
}

.dropdown-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: var(--space-xs) 0;
}

.dropdown-logout {
  color: var(--color-accent-primary);
}

.dropdown-logout:hover {
  background: rgba(233, 69, 96, 0.1);
}

.supervisor-main {
  padding: var(--space-md);
  padding-bottom: calc(100px + var(--space-xl));
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 130px);
  width: 100%;
  box-sizing: border-box;
}

.page-content {
  animation: fadeIn 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
}

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

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  padding-bottom: calc(var(--space-sm) + var(--safe-area-bottom));
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-width: 64px;
  position: relative;
}

.nav-item.active {
  color: var(--color-accent-primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-accent-primary);
  border-radius: 2px;
}

.nav-item:hover {
  color: var(--color-text-primary);
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-icon {
  transform: translateY(-2px);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 12px;
  width: 60%;
}

.skeleton-card {
  height: 120px;
  margin-bottom: var(--space-md);
}

.skeleton-stat {
  height: 80px;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Dashboard Styles */
.supervisor-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.welcome-section {
  text-align: center;
  padding: var(--space-lg) 0;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.welcome-date {
  color: var(--color-text-secondary);
}

/* Stats Grid */
.stats-section {
  margin-bottom: var(--space-lg);
  animation: slideUp 0.4s ease-out;
  animation-fill-mode: both;
}

.stats-section:nth-child(2) { animation-delay: 0.1s; }
.stats-section:nth-child(3) { animation-delay: 0.2s; }
.stats-section:nth-child(4) { animation-delay: 0.3s; }

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-production { border-left: 3px solid #10b981; }
.stat-current { border-left: 3px solid #3b82f6; }
.stat-mortality { border-left: 3px solid #ef4444; }
.stat-updated { border-left: 3px solid #f59e0b; }

/* Shed Cards */
.sheds-section {
  animation: slideUp 0.4s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.shed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.shed-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.shed-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.shed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.shed-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.shed-status {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.status-updated {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.shed-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shed-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.shed-stat-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Quick Actions */
.quick-actions-section {
  animation: slideUp 0.4s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.quick-actions-section .action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.action-btn:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent-primary);
  transform: translateY(-4px);
}

.action-btn:active {
  transform: translateY(-2px);
}

.action-icon {
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.action-btn:hover .action-icon {
  transform: scale(1.1);
}

.action-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Page Container */
.page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  width: 100%;
  box-sizing: border-box;
}

.page-container > * {
  width: 100%;
  box-sizing: border-box;
}

.page-header {
  margin-bottom: var(--space-md);
  animation: slideDown 0.3s ease-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--color-accent-primary);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

/* Forms */
.form-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  box-sizing: border-box;
}

.form-card > * {
  width: 100%;
  box-sizing: border-box;
}

.form-section {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
}

.form-section:nth-child(1) { animation-delay: 0.05s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.15s; }
.form-section:nth-child(4) { animation-delay: 0.2s; }
.form-section:nth-child(5) { animation-delay: 0.25s; }

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input-large {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-mono);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 16px;
  padding-right: calc(var(--space-md) * 2 + 16px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-actions {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  animation: slideUp 0.3s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  width: 100%;
  box-sizing: border-box;
}

.form-actions .btn,
.form-actions input[type="submit"],
.form-actions button {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  min-height: 52px;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Action Header (for index pages) */
.action-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-lg);
}

.action-header .btn {
  min-width: 140px;
}

/* Action Section (full width button) */
.action-section {
  margin-bottom: var(--space-xl);
  width: 100%;
  box-sizing: border-box;
}

.action-section .btn {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Radio Options */
.radio-group {
  display: flex;
  gap: var(--space-md);
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-option:has(input:checked) {
  border-color: var(--color-accent-primary);
  background: rgba(233, 69, 96, 0.1);
}

.radio-option input {
  accent-color: var(--color-accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

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

/* Primary Button - Elegant Gold/Amber */
.btn-primary {
  background: linear-gradient(135deg, #d4a574 0%, #c9956c 50%, #b8845c 100%);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0b68a 0%, #d4a574 50%, #c9956c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* Secondary Button - Subtle Outline */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Success Button - Green */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Danger Button - Red */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* Full Width Button */
.btn-full {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Small Button */
.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 8px;
  gap: 0.25rem;
}

.btn-small .icon {
  width: 12px;
  height: 12px;
}

/* Large Button (for form submits) */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 14px;
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0.5rem;
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Alerts */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  animation: slideDown 0.3s ease-out;
  transition: all 0.3s ease;
}

.alert-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* Production Records */
.shed-record-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.shed-record-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
  transition: all var(--transition-base);
}

.shed-record-card:nth-child(1) { animation-delay: 0.05s; }
.shed-record-card:nth-child(2) { animation-delay: 0.1s; }
.shed-record-card:nth-child(3) { animation-delay: 0.15s; }

.shed-record-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.shed-record-card.completed {
  border-left: 3px solid #10b981;
}

.shed-record-card.pending {
  border-left: 3px solid #f59e0b;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.record-shed-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.record-birds {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.record-status {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.record-summary {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.record-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.record-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.record-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

.record-empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

/* Card Button Styling */
.shed-record-card .btn-full {
  margin-top: var(--space-md);
}

/* Stock Updates */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ingredient-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
  transition: all var(--transition-base);
}

.ingredient-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ingredient-card .btn {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 80px !important;
  padding: 0.35rem 0.6rem !important;
  font-size: 0.7rem !important;
}

.ingredient-card .btn .icon {
  width: 11px !important;
  height: 11px !important;
}

.ingredient-card:nth-child(1) { animation-delay: 0.05s; }
.ingredient-card:nth-child(2) { animation-delay: 0.1s; }
.ingredient-card:nth-child(3) { animation-delay: 0.15s; }
.ingredient-card:nth-child(4) { animation-delay: 0.2s; }
.ingredient-card:nth-child(5) { animation-delay: 0.25s; }

.ingredient-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.ingredient-card.low-stock {
  border-left: 3px solid #ef4444;
}

.ingredient-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingredient-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}

.ingredient-current {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.ingredient-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #ef4444;
}

.ingredient-warning .icon {
  width: 14px;
  height: 14px;
}

.stock-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stock-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
}

.stock-item:nth-child(1) { animation-delay: 0.05s; }
.stock-item:nth-child(2) { animation-delay: 0.08s; }
.stock-item:nth-child(3) { animation-delay: 0.11s; }

.stock-item.addition {
  border-left: 3px solid #10b981;
}

.stock-item.consumption {
  border-left: 3px solid #f59e0b;
}

.stock-icon {
  font-size: 1.25rem;
}

.stock-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stock-ingredient {
  font-weight: 500;
}

.stock-quantity {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.stock-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.stock-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Info Card */
.info-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  animation: slideDown 0.3s ease-out;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.info-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-label {
  color: var(--color-text-secondary);
}

.info-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Sales */
.action-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-lg);
}

.sales-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sale-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
  transition: all var(--transition-base);
}

.sale-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.sale-party {
  font-weight: 600;
}

.sale-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10b981;
}

.sale-details {
  display: flex;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.sale-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.egg-type {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}

.sale-link {
  font-size: 0.875rem;
  color: var(--color-accent-primary);
}

/* Egg Type Grid */
.egg-type-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.egg-type-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.egg-type-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

/* Total Card */
.total-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.total-row-main {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.total-label {
  font-weight: 500;
}

.total-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.total-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.currency-symbol {
  font-size: 1.25rem;
  font-weight: 600;
}

.total-input {
  max-width: 150px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

.total-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Detail Card */
.detail-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
}

.detail-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
}

.detail-section {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.detail-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.detail-price {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.detail-summary {
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.summary-total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
}

.detail-notes {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
  animation: fadeIn 0.4s ease-out;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

/* Section */
.section {
  margin-bottom: var(--space-xl);
  animation: slideUp 0.3s ease-out;
  animation-fill-mode: both;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Responsive */
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-actions-section .action-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .radio-group {
    flex-direction: column;
  }
  
  .header-farm-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Turbo loading states */
.turbo-progress-bar {
  height: 3px;
  background: var(--gradient-primary);
}

/* ============================================
   Icon Styles
   ============================================ */

/* Base Icon Styles */
.icon {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
  transition: all var(--transition-fast);
}

.icon.text-accent {
  color: var(--color-accent-primary);
}

/* Header Logo Icon */
.header-logo .icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent-primary);
}

/* Navigation Icons */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.nav-icon .icon {
  color: inherit;
}

.nav-item.active .nav-icon .icon {
  color: var(--color-accent-primary);
}

/* Stat Card Icons */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-xs);
}

.stat-icon .icon {
  color: var(--color-text-secondary);
}

.stat-production .stat-icon .icon { color: #10b981; }
.stat-current .stat-icon .icon { color: #3b82f6; }
.stat-mortality .stat-icon .icon { color: #ef4444; }
.stat-updated .stat-icon .icon { color: #f59e0b; }

/* Shed Card Icons */
.shed-name-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.shed-icon {
  color: var(--color-text-secondary);
}

.shed-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.shed-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shed-stat-label .icon {
  opacity: 0.7;
}

/* Action Button Icons */
.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-xs);
}

.action-icon .icon {
  color: var(--color-accent-primary);
}

.action-btn:hover .action-icon {
  background: rgba(233, 69, 96, 0.15);
}

/* Page Title Icons */
.page-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-icon {
  color: var(--color-accent-primary);
}

/* Form Section Title Icons */
.form-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section-title .icon {
  color: var(--color-accent-primary);
}

/* Form Label Icons */
.form-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-label .icon {
  opacity: 0.7;
}

/* Button Icons */
.btn .icon {
  flex-shrink: 0;
}

/* Back Link Icons */
.back-link .icon {
  transition: transform var(--transition-fast);
}

.back-link:hover .icon {
  transform: translateX(-4px);
}

/* Alert Icons */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.alert .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Dropdown Icons */
.dropdown-item {
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.dropdown-item .dropdown-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  font-size: inherit;
}

.dropdown-item .dropdown-icon .icon {
  color: var(--color-text-secondary);
}

.dropdown-logout .dropdown-icon .icon {
  color: var(--color-accent-primary);
}

.dropdown-item .dropdown-text {
  flex: 1;
}

.dropdown-item .dropdown-sub {
  margin-top: 0;
  margin-left: auto;
}

/* Record Card Icons */
.record-shed-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.record-icon {
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.record-birds {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.record-birds .icon {
  opacity: 0.7;
}

.record-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.record-label .icon {
  opacity: 0.7;
}

/* Stock Item Icons */
.stock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.stock-item.addition .stock-icon .icon { color: #10b981; }
.stock-item.consumption .stock-icon .icon { color: #f59e0b; }

.stock-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-time .icon {
  opacity: 0.6;
}

/* Ingredient Card Icons */
.ingredient-icon {
  color: var(--color-text-secondary);
}

/* Sale Card Icons */
.sale-party,
.sale-quantity,
.sale-time,
.sale-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sale-party .icon,
.sale-quantity .icon,
.sale-time .icon,
.sale-date .icon {
  opacity: 0.7;
}

.sale-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sale-link:hover .icon {
  transform: translateX(4px);
}

/* Detail Card Icons */
.detail-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.detail-title .icon {
  color: var(--color-text-secondary);
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.detail-section-title .icon {
  opacity: 0.7;
}

.summary-row {
  display: flex;
  align-items: center;
}

.summary-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Info Card Icons */
.info-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.info-label .icon {
  opacity: 0.7;
}

/* Radio Option Icons */
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.radio-label .icon {
  color: var(--color-accent-primary);
}

/* Empty State Icons */
.empty-state .icon {
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-bottom: var(--space-md);
}

/* Login Page Icons */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo .icon {
  width: 64px;
  height: 64px;
  color: var(--color-accent-primary);
}

/* ============================================
   Production Records Styles
   ============================================ */

/* Missing Records Warning */
.alert-content {
  flex: 1;
}

.alert-content strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.alert-content p {
  margin: 0;
  font-size: 0.875rem;
}

.missing-list {
  margin: var(--space-sm) 0 0 var(--space-lg);
  padding: 0;
  font-size: 0.875rem;
}

.missing-list li {
  margin-bottom: var(--space-xs);
}

/* Record Card Warning State */
.shed-record-card.has-warning {
  border-left: 3px solid #f59e0b;
}

.record-warning {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  color: #f59e0b;
}

.record-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Info Cards */
.info-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.info-card-empty {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
}

.info-card-empty p {
  margin: 0;
  font-size: 0.875rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.info-item.info-total {
  grid-column: 1 / -1;
  background: rgba(212, 165, 116, 0.1);
  font-weight: 600;
}

.info-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.info-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Sales Summary in Info Card */
.sales-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sale-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.sale-party {
  font-size: 0.875rem;
}

.sale-eggs {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.sale-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.no-sales {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* Production Calculation Display */
.production-summary {
  background: rgba(212, 165, 116, 0.05);
}

.calculation-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.calc-row.calc-minus::before {
  content: "−";
  color: #ef4444;
  font-weight: bold;
  margin-right: var(--space-sm);
}

.calc-row.calc-plus::before {
  content: "+";
  color: #10b981;
  font-weight: bold;
  margin-right: var(--space-sm);
}

.calc-row.calc-result {
  background: rgba(212, 165, 116, 0.15);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.calc-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.calc-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

.calc-production {
  font-size: 1.25rem;
  color: #10b981;
}

.calc-production.zero {
  color: var(--color-text-muted);
}

.calc-production.positive {
  color: #10b981;
}

/* Checkbox Option */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-option:has(.checkbox-input:checked) {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  accent-color: #10b981;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
}

.checkbox-icon {
  display: none;
}

.checkbox-option:has(.checkbox-input:checked) .checkbox-icon {
  display: inline;
  color: #10b981;
}

/* Sales Confirmed */
.sales-confirmed {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  color: #10b981;
}

.form-hint.warning {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #f59e0b;
}

/* Alert Info */
.alert-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: #3b82f6;
}

.alert-info .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form hint */
.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Locked Badge */
.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: var(--space-sm);
}

.sale-card.locked {
  opacity: 0.7;
  border-left: 3px solid rgba(239, 68, 68, 0.5);
}

/* Record Locked Message */
.record-locked {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
}

.record-locked .icon {
  flex-shrink: 0;
}

/* Shed Sale Form Styles */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 600px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shed-sale-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.shed-sale-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.shed-sale-card.locked {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.2);
}

.shed-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shed-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.shed-name {
  font-weight: 600;
  font-size: 1rem;
}

.locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
}

.shed-stock {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stock-value {
  font-weight: 600;
  color: var(--accent-primary);
}

.shed-egg-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 500px) {
  .shed-egg-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.egg-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.egg-input-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.egg-qty-input {
  padding: 0.5rem !important;
  font-size: 1rem !important;
  text-align: center;
}

.shed-subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.subtotal-value {
  font-weight: 600;
  color: var(--accent-primary);
}

.locked-message {
  text-align: center;
  padding: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.locked-message p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

/* Shed Status Components */
.shed-status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.shed-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.shed-status-item.locked .shed-name {
  color: var(--color-text-muted);
}

.shed-status-item.open .shed-name {
  color: var(--color-text-primary);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-tag.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-tag.blocked {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.status-tag.open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Shed Status Grid for New Sale */
.shed-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.shed-mini-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.shed-mini-status.available {
  border-left: 2px solid #10b981;
}

.shed-mini-status.blocked {
  border-left: 2px solid #ef4444;
  opacity: 0.7;
}

.shed-mini-status .status-icon {
  display: flex;
  align-items: center;
}

.shed-mini-status.available .status-icon {
  color: #10b981;
}

.shed-mini-status.blocked .status-icon {
  color: #ef4444;
}

/* Date Today Badge */
.date-today-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--accent-primary);
  color: var(--color-bg-primary);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: var(--space-xs);
}

/* Sale Locked Badge */
.sale-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
}

/* Date badge partial status */
.date-badge.partial {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Shed tag locked state */
.shed-tag.locked {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px dashed rgba(239, 68, 68, 0.3);
}

/* Button hint text */
.btn-hint {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  margin-left: var(--space-xs);
}

/* Summary Breakdown */
.summary-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
}

.summary-label {
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 600;
  color: var(--text-primary);
}

.total-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--space-sm) 0;
}

.total-eggs {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Shed Breakdown in Sale Details */
.shed-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.shed-breakdown-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.shed-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.shed-breakdown-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.shed-breakdown-total {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.875rem;
}

.shed-breakdown-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.breakdown-type {
  color: var(--text-secondary);
}

.breakdown-qty {
  font-weight: 600;
  color: var(--text-primary);
}

/* Shed Tag in Sales List */
.shed-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #ffc107;
}

/* Day Calendar Strip */
.day-calendar {
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) 0;
}

.calendar-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: var(--space-sm) var(--space-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.calendar-scroll::-webkit-scrollbar {
  display: none;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.calendar-day:not(.disabled):hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.calendar-day.selected {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.calendar-day.selected .day-name,
.calendar-day.selected .day-number {
  color: var(--bg-primary);
}

.calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.day-name {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.day-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.day-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calendar Status Colors */
.calendar-day.complete .day-indicator {
  background: #22c55e;
}

.calendar-day.partial .day-indicator {
  background: #eab308;
}

.calendar-day.missing .day-indicator {
  background: #ef4444;
}

.calendar-day.locked .day-indicator {
  background: #6b7280;
}

.calendar-day.today .day-indicator {
  background: var(--accent-primary);
  animation: pulse 2s infinite;
}

.calendar-day.future .day-indicator {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.calendar-day.none .day-indicator {
  background: rgba(255, 255, 255, 0.1);
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-item.complete .legend-dot {
  background: #22c55e;
}

.legend-item.partial .legend-dot {
  background: #eab308;
}

.legend-item.missing .legend-dot {
  background: #ef4444;
}

/* Missing Day Alert */
.missing-day-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.missing-day-alert-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.missing-day-alert-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #ef4444;
}

.missing-day-alert p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.missing-day-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Skip Request Form */
.skip-request-form {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.skip-request-form h4 {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
}

/* Date Header */
.date-header {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  text-align: center;
}

.date-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.date-full {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Missing Sheds List */
.missing-sheds-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.missing-shed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Record Card with Warning */
.shed-record-card.has-warning {
  border-left: 3px solid #f59e0b;
}

.record-status.status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Record Locked Badge */
.record-locked-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(107, 114, 128, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Skip Section */
.skip-section {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.skip-toggle {
  margin-bottom: var(--space-sm);
}

.skip-reason-form {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

/* Section Hint */
.section-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Existing Sales */
.existing-sales-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.existing-sale-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.existing-sale-item:last-of-type {
  border-bottom: none;
}

.sale-party {
  font-weight: 500;
}

.sale-qty {
  color: var(--accent-primary);
  font-weight: 600;
}

.existing-sales-total {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

.no-sales-message {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: var(--space-sm);
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* Inline Sales */
.inline-sales-section {
  margin-top: var(--space-md);
}

.add-sale-btn {
  margin-bottom: var(--space-md);
}

.inline-sales-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.inline-sale-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.inline-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.inline-sale-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.remove-sale-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-sale-quantities,
.inline-sale-prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.qty-group,
.price-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qty-group label,
.price-group label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.qty-group input,
.price-group input {
  padding: 0.4rem !important;
  font-size: 0.875rem !important;
  text-align: center;
}

.no-sale-option {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Production Calculation Display */
.production-calculation {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
}

.calc-row span:last-child {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

.calc-subtract span:first-child {
  color: #ef4444;
}

.calc-add span:first-child {
  color: #22c55e;
}

.calc-result {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.calc-result span:last-child {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

/* Info Card */
.info-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.info-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-primary);
}

/* Date Badge */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.date-badge.locked {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

/* Day Summary Card */
.day-summary-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.day-summary-card .summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
}

.day-summary-card .summary-row span:last-child {
  font-weight: 600;
}

.day-summary-card .summary-total {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.day-summary-card .summary-total span:last-child {
  color: var(--accent-primary);
  font-size: 1.125rem;
}

/* Section Count */
.section-count {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Old Gap Locked Card */
.shed-record-card.locked-gap {
  border-color: rgba(107, 114, 128, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.old-gap-message {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.gap-icon {
  color: #6b7280;
  margin-bottom: var(--space-sm);
}

.old-gap-message p {
  margin: 0;
  color: var(--text-secondary);
}

.old-gap-message p strong {
  color: var(--text-primary);
}

.gap-reason {
  font-size: 0.8125rem;
  margin-top: var(--space-xs) !important;
}

/* Status Colors */
.record-status.status-locked {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.record-status.status-missing {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Skip Approval Section */
.skip-approval-section {
  padding: var(--space-md);
}

.missing-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: #ef4444;
}

.missing-info p {
  margin: 0;
  font-size: 0.875rem;
}

.skip-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-sm) 0;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.or-divider span {
  padding: 0 var(--space-md);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Skip Approval Required Page */
.skip-approval-required {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.skip-icon {
  color: #f59e0b;
  margin-bottom: var(--space-md);
}

.skip-approval-required h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
}

.skip-approval-required > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.skip-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto;
}

.option-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
}

.option-card.recommended {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.option-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
}

.option-card.recommended h3 {
  color: #22c55e;
}

.option-card.skip h3 {
  color: #f59e0b;
}

.option-card p {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Skip Approval Form Section */
.skip-approval-form-section {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skip-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: #f59e0b;
}

.skip-header h3 {
  margin: 0;
  font-size: 1rem;
}

.skip-header p {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.skip-reason-section {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Batch Schedules Section (Supervisor Home)
   ============================================ */

.schedules-section {
  margin-bottom: var(--space-xl);
}

.schedules-section .section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.schedule-cards {
  display: flex;
  overflow-x: auto;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.schedule-cards::-webkit-scrollbar {
  display: none;
}

.schedule-card {
  flex: 0 0 280px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.schedule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.schedule-card.overdue {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--color-bg-primary) 100%);
}

.schedule-card.due_today {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--color-bg-primary) 100%);
}

.schedule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.schedule-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.schedule-type-badge.vaccination {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.schedule-type-badge.medication {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.schedule-type-badge.shifting {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
}

.schedule-type-badge.dr_visit {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
}

.schedule-type-badge.debeaking {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}

.schedule-type-badge.weighing {
  background: rgba(0, 188, 212, 0.15);
  color: #00bcd4;
}

.schedule-date-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
}

.schedule-date-badge.overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.schedule-date-badge.today {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.schedule-card-body {
  margin-bottom: var(--space-sm);
}

.schedule-card-body .schedule-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.schedule-shed {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.schedule-shed .week-tag {
  font-size: 0.7rem;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
}

.schedule-card-footer {
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-full-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Responsive Schedules */
@media (max-width: 480px) {
  .schedule-card {
    flex: 0 0 250px;
  }
}

/* ============================================
   Date Picker & Historical Stats
   ============================================ */

.section-header-with-calendar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.section-header-with-calendar .section-title {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-icon-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8125rem;
}

/* Date Picker Dropdown */
.date-picker-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  z-index: 50;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.2s ease-out;
}

.date-picker-dropdown.open {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: var(--color-text-primary);
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-xs);
  max-height: 300px;
  overflow-y: auto;
}

.date-picker-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xs) var(--space-xxs);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  min-height: 56px;
}

.date-picker-day:hover {
  background: rgba(255, 255, 255, 0.1);
}

.date-picker-day.selected {
  background: var(--color-primary);
  color: #000;
}

.date-picker-day.selected .day-name {
  color: rgba(0, 0, 0, 0.7);
}

.date-picker-day.today {
  border: 2px solid var(--color-primary);
}

.date-picker-day.yesterday {
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.date-picker-day .day-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.date-picker-day.selected .day-number {
  color: #000;
}

.date-picker-day .day-name {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-picker-day .day-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.6);
  margin-top: 2px;
}

.date-picker-day .day-indicator.complete {
  background: var(--color-success);
}

.date-picker-legend {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.6);
}

.legend-dot.complete {
  background: var(--color-success);
}

/* Historical Stats Section */
.historical-stats {
  position: relative;
}

.historical-stats .section-title {
  font-size: 1.125rem;
}

.stats-summary-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.summary-item svg {
  color: var(--color-success);
}

/* Empty State Inline */
.empty-state-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  text-align: center;
  gap: var(--space-sm);
}

.empty-state-inline svg {
  opacity: 0.5;
}

.empty-state-inline p {
  margin: 0;
  font-size: 0.875rem;
}

/* Today's Progress Section */
.today-stats .section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.today-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.stats-grid.compact {
  gap: var(--space-sm);
}

.stats-grid.compact .stat-card {
  padding: var(--space-md);
}

.stats-grid.compact .stat-icon {
  width: 40px;
  height: 40px;
}

.stats-grid.compact .stat-value {
  font-size: 1.25rem;
}

.stats-grid.compact .stat-label {
  font-size: 0.75rem;
}

/* Stat card for sales */
.stat-card.stat-sales {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.stat-card.stat-sales .stat-icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

/* ============================================
   Calendar Strip (like production/sales)
   ============================================ */

.calendar-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.calendar-strip::-webkit-scrollbar {
  display: none;
}

.supervisor-dashboard .calendar-day,
.supervisor-dashboard .calendar-strip > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  max-width: 56px;
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.supervisor-dashboard .calendar-day:hover,
.supervisor-dashboard .calendar-strip > a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}


.supervisor-dashboard .calendar-day.today {
  border-color: var(--color-primary);
}

.supervisor-dashboard .calendar-day.complete {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.supervisor-dashboard .calendar-day.partial {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
}

/* Selected state - MUST come after complete/partial to override */
.supervisor-dashboard .calendar-strip .calendar-day.selected,
.supervisor-dashboard .calendar-strip a.calendar-day.selected,
.supervisor-dashboard .calendar-strip > a.selected {
  background: linear-gradient(135deg, var(--color-primary) 0%, #059669 100%) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.supervisor-dashboard .calendar-strip .calendar-day.selected .day-name,
.supervisor-dashboard .calendar-strip .calendar-day.selected .day-number,
.supervisor-dashboard .calendar-strip a.selected .day-name,
.supervisor-dashboard .calendar-strip a.selected .day-number {
  color: #fff !important;
}

.supervisor-dashboard .calendar-strip .calendar-day.selected .partial-badge,
.supervisor-dashboard .calendar-strip a.selected .partial-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.supervisor-dashboard .day-name {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.supervisor-dashboard .day-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.supervisor-dashboard .day-status-icon {
  margin-top: 4px;
}

.supervisor-dashboard .day-status-icon.complete {
  color: var(--color-success);
}

.supervisor-dashboard .partial-badge {
  font-size: 0.5rem;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.3);
  color: #eab308;
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* Date Header */
.date-header {
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
}

.date-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.date-header .date-detail {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Empty State Inline */
.empty-state-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  text-align: center;
  gap: var(--space-sm);
}

.empty-state-inline svg {
  opacity: 0.5;
  color: var(--color-text-muted);
}

.empty-state-inline p {
  margin: 0;
  font-size: 0.875rem;
}

/* Stats Summary Bar */
.stats-summary-bar {
  display: flex;
  justify-content: center;
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}

.stats-summary-bar .summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.stats-summary-bar .summary-item svg {
  color: var(--color-success);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .calendar-strip {
    padding: var(--space-sm);
  }
  
  .supervisor-dashboard .calendar-day,
  .supervisor-dashboard .calendar-strip > a {
    min-width: 44px;
    max-width: 48px;
    padding: var(--space-xs);
  }
  
  .supervisor-dashboard .day-number {
    font-size: 1rem;
  }
}
