@import url(https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap);
body {
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif;
  background-color: #fff;
  height: 100%;
  scroll-behavior: smooth;
  width: 100%;
}

/* ===== Layout Vars ===== */
:root {
  --header-h: 84px; /* match your Header height */
  --sidebar-w: 250px; /* sidebar width */
}

/* ===== App Shell ===== */
.home-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.home-body {
  display: flex;
  flex: 1;
  overflow: hidden; /* children (aside/main) manage their own scroll */
  min-height: 0;
}

/* ===== Sidebar (scroll container) ===== */
.home-sidenav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  box-sizing: border-box;
  overflow-y: auto; /* this element scrolls */
  -webkit-overflow-scrolling: touch;
  background: #fff;
  z-index: 1000;

  /* breathing room so last item isn't clipped */
  padding-bottom: 3rem;

  /* hide scrollbar (Firefox) */
  scrollbar-width: none;
}
/* hide scrollbar (Chrome/Edge/Safari) */
.home-sidenav::-webkit-scrollbar {
  display: none;
}

/* Inner Sidebar root (Sidebar.tsx) – no scrolling here */
.sidebar {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  overflow: visible;
}

/* ===== Main Content ===== */
.home-right-content {
  margin-left: var(--sidebar-w); /* space for fixed sidebar */
  height: calc(100vh - var(--header-h)); /* full height minus header */
  overflow: auto;
  background-color: #eff3f4;
  min-width: 0; /* prevent overflow on wide tables */
}

/* ===== Optional: Mobile slide-in (toggle .is-open in your JSX) ===== */
@media (max-width: 768px) {
  .home-sidenav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 80vw; /* narrower on mobile */
    max-width: 320px;
  }
  .home-sidenav.is-open {
    transform: translateX(0);
  }
  .home-right-content {
    margin-left: 0; /* content uses full width */
  }
}

/* Sidebar container */
.sidebar {
  width: 250px;
  height: 100vh;
  left: 0;
  top: 0;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Navigation list */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Navigation item */
.nav-item {
  margin: 0;
  padding: 0;
}

/* Navigation link */
.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  color: #6b7280;
  /* gray text */
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  text-align: left;
  border-left: 3px solid transparent;
  position: relative;
  gap: 8px;
}

/* Hover state */
.nav-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Active state */
.nav-link.active {
  background-color: #76bb40;
  /* dark green */
  color: #ffffff;
  border-left-color: #76bb40;
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #76bb40;
}

/* Text styling */
.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  padding-left: 10px;
}

/* Focus state */
.nav-link:focus {
  outline: 2px solid #76bb40;
  outline-offset: -2px;
}

.nav-link.active:focus {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}
/* Make sidebar icons white when active */
.nav-link.active .nav-icon {
  filter: brightness(0) invert(1);
}
.submenu {
  list-style: none;
  padding-left: 30px;
  margin: 8px 0;
  /* transition: all 0.3s ease; */
}

.submenu-item {
  margin: 6px 0;
}

.submenu-link {
  display: block;
  align-items: center;
  padding: 10px 20px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: #6b7280; /* gray text */
  font-size: 14px; /* increased font size */
  font-weight: 600;
  border-radius: 4px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.submenu-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}
.submenu-link.active {
  background-color: #76bb40;
  color: #ffffff;
  font-weight: 600;
  border-left-color: #76bb40;
  position: relative;
}

.submenu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #76bb40;
}

.submenu-link.active .submenu-icon {
  filter: brightness(0) invert(1);
}

.submenu-text {
  flex: 1;
  padding-left: 10px;
}

.dropdownIcon {
  color: #000;
  font-size: 16px;
}

.nav-item.active > .nav-link.has-children {
  background-color: #76bb40;
  color: #fff;
  border-left-color: #76bb40;
}
/* .nav-link.has-children {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
} */

.submenu-arrow {
  font-size: 10px;
  margin-left: auto;
  color: #aaa;
}

/* Responsive sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
  }

  .nav-link {
    padding: 12px 16px;
  }
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* =======================
   Header container
======================= */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Flex container inside header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
}

/* =======================
   Logo section
======================= */
.logo-section {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #2c5f4f;
  /* green shade */
}

/* =======================
   User profile section
======================= */
.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  position: relative;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background-color: #2c5f4f;
  /* dark green */
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.user-email {
  font-size: 12px;
  color: #6b7280;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  color: #374151;
  margin-left: 4px;
}

/* =======================
   Dropdown Menu
======================= */
.dropdown-menu {
  position: absolute;
  top: 56px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.dropdown-menu button {
  background: none;
  border: none;
  padding: 10px 16px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s;
}

.dropdown-menu button:hover {
  background: #f9fafb;
}

/* =======================
   Popup Modal
======================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #2c5f4f;
}

.popup-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.popup-field label {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.popup-field input {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.popup-field input:focus {
  border-color: #2c5f4f;
  box-shadow: 0 0 0 2px rgba(44, 95, 79, 0.2);
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.popup-actions button {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.popup-actions button:first-child {
  background: #e5e7eb;
  color: #374151;
}

.popup-actions button:first-child:hover {
  background: #d1d5db;
}

.popup-actions button:last-child {
  background: #2c5f4f;
  color: white;
}

.popup-actions button:last-child:hover {
  background: #24483d;
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
  .user-info {
    display: none;
    /* hide email and name on smaller screens */
  }

  .avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .popup {
    width: 90%;
  }
}

/* Logout confirmation popup */
.popup p {
  margin: 10px 0 20px;
  font-size: 14px;
  color: #374151;
}

/* App.css */

/* --- General Styles & Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
}

body {
  line-height: 1.6;
  color: #1f2937;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

input {
  font-family: inherit;
  border: none;
}

input:focus {
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.bg-gray-light {
  background-color: #f9fafb;
}

.bg-blue-light {
  background-color: #eff6ff;
}

.bg-dark {
  background-color: #00296b;
}

.text-white {
  color: #fff;
}

.text-center {
  text-align: center;
}

/* --- Icons --- */
i[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: middle;
  display: inline-block;
}

.input-icon {
  color: #9ca3af;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.button-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.button-icon-sm {
  width: 1rem;
  height: 1rem;
}

/* --- Hero Section --- */

/* --- Content Sections --- */
.content-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .content-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: -3rem;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title-left {
  font-size: 1.5rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-subtitle {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.section-subtitle-left {
  color: inherit;
  margin-bottom: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .section-title,
  .section-title-left {
    font-size: 1.875rem;
  }
}

/* md:text-3xl */

/* Grid Layouts */
.grid {
  display: grid;
}

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 2rem;
}

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

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

@media (min-width: 640px) {
  .sm-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Added */
  .md-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg-grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Banner Section */
.banner-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-size: cover;
  background-position: center;
  color: white;
}

.banner-overlay {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 0.5rem;
}

.banner-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .banner-title {
    font-size: 2.25rem;
  }
}

.banner-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: background-color 0.15s ease-in-out;
  border: none;
  cursor: pointer;
}

.button-orange {
  background-color: #f97316;
  color: white;
}

.button-orange:hover {
  background-color: #ea580c;
}

.button-blue {
  background-color: #2563eb;
  color: white;
}

.button-blue:hover {
  background-color: #1d4ed8;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .app-buttons {
    justify-content: flex-start;
  }
  .page-container {
    margin-left: 40px;
    padding-right: 40px;
  }
}

