:root {
  --agro-primary: #103f31;
  --agro-primary-2: #0f6b4f;
  --agro-mint: #c9f2de;
  --agro-sky: #e8f1ff;
  --agro-amber: #f4ad35;
  --agro-red: #c64f4a;
  --agro-ink: #112034;
  --agro-muted: #667085;
  --agro-line: #d9e2ec;
  --agro-bg: #f6f8fb;
  --agro-card: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--agro-bg);
  color: var(--agro-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

.btn,
.form-control,
.form-select,
.card,
.dropdown-menu,
.alert,
.badge {
  border-radius: var(--radius);
}

.btn-primary {
  --bs-btn-bg: var(--agro-primary);
  --bs-btn-border-color: var(--agro-primary);
  --bs-btn-hover-bg: #0a2f24;
  --bs-btn-hover-border-color: #0a2f24;
}

.btn-outline-primary {
  --bs-btn-color: var(--agro-primary);
  --bs-btn-border-color: var(--agro-primary);
  --bs-btn-hover-bg: var(--agro-primary);
  --bs-btn-hover-border-color: var(--agro-primary);
}

.text-primary {
  color: var(--agro-primary) !important;
}

.bg-primary-soft {
  background: #e4f6ed;
}

.bg-amber-soft {
  background: #fff4dd;
}

.bg-sky-soft {
  background: var(--agro-sky);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: 280px;
  background: var(--agro-primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  transition: transform 0.2s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--agro-mint);
  color: var(--agro-primary);
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #f5a91f;
  color: #113123;
}

.sidebar-link:hover .material-symbols-outlined,
.sidebar-link.active .material-symbols-outlined {
  color: #113123;
}

.sidebar-link.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-avatar,
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #d9fff0;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-color: transparent;
}

.app-main {
  min-height: 100vh;
  margin-left: 280px;
  padding: 24px;
  transition: margin-left 0.2s ease;
}

body.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .app-main {
  margin-left: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-topbar {
  margin: -24px -24px 22px;
  padding: 10px 24px;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--agro-line);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(12px);
}

.admin-search {
  position: relative;
  width: min(100%, 420px);
}

.admin-search .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--agro-muted);
  font-size: 18px;
}

.admin-search input {
  height: 34px;
  padding-left: 38px;
  border-radius: 8px;
  background: #eef3f9;
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--agro-ink);
}

.icon-button:hover {
  background: #edf2f7;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.page-kicker {
  margin: 4px 0 0;
  color: var(--agro-muted);
  font-size: 14px;
}

