:root {
    --lp-primary-50: #eff9fc;
    --lp-primary-100: #d9f1f8;
    --lp-primary-200: #b8e4f1;
    --lp-primary-300: #84d0e6;
    --lp-primary-400: #45b4d5;
    --lp-primary-500: #1493c2;
    --lp-primary-600: #007db5;
    --lp-primary-700: #086494;
    --lp-primary-800: #0c5278;
    --lp-primary-900: #0f4564;
    --lp-primary: var(--lp-primary-600);
    --lp-primary-hover: var(--lp-primary-700);
    --lp-primary-soft: var(--lp-primary-50);
    --lp-success: #138a5b;
    --lp-success-soft: #eaf8f1;
    --lp-warning: #b76b00;
    --lp-warning-soft: #fff7df;
    --lp-danger: #c43b4d;
    --lp-danger-soft: #fff0f2;
    --lp-info: #2563b8;
    --lp-info-soft: #edf5ff;
    --lp-text-strong: #17212b;
    --lp-text: #344054;
    --lp-text-muted: #667085;
    --lp-text-subtle: #98a2b3;
    --lp-border: #dce3ea;
    --lp-border-strong: #c7d0db;
    --lp-surface: #ffffff;
    --lp-surface-muted: #f8fafc;
    --lp-background: #f3f6f9;
    --lp-sidebar: #ffffff;
    --lp-topbar: #111827;
    --lp-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --lp-shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.07);
    --lp-shadow-md: 0 16px 40px rgba(16, 24, 40, 0.12);
    --lp-radius-sm: 8px;
    --lp-radius-md: 12px;
    --lp-radius-lg: 18px;
    --lp-radius-xl: 24px;
    --lp-sidebar-width: 256px;
    --lp-sidebar-collapsed-width: 76px;
    --lp-topbar-height: 64px;
    --lp-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.lp-app,
.lp-app * {
    box-sizing: border-box;
}

.lp-app {
    min-height: 100vh;
    margin: 0;
    color: var(--lp-text);
    background: var(--lp-background);
    font-family: var(--lp-font);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.lp-app button,
.lp-app input,
.lp-app select,
.lp-app textarea {
    font: inherit;
}

.lp-app a {
    color: inherit;
    text-decoration: none;
}

.lp-app button,
.lp-app a,
.lp-app input,
.lp-app select {
    outline: none;
}

.lp-app :focus-visible {
    outline: 3px solid rgba(0, 125, 181, 0.22);
    outline-offset: 2px;
}

.lp-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lp-icon--sm {
    width: 16px;
    height: 16px;
}

.lp-icon--lg {
    width: 24px;
    height: 24px;
}

.lp-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--lp-sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
}

.lp-shell.is-collapsed {
    grid-template-columns: var(--lp-sidebar-collapsed-width) minmax(0, 1fr);
}

.lp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--lp-sidebar-width);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--lp-border);
    background: var(--lp-sidebar);
    transition: width 180ms ease;
}

.lp-shell.is-collapsed .lp-sidebar {
    width: var(--lp-sidebar-collapsed-width);
}

.lp-brand {
    min-height: 76px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-brand__full {
    width: 186px;
    height: auto;
    object-fit: contain;
}

.lp-brand__compact {
    width: 42px;
    height: 42px;
    display: none;
    object-fit: contain;
}

.lp-shell.is-collapsed .lp-brand {
    padding-inline: 16px;
    justify-content: center;
}

.lp-shell.is-collapsed .lp-brand__full,
.lp-shell.is-collapsed .lp-sidebar-toggle {
    display: none;
}

.lp-shell.is-collapsed .lp-brand__compact {
    display: block;
}

.lp-sidebar-toggle,
.lp-icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--lp-text-muted);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 160ms ease;
}

.lp-sidebar-toggle:hover,
.lp-icon-button:hover {
    color: var(--lp-primary);
    background: var(--lp-primary-soft);
}

.lp-sidebar__scroll {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 20px;
}

.lp-nav-group + .lp-nav-group {
    margin-top: 20px;
}

