:root {
  --green-950: #123524;
  --green-850: #1f5137;
  --green-700: #2f6f4e;
  --green-100: #eaf6ee;
  --green-50: #f6fbf7;
  --accent: #d9b66d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  width: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--green-50);
  background:
    radial-gradient(circle at top left, rgba(217, 182, 109, 0.22), transparent 32rem),
    linear-gradient(135deg, var(--green-950) 0%, var(--green-850) 50%, var(--green-700) 100%);
}

.home-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 32px;
  align-items: center;
  width: min(1120px, 100%);
  padding: 32px;
  border: 1px solid rgba(234, 246, 238, 0.24);
  border-radius: 28px;
  background: rgba(18, 53, 36, 0.62);
  box-shadow: 0 24px 80px rgba(10, 31, 21, 0.32);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 12px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--green-100);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-image {
  display: block;
  width: 100%;
  height: min(56vw, 520px);
  min-height: 320px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 56px rgba(8, 28, 18, 0.38);
}

.site-footer {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  color: rgba(246, 251, 247, 0.78);
  background: rgba(18, 53, 36, 0.72);
  text-align: center;
}

.footer-logo {
  display: block;
  width: 48px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(246, 251, 247, 0.82);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 28, 18, 0.26);
}

@media (max-width: 800px) {
  .home-page {
    align-items: flex-start;
    padding-top: 28px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-image {
    height: 360px;
    min-height: 260px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary-action,
.btn-secondary-action,
.btn-new-batch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary-action {
  color: var(--green-950);
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(217, 182, 109, 0.28);
}

.btn-secondary-action {
  color: #ffffff;
  background: rgba(246, 251, 247, 0.14);
  border: 1px solid rgba(246, 251, 247, 0.38);
}

.btn-new-batch-action {
  color: #ffffff;
  background: linear-gradient(135deg, #1f8f4d, #0f5f33);
  box-shadow: 0 12px 26px rgba(31, 143, 77, 0.28);
}

.btn-primary-action:hover,
.btn-primary-action:focus,
.btn-secondary-action:hover,
.btn-secondary-action:focus,
.btn-new-batch-action:hover,
.btn-new-batch-action:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary-action:hover,
.btn-primary-action:focus {
  color: var(--green-950);
  box-shadow: 0 16px 34px rgba(217, 182, 109, 0.36);
}

.btn-secondary-action:hover,
.btn-secondary-action:focus {
  color: #ffffff;
  background: rgba(246, 251, 247, 0.2);
}

.btn-new-batch-action:hover,
.btn-new-batch-action:focus {
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(31, 143, 77, 0.36);
}

.page-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
}

.content-card {
  width: min(760px, 100%);
  padding: 34px;
  border: 1px solid rgba(234, 246, 238, 0.24);
  border-radius: 28px;
  background: rgba(18, 53, 36, 0.68);
  box-shadow: 0 24px 80px rgba(10, 31, 21, 0.32);
  backdrop-filter: blur(10px);
}

.contact-card {
  align-self: flex-start;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--green-100);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  color: #ffffff;
  text-decoration: none;
}

.page-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
}

.page-description {
  margin: 18px 0 28px;
  color: var(--green-100);
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact-form label {
  color: #ffffff;
  font-weight: 700;
}

.contact-form .form-control {
  min-height: 48px;
  color: var(--green-950);
  border: 1px solid rgba(234, 246, 238, 0.32);
  border-radius: 14px;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

@media (max-width: 800px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-shell {
    align-items: flex-start;
    padding-top: 28px;
  }

  .content-card {
    padding: 24px;
  }
}

.login-card {
  max-width: 520px;
}

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

.login-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #ffb4b4;
  border: 1px solid rgba(255, 180, 180, 0.42);
  border-radius: 14px;
  background: rgba(128, 24, 24, 0.18);
  font-weight: 700;
  line-height: 1.4;
}

.admin-shell {
  align-items: flex-start;
  min-height: auto;
  padding-top: 42px;
}

.admin-card {
  max-width: 1120px;
  width: 100%;
}

.admin-home-card {
  max-width: 1380px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 246, 238, 0.16);
}

.admin-section h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-user-form {
  margin-top: 0;
}

.dryer-settings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 540px) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.dryer-forecast-preview {
  padding: 18px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(6, 42, 23, 0.38);
}

