﻿:root {
  --forest-950: #0d160c;
  --forest-900: #132012;
  --forest-850: #182416;
  --forest-800: #1b2f18;
  --olive-700: #314327;
  --olive-600: #415633;
  --sand-50: #f6f2e8;
  --sand-100: #eee7d9;
  --panel: rgba(255, 251, 243, 0.82);
  --line: rgba(31, 49, 24, 0.12);
  --text: #132314;
  --muted: #62705e;
  --radius-lg: 24px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: #f1ebdf; }
body.admin-open { background: linear-gradient(180deg, #f5efe3 0%, #ece4d6 100%); }
body.app-route .landing-stage { display: none; }
body.app-route .admin-shell { padding-top: 24px; }
button, input, a { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.page-shell { min-height: 100vh; }
.landing-stage { position: relative; min-height: 100vh; overflow: hidden; background: #121a10; }
.photo-scene { position: absolute; inset: -4%; transform: scale(1.04); }
.scene-layer { position: absolute; inset: 0; will-change: transform; }
.scene-photo {
  background-image: url('/harvestor_landing.jpeg');
  background-size: cover;
  background-position: center center;
  filter: saturate(1.06) contrast(1.02) brightness(0.72);
  animation: photoDrift 26s ease-in-out infinite;
}
.scene-paint {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 226, 154, 0.38) 0%, rgba(255, 226, 154, 0.08) 22%, transparent 40%),
    linear-gradient(135deg, rgba(25, 32, 14, 0.60) 0%, rgba(59, 74, 28, 0.20) 40%, rgba(227, 177, 78, 0.16) 100%),
    linear-gradient(180deg, rgba(33, 53, 17, 0.14) 0%, rgba(33, 53, 17, 0.08) 38%, rgba(18, 28, 11, 0.44) 100%);
  mix-blend-mode: screen;
  animation: paintDrift 20s ease-in-out infinite;
}
.scene-light {
  background:
    linear-gradient(160deg, rgba(216, 173, 88, 0.18) 0 22%, transparent 22% 100%),
    linear-gradient(172deg, transparent 0 66%, rgba(114, 152, 49, 0.14) 66% 75%, transparent 75%),
    radial-gradient(circle at 12% 10%, rgba(255,255,255,0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 90%, rgba(255,255,255,0.06) 0 1px, transparent 2px);
  background-size: auto, auto, 10px 10px, 10px 10px;
  opacity: 0.65;
  animation: lightDrift 18s ease-in-out infinite;
}
.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.32)),
    radial-gradient(circle at center, rgba(0,0,0,0) 26%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0.52) 100%),
    linear-gradient(180deg, rgba(6, 10, 7, 0.08) 0%, rgba(9, 14, 10, 0.34) 100%);
}
.scene-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255,255,255,0.9) 0.7px, transparent 0.8px);
  background-size: 7px 7px;
}
@keyframes photoDrift {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  50% { transform: scale(1.11) translate3d(-1.2%, -0.6%, 0); }
  100% { transform: scale(1.06) translate3d(0, 0, 0); }
}
@keyframes paintDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  50% { transform: scale(1.06) translate3d(1%, 0.5%, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes lightDrift {
  0% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(-0.6%, 0.6%, 0); opacity: 0.72; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.55; }
}
.landing-overlay { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.landing-center { width: min(100%, 560px); display: grid; justify-items: center; gap: 22px; }
.lang-switch {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.82);
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.lang-btn.active { background: rgba(255,255,255,0.88); color: #1b3017; }
.glass-panel {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(35,45,25,0.58), rgba(20,28,16,0.68));
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.intro-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  animation: revealCard 900ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: 500ms;
}
@keyframes revealCard {
  0% { opacity: 0; transform: translateY(28px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.login-card { width: 100%; padding: 34px 36px 30px; color: white; }
.logo-stack { display: grid; justify-items: center; gap: 0; margin-bottom: 26px; text-align: center; }
.logo-image {
  display: block;
  width: 340px;
  max-width: min(78vw, 340px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.20));
}
.logo-badge { filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25)); }
.logo-image-hero {
  width: clamp(280px, 35vw, 360px);
  max-width: min(78vw, 360px);
}
.login-form { display: grid; gap: 12px; }
.login-form-compact { max-width: 440px; margin: 0 auto; gap: 14px; }
.mini-intro { margin-bottom: 2px; }
.mini-line { margin: 0; text-align: center; color: rgba(255,255,255,0.84); line-height: 1.45; font-size: 0.92rem; }
label, .stack-form { display: grid; gap: 10px; }
label span { color: rgba(255,255,255,0.84); font-size: 0.88rem; font-weight: 700; margin-top: 2px; }
input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  color: #162415;
  font-size: 1rem;
}
.primary, button[type="submit"] {
  border: 0;
  padding: 16px 18px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px rgba(20,180,90,0.25);
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
.primary:hover, button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.04); }
.secondary {
  border: 1px solid rgba(28, 49, 19, 0.14);
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.landing-status { min-height: 24px; margin: 4px 0 0; text-align: center; color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.eyebrow { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(204, 230, 139, 0.9); }
.admin-shell {
  position: relative;
  padding: 28px 28px 44px;
}
.admin-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: linear-gradient(135deg, rgba(53, 73, 35, 0.18), rgba(225, 180, 79, 0.12));
  pointer-events: none;
}
.workspace-selector {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}
.selector-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,241,230,0.76)),
    radial-gradient(circle at top right, rgba(221, 184, 95, 0.18), transparent 32%);
}
.selector-head { margin-bottom: 22px; }
.selector-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  color: #172614;
}
.workspace-copy { margin: 12px 0 0; color: #4d5b47; max-width: 62ch; line-height: 1.55; }
.workspace-list { display: grid; gap: 14px; }
.workspace-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(243,238,228,0.88));
  border: 1px solid rgba(255,255,255,0.82);
}
.workspace-option.disabled {
  opacity: 0.72;
  background: linear-gradient(180deg, rgba(246,241,235,0.78), rgba(236,231,222,0.82));
}
.workspace-meta { display: grid; gap: 6px; }
.workspace-title { font-weight: 800; color: #182517; font-size: 1.02rem; }
.workspace-subtitle { color: #5d6b56; }
.workspace-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.selector-state { margin-top: 18px; }
.workspace-frame {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
}
.admin-panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(18, 29, 17, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
}
.workspace-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(249,244,233,0.68)),
    radial-gradient(circle at top right, rgba(221, 184, 95, 0.22), transparent 36%);
  margin-bottom: 18px;
}
.workspace-hero-copy { max-width: 720px; }
.workspace-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  color: #152413;
}
.workspace-hero-side {
  min-width: 320px;
  display: grid;
  gap: 14px;
  align-content: space-between;
}
.account-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(40, 58, 28, 0.92), rgba(24, 35, 19, 0.96));
  color: white;
  box-shadow: 0 20px 40px rgba(17, 24, 13, 0.22);
  display: grid;
  gap: 8px;
}
.account-card strong { font-size: 1.18rem; }
.account-card span:last-child { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(38, 74, 31, 0.08);
  color: #254728;
  font-weight: 700;
}
.badge-role {
  width: fit-content;
  background: rgba(130, 219, 109, 0.16);
  color: #d7f6c4;
}
.badge-subscription { background: rgba(33, 95, 176, 0.10); color: #244f7a; }
.badge-blocked { background: rgba(161, 62, 33, 0.10); color: #8a3d25; }
.admin-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; }
.admin-sidebar {
  height: fit-content;
  position: sticky;
  top: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(247,241,230,0.82));
}
.sidebar-header { margin-bottom: 20px; }
.nav { display: grid; gap: 10px; }
.nav-link {
  border: 1px solid rgba(18, 32, 18, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  color: var(--text);
  padding: 13px 14px;
  text-align: left;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}
.nav-link:hover { transform: translateX(1px); }
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, #2e4928 0%, #1d311c 100%);
  box-shadow: 0 16px 28px rgba(31, 52, 28, 0.20);
}
.admin-main { display: grid; gap: 18px; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hidden-view { display: none; }
.span-2 { grid-column: span 2; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.panel-kicker {
  margin: 0 0 6px;
  color: #657659;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel-head h3,
.info-panel h3,
.admin-panel h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #182517;
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(240,235,224,0.88));
  border: 1px solid rgba(255,255,255,0.78);
}
.stat strong { font-size: 1.5rem; color: #1b2e17; }
.compact-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 18px; }
.stack-form { margin-bottom: 18px; }
.info-panel { display: flex; flex-direction: column; justify-content: center; }
.muted { color: var(--muted); line-height: 1.55; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #53624d; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 1160px) {
  .workspace-option,
  .workspace-hero,
  .admin-layout,
  .admin-grid,
  .stats,
  .compact-form { grid-template-columns: 1fr; }
  .workspace-hero,
  .workspace-option { display: grid; }
  .span-2 { grid-column: auto; }
  .admin-sidebar { position: static; }
}
@media (max-width: 760px) {
  .landing-overlay,
  .admin-shell { padding: 18px; }
  .login-card { padding: 24px 20px 22px; }
  .logo-image, .logo-image-hero { width: min(76vw, 300px); max-width: 300px; }
  .workspace-hero-side { min-width: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-layer, .intro-reveal { animation: none !important; }
  .intro-reveal { opacity: 1; transform: none; }
}.workspace-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(243,238,228,0.88));
  border: 1px solid rgba(255,255,255,0.82);
}
.workspace-card-live { box-shadow: 0 12px 28px rgba(28, 39, 18, 0.08); }
.workspace-card-blocked {
  opacity: 0.78;
  background: linear-gradient(180deg, rgba(246,241,235,0.78), rgba(236,231,222,0.82));
}
.workspace-card-copy,
.workspace-card-meta {
  display: grid;
  gap: 6px;
}
.workspace-card-copy strong { color: #182517; font-size: 1.02rem; }
.workspace-card-copy span:last-child,
.workspace-card-meta p {
  margin: 0;
  color: #5d6b56;
}
.workspace-select-btn { min-width: 140px; }
.badge-muted { background: rgba(99, 111, 89, 0.10); color: #5e6857; }
.table-wrap { overflow-x: auto; }
.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(240,235,224,0.88));
  border: 1px solid rgba(255,255,255,0.78);
  display: grid;
  gap: 6px;
}
.stat-card strong { font-size: 1.5rem; color: #1b2e17; }
.stat-card span { color: #566451; font-weight: 600; }
.landing-status.error { color: #ffd7d0; }
@media (max-width: 1160px) {
  .workspace-card { display: grid; grid-template-columns: 1fr; }
}
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.9);
  color: #162415;
}
.compact-form-7 { grid-template-columns: repeat(7, minmax(0, 1fr)) auto; }
.compact-form-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
.compact-form-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.worker-layout { display: grid; gap: 18px; }
.worker-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; }
.action-link {
  border: 1px solid rgba(18, 32, 18, 0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
  padding: 10px 12px;
  color: var(--text);
}
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1160px) {
  .compact-form-7,
  .compact-form-6,
  .compact-form-4,
  .worker-grid { grid-template-columns: 1fr; }
  .span-3 { grid-column: auto; }
}

