/* Que toda la página use flexbox vertical */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  min-width: 0;
  overflow-x: hidden;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #d8f0d8 0%, #ffffff 100%);
  padding: 10px 20px;
  color: white;
}

/* Menú hamburguesa */
/* Menú principal */
.menu {
  position: relative;
  display: inline-block;
}

/* Opciones del menú */
.menu-options {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background: white; /* fondo claro */
  flex-direction: column;
  width: 200px;
  border: 1px solid #ccc;
  z-index: 1000;
}

header .menu-options a {
  color: #006400;
}

/* Mostrar menú al pasar el mouse */
.menu:hover .menu-options {
  display: flex;
}

/* Enlaces del menú */
.menu-options a {
  padding: 10px;
  text-decoration: none;
  color: #000; /* texto negro */
  border-bottom: 1px solid #eee;
}

.menu-options a:hover {
  background: #ff1493; /* rosa corporativo */
  color: white;
}

body.admin-page .menu-options a[href$=".html"]:not(.global-menu-link):not(.public-site-link) {
  display: none;
}

.public-site-link {
  display: inline-block;
}

.menu-options .global-logout-button,
.global-logout-button {
  width: 100%;
  padding: 10px;
  color: #006400;
  background: transparent;
  border: 0;
  border-top: 1px solid #eee;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.menu-options .global-menu-link {
  border-top: 1px solid #eee;
  font-weight: 700;
}

.global-menu-link {
  color: #006400;
  text-decoration: none;
}

.global-menu-link:hover,
.global-menu-link:focus-visible {
  color: #ff1493;
}

.menu-options .global-logout-button:hover,
.global-logout-button:hover,
.global-logout-button:focus-visible {
  background: #ff1493;
  color: white;
}

.global-logout-action {
  margin-top: 24px;
  padding: 12px 20px;
  color: #fff;
  background: #006400;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.global-logout-action:hover,
.global-logout-action:focus-visible {
  background: #ff1493;
}

/* Mostrar menú al pasar el mouse */
.menu:hover .menu-options {
  display: flex;
}

/* Enlaces del menú */
.menu-options a {
  padding: 10px;
  text-decoration: none;
  color: #000; /* texto negro */
  border-bottom: 1px solid #eee;
}

.menu-options a:hover {
  background: #ff1493; /* rosa corporativo */
  color: white;
}

/* Cuerpo */
main {
  flex: 1; /* ocupa todo el espacio disponible */
  padding: 20px;
}

/* Footer */
footer {
  width: 100%;
  background: #006400;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
}
.footer-left,
.footer-right,
.footer-left a,
.footer-right input,
.footer-right button,
.copyright {
  min-width: 0;
}
.footer-left a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 5px 0;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 32px;   /* tamaño estándar del ícono */
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1); /* efecto al pasar el mouse */
}
.footer-right input {
  padding: 8px;
  width: 70%;
  margin-right: 5px;
}
.footer-right button {
  padding: 8px;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
}
.copyright {
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

/* Responsive para móviles */
@media (max-width: 414px) {
  header { flex-direction: column; align-items: flex-start; }
  .menu-options { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right input { width: 100%; margin-bottom: 10px; }
}

/* Popup */
.popup {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0; left: 0;
.quote-dtf-section output {
  display: flex;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid #8bc34a;
  border-radius: 10px;
  background: #f9f9f9;
  color: #0a7e2b;
  font-weight: 600;
}
  text-align: center;
  max-width: 300px;
}

.popup-content button {
  margin-top: 15px;
  padding: 8px 12px;
  background: #ff1493;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ===== Ventas / Presupuestos ===== */
/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  max-height: 500px; /* altura máxima más pequeña */
  object-fit: cover; /* recorta la imagen si es más alta */
}

.hero-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
}

.hero-text h1 {
  font-size: 3.5em;
  font-weight: bold;
  background: linear-gradient(90deg, #ff1493, #ff69b4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 1.2em;
}
.hero-text button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ff1493;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }
}

/* Contact section en dos columnas */
.contact-section {
  display: flex;
  gap: 40px;
  padding: 40px;
  align-items: flex-start;
}
.contact-left {
  flex: 1;
  font-size: 1.1em;
}
.contact-right {
  flex: 1;
}
.contact-right form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-right input,
.contact-right textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-right button {
  padding: 10px;
  background: #ff1493;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}

/* Popup general */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 320px;
}

.popup-content button {
  margin-top: 15px;
  padding: 8px 12px;
  background: #ff1493;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Layout general de galería */
.galeria-page {
  padding-bottom: 40px;
}

/* Servicios */
.servicios-page {
  padding-bottom: 60px;
}

.services-hero {
  position: relative;
  text-align: center;
  color: white;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.36);
  pointer-events: none;
}

.services-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.services-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 24px;
  max-width: 760px;
  z-index: 1;
}

.services-hero-text h1 {
  font-size: 3rem;
  margin: 0;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.services-hero-text p {
  font-size: 1.1rem;
  margin: 18px auto 0;
  max-width: 620px;
  color: #f3f3f3;
  text-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.cta-button {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 28px;
  background: #ff1493;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
  background: #ff54b8;
  transform: translateY(-2px);
}

.services-summary,
.services-steps,
.services-portfolio,
.services-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
}

.services-summary .section-header,
.services-steps .section-header,
.services-portfolio .section-header {
  text-align: center;
  margin-bottom: 30px;
}

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

.service-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 220px;
  animation: floatIn 1s ease-out both;
}

.service-card h3 {
  margin: 18px 20px 10px;
  color: #006400;
}

.service-card p {
  margin: 0 20px 20px;
  color: #2f2f2f;
  line-height: 1.7;
}

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

