/* ERP Pyme · estilos de la aplicación */
:root {
	--erp-primary: #2F5D50;
	--erp-bg: #F5F4F0;
	--erp-surface: #FFFFFF;
	--erp-sidebar: #FBFAF7;
	--erp-ink: #1C1F1E;
	--erp-ink-2: #4A504D;
	--erp-muted: #7A807C;
	--erp-line: #E4E2DC;
	--erp-line-2: #EFEDE8;
	--erp-danger: #B42318;
	--erp-danger-bg: #FDECEA;
	--erp-success: #1E7A4C;
	--erp-success-bg: #E6F4EC;
	--erp-warning: #9A5B00;
	--erp-warning-bg: #FFF3DC;
	--erp-info: #24548F;
	--erp-info-bg: #E8F0FA;
	--erp-radius: 10px;
	--erp-shadow: 0 1px 2px rgba(28, 31, 30, .05), 0 1px 1px rgba(28, 31, 30, .03);
	--erp-font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--erp-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--erp-bg); color: var(--erp-ink); font: 14px/1.5 var(--erp-font); -webkit-font-smoothing: antialiased; }
a { color: var(--erp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -.01em; }
img { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.erp-icon { flex-shrink: 0; }
.erp-muted { color: var(--erp-muted); }
.erp-mono { font-family: var(--erp-mono); font-size: 13px; }
.erp-lead { font-size: 16px; color: var(--erp-ink-2); margin: 0 0 20px; }
.erp-label { display: block; font-size: 12px; color: var(--erp-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.erp-section-title { font-size: 15px; margin: 28px 0 12px; }
.erp-pad { padding: 0 20px 16px; }

/* ---------- Shell ---------- */
.erp-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.erp-sidebar { background: var(--erp-sidebar); border-right: 1px solid var(--erp-line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 12px; }
.erp-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.erp-brand__logo { max-height: 36px; max-width: 120px; object-fit: contain; }
.erp-brand__initial { width: 36px; height: 36px; border-radius: 9px; background: var(--erp-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.erp-brand__initial--lg { width: 72px; height: 72px; font-size: 30px; border-radius: 14px; }
.erp-brand__name { font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }

.erp-switcher { display: flex; align-items: center; gap: 6px; margin: 0 4px 12px; padding: 6px 8px; border: 1px solid var(--erp-line); border-radius: 8px; background: var(--erp-surface); color: var(--erp-muted); }
.erp-switcher select { border: 0; background: transparent; font: inherit; color: var(--erp-ink); width: 100%; padding: 0; }

.erp-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.erp-nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--erp-muted); padding: 18px 10px 6px; }
.erp-nav__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--erp-ink-2); font-weight: 500; }
.erp-nav__item:hover { background: var(--erp-line-2); text-decoration: none; color: var(--erp-ink); }
.erp-nav__item.is-active { background: color-mix(in srgb, var(--erp-primary) 12%, transparent); color: var(--erp-primary); }
.erp-nav__sub { display: flex; flex-direction: column; margin: 2px 0 6px 30px; border-left: 1px solid var(--erp-line); }
.erp-nav__sub a { padding: 5px 12px; color: var(--erp-muted); font-size: 13px; }
.erp-nav__sub a.is-active, .erp-nav__sub a:hover { color: var(--erp-ink); text-decoration: none; }

.erp-user { display: flex; align-items: center; gap: 6px; padding: 12px 6px 4px; border-top: 1px solid var(--erp-line); margin-top: 12px; }
.erp-user__info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--erp-ink); }
.erp-user__info:hover { text-decoration: none; }
.erp-user__info img { border-radius: 50%; }
.erp-user__info span { display: flex; flex-direction: column; min-width: 0; }
.erp-user__info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erp-user__info small { color: var(--erp-muted); font-size: 12px; }
.erp-user__logout { color: var(--erp-muted); padding: 6px; border-radius: 6px; display: inline-flex; }
.erp-user__logout:hover { background: var(--erp-line-2); color: var(--erp-ink); }
.erp-powered { font-size: 11px; color: var(--erp-muted); padding: 8px 8px 0; }

.erp-main { min-width: 0; display: flex; flex-direction: column; }
.erp-topbar { display: flex; align-items: center; gap: 12px; padding: 22px 32px 6px; }
.erp-topbar h1 { font-size: 22px; flex: 1; }
.erp-trial { font-size: 12px; background: var(--erp-warning-bg); color: var(--erp-warning); padding: 4px 10px; border-radius: 99px; }
.erp-menu-toggle { display: none; background: none; border: 1px solid var(--erp-line); border-radius: 8px; padding: 6px; color: var(--erp-ink); cursor: pointer; }
.erp-content { padding: 16px 32px 48px; max-width: 1240px; width: 100%; }
.erp-scrim { display: none; }

/* ---------- Superficies ---------- */
.erp-card { background: var(--erp-surface); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); padding: 20px; box-shadow: var(--erp-shadow); }
.erp-card + .erp-card { margin-top: 16px; }
.erp-card--flush { padding: 0; overflow: hidden; }
.erp-card--narrow { max-width: 720px; }
.erp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.erp-card__title { font-size: 15px; margin-bottom: 14px; }
.erp-card__head .erp-card__title { margin-bottom: 0; }
.erp-card__title--pad { padding: 16px 20px 0; }
.erp-stack > * + * { margin-top: 16px; }
.erp-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.erp-split > .erp-card + .erp-card { margin-top: 0; }
.erp-split--wide { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }

.erp-flash { margin: 12px 32px 0; padding: 10px 14px; border-radius: 8px; background: var(--erp-success-bg); color: var(--erp-success); border: 1px solid color-mix(in srgb, var(--erp-success) 20%, transparent); }
.erp-flash--error { background: var(--erp-danger-bg); color: var(--erp-danger); border-color: color-mix(in srgb, var(--erp-danger) 20%, transparent); }
.erp-public .erp-flash { margin: 0 0 16px; }
.erp-callout { margin-top: 24px; padding: 14px 16px; border-radius: var(--erp-radius); background: color-mix(in srgb, var(--erp-primary) 8%, var(--erp-surface)); border: 1px solid color-mix(in srgb, var(--erp-primary) 20%, transparent); }
.erp-callout--inline { margin: 0 0 14px; }

.erp-empty { text-align: center; padding: 56px 20px; background: var(--erp-surface); border: 1px dashed var(--erp-line); border-radius: var(--erp-radius); }
.erp-empty h2 { font-size: 17px; margin-bottom: 6px; }
.erp-empty p { color: var(--erp-muted); margin: 6px 0 16px; }
.erp-empty__icon { color: var(--erp-muted); margin-bottom: 8px; }
.erp-empty__icon .erp-icon { width: 32px; height: 32px; }

/* ---------- Botones ---------- */
.erp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; line-height: 1.3; white-space: nowrap; text-decoration: none !important; }
.erp-btn--primary { background: var(--erp-primary); color: #fff; }
.erp-btn--primary:hover { background: color-mix(in srgb, var(--erp-primary) 88%, #000); }
.erp-btn--ghost { background: var(--erp-surface); color: var(--erp-ink); border-color: var(--erp-line); }
.erp-btn--ghost:hover { background: var(--erp-line-2); }
.erp-btn--danger { background: var(--erp-surface); color: var(--erp-danger); border-color: color-mix(in srgb, var(--erp-danger) 35%, transparent); }
.erp-btn--danger:hover { background: var(--erp-danger-bg); }
.erp-btn--sm { padding: 5px 10px; font-size: 13px; }
.erp-btn--block { width: 100%; }
.erp-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.erp-btn-row form { margin: 0; }
.erp-icon-btn { border: 0; background: none; color: var(--erp-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.erp-icon-btn:hover { background: var(--erp-danger-bg); color: var(--erp-danger); }
.erp-actions { display: flex; gap: 8px; margin-top: 16px; }
.erp-danger-zone { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--erp-line-2); }
.erp-card.erp-danger-zone { border-top: 1px solid var(--erp-line); }

/* ---------- Formularios ---------- */
.erp-form { margin: 0; }
.erp-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.erp-field > span { font-size: 13px; font-weight: 500; color: var(--erp-ink-2); }
.erp-field--full { grid-column: 1 / -1; }
.erp-field--span2 { grid-column: span 2; }
.erp-form input[type=search], .erp-form input[type=text], .erp-form input[type=email], .erp-form input[type=password], .erp-form input[type=number], .erp-form input[type=date], .erp-form input:not([type]), .erp-form select, .erp-form textarea, .erp-search input {
	font: inherit; color: var(--erp-ink); background: var(--erp-surface); border: 1px solid var(--erp-line); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px;
}
.erp-form input:focus, .erp-form select:focus, .erp-form textarea:focus, .erp-search input:focus { outline: 2px solid color-mix(in srgb, var(--erp-primary) 35%, transparent); outline-offset: 0; border-color: var(--erp-primary); }
.erp-form input[type=color] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--erp-line); border-radius: 8px; background: var(--erp-surface); }
.erp-form input[type=file] { font-size: 13px; }
.erp-check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; }
.erp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.erp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.erp-fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.erp-fieldset legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.erp-access { background: var(--erp-bg); border-radius: 8px; padding: 12px 14px 4px; margin-bottom: 14px; }
.erp-access legend { font-size: 13px; float: left; width: 100%; margin-bottom: 8px; }
.erp-access legend + * { clear: both; }
.erp-access__list { padding-left: 24px; }
.erp-logo-field { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 8px; }
.erp-logo-field__img { width: 120px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--erp-line); border-radius: 10px; padding: 6px; flex-shrink: 0; }
.erp-logo-field__img img { max-height: 60px; object-fit: contain; }
.erp-logo-preview { max-height: 56px; margin-top: 8px; align-self: flex-start; }