.hero-topline {
  display: flex;
  justify-content: flex-end;
}
.app-lang-switch {
  align-self: end;
  background: rgba(255,255,255,0.18);
}
.stats-worker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.calendar-day {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(241,236,226,0.92));
  border: 1px solid rgba(255,255,255,0.76);
  display: grid;
  gap: 10px;
}
.calendar-day.today {
  box-shadow: 0 16px 28px rgba(56, 122, 54, 0.18);
  border-color: rgba(76, 176, 87, 0.36);
}
.calendar-day.locked {
  opacity: 0.82;
}
.calendar-day header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.calendar-date {
  font-weight: 800;
  color: #172614;
}
.calendar-meta,
.calendar-foot {
  display: grid;
  gap: 6px;
}
.calendar-meta span,
.calendar-foot span {
  color: #586555;
  font-size: 0.92rem;
}
.lock-pill,
.advance-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  width: fit-content;
}
.lock-pill.locked { background: rgba(102, 110, 100, 0.12); color: #5e6858; }
.lock-pill.editable { background: rgba(76, 176, 87, 0.14); color: #20672f; }
.advance-pill { background: rgba(222, 172, 67, 0.16); color: #8a5c11; }
.status-pill.pending { background: rgba(231, 182, 67, 0.16); color: #7f5805; }
.status-pill.approved { background: rgba(61, 131, 214, 0.14); color: #275a94; }
.status-pill.rejected { background: rgba(184, 85, 56, 0.14); color: #8d3c27; }
.status-pill.paid { background: rgba(63, 152, 84, 0.16); color: #245f33; }
.worker-request-list,
.signature-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.request-card,
.signature-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(241,236,226,0.88));
  border: 1px solid rgba(255,255,255,0.76);
}
.worker-request-list-strong {
  gap: 14px;
}
.request-status-card {
  gap: 12px;
}
.request-status-card.is-fresh {
  border-color: rgba(75, 176, 87, 0.30);
  box-shadow: 0 16px 28px rgba(40, 104, 48, 0.10);
}
.request-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}
.request-card-head > div {
  display: grid;
  gap: 4px;
}
.request-card-head strong {
  color: #182817;
  font-size: 1.08rem;
}
.request-card-head span:not(.status-pill) {
  color: #6a7866;
  font-size: 0.88rem;
  font-weight: 700;
}
.request-card-note {
  margin: 0;
  color: #223221;
  line-height: 1.55;
}
.request-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.request-card-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(36, 73, 39, 0.08);
  color: #51604f;
  font-size: 0.84rem;
  font-weight: 700;
}
.signature-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.signature-line {
  min-height: 38px;
  border-bottom: 1px dashed rgba(35, 48, 27, 0.32);
  color: #6b7765;
  display: flex;
  align-items: end;
  padding-bottom: 4px;
  font-size: 0.88rem;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.action-link {
  border: 0;
  background: rgba(36, 73, 39, 0.08);
  color: #244728;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.action-link.warn {
  background: rgba(168, 72, 47, 0.10);
  color: #8d432b;
}
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 8, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(100%, 560px);
  z-index: 1;
}
.modal-head {
  margin-bottom: 10px;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.modal-grid .full {
  grid-column: 1 / -1;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.form-note {
  color: #6a7567;
  font-size: 0.9rem;
}
.payout-summary {
  display: grid;
  gap: 16px;
}
.summary-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(35, 73, 39, 0.94), rgba(20, 39, 21, 0.98));
  color: white;
}
.summary-banner strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.harvest-quick-state {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: -4px 0 18px;
  padding: 15px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(255,255,255,0.62));
  border: 1px solid rgba(78, 164, 90, 0.18);
}
.harvest-quick-state.is-saved {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255,255,255,0.72));
  box-shadow: 0 14px 28px rgba(33, 102, 47, 0.10);
}
.harvest-quick-copy,
.harvest-quick-meta {
  display: grid;
  gap: 4px;
}
.harvest-quick-copy strong {
  color: #19311b;
  font-size: 0.98rem;
}
.harvest-quick-copy span,
.harvest-quick-meta span {
  color: #576553;
  font-size: 0.92rem;
}
.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px dashed rgba(32, 50, 27, 0.16);
  color: #667260;
}
@media (max-width: 1160px) {
  .stats-worker,
  .calendar-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.status-pill.paid {
  background: rgba(63, 152, 84, 0.16);
  color: #245f33;
}
@media (max-width: 900px) {
  .compact-form,
  .compact-form-7,
  .compact-form-6,
  .compact-form-4 {
    grid-template-columns: 1fr;
  }
  .worker-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    padding: 14px;
  }
  .workspace-hero {
    padding: 18px;
  }
  .admin-panel {
    padding: 18px;
  }
  .summary-banner {
    padding: 14px 16px;
  }
  .harvest-quick-state {
    display: grid;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  .signature-list,
  .signature-list * {
    visibility: visible;
  }
}

.app-runtime-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(247,241,230,0.78));
}
.runtime-copy {
  display: grid;
  gap: 6px;
}
.runtime-copy strong {
  font-size: 1rem;
  color: #162415;
}
.runtime-copy span {
  color: #52614d;
}
.runtime-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.install-app-btn.hidden,
#update-app-btn.hidden,
.update-toast.hidden {
  display: none !important;
}
.update-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(92vw, 380px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(17, 28, 16, 0.94);
  color: white;
  box-shadow: 0 22px 44px rgba(0,0,0,0.34);
}
.update-toast-copy {
  display: grid;
  gap: 4px;
}
.update-toast-copy strong {
  font-size: 0.98rem;
}
.update-toast-copy span {
  color: rgba(255,255,255,0.78);
  line-height: 1.4;
  font-size: 0.9rem;
}
body.standalone-app .landing-overlay {
  padding-top: calc(18px + env(safe-area-inset-top));
}
body.standalone-app .admin-shell {
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}
body.standalone-app .workspace-hero {
  box-shadow: 0 24px 54px rgba(19, 31, 16, 0.16);
}
@media (max-width: 860px) {
  .app-runtime-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .runtime-actions {
    width: 100%;
  }
  .runtime-actions .secondary,
  .runtime-actions .primary,
  .install-app-btn {
    width: 100%;
  }
  .update-toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
  }
}
.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(170px, 1fr)) auto;
  gap: 12px;
  margin-bottom: 16px;
  align-items: end;
}
.directory-field {
  display: grid;
  gap: 8px;
}
.directory-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5e6c57;
  letter-spacing: 0.03em;
}
.directory-search input {
  width: 100%;
}
.directory-clear {
  min-height: 54px;
}
.directory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.directory-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(244,239,229,0.9));
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
  display: grid;
  gap: 6px;
}
.directory-stat strong {
  font-size: 1.4rem;
  color: #182517;
}
.directory-stat span {
  color: #60705a;
  font-size: 0.9rem;
}
.directory-state {
  margin: 0 0 16px;
}
#sidebar-body {
  min-height: 44px;
}
@media (max-width: 1100px) {
  .directory-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .directory-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .directory-toolbar,
  .directory-summary {
    grid-template-columns: 1fr;
  }
}