.step-card {
  background: #fff5fb;
  border: 1px solid rgba(255,20,147,0.15);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff1493;
  color: white;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-card h3 {
  margin: 0 0 10px;
  color: #006400;
}

.step-card p {
  margin: 0;
  color: #444;
  line-height: 1.7;
}

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

.portfolio-grid img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  height: 240px;
}

.services-cta {
  background: linear-gradient(180deg, #fff0f6 0%, #ffffff 100%);
  text-align: center;
  border-radius: 24px;
}

.services-cta h2 {
  margin: 0;
  color: #006400;
}

.services-cta p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #444;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .service-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .services-hero img {
    max-height: 420px;
  }

  .services-hero-text {
    top: 45%;
  }

  .service-grid,
  .steps-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Notas */
.login-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.login-card h2 {
  margin-top: 0;
  color: #006400;
}

.login-card p {
  color: #444;
  line-height: 1.6;
}

.login-card label {
  display: block;
  margin-top: 18px;
  color: #333;
}

.login-card input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d3d3d3;
  border-radius: 12px;
  outline: none;
}

.login-card .password-field {
  position: relative;
  margin-top: 8px;
}

.login-card .password-field input {
  margin-top: 0;
  padding-right: 52px;
}

.login-card .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px !important;
  min-width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%);
  background: transparent !important;
  color: #555;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.login-card .password-toggle::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 7px;
  width: 23px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 80% 12%;
  transform: rotate(45deg);
}

.login-card .password-toggle::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.login-card .password-toggle.is-visible::after {
  top: 17px;
  left: 6px;
  width: 25px;
  height: 2px;
  border-radius: 2px;
  transform: rotate(-45deg);
}

.login-card .password-toggle:hover,
.login-card .password-toggle:focus-visible {
  color: #006400;
  outline: 2px solid #006400;
  outline-offset: 2px;
}

.login-card .checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.login-card .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

.login-card .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #006400;
  border: 1px solid #006400;
  background: #fff;
  appearance: auto;
}

.login-card .form-group {
  min-width: 0;
}

.login-card input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}

.login-card button {
  margin-top: 24px;
  width: 100%;
  padding: 14px 0;
  background: #ff1493;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.login-error {
  margin-top: 18px;
  color: #b00020;
}

/* General error message used across login forms */
.error-message {
  margin-top: 12px;
  color: #b00020;
  display: block;
}

/* Center error messages inside login cards */
.login-card .error-message,
#boardLoginCard .error-message {
  text-align: center;
}

/* Center error messages wherever they are used */
.error-message {
  text-align: center;
}

/* Status labels */
.status {
  font-weight: 700;
}
.status-pagado {
  color: #0b8a3a; /* green for Pagado */
}
.status-activa {
  color: #0b6f55;
}
.status-no-pagado {
  color: #b7791f; /* amber for No pagado */
}
.status-cancelado {
  color: #b3282e; /* red for Cancelado */
}
.status-pre-orden {
  color: #176b87;
}
.status-cotizacion {
  color: #8a4b08;
}

.delivery-semaphore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.delivery-semaphore::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

.delivery-semaphore.green {
  background: #dff7e6;
  border-color: #a8dfb8;
  color: #0d7d43;
}

.delivery-semaphore.yellow {
  background: #fff3c4;
  border-color: #ebd979;
  color: #905800;
}

.delivery-semaphore.red {
  background: #ffe0e0;
  border-color: #f0a7a7;
  color: #b3282e;
}

.delivery-subtitle {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #555;
  font-weight: 600;
}

.orders-section,
.order-detail,
.capture-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Spacing specifically for orders pages: gap between header/buttons and table */
.orders-section .orders-header {
  margin-bottom: 18px;
}

.orders-section .orders-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Ensure order detail tables behave like the scrollable orders table */
.order-detail {
  overflow-x: visible; /* allow table wrapper to control scrolling */
}

.order-detail table {
  table-layout: auto;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.order-detail thead th,
.order-detail thead td {
  background: #ff1493;
  color: #fff;
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  white-space: normal;
  word-break: normal;
}

.order-detail tbody td {
  padding: 12px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scroll wrapper for wide tables inside sections (mobile-friendly) */
.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  padding-bottom: 6px;
  /* visual container for the table to match reference */
  background: transparent;
.table-scroll {
}

/* visual card around the table */
.table-scroll-inner {
  border-radius: 28px;
  /* allow the inner container to not clip the wide table so the outer .table-scroll can scroll */
  overflow: visible;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,0.06);
  margin: 8px 0 18px 0;
}
}

.table-scroll table {
  table-layout: auto; /* allow the table to grow to its content width */
  width: auto;
  min-width: 760px; /* force horizontal overflow on small screens */
  border-collapse: separate;
  border-spacing: 0;
}

/* Sticky table header for scrollable tables */
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ff1493; /* solid pink header */
  color: #fff;
  padding: 12px 18px; /* more compact header height */
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap; /* keep header labels on one line */
  text-overflow: clip;
}
.table-scroll thead th:first-child { border-top-left-radius: 12px; }
.table-scroll thead th:last-child { border-top-right-radius: 12px; }
.table-scroll thead th:nth-child(1){ min-width: 86px; }
.table-scroll thead th:nth-child(2){ min-width: 160px; }
.table-scroll thead th:nth-child(3){ min-width: 120px; }
.table-scroll thead th:nth-child(4){ min-width: 120px; }

