.navbar {
  z-index: 1000;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-bottom: 1px solid #00000014;
  align-items: center;
  height: 70px;
  padding: 0 1.5rem;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 4px 20px #0000000d;
}

.nav-container {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 3.75rem;
  display: flex;
}

.brand {
  color: #2d3436;
  z-index: 1002;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  position: relative;
}

.brand-icon {
  font-size: 1.6rem;
  animation: 3s ease-in-out infinite bounce;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.nav-menu {
  flex: 1;
  justify-content: space-between;
  align-items: center;
  margin-left: 3rem;
  display: flex;
}

.nav-links {
  gap: 1.5rem;
  display: flex;
}

.nav-item {
  color: #636e72;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.nav-item:hover {
  color: #4a90e2;
  background: #4a90e21a;
}

.user-dropdown {
  align-items: center;
  display: flex;
  position: relative;
}

.user-trigger {
  cursor: pointer;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  transition: all .2s;
  display: flex;
}

.user-trigger:hover {
  background: #e9ecef;
}

.user-avatar {
  color: #fff;
  background: linear-gradient(135deg, #4a90e2, #63b3ed);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-weight: bold;
  display: flex;
  box-shadow: 0 2px 5px #4a90e24d;
}

.user-dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content {
  z-index: 1001;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  flex-direction: column;
  min-width: 180px;
  padding: 8px 0;
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 10px 30px #0000001a;
}

.dropdown-content a, .dropdown-content button {
  color: #2d3436;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 10px 16px;
  font-size: .9rem;
  text-decoration: none;
}

.dropdown-content a:hover, .dropdown-content button:hover {
  color: #4a90e2;
  background: #f8f9fa;
}

.logout-btn {
  color: #d63031 !important;
  border-top: 1px solid #eee !important;
}

.login-btn {
  color: #fff;
  background: #4a90e2;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
}

.login-btn:hover {
  background: #3a80d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #4a90e24d;
}

.burger {
  cursor: pointer;
  z-index: 1100;
  background: #fff;
  border: 1px solid #4a90e2;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  display: none;
}

.burger:hover {
  background: #4a90e21a;
}

.bar {
  background-color: #2d3436;
  border-radius: 4px;
  width: 24px;
  height: 4px;
  display: block;
}

@media (width <= 850px) {
  .burger {
    display: flex;
  }

  .nav-menu {
    z-index: 1001;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    width: 300px;
    height: calc(100vh - 70px);
    margin: 0;
    padding: 2rem;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    box-shadow: 5px 0 20px #0000001a;
  }

  .nav-menu.open {
    left: 0;
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-item {
    border-bottom: 1px solid #f1f1f1;
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    display: block;
  }

  .user-dropdown {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .user-trigger {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 1rem;
  }

  .dropdown-content {
    z-index: 1001;
    min-width: 180px;
    box-shadow: 0 10px 30px #0000001a;
    box-shadow: none;
    background: #fff;
    border: none;
    border-top: 1px solid #eee;
    border-radius: 8px;
    flex-direction: column;
    width: 100%;
    min-width: auto;
    margin-top: 6px;
    padding: 1rem 0 8px;
    display: none;
    position: static;
    top: 100%;
    right: 0;
    display: flex !important;
  }

  .user-dropdown:after {
    content: "";
    height: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .nav-auth {
    width: 100%;
    margin-top: 1rem;
  }

  .login-btn {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
  }

  .burger.active .bar:first-child {
    background: #4a90e2;
    transform: translateY(8px)rotate(45deg);
  }

  .burger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .burger.active .bar:nth-child(3) {
    background: #4a90e2;
    transform: translateY(-8px)rotate(-45deg);
  }

  .nav-menu.open:before {
    content: "";
    z-index: -1;
    position: fixed;
    inset: 70px 0 0 300px;
  }
}

.main-content {
  margin-left: 0;
  transition: margin-left .4s;
}

@media (width <= 850px) {
  .main-content.menu-open {
    margin-left: 300px;
  }
}

.nav-item {
  color: #444;
  padding: 8px 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.nav-item.active {
  color: #2e7d32;
  font-weight: 600;
}

.nav-item.active:after {
  content: "";
  background-color: #2e7d32;
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: -4px;
  left: 0;
}

@media (width <= 850px) {
  .nav-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dropdown-content {
    box-shadow: none;
    border: none;
    border-top: 1px solid #eee;
    width: 100%;
    min-width: auto;
    margin-top: 6px;
    padding-top: 1rem;
    position: static;
    display: flex !important;
  }
}

.MuiDataGrid-root {
  font-size: 13px;
}

.MuiDataGrid-columnHeaders {
  font-size: 14px;
  font-weight: bold;
}

.MuiDataGrid-cell {
  font-size: 13px;
}

.MuiDataGrid-footerContainer {
  font-size: 12px;
}

.MuiDataGrid-toolbarContainer {
  font-size: 13px;
}

@media (width <= 768px) {
  .MuiDataGrid-root {
    font-size: 12px;
  }
}

.MuiDataGrid {
  display: block;
}

.auth-header h2 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.75rem;
}

.auth-header p {
  color: #666;
  margin-top: .5rem;
  font-size: .9rem;
}

.auth-form {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.form-group {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.form-group label {
  color: #444;
  font-size: .85rem;
  font-weight: 600;
}

.form-group input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px #4a90e21a;
}

.login-btn {
  color: #fff;
  cursor: pointer;
  background-color: #4a90e2;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: .8rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .2s;
  display: flex;
}

.login-btn:hover {
  background-color: #357abd;
}

.login-btn:disabled {
  cursor: not-allowed;
  background-color: #a0c4ed;
}

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

.error-message {
  color: #cf1322;
  text-align: center;
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  border-radius: 4px;
  padding: .6rem;
  font-size: .85rem;
}

.password-input-container {
  width: 100%;
  position: relative;
}

.password-input {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  padding: 12px 45px 12px 15px;
  font-size: 16px;
  transition: border-color .3s;
}

.password-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px #007bff40;
}

.password-toggle-btn {
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  padding: 5px;
  font-size: 18px;
  transition: color .3s;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.password-toggle-btn:hover {
  color: #007bff;
}

.password-toggle-btn:focus {
  color: #007bff;
  outline: none;
}

.auth-wrapper {
  justify-content: center;
  padding: 20px;
  display: flex;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  box-shadow: 0 10px 40px #0000001a;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: #333;
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-header p {
  color: #666;
  font-size: 16px;
}

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

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

.form-group input {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 90%;
  padding: 12px 15px;
  font-size: 16px;
  transition: border-color .3s;
}

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

.error-message {
  color: #dc3545;
  text-align: center;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 10px 15px;
}

.login-btn {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #667eea66;
}

.login-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.spinner {
  border: 3px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: 1s ease-in-out infinite spin;
  display: inline-block;
}

.ledger-page {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px #0000000a;
  min-height: 500px !important;
}

.filter-bar {
  background: #f5f5f5;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  display: flex;
}

.farmer-select {
  flex: 1;
  min-width: 300px;
}

.filter-bar input[type="date"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

.filter-bar button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
}

.search-btn {
  color: #fff;
  background: #4caf50;
}

.print-btn {
  color: #fff;
  background: #2196f3;
}

.primary-btn {
  color: #fff;
  background: #ff9800;
  font-weight: bold;
}

.summary-bar {
  background: #f4f6fb;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  display: flex;
}

.summary-item strong {
  font-weight: 700;
}

.ledger-body {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 5px;
  font-size: 13px;
  display: grid;
}

.farmer-card {
  background: #fffaf3;
  border: 1px solid #999;
}

.card-header {
  text-align: center;
  background: #eed3ad;
  padding: 6px;
  font-weight: bold;
}

.farmer-info {
  justify-content: space-between;
  padding: 8px;
  display: flex;
}

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

.ledger-table th {
  color: #fff;
  background: #2f63c6;
}

.ledger-table th, .ledger-table td {
  border: 1px solid #999;
  padding: 4px;
}

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

.summary .row {
  border-top: 1px solid #ddd;
  justify-content: space-between;
  padding: 4px 8px;
  display: flex;
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .print-hide {
    display: none !important;
  }

  .ledger-page {
    min-height: 300px;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .print-page {
    box-sizing: border-box;
    border: 2px solid #000;
    padding: 10px;
  }

  .farmer-card {
    page-break-inside: avoid;
    margin-bottom: 16px;
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
  }

  .card-header {
    color: #000 !important;
    background: #eed3ad !important;
  }

  .ledger-table th {
    color: #fff !important;
    background: #2f63c6 !important;
  }

  .summary-bar {
    margin-bottom: 10px;
    font-weight: bold;
    background: none !important;
    border: 1px solid #000 !important;
  }
}

.loader-overlay {
  z-index: 9999;
  background: #ffffffb3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex;
  position: fixed;
  inset: 0;
}

.spinner {
  border: 5px solid #ddd;
  border-top-color: #4caf50;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: 1s linear infinite spin;
}

@media print {
  .loader-overlay {
    display: none !important;
  }
}

:root {
  --bg: #fbf1ec;
  --panel: #fff6f3;
  --accent: #8b3fbf;
  --muted: #7b6f6a;
}

body {
  background: var(--bg);
  color: #333;
  margin: 0;
  font-family: Nunito, sans-serif;
}

.nav {
  background: var(--panel);
  border-bottom: 4px solid #8b3fbf14;
}

.nav-inner {
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
}

.brand {
  color: var(--accent);
  font-family: Playfair Display, serif;
  font-size: 20px;
}

.burger {
  background: none;
  border: 0;
  font-size: 22px;
  display: none;
}

.links a {
  color: var(--accent);
  margin-left: 16px;
  text-decoration: none;
}

.form {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
  display: grid;
}

.form label {
  flex-direction: column;
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
}

.form input, .form select {
  border: 1px solid #e5dcd8;
  border-radius: 6px;
  padding: 10px;
}

.actions {
  grid-column: 1 / -1;
  gap: 8px;
  display: flex;
}

.actions button {
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  background: none;
  border-radius: 24px;
  padding: 10px 18px;
}

.data {
  border-collapse: collapse;
  width: 100%;
  height: 480px;
}

.data .MuiDataGrid-columnHeaderTitle {
  color: #110f0f;
  font-weight: 700;
}

.data th, .data td {
  text-align: left;
  border-bottom: 1px solid #eee;
  padding: 8px 10px;
}

@media (width <= 700px) {
  .form {
    grid-template-columns: 1fr;
  }

  .burger {
    display: block;
  }

  .links {
    display: none;
  }

  .links.open {
    background: var(--panel);
    border-radius: 6px;
    flex-direction: column;
    padding: 10px;
    display: flex;
    position: absolute;
    top: 60px;
    left: 10px;
  }
}

.icon-actions {
  gap: 8px;
  display: flex;
}

.icon-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  font-size: 16px;
}

.icon-btn.edit {
  color: #2563eb;
}

.icon-btn.delete {
  color: #dc2626;
}

.icon-btn:hover {
  opacity: .8;
  transform: scale(1.05);
}

.error {
  color: red;
  font-size: 12px;
}

.container {
  padding-right: var(--bs-gutter-x, 3.75rem);
  padding-left: var(--bs-gutter-x, 3.75rem);
  margin: 5px;
}

.panel {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  box-shadow: 0 4px 20px #0000000a;
}

.panel:hover {
  border-color: #cbd5e0;
  box-shadow: 0 8px 30px #00000014;
}

.panel-header {
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  transition: all .3s;
  display: flex;
  position: relative;
}

.panel-header:before {
  content: "";
  opacity: 0;
  background: linear-gradient(#4a90e2, #2ecc71);
  width: 5px;
  height: 100%;
  transition: opacity .3s;
  position: absolute;
  top: 0;
  left: 0;
}

.panel-header:hover {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  padding-left: 2.5rem;
}

.panel-header:hover:before {
  opacity: 1;
}

.panel-header h3 {
  color: #2d3748;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  transition: all .3s;
  display: flex;
}

.panel-header h3:before {
  content: "👨‍🌾";
  opacity: .8;
  font-size: 1.3rem;
}

.rotate {
  transition: transform .4s cubic-bezier(.68, -.55, .265, 1.55);
  transform: rotate(180deg);
  color: #4a90e2 !important;
}

.panel-header span {
  color: #718096;
  background: #edf2f7;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  transition: all .3s;
  display: flex;
}

.panel-header:hover span {
  background: #e2e8f0;
  transform: scale(1.1);
}

.collapse {
  max-height: 0;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.collapse.open {
  max-height: 1200px;
}

.panel-body {
  opacity: 0;
  padding: 0 2rem;
  transition: all .4s .1s;
  transform: translateY(-10px);
}

.collapse.open .panel-body {
  opacity: 1;
  padding: 2rem;
  transform: translateY(0);
}

.form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  display: grid;
}

.form label {
  color: #4a5568;
  flex-direction: column;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  position: relative;
}

.form label:after {
  content: "";
  background: linear-gradient(to right, #4a90e2, #2ecc71);
  width: 100%;
  height: 2px;
  transition: transform .3s;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
}

.form label:focus-within:after {
  transform: scaleX(1);
}

.form input {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: .875rem 1rem;
  font-size: 1rem;
  transition: all .3s;
}

.form input:focus {
  background: #fff;
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px #4a90e21a;
}

.form input:hover {
  border-color: #cbd5e0;
}

.actions {
  border-top: 1px solid #e2e8f0;
  grid-column: 1 / -1;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
}

.actions button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: .875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all .3s;
}

.actions button[type="submit"] {
  color: #fff;
  background: linear-gradient(135deg, #4a90e2, #2ecc71);
  min-width: 150px;
}

.actions button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #4a90e24d;
}

.actions button[type="submit"]:active {
  transform: translateY(0);
}

.actions button[type="button"] {
  color: #4a5568;
  background: #edf2f7;
  border: 1px solid #e2e8f0;
}

.actions button[type="button"]:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

h3 {
  color: #2d3748;
  border-bottom: 3px solid #4a90e2;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: .75rem;
  font-size: 1.8rem;
  display: inline-block;
}

.data {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 20px #0000000d;
}

.data thead {
  background: linear-gradient(135deg, #4a90e2, #2ecc71);
}

.data th {
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
}

.data tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all .2s;
}

.data tbody tr:last-child {
  border-bottom: none;
}

.data tbody tr:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0000000d;
}

.data td {
  color: #4a5568;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
}

.data td:first-child {
  color: #2d3748;
  font-weight: 600;
}

.icon-actions {
  gap: .75rem;
  display: flex;
  border-bottom: none !important;
  padding: 0 !important;
}

.icon-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  transition: all .3s;
  display: flex;
}

.icon-btn.edit {
  color: #fff;
  background: linear-gradient(135deg, #4299e1, #63b3ed);
}

.icon-btn.edit:hover {
  background: linear-gradient(135deg, #3182ce, #4299e1);
  transform: translateY(-2px)scale(1.05);
  box-shadow: 0 4px 12px #4299e14d;
}

.icon-btn.delete {
  color: #fff;
  background: linear-gradient(135deg, #f56565, #fc8181);
}

.icon-btn.delete:hover {
  background: linear-gradient(135deg, #e53e3e, #f56565);
  transform: translateY(-2px)scale(1.05);
  box-shadow: 0 4px 12px #f565654d;
}

@media (width <= 768px) {
  .container {
    padding: 0;
  }

  .panel-header {
    padding: 1.25rem 1.5rem;
  }

  .panel-header h3 {
    font-size: 1.2rem;
  }

  .form {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .panel-body {
    padding: 0 1.5rem;
  }

  .collapse.open .panel-body {
    padding: 1.5rem;
  }

  .data {
    display: block;
    overflow-x: auto;
  }

  .data th, .data td {
    padding: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }
}

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

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

.loading-row {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) 0 0 / 1000px 100%;
  animation: 2s linear infinite shimmer;
}

.empty-state {
  text-align: center;
  color: #718096;
  padding: 3rem;
}

.empty-state:before {
  content: "👨‍🌾";
  opacity: .5;
  margin-bottom: 1rem;
  font-size: 3rem;
  display: block;
}

.success-message {
  color: #fff;
  z-index: 1000;
  background: linear-gradient(135deg, #2ecc71, #48bb78);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  animation: .3s slideIn;
  position: fixed;
  top: 20px;
  right: 20px;
  box-shadow: 0 4px 20px #2ecc714d;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.summary-bar {
  background: #f4f6fb;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0;
  padding: 12px 16px;
  display: flex;
}

.summary-item {
  gap: 8px;
  font-size: 16px;
  display: flex;
}

.summary-item span {
  color: #555;
}

.summary-item strong {
  color: #000;
}

@media print {
  .summary-bar {
    background: none;
    border: 1px solid #000;
  }
}

.filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 5px;
  box-shadow: 0 1px 3px #0000001a;
}

.filters-content {
  padding: 8px;
}

.filter-row {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  display: flex;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
}

.label-text {
  color: #4a5568;
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 500;
  display: block;
}

.select-wrapper, .date-wrapper {
  width: 100%;
  position: relative;
}

.filter-select {
  color: #2d3748;
  appearance: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 100%;
  height: 2.25rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  line-height: 1.25;
  transition: border-color .15s;
}

.date-input {
  color: #2d3748;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 100%;
  height: 2.25rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  line-height: 1.25;
  transition: border-color .15s;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
  padding: .25rem;
}

.date-input::-webkit-datetime-edit {
  padding: 0;
}

.date-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.date-input::-webkit-datetime-edit-text {
  color: #718096;
  padding: 0 .15em;
}

.date-input::-webkit-datetime-edit-month-field {
  color: #2d3748;
}

.date-input::-webkit-datetime-edit-year-field {
  color: #2d3748;
}

.date-input:hover {
  border-color: #cbd5e0;
}

.date-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 1px #4f46e533;
}

.filter-select:hover, .date-input:hover {
  border-color: #cbd5e0;
}

.filter-select:focus, .date-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 1px #4f46e533;
}

.filter-actions {
  align-items: center;
  height: 2.25rem;
  margin-bottom: .25rem;
  display: flex;
}

.clear-filters-btn {
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  height: 2.25rem;
  margin: 7px 0 0;
  padding: .375rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
}

.clear-filters-btn:hover {
  background: #fee2e2;
}

@supports ((-moz-appearance: none)) {
  .date-input {
    padding-right: .5rem;
  }
}

@media (width <= 768px) {
  .filter-row {
    gap: .75rem;
  }

  .filter-group {
    min-width: 100%;
  }

  .filters-content {
    padding: .75rem;
  }

  .filter-actions {
    justify-content: flex-end;
    width: 100%;
    margin-top: .25rem;
  }
}

.date-input:not(:valid) {
  font-family: monospace;
}

@media (width <= 768px) {
  .ledger-page {
    width: 100%;
    overflow-x: auto;
  }
}
/*# sourceMappingURL=public.d91c94e1.css.map */