.app-lang-switch {
  align-self: end;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(34, 57, 26, 0.10);
  box-shadow: 0 12px 26px rgba(32, 48, 22, 0.10);
}
.app-lang-switch .lang-btn {
  color: rgba(27, 48, 23, 0.66);
}
.app-lang-switch .lang-btn:hover {
  color: #1b3017;
}
.app-lang-switch .lang-btn.active {
  background: linear-gradient(135deg, #274224 0%, #1d311c 100%);
  color: #f7f4ea;
}
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.92);
  color: #162415;
  resize: vertical;
  min-height: 120px;
}
.modal-grid label span,
.stack-form label span,
.attendance-worker-field span {
  display: inline-block;
  margin-bottom: 8px;
  color: #4e5f48;
  font-weight: 700;
}
.modal-actions .secondary,
.modal-actions .primary {
  min-width: 128px;
}
.action-link:disabled,
.modal-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.attendance-focus-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(244,238,226,0.92));
  border: 1px solid rgba(255,255,255,0.78);
}
.attendance-focus-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: end;
}
.attendance-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.attendance-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(238,232,221,0.92));
  border: 1px solid rgba(255,255,255,0.86);
}
.attendance-summary-card strong {
  font-size: 1.24rem;
  color: #182517;
}
.attendance-summary-card span {
  color: #60705a;
  font-size: 0.92rem;
}
.attendance-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.attendance-day-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(241,236,227,0.95));
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.46);
}
.attendance-day-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.attendance-day-card header div {
  display: grid;
  gap: 6px;
}
.attendance-day-card header strong {
  font-size: 1rem;
  color: #182517;
}
.attendance-day-card header span,
.attendance-day-card p {
  margin: 0;
  color: #5d6b56;
  line-height: 1.5;
}
.attendance-day-meta {
  display: grid;
  gap: 8px;
  color: #2b3f2a;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .attendance-focus-head {
    grid-template-columns: 1fr;
  }
  .attendance-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .attendance-detail-summary,
  .attendance-detail-grid {
    grid-template-columns: 1fr;
  }
}