.table-scroll tbody tr td {
  padding: 12px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Improve visual separation of rows */
.table-scroll tbody tr {
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff; /* rows in white */
}
.table-scroll tbody tr td {
  background: #ffffff;
  padding: 16px 28px; /* slightly smaller to fit content */
  font-size: 18px;
  color: #111;
}
.table-scroll tbody td.center,
.table-scroll tbody td.numeric {
  text-align: center;
}
.table-scroll tbody td.desc {
  text-align: left;
}
.table-scroll tbody tr:hover td {
  background: #ffffff;
}
.table-scroll thead th {
  background: #ff1493; /* ensure header color */
  box-shadow: none;
}

/* Apply same header + row styling to note tables inside .table-scroll wrappers */
.table-scroll .note-table thead th,
.table-scroll .orders-table thead th {
  background: #ff1493;
  color: #fff;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.table-scroll .note-table tbody tr,
.table-scroll .orders-table tbody tr {
  background: #ffffff;
}

/* Visual hint that table can be scrolled horizontally */
.table-scroll {
  position: relative;
}
.table-scroll::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.6));
}

/* Pagination controls shown below tables */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  background: #fff;
  z-index: 20;
}

/* Make pagination sticky to bottom of the table-scroll area so it's always visible */
.table-scroll .pagination {
  position: sticky;
  bottom: 0;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.06);
}

/* Provide extra bottom padding so the sticky pagination doesn't overlap rows */
.orders-section .table-scroll {
  padding-bottom: 72px; /* room for sticky pagination */
}

.capture-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin-bottom: 32px;
}

.capture-card {
  background: white;
  padding: 26px;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  min-width: 0;
}

.capture-card h2 {
  margin-top: 0;
}

.purchase-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  justify-content: stretch;
}

.purchase-total-preview {
  margin: 18px 0;
  font-size: 1.1rem;
}

.purchase-results-section {
  margin-top: 28px;
}

.purchase-filter-card {
  margin-bottom: 20px;
}

.expense-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.expense-results-section {
  margin-top: 28px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.capture-actions-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 16px;
  min-width: 0;
}

.capture-actions-top button {
  min-width: 0;
}

.order-preview {
  overflow-x: auto;
  min-width: 0;
}

.order-preview table {
  width: 100%;
  min-width: 650px;
  table-layout: auto;
  border-collapse: collapse;
}

.order-preview th,
.order-preview td {
  white-space: normal;
  word-break: break-word;
}

.orders-table th,
.orders-table td,
.note-table th,
.note-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.note-table th:nth-child(1),
.note-table td:nth-child(1) {
  width: 80px;
}

.note-table th:nth-child(2),
.note-table td:nth-child(2),
.note-table th:nth-child(3),
.note-table td:nth-child(3) {
  min-width: 180px;
  max-width: 240px;
}

/* Note preview: vertical scroll only (no horizontal scroll) */
.note-preview {
  max-height: 60vh; /* limita la altura y permite scroll vertical */
  overflow-y: auto; /* scroll vertical */
  overflow-x: auto; /* permitir scroll horizontal en la sección de nota */
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
}
.note-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: auto;
}
.note-table th,
.note-table td {
  white-space: normal; /* permite wrapping dentro de las celdas */
  word-break: break-word;
  padding: 10px 12px;
}

.capture-card p {
  color: #555;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-date-field {
  width: 100%;
  height: 48px;
  min-height: 48px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 18px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  line-height: normal;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.admin-date-field:focus {
  border-color: #006400;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14);
  transform: translateY(-1px);
}

.capture-actions {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.inventory-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

.inventory-row-actions button {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 8px 14px;
  white-space: nowrap;
}

.capture-actions input[type="file"] {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #ddd;
}

.capture-card input[type="text"],
.capture-card input[type="number"],
.capture-card input[type="month"],
.capture-card input[type="date"],
.capture-card input[type="password"],
.capture-card select,
.capture-card textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 18px;
  background: #fff;
  color: #0f4d21;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.capture-card input[type="text"]::placeholder,
.capture-card input[type="number"]::placeholder,
.capture-card input[type="month"]::placeholder,
.capture-card input[type="date"]::placeholder,
.capture-card input[type="password"]::placeholder,
.capture-card textarea::placeholder {
  color: #6e9c71;
}

.capture-card input[type="text"]:focus,
.capture-card input[type="number"]:focus,
.capture-card input[type="month"]:focus,
.capture-card input[type="date"]:focus,
.capture-card input[type="password"]:focus,
.capture-card select:focus,
.capture-card textarea:focus {
  border-color: #006400;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.capture-card textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
  font: inherit;
}

.capture-card textarea[readonly] {
  background: #f7f7f7;
  cursor: default;
}

.note-builder-price-input {
  width: 100%;
  min-width: 110px;
  max-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 100, 0, 0.7);
  border-radius: 12px;
  background: #fff;
  color: #0f4d21;
  font-size: 0.95rem;
  text-align: right;
}

.note-builder-price-input:focus {
  border-color: #006400;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12);
  outline: none;
}

.primary-button {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(90deg, #007f00, #005800);
  color: white;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button + .primary-button,
button.primary-button + button.primary-button {
  margin-top: 14px;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(213, 0, 125, 0.2);
}

.product-section {
  margin-top: 24px;
}

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

.product-header h3 {
  margin: 0;
}

.product-list {
  display: grid;
  gap: 18px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: transparent;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 20, 147, 0);
  min-width: 0;
}

.product-row label {
  font-size: 0.9rem;
  color: #5d2a4a;
  margin-bottom: 8px;
}

.product-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-nombre,
.product-descripcion,
.product-fecha-entrega,
.admin-date-field,
#purchaseDate,
#purchaseFilterDate,
#expenseDate,
#expenseFilterDate {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #006400;
  border-radius: 12px;
  background: #fff;
  color: #2b2b2b;
  font: inherit;
  box-sizing: border-box;
  outline: none;
}

.product-descripcion {
  min-height: 110px;
  resize: vertical;
}

.product-nombre::placeholder,
.product-descripcion::placeholder {
  color: #6e9c71;
}

.product-nombre:focus,
.product-descripcion:focus,
.product-fecha-entrega:focus,
.admin-date-field:focus,
#purchaseDate:focus,
#purchaseFilterDate:focus,
#expenseDate:focus,
#expenseFilterDate:focus {
  border-color: #006400;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12);
}