.lp-nav-group__title {
    margin: 0 12px 8px;
    color: var(--lp-text-subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-shell.is-collapsed .lp-nav-group__title {
    height: 1px;
    margin: 8px 10px;
    overflow: hidden;
    border-top: 1px solid var(--lp-border);
    color: transparent;
}

.lp-nav {
    display: grid;
    gap: 5px;
}

.lp-nav__item {
    min-height: 44px;
    padding: 0 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 11px;
    color: #5a6573;
    font-weight: 550;
    transition: 160ms ease;
}

.lp-nav__item:hover {
    color: var(--lp-primary-700);
    background: #f3f8fb;
}

.lp-nav__item.is-active {
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    box-shadow: inset 3px 0 0 var(--lp-primary);
}

.lp-nav__item .lp-icon {
    color: #7d8794;
}

.lp-nav__item.is-active .lp-icon {
    color: var(--lp-primary);
}

.lp-nav__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-shell.is-collapsed .lp-nav__item {
    padding: 0;
    justify-content: center;
}

.lp-shell.is-collapsed .lp-nav__label,
.lp-shell.is-collapsed .lp-nav__badge {
    display: none;
}

.lp-nav__badge {
    min-width: 22px;
    padding: 2px 7px;
    margin-left: auto;
    border-radius: 999px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-50);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.lp-sidebar__footer {
    padding: 14px 12px;
    border-top: 1px solid var(--lp-border);
}

.lp-user-card {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    background: var(--lp-surface-muted);
}

.lp-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.lp-user-card__text {
    min-width: 0;
}

.lp-user-card__name {
    margin: 0;
    overflow: hidden;
    color: var(--lp-text-strong);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-user-card__role {
    margin: 1px 0 0;
    overflow: hidden;
    color: var(--lp-text-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-shell.is-collapsed .lp-user-card {
    padding: 7px;
    justify-content: center;
    background: transparent;
}

.lp-shell.is-collapsed .lp-user-card__text,
.lp-shell.is-collapsed .lp-user-card .lp-icon-button {
    display: none;
}

.lp-main {
    min-width: 0;
    grid-column: 2;
}

.lp-topbar {
    height: var(--lp-topbar-height);
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #ffffff;
    background: var(--lp-topbar);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-topbar__start,
.lp-topbar__end {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-mobile-menu {
    display: none;
    color: #d1d5db;
}

.lp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aeb6c2;
    font-size: 13px;
}

.lp-breadcrumbs strong {
    color: #ffffff;
    font-weight: 650;
}

.lp-topbar .lp-icon-button {
    color: #aeb6c2;
}

.lp-topbar .lp-icon-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.lp-notification-dot {
    width: 7px;
    height: 7px;
    position: absolute;
    top: 8px;
    right: 8px;
    border: 2px solid var(--lp-topbar);
    border-radius: 50%;
    background: #f04438;
}

.lp-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px;
}

.lp-page-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.lp-page-header__eyebrow {
    margin: 0 0 7px;
    color: var(--lp-primary-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-page-header h1 {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.lp-page-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--lp-text-muted);
    font-size: 14px;
}

.lp-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Boton agregar (Nueva...) en headers de mantenedores */
.lp-page-header > .lp-page-actions {
    margin-top: 30px;
}

.lp-button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: 160ms ease;
}

.lp-button:hover {
    transform: translateY(-1px);
}

.lp-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.lp-button--primary {
    color: #ffffff;
    background: var(--lp-primary);
    box-shadow: 0 4px 12px rgba(0, 125, 181, 0.2);
}

.lp-button--primary:hover {
    background: var(--lp-primary-hover);
}

.lp-button--secondary {
    color: var(--lp-text-strong);
    border-color: var(--lp-border-strong);
    background: var(--lp-surface);
}

.lp-button--secondary:hover {
    border-color: var(--lp-primary-300);
    color: var(--lp-primary-700);
    background: var(--lp-primary-50);
}

.lp-button--ghost {
    color: var(--lp-primary-700);
    background: transparent;
}

.lp-button--ghost:hover {
    background: var(--lp-primary-50);
}

.lp-button--danger {
    color: var(--lp-danger);
    border-color: #f4bcc4;
    background: #ffffff;
}

.lp-button--danger:hover {
    color: #ffffff;
    border-color: var(--lp-danger);
    background: var(--lp-danger);
}

.lp-button--sm {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
}

.lp-card {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow-xs);
}

.lp-card__header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-card__title {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: 16px;
    font-weight: 750;
}

.lp-card__subtitle {
    margin: 4px 0 0;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-card__body {
    padding: 20px;
}

.lp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.lp-kpi {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.lp-kpi::after {
    width: 86px;
    height: 86px;
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    border-radius: 50%;
    background: var(--lp-primary-50);
}

.lp-kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.lp-kpi__label {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.lp-kpi__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-kpi__value {
    margin: 12px 0 4px;
    position: relative;
    z-index: 1;
    color: var(--lp-text-strong);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.lp-kpi__meta {
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-kpi__trend {
    margin-top: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--lp-success);
    font-size: 12px;
    font-weight: 750;
}

.lp-kpi__trend.is-negative {
    color: var(--lp-danger);
}

.lp-dashboard-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.lp-chart-card {
    min-height: 410px;
}

.lp-chart-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-chart-legend__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lp-primary);
}

.lp-chart-legend__dot.is-real {
    background: #7b8794;
}

.lp-chart-legend__dot.is-variance {
    background: var(--lp-success);
}

.lp-chart {
    width: 100%;
    height: 285px;
    padding: 12px 4px 0;
    position: relative;
}

.lp-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lp-grid-line {
    stroke: #e9eef3;
    stroke-width: 1;
}

.lp-axis-text {
    fill: #7d8794;
    font-size: 11px;
    font-family: var(--lp-font);
}

.lp-quick-list {
    display: grid;
    gap: 10px;
}

.lp-quick-link {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    background: var(--lp-surface);
    transition: 160ms ease;
}

.lp-quick-link:hover {
    border-color: var(--lp-primary-300);
    box-shadow: var(--lp-shadow-sm);
    transform: translateY(-1px);
}

.lp-quick-link__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-quick-link__body {
    min-width: 0;
    flex: 1;
}

.lp-quick-link__title {
    margin: 0;
    color: var(--lp-text-strong);
    font-weight: 750;
}

.lp-quick-link__text {
    margin: 3px 0 0;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-activity {
    margin-top: 16px;
}

.lp-activity-list {
    display: grid;
}

.lp-activity-item {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-activity-item:last-child {
    border-bottom: 0;
}

.lp-activity-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-activity-item__title {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: 13px;
    font-weight: 700;
}

.lp-activity-item__meta {
    margin: 3px 0 0;
    color: var(--lp-text-muted);
    font-size: 11px;
}

.lp-activity-item__time {
    color: var(--lp-text-subtle);
    font-size: 11px;
    white-space: nowrap;
}

.lp-filter-card {
    margin-bottom: 16px;
}

.lp-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.lp-field {
    min-width: 0;
}

.lp-label {
    margin: 0 0 6px;
    display: block;
    color: var(--lp-text-strong);
    font-size: 12px;
    font-weight: 700;
}

.lp-input,
.lp-select,
.lp-textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--lp-border-strong);
    border-radius: 9px;
    color: var(--lp-text-strong);
    background: #ffffff;
    transition: 150ms ease;
}

.lp-select {
    padding-right: 34px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.lp-input:hover,
.lp-select:hover,
.lp-textarea:hover {
    border-color: #aab6c3;
}

.lp-input:focus,
.lp-select:focus,
.lp-textarea:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(0, 125, 181, 0.12);
}

.lp-input::placeholder,
.lp-textarea::placeholder {
    color: var(--lp-text-subtle);
}

.lp-field__help {
    margin: 5px 0 0;
    color: var(--lp-text-muted);
    font-size: 11px;
}

.lp-field__error {
    margin: 5px 0 0;
    color: var(--lp-danger);
    font-size: 11px;
}

.lp-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lp-toolbar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-search {
    width: min(340px, 100%);
    position: relative;
}

.lp-search .lp-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--lp-text-subtle);
    transform: translateY(-50%);
    pointer-events: none;
}

.lp-search .lp-input {
    padding-left: 40px;
}

.lp-record-count {
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-table-shell {
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    background: #ffffff;
}

.lp-table-scroll {
    overflow-x: auto;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--lp-text);
    font-size: 13px;
}

.lp-table th,
.lp-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--lp-border);
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
}

.lp-table th {
    color: #536071;
    background: #f7f9fb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.lp-table tbody tr {
    transition: background 130ms ease;
}

.lp-table tbody tr:hover,
.lp-table tbody tr:hover > td {
    background: #f8fbfd;
}

.lp-table tbody tr:active,
.lp-table tbody tr:active > td,
.lp-table tbody tr.is-active,
.lp-table tbody tr.is-active > td {
    background: var(--lp-primary-50);
}

.lp-table tbody tr:last-child td {
    border-bottom: 0;
}

.lp-table__code {
    color: var(--lp-text-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 750;
}

.lp-table__name {
    color: var(--lp-text-strong);
    font-weight: 650;
}

.lp-sort {
    margin-left: 5px;
    color: var(--lp-text-subtle);
    vertical-align: -2px;
}

.lp-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.lp-row-action {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--lp-text-muted);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 140ms ease;
}

.lp-row-action:hover {
    color: var(--lp-primary-700);
    background: var(--lp-primary-50);
}

.lp-row-action.is-danger:hover {
    color: var(--lp-danger);
    background: var(--lp-danger-soft);
}

.lp-badge {
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.lp-badge::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.lp-badge--success {
    color: #067647;
    border-color: #b7e9d2;
    background: var(--lp-success-soft);
}

.lp-badge--neutral {
    color: #536071;
    border-color: #d7dee6;
    background: #f3f5f7;
}

.lp-badge--warning {
    color: #8f4f00;
    border-color: #f5d58f;
    background: var(--lp-warning-soft);
}

.lp-badge--danger {
    color: #a32539;
    border-color: #f3bbc4;
    background: var(--lp-danger-soft);
}

.lp-table-footer {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--lp-border);
    background: #ffffff;
}

.lp-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lp-page-button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    color: var(--lp-text-muted);
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-page-button:hover {
    color: var(--lp-primary-700);
    border-color: var(--lp-primary-300);
    background: var(--lp-primary-50);
}

.lp-page-button.is-active {
    color: #ffffff;
    border-color: var(--lp-primary);
    background: var(--lp-primary);
}

.lp-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.lp-modal-backdrop {
    padding: 24px;
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.lp-modal-backdrop.is-open {
    display: flex;
}

.lp-modal {
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--lp-shadow-md);
    animation: lpModalIn 180ms ease;
}

@keyframes lpModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lp-modal__header {
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-modal__title {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: 18px;
    font-weight: 800;
}

.lp-modal__description {
    margin: 4px 0 0;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-modal__body {
    max-height: calc(100vh - 220px);
    padding: 20px;
    overflow-y: auto;
}

.lp-form-stack {
    display: grid;
    gap: 15px;
}

.lp-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--lp-text-strong);
    font-size: 13px;
    font-weight: 650;
}

.lp-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--lp-primary);
    cursor: pointer;
}