.compact-form-harvest {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.compact-form-crop {
  grid-template-columns: minmax(0, 2fr) minmax(120px, 0.8fr) auto;
}

.crop-manager {
  margin: 10px 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(53, 77, 48, 0.08);
}

.crop-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.crop-list {
  display: grid;
  gap: 10px;
}

.crop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(53, 77, 48, 0.08);
}

.crop-row strong {
  display: block;
  color: #1d2b1a;
}

.crop-row span {
  color: #61705b;
  font-size: 0.9rem;
}

.crop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  color: #267343;
}

.crop-pill.inactive {
  background: rgba(120, 120, 120, 0.12);
  color: #616161;
}

.harvest-crop-cell {
  min-width: 180px;
}

@media (max-width: 1160px) {
  .compact-form-harvest,
  .compact-form-crop {
    grid-template-columns: 1fr;
  }

  .crop-row {
    grid-template-columns: 1fr;
  }
}

.compact-form-report {
  grid-template-columns: repeat(2, minmax(0, 220px)) auto;
  align-items: end;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(53, 77, 48, 0.08);
  display: grid;
  gap: 6px;
}

.report-card strong {
  font-size: 1.32rem;
  color: #1d2b1a;
}

.report-card span {
  color: #60705b;
  font-size: 0.9rem;
}