.remove-product-button {
  justify-self: start;
  width: fit-content;
  background: white;
  color: #d5007d;
  border: 1px solid #d5007d;
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 110px;
  transition: background 0.2s ease, color 0.2s ease;
}

.remove-product-button:hover {
  background: #d5007d;
  color: white;
}

.preview-card {
  background: white;
  border: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.order-preview {
  padding: 8px 0 0;
}

.order-preview table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  table-layout: fixed;
}

.order-preview th,
.order-preview td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-preview td:last-child,
.order-preview th:last-child {
  width: 180px;
  min-width: 180px;
}

.preview-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.preview-action-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.item-authorization-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #555;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-preview tr.item-authorization-autorizada {
  background: rgba(220, 248, 224, 0.7);
}

.order-preview tr.item-authorization-autorizada .item-authorization-badge {
  background: #d9f4df;
  color: #176b2c;
}

.order-preview tr.item-authorization-cancelada {
  background: rgba(255, 229, 229, 0.72);
}

.order-preview tr.item-authorization-cancelada .item-authorization-badge {
  background: #f8d7d7;
  color: #9e2929;
}

.preview-action-row .secondary-button {
  white-space: nowrap;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 110px;
  flex: 0 0 auto;
}

.order-preview th {
  background: #ffe3f5;
  color: #8b1564;
  white-space: nowrap;
}

.preview-empty {
  color: #8b1564;
  margin-top: 10px;
}

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

.preview-summary p {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .product-row {
    grid-template-columns: 1fr;
  }
  .preview-summary {
    grid-template-columns: 1fr;
  }
}

.capture-note {
  margin-top: 18px;
  color: #777;
}

.save-message {
  margin-top: 16px;
  color: #008000;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.save-message.visible {
  opacity: 1;
}

.orders-count {
  margin: 8px 0 0;
  color: #555;
}

.orders-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 0;
}

.orders-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.orders-buttons button {
  min-width: 150px;
}

.capture-authorization-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.capture-authorization-actions button {
  flex: 1 1 180px;
}

.orders-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.monthly-cuts-board .orders-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

.monthly-cuts-board .orders-header > div:first-child {
  flex: 1 1 auto !important;
}

.monthly-cuts-board .orders-header .orders-buttons {
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

/* Center the board login card when it's used inside orders header */
#boardLoginSection {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Ensure the board login section takes a full row so its inner card can center */
#boardLoginSection {
  flex: 1 1 100%;
  max-width: 100%;
}

/* Keep the login card compact and centered within the board login section */
#boardLoginSection .login-card {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

/* Center the board table when visible */
#boardContent .table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

/* Make the orders table use auto width but stay centered */
#boardContent .orders-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: auto;
}

#boardContent .orders-table th,
#boardContent .orders-table td {
  white-space: nowrap;
}

#boardContent .orders-table th:nth-child(1),
#boardContent .orders-table td:nth-child(1) {
  width: 11%;
}

#boardContent .orders-table th:nth-child(2),
#boardContent .orders-table td:nth-child(2) {
  width: 18%;
}

#boardContent .orders-table th:nth-child(3),
#boardContent .orders-table td:nth-child(3) {
  width: 31%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#boardContent .orders-table th:nth-child(4),
#boardContent .orders-table td:nth-child(4) {
  width: 14%;
}

#boardContent .orders-table th:nth-child(5),
#boardContent .orders-table td:nth-child(5) {
  width: 13%;
}

#boardContent .orders-table th:nth-child(6),
#boardContent .orders-table td:nth-child(6) {
  width: 234px;
  min-width: 234px;
}

@media (min-width: 701px) {
  #boardContent .orders-table td.action-buttons {
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 100%;
  }

  #boardContent .orders-table .action-buttons {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    padding: 10px 8px;
    box-sizing: border-box;
  }

  #boardContent .orders-table .action-buttons .secondary-button {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    padding: 0 8px;
    height: 38px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1;
    font-size: 1rem;
    letter-spacing: 0;
    border: 2px solid #ff4fa3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ff4fa3;
    box-sizing: border-box;
    font-weight: 500;
  }

  #boardContent .orders-table .action-buttons .secondary-button:hover {
    background: #ff4fa3;
    color: #fff;
    transform: translateY(-1px);
  }
}

#boardContent .board-table-container::-webkit-scrollbar {
  height: 14px;
}

#boardContent .board-table-container::-webkit-scrollbar-thumb {
  background: #777;
  border-radius: 8px;
}

#boardContent .board-table-container::-webkit-scrollbar-track {
  background: #eee;
}

@media (max-width: 700px) {
  body.admin-page main.notas-page > .orders-section {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  #boardContent .orders-header {
    align-items: stretch;
  }

  #boardContent .orders-header .orders-buttons,
  #boardContent .orders-header .orders-buttons button {
    width: 100%;
  }

  #boardContent .table-scroll {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  #boardContent .orders-table {
    width: 1100px;
    min-width: 1100px;
  }

  #boardContent .orders-table th,
  #boardContent .orders-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

.orders-header h2,
.orders-header div h2 {
  margin: 0;
}

.orders-header p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.orders-header .notes-outstanding-balance {
  margin-top: 8px;
  color: #006400;
  font-weight: 700;
}