.dryer-forecast-preview h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
}

.dryer-forecast-preview p {
  margin: 0 0 14px;
  color: rgba(234, 246, 238, 0.78);
}

.dryer-forecast-preview-table-wrapper {
  border-radius: 14px;
}

.dryer-forecast-preview-table {
  min-width: 0;
}

.dryer-forecast-preview-table th,
.dryer-forecast-preview-table td {
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .dryer-settings-layout {
    grid-template-columns: 1fr;
  }
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  color: #ffffff;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(234, 246, 238, 0.12);
  vertical-align: middle;
}

.admin-table th {
  color: var(--green-100);
  background: rgba(5, 48, 25, 0.72);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-header-actions,
.login-events-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-header-actions form {
  margin: 0;
}

.login-events-table {
  min-width: 1050px;
}

.login-event-result {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.login-event-success {
  background: #dcfce7;
  color: #166534;
}

.login-event-failure {
  background: #fee2e2;
  color: #991b1b;
}

.login-event-user-agent {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.login-events-pagination {
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.admin-success {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #c9ffd8;
  border: 1px solid rgba(174, 255, 197, 0.42);
  border-radius: 14px;
  background: rgba(18, 102, 48, 0.2);
  font-weight: 700;
  line-height: 1.4;
}

.admin-muted {
  color: var(--green-100);
  font-weight: 700;
}

.btn-danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  color: #ffffff;
  background: rgba(180, 35, 24, 0.22);
  border: 1px solid rgba(255, 196, 190, 0.42);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-danger-action:hover,
.btn-danger-action:focus {
  color: #ffffff;
  background: rgba(180, 35, 24, 0.34);
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .admin-header {
    flex-direction: column;
  }
}

.dryer-shell {
  padding-top: 42px;
}


.dryer-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dryer-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  color: #fff2c2;
  background: rgba(217, 182, 109, 0.18);
  border: 1px solid rgba(217, 182, 109, 0.34);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.dryer-connection-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffd17a;
  box-shadow: 0 0 0 4px rgba(255, 209, 122, 0.14);
}

.dryer-connection-status.is-online {
  color: #c9ffd8;
  background: rgba(18, 102, 48, 0.24);
  border-color: rgba(174, 255, 197, 0.38);
}

.dryer-connection-status.is-online .dryer-connection-dot {
  background: #66f08d;
  box-shadow: 0 0 0 4px rgba(102, 240, 141, 0.16);
}

.dryer-connection-status.is-offline {
  color: #ffcdcd;
  background: rgba(128, 24, 24, 0.24);
  border-color: rgba(255, 180, 180, 0.42);
}

.dryer-connection-status.is-offline .dryer-connection-dot {
  background: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.16);
}

.dryer-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dryer-status-card,
.dryer-quick-action,
.dryer-moisture-form,
.dryer-stop-action,
.dryer-logout-action {
  padding: 18px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(5, 48, 25, 0.34);
}

.dryer-status-card {
  min-height: 118px;
}

.dryer-status-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.18rem;
}

.dryer-summary-card {
  grid-column: span 2;
}

.dryer-summary-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dryer-summary-link {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
}

.dryer-summary-link:hover,
.dryer-summary-link:focus {
  color: var(--green-100);
}

.dryer-history-list {
  display: grid;
  gap: 16px;
}

.dryer-history-list .dryer-summary-card {
  grid-column: auto;
}

.dryer-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 0;
}

.dryer-summary-list div {
  min-width: 0;
}