@media (max-width: 1160px) {
  .compact-form-report,
  .report-summary {
    grid-template-columns: 1fr;
  }
}

input,
select,
textarea {
  color: #172614;
}

input::placeholder,
textarea::placeholder {
  color: #8d9588;
  opacity: 1;
}

.compact-form .directory-field,
.compact-form-harvest .directory-field,
.compact-form-4 .directory-field,
.compact-form-6 .directory-field {
  align-self: stretch;
}

.compact-form .directory-field select,
.compact-form .directory-field input {
  min-height: 56px;
}

.attendance-focus-shell .muted {
  color: #586853;
}

@media (max-width: 760px) {
  .compact-form .directory-field span,
  .compact-form-harvest .directory-field span,
  .compact-form-4 .directory-field span,
  .compact-form-6 .directory-field span {
    font-size: 0.85rem;
  }

  .directory-toolbar {
    gap: 10px;
  }
}

.nav-link.hidden {
  display: none;
}

.directory-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.directory-field > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #607057;
}

.compact-form,
.compact-form-harvest,
.compact-form-report {
  align-items: end;
}

.compact-form .directory-field input,
.compact-form .directory-field select,
.compact-form-harvest .directory-field input,
.compact-form-harvest .directory-field select,
.compact-form-report .directory-field input,
.compact-form-report .directory-field select {
  width: 100%;
}

