/* =====================================================================================================================
   SoftPoint web · aspecto de la APP DE ESCRITORIO (SoftPoint Frutería VB.NET + WebView2)
   - Se carga DESPUÉS de styles.css. Todo lo que trae styles.css sigue funcionando; aquí se cambian los colores, el menú,
     el acceso, el punto de venta y el panel de opciones para que se vean como en escritorio.
   - Tema oscuro por omisión (igual que escritorio) y tema claro opcional: [data-bs-theme="dark" | "light"] en <html>.
   - Prefijos: d-*  = menú principal (copiado de escritorio, ui/css/oscuro.css sección 5)
               acc-* = pantalla de acceso      e-* = componentes de escritorio (no chocan con Bootstrap)
   ===================================================================================================================== */

:root { --c1: #667eea; --c2: #764ba2; --e-ease: cubic-bezier(.22, .8, .24, 1); }

/* ============================================ 1) Colores (tokens) ============================================ */
[data-bs-theme="dark"] {
	--e-bg: #080b14;
	--e-surface: rgba(14, 19, 32, .62);
	--e-surface-solid: #111829;
	--e-surface-2: rgba(255, 255, 255, .05);
	--e-line: rgba(255, 255, 255, .09);
	--e-line-strong: rgba(255, 255, 255, .18);
	--e-text: #f1f4fb; --e-text-2: #a8b3c9; --e-text-3: #7f8ba3;
	--e-accent: #667eea; --e-accent-press: #5468d4; --e-accent-soft: rgba(102, 126, 234, .18); --e-accent-text: #a5b4fc;
	--e-green: #34d399; --e-green-soft: rgba(52, 211, 153, .16);
	--e-red: #ff6b81; --e-red-soft: rgba(255, 107, 129, .16);
	--e-orange: #fbbf24; --e-orange-soft: rgba(251, 191, 36, .14);
	--e-glass: rgba(16, 22, 38, .90);
	--e-shadow: 0 10px 26px rgba(0, 0, 0, .30);
	--e-shadow-2: 0 30px 80px rgba(0, 0, 0, .6);
	--e-graf: #7c8cf8; --e-graf2: #38bdf8; --e-graf3: #a5b4fc;

	/* tokens de styles.css (las pantallas existentes) con la paleta de escritorio */
	--sp-bg: #0b1020; --sp-elev: #111829; --sp-ink: #f1f4fb; --sp-fill: rgba(255, 255, 255, .06);
	--sp-hair: rgba(255, 255, 255, .09); --sp-line: rgba(255, 255, 255, .16);
	--sp-field-bg: rgba(255, 255, 255, .06); --sp-field-line: rgba(255, 255, 255, .22);
	--sp-blue: #a5b4fc; --sp-blue-tint: rgba(102, 126, 234, .18);
	--sp-accent: #667eea; --sp-accent-hover: #5f75e6; --sp-accent-press: #5468d4; --sp-on-accent: #ffffff;
	--sp-focus: #a5b4fc; --sp-ring: 0 0 0 4px rgba(102, 126, 234, .30);
	--sp-nav-bg: rgba(14, 19, 32, .72); --sp-menu-bg: rgba(16, 22, 38, .97);
	--sp-stripe: rgba(255, 255, 255, .025); --sp-row-hover: rgba(255, 255, 255, .05);
	--sp-glass-bg: rgba(16, 22, 38, .84); --sp-glass-solid: #111829; --sp-glass-ink: #f1f4fb;
	--bs-body-bg: #080b14; --bs-body-color: #f1f4fb; --bs-border-color: rgba(255, 255, 255, .12);
	--bs-secondary-bg: #111829; --bs-tertiary-bg: #0e1424;
}
[data-bs-theme="light"] {
	--e-bg: #eef2f7;
	--e-surface: rgba(255, 255, 255, .78);
	--e-surface-solid: #ffffff;
	--e-surface-2: rgba(16, 24, 40, .04);
	--e-line: rgba(16, 24, 40, .09);
	--e-line-strong: rgba(16, 24, 40, .18);
	--e-text: #1c2733; --e-text-2: #4f5b6b; --e-text-3: #6b7684;
	--e-accent: #5466d6; --e-accent-press: #4556c4; --e-accent-soft: rgba(84, 102, 214, .12); --e-accent-text: #3d4fbf;
	--e-green: #1d7a35; --e-green-soft: rgba(36, 138, 61, .12);
	--e-red: #c8001a; --e-red-soft: rgba(215, 0, 21, .09);
	--e-orange: #8a5300; --e-orange-soft: rgba(199, 119, 0, .14);
	--e-glass: rgba(255, 255, 255, .86);
	--e-shadow: 0 8px 24px rgba(28, 45, 70, .10);
	--e-shadow-2: 0 30px 80px rgba(28, 45, 70, .22);
	--e-graf: #5466d6; --e-graf2: #0b8fc4; --e-graf3: #8b97e8;
	--sp-accent: #5466d6; --sp-accent-hover: #4d5fd0; --sp-accent-press: #4556c4; --sp-blue: #3d4fbf;
	--sp-ring: 0 0 0 4px rgba(84, 102, 214, .28); --sp-focus: #4556c4;
}

/* Fondo de la aplicación: degradado suave del color del módulo, como escritorio (solo color, sin imágenes) */
body {
	background:
		radial-gradient(58% 62% at 12% 8%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 64%),
		radial-gradient(62% 66% at 92% 90%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 66%),
		var(--e-bg);
	background-attachment: fixed;
	color: var(--e-text);
	min-height: 100vh;
}
[data-bs-theme="light"] body {
	background:
		radial-gradient(58% 62% at 12% 8%, color-mix(in srgb, var(--c1) 12%, transparent), transparent 64%),
		radial-gradient(62% 66% at 92% 90%, color-mix(in srgb, var(--c2) 10%, transparent), transparent 66%),
		var(--e-bg);
}
[data-sp-transp="reducida"] body { background: var(--e-bg); }

/* ============================================ 2) Estructura: botón «Menú» + pantalla ============================================ */
#barra, #footer { display: none !important; }          /* la barra superior anterior ya no se usa */
body.en-app #contenido { padding: 22px 28px 28px 84px; min-height: 100vh; outline: none; }
body.en-acceso #contenido { padding: 0; }
.e-menubtn {
	position: fixed; left: 16px; top: 18px; z-index: 1040; height: 44px; min-width: 44px; padding: 0 12px;
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 600; font-size: 13px;
	color: var(--e-text); background: var(--e-glass); box-shadow: inset 0 0 0 1px var(--e-line-strong), var(--e-shadow);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .2s var(--e-ease), background .2s;
}
.e-menubtn:hover { background: color-mix(in srgb, var(--c1) 22%, var(--e-glass)); }
.e-menubtn:active { transform: scale(.94); }
.e-menubtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.e-menubtn span { display: none; }
@media (min-width: 1200px) { .e-menubtn span { display: inline; } body.en-app #contenido { padding-left: 128px; } }
body:not(.en-app) .e-menubtn, body.en-menu .e-menubtn { display: none; }

/* Título de cada pantalla con el icono del módulo (como escritorio) */
.e-tile { --tc: #667eea; flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; vertical-align: middle;
	background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--tc) 40%, transparent); }
