:root {
    --ink: #17212b;
    --muted: #687582;
    --line: #dbe3e7;
    --paper: #ffffff;
    --canvas: #f4f7f6;
    --teal: #087f73;
    --teal-dark: #075c55;
    --teal-soft: #dff3ef;
    --amber: #a56212;
    --amber-soft: #fff1d7;
    --red: #b23a3a;
    --red-soft: #fde7e5;
    --shadow: 0 14px 35px rgba(23, 33, 43, .07);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.site-header { background: var(--ink); color: #fff; border-bottom: 4px solid var(--teal); }
.nav-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 42px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.25rem; font-weight: bold; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: #e6c766; border-radius: 50%; font-family: Arial, sans-serif; font-weight: 800; }
.brand-logo { display: block; width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 5px; font-family: Arial, sans-serif; }
.main-nav a { display: flex; align-items: center; height: 100%; padding: 0 13px; color: #c6d1d3; font-size: .87rem; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: #e6c766; }
.logout-link { margin-left: auto; color: #e6c766; font-family: Arial, sans-serif; font-size: .78rem; text-decoration: none; white-space: nowrap; }
.logout-link:hover { color: #fff; }
.minimal-header { border-bottom-color: #e6c766; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 70px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
h2, h3 { margin-top: 0; }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-family: Arial, sans-serif; font-size: .73rem; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; }
.subtle { color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; color: #fff; background: var(--teal); border: 0; border-radius: 5px; font-family: Arial, sans-serif; font-size: .86rem; font-weight: bold; text-decoration: none; cursor: pointer; }
.btn:hover, button:hover { background: var(--teal-dark); }
.btn.secondary { color: var(--ink); background: #e8eeed; }
.btn.small { min-height: 34px; padding: 0 11px; font-size: .76rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.card { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.loss-card { min-height: 170px; border: 2px solid var(--red); background: var(--red-soft); }
.loss-card .num { color: var(--red); font-size: 2.5rem; }
.metric-label { color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; }
.num { margin-top: 11px; color: var(--ink); font-size: 2rem; font-weight: bold; }
.metric-accent { border-top: 4px solid var(--teal); }
.table-wrap { overflow-x: auto; margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.ventas-table .pedido-cambio-producto > td { background: #fff3b0; }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: .88rem; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #f7faf9; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.form { max-width: 760px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.form input, .form select, .filter-form input { width: 100%; min-height: 42px; margin: 7px 0 18px; padding: 0 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #cbd7d8; border-radius: 4px; font-family: Arial, sans-serif; }
.profile-form input[readonly] { color: #707b80; background: #e6eaeb; border-color: #c8d0d2; cursor: not-allowed; }
.profile-form input[readonly]:focus { outline: 0; border-color: #c8d0d2; }
.form input:focus, .form select:focus, .filter-form input:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.redes-sociales-form input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0 6px 0 10px; padding: 0; vertical-align: middle; accent-color: var(--teal); cursor: pointer; }
.redes-sociales-form label[for="logo-clear_id"] { display: inline; vertical-align: middle; cursor: pointer; }
.form label, .filter-form label { display: block; color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; font-weight: bold; }
.form textarea { width: 100%; min-height: 100px; margin: 7px 0 18px; padding: 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #cbd7d8; border-radius: 4px; font: inherit; resize: vertical; }
.form textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.form h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.presentacion-form input[readonly], .presentacion-form select:disabled { color: #58666b; background: #e9eeee; border-color: #c8d0d2; cursor: not-allowed; opacity: 1; }
.contenido-destacado { padding: 12px; margin-bottom: 18px; background: #fff5d6; border: 2px solid #a96800; border-radius: 6px; }
.contenido-destacado label { color: #774600; font-weight: bold; }
.form .contenido-destacado input { background: #fffdf4; border: 2px solid #a96800; margin-bottom: 8px; }
.contenido-destacado p { margin: 0; color: #774600; font-size: .9rem; }
.producto-venta { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.4fr) minmax(120px, 1fr) 85px auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.producto-venta > div { min-width: 0; }
.producto-venta input, .producto-venta select { margin-bottom: 0; }
.producto-venta p { margin: 7px 0; }
.precio-presentacion { font-weight: bold; }
@media (max-width: 900px) { .producto-venta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .producto-venta { grid-template-columns: minmax(0, 1fr); } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.filter-form { display: flex; align-items: end; gap: 12px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.filter-form input { width: 120px; margin: 6px 0 0; }
.filter-form button { min-height: 42px; }
.alert { margin-bottom: 18px; padding: 13px 15px; color: var(--red); background: var(--red-soft); border-left: 4px solid var(--red); font-family: Arial, sans-serif; }
.status { display: inline-block; padding: 5px 9px; border-radius: 20px; color: var(--teal-dark); background: var(--teal-soft); font-family: Arial, sans-serif; font-size: .72rem; font-weight: bold; }
.status.pending, .warning { color: var(--amber); background: var(--amber-soft); }
.danger { color: var(--red); font-weight: bold; }
.empty { padding: 36px; color: var(--muted); text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.space-top { margin-top: 22px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); align-items: center; gap: 80px; max-width: 980px; min-height: calc(100vh - 160px); margin: 0 auto; }
.auth-register-layout { min-height: calc(100vh - 140px); }
.auth-copy h1 { max-width: 520px; color: var(--ink); font-size: clamp(2.8rem, 6vw, 5rem); }
.auth-copy .subtle { max-width: 430px; margin-top: 24px; font-size: 1rem; line-height: 1.6; }
.auth-form { width: 100%; }
.auth-form h2 { margin-bottom: 25px; font-size: 1.7rem; }
.auth-button { width: 100%; margin-top: 6px; }
.auth-footer { margin: 18px 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .82rem; text-align: center; }
.auth-footer a { color: var(--teal-dark); font-weight: bold; }
.portal-welcome { display: flex; align-items: center; gap: 20px; max-width: 700px; }
.portal-welcome h2 { margin-bottom: 8px; }
.portal-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; color: var(--ink); background: #e6c766; border-radius: 50%; font-family: Arial, sans-serif; font-size: 1.4rem; font-weight: bold; }
.portal-placeholder { margin-top: 13px; color: var(--ink); font-size: 1.1rem; font-weight: bold; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
.notice { margin-bottom: 18px; padding: 13px 15px; color: var(--teal-dark); background: var(--teal-soft); border-left: 4px solid var(--teal); font-family: Arial, sans-serif; }
.notice.error { color: var(--red); background: var(--red-soft); border-left-color: var(--red); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.product-card h2 { margin: 9px 0 0; font-size: 1.35rem; }
.product-code { color: var(--teal); font-family: Arial, sans-serif; font-size: .72rem; font-weight: bold; letter-spacing: .08em; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; }
.product-footer strong { font-size: 1.35rem; }
.stock-label { color: var(--muted); font-family: Arial, sans-serif; font-size: .75rem; }
.quantity-label { margin-top: 15px; color: var(--muted); font-family: Arial, sans-serif; font-size: .76rem; font-weight: bold; }
.quantity-label input { width: 100%; min-height: 40px; margin-top: 6px; padding: 0 10px; border: 1px solid #cbd7d8; border-radius: 4px; font-family: Arial, sans-serif; }
.search-form { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.search-form input { flex: 1; min-height: 42px; padding: 0 12px; border: 1px solid #cbd7d8; border-radius: 4px; font-family: Arial, sans-serif; }
.search-form button { min-height: 42px; }
.inline-delete { display: inline; }
.product-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.product-state-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e8eeed; border-radius: 10px; }
.product-state-tab { padding: 10px 18px; border-radius: 7px; color: var(--muted); font: bold .86rem Arial, sans-serif; text-decoration: none; }
.product-state-tab:hover { color: var(--teal-dark); background: #f5f8f7; }
.product-state-tab.is-selected { color: var(--teal-dark); background: var(--paper); box-shadow: 0 1px 4px #143b3020; }
.product-search { flex: 1; min-width: 240px; margin: 0; }
.product-search input:not([type="hidden"]) { min-width: 0; }
.product-archive-note { padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; background: var(--paper); }
.product-archive-note strong { color: var(--ink); }
.product-archive-note p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.product-inactive-status { color: #586570; background: #edf0f3; }
.product-reactivate-form { margin: 0; }
.product-row-actions { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 8px; width: 220px; max-width: 100%; }
.product-row-actions .btn { width: 100%; min-height: 36px; border-radius: 7px; white-space: nowrap; }
.product-row-actions .inline-delete { display: block; grid-column: 1 / -1; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.product-row-actions .danger-button { color: var(--red); background: var(--red-soft); }
.product-row-actions .danger-button:hover { color: #fff; background: var(--red); }
.product-row-actions .btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn.product-reactivate-button { gap: 7px; padding: 0 14px; border: 1px solid #b6d9d1; border-radius: 7px; color: var(--teal-dark); background: var(--teal-soft); }
.btn.product-reactivate-button:hover { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }
.product-state-tab:focus-visible, .product-reactivate-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 600px) {
    .product-toolbar { align-items: stretch; }
    .product-state-tabs { width: 100%; }
    .product-state-tab { flex: 1; text-align: center; }
    .product-search { flex-basis: 100%; min-width: 0; }
}
.danger-button { color: #fff; background: var(--red); }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.profile-heading h2 { margin: 0; }
#worker-save[hidden], #edit-worker[hidden] { display: none; }
.profile-form .profile-password-toggle { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0 0 18px; color: var(--ink); font-size: .85rem; font-weight: normal; line-height: 1.4; cursor: pointer; }
.profile-form .profile-password-toggle input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 0; padding: 0; accent-color: var(--teal); cursor: pointer; }
.profile-form .profile-password-toggle:has(input:disabled) { color: var(--muted); cursor: default; }
.profile-form .profile-password-toggle input:disabled { cursor: default; }
.profile-form #password-fields { min-width: 0; margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.profile-form #password-fields input:last-child { margin-bottom: 0; }

.payment-layout { display: grid; grid-template-columns: minmax(340px, 600px) minmax(280px, 380px); align-items: start; gap: 22px; }
.transfer-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.transfer-card h2 { margin: 0 0 20px; }
.transfer-card dl { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; font-family: Arial, sans-serif; }
.transfer-card dt { color: var(--muted); font-size: .72rem; font-weight: bold; text-transform: uppercase; }
.transfer-card dd { margin: 0 0 9px; color: var(--ink); font-size: .95rem; word-break: break-word; }
.decision-option { display: flex; align-items: center; margin: 12px 0; padding: 13px; color: var(--ink); background: #f7faf9; border: 1px solid var(--line); border-radius: 5px; font-family: Arial, sans-serif; min-height: 42px; }
.decision-option input { width: auto; min-height: auto; margin: 0 8px 0 0; }
.form-row { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { display: block; color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; font-weight: bold; margin-bottom: 7px; }
.form-group select { width: 100%; min-height: 42px; margin: 0; padding: 0 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #cbd7d8; border-radius: 4px; font-family: Arial, sans-serif; }
.form-group.checkbox-group { padding-top: 22px; }
.form-group.checkbox-group .checkbox-label { display: flex; align-items: center; margin: 0; padding: 0 12px; min-height: 42px; color: var(--ink); background: #fbfcfc; border: 1px solid #cbd7d8; border-radius: 4px; }
.checkbox-label { color: var(--ink); font-family: Arial, sans-serif; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.checkbox-label input { width: 18px; height: 18px; min-height: 0; margin: 0 8px 0 0; cursor: pointer; }
.permission-list { display: flex; flex-direction: column; gap: 4px; }
.permission-list label { display: flex; align-items: center; padding: 10px 12px; color: var(--ink); font-family: Arial, sans-serif; font-size: .88rem; border-radius: 4px; cursor: pointer; }
.permission-list label:hover { background: #f7faf9; }
.permission-list input[type="checkbox"] { width: 18px; height: 18px; margin: 0 12px 0 0; flex-shrink: 0; cursor: pointer; }
.inline-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inline-status-form select { min-height: 32px; max-width: 125px; padding: 0 6px; border: 1px solid #cbd7d8; border-radius: 4px; font-family: Arial, sans-serif; font-size: .74rem; }
.page-shell.ventas-page { width: min(1600px, calc(100% - 40px)); }
.ventas-table { max-height: 70vh; overflow: auto; scrollbar-color: var(--muted) var(--canvas); }
.ventas-table table { min-width: 1450px; }
.ventas-table th, .ventas-table td { padding: 14px 10px; }
.ventas-table th { position: sticky; top: 0; z-index: 1; }
.ventas-table td:nth-child(2), .ventas-table td:nth-child(3), .ventas-table td:nth-child(6), .ventas-table td:nth-child(9), .ventas-table td:nth-child(10) { white-space: nowrap; }
.ventas-table td:nth-child(7) { min-width: 125px; overflow-wrap: anywhere; }
.ventas-table td:nth-child(13), .ventas-table td:nth-child(14) { min-width: 135px; }
.ventas-table .inline-status-form { flex-direction: column; align-items: flex-start; }
.ventas-table:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.danger-status { color: var(--red); background: var(--red-soft); }
@media (max-width: 700px) {
    .nav-shell, .page-shell { width: min(100% - 28px, 1180px); }
    .page-shell.ventas-page { width: calc(100% - 28px); }
    .nav-shell { display: block; padding: 16px 0 0; }
    .main-nav { overflow-x: auto; height: 52px; margin-top: 12px; }
    .main-nav a { flex: 0 0 auto; padding: 0 10px; }
    .page-shell { padding-top: 30px; }
    .logout-link { position: absolute; top: 25px; right: 14px; }
    .auth-layout { grid-template-columns: 1fr; gap: 28px; min-height: calc(100vh - 130px); }
    .auth-copy h1 { font-size: 2.8rem; }
    .auth-form { padding: 22px; }
    .payment-layout { grid-template-columns: 1fr; }
    .page-heading, .toolbar { align-items: flex-start; flex-direction: column; }
    .grid { grid-template-columns: 1fr; }
    .form { padding: 20px; }
    .filter-form { align-items: stretch; flex-direction: column; }
    .filter-form input { width: 100%; }
    .filter-form select { width: 100%; min-height: 42px; margin-top: 6px; }
    .search-form { align-items: stretch; flex-direction: column; }
    .search-form input, .search-form button { width: 100%; }
    .inline-status-form { align-items: stretch; flex-direction: column; }
    .inline-status-form select, .inline-status-form .btn { width: 100%; max-width: none; }
}

.quick-filters { margin: 0 0 20px; }
.quick-filters summary { cursor: pointer; width: fit-content; }
.filter-panel { margin-top: 12px; padding: 18px; border: 1px solid #cbd7d8; border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.filter-panel label { display: block; margin-bottom: 6px; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #cbd7d8; border-radius: 4px; box-sizing: border-box; }
.filter-panel .actions { grid-column: 1 / -1; }
.pagination { margin-top: 20px; align-items: center; }
/* Keep the complete navigation within tablet and small laptop widths. */
@media (max-width: 1150px) {
    .nav-shell { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0 0; min-width: 0; }
    .brand { flex-shrink: 0; }
    .logout-link { position: static; margin-left: auto; }
    .main-nav { order: 3; flex: 0 0 100%; min-width: 0; display: flex; flex-wrap: wrap; height: auto; margin-top: 0; overflow: visible; gap: 4px; padding-bottom: 8px; }
    .main-nav a { flex: 0 1 auto; height: auto; min-height: 44px; padding: 10px 12px; }
}
/* Products become labelled cards before the action column gets cramped. */
@media (max-width: 900px) {
    .product-table { border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .product-table table { display: block; min-width: 0; }
    .product-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .product-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .product-table tbody tr { display: flex; flex-direction: column; min-width: 0; padding: 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
    .product-table td { display: block; padding: 12px 0; overflow-wrap: anywhere; }
    .product-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: bold; }
    .product-table td.product-actions-cell { margin-top: auto; border-bottom: 0; }
    .product-table .product-row-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-table .btn { min-height: 44px; white-space: normal; text-align: center; }
    .product-table .product-reactivate-button { width: 100%; }
    .product-table td.empty { border: 0; }
    .product-table tbody tr:has(.empty) { grid-column: 1 / -1; }
    .pagination { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 600px) {
    .product-table tbody { grid-template-columns: minmax(0, 1fr); }
    .product-table tbody tr { padding: 8px 18px; }
}
.pedido-seleccion { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.pedido-seleccion input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.seleccion-pdf-ayuda { margin: 0; padding: 12px 10px; }
#limpiar-seleccion-pdf[hidden] { display: none; }
.pedido-comentario { margin-top: 6px; }
.pedido-comentario summary { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-weight: bold; cursor: pointer; list-style: none; }
.pedido-comentario summary::-webkit-details-marker { display: none; }
.pedido-comentario summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.pedido-comentario-texto { position: fixed; z-index: 100; width: min(300px, calc(100vw - 24px)); max-height: min(240px, calc(100vh - 24px)); overflow-y: auto; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 6px 24px rgba(23, 33, 43, .2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.grupo-selector { width: min(100%, 360px); margin: 7px 0 24px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.grupo-selector summary { cursor: pointer; font-size: .88rem; }
#grupo-opciones { margin: 12px 0; max-height: 260px; overflow-y: auto; }
.grupo-opcion { display: flex; gap: 6px; align-items: center; }
.grupo-elegir { flex: 1; justify-content: flex-start; gap: 9px; color: var(--ink); background: transparent; text-align: left; font-weight: normal; padding: 8px; }
.grupo-elegir:hover, .grupo-elegir[aria-pressed="true"] { background: var(--teal-soft); }
.grupo-punto { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.grupo-editar { background: transparent; color: var(--teal); min-height: 32px; padding: 6px; font-size: .75rem; }
.grupo-editar:hover { color: white; }
.grupo-eliminar { color: var(--red); }
.grupo-eliminar:hover { background: var(--red); }
#grupo-editor { margin-top: 16px; }

.venta-producto-desplegable { margin: 7px 0 18px; border: 1px solid #cbd7d8; border-radius: 4px; background: #fbfcfc; }
.venta-producto-desplegable summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; cursor: pointer; list-style: none; font-size: .88rem; }
.venta-producto-desplegable summary::-webkit-details-marker { display: none; }
.venta-producto-desplegable summary::after { content: "\25BE"; margin-left: 12px; }
.venta-producto-opciones { max-height: 210px; overflow-y: auto; border-top: 1px solid var(--line); }
.venta-producto-opcion { display: block; width: 100%; height: 42px; min-height: 42px; padding: 0 12px; border-radius: 0; text-align: left; color: var(--ink); background: transparent; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venta-producto-opcion:hover, .venta-producto-opcion[aria-pressed="true"] { background: var(--teal-soft); }
.venta-producto-opcion:disabled { color: var(--muted); cursor: not-allowed; }
.venta-producto-opcion:disabled:hover { background: transparent; }