/* ---------- Toolbar, tabs, búsqueda ---------- */
.erp-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.erp-tabs { display: flex; gap: 2px; background: var(--erp-line-2); padding: 3px; border-radius: 9px; }
.erp-tabs a { padding: 5px 12px; border-radius: 7px; color: var(--erp-ink-2); font-weight: 500; font-size: 13px; }
.erp-tabs a:hover { text-decoration: none; color: var(--erp-ink); }
.erp-tabs a.is-active { background: var(--erp-surface); color: var(--erp-ink); box-shadow: var(--erp-shadow); }
.erp-search { flex: 1; min-width: 200px; position: relative; display: flex; align-items: center; margin: 0; }
.erp-search .erp-icon { position: absolute; left: 10px; color: var(--erp-muted); width: 16px; height: 16px; }
.erp-search input { padding-left: 34px; }
.erp-doc-title { display: flex; align-items: center; gap: 10px; flex: 1; }
.erp-doc-title h2 { font-size: 20px; }

/* ---------- Tablas ---------- */
.erp-table-wrap { overflow-x: auto; }
.erp-table { width: 100%; border-collapse: collapse; }
.erp-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--erp-muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; border-bottom: 1px solid var(--erp-line); background: var(--erp-sidebar); white-space: nowrap; }
.erp-table td { padding: 11px 16px; border-bottom: 1px solid var(--erp-line-2); vertical-align: middle; }
.erp-table tbody tr:last-child td { border-bottom: 0; }
.erp-table tbody tr:hover td { background: #FCFBF9; }
.erp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.erp-table input.num { text-align: right; }
.erp-table__actions { text-align: right; }
.erp-table--compact td { padding: 8px 20px; font-size: 13px; }
.erp-card:not(.erp-card--flush) .erp-table th { background: none; padding-left: 0; }
.erp-card:not(.erp-card--flush) .erp-table td { padding-left: 0; }
.erp-table tr.is-muted td { opacity: .55; }
.is-neg { color: var(--erp-danger); }
.is-pos { color: var(--erp-success); }
.erp-strong-link { font-weight: 500; color: var(--erp-ink); }
.erp-person { display: flex; align-items: center; gap: 10px; }
.erp-person img { border-radius: 50%; }
.erp-person span { display: flex; flex-direction: column; }
.erp-person small { color: var(--erp-muted); font-size: 12px; }
.erp-person--lg { margin-bottom: 20px; }
.erp-person--lg strong { font-size: 16px; }
.erp-pagination { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 16px; color: var(--erp-muted); }
.erp-list { list-style: none; padding: 0; margin: 0 0 16px; }
.erp-list li { padding: 8px 0; border-bottom: 1px solid var(--erp-line-2); display: flex; justify-content: space-between; }

.erp-badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--erp-line-2); color: var(--erp-ink-2); white-space: nowrap; }
.erp-badge--primary { background: color-mix(in srgb, var(--erp-primary) 14%, transparent); color: var(--erp-primary); }
.erp-badge--info { background: var(--erp-info-bg); color: var(--erp-info); }
.erp-badge--success { background: var(--erp-success-bg); color: var(--erp-success); }
.erp-badge--warning { background: var(--erp-warning-bg); color: var(--erp-warning); }
.erp-badge--danger { background: var(--erp-danger-bg); color: var(--erp-danger); }