.compact-form button,
.compact-form-harvest button,
.compact-form-report button {
  min-height: 56px;
  align-self: end;
}

.directory-toolbar {
  align-items: end;
}

.directory-state,
.muted {
  color: #61705c;
}

@media (max-width: 1160px) {
  .compact-form.compact-form-7,
  .compact-form.compact-form-6,
  .compact-form-harvest,
  .compact-form.compact-form-report {
    grid-template-columns: 1fr;
  }
}

.compact-form,
.compact-form-harvest,
.compact-form-report,
.compact-form-crop {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245,239,228,0.92));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
}

.compact-form.compact-form-7 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-form.compact-form-6 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-form.compact-form-4,
.compact-form-harvest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-form.compact-form-report {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) auto;
}

.compact-form button,
.compact-form-harvest button,
.compact-form-report button,
.compact-form-crop button {
  width: 100%;
}

.form-note-inline {
  margin: -6px 0 18px;
  color: #5c6a56;
}

.table-wrap {
  border-radius: 22px;
  padding: 6px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(244,239,230,0.9));
  border: 1px solid rgba(255,255,255,0.86);
}

.table-wrap table {
  min-width: 760px;
}

.table-wrap th {
  position: sticky;
  top: 0;
  background: rgba(245, 239, 227, 0.96);
}

#report-summary {
  margin-top: 16px;
}

@media (max-width: 1160px) {
  .compact-form.compact-form-7,
  .compact-form.compact-form-6,
  .compact-form.compact-form-4,
  .compact-form-harvest,
  .compact-form.compact-form-report,
  .compact-form-crop {
    grid-template-columns: 1fr;
  }
}

.report-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.report-header-preview,
.settings-preview-card {
  margin-top: 18px;
}

.report-preview-card,
.settings-preview-card {
  border: 1px solid rgba(79, 95, 70, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,246,238,0.98));
  border-radius: 24px;
  padding: 20px 22px;
}

.report-preview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.report-preview-meta {
  display: grid;
  gap: 8px;
  align-content: start;
  color: #5e6c58;
  font-size: 13px;
}

.report-payload {
  margin-top: 18px;
  background: #18231a;
  color: #d8f0dc;
  border-radius: 20px;
  padding: 18px;
  overflow: auto;
  max-height: 440px;
  font-size: 12px;
  line-height: 1.55;
}

.company-profile-form .full-width {
  grid-column: 1 / -1;
}

.settings-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.settings-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-preview-grid div {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(79, 95, 70, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
}

.settings-preview-grid strong,
.settings-preview-grid span {
  display: block;
}

.settings-preview-grid span {
  color: #61705c;
  margin-top: 6px;
}

.settings-crop-manager {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(79, 95, 70, 0.12);
}

.settings-crop-manager .crop-list {
  margin-top: 14px;
}

@media (max-width: 860px) {
  .report-preview-card,
  .settings-preview-grid {
    grid-template-columns: 1fr;
  }
}


/* Harvestor 0.5 - BETA polish */
.admin-panel {
  padding: 26px;
}

.panel-head {
  margin-bottom: 18px;
}

.compact-form,
.compact-form-harvest,
.compact-form-report,
.compact-form-crop {
  gap: 14px;
  margin-bottom: 22px;
  align-items: end;
}

.directory-field {
  gap: 8px;
}

.directory-field > span,
.compact-form .directory-field span,
.compact-form-harvest .directory-field span,
.compact-form-report .directory-field span,
.compact-form-crop .directory-field span {
  color: #5b6b52;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-form .directory-field input,
.compact-form .directory-field select,
.compact-form-harvest .directory-field input,
.compact-form-harvest .directory-field select,
.compact-form-report .directory-field input,
.compact-form-report .directory-field select,
.compact-form-crop input,
.compact-form-crop select,
.compact-form-crop button {
  min-height: 60px;
}

.compact-form button,
.compact-form-harvest button,
.compact-form-report button,
.compact-form-crop button {
  min-width: 180px;
}

.table-wrap {
  border-radius: 22px;
  border: 1px solid rgba(31, 49, 24, 0.08);
  background: rgba(255,255,255,0.56);
  overflow: auto;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  background: rgba(243, 237, 226, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.crop-row,
.report-history-item,
.calendar-day,
.request-card {
  box-shadow: 0 12px 28px rgba(18, 29, 17, 0.05);
}

.attendance-detail-grid,
.worker-request-list,
.report-history-list,
.crop-list {
  gap: 14px;
}

.attendance-focus-shell,
#crop-manager,
#settings-crop-manager,
#report-history {
  scroll-margin-top: 100px;
}

@media (max-width: 900px) {
  .admin-panel {
    padding: 20px;
  }

  .compact-form button,
  .compact-form-harvest button,
  .compact-form-report button,
  .compact-form-crop button {
    width: 100%;
    min-width: 0;
  }
}

/* Workers directory polish */
.workers-section-hint {
  margin: -4px 0 18px;
  max-width: 72ch;
}

.workers-form-head {
  margin: 18px 0 12px;
}

.workers-form-head h4,
.workers-directory-head h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: #182517;
}

.workers-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 14px;
}

.workers-directory-meta {
  margin: 2px 0 16px;
  font-weight: 700;
}

.workers-directory-shell {
  display: grid;
  gap: 16px;
}

.worker-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.worker-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 49, 24, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,239,230,0.96));
  box-shadow: 0 18px 34px rgba(18, 29, 17, 0.07);
  display: grid;
  gap: 14px;
}