.stat-card,
.panel,
.auth-card {
  background: var(--agro-card);
  border: 1px solid var(--agro-line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.stat-card {
  padding: 18px;
  min-height: 128px;
}

.admin-stat {
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.admin-stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #c9f2de;
  color: #0f6b4f;
}

.admin-stat-trend {
  color: #0f9f6e;
  font-size: 13px;
  font-weight: 800;
}

.stat-label {
  color: var(--agro-muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
}

.stat-note {
  margin-top: 8px;
  color: var(--agro-muted);
  font-size: 13px;
}

.panel {
  padding: 18px;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-filter-panel {
  padding: 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid var(--agro-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--agro-ink);
  font-size: 12px;
  font-weight: 750;
}

.filter-pill.active {
  background: #dff7ea;
  border-color: #c7ecd8;
  color: #0f6b4f;
}

.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.table {
  margin-bottom: 0;
  --bs-table-color: var(--agro-ink);
}

.table th {
  color: var(--agro-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table thead th {
  background: #f1f5fb;
  border-bottom: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.admin-table tbody td {
  padding: 16px 12px;
  border-color: #e7edf4;
  vertical-align: middle;
  font-size: 13px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #d8ebff;
  color: #12558f;
  font-size: 11px;
  font-weight: 800;
}

.role-badge.admin {
  background: #ffe8c4;
  color: #8a5200;
}

.role-badge.investor {
  background: #fff0bd;
  color: #745100;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #087847;
  font-size: 11px;
  font-weight: 850;
}

.status-chip.warning {
  background: #ffedd5;
  color: #a45100;
}

.status-chip.danger {
  background: #fee2e2;
  color: #b42318;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--agro-primary-2);
}

.status-dot.warning::before {
  background: var(--agro-amber);
}

.status-dot.danger::before {
  background: var(--agro-red);
}

.progress {
  height: 8px;
  border-radius: 999px;
}

.progress-bar {
  background-color: var(--agro-primary-2);
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 210px;
  padding: 14px 10px 4px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.mini-chart span {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: var(--agro-primary-2);
}

.mini-chart span:nth-child(even) {
  background: var(--agro-amber);
}

.system-chart {
  position: relative;
  height: 285px;
  border-radius: 8px;
  background:
    linear-gradient(#edf2f7 1px, transparent 1px),
    linear-gradient(90deg, #edf2f7 1px, transparent 1px),
    #ffffff;
  background-size: 100% 25%, 16.66% 100%;
  overflow: hidden;
}

.system-chart::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 58px;
  height: 120px;
  border-radius: 50% 50% 0 0;
  border-top: 4px solid #0f6b4f;
  transform: skewX(-8deg);
}

.chart-months {
  position: absolute;
  inset: auto 24px 22px;
  display: flex;
  justify-content: space-between;
  color: var(--agro-muted);
  font-size: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dff7ea;
  color: #0f6b4f;
}

.activity-icon.warning {
  background: #ffedd5;
  color: #a45100;
}

.activity-icon.danger {
  background: #fee2e2;
  color: #b42318;
}

.image-panel {
  min-height: 280px;
  overflow: hidden;
  position: relative;
  color: #ffffff;
  background: #0f3f31;
}

.image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.image-panel-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(4, 38, 29, 0.82));
}

.donut {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(var(--agro-primary-2) 0 48%, var(--agro-amber) 48% 75%, #5f7fbb 75% 90%, #dde6ef 90% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #ffffff;
}

.map-board {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--agro-line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 63, 49, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(16, 63, 49, 0.07) 1px, transparent 1px),
    #eaf5ed;
  background-size: 42px 42px;
}

.monitoring-photo-map {
  min-height: 390px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0f3f31;
}

.monitoring-photo-map img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px 999px 999px 2px;
  transform: rotate(-45deg);
  background: #0f6b4f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.map-pin span {
  transform: rotate(45deg);
  font-size: 16px;
}

.map-pin.warning {
  background: #f5a91f;
}

.map-pin.danger {
  background: #dc2626;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.report-section {
  margin-top: 16px;
}

.report-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 850;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.asset-card {
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.asset-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  background: #eef3f1;
}

.asset-card-body {
  padding: 12px;
}

.asset-card h3,
.asset-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.asset-card p {
  margin: 6px 0 0;
  color: var(--agro-muted);
  font-size: 13px;
  line-height: 1.45;
}

.selectable-asset {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.selectable-asset:hover,
.selectable-asset.active {
  border-color: #0f6b4f;
  box-shadow: 0 10px 24px rgba(16, 107, 79, 0.14);
  transform: translateY(-1px);
}

.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.asset-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #0f6b4f;
  font-size: 11px;
  font-weight: 800;
}

.input-with-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
}

.input-with-preview img {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.input-with-preview strong,
.input-with-preview p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 240px;
}

.history-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
  border: 1px solid var(--agro-line);
}

.history-copy {
  min-width: 0;
}

.history-copy strong,
.history-copy small {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.history-copy small {
  margin-top: 4px;
  color: var(--agro-muted);
  font-size: 12px;
  line-height: 1.45;
}

.crop-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.crop-strip-card {
  flex: 0 0 220px;
  min-height: 150px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #ffffff;
  background: #0f3f31;
}

.crop-strip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.crop-strip-card span {
  position: absolute;
  inset: auto 10px 10px;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.planting-card {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
}

.planting-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.planting-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 850;
}

.calendar-widget {
  max-width: 420px;
  margin: 0 auto;
}

.calendar-head,
.calendar-week,
.calendar-grid,
.calendar-legend {
  display: grid;
  align-items: center;
}

.calendar-head {
  grid-template-columns: 34px 1fr 34px;
  gap: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.calendar-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(82px, 0.8fr);
  gap: 8px;
}

.calendar-picker .form-select {
  min-height: 38px;
  border-radius: 8px;
  background: var(--agro-amber);
  color: #ffffff;
  border-color: var(--agro-amber);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.calendar-picker .form-select:focus {
  border-color: #d88b08;
  box-shadow: 0 0 0 0.2rem rgba(245, 169, 31, 0.2);
}

.calendar-week,
.calendar-grid {
  grid-template-columns: repeat(7, 1fr);
}

.calendar-week {
  margin-bottom: 8px;
  color: var(--agro-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-grid {
  gap: 7px;
}

.calendar-grid button,
.calendar-grid span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--agro-ink);
  font-size: 13px;
}

.calendar-grid button:hover {
  background: #e9f7ef;
}

.calendar-grid .selected {
  background: var(--agro-primary);
  color: #ffffff;
  font-weight: 850;
}

.calendar-grid .muted {
  color: #b7c1cd;
}

.calendar-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--agro-muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--agro-primary);
}

.calendar-legend i.warning {
  background: var(--agro-amber);
}

.product-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 245px;
  padding: 10px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--agro-ink);
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover,
.product-card.active {
  border-color: var(--agro-primary-2);
  box-shadow: 0 12px 26px rgba(16, 63, 49, 0.14);
  transform: translateY(-1px);
}

.product-card img {
  width: 100%;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.product-card strong {
  font-size: 15px;
  font-weight: 850;
}

.product-card small {
  color: var(--agro-muted);
  line-height: 1.45;
}

.katalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.katalog-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.katalog-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 48px);
  padding: 12px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: auto;
}

.katalog-sidebar-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #eff7f2;
  color: var(--agro-primary);
}

.katalog-sidebar-head .material-symbols-outlined {
  font-size: 28px;
}

.katalog-sidebar-head strong,
.katalog-sidebar-head small {
  display: block;
}

.katalog-sidebar-head small {
  color: var(--agro-muted);
  font-size: 12px;
}

.katalog-category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.katalog-category-link {
  display: grid;
  grid-template-columns: 28px 30px minmax(0, 1fr) auto;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--agro-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.katalog-category-link:hover,
.katalog-category-link.active {
  border-color: rgba(245, 169, 31, 0.58);
  background: #f5a91f;
  color: #073c2e;
}

.katalog-category-link .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #eff7f2;
  color: var(--agro-primary);
  font-size: 20px;
  line-height: 1;
}

.katalog-category-link:hover .material-symbols-outlined,
.katalog-category-link.active .material-symbols-outlined {
  background: rgba(255, 255, 255, 0.78);
}

.katalog-category-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--agro-muted);
  font-size: 12px;
  font-weight: 900;
}

