:root {
  --seeds-yellow: #d9b11e;
  --seeds-yellow-soft: #efe7b0;
  --seeds-dark: #6b6b6b;
  --seeds-dark-2: #5c5c5c;
  --seeds-bg: #ffffff;
  --seeds-card: #f8f3dc;
  --seeds-text: #2f2f2f;
  --seeds-muted: #7a7a7a;
}

body {
  background-color: var(--seeds-bg);
  color: var(--seeds-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.page {
  min-height: 100vh;
}

/* Sidebar */
.navbar-vertical {
  background-color: var(--seeds-dark) !important;
  border-right: none !important;
  min-width: 120px;
}

.navbar-vertical .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.8rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.navbar-vertical .nav-link {
  color: var(--seeds-yellow) !important;
  font-weight: 700;
  border-radius: 6px;
  margin: 0.2rem 0;
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-link.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: white !important;
}

/* Main wrapper */
.page-wrapper {
  background-color: var(--seeds-bg);
}

/* Top bar */
.seeds-topbar {
  background-color: var(--seeds-dark);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.seeds-topbar-left {
  display: flex;
  align-items: center;
}

.seeds-topbar-logo {
  height: 54px;
  width: auto;
}

.seeds-topbar-right {
  display: flex;
  gap: 12px;
}

.seeds-topbar .btn {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  border: none;
}

.seeds-btn-yellow {
  background-color: var(--seeds-yellow);
  color: white;
}

.seeds-btn-yellow:hover {
  background-color: #c6a118;
  color: white;
}

/* Header */
.page-header {
  background: transparent;
  margin-bottom: 0.5rem;
}

.container-lg {
  max-width: 1050px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #d99912;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.card-soft {
  background-color: var(--seeds-card);
}

.card-header {
  background-color: transparent !important;
  border-bottom: none !important;
  padding-bottom: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d2d2d;
}

.subheader {
  color: #8b7a2e;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Table */
.table thead th {
  color: #8a8a8a;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
}

.table td {
  vertical-align: middle;
  font-size: 1rem;
}

/* Badges */
.badge.bg-green-lt {
  background: #dff1df !important;
  color: #2f8f46 !important;
}

.badge.bg-yellow-lt {
  background: #f9ebc8 !important;
  color: #d09000 !important;
}

.badge.bg-red-lt {
  background: #f7d9d9 !important;
  color: #c24545 !important;
}

.badge.bg-secondary-lt {
  background: #e5e5e5 !important;
  color: #666 !important;
}

/* Login page */
.login-page {
  min-height: 100vh;
  background-color: #ece7be;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 420px;
  border-radius: 18px !important;
  background: #fffdf6;
  padding: 0.5rem;
}

.login-title {
  color: #d29d11;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.form-control {
  border-radius: 10px !important;
  background-color: #f7f3d8 !important;
  border: none !important;
  box-shadow: none !important;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(217, 177, 30, 0.2) !important;
}

select.form-control {
  appearance: auto;
  color: #666;
}

.btn-primary {
  background-color: var(--seeds-yellow) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #c9a317 !important;
}

.seeds-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--seeds-yellow);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-right: 10px;
}

.auth-link {
  color: #5b5bd6;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-topbar {
  background-color: var(--seeds-dark);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.auth-topbar-logo {
  height: 54px;
  width: auto;
}

.value-chain-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vc-box {
  background: #f7f1cf;
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 150px;
  text-align: center;
  flex: 1;
}

.vc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8b7a2e;
  margin-bottom: 6px;
}

.vc-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2d2d2d;
}

.vc-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: #9c9c9c;
}

.table-scroll-box {
  max-height: 320px;
  overflow-y: auto;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: #f6f6f6;
}

.sidebar {
  width: 230px;
  background: #6f6f6f;
  color: #fff;
  padding: 16px 14px;
  flex-shrink: 0;
}

.sidebar-brand {
  margin-bottom: 20px;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #f4c21a;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.main-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 58px;
  background: #6f6f6f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.topbar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.topbar-right {
  display: flex;
  gap: 12px;
}

.topbar-btn {
  background: #d8b11a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 14px;
}

.page-content {
  padding: 24px 28px;
}

.dashboard-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d59a11;
  margin: 0;
}

.dashboard-subtitle {
  color: #6b6b6b;
  margin-top: 2px;
}

.table-scroll-box {
  max-height: 320px;
  overflow-y: auto;
}

.value-chain-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vc-box {
  background: #f3edc9;
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 150px;
  text-align: center;
  flex: 1;
}

.vc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #9a7a10;
  margin-bottom: 6px;
}

.vc-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2b3a;
}

.vc-arrow {
  font-size: 1.4rem;
  color: #7e7e7e;
}

/* Sources table — tab badges por pestaña */
.badge.tab-overview     { background: #dce8f7 !important; color: #1a5fa8 !important; }
.badge.tab-production   { background: #d9f0e0 !important; color: #1e7a3a !important; }
.badge.tab-storage      { background: #fde8cc !important; color: #b85c00 !important; }
.badge.tab-trade        { background: #e8d9f7 !important; color: #6a1ab8 !important; }
.badge.tab-consumption  { background: #fde8e8 !important; color: #b81a1a !important; }
.badge.tab-markets      { background: #d9f0f0 !important; color: #0e6e6e !important; }

/* Sources search box */
.sources-search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sources-search-wrapper .search-icon {
  position: absolute;
  left: 9px;
  color: #9a8a3a;
  font-size: 0.95rem;
  pointer-events: none;
}
.sources-search-wrapper input {
  padding-left: 28px !important;
  background-color: #f0e8c0 !important;
  border: 1px solid #d9c96a !important;
  border-radius: 8px !important;
}