.worker-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.worker-card-head h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #182517;
}

.worker-card-head p {
  margin: 0;
  color: #65755d;
  font-weight: 700;
}

.worker-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.worker-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.worker-card-grid div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 245, 237, 0.92);
  border: 1px solid rgba(31, 49, 24, 0.06);
  display: grid;
  gap: 6px;
}

.worker-card-grid span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #697860;
  font-weight: 700;
}

.worker-card-grid strong {
  color: #1a2b18;
  font-size: 0.98rem;
  line-height: 1.4;
}

.worker-card-actions {
  padding-top: 2px;
}

.workers-quick-create {
  margin-top: 0;
}

@media (max-width: 1160px) {
  .worker-card-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .worker-card-grid,
  .workers-summary-grid {
    grid-template-columns: 1fr;
  }

  .worker-card-head {
    display: grid;
  }
}

/* Workers final cleanup */
.workers-toolbar-clean {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.workers-toolbar-clean .directory-field {
  min-width: 0;
}

.workers-toolbar-clean .directory-field > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workers-form-clean .directory-field > span {
  display: none;
}

.workers-form-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
}

.workers-form-clean input,
.workers-form-clean select {
  min-height: 58px;
}

.workers-form-clean button {
  min-height: 58px;
}

.workers-directory-meta {
  font-size: 0.96rem;
  color: #55654e;
}

.worker-card-ready .worker-card-head p {
  font-size: 0.95rem;
}

@media (max-width: 1160px) {
  .workers-toolbar-clean,
  .workers-form-clean {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .workers-toolbar-clean,
  .workers-form-clean {
    grid-template-columns: 1fr;
  }
}

/* Supervisor quick harvest modal */
.supervisor-quick-harvest {
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(245,239,229,0.96));
}

.quick-harvest-open .modal-card {
  max-width: 760px;
  width: min(92vw, 760px);
}

.quick-harvest-shell {
  display: grid;
  gap: 16px;
}

.quick-harvest-hint {
  margin: 0;
}

.quick-harvest-shell label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d6d56;
}

.quick-harvest-shell input,
.quick-harvest-shell select {
  min-height: 64px;
  font-size: 1.08rem;
}

.quick-harvest-kg input {
  font-size: 1.4rem;
  font-weight: 700;
}

.quick-harvest-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(34, 110, 44, 0.10);
  color: #26552f;
  font-weight: 700;
  width: fit-content;
}

.quick-harvest-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-harvest-actions {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .quick-harvest-shell input,
  .quick-harvest-shell select {
    min-height: 58px;
    font-size: 1rem;
  }

  .quick-harvest-kg input {
    font-size: 1.18rem;
  }
}

/* Harvestor 0.5 - BETA final tune */
.panel-head h3 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.08;
}

.panel-head .muted,
.form-note,
.directory-state,
.report-empty-note {
  color: #61715d;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.report-history-item,
.crop-row,
.attendance-day-card,
.request-card,
.calendar-day {
  border: 1px solid rgba(35, 53, 24, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,243,234,0.98));
}