.katalog-category-link:hover .katalog-category-index,
.katalog-category-link.active .katalog-category-index {
  background: #073c2e;
  color: #ffffff;
}

.katalog-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.katalog-category-link strong {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
}

.katalog-content {
  min-width: 0;
}

.katalog-focus-panel {
  display: grid;
  gap: 14px;
}

.katalog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.katalog-card > img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #eef3f1;
}

.katalog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.katalog-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.katalog-card p {
  margin: 0;
  color: var(--agro-muted);
  font-size: 13px;
  line-height: 1.55;
}

.katalog-price {
  color: var(--agro-primary);
  font-size: 18px;
  font-weight: 850;
}

.katalog-price small {
  color: var(--agro-muted);
  font-size: 12px;
}

.katalog-card details {
  padding: 10px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #f8fafc;
}

.katalog-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.katalog-admin-form {
  padding: 16px;
}

.katalog-admin-thumb {
  width: 92px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.katalog-admin-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.katalog-admin-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  color: var(--agro-ink);
  text-decoration: none;
  background: #ffffff;
}

.katalog-admin-row:hover,
.katalog-admin-row.active {
  border-color: rgba(245, 169, 31, 0.62);
  background: #fff8ea;
  color: var(--agro-ink);
}

.katalog-admin-row img {
  width: 64px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.katalog-admin-row strong,
.katalog-admin-row small {
  display: block;
}

.katalog-admin-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
}