.lp-modal__footer {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--lp-border);
    background: #fbfcfd;
}

.lp-toast {
    min-width: 300px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 14px;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid #b7e9d2;
    border-radius: 12px;
    color: #05603a;
    background: #f0fbf6;
    box-shadow: var(--lp-shadow-sm);
    font-weight: 650;
}

.lp-toast.is-visible {
    display: flex;
    animation: lpToastIn 180ms ease;
}

@keyframes lpToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-empty {
    padding: 48px 20px;
    display: none;
    text-align: center;
}

.lp-empty.is-visible {
    display: block;
}

.lp-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-empty h3 {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: 16px;
}

.lp-empty p {
    margin: 6px 0 0;
    color: var(--lp-text-muted);
}

.lp-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(440px, 0.75fr);
    background: #ffffff;
}

.lp-login-brand-panel {
    min-height: 100vh;
    padding: 46px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--lp-primary-700) 0%, var(--lp-primary-800) 54%, #0d3f5d 100%);
    display: flex;
    flex-direction: column;
}

.lp-login-brand-panel::before,
.lp-login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-login-brand-panel::before {
    width: 520px;
    height: 520px;
    right: -190px;
    top: -190px;
}

.lp-login-brand-panel::after {
    width: 680px;
    height: 680px;
    left: -320px;
    bottom: -360px;
}