.orders-table,
.note-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.orders-table th,
.orders-table td,
.note-table th,
.note-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
  text-align: left;
}

.orders-table th,
.note-table th {
  background: #ff1493;
  color: white;
  font-weight: 700;
}

.orders-table tbody tr:hover {
  background: #fff4fb;
  cursor: pointer;
}

.orders-table,
.note-table {
  min-width: 100%;
}

@media (max-width: 900px) {
  main {
    padding: 16px;
  }

  .login-container,
  .capture-container,
  .orders-section,
  .order-detail {
    padding: 20px 12px;
  }

  .login-card,
  .capture-card,
  .note-table {
    min-width: 0;
    width: 100%;
  }

  .orders-table {
    width: 100%;
    overflow-x: auto;
    min-width: 650px;
    display: block;
  }

  .orders-table table {
    width: 100%;
  }

  .login-card {
    max-width: 100%;
    padding: 24px;
  }

  .capture-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .capture-actions-top,
  .capture-actions,
  .product-header,
  .form-row {
    width: 100%;
    min-width: 0;
  }

  .form-row {
    gap: 14px;
  }

  .orders-header {
    gap: 12px;
  }

  .orders-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-buttons button,
  .orders-buttons .secondary-button,
  .orders-buttons .primary-button {
    width: 100%;
  }

  .footer {
    padding: 18px 16px;
  }

  .footer-left,
  .footer-right,
  .footer-left a,
  .footer-right input,
  .footer-right button,
  .copyright {
    width: 100%;
    min-width: 0;
  }

  .footer-right {
    margin-top: 16px;
  }

  .footer-right input {
    width: 100%;
    margin-bottom: 10px;
  }
}