.katalog-admin-row small {
  color: var(--agro-muted);
  font-size: 12px;
}

.katalog-admin-row em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f7ef;
  color: var(--agro-primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.katalog-editor-form .form-label {
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .guide-panel {
    grid-template-columns: 1fr;
  }

  .guide-action {
    justify-self: stretch;
  }

  .landing-flow,
  .landing-system-map {
    grid-template-columns: 1fr;
  }

  .system-node.primary {
    grid-column: auto;
  }

  .landing-visual-stack {
    min-height: auto;
  }

  .landing-visual-stack > img {
    min-height: 280px;
  }

  .landing-data-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .katalog-shell {
    grid-template-columns: 1fr;
  }

  .katalog-sidebar {
    position: static;
  }

  .katalog-category-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .katalog-category-link {
    grid-template-columns: 28px 30px minmax(0, 1fr) auto;
  }
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
}

.confirm-dialog {
  width: min(100%, 430px);
  padding: 30px 28px;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.24);
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border: 4px solid #ffc89f;
  border-radius: 999px;
  color: #f3a15a;
}

.confirm-icon .material-symbols-outlined {
  font-size: 42px;
  font-weight: 800;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #5d6673;
}

.confirm-dialog p {
  margin: 10px 0 22px;
  color: #8b95a4;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #5f927f;
}

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
}

.profile-menu a:hover,
.profile-menu a.active {
  background: rgba(16, 63, 49, 0.34);
}

.profile-panel {
  padding: 28px;
}

.profile-photo-editor {
  position: relative;
  display: inline-grid;
  margin: 8px 0 12px;
}

.profile-photo-editor img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.profile-photo-editor label {
  position: absolute;
  inset: auto 10px 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.harvest-hero-panel h2 {
  font-size: 28px;
  font-weight: 850;
}

.harvest-hero-panel p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
}

.harvest-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.harvest-highlight-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.harvest-highlight-card small,
.harvest-highlight-card strong {
  display: block;
}

.harvest-highlight-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.harvest-highlight-card strong {
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
}

.auth-link-group .auth-muted-link {
  gap: 8px;
}

.input-icon {
  display: grid;
  grid-template-columns: 44px 1fr;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.input-icon .material-symbols-outlined {
  display: grid;
  place-items: center;
  background: #f7faf8;
  color: var(--agro-ink);
}

.input-icon .form-control {
  border: 0;
  border-radius: 0;
}

.input-icon .form-control[readonly] {
  background: #f8fafc;
  color: #667085;
}

.profile-check {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 750;
}

.plot {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 120px;
  min-height: 82px;
  padding: 12px;
  border: 2px solid rgba(16, 63, 49, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-align: center;
}

.plot small {
  display: block;
  color: var(--agro-muted);
  font-weight: 700;
}

.leaflet-map {
  width: 100%;
  min-height: 560px;
  background: #eaf5ed;
}

.leaflet-container {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-draw-toolbar a {
  color: var(--agro-ink);
}

.map-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.map-action-grid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 750;
}

.map-action-grid .material-symbols-outlined {
  font-size: 19px;
}

.map-metric {
  min-height: 132px;
}

.map-metric .stat-value {
  font-size: 24px;
}

.map-coordinate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--agro-line);
  font-size: 14px;
}