.app-buttons img {
  height: 3rem;
}

.blurred {
  /* filter: blur(1px); */
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1025px) {
  .page-container {
    margin-left: 140px;
    padding-right: 140px;
  }
}

.forms-page {
  /* padding: 24px; */
  background: #fafbfc;
  border-radius: 6px;
  /* box-shadow: 0 0 6px 1px #e4e4e4; */
  margin: 20px;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}

/* Always show sorting icons */
.rdt_TableCol_Sortable svg {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important; /* disable fade effects */
}

.rdt_TableCol_Sortable {
  cursor: pointer;
}

.form-container {
  /* max-width: 1200px; */
  padding: 12px;
  margin: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.form-input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}
.view-btn {
  background: #0b74de;
  color: white;
}
.view-btn::before {
  font-size: 12px;
}
.edit-btn {
  background: #76bb40;
  color: white;
}
.action-buttons button {
  margin-right: 6px;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend {
  padding: 0;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f7f9fc;
  padding: 20px;
}

.login-card {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 900px;
  max-width: 90%;
  height: 500px;
}

.card-left {
  flex: 1;
  background-color: #0060aa;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-text {
  font-size: 24px;
  font-weight: bold;
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-box img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.card-right {
  flex: 1;
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.login-form-section {
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.form-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

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

.input-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f7f9fc;
  box-sizing: border-box;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.checkbox {
  margin-right: 5px;
}

.checkbox-label {
  font-size: 14px;
  color: #666;
  flex-grow: 1;
}

.forgot-password-link {
  font-size: 14px;
  color: #1a4d40;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.otp-button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.otp-button:hover {
  background-color: #333;
}

.table-container {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 12px;
}

/* Action buttons */
.table-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.action-button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.action-button i {
  margin-right: 5px;
}

/* Example for blue text cells */
.blue-text {
  color: #0060aa !important;
  font-weight: 500;
}

/* Alternating row colors */
.rdt_TableRow:nth-child(odd) {
  background-color: #dfebf5;
  /* light gray */
}

.rdt_TableRow:nth-child(even) {
  background-color: #ffffff;
  /* white */
}

.rdtable-expandable-row {
  padding: 10px 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rdtable-expandable-row table {
  width: 100%;
  border-collapse: collapse;
}

.rdtable-expandable-row th,
.rdtable-expandable-row td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.rdtable-expandable-row tr:nth-child(even) {
  background: #fff;
}
/* Always show sorting icons */
.rdt_TableCol_Sortable svg {
  opacity: 1 !important;
  visibility: visible !important;
   transition: none !important; /* Prevent fade animation  */
} 

/* Ensure cursor pointer on sortable header */
.rdt_TableCol_Sortable {
  cursor: pointer;
}

/* .transporter-page {
  padding: 20px;
} */

.register-btn {
  background: #76bb40;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.pagination button {
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.pagination .active {
  background: #76bb40;
  color: white;
}

.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.skeleton-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.skeleton-cell {
  height: 18px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  flex-shrink: 0;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.export-btn {
  background: #004d26;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.pagination button {
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.pagination .active {
  background: #004d26;
  color: white;
}

/* Container & Header */
.fs-container {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 20px;
}

.fs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* margin-bottom: 24px; */
  padding: 0 10px;
}

.fs-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  color: #1f2937;
}

.fs-ghost-btn {
  background: #76bb40;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}
.fs-ghost-btn:hover {
  background: #4b5563;
}

/* Main Card */
.fs-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Search Row (two inputs) */
.fs-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.fs-search-col .fs-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.fs-search-input-group {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}
.fs-search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  background: #fff;
}
.fs-search-input-group input:focus {
  outline: none;
  border-color: #16a34a;
}
.fs-search-btn1 {
  background: #76bb40;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-search-btn1:hover:not(:disabled) {
  background: #15803d;
}
.fs-search-btn1:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Search results */
.fs-results {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 10px;
  max-height: 220px;
  max-width: 370px;
  overflow: auto;
  z-index: 100;
}
.fs-results-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.fs-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
}
.fs-result-item:hover {
  background: #f8fafc;
}
.fs-muted {
  color: #6b7280;
  font-size: 14px;
  padding: 8px 10px;
}
.fs-error {
  color: #dc2626;
}
.fs-error.center {
  text-align: center;
}

/* Details Cards Grid */
.details-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.details-card {
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e5e7eb;
}

/* Card Header */
.card-header {
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  font-weight: 600;
}
.card-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Card Sections */
.card-section {
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
/* Subheadings inside sections (Figma spec) */
.section-header h4 {
  font-weight: 600; /* SemiBold */
  font-size: 14px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Chip icon next to subheadings */
.chip {
  display: flex;                 /* already flex */
  align-items: center;           /* vertical center */
  justify-content: center;       /* horizontal center */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #76bb40;
  padding: 0;                    /* remove extra space */
  line-height: 1;                /* remove vertical offset from text baseline */
}
.chip .icon-contact {
  /* transform: translateY(5px);  */
   transform: translate(2px,4px);/* nudge down by 1px */
}
.chip svg {
  display: block;                /* removes inline baseline shift */
  width: 24px;
  height: 24px;
  margin: 0;   
                       /* remove any extra margin */
}
.chip-green {
  background: #76bb40;
}

/* Key/Value list (Figma label/value rows) */
.kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kv-line {
  display: grid;
  grid-template-columns: 134px 10px 1fr; /* label, colon, value */
  align-items: center;
}
.kv-k {
  font-weight: 500; /* Medium */
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #111827;
}
.kv-sep {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #9ca3af;
  text-align: center;
}
.kv-v {
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #334155;
}

/* Form rows inside cards */
.fs-form-row {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.fs-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  margin-right: 8px;
}
.fs-select-wrap {
  position: relative;
  display: inline-block;
  max-width: 470px;
}
.fs-select-wrap select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  appearance: none;
  background: #fff;
}
.fs-select-wrap select:focus {
  outline: none;
  border-color: #16a34a;
}
.fs-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
}

/* Radios (Management + Status tiles) */
.fs-radio-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

/* Status radio tiles (Figma spec) */
.fs-radio-block {
  display: flex;
  align-items: center;
  gap: 8px; /* figma gap ~5px */
  max-width: 100%;
  height: 44px; /* fixed height per figma */
  padding: 10px; /* figma shows 10px all around */
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  user-select: none;
}
.fs-radio-block input {
  accent-color: #76bb40;
  margin: 0;
}
.fs-radio-block span {
  font-size: 14px;
  color: #111827;
}

/* Active/selected state */
.fs-radio-block.is-active {
  background: rgba(118, 187, 64, 0.05); /* #76BB400D */
  border: 1px solid #76bb40;
  box-shadow: 0 0 0 1px rgba(118, 187, 64, 0.1) inset;
}
/* Hover/focus */
.fs-radio-block:not(.is-active):hover {
  border-color: #cbd5e1;
}
.fs-radio-block:has(input:focus-visible) {
  outline: 2px solid #76bb40;
  outline-offset: 2px;
}
/* neutralize old checked+span highlight */
.fs-radio-block input:checked + span {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Footer */
.form-actions {
  display: flex;
  justify-content: center;
}
.create-rst-btn {
  background: #16a34a;
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
  transition: background-color 0.2s;
}
.create-rst-btn:hover:not(:disabled) {
  background: #15803d;
}
.create-rst-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.create-rst-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .fs-container {
    padding: 10px;
  }
  .fs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .fs-header h1 {
    font-size: 24px;
  }
  .fs-search-row {
    grid-template-columns: 1fr;
  }
  .details-cards {
    grid-template-columns: 1fr;
  }
  .fs-search-input-group {
    flex-direction: column;
  }
  .fs-search-btn1 {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .fs-card {
    padding: 20px;
  }
  .details-card {
    padding: 15px;
  }
}

.container {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
}

/* Header */
.crop-request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.crop-request-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.create-new-btn {
  background: #16a34a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.create-new-btn:hover {
  background: #15803d;
}

/* Table Container */
.crop-request-table-container {
  /* background: white; */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

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

.crop-request-table thead {
  background-color: #0060aa;
  color: white;
}

.crop-request-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border: none;
}

.crop-request-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #333;
}

.crop-request-table tbody tr.even-row {
  background-color: #ffffff;
}

.crop-request-table tbody tr.odd-row {
  background-color: #f9fafb;
}

.crop-request-table tbody tr:hover {
  background-color: #f3f4f6;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

/* Loading and Error States */
.loading,
.error {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #6b7280;
}

.error {
  color: #dc2626;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  color: #374151;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.empty-state p {
  color: #6b7280;
  font-size: 16px;
  margin: 0 0 30px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.empty-state .create-new-btn {
  margin-top: 20px;
}

/* Skeleton wrapper */
.crop-request-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each row */
.skeleton-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  /* match your table columns */
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

/* Each cell */
.skeleton-cell {
  height: 20px;
  background: linear-gradient(-90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .crop-request-container {
    padding: 10px;
  }

  .crop-request-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .crop-request-table-container {
    overflow-x: auto;
  }

  .pagination-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* Crop Request Form Container */
.crop-request-form-container {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
}

/* Header */
.form-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 10px;
}

.back-btn {
  background: #6b7280;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn:hover {
  background: #4b5563;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.field-slip-section label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.search-input-group {
  display: flex;
  gap: 10px;
  width: 50rem;
  align-items: center;
}

.search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-input-group input:focus {
  outline: none;
  border-color: #16a34a;
}

.search-btn1 {
  background: #76bb40;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover:not(:disabled) {
  background: #15803d;
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Details Cards */
.details-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.details-card {
  /* background: #f9fafb; */
  border-radius: 12px;
  padding: 4px;
  border: 2px solid #e5e7eb;
  margin: 4px;
}

.card-header-c {
  /* display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px; */
  /* border-bottom: 2px solid #e5e7eb; */
  display: flex;
  align-items: center;
  /* gap: 12px; */
  justify-content: center;
  /* margin-bottom: 12px; */
  /* padding-bottom: 15px; */
  /* border-bottom: 2px solid #e5e7eb; */
  /* font-style: normal; */
  font-weight: 600;
}

.card-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header-c h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.card-section {
  /* margin-bottom: 20px; */
  padding: 10px;
  border-radius: 6px;
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #76bb40;
  color: white;
  border-radius: 4px;
}

.section-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.section-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.section-content p strong {
  color: #374151;
  font-weight: 600;
}

/* Weight and Date Section */
.weight-date-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.input-group input {
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  max-width: 470px;
}

.input-group input:focus {
  outline: none;
  border-color: #16a34a;
}

.date-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.date-input-group input {
  flex: 1;
  padding-right: 40px;
}

.calendar-icon {
  position: absolute;
  right: 12px;
  font-size: 16px;
  color: #6b7280;
  pointer-events: none;
}

.weight-item {
  display: flex;
  align-items: center;
}

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

.weight-label {
  font-size: 14px;
  font-weight: 600;
  color: #0c4a6e;
}

.weight-value {
  font-size: 16px;
  font-weight: 700;
  color: #0c4a6e;
  padding: 4px 12px;
  border-radius: 4px;
  text-align: center;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
}

.create-rst-btn {
  background: #16a34a;
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
  transition: background-color 0.2s;
}

.create-rst-btn:hover:not(:disabled) {
  background: #15803d;
}

.create-rst-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.create-rst-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .crop-request-form-container {
    padding: 10px;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .details-cards {
    grid-template-columns: 1fr;
  }

  .weight-date-section {
    grid-template-columns: 1fr;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .crop-request-form {
    padding: 20px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .details-card {
    padding: 15px;
  }
}

/* .form-header {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 10px;
} */

/* mirror your farmers/transporter styles, renamed for roles */

.roles-page {
  background: #fafbfc;
  border-radius: 6px;
  margin: 20px;
}

.register-btn-role {
  background: #76bb40;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.register-btn-role:hover {
  background: #5ea42f;
}

.roles-head {
  font-size: 30px;
  font-weight: 500;
}

/* optional search — keep same look so it slots in later if needed */
.search-section {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 24px 20px 24px;
}

.search-bar {
  position: relative;
  width: 40%;
  margin-left: -10px;
}

.search-input-role {
  width: 100%;
  padding: 11px 18px 11px 44px;
  border: 1px solid #989a9d;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  height: 48px;
  color: #374151;
}

.search-input-role:focus {
  border-color: #8dc3ed;
  box-shadow: 0 0 0 2px rgba(13, 150, 244, 0.12);
}

.search-button-role {
  padding: 11px 18px;
  border: none;
  color: white;
  border-radius: 8px;
  background-color: #76bb40;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-button-role:hover {
  background-color: #5ea42f;
}

/* action buttons (reused) */
.action-buttons {
  display: flex;
  gap: 8px;
}

/* pagination (DataTable footer) */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  gap: 5px;
  font-size: 15px;
}
.pagination button,
.pagination .active {
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  background: #eaeaea;
  color: #343a40;
  cursor: pointer;
  font-size: 15px;
}
.pagination .active {
  background: #6bb73c;
  color: #fff;
  font-weight: 600;
}
.pagination button:hover {
  background: #c7e7c1;
}

/* skeleton (if you reuse your SkeletonLoader, this is optional) */
.skeleton-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.skeleton {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* make sorting icon always visible like your other table */
.rdt_TableCol_Sortable svg {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
.rdt_TableCol_Sortable {
  cursor: pointer;
}

.farmers-page {
  /* padding: 24px; */
  background: #fafbfc;
  border-radius: 6px;
  /* box-shadow: 0 0 6px 1px #e4e4e4; */
  margin: 20px;
}

.register-btn-farmer {
  background: #76bb40;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.register-btn:hover {
  background: #5ea42f;
}

.farmer-details-head {
  /* padding: 15px; */
  font-size: 30px;
  font-weight: 500;
}

/* SEARCH SECTION - SIDE BY SIDE */
.search-section {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 24px 20px 24px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  width: 500px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
}

.farmer-details-view div {
  margin-bottom: 10px;
}

.farmer-details-view h3 {
  margin-bottom: 16px;
}

.farmer-details-view button {
  margin-top: 12px;
  padding: 8px 16px;
  background: #76bb40;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-bar {
  /* flex: 1; */
  position: relative;
  width: 40%;
  margin-left: -10px;
}

.search-input-farmer {
  width: 100%;

  padding: 11px 18px 11px 4px;
  border: 1px solid #989a9d;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  height: 48px;
  color: #374151;
}

.search-input:focus {
  border-color: #8dc3ed;
  box-shadow: 0 0 0 2px rgba(13, 150, 244, 0.12);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.search-button-farmer {
  padding: 11px 18px;
  border: none;
  color: white;
  border-radius: 8px;
  background-color: #76bb40;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn .search-button:hover {
  background-color: #5ea42f;
}

.table thead tr {
  background: #03589a;
  color: #fff;
  font-size: 16px;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
}

.table tbody tr:nth-child(even) {
  background: #f4f4f4;
}

.table tbody tr:nth-child(odd) {
  background: #fff;
}

.table tbody tr {
  border-bottom: 1px solid #eaeaea;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.skeleton-cell {
  background-color: #e0e0e0;
  animation: shimmer 1.5s infinite linear;
}

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

  100% {
    background-position: 200px 0;
  }
}

.skeleton-cell {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200px 100%;
}

.table a {
  color: #d44b3e;
  text-decoration: none;
  font-weight: 500;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  gap: 5px;
  font-size: 15px;
}

.pagination button,
.pagination .active {
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  background: #eaeaea;
  color: #343a40;
  cursor: pointer;
  font-size: 15px;
}

.pagination .active {
  background: #6bb73c;
  color: #fff;
  font-weight: 600;
}

.pagination button:hover {
  background: #c7e7c1;
}

.land-details-table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  font-size: 14px;
}

.land-details-table td {
  border-left: 1px solid black;
  border-right: 1px solid black;
  padding: 4px;
}

/* remove left border for first column */
.land-details-table td:first-child {
  border-left: 1px solid black;
}

/* remove right border for last column to avoid outer border */
.land-details-table td:last-child {
  border-right: 1px solid blackone;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .search-section {
    flex-direction: column;
    margin: 0;
    gap: 10px;
  }
}

.header-container-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-title {
  font-size: 26px;
  font-weight: 700;
  color: #333;
}

.go-farmer-btn:hover {
  background-color: #223e0d;
}

.form-section {
  background-color: #fff;
  border-radius: 8px;
  position: relative;
}

.section-header {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  margin-bottom: 10px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0060aa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* narrower width for fields */
  gap: 12px;
}

.form-input,
.form-select {
  padding: 12px 14px;
  /* more padding inside */
  font-size: 14px;
  border: 1.5px solid black;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.3s;
  height: 40px;
  /* taller fields */
  max-width: 300px;
  /* prevent stretching too wide */
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
}

.required-star {
  color: red;
  margin-left: 2px;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #007bff;
}

.form-input:disabled,
.form-select:disabled {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Land Details section cross button */
.land-cross {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

.land-cross:hover {
  background: #ff4d4f;
  color: #fff;
}

/* Add Land button (only one at bottom, properly aligned) */
.add-land-container {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0;
}

.add-land-text {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: whi;
  padding: 6px;
  border-radius: 10px;
  background-color: #76bb40;
}

.add-land-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-land-btn:hover {
  background-color: #5a9b32;
}

/* Inline Add Land Button (inside section header) */
.add-land-btn-inline {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-land-btn-inline:hover {
  background-color: #5a9b32;
}

.land-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.add-land-btn-inline,
.remove-land-btn-inline {
  background: white;
  /* keep white inside */
  color: black;
  /* icon/text color */
  border: 1px solid black;
  /* black border */
  border-radius: 50%;
  /* round */
  width: 20px;
  /* smaller size */
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  /* smaller symbol size */
  line-height: 18px;
  /* vertically center */
  text-align: center;
  padding: 0;
}

.remove-land-btn-inline {
  color: black;
  /* make minus red */
  border-color: black;
  /* red border */
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.submit-btn {
  padding: 8px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}
/* NEW: subheader row for each Land # block */
.section-subheader {
  display: flex;
  align-items: center; /* vertical align */
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Ensure title doesn't push buttons down */
.form-section-subtitle,
.form-section-subtitle h4 {
  margin: 0;
  line-height: 1.2;
}

/* Keep actions inline to the right */
.land-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Round + / − buttons – consistently centered */
.add-land-btn-inline,
.remove-land-btn-inline {
  display: inline-flex; /* centers content better than line-height hacks */
  justify-content: center;
  align-items: center;
  width: 28px; /* slightly larger for tap targets */
  height: 28px;
  border-radius: 50%;
  border: 1px solid black;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* If you want minus to be red, uncomment these */
/*
.remove-land-btn-inline {
  border-color: #e74c3c;
  color: #e74c3c;
}
.remove-land-btn-inline:hover {
  background: #e74c3c;
  color: #fff;
}
*/

/* Fix: typo 'whi' -> 'white' */
.add-land-text {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: white; /* <-- fixed */
  padding: 6px;
  border-radius: 10px;
  background-color: #76bb40;
}

/* Optional: give form-section some breathing room */
.form-section {
  background-color: #fff;
  border-radius: 8px;
  position: relative;
  padding: 8px 0; /* add light padding so header doesn’t touch edges */
}

/* ---------- Root Wrapper ---------- */
.owner-contacts {
  /* max-width: 1500px; */
  padding: 20px;
  border-radius: 16px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 20px;
}

/* ---------- Left Section ---------- */
.owner-contacts .contacts-left {
  flex: 2;
}

.owner-contacts .title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.owner-contacts .contacts-list-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 10px 12px;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.owner-contacts .contacts-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.owner-contacts .contact-item {
  padding: 18px 16px;
  margin-bottom: 12px;
  border: 1px solid #111;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.owner-contacts .contact-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.owner-contacts .contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.owner-contacts .contact-name,
.owner-contacts .contact-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.owner-contacts .icon-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ---------- Right Section ---------- */
.owner-contacts .contacts-right {
  flex: 1;
  position: relative;
}

.owner-contacts .add-btn {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  background: #0c5554;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.owner-contacts .add-btn:hover {
  background: #0a4443;
  transform: translateY(-2px);
}

.owner-contacts .contact-form {
  margin-top: 10px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.owner-contacts .contact-form h3 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.owner-contacts .input-label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.owner-contacts .input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.owner-contacts .icon {
  width: 32px;
  height: 32px;
}

.owner-contacts .input-field {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.owner-contacts .input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
  outline: none;
}

.owner-contacts .form-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  gap: 12px;
}

.owner-contacts .save-btn {
  background: #0c5554;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owner-contacts .save-btn:hover {
  background: #0a4443;
  transform: translateY(-1px);
}

/* ---------- Skeleton ---------- */
.owner-contacts .skeleton {
  display: flex;
  gap: 10px;
  align-items: center;
}

.owner-contacts .skeleton-box {
  height: 18px;
  width: 140px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 400% 100%;
  border-radius: 6px;
  margin: 6px 0;
  animation: shimmer 1.5s infinite linear;
}

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

  100% {
    background-position: 200px 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .owner-contacts {
    flex-direction: column;
  }

  .owner-contacts .contacts-right {
    width: 100%;
  }

  .owner-contacts .add-btn {
    width: 100%;
  }
}

.product-form-wrapper {
  margin: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
  padding: 12px;
  /* position: relative; */
}
.form-row {
  display: flex;
  gap: 20px; /* space between columns */
}

.product-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.product-list-btn {
  background: #76b82a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 9px 23px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-list-btn:hover {
  background: #57a019;
}

.product-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a2a36;
  margin-bottom: 16px;
}

.product-form {
  margin-top: 8px;
}

.form-group label {
  font-weight: 500;
  color: #222;
  margin-bottom: 7px;
}

.form-input {
  border: 1px solid #cdd4da;
  border-radius: 9px;
  padding: 13px 11px;
  font-size: 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #76b82a;
}

textarea.form-input {
  display: flex;
  resize: none;
  min-height: 52px;
}

.required {
  color: #d82d2d;
  margin-left: 3px;
}

.variant-title {
  font-size: 21px;
  font-weight: 600;
  /* margin: 22px 0 14px 0; */
  display: flex;
  align-items: center;
  /* gap: 16px; */
}

.add-variant-btn {
  background: #76b82a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.18s;
}

.add-variant-btn:hover {
  background: #57a019;
}

.variant-row {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.variant-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.variant-field label {
  color: #222;
  font-weight: 500;
  margin-bottom: 8px;
}

.variant-block hr {
  margin-top: 4px;
  border: 0;
  border-top: 1px solid #ddd;
}

.variant-action-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 8px;
}

.remove-variant-btn {
  background: #e53e3e; /* red */
  color: white;
  font-size: 22px;
  line-height: 22px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.remove-variant-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.remove-variant-btn:hover:not(:disabled) {
  background: #c53030;
}

.save-product-btn {
  background: #76b82a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 13px 39px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}

.save-product-btn:hover {
  background: #57a019;
}

.form-input:disabled {
  background: #d3d3d3;
  color: #333;
  cursor: not-allowed;
}

/* Header row */
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.product-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #16232c;
  margin: 0;
}
.add-product-btn {
  background: #76b82a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 9px 27px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.add-product-btn:hover {
  background: #57a019;
}

.search-row {
  margin-bottom: 18px;
}
.search-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
  color: #232323;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.search-input {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid #d0d6db;
  border-radius: 7px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: #0090e3;
}
.search-btn {
  background: #58aeff;
  color: #fff;
  border: none;
  padding: 9px 17px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-btn i {
  font-size: 19px;
}

/* Table Action buttons */
.table-actions {
  display: flex;
  gap: 9px;
}
.action-button {
  border: none;
  border-radius: 6px;
  padding: 5px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.skeleton-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.skeleton-table th,
.skeleton-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.skeleton-table th {
  background-color: #f7f7f7;
}

.skeleton-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* ===== Purchasers Page ===== */

.purchasers-head {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

/* Primary action button (Go to Purchases) */
.register-btn {
  background: #76bb40;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease-in-out;
}
.register-btn:hover {
  background: #5ea42f;
}

/* ===== Table Styling (works if your Table component outputs .table) ===== */
.table thead tr {
  background: #03589a;
  color: #fff;
  font-size: 16px;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
}

.table tbody tr:nth-child(even) {
  background: #f4f4f4;
}

.table tbody tr:nth-child(odd) {
  background: #fff;
}

.table tbody tr {
  border-bottom: 1px solid #eaeaea;
}

/* Links inside table cells */
.table a {
  color: #d44b3e;
  text-decoration: none;
  font-weight: 500;
}

/* ===== Action buttons (if you add an Action column later) ===== */
.action-buttons {
  display: flex;
  gap: 8px;
}

/* ===== Pagination (if your Table exposes these classes) ===== */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  gap: 6px;
  font-size: 15px;
}

.pagination button,
.pagination .active {
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  background: #eaeaea;
  color: #343a40;
  cursor: pointer;
  font-size: 15px;
}

.pagination .active {
  background: #6bb73c;
  color: #fff;
  font-weight: 600;
}

.pagination button:hover {
  background: #c7e7c1;
}

/* ===== Skeleton loader (if used by Table wrapper) ===== */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.skeleton-cell {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite linear;
}

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

/* ===== Responsive tweaks ===== */
@media (max-width: 900px) {
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

.f-s {
  font-size: 22px;
  /* margin-bottom: 1.5rem; */
  font-weight: 500;
  color: #222;
  margin-left: 32px;
}

/* react-data-table styles overrides */

.rdt_TableHeadRow {
  background-color: #0060aa !important;
}

.rdt_TableCol {
  font-weight: 600 !important;
  color: white !important;
  font-size: 14px;
}

.rdt_TableBodyRow:nth-child(odd) {
  background-color: #e4e4e4;
}

.rdt_TableBodyRow:nth-child(even) {
  background-color: #f6f6f6;
}

.rdt_TableCell {
  font-size: 14px;
  color: #222 !important;
}

/* Per unit red colored text */

.per-unit-text {
  color: #ed1c24;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
}

/* Update button styling */

.update-btn {
  background-color: #4cb948;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.update-btn:hover {
  background-color: #389c37;
}

/* Responsive adjustments */

@media (max-width: 600px) {
  .rate-setup-container {
    padding: 1rem;
    max-width: 95vw;
  }
  .rdt_TableCol,
  .rdt_TableCell {
    padding: 6px 8px;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  width: 320px;
  padding: 0;
  overflow: hidden;
}
.modal-header {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}
.modal-body {
  padding: 16px;
}
.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-row span {
  flex: 1;
}
.modal-row input {
  flex: 1;
  padding: 4px;
  margin-left: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.modal-save-btn {
  width: 90%;
  margin: 16px 5% 0 5%;
  padding: 10px 0;
  background-color: #76c043;
  color: white;
  border: none;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}
.modal-cancel-btn {
  margin: 10px 5% 10px 5%;
  width: 90%;
  padding: 8px 0;
  background: #e7eaee;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.header-container-s {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-title {
  font-size: 26px;
  font-weight: 700;
  color: #333;
}

.form-grid-sl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4px;
  /* margin-left: 8px; */

}

.go-farmer-btn:hover {
  background-color: #223e0d;
}

.form-section {
  background-color: #fff;
  border-radius: 8px;
  position: relative;
}

.section-header {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  margin-bottom: 10px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0060aa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* narrower width for fields */
  gap: 12px;
}

.form-input,
.form-select {
  padding: 12px 14px;
  /* more padding inside */
  font-size: 14px;
  border: 1.5px solid black;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.3s;
  height: 40px;
  /* taller fields */
  max-width: 300px;
  /* prevent stretching too wide */
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
}

.required-star {
  color: red;
  margin-left: 2px;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #007bff;
}

.form-input:disabled,
.form-select:disabled {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Land Details section cross button */
.land-cross {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

.land-cross:hover {
  background: #ff4d4f;
  color: #fff;
}

/* Add Land button (only one at bottom, properly aligned) */
.add-land-container {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0;
}

.add-land-text {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: whi;
  padding: 6px;
  border-radius: 10px;
  background-color: #76bb40;
}

.add-land-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-land-btn:hover {
  background-color: #5a9b32;
}

/* Inline Add Land Button (inside section header) */
.add-land-btn-inline {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-land-btn-inline:hover {
  background-color: #5a9b32;
}

.land-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.add-land-btn-inline,
.remove-land-btn-inline {
  background: white;
  /* keep white inside */
  color: black;
  /* icon/text color */
  border: 1px solid black;
  /* black border */
  border-radius: 50%;
  /* round */
  width: 20px;
  /* smaller size */
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  /* smaller symbol size */
  line-height: 18px;
  /* vertically center */
  text-align: center;
  padding: 0;
}

.remove-land-btn-inline {
  color: black;
  /* make minus red */
  border-color: black;
  /* red border */
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.submit-btn {
  padding: 8px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #76bb40;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.payment-actions {
  display: flex;
  align-items: end;
  margin-left: 0.25rem;
}

.update-btn {
  background-color: #0060aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.update-btn:hover {
  background-color: #004f8a;
}

.update-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Date | Amount | Action */
.form-grid.payment-row {
  grid-template-columns: 1fr 1fr auto;
  column-gap: 12px;
  align-items: end;
  /* bottoms of inputs & button line up */
}

/* Make the button exactly as tall as inputs (40px) */
.update-btn {
  background-color: #76bb40;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 40px;
  /* ← matches .form-input height */
  padding: 0 16px;
  /* horizontal padding only */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
  /* avoids extra vertical space */
}

.update-btn:hover {
  background-color: #5c992d;
}

.update-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.pagination button {
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.pagination .active {
  background: #004d26;
  color: white;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr 2fr 2fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.skeleton {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}

.skeleton-id {
  width: 60px;
}
.skeleton-name {
  width: 120px;
}
.skeleton-contact {
  width: 140px;
}
.skeleton-city {
  width: 100px;
}
.skeleton-vehicle {
  width: 120px;
}
.skeleton-actions {
  width: 80px;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
/* Always show sorting icons */
.rdt_TableCol_Sortable svg {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important; /* Prevent fade animation */
}

/* Ensure cursor pointer on sortable header */
.rdt_TableCol_Sortable {
  cursor: pointer;
}

.transporter-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.go-transporter-btn {
  background-color: #084918;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.go-transporter-btn:hover {
  background-color: #76bb40;
}

.form-section {
  padding: 10px;
  border-radius: 6px;
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0060aa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-left: 4px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.required-star {
  color: red;
}

.form-input,
.form-select {
  padding: 8px 8px;
  font-size: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
}

.form-input:disabled,
.form-select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.vehicle-input {
  flex: 1;
}

.vehicle-cross {
  color: red;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

.add-vehicle-btn {
  background-color: #76bb40;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
}

.add-vehicle-btn:hover {
  background-color: #76bb40;
}

.form-actions {
  margin-top: 20px;
  text-align: center;
}

.submit-btn {
  background-color: #76bb40;
  color: #fff;
  padding: 8px 80px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.submit-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}
/* --- Action bar (matches Product form layout) --- */
.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* Cancel button (neutral secondary) — same vibe as product Cancel */
.cancel-btn {
  background: #f1f3f5;
  color: #334155;
  font-weight: 600;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.cancel-btn:hover {
  background: #e9ecef;
  border-color: #c7d0d9;
}
.cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Submit button — if you already have one, keep it; else: */
.submit-btn {
  background: #76b82a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: #57a019;
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- Land inline + / − (styled like Product add/remove variant buttons) --- */
.land-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.add-land-btn-inline {
  background: #76b82a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.add-land-btn-inline:hover {
  background: #57a019;
}

.remove-land-btn-inline {
  background: #e53e3e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.remove-land-btn-inline:hover {
  background: #c53030;
}
.remove-land-btn-inline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.daily-crushing-form-page {
  background: #eef2f5;
  min-height: 100vh;
}
.dailyCrushing-section {
    margin-bottom: 20px; 
   
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 16px 20px;
  background-color: #ffffff;
} 
.content-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  min-height: calc(100vh - 32px);
}

.header-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}
.register-btn {
  background: #76bb40;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.register-btn:hover {
  filter: brightness(0.95);
}

.label {
  font-weight: 600;
  font-size: 13.5px;
  color: #1f2937;
  margin-bottom: 6px;
  display: inline-block;
}
.input {
  width: 320px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  background: #fff;
}
.input:focus {
  border-color: #0d5ea6;
  box-shadow: 0 0 0 3px rgba(13, 94, 166, 0.15);
}
.crushing-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap:2rem;
  margin-top: 1rem;
  background-color: #ffffff;
}
.field-block {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
   min-width: 160px; 
}

.metric {
  margin: 7px 0;
  color: #111827;
   /* display: flex;
  flex-direction: column;
  justify-content: center; */
}
.metric strong {
  margin-left: 6px;
}

.caption {
  color: #0d5ea6;
  font-weight: 700;
  margin: 8px 0 6px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 equal columns */
  gap: 12px; /* space between inputs */
  max-width: 100%; /* don’t overflow container */
}

.boxed {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  background: #fff;
}
.boxed-title {
  color: #0d5ea6;
  font-weight: 700;
  margin-bottom: 8px;
}
.boxed-row {
  display: flex;
   justify-content: space-between;
  gap: 8px;
  margin: 4px 0;
}
.boxed-row span {
  width: 60px;
  color: #111827;
}

.totals {
  margin: 12px 0 18px;
  display: grid;
  gap: 6px;
}
.totals strong {
  font-weight: 700;
}

/* .save-primary {
  background: #76bb40;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.save-primary:hover {
  filter: brightness(0.95);
} */
.value-box {
  padding: 6px 8px;
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 200px;
}

.value-text {
  font-weight: 600;
  color: #002b5b;
}

.error-text {
  color: red;
  font-size: 12px;
  margin-left: 6px;
}

/* dailyCrushingForm.css */

/* Outer container */
.dailyCrushing-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;

 
  display: flex;
  flex-direction: column;
  gap: 24px;
}



/* Headings for each section */
.dailyCrushing-section h3,
.dailyCrushing-section h4 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

/* Form row structure */
.dailyCrushing-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

/* Label + Input groups */
.dailyCrushing-form-row label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.dailyCrushing-form-row input,
.dailyCrushing-form-row select {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.dailyCrushing-form-row input:focus,
.dailyCrushing-form-row select:focus {
  border-color: #0078d7;
  box-shadow: 0 0 3px rgba(0, 120, 215, 0.3);
}

/* Action buttons at bottom */
.dailyCrushing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.dailyCrushing-actions button {
  /* background-color: #0078d7; */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.dailyCrushing-actions button:hover {
  background-color: #005ea2;
}


.production-row {
  display: flex;
  align-items: flex-end;
  gap: 4rem;           /* space between fields */
  flex-wrap: wrap;       /* wraps to next line on smaller screens */
  margin-top: 1rem;
}

/* Each field (label + input) */
.production-field-block {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.production-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.production-input {
  width: 120px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.dailyCrushing-section-wrapper {
  display: flex;
  gap: 20px; /* space between sections */
  border: 1px solid #ccc; /* border around both sections */
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}
.dailyCrushing-box {
  flex: 1;
  /* border: 1px solid #ccc;  */
  border-radius: 8px;
  padding: 15px;
  background-color: #ffffff;
  
}


/* make inputs expand on small screens */
@media (max-width: 720px) {
  .input {
    width: 100%;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .boxed {
    max-width: 100%;
  }
}
/* page shell */
.production-wrapper .daily-crushing-page {
  padding: 12px;
}
.production-wrapper .content-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.production-wrapper .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.production-wrapper .register-btn {
  background: #76bb40;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* table */
.production-wrapper .prod-table {
  border-radius: 8px;
  overflow: hidden;
}

/* HEADER FONT SIZE BOOST */
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(1) > th,
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(2) > th {
  font-size: 13px !important; /* bigger font */
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0;
}

/* colors for headers */
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(1) > th {
  background: #0a5a90;
  color: #fff;
  padding: 12px 8px;
  border-color: #ffffff;
}
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(2) > th {
  background: #0f6fae;
  color: #fff;
  padding: 10px 8px;
  border-color: #ffffff;
}

/* center header text */
.production-wrapper .th-center {
  text-align: center !important;
}

/* body cells */
.production-wrapper .prod-table .p-datatable-tbody > tr > td {
  text-align: center;
  padding: 10px 8px;
  border-color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

/* zebra rows */
.production-wrapper
  .prod-table.p-datatable-striped
  .p-datatable-tbody
  > tr:nth-child(odd) {
  background: #e9eef3;
}

/* narrow cols */
.production-wrapper .p-datatable .narrow {
  width: 90px;
}

/* date cell */
.production-wrapper .date-text {
  display: inline-block;
  padding: 2px 0;
}

/* action button */
.production-wrapper .table-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.production-wrapper .action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

/* title */
.production-wrapper .page-title {
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0;
  color: #000000;
  margin: 0;
}
.production-wrapper .p-datatable .p-column-header-content {
  justify-content: center; /* or flex-start / flex-end */
  gap: 6px; /* optional: spacing between text & sort icon */
}

/* Wrapper */

.roles-form-container {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.roles-page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #051b3d;
}

/* Section wrapper */
.roles-section {
  background: #f9f9f9;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

/* Section title */
.roles-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #051b3d;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 6px;
}

/* Form row */
.roles-form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Form group */
.roles-form-group {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
}

.roles-form-group label {
  font-size: 12px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

/* Input / Select */
.roles-form-group input,
.roles-form-group select {
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #111;
  border-radius: 8px;
  outline: none;
  width: 300px;
  box-sizing: border-box;
  height: 40px;
  background: #fefefe;
  color: #111;
  transition: all 0.2s ease;
}

.roles-form-group input:focus,
.roles-form-group select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

/* Error */
.roles-form-group .roles-error,
.roles-form-group select.roles-error {
  border-color: #e74c3c;
}
.roles-error-message {
  font-size: 10px;
  color: #e74c3c;
  margin-top: 2px;
}

/* Submit row & button */
.roles-form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.roles-submit-button {
  background: #76bb40;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.roles-submit-button:hover {
  background: #76bb40;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 720px) {
  .roles-form-row {
    flex-direction: column;
  }
  .roles-form-group {
    max-width: 100%;
  }
}

/* Permissions Matrix Styling (roles-*) */
.roles-permissions-matrix-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  margin-top: 12px;
  overflow-x: auto;
}
.roles-permissions-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 13px;
}
.roles-permissions-matrix th,
.roles-permissions-matrix td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}
.roles-permissions-matrix th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}
.roles-permissions-matrix td {
  background: #fff;
}
.roles-sticky-col {
  position: sticky;
  left: 0;
  background: #f3f4f6;
  font-weight: 500;
  text-align: left;
  min-width: 180px;
  z-index: 2;
}
.roles-permissions-matrix input[type='checkbox'] {
  transform: scale(1.1);
  cursor: pointer;
}
.roles-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.roles-mini {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}
.roles-permissions-matrix tbody tr:hover td {
  background: #f9fafc;
}
.roles-permissions-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.roles-ghost {
  background: transparent;
  color: #111827;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.roles-ghost:hover {
  background: #eaf2ff;
  border-color: #76bb40;
}
/* Header container for title + navigation button */
.roles-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
}

/* Navigation button styling */
.roles-nav-btn {
  background: #76bb40;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roles-nav-btn:hover {
  background: #5da832;
}
/* ===== Permissions Matrix (scoped to emp-*) ===== */

.emp-permissions-matrix-wrapper {
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
  overflow-x: auto;
}

/* table basics */
.emp-permissions-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  color: #0f172a;
}

/* header cells */
.emp-permissions-matrix thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e6e8ef;
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* body cells */
.emp-permissions-matrix tbody td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 12px;
  background: #fff;
}

/* sticky first column */
.emp-permissions-matrix .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
  text-align: left;
  font-weight: 600;
  color: #0b2458;
  min-width: 200px;
  border-right: 1px solid #eef2f7;
}

/* row hover */
.emp-permissions-matrix tbody tr:hover td {
  background: #fbfdff;
}

/* center checks */
.emp-permissions-matrix .cell-center {
  text-align: center;
}

/* column header content (perm label + All) */
.emp-permissions-matrix .col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* space between label and the mini control */
}

/* little "All" control */
.emp-permissions-matrix .mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  user-select: none;
}

/* checkbox sizing */
.emp-permissions-matrix input[type='checkbox'] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* actions row */
.emp-permissions-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.emp-ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}
.emp-ghost:hover {
  background: #f5f9ff;
  border-color: #9cc3ff;
}
.emp-ghost:active {
  transform: translateY(1px);
}

/* make the “Row” column a tad wider */
.emp-permissions-matrix th:last-child,
.emp-permissions-matrix td:last-child {
  min-width: 90px;
}

/* Reuse production look for Sale Orders table */
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(1) > th,
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(2) > th {
  font-size: 13px !important;
  font-weight: 500;
}

/* Make sure the grouped header colors match production */
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(1) > th {
  background: #0a5a90;
  color: #fff;
}
.production-wrapper .prod-table .p-datatable-thead > tr:nth-child(2) > th {
  background: #0f6fae;
  color: #fff;
}

/* Center header text for all header cells with this class */
.production-wrapper .th-center {
  text-align: center !important;
}

/* Body cells (same spacing/weight) */
.production-wrapper .prod-table .p-datatable-tbody > tr > td {
  text-align: center;
  padding: 10px 8px;
  border-color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

/* Zebra rows like production (requires p-datatable-striped on table) */
.production-wrapper
  .prod-table.p-datatable-striped
  .p-datatable-tbody
  > tr:nth-child(odd) {
  background: #e9eef3;
}

/* Narrow columns */
.production-wrapper .prod-table .narrow {
  width: 90px;
}

/* Action col sizing */
.production-wrapper .prod-table th.actions-col,
.production-wrapper .prod-table td.actions-col {
  min-width: 210px;
  max-width: 240px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Stack buttons vertically inside action cell (same as production) */
.production-wrapper .table-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-direction: column; /* stacked */
  align-items: stretch;
}
.production-wrapper .action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.production-wrapper .view-btn:hover {
  background: #095fb5;
}

/* Two-line label inside the buttons */
.production-wrapper .btn-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: center;
  font-size: 13px;
}

/* Page shell and header reuse */
.production-wrapper .daily-crushing-page {
  padding: 12px;
}
.production-wrapper .content-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.production-wrapper .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.production-wrapper .register-btn {
  background: #76bb40;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.production-wrapper .page-title {
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0;
  color: #000;
  margin: 0;
}
/* Make the button label stack to two lines */
.production-wrapper .btn-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  white-space: normal; /* allow wrapping */
  text-transform: none; /* keep lowercase if you typed it that way */
}

.production-wrapper .btn-lines > span {
  display: block; /* each word on its own line */
}

/* optional: keep the action buttons tall enough for two lines */
.production-wrapper .action-button {
  min-height: 38px;
  padding: 8px 12px;
}

/* if Prime (or any global CSS) forces nowrap on buttons, override just in case */
.production-wrapper .actions-col .action-button,
.production-wrapper .actions-col .action-button * {
  white-space: normal;
}
/* Stack multiple lines neatly inside a single cell */
.goods-cell {
  display: grid;
  grid-auto-rows: minmax(20px, auto);
  row-gap: 4px;
  justify-items: start; /* left align text */
}

.goods-cell.goods-right {
  justify-items: end; /* right align numbers */
}

/* optional: light separators between subrows */
.goods-line {
  width: 100%;
  padding: 2px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.goods-line:last-child {
  border-bottom: none;
}
/* Use the same separator color everywhere (table + subrows) */
.production-wrapper .prod-table {
  --cell-sep-color: #ffffff; /* matches your td border-color */
}

/* Ensure table cells draw the grid lines */
.production-wrapper .prod-table .p-datatable-tbody > tr > td {
  border-right: 1px solid var(--cell-sep-color);
  border-bottom: 1px solid var(--cell-sep-color);
}

.goods-cell {
  display: grid;
  grid-auto-rows: minmax(22px, auto);
  row-gap: 0;
  justify-items: center; /* centers horizontally */
  align-items: center; /* centers vertically */
  margin: -10px -8px;
  padding: 10px 8px;
}

.goods-cell.goods-right {
  justify-items: center; /* also center numbers */
}

.goods-line {
  width: 100%; /* don’t force 100% width */
  display: block; /* simple block keeps text centered */
  text-align: center; /* fallback centering */
  border-bottom: 1px solid var(--cell-sep-color);
  padding: 2px 0;
}

.goods-line:last-child {
  border-bottom: none;
}

.transporter-page {
  background: #fafbfc;
  border-radius: 6px;
  margin: 20px;
  padding: 24px;
}

Header .transporter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.transporter-title {
  font-size: 28px;
  font-weight: 600;
}

.transporter-add-btn-header {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.transporter-add-btn-header:hover {
  background: #059669;
}

/* Container for the two buttons */
.action-buttons {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

/* Apply only to buttons inside this container */
.action-buttons button {
  white-space: nowrap !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

/* Search */
/* .transporter-search-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  max-width:250px;
}

.transporter-search-bar {
  position: relative;
  flex: 1;
}

.transporter-search-input {
  /* width: 100%; 
  padding: 8px 8px 8px 32px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  height: 36px;
}

.transporter-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.6;
} */

/* Action Buttons 
.transporter-action-buttons {
  display: flex;
   align-items: center;
  gap: 6px;
} */
/* 
.transporter-action-buttons button {
display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  height: 32px;
  transition: background-color 0.2s ease-in-out;
}  */
/* 
.transporter-btn-icon {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
} */

/* .transporter-view-btn {
  background: #10b981;
  color: white;
} */

/* .transporter-view-btn:hover {
  background: #059669;
} */

/* .transporter-add-btn {
  background: #03589a;
  color: white;
}

.transporter-add-btn:hover {
  background: #023e6f;
} */

/* 

.result-count {
  font-size: 14px;
  margin: 0 8px;
} */

/* Responsive 
@media (max-width: 768px) {
  .transporter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .transporter-search-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .transporter-action-buttons {
    flex-direction: column;
  }
*/

.new-advance-container {
  background-color: #f5f5f5;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.new-advance-header {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-advance-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: #059669;
}

.back-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.new-advance-form {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 48px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23374151%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.fs-search-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 400px; /* adjust width here */
}

.fs-search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s;
}

.fs-search-input-group input:focus {
  outline: none;
  border-color: #16a34a;
}

.fs-search-btn1 {
  background: #76bb40;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-search-btn1:hover:not(:disabled) {
  background: #15803d;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.save-btn {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.save-btn:hover {
  background-color: #059669;
}

@media (max-width: 768px) {
  .new-advance-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .new-advance-form {
    padding: 24px 16px;
  }
}

/* Container */
.adv-details-container {
  /* border-radius: 12px;
  background: #ffffff;
  padding: 40px;
  max-width: 1000px;
  margin: 50px auto;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */
  background: #fafbfc;
  border-radius: 6px;
  /* box-shadow: 0 0 6px 1px #e4e4e4; */
  margin: 20px;
}

/* Header */
.adv-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.adv-details-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.adv-details-add-btn {
  background: #0a8757;
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}

.adv-details-add-btn:hover {
  background: #0a643f;
  transform: scale(1.03);
}
/* 
/* Table styles 
.table thead tr {
  background: #03589a;
  color: #fff;
  font-size: 16px;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
}

.table tbody tr:nth-child(even) {
  background: #f4f4f4;
}

.table tbody tr:nth-child(odd) {
  background: #fff;
}

.table tbody tr {
  border-bottom: 1px solid #eaeaea;
} */

/* Cell styling */
.adv-rate {
  color: #ed4747;
  font-weight: 500;
}

.adv-amount {
  color: #ed4747;
  font-weight: 500;
}

/* Total row */
.adv-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  gap: 8px;
}

.adv-total-label {
  color: #222;
}

.adv-total-amount {
  color: #0a8757;
}

/* Action buttons (if needed later) */
.adv-action-buttons {
  display: flex;
  gap: 8px;
}

.adv-edit-btn,
.adv-view-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.adv-edit-btn {
  background: #0a8757;
  color: #fff;
}

.adv-edit-btn:hover {
  background: #0a643f;
}

.adv-view-btn {
  background: #f3f4f6;
  color: #374151;
}

.adv-view-btn:hover {
  background: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .adv-details-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
}

.multi-select-container {
  border-radius: 4px;
  padding: 8px;
  max-height: 130px;
  overflow-y: auto;
  background: white;
}

.multi-select-label {
  font-weight: bold;
  margin-bottom: 6px;
}

.multi-select-options {
  display: flex;
  flex-direction: column;
}

.multi-select-option {
  user-select: none;
  margin-bottom: 6px;
}

.multi-select-option input {
  margin-right: 8px;
  cursor: pointer;
}

.multi-select-container.disabled {
  color: #777;
  background: #f9f9f9;
  pointer-events: none;
}

.fs-results-contractor {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 10px;
  max-height: 220px;
  max-width: 370px;
  overflow: auto;
  z-index: 100;
  top : 110px;
}

.form-container {
  padding: 20px;
}

.fs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.fs-search-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.fs-search-col {
  flex: 1;
}

.fs-label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.fs-search-input-group {
  display: flex;
  align-items: center;
}

.fs-search-input-group input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.fs-search-btn1 {
  padding: 8px;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #f0f0f0;
  cursor: pointer;
}

.fs-results {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.fs-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fs-result-item {
  padding: 8px;
  cursor: pointer;
}

.fs-result-item:hover {
  background: #f0f0f0;
}

.fs-muted {
  color: #888;
  padding: 8px;
}

.details-cards-rst {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cold-storage-card {
  order: 1; /* Left side */
  flex: 1;
}

.transporter-card {
  order: 2; /* Right side */
  flex: 1;
}

.details-card {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-section {
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kv-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-line {
  display: flex;
  justify-content: flex-start;
}

.kv-k {
  width: 140px;
  font-weight: 500;
  color: #333;
}

.kv-v {
  flex: 1;
  color: #555;
}

.nested-section {
  margin-top: 10px;
}

.form-inputs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  flex: 1;
}

.input-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-actions {
  text-align: right;
}

.create-rst-btn {
  padding: 10px 20px;
  background: #76bb40;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.create-rst-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.form-container {
  padding: 16px;
  margin-bottom: 14px;
}

.header-title {
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.section-title {
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: bold;
}

.d-flex {
  display: flex;
}

.main-content {
  flex: 1;
}

.goods-section {
  flex: 2;
}

.summary-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.goods-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-group {
  flex: 1;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.data-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.summary-item {
  margin-bottom: 0;
}

.summary-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.summary-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #f9f9f9;
}



