
body {
    font-family: Arial, sans-serif;
}

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

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

button {
    cursor: pointer;
}

/* Primera propuesta visual de Lotes. Estilos limitados a esta sección. */
body:has(.lots-workspace) { background: #f4f6f5; color: #203a31; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#main-section:has(.lots-workspace) { max-width: 1400px; width: 100%; margin: 0 auto; padding: 24px 40px; background: transparent; box-shadow: none; }
#lots-section { background: transparent; padding: 0; }
#main-section:has(.lots-workspace) #btn-back { background: transparent; color: #53665d; font-size: 14px; padding: 10px 0; }
.lots-workspace { padding: 18px 0 40px; }
.lots-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.lots-eyebrow { color: #587166; font-size: 11px; font-weight: 700; letter-spacing: .13em; margin-bottom: 12px; }
.lots-heading h2 { font-size: 36px; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; color: #173e2f; }
.lots-subtitle { color: #697970; font-size: 15px; margin-top: 9px; }
.lots-heading-actions { display: flex; gap: 10px; }
.lots-button { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-size: 13px; font-weight: 650; border: 1px solid transparent; transition: background .15s; white-space: nowrap; }
.lots-primary { background: #205740; color: white; border-color: #205740; }
.lots-primary:hover { background: #153e2d; }
.lots-secondary { background: white; color: #354d41; border-color: #d8e1db; }
.lots-secondary:hover { background: #edf3ef; }
.lots-workspace button:focus-visible, .lots-workspace input:focus-visible { outline: 3px solid #6b9d80; outline-offset: 3px; }
.lots-toolbar { background: white; padding: 20px 24px; border: 1px solid #e0e7e2; border-radius: 14px; margin-bottom: 28px; }
.lots-search-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #43584c; }
.lots-workspace #lot-search { max-width: 480px; background: #f8faf9; border: 1px solid #d7e0da; color: #203a31; font-size: 14px; border-radius: 8px; }
.lots-list-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; gap: 12px; }
.lots-list-heading h3 { font-size: 18px; font-weight: 700; }
.lots-list-heading > span { color: #728077; font-size: 12px; }
.lots-count { display: inline-block; padding: 3px 9px; border-radius: 20px; background: #e2ece5; color: #375e46; font-size: 12px; margin-left: 8px; vertical-align: middle; }
.lots-desktop { border: 1px solid #dfe6e1; border-radius: 12px; background: white; }
.lots-table th { background: #f7f9f7; border: 0; border-bottom: 1px solid #e4eae5; padding: 16px 20px; color: #718077; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.lots-table td { border: 0; border-bottom: 1px solid #edf0ed; padding: 20px; font-size: 14px; color: #43584a; }
.lots-table tr { background: white; }
.lots-table tbody tr:hover { background: #fafcfb; }
.lots-table tbody tr:last-child td { border-bottom: 0; }
.lots-name { font-weight: 650; color: #243e30; overflow-wrap: anywhere; }
.lots-unit { color: #7b897f; font-size: 12px; }
.lots-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lots-admin-actions { display: flex; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 1px solid #e0e7e2; }
.lots-text-button { min-height: 44px; padding: 8px; color: #607267; font-size: 12px; font-weight: 600; }
.lots-text-button:hover { text-decoration: underline; }
.lots-danger { color: #ae4949; }
.lots-workspace #pagination-section { padding: 18px 0; gap: 8px; font-size: 12px; }
.lots-workspace #pagination-section button { background: white; border: 1px solid #dce4de; color: #43594c; min-height: 44px; padding: 8px 15px; }
.lots-workspace #pagination-section span { color: #6e7d73; }
.lots-empty { background: white; border: 1px dashed #cbd8ce; border-radius: 12px; padding: 35px 20px; text-align: center; color: #53695a; }
.lots-empty p { margin-top: 8px; font-size: 14px; }
#lots-section [role="dialog"], .lots-workspace #edit-lot-modal > div { background: white; border-radius: 16px; box-shadow: 0 20px 80px #12302126; }
#lots-section [role="dialog"] input:not([type="hidden"]), #lots-section [role="dialog"] textarea, #lots-section [role="dialog"] select { background: #f8faf8; border-color: #d7e1d9; color: #253c2e; }
#lots-section [aria-pressed="true"] { background: #205740; color: white; border-color: #205740; }
.lots-workspace #add-lot-section { background: white; border: 1px solid #dce5de; padding: 24px; border-radius: 12px; }
@media (max-width: 1100px) { .lots-actions { flex-wrap: wrap; } .lots-admin-actions { border: 0; } }
@media (max-width: 767px) {
  #main-section:has(.lots-workspace) { padding: 12px 8px; }
  .lots-workspace { padding-top: 12px; }
  .lots-heading { align-items: stretch; flex-direction: column; gap: 20px; margin-bottom: 20px; }
  .lots-heading h2 { font-size: 32px; }
  .lots-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lots-heading-actions .lots-button { padding: 10px 8px; }
  .lots-toolbar { padding: 16px; margin-bottom: 24px; }
  .lots-list-heading > span { font-size: 11px; }
  .lot-card { border-color: #dfe7e1; box-shadow: 0 2px 5px #1f432a05; padding: 20px; }
  .lot-card h4 { color: #243e30; overflow-wrap: anywhere; }
  .lot-card p { color: #738176; margin-top: 4px; }
  .lots-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; }
  .lots-actions .lots-button { padding: 10px 5px; font-size: 12px; }
  .lots-admin-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid #edf1ed; margin: 4px 0 0; padding: 6px 0 0; }
  .lots-workspace #edit-lot-modal { padding: 12px; }
  .lots-workspace #edit-lot-modal > div { max-height: 90dvh; overflow-y: auto; }
}

/* Lenguaje visual compartido de Nuevos Verdes. */
.nv-theme body { background: #f4f6f5; color: #203a31; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.nv-theme #main-section { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 32px; background: transparent; box-shadow: none; }
.nv-theme #stock-section, .nv-theme #tasks-section { padding: 0; background: transparent; }
.nv-theme #btn-back { background: transparent; color: #586b5f; font-size: 14px; min-height: 44px; padding: 10px 0; margin-top: 8px; }
.nv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dce5de; padding-bottom: 18px; }
.nv-brand { font-size: 13px; font-weight: 750; letter-spacing: .12em; color: #205740; }
.nv-nav { display: flex; gap: 6px; background: #e8eee9; padding: 5px; border-radius: 12px; }
.nv-nav button { min-height: 44px; padding: 10px 24px; border-radius: 8px; color: #566c5e; font-size: 14px; font-weight: 600; }
.nv-nav button:hover { background: #dae5dd; }
.nv-nav button[aria-current="page"] { background: #205740; color: white; box-shadow: 0 2px 4px #173e2f15; }
.nv-workspace { padding: 18px 0 40px; }
.nv-theme :is(button, input, select, textarea):focus-visible { outline: 3px solid #709f80; outline-offset: 2px; }
.nv-theme :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { background: #f8faf9; border: 1px solid #d7e0da; border-radius: 8px; color: #2e4939; min-height: 44px; max-width: 100%; }
.nv-theme :is(input[type="checkbox"], input[type="radio"]) { accent-color: #205740; }
.nv-theme label { color: #465e4e; }
.nv-workspace :is(.bg-green-100, .bg-yellow-100).rounded-xl { background: white; border: 1px solid #dfe7e1; }
.nv-workspace .cursor-pointer.rounded-xl { background: white; border: 1px solid #dfe7e1; padding: 16px 20px; }
.nv-workspace .cursor-pointer.rounded-xl:hover { background: #eef4ef; }
.nv-workspace .cursor-pointer h3 { font-size: 16px; color: #365540; }
.nv-theme :is(button.bg-yellow-300, button.bg-green-500, button.bg-green-600, button.bg-yellow-500) { background: #205740; color: white; border: 1px solid #205740; }
.nv-theme :is(button.bg-yellow-300, button.bg-green-500, button.bg-green-600, button.bg-yellow-500):hover { background: #153e2d; }
.nv-theme :is(button.bg-gray-300, button.bg-gray-400, button.bg-gray-500, button.bg-green-200, button.bg-stone-300) { background: white; color: #45614e; border: 1px solid #d5e0d8; }
.nv-theme :is(button.bg-red-400, button.bg-red-500) { background: #fff3f2; color: #aa3f3f; border: 1px solid #edcccc; }
.nv-theme button:disabled { cursor: not-allowed; opacity: .5; }
.nv-workspace button { min-height: 40px; border-radius: 8px; }
.nv-workspace > .overflow-x-auto { background: white; border: 1px solid #dfe7e1; border-radius: 12px; }
.nv-workspace table th { background: #f6f8f6; border: 0; border-bottom: 1px solid #dfe7e1; color: #607668; font-size: 11px; letter-spacing: .04em; padding: 14px 12px; }
.nv-workspace table td { border: 0; border-bottom: 1px solid #e8eee9; color: #38513f; padding: 14px 12px; font-size: 13px; }
.nv-workspace table tbody tr { background: white; }
.nv-workspace table tbody tr:hover { background: #f8fbf8; }
.nv-workspace table button { padding: 7px 10px; font-size: 12px; }
.nv-workspace .shadow-sm { box-shadow: 0 2px 5px #1f432a05; border-color: #dfe7e1; }
.nv-theme .fixed.inset-0 { padding: 12px; }
.nv-theme .fixed.inset-0 > :is(.bg-stone-100, .bg-white, .bg-green-100), .nv-theme .fixed.inset-0 > div > .bg-stone-100 { background: white; border-radius: 16px; box-shadow: 0 20px 80px #12302126; max-height: calc(100dvh - 24px); overflow-y: auto; }
.nv-theme .fixed.inset-0 > div { min-width: 0; }
.nv-theme .fixed.inset-0 :is(h2,h3) { color: #234d35; }
.nv-theme .fixed.bottom-4.left-4 { color: white; border-radius: 12px; max-width: calc(100vw - 32px); }
.nv-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 32px; }
.nv-home-heading h1 { font-size: 36px; font-weight: 750; letter-spacing: -.04em; color: #173e2f; }
.nv-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nv-menu-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 14px; padding: 30px; background: white; border: 1px solid #dce6de; border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.nv-menu-card:hover { border-color: #83a48d; box-shadow: 0 8px 24px #244b3010; }
.nv-menu-card strong { font-size: 24px; color: #204c32; }
.nv-menu-card > span:not(.nv-menu-symbol):not(.nv-menu-link):not(.nv-menu-metric) { color: #6a7c70; font-size: 14px; }
.nv-menu-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: #edf4ee; border-radius: 12px; font-size: 26px; color: #346442; }
.nv-menu-link { margin-top: 16px; font-size: 13px; font-weight: 650; color: #205740; }
.nv-login { max-width: 440px; margin: 10vh auto; padding: 16px; }
.nv-login > .lots-eyebrow { text-align: center; margin-bottom: 28px; }
.nv-theme #login-section { background: white; border: 1px solid #dce5de; border-radius: 18px; padding: 32px; box-shadow: 0 8px 30px #204c3207; }
.nv-login h1 { font-size: 28px; font-weight: 700; color: #204c32; }
.nv-login form { margin-top: 28px; }
.nv-login label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.nv-login input { width: 100%; padding: 12px; }
.nv-login button { width: 100%; }
@media (max-width: 767px) {
  .nv-theme #main-section { padding: 12px 8px; }
  .nv-topbar { flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 14px; }
  .nv-brand { font-size: 11px; }
  .nv-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nv-nav button { padding: 10px 6px; }
  .nv-workspace { padding-top: 12px; }
  .nv-workspace .lots-heading-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-workspace input, .nv-workspace select, .nv-workspace textarea { min-width: 0; font-size: 16px; }
  .nv-workspace button { min-height: 44px; }
  .nv-home-heading { margin: 24px 0; align-items: flex-start; flex-direction: column; }
  .nv-home-heading h1 { font-size: 30px; }
  .nv-menu-grid { grid-template-columns: 1fr; gap: 14px; }
  .nv-menu-card { padding: 24px; gap: 10px; }
  .nv-menu-link { margin-top: 6px; }
  .nv-theme #login-section { padding: 24px; }
}

.nv-task-filters > div { min-width: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
  .nv-theme .nv-task-filters { flex-direction: column; align-items: stretch; }
  .nv-theme #task-advanced-filters { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Distribución institucional: navegación, filtros y acciones por jerarquía. */
.nv-theme body { background: #f3f5f4; color: #263c32; }
.nv-theme #main-section { max-width: 1600px; padding: 20px 28px; }
.nv-topbar { background: #fff; border: 1px solid #dfe6e2; border-radius: 12px; padding: 14px 20px; }
.nv-nav { background: #f0f4f1; }
.nv-brand { font-size: 12px; letter-spacing: .1em; }
.nv-theme .lots-heading h2 { font-size: 30px; font-weight: 650; }
.nv-theme .lots-eyebrow { letter-spacing: .08em; font-size: 10px; }
.nv-theme .lots-subtitle { font-size: 14px; }
.nv-workspace, .lots-workspace { padding-top: 12px; }
.nv-stock-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px; background: white; border: 1px solid #dfe6e1; border-radius: 10px; margin-bottom: 20px; }
.nv-workspace > .mb-6:has(> [id$="-section"].hidden) { margin-bottom: 0; }
.nv-theme .nv-task-filters { flex-direction: column; align-items: stretch; padding: 20px; background: white; border: 1px solid #dfe6e1; border-radius: 12px; }
.nv-task-filters > div { min-width: 0; }
.nv-theme #task-advanced-filters { width: 100%; }
.nv-theme #task-advanced-filters > div { min-width: 0; }
.nv-theme .nv-workspace h3 { font-size: 18px; font-weight: 650; }
.nv-theme .nv-workspace button[onclick*=".edit("] { background: white; color: #45614e; border: 1px solid #d5e0d8; font-weight: 500; }
.nv-theme .nv-workspace button[onclick*=".delete("] { background: #fff; color: #a33c3c; border: 1px solid #ecd4d4; font-weight: 500; }
.nv-theme .nv-workspace button[onclick*="showHistory"] { background: #eff5f0; color: #3d5b46; border: 1px solid #dce6de; }
.nv-theme :is(.lots-table,.nv-workspace table) td { vertical-align: middle; }
.nv-theme .nv-workspace table { min-width: 800px; }
.nv-theme #tasks-section table { min-width: 1100px; }
.nv-theme .nv-workspace th { white-space: nowrap; }
.nv-theme #mobile-filters-toggle { background: #eff4f0; font-size: 13px; padding: 12px; }
.nv-theme .nv-task-filters #mobile-filters-toggle { order: 1; }
.nv-theme .nv-task-filters #task-advanced-filters { order: 2; }
.nv-theme .nv-workspace .md\:hidden h4 { overflow-wrap: anywhere; }
.nv-theme .lots-workspace .lots-actions { row-gap: 10px; }
@media (min-width: 768px) { .nv-theme #task-advanced-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .nv-theme #main-section { padding: 8px 4px; }
  .nv-topbar { padding: 14px; border-radius: 10px; }
  .nv-theme .lots-heading h2 { font-size: 27px; }
  .nv-theme .nv-task-filters { padding: 14px; }
  .nv-theme #task-advanced-filters { grid-template-columns: 1fr; }
  .nv-stock-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .nv-stock-actions .lots-button { white-space: normal; padding: 9px 6px; }
  .nv-stock-actions .lots-button:first-child { grid-column: 1 / -1; }
  .nv-theme .lots-heading { margin-bottom: 22px; }
  .nv-theme .nv-workspace .md\:hidden button { min-height: 44px; }
}

/* Identidad visual: acentos naturales, iconografía local y profundidad sutil. */
.nv-theme body { background: radial-gradient(ellipse at 0 0, #e5efe5 0, transparent 45%), #f4f6f4; }
.nv-icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.nv-brand { display: flex; gap: 10px; align-items: center; }
.nv-brand-mark, .nv-login-mark { display: grid; place-items: center; background: #245c43; color: #eff8e5; border-radius: 11px; width: 38px; height: 38px; }
.nv-topbar { box-shadow: 0 4px 18px #254f3510; border-top: 3px solid #447957; }
.nv-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nv-nav button .nv-icon { width: 17px; height: 17px; }
.nv-theme .lots-heading { background: linear-gradient(110deg, #e8f2e8, #f6faf5); border: 1px solid #d6e5d6; border-radius: 16px; padding: 24px; }
.nv-theme #stock-section .lots-heading { background: linear-gradient(110deg, #e9f1f4, #f7fafb); border-color: #dae5eb; }
.nv-theme #tasks-section .lots-heading { background: linear-gradient(110deg, #f3efe1, #fbfaf5); border-color: #e8e1ca; }
.nv-theme .lots-heading h2 { display: flex; gap: 12px; align-items: center; font-size: 30px; }
.nv-section-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #d2e6d3; color: #315e3c; border-radius: 12px; }
.nv-section-icon .nv-icon { width: 24px; height: 24px; }
#stock-section .nv-section-icon { background: #d4e5eb; color: #365f74; }
#tasks-section .nv-section-icon { background: #e9ddb7; color: #725e29; }
.nv-theme .lots-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nv-theme .lots-primary { background: linear-gradient(135deg, #316e50, #20543e); box-shadow: 0 3px 7px #2057401a; }
.nv-theme .lots-primary:hover { background: #194a35; box-shadow: 0 4px 10px #20574029; }
.nv-theme .lots-secondary { background: #ffffffdb; }
.nv-theme .nv-task-filters, .nv-theme .lots-toolbar, .nv-theme .nv-stock-actions { box-shadow: 0 3px 12px #254f3505; }
.nv-theme .nv-workspace table th, .nv-theme .lots-table th { background: #eaf1eb; color: #3f5e48; }
.nv-theme #stock-section table th { background: #edf3f5; color: #45606e; }
.nv-theme #tasks-section table th { background: #f5f2e9; color: #665c41; }
.nv-home-heading { position: relative; background: linear-gradient(120deg, #184531, #347454); padding: 36px; border-radius: 20px; box-shadow: 0 10px 25px #254f3514; }
.nv-theme .nv-home-heading h1 { color: #fff; }
.nv-home-heading .lots-eyebrow { color: #bfdbbb; }
.nv-home-heading .lots-subtitle { color: #deebdd; }
.nv-theme .nv-home-heading .lots-secondary { background: #ffffff12; border-color: #ffffff55; color: white; }
.nv-home-heading .lots-secondary:hover { background: #ffffff25; }
.nv-menu-card { position: relative; border-top: 4px solid #bba56b; gap: 14px; box-shadow: 0 5px 16px #244b3007; }
.nv-menu-card:nth-child(2) { border-top-color: #86aaba; }
.nv-menu-card:nth-child(3) { border-top-color: #83ac82; }
.nv-menu-card:nth-child(1) .nv-menu-symbol { background: #f3edda; color: #786631; }
.nv-menu-card:nth-child(2) .nv-menu-symbol { background: #e8f0f5; color: #4a6e85; }
.nv-menu-card .nv-menu-symbol .nv-icon { width: 27px; height: 27px; }
.nv-theme .nv-menu-card .nv-menu-metric { display: flex; align-items: baseline; gap: 10px; font-size: 32px; font-weight: 650; color: #294c37; margin-top: 8px; }
.nv-menu-metric small { color: #697c6f; font-size: 12px; font-weight: 400; }
.nv-menu-link { padding-top: 16px; border-top: 1px solid #e9efea; width: 100%; }
.nv-theme .lot-card, .nv-theme .nv-workspace .shadow-sm { border-top: 3px solid #bbd2bc; box-shadow: 0 3px 12px #254f3508; }
.nv-theme #stock-section .shadow-sm { border-top-color: #bbd2dc; }
.nv-theme #tasks-section .shadow-sm { border-top-color: #dfd0a6; }
.nv-login-mark { margin: 0 auto 16px; width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 6px 16px #254f3520; }
.nv-login-mark .nv-icon { width: 29px; height: 29px; }
.nv-theme #login-section { border-top: 4px solid #6c986e; }
@media (prefers-reduced-motion: no-preference) {
  .nv-menu-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
  .nv-menu-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #244b3012; }
}
@media (max-width: 767px) {
  .nv-theme .lots-heading { padding: 18px 14px; border-radius: 12px; }
  .nv-theme .lots-heading h2 { font-size: 27px; }
  .nv-theme .lots-heading-actions .lots-button { font-size: 12px; gap: 5px; padding: 9px 6px; white-space: normal; }
  .lots-heading-actions .nv-icon { width: 16px; height: 16px; }
  .nv-nav button { gap: 5px; font-size: 13px; }
  .nv-nav button .nv-icon { width: 16px; height: 16px; }
  .nv-home-heading { padding: 24px; border-radius: 14px; }
  .nv-theme .nv-home-heading h1 { font-size: 28px; }
}


/* Stock: una acción activa; avisos de sesión dentro de la misma paleta. */
.nv-theme .nv-stock-actions [data-stock-panel] { background: #fff; color: #466052; border: 1px solid #d3dfd8; box-shadow: none; }
.nv-theme .nv-stock-actions [data-stock-panel]:hover { background: #edf4ef; }
.nv-theme .nv-stock-actions [aria-expanded="true"] { background: #245c43; color: #fff; border-color: #245c43; box-shadow: 0 3px 8px #245c4320; }
.nv-theme .nv-stock-actions [aria-expanded="true"]::before { content: '✓'; font-weight: 700; }
.nv-session-notice { position: fixed; bottom: 20px; left: 20px; z-index: 100; max-width: min(420px, calc(100vw - 40px)); padding: 16px 20px; border: 1px solid #cbded0; border-left: 4px solid #487f5c; border-radius: 12px; background: #edf5ee; color: #2e543b; box-shadow: 0 6px 24px #244b3014; font-size: 14px; line-height: 1.5; }
.nv-session-error { background: #fcf0ee; border-color: #ebd2cb; border-left-color: #b06559; color: #86473e; }
@media (prefers-reduced-motion: reduce) { .nv-session-notice { transition: none; } }

/* Fondos de formularios y respuesta visible de los botones. */
.nv-theme #add-stock-section { background: #edf6ee; border: 1px solid #cfe2d2; }
.nv-theme #withdraw-stock-section { background: #fcf0ed; border: 1px solid #ecd5ce; }
.nv-theme #add-task-section { background: #f7f3e7; border: 1px solid #e6dcc0; }
.nv-theme .nv-stock-actions [data-stock-panel="add-stock-section"][aria-expanded="false"] { background: #e8f3e9; color: #355d40; border-color: #cbded0; }
.nv-theme .nv-stock-actions [data-stock-panel="withdraw-stock-section"][aria-expanded="false"] { background: #faede8; color: #83554a; border-color: #ead2c9; }
@media (hover: hover) {
  .nv-theme body button:not(:disabled):hover { filter: brightness(.93); outline: 2px solid #658b7370; outline-offset: 2px; }
}
.nv-theme body button:not(:disabled):active { filter: brightness(.88); }
@media (prefers-reduced-motion: no-preference) {
  .nv-theme button { transition: background-color .15s, border-color .15s, box-shadow .15s, filter .15s; }
}

/* Encabezados de Stock y Labores al tamaño de las etiquetas de búsqueda. */
.nv-theme #stock-section table th,
.nv-theme #tasks-section table th { font-size: .875rem; line-height: 1.25rem; }

/* Selector de lotes: superficie neutra y selección discreta. */
.nv-theme #lot-dropdown-btn { background: #fff; color: #46524a; border-color: #d9ddd7; font-weight: 400; }
.nv-theme #lot-dropdown-content { background: #fff; border-color: #d9ddd7; box-shadow: 0 8px 24px #263c3214; }
.nv-theme #lot-dropdown-search { background: #f7f8f6; border-color: #d9ddd7; color: #46524a; }
.nv-theme #lot-dropdown-content .sticky { background: #fff; border-color: #e6e8e2; }
.nv-theme #lot-checkboxes-list .lot-checkbox-label { background: transparent; }
.nv-theme #lot-checkboxes-list .lot-checkbox-label span { color: #46524a; }
.nv-theme #lot-checkboxes-list .lot-checkbox-label:hover { background: #f2f3ed; }
.nv-theme #lot-checkboxes-list .lot-checkbox-label:has(input:checked) { background: #edf2ea; box-shadow: inset 3px 0 #79916b; }
.nv-theme #lot-checkboxes-list input { accent-color: #55764c; }

/* Buscadores y filtros de Labores en una única fila en escritorio. */
@media (min-width: 768px) {
  .nv-theme .nv-task-filters { flex-direction: row; align-items: flex-end; flex-wrap: nowrap; overflow-x: auto; }
  .nv-theme .nv-task-filters > .grid { flex: 2 0 300px; grid-template-columns: minmax(95px, .7fr) minmax(185px, 1.3fr); }
  .nv-theme .nv-task-filters #task-advanced-filters { flex: 5 0 710px; width: auto; grid-template-columns: repeat(5, minmax(130px, 1fr)); }
  .nv-theme .nv-task-filters label { white-space: nowrap; }
  .nv-theme .nv-task-filters :is(input, select) { min-width: 0; height: 48px; box-sizing: border-box; }
}


/* Avisos globales apilados abajo a la derecha, sin superponerse. */
#nv-notifications { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
#nv-notifications .nv-session-notice { position: static; max-width: 100%; width: fit-content; overflow-wrap: anywhere; transition: opacity .25s; }
#nv-notifications .nv-notice-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #nv-notifications .nv-session-notice { transition: none; } }

/* Alineación del texto ingresado en el login. */
.nv-login #username, .nv-login #password { text-align: center; }