.map-coordinate:last-child {
  border-bottom: 0;
}

.map-coordinate span {
  color: var(--agro-muted);
  font-weight: 700;
}

.polygon-preview {
  max-height: 230px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #0f172a;
  color: #d9fff0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #cfe8dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf8, #eef8f2);
}

.guide-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.guide-heading .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #dff5e8;
  color: var(--agro-primary);
}

.guide-heading strong {
  display: block;
  margin-bottom: 3px;
  color: var(--agro-ink);
  font-size: 15px;
  font-weight: 850;
}

.guide-heading p {
  margin: 0;
  color: var(--agro-muted);
  font-size: 13px;
  line-height: 1.45;
}

.guide-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--agro-ink);
  font-size: 13px;
  line-height: 1.45;
}

.guide-steps li::marker {
  color: var(--agro-primary);
  font-weight: 900;
}

.guide-action {
  justify-self: end;
  white-space: nowrap;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(9, 45, 34, 0.88), rgba(9, 45, 34, 0.42)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 850;
}

.landing-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(12px);
}

.feature-band {
  padding: 72px 0;
}

.landing-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-flow > div {
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--agro-line);
  border-radius: 8px;
  background: #ffffff;
}

.landing-flow .material-symbols-outlined,
.landing-data-card .material-symbols-outlined,
.landing-note .material-symbols-outlined,
.system-node .material-symbols-outlined {
  color: var(--agro-primary);
}

.landing-flow .material-symbols-outlined {
  margin-bottom: 14px;
  font-size: 32px;
}

.landing-flow strong,
.landing-flow small {
  display: block;
}

.landing-flow strong {
  margin-bottom: 6px;
  color: var(--agro-ink);
  font-size: 16px;
  font-weight: 850;
}

.landing-flow small {
  color: var(--agro-muted);
  line-height: 1.55;
}

.landing-visual-stack {
  position: relative;
  min-height: 440px;
}

.landing-visual-stack > img {
  width: 100%;
  min-height: 380px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.18);
}

.landing-data-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(88%, 360px);
  padding: 16px;
  border: 1px solid rgba(207, 232, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(12px);
}

.landing-data-card h3 {
  margin: 7px 0 0;
  color: var(--agro-ink);
  font-size: 20px;
  font-weight: 850;
}

.landing-progress-list {
  display: grid;
  gap: 8px;
}

.landing-progress-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--agro-line);
}

.landing-progress-list span {
  color: var(--agro-muted);
  font-size: 13px;
  font-weight: 700;
}

.landing-progress-list strong {
  color: var(--agro-primary);
  font-size: 13px;
}

.landing-system-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 63, 49, 0.92), rgba(0, 87, 63, 0.78)),
    url("../image/tanaman/farm-landscape.jpg") center / cover;
}

.system-node {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.system-node.primary {
  grid-column: span 2;
  background: #ffad2f;
}

.system-node.primary .material-symbols-outlined {
  color: #073c2e;
}

.system-node strong {
  color: var(--agro-ink);
  font-weight: 850;
}

.landing-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #cfe8dc;
  border-radius: 8px;
  background: #f4fbf7;
}

.landing-note p {
  margin: 0;
  color: var(--agro-muted);
  line-height: 1.6;
}

.landing-footer {
  background: #003f2f;
  color: #d9fff0;
}

.footer-cta {
  padding: 56px 0 36px;
  border-bottom: 1px solid rgba(217, 255, 240, 0.16);
}

.footer-cta h2 {
  max-width: 680px;
  margin: 0 auto 14px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.08;
}

.footer-cta p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #90f4ce;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  background: #ffad2f;
  border-color: #ffad2f;
  color: #1f2109;
  font-weight: 800;
}

.btn-footer-cta:hover {
  background: #ffc05d;
  border-color: #ffc05d;
  color: #1f2109;
}