.e-tile svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.e-tile.sm { width: 32px; height: 32px; border-radius: 10px; } .e-tile.sm svg { width: 18px; height: 18px; }
#contenido h1.e-con-tile { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 2.4vw, 32px) !important; font-weight: 700 !important; letter-spacing: -.02em; margin: 2px 0 10px; }
#contenido h1.e-con-tile > i.bi:first-of-type { display: none; }
#contenido hr.display-4 { border-color: var(--e-line); opacity: 1; margin: 6px 0 18px; }
.e-migas { font-size: 12.5px; color: var(--e-text-3); margin: 0 0 6px 2px; }
.e-migas b { color: var(--e-text-2); font-weight: 600; }

/* ============================================ 3) Pantallas existentes con el material de escritorio ============================================ */
[data-bs-theme="dark"] .card, [data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .list-group-item {
	background: rgba(14, 19, 32, .78); border-color: var(--e-line); color: var(--e-text);
}
[data-bs-theme="dark"] .card { box-shadow: var(--e-shadow); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }
[data-bs-theme="dark"] .modal-content { background: rgba(16, 22, 38, .97); box-shadow: var(--e-shadow-2); }
[data-bs-theme="dark"] .modal-backdrop { --bs-backdrop-bg: #04060c; --bs-backdrop-opacity: .62; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] .input-group-text {
	background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--e-text);
}
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { background-color: rgba(255, 255, 255, .09); border-color: var(--e-accent); box-shadow: 0 0 0 4px rgba(102, 126, 234, .25); }
[data-bs-theme="dark"] .form-control::placeholder { color: var(--e-text-3); }
[data-bs-theme="dark"] .form-select option { background: #121a2e; color: #f1f4fb; }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--e-text); --bs-table-border-color: var(--e-line); --bs-table-striped-bg: rgba(255, 255, 255, .025); --bs-table-hover-bg: rgba(255, 255, 255, .05); }
[data-bs-theme="dark"] .table > thead th, [data-bs-theme="dark"] table.dataTable thead th { background: rgba(18, 25, 42, .97); color: var(--e-text-3); text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; border-bottom-color: var(--e-line); }
[data-bs-theme="dark"] .table-dark { --bs-table-bg: rgba(18, 25, 42, .97); --bs-table-color: var(--e-text-3); }
.table-responsive, .dataTables_wrapper { border-radius: 16px; }
[data-bs-theme="dark"] .dropdown-menu { background: rgba(16, 22, 38, .97); border-color: rgba(255, 255, 255, .12); box-shadow: var(--e-shadow-2); }
[data-bs-theme="dark"] .alert-info { background: var(--e-accent-soft); color: var(--e-accent-text); border-color: transparent; }
[data-bs-theme="dark"] .alert-danger { background: var(--e-red-soft); color: var(--e-red); border-color: transparent; }
[data-bs-theme="dark"] .alert-success { background: var(--e-green-soft); color: var(--e-green); border-color: transparent; }
[data-bs-theme="dark"] .alert-warning { background: var(--e-orange-soft); color: var(--e-orange); border-color: transparent; }
[data-bs-theme="dark"] .text-info { color: #7dd3fc !important; }
[data-bs-theme="dark"] .httitle { color: var(--e-text); }
[data-bs-theme="dark"] .btn-secondary { --bs-btn-bg: rgba(255, 255, 255, .09); --bs-btn-border-color: rgba(255, 255, 255, .14); --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-border-color: rgba(255, 255, 255, .2); --bs-btn-color: var(--e-text); --bs-btn-hover-color: #fff; }
[data-bs-theme="dark"] .btn-dark { --bs-btn-bg: rgba(255, 255, 255, .09); --bs-btn-border-color: rgba(255, 255, 255, .14); --bs-btn-hover-bg: rgba(255, 255, 255, .16); }
[data-bs-theme="dark"] .btn-info, [data-bs-theme="dark"] .btn-primary { --bs-btn-bg: #667eea; --bs-btn-border-color: #667eea; --bs-btn-hover-bg: #5f75e6; --bs-btn-hover-border-color: #5f75e6; --bs-btn-active-bg: #5468d4; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn { border-radius: 12px; }
.btn .bi::before, .btn .bi { vertical-align: -.15em; }
[data-bs-theme="dark"] kbd { background: rgba(255, 255, 255, .1); color: var(--e-text-2); }
[data-bs-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }

/* ============================================ 4) Menú principal (mosaicos y tarjetas) — portado de escritorio ============================================ */
#dash { --d-muted: #9aa6bd; --d-ease: cubic-bezier(.22, .8, .24, 1); --d-r: 20px;
	position: fixed; inset: 0; z-index: 1030; display: none; color: #f4f6fb; background: #080b14; overflow: hidden;
	font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif; user-select: none; -webkit-user-select: none; }
#dash [hidden] { display: none !important; }
#dash *, #dash *::before, #dash *::after { box-sizing: border-box; }
#dash h1, #dash h2, #dash h3, #dash p { margin: 0; }
:where(#dash) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; margin: 0; }
:where(#dash) input { font: inherit; color: inherit; }
#dash button:focus:not(:focus-visible) { outline: none; }
#dash button:focus-visible, #dash input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.en-menu #dash { display: block; }
body.en-menu #contenido { display: none; }

.d-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #080b14; }
.d-bg-layer { position: absolute; inset: -4%; opacity: 0; transition: opacity .9s var(--d-ease); will-change: opacity, transform; }
.d-bg-layer.on { opacity: 1; animation: d-drift 32s ease-in-out infinite alternate; }
@keyframes d-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.6%, -1.1%, 0); } }
.d-bg-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(120% 90% at 50% 40%, transparent 38%, rgba(3, 5, 10, .7) 100%),
	url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><circle cx='2' cy='2' r='1' fill='white' fill-opacity='.10'/></svg>"); }

.d-app { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(200px, 21%) 1fr; gap: 22px; padding: 22px; }
.d-glass { background: rgba(14, 19, 32, .56); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, .09); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.d-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 30px 28px; min-height: 0; overflow: auto; }
.d-brand { display: flex; align-items: center; gap: 14px; }
.d-logo { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--c1) 55%, transparent); transition: background .6s, box-shadow .6s; }
.d-logo svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-brand h1 { font-size: clamp(20px, 2.1vw, 30px); font-weight: 300; letter-spacing: .3px; line-height: 1.1; color: inherit; }
.d-brand h1 span { font-weight: 700; color: color-mix(in srgb, var(--c1) 55%, #fff); transition: color .6s; }
.d-brand p { margin-top: 6px !important; font-size: 13px; line-height: 1.45; color: var(--d-muted); max-width: 30ch; }
.d-ctx { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.d-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); }
.d-chip b { font-weight: 600; }
.d-chip i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.d-bottom { display: flex; flex-direction: column; gap: 16px; }
.d-clock .d-time { font-size: clamp(34px, 4vw, 52px); font-weight: 200; letter-spacing: 1px; line-height: 1; }
.d-clock .d-date { margin-top: 6px; font-size: 13px; color: var(--d-muted); }
.d-back { display: none; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; font-weight: 700; letter-spacing: .4px; color: #fff;
	background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 8px 24px rgba(255, 65, 108, .4); transition: transform .2s var(--d-ease), box-shadow .2s; }
.d-back.visible { display: flex; animation: d-pop .45s var(--d-ease) backwards; }
.d-back svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-back:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 65, 108, .55); }
.d-back:active { transform: scale(.97); }
.d-hint { font-size: 11.5px; line-height: 1.6; color: rgba(154, 166, 189, .8); }
.d-hint kbd, .d-tema kbd { font: inherit; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); color: inherit; }
@keyframes d-pop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }

.d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 16px; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 4px; }
.d-crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--d-muted); }
.d-crumbs button { color: inherit; padding: 6px 10px; margin: -6px -10px; border-radius: 10px; transition: color .2s, background .2s; }
.d-crumbs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.d-crumbs .sep { opacity: .4; }
.d-crumbs .now { color: #fff; font-weight: 600; }
.d-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; position: relative; }
.d-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; width: min(320px, 45%); border-radius: 14px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, background .2s; user-select: text; -webkit-user-select: text; }
.d-search:focus-within { border-color: color-mix(in srgb, var(--c1) 70%, #fff); background: rgba(255, 255, 255, .12); }
.d-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--d-muted); stroke-width: 2; stroke-linecap: round; }
.d-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; }
.d-search input::placeholder { color: var(--d-muted); }
.d-iconbtn { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12) !important;
	transition: transform .2s var(--d-ease), background .2s; }
.d-iconbtn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.d-iconbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-logout { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; color: #ffd6de;
	background: rgba(255, 65, 108, .16); border: 1px solid rgba(255, 110, 140, .45) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: transform .2s var(--d-ease), background .2s, box-shadow .2s, color .2s; }
.d-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-logout:hover { color: #fff; transform: translateY(-2px); background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 10px 26px rgba(255, 65, 108, .45); }
.d-logout:active { transform: scale(.97); }
/* panel de apariencia (tema) */
.d-tema { position: absolute; right: 0; top: 54px; z-index: 5; width: 270px; padding: 10px; border-radius: 18px; background: rgba(16, 22, 38, .96); border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: none; flex-direction: column; gap: 4px; }
.d-tema.show { display: flex; animation: d-pop .3s var(--d-ease); }
.d-tema h4 { margin: 4px 8px 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted); font-weight: 600; }
.d-tema button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left; }
.d-tema button:hover, .d-tema button[aria-checked="true"] { background: rgba(255, 255, 255, .09); }
.d-tema button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-tema button .ok { margin-left: auto; opacity: 0; }
.d-tema button[aria-checked="true"] .ok { opacity: 1; }
.d-tema label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 4px; cursor: pointer; }
.d-tema input { accent-color: #667eea; width: 17px; height: 17px; }

.d-stage { position: relative; flex: 1; min-height: 0; }
.d-view { position: absolute; inset: 0; overflow: auto; padding: 16px 28px 44px; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.985);
	transition: opacity .45s var(--d-ease), transform .55s var(--d-ease), visibility 0s .45s; }
.d-view.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.d-home { display: grid; gap: 14px; min-height: 100%; grid-template-columns: minmax(0, 2.2fr) repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, 1fr); grid-auto-flow: dense; }
/* Ventas destaca en vertical (columna izquierda, 2 filas de alto); los otros 5 se acomodan en 3 columnas y el último ocupa 2 */
.d-tile[data-id="VENTAS"] { grid-column: 1; grid-row: 1 / span 2; padding: 26px 24px; }
.d-tile[data-id="VENTAS"] .ico { width: 68px; height: 68px; border-radius: 20px; top: 24px; left: 24px; }
.d-tile[data-id="VENTAS"] .ico svg { width: 34px; height: 34px; }
.d-tile[data-id="VENTAS"] .t { font-size: clamp(26px, 2.6vw, 38px); }
.d-tile[data-id="VENTAS"] .s { font-size: 14.5px; }
.d-tile { grid-column: span 2; }
.d-tile[data-id="VENTAS"] { grid-column: 1; }
.d-tile:nth-child(5):nth-last-child(2), .d-tile:nth-child(6):last-child { grid-column: span 3; }
.d-tile { position: relative; isolation: isolate; overflow: hidden; text-align: left; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 16px 18px;
	border-radius: var(--d-r); border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
	transition: transform .4s var(--d-ease), box-shadow .4s var(--d-ease), border-color .3s; animation: d-rise .6s var(--d-ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.d-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(4, 7, 14, .68)); }
.d-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .30), transparent 62%); }
.d-tile:hover, .d-tile:focus-visible { transform: translateY(-6px); border-color: rgba(255, 255, 255, .4) !important; box-shadow: 0 16px 30px color-mix(in srgb, var(--c1) 50%, transparent); }
.d-tile:hover::after { opacity: 1; }
.d-tile:active { transform: translateY(-1px) scale(.985); }
.d-tile .ico { position: absolute; top: 16px; left: 18px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--d-ease); }
.d-tile:hover .ico { transform: scale(1.08) rotate(-4deg); }
.d-tile .ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-tile .key { position: absolute; top: 16px; right: 16px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .2); }
.d-tile .t { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.d-tile .s { font-size: 12px; opacity: .88; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@keyframes d-rise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }

.d-subhead { display: flex; align-items: center; gap: 16px; margin: 2px 2px 22px; }
.d-badge { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--c1) 55%, transparent); }
.d-badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-subhead h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: .3px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); color: inherit; }
.d-subhead p { margin-top: 2px !important; font-size: 13px; color: var(--d-muted); }
.d-subgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(clamp(190px, 18vw, 240px), 1fr)); }
.d-card { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px; min-height: 142px; padding: 18px; border-radius: 18px; color: #e9eef8;
	background: rgba(14, 19, 32, .58) !important; -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); border: 1px solid rgba(255, 255, 255, .1) !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
	transition: transform .35s var(--d-ease), border-color .25s, box-shadow .35s var(--d-ease), background .25s; animation: d-rise .55s var(--d-ease) backwards; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.d-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 26%, transparent), transparent 70%); }