.calendar-day.today,
.attendance-day-card:hover,
.report-history-item:hover,
.crop-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 29, 17, 0.08);
}

.calendar-day,
.attendance-day-card,
.report-history-item,
.crop-row {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.directory-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.directory-summary .stat-card,
.report-summary-grid .report-card {
  min-height: 108px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.company-profile-form-tuned input,
.company-profile-form-tuned textarea {
  min-width: 0;
}

.worker-grid .admin-panel {
  min-height: 100%;
}

#worker-calendar,
#worker-harvest-table,
#worker-advances-table,
#worker-advance-requests {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .directory-summary,
  .report-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .directory-summary,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Account numbers + suggestion box */
.worker-card-list {
  display: grid;
  gap: 14px;
}

.worker-directory-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(28, 49, 25, 0.08);
}

.worker-directory-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #18301b;
}

.worker-directory-meta {
  margin-top: 6px;
  color: #62715e;
  font-size: 0.92rem;
}

.worker-directory-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #325033;
  font-weight: 600;
}

.suggestion-form textarea,
#worker-suggestion-form textarea {
  min-height: 110px;
  resize: vertical;
}

.suggestion-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.suggestion-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(20, 40, 18, 0.08);
}

.suggestion-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.suggestion-card-head span,
.suggestion-meta small {
  color: #647463;
}

.suggestion-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.suggestion-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.suggestion-message {
  white-space: pre-wrap;
}

.record-feed {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.record-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 48, 27, 0.08);
  box-shadow: 0 10px 24px rgba(19, 28, 18, 0.05);
}

.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.record-card-head strong {
  display: block;
  font-size: 1rem;
  color: #17311c;
}

.record-card-head span {
  display: block;
  margin-top: 4px;
  color: #647463;
  font-size: 0.92rem;
}

.record-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #325033;
  font-weight: 600;
}

.record-card-note {
  margin: 12px 0 0;
  color: #52614f;
}

.record-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.record-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(44, 63, 28, 0.08);
  color: #2e472c;
  font-weight: 700;
  font-size: 0.88rem;
}

.record-pill-green {
  background: rgba(40, 132, 69, 0.12);
  color: #236139;
}

@media (max-width: 760px) {
  .record-card {
    padding: 16px;
  }

  .record-card-head {
    flex-direction: column;
  }

  .record-card-actions {
    justify-content: flex-start;
  }
}

.compact-form-report {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.report-type-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.report-type-card,
.report-period-chip {
  border: 1px solid rgba(24, 37, 23, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245,239,227,0.92));
  color: var(--text);
  border-radius: 20px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 14px 26px rgba(24, 37, 23, 0.06);
}

.report-type-card strong,
.report-history-copy strong {
  display: block;
  font-size: 1rem;
  color: #182517;
}

.report-type-card small,
.report-history-copy span,
.report-history-copy small {
  display: block;
  color: #5f6f59;
  line-height: 1.45;
}

.report-type-card.active,
.report-period-chip.active {
  border-color: rgba(40, 110, 51, 0.28);
  background: linear-gradient(180deg, rgba(232, 243, 225, 0.95), rgba(243, 239, 228, 0.98));
  box-shadow: 0 18px 32px rgba(40, 110, 51, 0.12);
}

.report-period-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.report-period-chip {
  border-radius: 999px;
  padding: 11px 16px;
}

.report-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-header-preview-card {
  border: 1px solid rgba(24, 37, 23, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245,239,227,0.92));
  border-radius: 22px;
  padding: 18px 20px;
  margin-top: 16px;
}

.report-header-preview-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4d5d49;
}

.report-history-list {
  display: grid;
  gap: 12px;
}

.report-history-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(24, 37, 23, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245,239,227,0.92));
  border-radius: 20px;
  padding: 16px 18px;
}

.report-history-item.active {
  border-color: rgba(40, 110, 51, 0.26);
  box-shadow: 0 18px 30px rgba(40, 110, 51, 0.12);
}

.report-history-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.report-history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-subsection {
  margin-top: 18px;
}

.report-subsection h4 {
  margin: 0 0 10px;
  color: #1d311b;
}

.report-schedule-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.report-helper-note {
  margin: 0 0 14px;
  color: #66775f;
}

.report-payload {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #192416;
  color: #d7e3d0;
  overflow: auto;
  max-height: 420px;
  font-size: 0.84rem;
}

.report-section-head {
  margin-bottom: 12px;
}

@media (max-width: 1160px) {
  .report-type-cards,
  .compact-form-report,
  .report-schedule-form,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }
}