.btn-footer-cta .material-symbols-outlined {
  font-size: 18px;
}

.footer-main {
  padding: 36px 0 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  color: #90f4ce;
}

.footer-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #ffffff;
}

.footer-brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: contain;
  background: #ffffff;
}

.footer-copy {
  max-width: 260px;
  margin: 0;
  color: #a9f2d6;
  font-size: 14px;
  line-height: 1.65;
}

.footer-main h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-bottom a {
  color: #a9f2d6;
  font-size: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #c9f2de;
}

.footer-social .material-symbols-outlined {
  font-size: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 255, 240, 0.16);
  color: #a9f2d6;
  font-size: 14px;
}

.auth-body {
  min-height: 100vh;
  background: #202020;
}

.auth-split,
.auth-reset {
  min-height: 100vh;
  display: grid;
  background: #202020;
}

.auth-split {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.auth-split-register {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.auth-reset {
  place-items: center;
  padding: 36px 16px;
  background:
    linear-gradient(90deg, rgba(8, 28, 26, 0.52), rgba(8, 28, 26, 0.18) 28%, rgba(8, 28, 26, 0.18) 72%, rgba(8, 28, 26, 0.52)),
    url("../image/tanaman/farm-landscape.jpg") center / cover;
}

.auth-panel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 46px 48px;
  background: #103f31;
  color: #ffffff;
}

.auth-panel-reset {
  width: min(100%, 430px);
  min-height: auto;
  padding: 48px 46px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #f4ad35;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.auth-copy {
  text-align: center;
  margin-bottom: 18px;
}

.auth-copy h1 {
  margin: 0 0 8px;
  color: #e3ff75;
  font-size: 18px;
  font-weight: 800;
}

.auth-copy p {
  max-width: 300px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.7;
}

.auth-google,
.auth-outline-link,
.auth-submit,
.auth-code-btn {
  min-height: 42px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
}

.auth-google {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #3d4756;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-google span {
  color: #4285f4;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.auth-divider:empty::after {
  display: none;
}

.auth-panel .form-label {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.auth-panel .form-control,
.auth-panel .form-select {
  min-height: 42px;
  border: 0;
  background-color: #ffffff;
  color: #13251f;
  font-size: 13px;
}

.auth-panel .form-control::placeholder {
  color: #9da7b4;
}

.auth-submit,
.auth-code-btn {
  border: 0;
  background: #4388f5;
  color: #ffffff;
}

.auth-submit:hover,
.auth-code-btn:hover {
  background: #2f72df;
  color: #ffffff;
}

.auth-outline-link,
.auth-muted-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.auth-link-group {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-outline-link {
  width: 100%;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.auth-outline-link:hover,
.auth-muted-link:hover {
  color: #e3ff75;
}

.auth-muted-link {
  font-size: 12px;
  font-weight: 700;
}

.auth-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-code-btn {
  padding-inline: 16px;
  white-space: nowrap;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0b2d23;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 26, 0.38);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.toast-lite {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--agro-primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .planting-card,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirm-dialog h2 {
    font-size: 24px;
  }

  .confirm-actions {
    flex-direction: column;
  }

  .auth-split,
  .auth-split-register {
    grid-template-columns: 1fr;
  }

  .auth-split-register .auth-visual {
    order: 2;
  }

  .auth-panel {
    min-height: auto;
    padding: 34px 24px;
  }

  .auth-visual {
    min-height: 320px;
  }

  .auth-reset {
    padding: 20px;
  }

  .auth-panel-reset {
    padding: 36px 24px;
  }

  .auth-inline {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .history-item {
    min-width: 200px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .history-thumb {
    width: 48px;
    height: 48px;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(17, 32, 52, 0.42);
  }

  .app-main {
    margin-left: 0;
    padding: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 84px;
  }

  .leaflet-map {
    min-height: 440px;
  }

  .map-action-grid {
    grid-template-columns: 1fr;
  }

  .harvest-highlight-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