.lp-login-wordmark {
    width: 230px;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--lp-shadow-sm);
}

.lp-login-hero {
    max-width: 680px;
    margin: auto 0;
    position: relative;
    z-index: 2;
}

.lp-login-hero__eyebrow {
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6f1f8;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-login-hero h1 {
    max-width: 620px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.lp-login-hero p {
    max-width: 570px;
    margin: 22px 0 0;
    color: #d6e6ef;
    font-size: 17px;
    line-height: 1.6;
}

.lp-login-features {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lp-login-feature {
    min-height: 108px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.lp-login-feature .lp-icon {
    color: #9fdef0;
}

.lp-login-feature strong {
    margin-top: 15px;
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.lp-login-feature span {
    margin-top: 4px;
    display: block;
    color: #c8dae5;
    font-size: 11px;
}

.lp-login-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #b8cfdd;
    font-size: 11px;
}

.lp-login-form-panel {
    min-height: 100vh;
    padding: 38px clamp(28px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.lp-login-form-wrap {
    width: min(440px, 100%);
}

.lp-login-mobile-logo {
    width: 190px;
    margin: 0 0 42px;
    display: none;
}

.lp-login-form-wrap h2 {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: 30px;
    letter-spacing: -0.025em;
}

.lp-login-form-wrap > p {
    margin: 8px 0 28px;
    color: var(--lp-text-muted);
}

.lp-login-form {
    display: grid;
    gap: 17px;
}

.lp-password-field {
    position: relative;
}

.lp-password-field .lp-input {
    padding-right: 48px;
}

.lp-password-toggle {
    position: absolute;
    right: 6px;
    bottom: 1px;
}

.lp-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lp-login-link {
    color: var(--lp-primary-700);
    font-size: 12px;
    font-weight: 700;
}

.lp-login-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
}

.lp-login-help {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 12px;
    text-align: center;
}

.lp-login-help a {
    color: var(--lp-primary-700);
    font-weight: 750;
}

.lp-prototype-index {
    min-height: 100vh;
    padding: 48px 24px;
    background: radial-gradient(circle at top right, #dff3f9, transparent 34%), var(--lp-background);
}

.lp-index-wrap {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.lp-index-brand {
    width: 220px;
    margin-bottom: 36px;
}

.lp-index-header {
    max-width: 760px;
}

.lp-index-header h1 {
    margin: 0;
    color: var(--lp-text-strong);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.lp-index-header p {
    margin: 16px 0 0;
    color: var(--lp-text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.lp-index-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lp-index-card {
    min-height: 230px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lp-shadow-sm);
    transition: 180ms ease;
}

.lp-index-card:hover {
    border-color: var(--lp-primary-300);
    box-shadow: var(--lp-shadow-md);
    transform: translateY(-4px);
}

.lp-index-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--lp-primary-700);
    background: var(--lp-primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-index-card h2 {
    margin: 22px 0 8px;
    color: var(--lp-text-strong);
    font-size: 20px;
}

.lp-index-card p {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 13px;
}

.lp-index-card__link {
    margin-top: auto;
    padding-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-primary-700);
    font-weight: 750;
}

.lp-index-note {
    margin-top: 24px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #b8e4f1;
    border-radius: 14px;
    color: #23566b;
    background: #eff9fc;
}

.lp-index-note strong {
    color: #0c5278;
}

.lp-index-note p {
    margin: 2px 0 0;
    font-size: 12px;
}

.lp-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
    background: rgba(15, 23, 42, 0.42);
}

.lp-mobile-overlay.is-open {
    display: block;
}

@media (max-width: 1180px) {
    .lp-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .lp-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-filter-grid .lp-page-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .lp-shell,
    .lp-shell.is-collapsed {
        grid-template-columns: 1fr;
    }

    .lp-main {
        grid-column: 1;
    }

    .lp-sidebar,
    .lp-shell.is-collapsed .lp-sidebar {
        width: min(290px, calc(100vw - 48px));
        transform: translateX(-105%);
        box-shadow: var(--lp-shadow-md);
    }

    .lp-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .lp-shell.is-collapsed .lp-brand__full {
        display: block;
    }

    .lp-shell.is-collapsed .lp-brand__compact {
        display: none;
    }

    .lp-shell.is-collapsed .lp-brand {
        padding: 12px 18px;
        justify-content: space-between;
    }

    .lp-shell.is-collapsed .lp-sidebar-toggle {
        display: inline-flex;
    }

    .lp-shell.is-collapsed .lp-nav__item {
        padding: 0 12px;
        justify-content: flex-start;
    }

    .lp-shell.is-collapsed .lp-nav__label,
    .lp-shell.is-collapsed .lp-nav__badge,
    .lp-shell.is-collapsed .lp-user-card__text,
    .lp-shell.is-collapsed .lp-user-card .lp-icon-button {
        display: block;
    }

    .lp-shell.is-collapsed .lp-user-card {
        padding: 10px;
        justify-content: flex-start;
        background: var(--lp-surface-muted);
    }

    .lp-mobile-menu {
        display: inline-flex;
    }

    .lp-topbar {
        padding: 0 18px;
    }

    .lp-content {
        padding: 22px 18px;
    }

    .lp-login-page {
        grid-template-columns: 1fr;
    }

    .lp-login-brand-panel {
        display: none;
    }

    .lp-login-form-panel {
        padding: 30px 22px;
    }

    .lp-login-mobile-logo {
        display: block;
    }

    .lp-index-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .lp-page-header {
        flex-direction: column;
    }

    .lp-page-actions,
    .lp-page-actions .lp-button {
        width: 100%;
    }

    .lp-kpi-grid,
    .lp-filter-grid {
        grid-template-columns: 1fr;
    }

    .lp-card__header,
    .lp-toolbar,
    .lp-table-footer,
    .lp-login-options {
        align-items: stretch;
        flex-direction: column;
    }

    .lp-chart-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .lp-search {
        width: 100%;
    }

    .lp-activity-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .lp-activity-item__time {
        grid-column: 2;
    }

    .lp-table-footer {
        align-items: flex-start;
    }

    .lp-login-features {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-app *,
    .lp-app *::before,
    .lp-app *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================================================== */
/* LotaProtein v0.2 - pantallas financieras y administrativas                */
/* ========================================================================== */

.lp-button--success { color:#fff; background:var(--lp-success); box-shadow:0 4px 12px rgba(19,138,91,.18); }
.lp-button--success:hover { background:#0f704b; }
.lp-button--warning { color:#704000; border-color:#f1c777; background:#ffcf66; }
.lp-button--warning:hover { background:#f6bd3e; }
.lp-badge--info { color:#175b9b; border-color:#b9d9f5; background:var(--lp-info-soft); }
.lp-badge--no-dot::before { display:none; }
.lp-th-right { display:block; text-align:right; }
.lp-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.lp-helper-text { color:var(--lp-text-muted); font-size:12px; }
.lp-divider { height:1px; margin:18px 0; background:var(--lp-border); }
.lp-card__body--flush { padding:0; }
.lp-card__header--tabs { padding-block:0; min-height:64px; }
.lp-filter-grid--4 { grid-template-columns:repeat(3,minmax(0,1fr)) auto; }
.lp-filter-grid--5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
.lp-filter-grid--auto { grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) auto; }
.lp-filter-actions { display:flex; align-items:flex-end; justify-content:flex-end; min-height:40px; gap:8px; }
.lp-filter-footer { margin-top:14px; display:flex; justify-content:flex-end; }
.lp-form-grid { display:grid; gap:14px; }
.lp-form-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.lp-form-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.lp-form-grid--narrow { max-width:820px; }
.lp-search--full { width:100%; }
.lp-search--wide { width:min(520px,100%); }
.lp-table--dense th,.lp-table--dense td { padding:10px 12px; }
.lp-table--logs .lp-endpoint { color:#a32539; background:#fff5f6; border-radius:6px; padding:3px 6px; }
.lp-table--actions th:last-child,.lp-table--actions td:last-child { position:sticky; right:0; z-index:2; background:#fff; box-shadow:-8px 0 16px rgba(16,24,40,.04); }
.lp-table--actions th:last-child { background:#f7f9fb; }
.lp-table--actions tbody tr:hover td:last-child { background:#f8fbfd; }
.lp-user-cell { display:flex; align-items:center; gap:10px; }
.lp-user-cell strong,
.lp-user-cell > div > span { display:block; }
.lp-user-cell > div > span { color:var(--lp-text-muted); font-size:11px; margin-top:2px; }
.lp-user-avatar--table { width:34px; height:34px; font-size:11px; }
.lp-user-avatar {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-align: center;
	margin: 0;
}
.lp-check--compact { gap:0; }
.lp-workspace-card { margin-bottom:16px; }
.lp-workspace-toolbar,.lp-capture-header { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
.lp-workspace-toolbar > .lp-form-grid,.lp-capture-header > .lp-form-grid { flex:1; }
.lp-workspace-actions { display:flex; align-items:flex-end; gap:12px; }
.lp-stat-inline { padding:0 14px; min-height:40px; display:flex; align-items:center; gap:8px; border:1px solid var(--lp-border); border-radius:9px; background:var(--lp-surface-muted); }
.lp-stat-inline__label { color:var(--lp-text-muted); font-size:12px; }
.lp-stat-inline strong { color:var(--lp-primary-700); font-size:18px; }
.lp-assignment-summary { margin-bottom:18px; padding:14px; display:flex; align-items:center; gap:12px; border:1px solid var(--lp-border); border-radius:12px; background:var(--lp-surface-muted); }
.lp-assignment-summary > div { flex:1; }
.lp-assignment-summary strong,.lp-assignment-summary span { display:block; }
.lp-assignment-summary span { color:var(--lp-text-muted); font-size:12px; }
.lp-assignment-list { margin-top:14px; display:grid; gap:10px; }
.lp-assignment-card { padding:13px 14px; display:flex; align-items:center; gap:12px; border:1px solid var(--lp-border); border-radius:11px; cursor:pointer; }
.lp-assignment-card:hover { border-color:var(--lp-primary-300); background:var(--lp-primary-50); }
.lp-assignment-card input { width:18px; height:18px; accent-color:var(--lp-primary); }
.lp-assignment-card > span { flex:1; }
.lp-assignment-card strong,.lp-assignment-card small { display:block; }
.lp-assignment-card small { margin-top:3px; color:var(--lp-text-muted); }
.lp-modal--sm { width:min(420px,100%); }
.lp-modal--md { width:min(560px,100%); }
.lp-modal--lg { width:min(720px,100%); }
.lp-modal--xl { width:min(940px,100%); }
.lp-alert { margin-bottom:16px; padding:13px 14px; display:flex; align-items:flex-start; gap:10px; border:1px solid; border-radius:11px; }
.lp-alert strong,.lp-alert p { display:block; margin:0; }
.lp-alert p { margin-top:3px; font-size:12px; }
.lp-alert--info { color:#175b9b; border-color:#c7e1f7; background:var(--lp-info-soft); }
.lp-alert--warning { color:#7d4b00; border-color:#f3d58f; background:var(--lp-warning-soft); }
.lp-panel { border:1px solid var(--lp-border); border-radius:12px; overflow:hidden; }
.lp-panel--soft { background:#f8fbfd; }
.lp-panel__header { padding:12px 14px; border-bottom:1px solid var(--lp-border); color:var(--lp-text-strong); }
.lp-panel__body { padding:14px; }
.lp-phase-list { margin-top:16px; position:relative; display:grid; gap:0; }
.lp-phase-list::before { content:""; position:absolute; top:20px; bottom:20px; left:19px; width:2px; background:var(--lp-border); }
.lp-phase-item { position:relative; display:grid; grid-template-columns:40px 1fr; gap:12px; padding:10px 0; }
.lp-phase-item__marker { width:40px; height:40px; z-index:1; display:flex; align-items:center; justify-content:center; border:2px solid var(--lp-primary-300); border-radius:50%; color:var(--lp-primary-700); background:#fff; font-weight:800; }
.lp-phase-item__marker.is-closed { color:#067647; border-color:#98d7bb; background:var(--lp-success-soft); }
.lp-phase-item__body { padding:14px; border:1px solid var(--lp-border); border-radius:12px; background:#fff; }
.lp-phase-item__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lp-phase-item__heading strong,.lp-phase-item__heading span { display:block; }
.lp-phase-item__heading strong { color:var(--lp-text-strong); }
.lp-phase-item__heading span { margin-top:3px; color:var(--lp-text-muted); font-size:12px; }
.lp-phase-item__actions { margin-top:12px; display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.lp-tabs { display:flex; align-items:flex-end; gap:4px; overflow-x:auto; border-bottom:1px solid var(--lp-border); }
.lp-tabs--in-header { border-bottom:0; align-self:stretch; }
.lp-tab { min-height:44px; padding:0 14px; border:0; border-bottom:3px solid transparent; color:var(--lp-text-muted); background:transparent; cursor:pointer; display:inline-flex; align-items:center; gap:7px; font-weight:700; white-space:nowrap; }
.lp-tab:hover { color:var(--lp-primary-700); background:var(--lp-primary-50); }
.lp-tab.is-active { color:var(--lp-primary-700); border-bottom-color:var(--lp-primary); background:#fff; }
.lp-tab .lp-badge { min-height:20px; padding:2px 7px; }
.lp-tab-panel { display:none; }
.lp-tab-panel.is-active { display:block; }
.lp-capture-card .lp-card__body { padding:20px; }
.lp-capture-header { margin-bottom:16px; }
.lp-capture-meta,.lp-status-strip { margin:12px 0; padding:10px 12px; display:flex; align-items:center; justify-content:flex-end; gap:20px; flex-wrap:wrap; color:var(--lp-text-muted); font-size:12px; background:var(--lp-surface-muted); border-radius:9px; }
.lp-status-strip { justify-content:flex-start; }
.lp-matrix-toolbar { padding:14px 0; display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }
.lp-matrix-toolbar > .lp-form-grid { flex:1; }
.lp-matrix-toolbar__actions { display:flex; align-items:center; gap:10px; }
.lp-switch { display:inline-flex; align-items:center; gap:8px; color:var(--lp-text); font-size:12px; font-weight:650; cursor:pointer; }
.lp-switch input { position:absolute; opacity:0; }
.lp-switch span { width:34px; height:20px; padding:2px; position:relative; border-radius:999px; background:#cfd6df; transition:.16s ease; }
.lp-switch span::after { content:""; width:16px; height:16px; display:block; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.16s ease; }
.lp-switch input:checked + span { background:var(--lp-primary); }
.lp-switch input:checked + span::after { transform:translateX(14px); }
.lp-matrix-shell { width:100%; max-height:698px; overflow:auto; border:1px solid var(--lp-border); border-radius:12px; background:#fff; }
.lp-matrix-shell--tall { max-height:620px; }
/* Fullscreen real lo maneja .lp-matrix-fs-root (lp-matrix-fs.js); no fijar el shell suelto. */
.lp-matrix-shell.is-fullscreen { max-height:none; }
.lp-matrix { width:100%; min-width:1480px; border-collapse:separate; border-spacing:0; color:var(--lp-text); font-size:12px; }
.lp-matrix th,.lp-matrix td { min-width:94px; height:42px; padding:6px 8px; border-right:1px solid var(--lp-border); border-bottom:1px solid var(--lp-border); text-align:right; vertical-align:middle; background:#fff; }
.lp-matrix th { position:sticky; top:0; z-index:5; color:#536071; background:#f7f9fb; font-size:10px; font-weight:800; text-align:center; text-transform:uppercase; }
.lp-matrix th:first-child,.lp-matrix td:first-child { min-width:300px; text-align:left; }
.lp-matrix__sticky { position:sticky; left:0; z-index:4; box-shadow:8px 0 12px rgba(16,24,40,.035); }
.lp-matrix thead .lp-matrix__sticky { z-index:8; background:#f7f9fb; }
.lp-matrix__group td { color:var(--lp-text-strong); font-weight:800; text-align:left; }
.lp-matrix__group--section td { background:#eaf5fa; }
.lp-matrix__group--category td { padding-left:26px; background:#f5f9fb; }
.lp-matrix__account { color:var(--lp-text-strong); font-weight:600; }
.lp-matrix-input { width:100%; min-width:78px; height:32px; padding:5px 7px; border:1px solid #ccd8e3; border-radius:7px; color:#6c3df0; background:#fff; text-align:right; }
.lp-matrix-input:focus { border-color:var(--lp-primary); box-shadow:0 0 0 3px rgba(0,125,181,.12); }
.lp-matrix__value { font-variant-numeric:tabular-nums; }
.lp-matrix__value.is-positive { color:#067647; background:#f0faf5; font-weight:700; }
.lp-matrix__value.is-negative { color:#b42318; background:#fff4f3; font-weight:700; }
.lp-tree-toggle { width:26px; height:26px; margin-right:6px; padding:0; border:0; border-radius:6px; color:var(--lp-primary-700); background:transparent; vertical-align:middle; }
.lp-tree-toggle:hover { background:rgba(0,125,181,.1); }
.lp-sticky-actions { margin-top:14px; padding:12px 14px; position:sticky; bottom:0; z-index:8; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--lp-border); border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 -8px 20px rgba(16,24,40,.05); backdrop-filter:blur(8px); }
.lp-save-state { display:flex; align-items:center; gap:10px; color:var(--lp-success); }
.lp-save-state span,.lp-save-state strong,.lp-save-state small { display:block; }
.lp-save-state small { margin-top:2px; color:var(--lp-text-muted); }
.lp-matrix-legend { padding:12px 0 0; display:flex; align-items:center; gap:18px; color:var(--lp-text-muted); font-size:12px; }
.lp-matrix-legend span { display:inline-flex; align-items:center; gap:6px; }
.lp-matrix-legend i { width:10px; height:10px; border-radius:3px; }
.lp-matrix-legend i.is-positive { background:#39a979; }
.lp-matrix-legend i.is-negative { background:#e4665f; }
.lp-dropzone { margin-bottom:16px; min-height:190px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:2px dashed #b8c5d2; border-radius:14px; color:var(--lp-text-muted); background:#f9fbfc; text-align:center; }
.lp-dropzone strong { color:var(--lp-text-strong); }
.lp-dropzone .lp-button { margin-top:8px; }
.lp-row-unit { display:block; margin-top:3px; color:var(--lp-text-subtle); font-size:10px; font-weight:500; }
.lp-driver-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.lp-driver-group { overflow:hidden; border:1px solid var(--lp-border); border-radius:14px; background:#fff; box-shadow:var(--lp-shadow-xs); }
.lp-driver-group__header { padding:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--lp-border); background:#f8fbfd; }
.lp-driver-group__header > div { display:flex; align-items:center; gap:10px; }
.lp-driver-group__icon { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:10px; color:var(--lp-primary); background:var(--lp-primary-100); }
.lp-driver-group h3,.lp-driver-group p { margin:0; }
.lp-driver-group h3 { color:var(--lp-text-strong); font-size:15px; }
.lp-driver-group p { margin-top:3px; color:var(--lp-text-muted); font-size:11px; }
.lp-driver-group__items { display:grid; }
.lp-driver-item { min-height:58px; padding:9px 12px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--lp-border); }
.lp-driver-item:hover { background:#fbfdfe; }
.lp-drag-handle { color:var(--lp-text-subtle); cursor:grab; }
.lp-driver-item__main { min-width:0; flex:1; }
.lp-driver-item__main strong,.lp-driver-item__main span { display:block; }
.lp-driver-item__main strong { color:var(--lp-text-strong); font-size:12px; }
.lp-driver-item__main span { margin-top:2px; color:var(--lp-text-muted); font-size:10px; }
.lp-add-inline { width:100%; min-height:42px; border:0; color:var(--lp-primary-700); background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; font-weight:700; }
.lp-add-inline:hover { background:var(--lp-primary-50); }
.lp-code-editor { font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; color:#4d2eb5; background:#f8f7ff; }
.lp-version-pill { padding:5px 10px; border-radius:999px; color:var(--lp-primary-700); background:var(--lp-primary-100); font-size:11px; font-weight:800; }
.lp-index-summary { margin:22px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.lp-index-summary > div { padding:16px; border:1px solid var(--lp-border); border-radius:12px; background:#fff; text-align:center; }
.lp-index-summary strong,.lp-index-summary span { display:block; }
.lp-index-summary strong { color:var(--lp-primary-700); font-size:24px; }
.lp-index-summary span { color:var(--lp-text-muted); font-size:11px; }
.lp-index-card__group { color:var(--lp-primary-700); font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }

@media (max-width:1300px) {
    .lp-filter-grid--5 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .lp-driver-admin-grid { grid-template-columns:1fr; }
}
@media (max-width:1050px) {
    .lp-workspace-toolbar,.lp-capture-header { align-items:stretch; flex-direction:column; }
    .lp-workspace-actions { justify-content:flex-end; }
    .lp-form-grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
    .lp-filter-grid--4,.lp-filter-grid--5,.lp-filter-grid--auto,.lp-form-grid--2,.lp-form-grid--3 { grid-template-columns:1fr; }
    .lp-filter-actions,.lp-workspace-actions { justify-content:stretch; }
    .lp-filter-actions .lp-button,.lp-workspace-actions .lp-button { flex:1; }
    .lp-capture-meta,.lp-status-strip { justify-content:flex-start; gap:8px 14px; }
    .lp-matrix-toolbar,.lp-sticky-actions { align-items:stretch; flex-direction:column; }
    .lp-matrix-toolbar__actions { justify-content:space-between; }
    .lp-sticky-actions .lp-page-actions { width:100%; }
    .lp-sticky-actions .lp-button { flex:1; }
    .lp-index-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.lp-index-actions { margin-top:20px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