/* ---------- Tablero ---------- */
.erp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.erp-kpi { display: flex; flex-direction: column; gap: 4px; background: var(--erp-surface); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); padding: 16px 18px; color: var(--erp-ink); box-shadow: var(--erp-shadow); transition: border-color .15s; }
.erp-kpi:hover { text-decoration: none; border-color: color-mix(in srgb, var(--erp-primary) 45%, var(--erp-line)); }
.erp-kpi__label { display: flex; align-items: center; gap: 8px; color: var(--erp-muted); font-size: 13px; }
.erp-kpi__label .erp-icon { width: 16px; height: 16px; }
.erp-kpi__value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.erp-kpi__hint { font-size: 12px; color: var(--erp-muted); }
.erp-kpi--warning .erp-kpi__value { color: var(--erp-warning); }
.erp-shortcuts { display: flex; gap: 10px; flex-wrap: wrap; }
.erp-shortcut { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--erp-surface); border: 1px solid var(--erp-line); border-radius: 9px; color: var(--erp-ink); font-weight: 500; }
.erp-shortcut:hover { text-decoration: none; border-color: var(--erp-primary); color: var(--erp-primary); }
.erp-stat { display: flex; flex-direction: column; margin-bottom: 16px; }
.erp-stat strong { font-size: 28px; font-weight: 600; }
.erp-stat strong.is-warning { color: var(--erp-warning); }

/* ---------- Módulos ---------- */
.erp-modules { display: grid; gap: 12px; margin-bottom: 16px; }
.erp-module { display: flex; align-items: center; gap: 16px; background: var(--erp-surface); border: 1px solid var(--erp-line); border-radius: var(--erp-radius); padding: 16px 18px; }
.erp-module__icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--erp-line-2); color: var(--erp-muted); flex-shrink: 0; }
.erp-module.is-on .erp-module__icon { background: color-mix(in srgb, var(--erp-primary) 12%, transparent); color: var(--erp-primary); }
.erp-module__body { flex: 1; }
.erp-module__body h3 { font-size: 15px; }
.erp-module__body p { margin: 2px 0 0; color: var(--erp-ink-2); }
.erp-module.is-locked { background: transparent; border-style: dashed; }
.erp-module.is-locked .erp-module__body { opacity: .7; }
.erp-module__action form { margin: 0; }
.erp-switch { width: 44px; height: 26px; border-radius: 99px; border: 0; background: #CFCCC4; position: relative; cursor: pointer; padding: 0; transition: background .15s; }
.erp-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.erp-switch.is-on { background: var(--erp-primary); }
.erp-switch.is-on span { transform: translateX(18px); }

/* ---------- Planes ---------- */
.erp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.erp-plans--page { margin: 16px 0; }
.erp-plan { position: relative; display: block; cursor: pointer; }
.erp-plan input { position: absolute; opacity: 0; }
.erp-plan__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid var(--erp-line); border-radius: var(--erp-radius); background: var(--erp-surface); transition: border-color .15s, box-shadow .15s; }
.erp-plan input:checked + .erp-plan__body, .erp-plan.is-current .erp-plan__body { border-color: var(--erp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--erp-primary) 15%, transparent); }
.erp-plan input:focus-visible + .erp-plan__body { outline: 2px solid var(--erp-primary); outline-offset: 2px; }
.erp-plan--static { cursor: default; }
.erp-plan__name { font-size: 16px; }
.erp-plan__price { font-size: 20px; font-weight: 600; color: var(--erp-primary); }
.erp-plan__desc { color: var(--erp-ink-2); font-size: 13px; }
.erp-plan__meta { font-size: 12px; color: var(--erp-muted); }
.erp-plan__mods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.erp-plan__mods span { font-size: 11px; background: var(--erp-line-2); padding: 2px 8px; border-radius: 99px; }
.erp-plan__list { list-style: none; padding: 0; margin: 8px 0 14px; flex: 1; }
.erp-plan__list li { padding: 3px 0; font-size: 13px; }
.erp-plan__list li.on::before { content: "✓"; color: var(--erp-success); font-weight: 700; margin-right: 8px; }
.erp-plan__list li.off { color: var(--erp-muted); }
.erp-plan__list li.off::before { content: "—"; margin-right: 8px; }

/* ---------- Factura (editor) ---------- */
.erp-lines td { padding: 6px 8px; }
.erp-lines td:first-child, .erp-lines th:first-child { padding-left: 16px; }
.erp-lines input, .erp-lines select { min-height: 34px !important; padding: 6px 8px !important; }
.erp-lines__foot { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--erp-line); gap: 16px; }
.erp-totals { display: grid; grid-template-columns: auto auto; gap: 6px 0; margin: 0; font-variant-numeric: tabular-nums; }
.erp-totals dt { color: var(--erp-muted); }
.erp-totals dd { margin: 0; text-align: right; padding-left: 32px; }
.erp-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; flex-shrink: 0; letter-spacing: .02em; }
.erp-totals .is-total { font-size: 17px; font-weight: 600; color: var(--erp-ink); padding-top: 6px; border-top: 1px solid var(--erp-line); }