.dryer-summary-list dt {
  color: rgba(234, 246, 238, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.dryer-summary-list dd {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.dryer-card-label {
  display: block;
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

.status-active {
  color: #0f3b24;
  background: #c9ffd8;
}

.status-empty {
  color: #fff2c2;
  background: rgba(217, 182, 109, 0.22);
  border: 1px solid rgba(217, 182, 109, 0.38);
}

.status-warning {
  color: #3b2500;
  background: #ffd17a;
}

.dryer-stop-action {
  margin-top: 16px;
}

.dryer-logout-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 246, 238, 0.18);
}

.dryer-quick-action,
.dryer-moisture-form,
.dryer-stop-action,
.dryer-logout-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dryer-field-label {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.dryer-action-helper,
.dryer-loading-message {
  flex-basis: 100%;
  margin: 0;
  color: var(--green-100);
  font-size: 0.95rem;
  font-weight: 700;
}

.dryer-loading-message {
  color: #fff2c2;
}

.dryer-moisture-form.is-submitting,
.dryer-quick-action.is-submitting,
.dryer-stop-action.is-submitting {
  border-color: rgba(217, 182, 109, 0.48);
  box-shadow: 0 0 0 3px rgba(217, 182, 109, 0.12);
}

.dryer-quick-action .btn-primary-action,
.dryer-quick-action .btn-new-batch-action,
.dryer-moisture-form .btn-primary-action,
.dryer-stop-action .btn-danger-action,
.dryer-logout-action .btn-secondary-action {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

.dryer-moisture-form .form-control {
  min-height: 56px;
  font-size: 1.08rem;
  font-weight: 700;
}

.dryer-table {
  min-width: 0;
}

.dryer-table th:last-child,
.dryer-table td:last-child {
  text-align: right;
}

.dryer-reading-row {
  cursor: pointer;
}

.dryer-reading-row:hover td,
.dryer-reading-row:focus td {
  background: rgba(234, 246, 238, 0.08);
}

.dryer-reading-detail td {
  color: var(--green-100);
  font-size: 0.92rem;
  padding-top: 0;
}

.dryer-reading-detail-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.dryer-reading-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.dryer-reading-detail-list dt,
.dryer-reading-detail-list dd {
  margin: 0;
}

.dryer-reading-detail-list dt {
  color: rgba(234, 246, 238, 0.78);
  font-weight: 700;
}

.dryer-reading-detail-list dd {
  color: var(--white);
  font-weight: 700;
  text-align: right;
}

.contact-form .form-control:disabled,
.contact-form .form-control[readonly],
.dryer-moisture-form .form-control:disabled {
  color: rgba(18, 53, 36, 0.62);
  background: rgba(234, 246, 238, 0.52);
  border: 2px dashed rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
}

button:disabled,
.btn-primary-action:disabled,
.btn-secondary-action:disabled,
.btn-new-batch-action:disabled,
.btn-danger-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.45);
  box-shadow: none;
  transform: none;
}

@media (max-width: 1020px) {
  .dryer-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dryer-shell {
    padding: 18px 12px;
  }

  .dryer-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .dryer-card .admin-header {
    gap: 12px;
  }

  .dryer-card .admin-header form,
  .dryer-card .admin-header .btn-secondary-action {
    width: 100%;
  }

  .dryer-card .page-title {
    font-size: 1.75rem;
  }

  .dryer-status-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dryer-summary-card {
    grid-column: span 1;
  }

  .dryer-summary-list {
    grid-template-columns: 1fr;
  }

  .dryer-status-card,
  .dryer-quick-action,
  .dryer-moisture-form,
  .dryer-stop-action,
  .dryer-logout-action {
    padding: 12px;
    border-radius: 14px;
  }

  .dryer-status-card {
    min-height: 92px;
  }

  .dryer-status-card strong {
    font-size: 1rem;
  }

  .dryer-card-label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .dryer-actions-stack {
    gap: 10px;
  }

  .dryer-stop-action {
    margin-top: 10px;
  }

  .dryer-moisture-form {
    flex-direction: column;
    align-items: stretch;
  }

  .dryer-quick-action .btn-primary-action,
  .dryer-quick-action .btn-new-batch-action,
  .dryer-moisture-form .btn-primary-action,
  .dryer-stop-action .btn-danger-action,
  .dryer-logout-action .btn-secondary-action {
    min-height: 60px;
    font-size: 1.08rem;
  }

  .dryer-field-label {
    white-space: normal;
  }

  .dryer-table th,
  .dryer-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 380px) {
  .dryer-status-grid {
    grid-template-columns: 1fr;
  }
}

.admin-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.admin-password-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-password-form .form-control {
  min-width: 160px;
  min-height: 42px;
  color: var(--green-950);
  border: 1px solid rgba(234, 246, 238, 0.32);
  border-radius: 14px;
}

.admin-small-action {
  min-height: 42px;
  padding: 10px 16px;
}

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

.admin-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-header h2 {
  margin-bottom: 0;
}

.admin-target-form {
  max-width: 540px;
}

.admin-table-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(217, 182, 109, 0.78);
  text-underline-offset: 4px;
}

.admin-table-link:hover,
.admin-table-link:focus {
  color: var(--accent);
}

@media (max-width: 1020px) {
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-header {
    align-items: stretch;
  }

  .admin-section-header .btn-secondary-action,
  .admin-target-form .btn-primary-action {
    width: 100%;
  }
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-module-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #ffffff;
  border: 1px solid rgba(234, 246, 238, 0.18);
  border-radius: 22px;
  background: rgba(234, 246, 238, 0.1);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-module-card:hover,
.admin-module-card:focus {
  color: #ffffff;
  border-color: rgba(217, 182, 109, 0.72);
  background: rgba(234, 246, 238, 0.16);
  box-shadow: 0 16px 36px rgba(10, 31, 21, 0.24);
  text-decoration: none;
  transform: translateY(-2px);
}

.admin-module-title {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
}

.admin-module-label {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.admin-module-description {
  margin-top: 18px;
  color: var(--green-100);
  line-height: 1.55;
}

.admin-back-link,
.construction-back-link {
  margin: 6px 0 0;
}

.construction-back-link {
  margin-bottom: 22px;
}

.admin-notifications-panel {
  padding: 22px;
  border: 1px solid rgba(217, 182, 109, 0.22);
  border-radius: 22px;
  background: rgba(5, 48, 25, 0.22);
}

.admin-notifications-header {
  margin-bottom: 16px;
}

.admin-notifications-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: var(--green-950);
  border-radius: 999px;
  background: rgba(234, 191, 97, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-notifications-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(234, 246, 238, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(234, 246, 238, 0.12), rgba(234, 246, 238, 0.07));
  box-shadow: 0 18px 34px rgba(2, 24, 13, 0.18);
}

.admin-notification-copy {
  display: grid;
  gap: 5px;
  color: #ffffff;
  line-height: 1.35;
}

.admin-notification-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.admin-notification-copy span,
.admin-notification-empty {
  color: var(--green-100);
}

.admin-notification-empty {
  margin: 0;
  line-height: 1.5;
}

.admin-notification-action {
  margin: 0;
}

.admin-notification-button {
  min-height: 42px;
  padding-inline: 18px;
  white-space: nowrap;
}

.admin-notification-button::before {
  content: '✓';
  margin-right: 8px;
  font-weight: 900;
}


.admin-home-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

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

.admin-home-metric {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(234, 246, 238, 0.1);
}

.admin-home-metric span {
  color: var(--green-100);
  font-size: 0.9rem;
}

.admin-home-metric strong {
  color: #ffffff;
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  .admin-home-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-notification-item {
    grid-template-columns: 1fr;
  }

  .admin-notification-button {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-card {
    min-height: 140px;
  }
}

.contracts-card {
  max-width: 1380px;
}

.contracts-anchor-nav,
.contracts-form-actions,
.contracts-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contracts-anchor-nav {
  margin-bottom: 8px;
}

.contracts-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contracts-filter-link.is-active {
  border-color: rgba(217, 182, 109, 0.82);
  background: rgba(217, 182, 109, 0.18);
  color: #ffffff;
}

.contracts-weight-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.contracts-weight-toggle-button {
  min-height: 40px;
  padding: 10px 18px;
}

.contracts-weight-toggle-button.is-active {
  border-color: rgba(217, 182, 109, 0.82);
  background: rgba(217, 182, 109, 0.18);
  color: #ffffff;
}

.contracts-filter-help {
  margin: -6px 0 18px;
  color: var(--green-100);
  line-height: 1.5;
}

.contracts-form {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(5, 48, 25, 0.34);
}

.contracts-form h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.contracts-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contracts-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contracts-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.contracts-form .form-control {
  width: 100%;
}

.contracts-form-actions {
  align-items: center;
  margin-top: 18px;
}

.contracts-check-grid {
  margin: 16px 0;
}

.contracts-checkbox {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 999px;
  background: rgba(246, 251, 247, 0.1);
  font-weight: 700;
}

.contracts-checkbox input {
  width: 18px;
  height: 18px;
}


.contracts-advanced-fields {
  margin-top: 16px;
}

.contracts-advanced-toggle {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.contracts-advanced-toggle::-webkit-details-marker {
  display: none;
}

.contracts-advanced-fields[open] .contracts-advanced-toggle {
  margin-bottom: 16px;
}

.contracts-advanced-fields label + label,
.contracts-advanced-fields .contracts-form-grid + label {
  margin-top: 14px;
}

.form-helper-text {
  margin: 10px 0 0;
  color: var(--green-100);
  font-size: 0.92rem;
}

.contracts-table-wrapper {
  margin-top: 16px;
}

.contracts-table {
  min-width: 0;
}

.contracts-table-compact {
  min-width: 0;
}

.contracts-main-table {
  min-width: 820px;
}

@media (max-width: 980px) {
  .contracts-form-grid,
  .contracts-form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .contracts-shell {
    padding: 18px 12px;
  }

  .contracts-card {
    padding: 18px 14px;
  }

  .contracts-form-grid,
  .contracts-form-grid-two {
    grid-template-columns: 1fr;
  }

  .contracts-anchor-nav .btn-secondary-action,
  .contracts-filter-nav .btn-secondary-action,
  .contracts-form-actions .btn-primary-action,
  .contracts-form-actions .btn-secondary-action {
    width: 100%;
  }
}

.weighbridge-card {
  max-width: 1380px;
}

.weighbridge-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.weighbridge-action-card {
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}

.weighbridge-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.weighbridge-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.weighbridge-action-card .admin-module-label {
  font-size: 1rem;
}

@media (max-width: 720px) {
  .weighbridge-actions {
    grid-template-columns: 1fr;
  }

  .weighbridge-action-card {
    min-height: 96px;
  }
}

.weighbridge-table {
  min-width: 860px;
}

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

.weighbridge-detail-grid > div {
  padding: 14px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 16px;
  background: rgba(5, 48, 25, 0.28);
}

.weighbridge-detail-grid dt {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weighbridge-detail-grid dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  word-break: break-word;
}

.copy-field-value {
  min-width: 0;
}

.copy-field-button {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(234, 246, 238, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-field-button:hover,
.copy-field-button:focus {
  border-color: var(--accent);
  background: rgba(233, 190, 106, 0.18);
  color: var(--accent);
}

.weighbridge-detail-full {
  grid-column: 1 / -1;
}

.weighbridge-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.weighbridge-split-form {
  padding: 18px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(5, 48, 25, 0.2);
}

.weighbridge-split-form h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .weighbridge-detail-grid {
    grid-template-columns: 1fr;
  }
}

.weighbridge-input-table {
  min-width: 1180px;
}

.weighbridge-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weighbridge-plate-field {
  grid-row: span 2;
}

.weighbridge-plate-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 14px;
  background: rgba(5, 48, 25, 0.24);
}

.weighbridge-plate-option {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(234, 246, 238, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.weighbridge-plate-option:hover,
.weighbridge-plate-option:focus {
  border-color: var(--accent);
  background: rgba(233, 190, 106, 0.18);
  color: var(--accent);
}

.weighbridge-plate-empty,
.weighbridge-tare-help {
  margin: 0;
  color: var(--green-100);
  font-size: 0.92rem;
}

.contracts-checkbox input:disabled + span,
.contracts-checkbox:has(input:disabled) {
  opacity: 0.7;
}

.storage-card {
  max-width: 1180px;
}

.storage-summary-grid {
  margin-bottom: 28px;
}

.storage-status-card small {
  display: block;
  margin-top: 10px;
  color: var(--green-100);
  font-weight: 700;
  line-height: 1.35;
}

.storage-section-description {
  margin: -6px 0 18px;
}

.storage-recalibration-form {
  margin-top: 0;
}

.storage-table {
  min-width: 820px;
}


.dryer-start-batch-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dryer-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.deletion-reason-form {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 18px;
  background: rgba(5, 48, 25, 0.2);
}

.deletion-reason-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}

.deletion-reason-form .form-control {
  min-height: 92px;
  resize: vertical;
}

.deletion-reason-help {
  margin: 0;
}

.dryer-notifications {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 209, 122, 0.42);
  border-radius: 18px;
  background: rgba(217, 182, 109, 0.14);
}

.dryer-notifications-header,
.dryer-classification-notification {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.dryer-notifications-header {
  margin-bottom: 14px;
}

.dryer-notifications-header h2 {
  margin: 0;
}

.dryer-notifications-list {
  display: grid;
  gap: 12px;
}

.dryer-classification-notification {
  padding: 14px;
  border: 1px solid rgba(234, 246, 238, 0.16);
  border-radius: 16px;
  background: rgba(5, 48, 25, 0.38);
}

.dryer-classification-notification strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.dryer-classification-notification p {
  margin: 4px 0 0;
  color: var(--green-100);
  font-weight: 700;
}

.dryer-classification-notification .btn-primary-action {
  min-width: 150px;
  text-align: center;
}

.dryer-mobile-classification-form {
  display: grid;
  gap: 16px;
}

.dryer-mobile-classification-form label {
  color: #fff;
  font-weight: 700;
}

.dryer-mobile-classification-form .form-control {
  min-height: 60px;
  font-size: 1.25rem;
  font-weight: 700;
}

.dryer-classification-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dryer-classification-actions .btn-primary-action,
.dryer-classification-actions .btn-secondary-action {
  width: 100%;
  min-height: 58px;
  text-align: center;
}

@media (max-width: 620px) {
  .dryer-notifications {
    padding: 12px;
    border-radius: 14px;
  }

  .dryer-notifications-header,
  .dryer-classification-notification {
    align-items: stretch;
    flex-direction: column;
  }

  .dryer-classification-notification .btn-primary-action {
    width: 100%;
    min-height: 56px;
    text-align: center;
  }
}

.weighbridge-copy-report-button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.batch-chart-scroll {
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.batch-evolution-chart {
  display: block;
  min-width: 720px;
  width: 100%;
  min-height: 300px;
  background: rgba(5, 48, 25, 0.28);
  border: 1px solid rgba(234, 246, 238, 0.14);
  border-radius: 18px;
}

.batch-chart-axis {
  stroke: rgba(234, 246, 238, 0.45);
  stroke-width: 1.5;
}

.batch-chart-target {
  stroke: rgba(255, 214, 102, 0.86);
  stroke-dasharray: 6 6;
  stroke-width: 2;
}

.batch-chart-actual {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-dasharray: 3 5;
  stroke-width: 2;
}

.batch-chart-point-moisture,
.batch-chart-point-forecast {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

circle.batch-chart-point-moisture,
circle.batch-chart-point-forecast {
  fill: #0b2f19;
  stroke-width: 3;
}

.batch-chart-point-moisture {
  stroke: #73e2a7;
}

.batch-chart-point-forecast {
  stroke: #7cc7ff;
}

.batch-chart-label,
.batch-chart-x-label {
  fill: rgba(234, 246, 238, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.batch-chart-label-right {
  text-anchor: end;
}

.batch-chart-x-label {
  text-anchor: middle;
}

.batch-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--green-100);
  font-weight: 700;
}

.batch-chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.batch-chart-legend i {
  display: inline-block;
  height: 4px;
  width: 24px;
  border-radius: 999px;
}

.batch-legend-moisture {
  background: #73e2a7;
}

.batch-legend-forecast {
  background: #7cc7ff;
}

.batch-legend-target {
  background: repeating-linear-gradient(90deg, #ffd666 0 6px, transparent 6px 10px);
}

.batch-legend-actual {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0 4px, transparent 4px 8px);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