.secondary-button,
button.secondary-button {
  padding: 12px 22px;
  border: 1px solid #ff1493;
  background: transparent;
  color: #ff1493;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover,
button.secondary-button:hover {
  background: #ff1493;
  color: white;
  transform: translateY(-1px);
}

.secondary-button:disabled,
button.secondary-button:disabled {
  background: #fff;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

button.primary-button {
  padding: 12px 22px;
  border: 1px solid rgba(0, 100, 0, 0.35);
  background: #f6fff6;
  color: #006400;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.capture-card button.primary-button {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(90deg, #007f00, #005800);
  color: white;
  border: none;
  border-radius: 18px;
  margin-top: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capture-card button.primary-button:hover {
  background: #005800;
  color: white;
  transform: translateY(-1px);
}

button.primary-button:hover {
  background: #006400;
  color: white;
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

.note-preview {
  background: white;
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pdf-header {
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ff1493 0%, #7b00ff 100%);
  border-radius: 20px;
  color: white;
}

.pdf-header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdf-header-brand img {
  width: 80px;
  height: auto;
  min-width: 80px;
  border-radius: 16px;
  background: white;
  padding: 8px;
  object-fit: contain;
}

.pdf-header-brand h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.pdf-header-brand p {
  margin: 0;
  opacity: 0.9;
}

.note-header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.note-header div {
  font-size: 1.05rem;
  color: #333;
}

.note-header div:nth-child(5),
.note-header div:nth-child(6) {
  grid-column: span 2;
}

.note-table th,
.note-table td {
  padding: 14px 16px;
}

.note-table tbody tr:last-child td {
  border-bottom: none;
}

.note-item-paid-checkbox {
  transform: scale(1.2);
  margin: 0;
}

.note-item-payment-type {
  width: 100%;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: white;
  color: #222;
}

.note-item-save-button {
  padding: 10px 14px;
  border: 1px solid #ff1493;
  border-radius: 999px;
  background: white;
  color: #ff1493;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.note-item-save-button:hover:not(:disabled) {
  background: #ff1493;
  color: white;
}

.note-item-save-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.note-item-saved td,
.note-item-cancelled td {
  opacity: 0.8;
  background: rgba(11, 138, 58, 0.04);
}

.note-item-cancelled .note-item-paid-checkbox {
  accent-color: #0b8a3a;
}

.note-status {
  margin-top: 16px;
  font-size: 0.98rem;
  color: #333;
  font-weight: 700;
}

.note-totals {
  max-width: 380px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
}

.note-totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.note-totals span {
  color: #555;
}

.note-totals strong {
  color: #000;
}

/* Force first data row in note preview to stay white (prevent accidental header styling) */
.note-preview .note-table tbody tr:first-child,
.note-preview .note-table tbody tr:first-child td {
  background: #ffffff !important;
  color: #111 !important;
}

/* Ensure all data rows in note tables are white (override accidental pink) */
.note-preview .note-table tbody td,
.table-scroll .note-table tbody td {
  background: #ffffff !important;
  color: #111 !important;
}

@media (max-width: 900px) {
  .note-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-header div:nth-child(5),
  .note-header div:nth-child(6) {
    grid-column: span 1;
  }

  .orders-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.admin-page > main {
  flex: 1;
}

body.admin-page .gallery-title h1 {
  color: #ff1493;
}

body.admin-page footer {
  width: 100%;
  background: #004d00;
  color: #ffffff;
  padding: 18px 20px;
  text-align: center;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

body.admin-page footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .login-card,
  .orders-section,
  .order-detail {
    padding: 30px 16px;
  }

  .orders-table th,
  .orders-table td,
  .note-table th,
  .note-table td {
    padding: 12px 14px;
  }
}

.monthly-cuts-page {
  padding: 0 20px 40px;
}

.monthly-cuts-board {
  max-width: 1200px;
  margin: 28px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  padding: 24px;
}

.monthly-cuts-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.monthly-cuts-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.monthly-cuts-field label {
  font-weight: 700;
  color: #333;
}

.monthly-cuts-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d3d3d3;
  background: white;
  font: inherit;
}

.section-header-row {
  margin: 28px 0 12px;
}

.section-header-row h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  color: #2d2d2d;
  font-weight: 800;
}

.monthly-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.kpi-card {
  background: linear-gradient(135deg, #fff5fb 0%, #ffffff 100%);
  border: 1px solid rgba(255, 20, 147, 0.12);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.kpi-card .kpi-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.kpi-card .kpi-value {
  display: block;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 800;
  color: #111;
}

.monthly-cuts-table-wrap {
  margin-top: 8px;
}

.monthly-cuts-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.monthly-close-status {
  color: #4d4d4d;
  font-size: 0.9rem;
  min-height: 20px;
}

.monthly-table thead th {
  background: #ff1493;
  color: #fff;
}

.monthly-table tbody td {
  padding: 14px 16px;
}

.monthly-empty-state {
  text-align: center;
  padding: 20px;
  color: #666;
}

.gallery-hero {
  padding: 50px 20px 20px;
  background: linear-gradient(180deg, #ffedf5 0%, #ffffff 100%);
  text-align: center;
}

.gallery-title h1 {
  font-size: 3rem;
  margin: 0 0 10px;
  color: #006400;
}

body.admin-page .gallery-title h1 {
  font-size: 3.2rem;
}

body.admin-page .admin-brand-image {
  display: block;
  width: min(190px, 45vw);
  height: auto;
  margin: 0 auto 12px;
  mix-blend-mode: multiply;
}

.gallery-title p {
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto;
  color: #333;
}

body.admin-page .admin-dashboard {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

body.admin-page .admin-dashboard .orders-header {
  margin-bottom: 24px;
}

body.admin-page .admin-dashboard #adminAccessList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.admin-page .admin-dashboard #adminAccessList li {
  min-width: 0;
}

body.admin-page .admin-dashboard #adminAccessList a {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  color: #006400;
  background: #fff;
  border: 1px solid #dfe8df;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgb(0 60 0 / 8%);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.admin-page .admin-dashboard #adminAccessList a:hover,
body.admin-page .admin-dashboard #adminAccessList a:focus-visible {
  border-color: #006400;
  box-shadow: 0 12px 24px rgb(0 60 0 / 14%);
  transform: translateY(-2px);
  outline: none;
}

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

@media (max-width: 480px) {
  body.admin-page .admin-dashboard #adminAccessList {
    grid-template-columns: 1fr;
  }
}

body.admin-page h2,
body.admin-page .login-card h2,
body.admin-page .orders-header h2 {
  font-size: 1.2rem;
}

body.admin-page .login-card label,
body.admin-page .form-group label {
  font-size: 1rem;
}

@media (max-width: 768px) {
  body.admin-page .gallery-title h1 {
    font-size: 2.4rem;
  }

  body.admin-page h2,
  body.admin-page .login-card h2,
  body.admin-page .orders-header h2 {
    font-size: 1.2rem;
  }
}

/* Compras: keep forms inside the viewport and scroll only the wide data table. */
.purchase-grid .capture-card,
.purchase-filter-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.purchase-results-section .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.purchase-results-section .orders-table {
  display: table;
  width: 100%;
  min-width: 680px;
}

.expense-results-section .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.expense-results-section .orders-table {
  display: table;
  width: 100%;
  min-width: 520px;
}

.expense-justification-group {
  width: 100%;
}

.expense-justification-group textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 18px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

.expense-justification-group textarea::placeholder {
  color: #6e9c71;
}

.expense-justification-group textarea:focus {
  border-color: #006400;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14);
}

/* Keep the multiline field consistent with the green input controls. */
body.admin-page #expenseContent #expenseJustification {
  width: 100% !important;
  min-height: 110px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(0, 100, 0, 0.75) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: #0f4d21 !important;
  font: inherit !important;
  line-height: 1.45 !important;
  outline: none !important;
  resize: vertical;
  box-sizing: border-box !important;
}

body.admin-page #expenseContent #expenseJustification:focus {
  border-color: #006400 !important;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14) !important;
  outline: none !important;
}

body.admin-page #expenseContent #expenseJustification::placeholder {
  color: #6e9c71 !important;
}

#expenseContent,
#expenseContent > .expense-results-section {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

@media (max-width: 600px) {
  #expenseContent {
    padding-left: 0;
    padding-right: 0;
  }

  #expenseContent > .expense-results-section {
    padding: 0;
  }

  .expense-filter-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 16px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 18px;
  }

  .expense-filter-card .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #purchaseContent {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #purchaseContent > .purchase-results-section {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .purchase-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    padding-right: 0;
  }

  .purchase-grid .capture-card,
  .purchase-filter-card {
    padding: 20px 16px;
    border-radius: 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .purchase-filter-card .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .expense-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    padding-right: 0;
  }

  .expense-grid .capture-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .expense-justification-group textarea {
    min-height: 120px;
  }

  .expense-results-section {
    padding-left: 0;
    padding-right: 0;
  }

  .purchase-results-section {
    padding-left: 0;
    padding-right: 0;
  }

  .purchase-results-section .orders-header {
    padding-left: 4px;
    padding-right: 4px;
  }
}

#quoteForm {
  display: grid;
  gap: 18px;
}

#quoteForm > h2 {
  margin: 8px 0 0;
}

.pending-quote-panel {
  margin-bottom: 4px;
}

.pending-quote-row + .pending-quote-row {
  margin-top: 12px;
}

.quote-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.quote-article-list {
  display: grid;
  gap: 16px;
}

.quote-articles-section {
  margin-top: 8px;
}