/* ---------- Páginas públicas ---------- */
.erp-public { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.erp-public__wrap { width: 100%; max-width: 420px; }
.erp-public__wrap.is-wide { max-width: 820px; }
.erp-public__brand { font-weight: 700; font-size: 18px; color: var(--erp-primary); margin-bottom: 18px; text-align: center; letter-spacing: -.01em; }
.erp-public__card { padding: 28px; }
.erp-public__card h1 { font-size: 22px; margin-bottom: 8px; }
.erp-public__card > p { margin: 0 0 18px; }
.erp-public__links { margin-top: 18px; text-align: center; font-size: 13px; color: var(--erp-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.erp-split, .erp-split--wide { grid-template-columns: 1fr; }
	.erp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.erp-shell { grid-template-columns: 1fr; }
	.erp-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
	.erp-nav-open .erp-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
	.erp-nav-open .erp-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 20; }
	.erp-menu-toggle { display: inline-flex; }
	.erp-topbar { padding: 14px 16px 4px; }
	.erp-topbar h1 { font-size: 19px; }
	.erp-content { padding: 12px 16px 40px; }
	.erp-flash { margin: 10px 16px 0; }
	.erp-grid-2, .erp-grid-3 { grid-template-columns: 1fr; }
	.erp-field--span2 { grid-column: auto; }
	.erp-card { padding: 16px; }
	.erp-card--flush { padding: 0; overflow-x: auto; }
	.erp-table th, .erp-table td { padding: 9px 12px; }
	.erp-lines__foot { flex-direction: column; }
	.erp-totals { width: 100%; }
	.erp-module { flex-wrap: wrap; }
	.erp-public { padding: 24px 16px; }
	.erp-public__card { padding: 20px; }
	.erp-logo-field { flex-direction: column; }
}

/* ---------- Tareas del día ---------- */
.erp-tasks { margin-bottom: 20px; }
.erp-tasks ul { list-style: none; margin: 0; padding: 0; }
.erp-task + .erp-task { border-top: 1px solid var(--erp-line-2); }
.erp-task a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--erp-ink); }
.erp-task a:hover { text-decoration: none; background: #FCFBF9; }
.erp-task__icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--erp-line-2); color: var(--erp-ink-2); flex-shrink: 0; }
.erp-task--approval .erp-task__icon { background: color-mix(in srgb, var(--erp-primary) 14%, transparent); color: var(--erp-primary); }
.erp-task--alert .erp-task__icon { background: var(--erp-warning-bg); color: var(--erp-warning); }
.erp-task__body { flex: 1; display: flex; flex-direction: column; }
.erp-task__body small { color: var(--erp-muted); }
.erp-task__go { color: var(--erp-muted); font-size: 20px; }

/* ---------- Compras ---------- */
.erp-row-changed td { background: var(--erp-warning-bg) !important; }
.erp-row-zero td { color: var(--erp-muted); }
.erp-qty-input { width: 90px !important; text-align: right; }
.erp-calc { font-size: 12px; color: var(--erp-muted); white-space: nowrap; }
.erp-class { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--erp-line-2); color: var(--erp-ink-2); }
.erp-class--A { background: color-mix(in srgb, var(--erp-primary) 16%, transparent); color: var(--erp-primary); }
.erp-class--B { background: var(--erp-info-bg); color: var(--erp-info); }
.erp-scan { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.erp-scan input { font-size: 16px !important; }
.erp-count-row.is-found td { background: var(--erp-success-bg) !important; }
.erp-count-row.is-counted td:first-child { box-shadow: inset 3px 0 0 var(--erp-success); }
.erp-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; font-size: 12px; }
.erp-steps li { padding: 4px 10px; border-radius: 99px; background: var(--erp-line-2); color: var(--erp-muted); }
.erp-steps li.is-done { background: var(--erp-success-bg); color: var(--erp-success); }
.erp-steps li.is-current { background: var(--erp-primary); color: #fff; }
.erp-sticky-actions { position: sticky; bottom: 0; background: var(--erp-bg); padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--erp-line); margin-top: 16px; }
.erp-weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.erp-weekdays label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--erp-line); border-radius: 8px; cursor: pointer; }
.erp-notice { padding: 12px 14px; border-radius: 8px; background: var(--erp-info-bg); color: var(--erp-info); margin-bottom: 14px; }
.erp-notice--warning { background: var(--erp-warning-bg); color: var(--erp-warning); }