.d-card .ci { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 24%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 50%, transparent); transition: transform .35s var(--d-ease); }
.d-card .ci svg { width: 25px; height: 25px; fill: none; stroke: color-mix(in srgb, var(--c1) 35%, #fff); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-card .ct { position: relative; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.d-card .go { position: absolute; right: 16px; top: 18px; width: 22px; height: 22px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--d-ease); }
.d-card .go svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-card:hover, .d-card:focus-visible { transform: translateY(-5px); background: rgba(18, 25, 42, .74) !important; border-color: color-mix(in srgb, var(--c1) 70%, #fff) !important; box-shadow: 0 14px 28px color-mix(in srgb, var(--c1) 38%, transparent); }
.d-card:hover::before { opacity: 1; }
.d-card:hover .ci { transform: scale(1.08) rotate(-4deg); }
.d-card:hover .go, .d-card:focus-visible .go { opacity: 1; transform: none; }
.d-card:active { transform: translateY(-1px) scale(.975); }
.d-vacio { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 260px; color: var(--d-muted); font-size: 14px; text-align: center; }
.d-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #fff; animation: d-spin .9s linear infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }

.d-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 12, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.d-modal.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.d-dlg { width: min(420px, 100%); padding: 28px; text-align: center; background: rgba(16, 22, 38, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.96); transition: transform .35s var(--d-ease); }
.d-modal.show .d-dlg { transform: none; }
.d-di { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 12px 30px rgba(255, 65, 108, .45); }
.d-di svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.d-dlg h3 { font-size: 21px; font-weight: 700; color: inherit; }
.d-dlg p { margin: 8px 0 22px !important; font-size: 14px; line-height: 1.5; color: var(--d-muted); }
.d-bt { display: flex; gap: 12px; }
.d-bt button { flex: 1; height: 48px; border-radius: 14px; font-weight: 700; transition: transform .2s var(--d-ease), filter .2s; }
.d-bt button:hover { transform: translateY(-2px); }
.d-no { background: rgba(255, 255, 255, .09) !important; border: 1px solid rgba(255, 255, 255, .14) !important; }
.d-si { background: linear-gradient(135deg, #ff416c, #ff4b2b) !important; box-shadow: 0 8px 22px rgba(255, 65, 108, .4); color: #fff; }

@media (max-width: 820px) {
	.d-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 12px; gap: 12px; }
	.d-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 12px; overflow: visible; }
	.d-brand p, .d-hint, .d-clock .d-date { display: none; }
	.d-logo { width: 42px; height: 42px; border-radius: 13px; }
	.d-ctx { margin-top: 0; }
	.d-bottom { flex-direction: row; align-items: center; margin-left: auto; gap: 12px; }
	.d-clock .d-time { font-size: 26px; }
	.d-back { height: 42px; padding: 0 16px; }
	.d-logout { padding: 0 13px; } .d-logout span { display: none; }
	.d-home { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
	.d-tile, .d-tile:nth-child(5):nth-last-child(2) { grid-column: span 1; }
	.d-tile[data-id="VENTAS"], .d-tile:nth-child(6):last-child { grid-column: span 2; }
	.d-tile[data-id="VENTAS"] { grid-row: span 1; min-height: 180px; }
	.d-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.d-card { min-height: 124px; padding: 14px; }
	.d-tile { padding: 16px; }
	.d-view { padding: 12px 12px 32px; }
	.d-tile .ico { width: 46px; height: 46px; top: 14px; left: 16px; }
	.d-tile .key { display: none; }
	body.en-app #contenido { padding: 74px 12px 20px; }
	.e-menubtn { top: 12px; left: 12px; }
}
@media (max-width: 420px) { .d-home, .d-subgrid { grid-template-columns: 1fr; } .d-tile, .d-tile[data-id="VENTAS"], .d-tile:nth-child(5):nth-last-child(2), .d-tile:nth-child(6):last-child { grid-column: span 1; } }

/* Menú en tema CLARO (escritorio es solo oscuro; esta variante conserva la estructura con colores claros) */
[data-bs-theme="light"] #dash { color: #1c2733; background: #eef2f7; --d-muted: #5b6675; }
[data-bs-theme="light"] .d-bg { background: #eef2f7; }
[data-bs-theme="light"] .d-bg-layer.on { opacity: .55; }
[data-bs-theme="light"] .d-bg-pattern { opacity: .35; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(255, 255, 255, .6) 100%); }
[data-bs-theme="light"] .d-glass { background: rgba(255, 255, 255, .72); border-color: rgba(16, 24, 40, .08); box-shadow: 0 24px 60px rgba(28, 45, 70, .14), inset 0 1px 0 #fff; }
[data-bs-theme="light"] .d-brand h1 span { color: color-mix(in srgb, var(--c1) 80%, #000); }
[data-bs-theme="light"] .d-chip { background: rgba(16, 24, 40, .05); border-color: rgba(16, 24, 40, .08); }
[data-bs-theme="light"] .d-hint { color: #5b6675; }
[data-bs-theme="light"] .d-hint kbd, [data-bs-theme="light"] .d-tema kbd { background: rgba(16, 24, 40, .06); border-color: rgba(16, 24, 40, .12); }
[data-bs-theme="light"] .d-crumbs button:hover { color: #1c2733; background: rgba(16, 24, 40, .06); }
[data-bs-theme="light"] .d-crumbs .now { color: #1c2733; }
[data-bs-theme="light"] .d-search, [data-bs-theme="light"] .d-iconbtn { background: rgba(255, 255, 255, .8); border-color: rgba(16, 24, 40, .12) !important; }
[data-bs-theme="light"] .d-iconbtn:hover { background: #fff; }
[data-bs-theme="light"] .d-logout { color: #b4123a; background: rgba(255, 65, 108, .10); }
[data-bs-theme="light"] .d-logout:hover { color: #fff; }
[data-bs-theme="light"] .d-subhead h2 { text-shadow: none; }
[data-bs-theme="light"] .d-card { color: #1c2733; background: rgba(255, 255, 255, .78) !important; border-color: rgba(16, 24, 40, .08) !important; box-shadow: 0 10px 26px rgba(28, 45, 70, .10); }
[data-bs-theme="light"] .d-card:hover, [data-bs-theme="light"] .d-card:focus-visible { background: #fff !important; }
[data-bs-theme="light"] .d-card .ci svg { stroke: color-mix(in srgb, var(--c1) 85%, #000); }
[data-bs-theme="light"] .d-card .go svg { stroke: #1c2733; }
[data-bs-theme="light"] .d-tema { background: rgba(255, 255, 255, .97); border-color: rgba(16, 24, 40, .1); box-shadow: 0 24px 60px rgba(28, 45, 70, .2); }
[data-bs-theme="light"] .d-tema button:hover, [data-bs-theme="light"] .d-tema button[aria-checked="true"] { background: rgba(16, 24, 40, .06); }
[data-bs-theme="light"] .d-tema label { border-top-color: rgba(16, 24, 40, .08); }
[data-bs-theme="light"] .d-dlg { background: rgba(255, 255, 255, .98); border-color: rgba(16, 24, 40, .1); box-shadow: 0 30px 80px rgba(28, 45, 70, .25); }
[data-bs-theme="light"] .d-no { background: rgba(16, 24, 40, .06) !important; border-color: rgba(16, 24, 40, .12) !important; }
[data-bs-theme="light"] .d-spin { border-color: rgba(16, 24, 40, .12); border-top-color: #5466d6; }
[data-bs-theme="light"] #dash button:focus-visible, [data-bs-theme="light"] #dash input:focus-visible { outline-color: #4556c4; }

@media (prefers-reduced-motion: reduce) {
	#dash *, #dash *::before, #dash *::after, .e-opc, .acc-marca > *, .acc-vidrio { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
	.d-bg-layer.on { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.d-glass { background: rgba(14, 19, 32, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.d-card { background: rgba(18, 25, 42, .94) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
[data-sp-transp="reducida"] .d-glass, [data-sp-transp="reducida"] .acc-vidrio, [data-sp-transp="reducida"] .e-glass-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-sp-transp="reducida"][data-bs-theme="dark"] .d-glass, [data-sp-transp="reducida"][data-bs-theme="dark"] .acc-vidrio, [data-sp-transp="reducida"][data-bs-theme="dark"] .e-glass-menu { background: #111829; }
[data-sp-transp="reducida"][data-bs-theme="light"] .d-glass, [data-sp-transp="reducida"][data-bs-theme="light"] .acc-vidrio, [data-sp-transp="reducida"][data-bs-theme="light"] .e-glass-menu { background: #fff; }

/* ============================================ 5) Pantalla de acceso ============================================ */
.acceso { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 40px 16px 28px; isolation: isolate; color: var(--e-text); }
.acc-fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.acc-fondo i { position: absolute; border-radius: 50%; display: block; filter: blur(46px); }
.acc-fondo .f1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; background: rgba(102, 126, 234, .30); }
.acc-fondo .f2 { width: 34vmax; height: 34vmax; right: -8vmax; top: 18vh; background: rgba(118, 75, 162, .26); }
.acc-fondo .f3 { width: 30vmax; height: 30vmax; left: 22vw; bottom: -18vmax; background: rgba(0, 180, 219, .18); }
.acc-fondo .f4 { width: 15vmax; height: 15vmax; right: 24vw; top: -5vmax; background: rgba(238, 9, 121, .14); border-radius: 32%; }
[data-bs-theme="light"] .acc-fondo .f1 { background: #cfdcee; } [data-bs-theme="light"] .acc-fondo .f2 { background: #dde3ea; }
[data-bs-theme="light"] .acc-fondo .f3 { background: #c3d3e8; } [data-bs-theme="light"] .acc-fondo .f4 { background: #e4ebf4; }
@media (prefers-reduced-motion: no-preference) {
	.acc-fondo .f1 { animation: acc-flota 26s ease-in-out infinite alternate; }
	.acc-fondo .f3 { animation: acc-flota 32s ease-in-out infinite alternate-reverse; }
	.acc-fondo .f4 { animation: acc-flota 22s ease-in-out infinite alternate; }
}
@keyframes acc-flota { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }
.acc-tema { position: fixed; top: 16px; right: 16px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--e-glass); box-shadow: inset 0 0 0 1px var(--e-line); z-index: 2; }
.acc-tema button { width: 36px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--e-text-2); display: grid; place-items: center; cursor: pointer; }
.acc-tema button[aria-pressed="true"] { background: var(--e-accent-soft); color: var(--e-accent-text); }
.acc-tema svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-marca { text-align: center; display: flex; flex-direction: column; align-items: center; }
.acc-card { width: 156px; height: 156px; padding: 14px; border-radius: 32px; display: grid; place-items: center; background: var(--e-surface);
	-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--e-line-strong);
	box-shadow: var(--e-shadow-2), 0 0 70px rgba(102, 126, 234, .24), inset 0 1px 0 rgba(255, 255, 255, .08); }
.acc-logo-ic { width: 100%; height: 100%; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 10px 26px rgba(102, 126, 234, .45); }
.acc-logo-ic svg { width: 60px; height: 60px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-sp { margin-top: 26px; font-size: 34px; font-weight: 300; letter-spacing: .5px; }
.acc-sp b { font-weight: 700; color: color-mix(in srgb, #667eea 60%, #fff); }
[data-bs-theme="light"] .acc-sp b { color: #4556c4; }
.acc-emp { font-size: 16px; font-weight: 600; margin-top: 2px; color: var(--e-text-2); }
.acc-hora { font-size: 14px; color: var(--e-text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.acc-marca > * { animation: acc-in .6s var(--e-ease) both; }
@keyframes acc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.acc-vidrio { width: min(400px, 100%); border-radius: 30px; padding: 26px 26px 22px; background: var(--e-surface);
	-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--e-line); box-shadow: var(--e-shadow-2), inset 0 1px 0 rgba(255, 255, 255, .06);
	animation: acc-in .6s var(--e-ease) .12s both; }
.acc-vidrio.sacude { animation: acc-sacude .42s var(--e-ease); }
@keyframes acc-sacude { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.acc-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: relative; }
.acc-form h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 2px 0 2px; text-align: center; }
.acc-form .sub { text-align: center; font-size: 13.5px; color: var(--e-text-2); margin: -4px 0 6px; }
.acc-in { position: relative; }
.acc-in > svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; fill: none; stroke: var(--e-text-3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.acc-in input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--e-line-strong); background: rgba(255, 255, 255, .06); color: var(--e-text); font-size: 15px; padding: 0 44px 0 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
[data-bs-theme="light"] .acc-in input { background: rgba(255, 255, 255, .85); }
.acc-in input:focus { border-color: var(--e-accent); box-shadow: 0 0 0 4px var(--e-accent-soft); }
.acc-in input::placeholder { color: var(--e-text-3); }
.acc-in .ver { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--e-text-3); }
.acc-in .ver:hover { background: var(--e-surface-2); color: var(--e-text); }
.acc-in .ver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acc-entrar { height: 46px; border-radius: 14px; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--e-accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--e-accent) 40%, transparent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, background .2s; }
.acc-entrar:hover { background: var(--e-accent-press); }
.acc-entrar:active { transform: scale(.98); }
.acc-entrar:disabled { opacity: .55; pointer-events: none; }
.acc-entrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-link { align-self: center; border: 0; background: transparent; color: var(--e-accent-text); font: inherit; font-size: 13.5px; font-weight: 550; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.acc-link:hover { background: var(--e-surface-2); }
.acc-err { min-height: 18px; text-align: center; font-size: 13.5px; color: var(--e-red); }
.acc-ok { text-align: center; font-size: 13.5px; color: var(--e-green); }
.acc-pie { font-size: 12px; color: var(--e-text-3); }
@media (max-width: 520px) { .acc-card { width: 112px; height: 112px; padding: 10px; border-radius: 26px; } .acc-logo-ic svg { width: 44px; height: 44px; } .acc-sp { font-size: 28px; margin-top: 18px; } }

/* ============================================ 6) Punto de venta (como «Venta» de escritorio) ============================================ */
.e-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.e-head h1 { margin: 0 !important; }
.e-grow { flex: 1; }
.e-muted { color: var(--e-text-2); } .e-small { font-size: 12.5px; }
.e-btn { appearance: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	color: var(--e-accent-text); background: var(--e-surface-2); box-shadow: inset 0 0 0 1px var(--e-line-strong); transition: background .15s, transform .12s; }
.e-btn:hover { background: color-mix(in srgb, var(--e-accent) 14%, transparent); }
.e-btn:active { transform: scale(.97); }
.e-btn:disabled { opacity: .45; pointer-events: none; }
.e-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.e-btn.primary { background: var(--e-accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--e-accent) 35%, transparent); }
.e-btn.primary:hover { background: var(--e-accent-press); }
.e-btn.danger { background: var(--e-red-soft); color: var(--e-red); box-shadow: none; }
.e-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.e-btn.big { height: 54px; font-size: 17px; border-radius: 16px; }
.e-btn kbd, .e-kbd { font: inherit; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: inherit; }
[data-bs-theme="light"] .e-btn kbd, [data-bs-theme="light"] .e-kbd { background: rgba(16, 24, 40, .08); }
.e-btn.primary kbd { background: rgba(255, 255, 255, .22); color: #fff; }

.e-pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.e-pos-left, .e-pos-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.e-scan { position: relative; display: flex; gap: 8px; }
.e-scan > svg { position: absolute; left: 15px; top: 16px; width: 20px; height: 20px; fill: none; stroke: var(--e-text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 2; }
.e-scan input.form-control { height: 52px; font-size: 17px; padding-left: 46px; border-radius: 16px; }
.e-scan .e-btn { height: 52px; border-radius: 16px; }
.e-prod-actual { font-size: 13.5px; color: var(--e-text-2); padding: 0 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.e-prod-actual #descripv { font-weight: 600; color: var(--e-text); }
.e-panel { background: var(--e-surface); border: 1px solid var(--e-line); border-radius: 20px; box-shadow: var(--e-shadow); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); padding: 18px; }
.e-panel.tabla { padding: 6px 8px; min-height: 340px; overflow: auto; max-height: calc(100vh - 280px); }
.e-panel h3 { font-size: 12px; font-weight: 600; color: var(--e-text-3); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.e-total { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.e-total-in { width: 100%; border: 0; background: transparent; color: var(--e-text); padding: 0; outline: none; }
.e-pos-right .e-unidades { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; color: var(--e-text-2); font-size: 13.5px; }
.e-pos-right .e-unidades input { width: 110px; text-align: right; border: 0; background: transparent; color: var(--e-text); font-weight: 700; font-size: 16px; outline: none; }
.e-pos-right .form-control { border-radius: 12px; }
#escritos:empty { display: none; }
#escritos { font-size: 13.5px; padding: 8px 12px; border-radius: 12px; background: var(--e-accent-soft); color: var(--e-accent-text) !important; }
.e-atajos { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--e-text-3); }
@media (max-width: 1100px) { .e-pos { grid-template-columns: minmax(0, 1fr) 300px; } .e-total { font-size: 38px; } }
@media (max-width: 860px) { .e-pos { grid-template-columns: 1fr; } .e-panel.tabla { max-height: none; } }

/* ============================================ 7) Panel «Opciones» de Ventas (vidrio, como escritorio) ============================================ */
.e-glass-scrim { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 12, .55);
	-webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%); animation: e-fade .2s ease both; }
[data-bs-theme="light"] .e-glass-scrim { background: rgba(28, 39, 51, .22); }
.e-glass-scrim.out { animation: e-fade .16s ease reverse both; }
@keyframes e-fade { from { opacity: 0; } to { opacity: 1; } }
.e-glass-menu { width: min(1080px, 100%); max-height: 92vh; overflow: auto; padding: 34px; border-radius: 30px; color: var(--e-text);
	background: rgba(16, 22, 38, .84); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
	-webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); animation: d-pop .3s var(--e-ease) both; }
[data-bs-theme="light"] .e-glass-menu { background: rgba(255, 255, 255, .80); border-color: rgba(255, 255, 255, .9); box-shadow: 0 30px 80px rgba(28, 45, 70, .25), inset 0 1px 0 #fff; }
.e-glass-menu .cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.e-glass-menu .cab h2 { font-size: 26px; font-weight: 700; margin: 0; }
.e-glass-menu .cab span { margin-left: auto; font-size: 12.5px; color: var(--e-text-2); }
.e-opcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .e-opcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .e-opcs { grid-template-columns: 1fr; } }
.e-opc { display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; padding: 22px 20px; min-height: 108px; border-radius: 22px; font: inherit; color: var(--e-text);
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); transition: background .15s, transform .15s, box-shadow .15s; animation: e-opcin .35s var(--e-ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
[data-bs-theme="light"] .e-opc { background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(28, 45, 70, .06); }
@keyframes e-opcin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.e-opc:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
[data-bs-theme="light"] .e-opc:hover { background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .12); }
.e-opc:focus-visible, .e-opc:focus { outline: 2px solid var(--e-accent-text); outline-offset: 1px; background: rgba(255, 255, 255, .12); }
.e-opc .e-tile { width: 56px; height: 56px; border-radius: 16px; box-shadow: none; background: color-mix(in srgb, var(--e-accent) 22%, transparent); }
.e-opc .e-tile svg { width: 29px; height: 29px; stroke: var(--e-accent-text); }
.e-opc.peligro .e-tile { background: var(--e-red-soft); } .e-opc.peligro .e-tile svg { stroke: var(--e-red); }
.e-opc.peligro b { color: var(--e-red); }
.e-opc-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.e-opc-t b { font-weight: 600; font-size: 17px; }
.e-opc-t small { font-size: 14px; color: var(--e-text-2); }
.e-opc kbd { flex: none; font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--e-text-2); }
[data-bs-theme="light"] .e-opc kbd { background: rgba(16, 24, 40, .07); }

/* cuadro de diálogo propio (cambiar de usuario, confirmar) con el mismo vidrio */
.e-dlg { width: min(420px, 100%); }
.e-dlg .e-campos { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 4px; }
.e-dlg .e-pie { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.e-dlg .acc-err { text-align: left; }

/* ============================================ 8) Dashboard, cotizaciones y tablas de escritorio ============================================ */
.e-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.e-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.e-field > label { font-size: 12px; font-weight: 600; color: var(--e-text-2); }
.e-field .form-control, .e-field .form-select { height: 40px; border-radius: 12px; }
.e-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--e-surface-2); box-shadow: inset 0 0 0 1px var(--e-line); }
.e-seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--e-text-2); }
.e-seg button.on { background: rgba(255, 255, 255, .14); color: var(--e-text); }
[data-bs-theme="light"] .e-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(28, 45, 70, .12); }
.e-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.e-kpi { background: var(--e-surface); border: 1px solid var(--e-line); border-radius: 20px; box-shadow: var(--e-shadow); padding: 15px 17px; display: flex; flex-direction: column; gap: 2px;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: e-opcin .4s var(--e-ease) both; transition: transform .25s var(--e-ease); }
.e-kpi:hover { transform: translateY(-2px); }
.e-kpi span { font-size: 12px; color: var(--e-text-2); font-weight: 600; }
.e-kpi b { font-size: 23px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.e-kpi small { font-size: 12px; color: var(--e-text-3); }
.e-kpi small.mal { color: var(--e-red); }
.e-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 980px) { .e-grid2 { grid-template-columns: 1fr; } }
.e-grid2 > .e-panel { min-width: 0; }
.e-panel h3.t { font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--e-text); margin-bottom: 10px; }
svg.e-graf { width: 100%; height: auto; display: block; }
svg.e-graf rect { transform-box: fill-box; transform-origin: bottom; animation: e-crece .55s var(--e-ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
svg.e-graf .gl { stroke: var(--e-line); }
svg.e-graf .gt { fill: var(--e-text-3); }
@keyframes e-crece { from { transform: scaleY(0); } to { transform: none; } }
.e-leyenda { display: flex; gap: 14px; font-size: 12px; color: var(--e-text-2); margin-top: 6px; }
.e-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.e-hbar { display: grid; grid-template-columns: minmax(90px, 170px) 1fr 92px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.e-hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-hbar .pista { height: 12px; background: var(--e-surface-2); border-radius: 6px; overflow: hidden; }
.e-hbar .pista i { display: block; height: 100%; background: var(--e-graf); border-radius: 6px; transform-origin: left; animation: e-ancho .6s var(--e-ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes e-ancho { from { transform: scaleX(0); } to { transform: none; } }
.e-hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.e-vacio { padding: 40px 16px; text-align: center; color: var(--e-text-2); }
.e-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--e-surface-2); color: var(--e-text-2); white-space: nowrap; }
.e-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.e-pill.ok { background: var(--e-green-soft); color: var(--e-green); } .e-pill.bad { background: var(--e-red-soft); color: var(--e-red); }
.e-pill.warn { background: var(--e-orange-soft); color: var(--e-orange); } .e-pill.blue { background: var(--e-accent-soft); color: var(--e-accent-text); }
.e-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.e-tbl th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--e-text-3); padding: 10px 14px; border-bottom: 1px solid var(--e-line); background: var(--e-surface-solid); }
.e-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--e-line); vertical-align: middle; }
.e-tbl tr:last-child td { border-bottom: 0; }
.e-tbl tbody tr:hover { background: var(--e-surface-2); }
.e-tbl tr.click { cursor: pointer; }
.e-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.e-tbl input.form-control { height: 34px; border-radius: 10px; max-width: 120px; margin-left: auto; text-align: right; }
.e-tbl .e-btn.sm { height: 30px; }
.e-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 340px; overflow: auto; padding: 6px; border-radius: 16px; background: var(--e-glass); border: 1px solid var(--e-line-strong); box-shadow: var(--e-shadow-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.e-drop button { display: flex; width: 100%; gap: 12px; align-items: center; text-align: left; border: 0; background: transparent; color: var(--e-text); font: inherit; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.e-drop button:hover, .e-drop button:focus, .e-drop button.on { background: var(--e-accent); color: #fff; outline: none; }
.e-drop button small { margin-left: auto; opacity: .75; font-variant-numeric: tabular-nums; }
.e-drop .cod { font-size: 12px; opacity: .7; min-width: 70px; }
.e-editor-pie { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.e-editor-pie .e-total { font-size: 30px; margin-left: auto; }

/* Avisos flotantes */
#e-toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.e-toast { padding: 12px 20px; border-radius: 14px; font-size: 14px; max-width: 80vw; background: var(--e-glass); color: var(--e-text); border: 1px solid var(--e-line-strong); box-shadow: var(--e-shadow-2);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: d-pop .3s var(--e-ease); }
.e-toast.bad { background: #c2334a; color: #fff; border-color: transparent; }
.e-toast.ok { color: var(--e-green); }

/* ============================================ 9) Impresión: siempre en claro y sin menú ============================================ */
@media print {
	#dash, .e-menubtn, .e-glass-scrim, #e-toasts { display: none !important; }
	body { background: #fff !important; color: #000 !important; }
	body.en-app #contenido { padding: 0 !important; }
	.e-panel, .e-kpi, .card { background: #fff !important; box-shadow: none !important; border-color: #ccc !important; color: #000 !important; }
}

/* Punto de venta: el total y las unidades con el formato de escritorio (styles.css los centraba en un recuadro) */
.e-pos-right #totalv { font-size: inherit; text-align: left; font-weight: 700; color: var(--e-text); width: 100%; }
.e-pos-right #unidades { font-size: 16px; text-align: right; width: 110px; font-weight: 700; }
.e-pos #prodlist { height: auto; min-height: 320px; border: 0; padding: 0; background: transparent; }
.e-pos #prodlist table { margin: 0 !important; }
.e-pos #prodlist table, .e-pos #prodlist table * { border-color: var(--e-line) !important; }
/* Bordes de las tablas existentes (Bootstrap los dibujaba con el color del texto: línea blanca en oscuro) */
#contenido .table, #contenido .table > :not(caption) > *, #contenido .table > :not(caption) > * > * { border-color: var(--e-line) !important; }

/* ============================================ 10) Importar productos ============================================ */
.e-imp-pasos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .e-imp-pasos { grid-template-columns: 1fr; } }
.e-imp-paso { display: flex; gap: 14px; align-items: flex-start; }
.e-imp-paso p { margin: 0 0 12px; }
.e-imp-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.e-imp-sub { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; margin: 4px 0 14px; }
.e-imp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 130px; padding: 18px; border-radius: 16px; cursor: pointer; text-align: center;
	border: 2px dashed var(--e-line-strong); background: var(--e-surface-2); transition: border-color .15s, background .15s; margin: 0; }
.e-imp-drop:hover, .e-imp-drop:focus-visible, .e-imp-drop.over { border-color: var(--e-accent); background: var(--e-accent-soft); outline: none; }
.e-imp-drop svg { width: 30px; height: 30px; fill: none; stroke: var(--e-accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.e-imp-drop span { font-weight: 600; word-break: break-all; }
.e-imp-drop small { color: var(--e-text-3); font-size: 12px; }
.e-imp-err { font-size: 12.5px; color: var(--e-red); }
.e-imp-error, .e-imp-ok { display: flex; gap: 14px; align-items: center; }
.e-imp-error > svg, .e-imp-ok > svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.e-imp-error > svg { stroke: var(--e-red); background: var(--e-red-soft); }
.e-imp-ok > svg { stroke: var(--e-green); background: var(--e-green-soft); }

/* ============================================ 11) Acceso: logotipo a la izquierda, campos a la derecha ============================================
   El logotipo aparece al centro y se desliza a la izquierda (spAccAnimar en js/escritorio.js); así usuario y contraseña
   se ven sin bajar la página. En celular vertical se apila, con el logotipo más pequeño. */
.acceso { justify-content: center; gap: 14px; padding: 24px 16px 16px; }
.acc-cuerpo { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
@media (min-width: 600px), (orientation: landscape) and (min-width: 520px) {
	.acc-cuerpo { flex-direction: row; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 88px); max-width: 980px; }
	.acc-marca { flex: 0 1 300px; min-width: 0; }
	.acc-vidrio { flex: 0 1 400px; min-width: 0; }
	.acc-card { width: clamp(108px, 16vw, 156px); height: clamp(108px, 16vw, 156px); }
	.acc-logo-ic svg { width: clamp(42px, 6vw, 60px); height: clamp(42px, 6vw, 60px); }
	.acc-sp { margin-top: 20px; font-size: clamp(26px, 3.4vw, 34px); }
}
@media (max-width: 599px) and (orientation: portrait), (max-width: 519px) {
	.acc-card { width: 84px; height: 84px; padding: 8px; border-radius: 24px; }
	.acc-logo-ic { border-radius: 17px; }
	.acc-logo-ic svg { width: 36px; height: 36px; }
	.acc-sp { margin-top: 10px; font-size: 24px; }
	.acc-emp { font-size: 14px; } .acc-hora { font-size: 12.5px; }
	.acc-vidrio { padding: 20px 16px 16px; border-radius: 24px; }
}
@media (max-height: 560px) { .acc-pie { display: none; } .acceso { padding-top: 12px; padding-bottom: 12px; } .acc-form { gap: 10px; } }
/* animación: los estilos los pone spAccAnimar con FLIP (se omite con «reducir movimiento») */
.acc-cuerpo.anim .acc-marca, .acc-cuerpo.anim .acc-vidrio { transition: transform .85s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
.acc-cuerpo.anim .acc-vidrio { transition-delay: .12s; }
.acc-cuerpo .acc-marca > *, .acc-cuerpo .acc-vidrio { animation: none; }
/* pantallas muy bajas (celular acostado): el selector de tema pasa abajo a la izquierda para no tapar la tarjeta */
@media (max-height: 440px) { .acc-tema { top: auto; bottom: 10px; right: auto; left: 10px; } }

/* ============================================ 12) Caja: arqueo, devolución, cortes ============================================
   Arqueo: cada denominación lleva el color del billete o la moneda real, para reconocerla de un vistazo mientras se cuenta.
   Los colores de los billetes son fijos (no cambian con el tema): son la identidad del dinero, no del sistema. */
.sp-arqueo-dlg { --bs-modal-width: 940px; }
.sp-arqueo-dlg .modal-body { padding-top: 6px; }
.ar-cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.ar-cab h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ar-cab p { margin: 0; color: var(--e-text-2); font-size: 14px; }
.ar-fondo { margin: 0 0 16px; padding: 11px 14px; border-radius: 14px; background: var(--e-accent-soft); color: var(--e-text); font-size: 13.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.ar-fondo svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--e-accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 26px; align-items: start; }
.ar-grupos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-width: 0; }
.ar-grupo h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--e-text); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ar-grupo h3 span { font-weight: 600; font-size: 13px; color: var(--e-text-2); font-variant-numeric: tabular-nums; }
.ar-fila { display: grid; grid-template-columns: 62px max-content minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--e-line); }
.ar-fila:last-child { border-bottom: 0; }
.ar-fila .ar-sub { grid-column: 3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--e-text-3); transition: color .2s; }
.ar-fila.tiene .ar-sub { color: var(--e-text); }
.ar-fila .ar-paso { grid-column: 2; grid-row: 1; }
.ar-fila .ar-ficha { grid-column: 1; grid-row: 1; }
.ar-fila .ar-sub { grid-row: 1; }
/* ficha del billete / moneda */
.ar-ficha { position: relative; display: grid; place-items: center; height: 32px; border-radius: 6px; font-weight: 800; font-size: 14px; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
	background: linear-gradient(135deg, color-mix(in srgb, var(--bill) 88%, #fff), var(--bill) 55%, color-mix(in srgb, var(--bill) 78%, #000));
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 1px 3px rgba(0, 0, 0, .3); }
.ar-ficha::before, .ar-ficha::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.ar-ficha::before { left: 4px; } .ar-ficha::after { right: 4px; }
.ar-ficha.moneda { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; color: #2a2f3a; text-shadow: none; font-size: 13px;
	background: radial-gradient(circle at 32% 28%, #fff, var(--bill) 58%, color-mix(in srgb, var(--bill) 70%, #000));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 4px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .3); }
.ar-ficha.moneda::before, .ar-ficha.moneda::after { display: none; }
.ar-ficha.moneda.bi { background: radial-gradient(circle at 50% 50%, #e0b95c 0 46%, #cfd5e0 47% 100%); }
.ar-ficha.moneda.centavos { font-size: 11px; }
/* contador +/- */
.ar-paso { display: inline-grid; grid-template-columns: 34px 52px 34px; align-items: center; width: max-content; border-radius: 12px; background: var(--e-surface-2); box-shadow: inset 0 0 0 1px var(--e-line); }
.ar-paso button { appearance: none; border: 0; background: transparent; color: var(--e-text-2); height: 36px; font-size: 20px; line-height: 1; border-radius: 12px; cursor: pointer; }
.ar-paso button:hover { background: var(--e-accent-soft); color: var(--e-text); }
.ar-paso button:active { transform: scale(.92); }
.ar-paso input { width: 100%; height: 36px; border: 0; background: transparent; color: var(--e-text); text-align: center; font: inherit; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; outline: none; padding: 0; }
.ar-paso:focus-within { box-shadow: 0 0 0 2px var(--e-accent); }
.ar-ficha, .ar-paso button { -webkit-tap-highlight-color: transparent; }
/* total */
.ar-total { position: sticky; top: 0; align-self: start; padding: 20px 20px 18px; border-radius: 22px; background: var(--e-surface-2); box-shadow: inset 0 0 0 1px var(--e-line); display: flex; flex-direction: column; gap: 6px; }
.ar-total > span { font-size: 13px; font-weight: 600; color: var(--e-text-2); }
.ar-total output { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; word-break: break-all; }
.ar-total small { font-size: 12.5px; color: var(--e-text-3); }
.ar-total p { margin: 10px 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--e-text-2); }
.ar-total .e-btn { width: 100%; }
.ar-error { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--e-red-soft); color: var(--e-red); font-size: 13px; line-height: 1.4; }
/* resultado */
.ar-res { text-align: center; padding: 18px 8px 6px; max-width: 460px; margin: 0 auto; }
.ar-res .ic { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--e-green-soft); }
.ar-res .ic svg { width: 30px; height: 30px; fill: none; stroke: var(--e-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ar-res h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.ar-res > p { margin: 0 0 18px; color: var(--e-text-2); font-size: 14px; }
.ar-res dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--e-surface-2); text-align: left; font-size: 14.5px; }
.ar-res dt { color: var(--e-text-2); font-weight: 500; } .ar-res dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ar-res .acc { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
	.ar { grid-template-columns: 1fr; gap: 14px; }
	.ar-total { position: sticky; top: auto; bottom: 0; z-index: 3; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border-radius: 18px;
		background: var(--e-surface-solid); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--e-line); }
	.ar-total output { font-size: 28px; }
	.ar-total p { display: none; }
	.ar-total .e-btn { width: auto; flex: 1 1 140px; }
	.ar-total .ar-error { flex-basis: 100%; margin: 4px 0 0; }
}
@media (max-width: 600px) { .ar-grupos { grid-template-columns: 1fr; gap: 18px; } }

/* Devolución: la venta se muestra como el ticket que el cliente trae en la mano */
.dv { max-width: 1060px; margin: 0 auto; padding-bottom: 20px; }
.dv-busca { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.dv-busca .e-field { flex: 1 1 260px; max-width: 360px; }
.dv-busca .form-control { height: 52px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dv-busca .e-btn { height: 52px; }
.dv-venta { padding: 18px 20px; margin-bottom: 14px; }
.dv-venta header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dv-venta h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.dv-venta .meta { margin: 6px 0 0; font-size: 13.5px; color: var(--e-text-2); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.dv-venta .tot { text-align: right; } .dv-venta .tot small { display: block; color: var(--e-text-3); font-size: 12px; font-weight: 600; }
.dv-venta .tot b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dv-aviso { margin: 14px 0 0; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--e-accent-soft); }
.dv-aviso.bad { background: var(--e-red-soft); color: var(--e-red); font-weight: 600; }
.dv-lineas { padding: 4px 18px; }
.dv-linea { display: grid; grid-template-columns: minmax(0, 1fr) 150px 142px 104px; gap: 6px 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--e-line); }
.dv-linea:last-child { border-bottom: 0; }
.dv-linea .d b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.dv-linea .d small { color: var(--e-text-3); font-size: 12.5px; }
.dv-linea .q { font-size: 13.5px; color: var(--e-text-2); font-variant-numeric: tabular-nums; line-height: 1.4; }
.dv-linea .q b { color: var(--e-text); font-weight: 700; }
.dv-linea .imp { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--e-text-3); }
.dv-linea.hay .imp { color: var(--e-text); }
.dv-linea.fuera { opacity: .55; }
.dv-linea.error .imp { color: var(--e-red); }
.dv-linea .est { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; }
.dv-linea .est.ok { color: var(--e-green); } .dv-linea .est.bad { color: var(--e-red); }
.dv-linea .ar-paso { grid-template-columns: 32px 62px 32px; }
.dv-linea .ar-paso button { height: 34px; } .dv-linea .ar-paso input { height: 34px; }
.dv-barra { position: sticky; bottom: 14px; z-index: 20; margin-top: 16px; }
.dv-barra > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 20px; background: var(--e-glass); box-shadow: var(--e-shadow-2), inset 0 0 0 1px var(--e-line);
	-webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.dv-barra .sum { flex: 1 1 200px; min-width: 0; } .dv-barra .sum small { display: block; font-size: 12px; color: var(--e-text-2); font-weight: 600; }
.dv-barra .sum b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
	.dv-linea { grid-template-columns: minmax(0, 1fr) auto; }
	.dv-linea .q { grid-column: 1; } .dv-linea .imp { grid-column: 2; grid-row: 1; align-self: start; }
	.dv-linea .ar-paso { grid-column: 1 / -1; justify-self: start; }
}

/* Historial de cortes */
.ct-dif { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ar-sub, .ar-paso button { transition: none; } }