.quote-articles-section .product-header {
  margin-top: 12px;
  margin-bottom: 24px;
}

.quote-articles-section #addQuoteArticleButton {
  margin-top: 12px;
}

.quote-article-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(110px, 0.7fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #fff;
}

.quote-article-row select,
.quote-article-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 12px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  box-sizing: border-box;
}

.quote-article-cost,
.quote-article-amount {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 48px;
  justify-content: center;
}

.quote-article-cost span,
.quote-article-amount span {
  color: #555;
  font-size: 0.85rem;
}

.quote-article-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-article-actions button {
  margin: 0;
  width: auto;
  min-width: 110px;
}

.quote-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
  padding: 18px;
  border-radius: 18px;
  background: #f7fff7;
}

.quote-summary p {
  margin: 0;
  color: #444;
}

.quote-summary strong {
  display: block;
  margin-top: 6px;
  color: #006400;
  font-size: 1.15rem;
}

#clearQuoteButton {
  margin-top: 16px;
}

.quote-summary-row {
  cursor: pointer;
}

.quote-summary-row:hover {
  background: #f4fff3;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}

.quote-modal.hidden {
  display: none;
}

.quote-modal-card {
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.quote-price-modal-card {
  max-width: 520px;
}

.quote-price-options {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.quote-price-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #d9eadc;
  border-radius: 9px;
  background: #f7fff8;
  cursor: pointer;
}

.quote-price-options input {
  accent-color: #287b1d;
}

.quote-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

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

.quote-modal-header h2 {
  margin: 0;
}

.quote-modal-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.quote-summary-heading,
.quote-summary-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.quote-summary-heading span,
.quote-summary-totals span,
.quote-summary-dtf span {
  display: block;
  color: #666;
  font-size: 0.9rem;
}

.quote-summary-heading strong,
.quote-summary-totals strong,
.quote-summary-dtf strong {
  display: block;
  margin-top: 4px;
  color: #176b16;
}

.quote-summary-dtf {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f5fff4;
}

.quote-summary-totals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.quote-summary-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

.quote-selected-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 650px) {
  .quote-modal {
    padding: 12px;
  }

  .quote-modal-card {
    padding: 18px;
  }

  .quote-summary-heading,
  .quote-summary-totals {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-results-section {
  max-width: 1180px;
  margin: 28px auto 0;
}

.quote-filter-card {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.quote-filter-card input[type="date"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #006400;
  border-radius: 12px;
  background: #fff;
  color: #2b2b2b;
  font: inherit;
  box-sizing: border-box;
}

.quote-results-section .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.quote-results-section .orders-table {
  display: table;
  width: 100%;
  min-width: 760px;
}

@media (max-width: 700px) {
  #quoteContent {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  .quote-grid,
  .quote-grid .capture-card,
  .quote-results-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .quote-grid .capture-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .quote-article-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .quote-article-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-article-actions button {
    width: 100%;
    min-width: 0;
  }

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

  .quote-results-section .table-scroll {
    max-width: 100%;
    overflow-x: auto;
  }

  .quote-filter-card .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body.admin-page #expenseContent {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.admin-page #expenseContent .expense-grid,
  body.admin-page #expenseContent .expense-grid .capture-card,
  body.admin-page #expenseContent .expense-filter-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.admin-page #expenseContent > .expense-results-section {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.admin-page #expenseContent .expense-results-section .table-scroll {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Inventario layout and multiline description field. */
.inventory-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.inventory-results-section {
  width: 100%;
  max-width: 1180px;
  margin: 28px auto 0;
}

.inventory-filter-box {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 22px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.inventory-filter-box .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.inventory-filter-box .form-group {
  min-width: 0;
}

.inventory-filter-box label {
  font-size: 1rem;
  color: #1f2f27;
  font-weight: 600;
}

.inventory-filter-box input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 12px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inventory-filter-box input[type="text"]:focus {
  border-color: #006400;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14);
}

.inventory-description-group,
.inventory-description-group textarea {
  width: 100%;
}

.inventory-description-group textarea {
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 18px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

.inventory-description-group textarea:focus {
  border-color: #006400;
  box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.14);
}

@media (max-width: 600px) {
  #inventoryContent,
  #inventoryContent > .inventory-results-section,
  .inventory-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .inventory-grid .capture-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .inventory-description-group textarea {
    min-height: 120px;
  }
}

/* ===== Quienes Somos ===== */
.about-hero {
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, #fff0f6 0%, #ffffff 100%);
  text-align: center;
}
.about-hero h1 {
  color: #ff1493;
  font-size: 2.4rem;
  margin: 0 0 8px;
}
.about-hero p {
  color: #444;
  max-width: 900px;
  margin: 0 auto;
}
.about-content {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}
.about-text ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #333;
}
.about-text li {
  margin-bottom: 10px;
}
.about-side-image {
  background: transparent;
}
.about-side-image img {
  width: 100%;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  display: block;
}

.about-grid {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.about-card {
  background: white;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.about-card h2 {
  margin-top: 0;
  color: #006400;
}
.about-card p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.values-section {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
}
.values-section .section-header {
  text-align: center;
  margin-bottom: 30px;
}

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

.value-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.about-side-image img {
  width: 100%;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  display: block;
  animation: floatIn 1s ease-out both;}

.value-card h3 {
  margin: 0 0 12px;
  color: #ff1493;
}

.value-card p {
  margin: 0;
  color: #444;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .about-content { grid-template-columns: 1fr; }
  .about-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.conocenos-page {
  padding-bottom: 40px;
}

.know-hero {
  padding: 60px 20px 30px;
  background: linear-gradient(180deg, #fff0f6 0%, #ffffff 100%);
  text-align: center;
}

.know-hero .gallery-title h1 {
  font-size: 3rem;
  color: #ff1493;
}

.know-hero .gallery-title p {
  color: #444;
  max-width: 720px;
  margin: 0 auto;
}

.know-values {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.know-values .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.know-values .section-header h2 {
  font-size: 2rem;
  color: #006400;
  margin-bottom: 10px;
}

.know-values .section-header p {
  color: #444;
  max-width: 720px;
  margin: 0 auto;
}

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

.value-card {
  background: white;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.value-card h3 {
  margin: 0 0 12px;
  color: #006400;
}

.value-card p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.know-social {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
}

.know-social .section-header {
  text-align: center;
  margin-bottom: 30px;
}

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

.social-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #333;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.social-card img {
  width: 50px;
  height: 50px;
}

.social-card span {
  display: block;
  font-weight: 700;
  color: #006400;
}

.social-card small {
  display: block;
  color: #777;
}

@media (max-width: 980px) {
  .value-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
}

.galeria-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.zu-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.galeria-layout.galeria-overview {
  grid-template-columns: 1fr;
}

.galeria-buttons-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-link-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex: 1 1 260px;
  min-width: 240px;
}

.gallery-link-title {
  padding: 18px;
  font-weight: 700;
  color: #006400;
}

.gallery-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.gallery-link-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Botones verticales */
.categoria-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.categoria-buttons-vertical button {
  padding: 14px 16px;
  background: #fff;
  color: #333;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  text-align: left;
}

.categoria-buttons-vertical button:hover,
.categoria-buttons-vertical button.active {
  background: #ff1493;
  color: #fff;
  border-color: #ff1493;
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.18);
}

.zu-subcategory-panel {
  display: grid;
  grid-template-columns: minmax(200px, auto) repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
  align-items: center;
}

.zu-subcategory-panel p {
  margin: 0;
  font-weight: 700;
  color: #006400;
  white-space: nowrap;
}

.zu-subcategory-button {
  padding: 12px 14px;
  border: 1px solid #d3d3d3;
  background: #fff;
  color: #333;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 160px;
}

.zu-subcategory-panel button:hover,
.zu-subcategory-panel button.active {
  background: #ff1493;
  color: #fff;
  border-color: #ff1493;
}

.zu-subcategory-panel button.active {
  background: #006400;
  color: #fff;
  border-color: #006400;
}

.hidden {
  display: none !important;
}

.pending-product-row {
  margin-top: 0;
  padding-top: 32px;
}


/* Grid de imágenes */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-dtf-section {
  margin: 24px 0;
  padding: 22px 18px 18px;
  border: 1px solid #d9eadc;
  border-radius: 18px;
  background: #f3fbf5;
  box-shadow: inset 0 0 0 1px rgba(11, 120, 58, 0.03);
}

.quote-dtf-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.quote-dtf-toggle-row {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.quote-dtf-toggle-row .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2f27;
  cursor: pointer;
}

.quote-dtf-toggle-row .checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0a87d5;
}

.quote-dtf-section .form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 16px;
  margin-bottom: 18px;
}

.quote-dtf-section .form-row .form-group {
  min-width: 0;
}

.quote-dtf-section .form-group label,
.quote-dtf-row .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d4f3c;
}

.quote-dtf-section input,
.quote-dtf-section select,
.quote-dtf-row input,
.quote-dtf-row select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 12px;
  background: #fff;
  color: #0f4d21;
  font: inherit;
  box-sizing: border-box;
}

.quote-dtf-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 100, 0, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.quote-dtf-total span {
  color: #555;
  font-size: 0.85rem;
}

.quote-dtf-total strong {
  color: #08751a;
  font-size: 1.35rem;
  font-weight: 700;
}

.quote-dtf-rows {
  display: grid;
  gap: 16px;
}

.quote-dtf-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(160px, 1.2fr) minmax(160px, 1.1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid #dfe9df;
  border-radius: 18px;
  background: #fff;
}

.quote-dtf-row .form-group {
  min-width: 0;
}

.quote-dtf-remove {
  min-width: 120px;
  margin: 0;
  border-color: #e3429c !important;
  color: #e3429c !important;
  background: transparent !important;
}

.quote-dtf-remove:hover {
  background: rgba(227, 66, 156, 0.06) !important;
}

@media (max-width: 768px) {
  .quote-dtf-section .form-row,
  .quote-dtf-row {
    grid-template-columns: 1fr;
  }

  .quote-dtf-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Overlay de lupa en hover (solo visual, sin cambiar cursor) */
.gallery-card::after {
  content: '🔍';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #006400;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.gallery-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 18px 16px;
  font-weight: 700;
  color: #006400;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 2000;
}

.image-modal-content {
  position: relative;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  opacity: 0;
  animation: modalZoom 0.25s ease-out forwards;
}

.image-modal img {
  width: 100%;
  display: block;
  max-height: 75vh;
  object-fit: contain;
  background: #111;
}

.image-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}

.image-modal p {
  margin: 0;
  padding: 16px;
  color: #fff;
  background: #111;
  font-size: 1rem;
}

@keyframes modalZoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .galeria-layout {
    grid-template-columns: 1fr;
  }

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

.gallery-link-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.gallery-link-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-link-title {
  padding: 18px;
  font-weight: 700;
  color: #006400;
}

@media (max-width: 640px) {
  .gallery-hero {
    padding: 30px 16px 16px;
  }

  .gallery-title h1 {
    font-size: 2rem;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .categoria-buttons-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .categoria-buttons-vertical button {
    width: calc(50% - 5px);
  }
}
/* Comisiones por Vendedor */
.monthly-commissions-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.monthly-commissions-section h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 16px 0;
  font-weight: 700;
}
