/* UI V2 structure:
   1. Base ERP surfaces and heroes
   2. Module navigation, cards, tables and badges
   3. Forms, buttons, alerts and report helpers
   4. Auth and profile shell
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0891b2;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #dbe3ef;
}

.erp-page {
    padding: 18px 22px 28px;
    background: #eef4fb;
    min-height: 100vh;
}

.erp-page-heading {
    margin-bottom: 10px;
}

.erp-system-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #ffffff;
}

.erp-hero {
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 65%, #0284c7);
    border: 0 !important;
    box-shadow: none;
    color: #ffffff;
}

.erp-hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.erp-hero-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.erp-hero-center {
    font-weight: 900;
    text-align: center;
    min-width: 0;
}

.erp-hero-right {
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.erp-hero-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0 !important;
}

.erp-hero-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.erp-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.erp-hero-nav {
    margin: 0;
    padding: 0;
    border-bottom: 0;
    scrollbar-color: rgba(255, 255, 255, 0.42) transparent;
}

.erp-hero-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.42);
}

.erp-hero-nav .erp-nav-pill {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
}

.erp-hero-nav .module-action-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    gap: 7px;
    width: 100%;
    overflow-x: visible;
}

.erp-hero-nav .module-action-group,
.erp-hero-nav .module-action-group--base {
    display: contents;
}

.erp-hero-nav .module-action-group--base {
    padding-left: 0;
    border-left: 0;
}

.erp-hero-nav .nexus-action-btn,
.erp-hero-nav .btn,
.erp-hero-nav .btn-light,
.erp-hero-nav .btn-primary,
.erp-hero-nav .btn-secondary,
.erp-hero-nav .nexus-button {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    min-height: 44px;
    padding: 7px 10px !important;
    gap: 7px;
    border-radius: 13px !important;
    font-size: 12px !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.erp-hero-nav .erp-nav-pill:hover,
.erp-hero-nav .erp-nav-pill.active,
.erp-hero-nav .erp-nav-action,
.erp-hero-nav .nexus-action-btn--primary,
.erp-hero-nav .nexus-action-btn:hover,
.erp-hero-nav .btn:hover,
.erp-hero-nav .nexus-button:hover {
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.erp-hero-nav .nexus-action-btn__icon,
.erp-hero-nav i {
    color: #bfdbfe;
}

.dashboard-main-hero .erp-hero {
    margin: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.erp-production-status .erp-hero {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.erp-production-status .erp-hero-nav {
    margin-top: 18px;
}

.erp-production-hero,
.erp-production-hero .erp-hero-body,
.erp-production-hero .erp-hero-actions {
    border-top: 0 !important;
}

.erp-production-hero hr {
    display: none !important;
}

.erp-production-hero {
    padding: 20px 24px !important;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 65%, #0284c7) !important;
    border: 0 !important;
    box-shadow: none;
    color: #ffffff;
}

.erp-hero-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.erp-hero-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-hero-location {
    font-weight: 900;
    text-align: center;
}

.erp-hero-location--link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    justify-self: center;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.erp-hero-location--link:hover {
    color: #dbeafe;
    text-decoration: none;
}

.erp-hero-location--link:hover .module-header__dashboard {
    border-bottom-color: rgba(219, 234, 254, 0.9);
}

.module-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font: inherit;
}

.module-header--link {
    cursor: pointer;
    text-decoration: none;
}

.module-header--link:hover {
    color: #dbeafe;
    text-decoration: none;
}

.module-header__dashboard {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.module-header--link:hover .module-header__dashboard {
    color: #dbeafe;
    text-decoration: none;
    border-bottom-color: rgba(219, 234, 254, 0.9);
}

.module-header__current,
.module-header__module,
.module-header__separator,
.module-header__dashboard-text {
    color: inherit;
}

.erp-hero-user {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

.erp-hero-user--link {
    color: inherit;
    text-decoration: none;
}

.erp-hero-user--link:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.erp-production-hero .erp-hero-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
    padding-top: 0;
}

.erp-production-hero .erp-hero-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.erp-production-context {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
}

.erp-hero-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 7px;
    width: min(600px, 100%);
    justify-content: end;
}

.erp-hero-actions .module-action-bar {
    display: contents;
}

.erp-hero-actions .module-action-group,
.erp-hero-actions .module-action-group--base {
    display: contents;
}

.erp-hero-actions .module-action-group--base {
    padding-left: 0;
    border-left: 0;
}

.erp-hero-actions .erp-nav-pill,
.erp-hero-actions .nexus-action-btn {
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    width: 100%;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.erp-hero-actions .erp-nav-pill.active,
.erp-hero-actions .erp-nav-action,
.erp-hero-actions .nexus-action-btn--primary,
.erp-hero-actions .nexus-action-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
}

.erp-module-hero .erp-hero-actions .nexus-action-btn.erp-nav-action,
.erp-module-hero .erp-hero-actions .nexus-action-btn.nexus-action-btn--primary {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.erp-module-hero .erp-hero-actions .nexus-action-btn.erp-nav-action:hover,
.erp-module-hero .erp-hero-actions .nexus-action-btn.nexus-action-btn--primary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
}

.erp-system-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.erp-system-name {
    font-weight: 900;
    font-size: 14px;
}

a.erp-system-name {
    color: inherit;
    text-decoration: none;
}

a.erp-system-name:hover {
    color: #dbeafe;
    text-decoration: none;
}

.erp-system-version {
    background: #16a34a;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.erp-system-center {
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    min-width: 0;
}

.erp-system-right {
    font-size: 13px;
    opacity: 0.9;
    text-align: right;
    white-space: nowrap;
}

.erp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.erp-eyebrow {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #2563eb;
    text-transform: uppercase;
}

.erp-version {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
}

.erp-page-title {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.erp-page-subtitle {
    margin: 6px 0 0;
    color: #475569;
    font-size: 14px;
    max-width: 560px;
}

.erp-module-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    scrollbar-width: thin;
}

.erp-module-nav::-webkit-scrollbar {
    height: 5px;
}

.erp-module-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.erp-module-nav,
.module-action-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
}

.erp-nav-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.erp-nav-pill:hover {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

.erp-nav-pill.active,
.erp-nav-action,
.erp-module-nav .nexus-action-btn--primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.erp-card,
.nexus-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    padding: 16px;
    margin-bottom: 12px;
}

.erp-card-header,
.nexus-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.erp-section-label,
.nexus-panel-label {
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-card-title,
.nexus-section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.erp-table,
.nexus-table {
    width: 100%;
    margin-bottom: 0;
}

.erp-table thead th,
.nexus-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    border-bottom: 1px solid #dbe3ef;
    font-weight: 900;
}

.erp-table tbody td,
.nexus-table tbody td {
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
}

.erp-table tbody tr:hover,
.nexus-table tbody tr:hover {
    background: #f8fafc;
}

.erp-row-clickable {
    cursor: pointer;
}

.erp-badge,
.nexus-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.erp-badge-success,
.nexus-status-completed,
.nexus-status-finalizado,
.nexus-status-finalizada,
.nexus-status-activa {
    background: #dcfce7;
    color: #15803d;
}

.erp-badge-warning,
.nexus-status-in_progress,
.nexus-status-en_proceso,
.nexus-status-setup {
    background: #fef3c7;
    color: #b45309;
}

.erp-badge-danger,
.nexus-status-cancelled,
.nexus-status-cancelado,
.nexus-status-cancelada,
.nexus-status-anulada,
.nexus-status-inactiva {
    background: #fee2e2;
    color: #b91c1c;
}

.erp-empty-state,
.nexus-empty {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    color: #475569;
    background: #f8fafc;
}

body {
    background: var(--bg);
}

/* Auth and profile shell */
.erp-body {
    margin: 0;
    min-height: 100vh;
    background: #eef4fb;
    color: #0f172a;
    font-family: "Instrument Sans", "Figtree", Arial, sans-serif;
}

.erp-app-shell {
    min-height: 100vh;
    background: #eef4fb;
}

.erp-main-shell {
    min-height: 100vh;
}

.erp-page-content {
    padding: 22px;
}

.erp-topbar-copy {
    min-width: 0;
}

.erp-topbar-kicker {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-topbar-title {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.erp-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-topbar-user__meta {
    display: grid;
    gap: 2px;
    text-align: right;
}

.erp-topbar-user__meta strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.erp-topbar-user__meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.erp-user-menu {
    position: relative;
}

.erp-user-menu[open] .erp-user-menu__trigger {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.14);
}

.erp-user-menu[open] .erp-user-menu__caret {
    transform: rotate(180deg);
}

.erp-user-menu__trigger {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 10px 6px 8px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: 0.18s ease;
}

.erp-user-menu__trigger::-webkit-details-marker {
    display: none;
}

.erp-user-menu__trigger:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
}

.erp-user-menu__avatar,
.erp-user-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.erp-user-menu__avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
}

.erp-user-menu__avatar svg,
.erp-user-menu__icon svg,
.erp-user-menu__caret svg {
    width: 16px;
    height: 16px;
}

.erp-user-menu__avatar i,
.erp-user-menu__icon i {
    font-size: 16px;
    line-height: 1;
}

.erp-user-menu__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

.erp-user-menu__meta strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.erp-user-menu__meta span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.erp-user-menu__separator {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.erp-user-menu__caret {
    color: #2563eb;
    transition: transform 0.18s ease;
}

.erp-user-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(260px, 78vw);
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.erp-user-menu__panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    transform: rotate(45deg);
}

.erp-user-menu__form {
    margin: 0;
}

.erp-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    transition: 0.18s ease;
    cursor: pointer;
}

.erp-user-menu__item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.erp-user-menu__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.erp-user-menu__item--danger {
    color: #b91c1c;
}

.erp-user-menu__item--danger .erp-user-menu__icon {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.erp-user-menu__item--danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.erp-mobile-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.erp-mobile-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
}

.erp-page-intro {
    margin-bottom: 16px;
}

.erp-kicker,
.erp-card__label {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-section-title {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
}

.erp-section-subtitle {
    margin: 6px 0 0;
    max-width: 720px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.erp-stack {
    display: grid;
    gap: 14px;
}

.erp-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.erp-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.erp-card--danger {
    border-color: #fecaca;
    background: #fffafa;
}

.erp-form-shell {
    display: grid;
    gap: 12px;
}

.erp-auth-body {
    min-height: 100vh;
}

.erp-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #0284c7 100%);
}

.erp-auth-panel {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: center;
}

.erp-auth-brand {
    color: #ffffff;
}

.erp-auth-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.erp-auth-logo {
    width: 34px;
    height: 34px;
    color: #ffffff;
}

.erp-auth-kicker {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.erp-auth-title {
    margin: 6px 0 0;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.erp-auth-subtitle {
    max-width: 520px;
    margin: 10px 0 0;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 700;
}

.erp-auth-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 26px;
}

.erp-auth-card input[type="text"],
.erp-auth-card input[type="email"],
.erp-auth-card input[type="password"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    color: #0f172a;
}

.erp-auth-card label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.erp-auth-card a {
    color: #2563eb;
    font-weight: 800;
}

.erp-auth-card button,
.erp-auth-card .inline-flex {
    border-radius: 999px;
    font-weight: 900;
}

.erp-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background: #0f172a;
    color: #ffffff;
}

.erp-sidebar__brand {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.erp-brand-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.erp-brand-badge {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #2563eb;
    font-weight: 900;
}

.erp-brand-link small {
    display: block;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
}

.erp-sidebar__section {
    display: grid;
    gap: 8px;
}

.erp-sidebar__section--bottom {
    margin-top: auto;
}

.erp-sidebar__label {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-sidebar__nav {
    display: grid;
    gap: 8px;
}

.erp-nav-link {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.erp-nav-link:hover,
.erp-nav-link.is-active {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
    text-decoration: none;
}

.erp-nav-link__icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
}

.erp-nav-link--button {
    cursor: pointer;
    text-align: left;
}

@media (min-width: 1025px) {
    .erp-main-shell {
        padding-left: 260px;
    }
}

@media (max-width: 1024px) {
    .erp-mobile-toggle {
        display: flex;
    }

    .erp-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .erp-sidebar.is-open {
        transform: translateX(0);
    }

    .erp-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(15, 23, 42, 0.45);
    }
}

@media (max-width: 760px) {
    .erp-page-content {
        padding: 16px;
    }

    .erp-auth-panel {
        grid-template-columns: 1fr;
    }

    .erp-auth-title {
        font-size: 32px;
    }

    .erp-topbar-user__meta {
        display: none;
    }

    .erp-topbar {
        align-items: flex-start;
        padding: 10px 16px;
        height: auto;
    }

    .erp-topbar-right {
        margin-left: auto;
    }

    .erp-user-menu__trigger {
        padding-right: 8px;
    }

    .erp-user-menu__meta,
    .erp-user-menu__separator,
    .erp-user-menu__caret {
        display: none;
    }

    .erp-user-menu__panel {
        right: 0;
        width: min(240px, calc(100vw - 24px));
    }
}

.main-header.navbar {
    display: none;
}

.erp-topbar {
    height: 54px;
    background: #ffffff;
    border-bottom: 1px solid #dbe3ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.erp-topbar-left,
.erp-topbar-right {
    display: flex;
    align-items: center;
}

.erp-topbar-left {
    gap: 12px;
    min-width: 0;
}

.erp-topbar-right {
    gap: 12px;
}

.erp-menu-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.erp-menu-toggle:hover {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.erp-brand {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.erp-user {
    font-size: 14px;
    color: #64748b;
}

.content-wrapper {
    background: linear-gradient(180deg, #eef4ff 0%, #f4f6f9 260px) !important;
}

.card,
.nexus-panel,
.nexus-kpi-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.content-header {
    padding: 0 !important;
}

.nexus-header {
    padding: 0;
}

.erp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
}

.erp-title {
    font-size: 20px;
    font-weight: 800;
}

.erp-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.erp-context span {
    font-size: 13px;
}

.module-action-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.erp-module-nav .module-action-bar {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
}

.module-action-group,
.module-action-group--base {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    border-top: 0;
    padding-top: 0;
}

.module-action-group--base {
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.erp-actions-under-header {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 6px;
}

.nexus-action-btn {
    border-radius: 999px;
    white-space: nowrap;
    min-width: max-content;
    line-height: 1.2;
}

.nexus-action-btn--primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.nexus-action-btn:has(.fa-eye),
.btn:has(.fa-eye) {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.nexus-action-btn:has(.fa-eye) i,
.btn:has(.fa-eye) i {
    color: #2563eb !important;
}

.nexus-action-btn:has(.fa-eye):hover,
.btn:has(.fa-eye):hover {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #1d4ed8 !important;
}

.nexus-action-btn:has(.fa-pen),
.btn:has(.fa-pen),
.nexus-action-btn:has(.fa-pencil-alt),
.btn:has(.fa-pencil-alt) {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
    color: #9a3412 !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.12);
}

.nexus-action-btn:has(.fa-pen) i,
.btn:has(.fa-pen) i,
.nexus-action-btn:has(.fa-pencil-alt) i,
.btn:has(.fa-pencil-alt) i {
    color: #ea580c !important;
}

.nexus-action-btn:has(.fa-pen):hover,
.btn:has(.fa-pen):hover,
.nexus-action-btn:has(.fa-pencil-alt):hover,
.btn:has(.fa-pencil-alt):hover {
    background: #fed7aa !important;
    border-color: #fb923c !important;
    color: #7c2d12 !important;
}

.nexus-action-btn:has(.fa-trash),
.btn:has(.fa-trash) {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
}

.nexus-action-btn:has(.fa-trash) i,
.btn:has(.fa-trash) i {
    color: #dc2626 !important;
}

.nexus-action-btn:has(.fa-trash):hover,
.btn:has(.fa-trash):hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.nexus-action-btn:has(.fa-trash):hover i,
.btn:has(.fa-trash):hover i {
    color: #ffffff !important;
}

.nexus-action-btn:has(.fa-filter),
.btn:has(.fa-filter),
form[method="GET"] button.nexus-button[type="submit"] {
    background: #ecfdf5 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.12);
}

.nexus-action-btn:has(.fa-filter) i,
.btn:has(.fa-filter) i,
form[method="GET"] button.nexus-button[type="submit"] i {
    color: #16a34a !important;
}

.nexus-action-btn:has(.fa-filter):hover,
.btn:has(.fa-filter):hover,
form[method="GET"] button.nexus-button[type="submit"]:hover {
    background: #dcfce7 !important;
    border-color: #4ade80 !important;
    color: #15803d !important;
}

.nexus-action-btn:has(.fa-plus),
.nexus-action-btn:has(.fa-plus-circle),
.btn:has(.fa-plus),
.btn:has(.fa-plus-circle) {
    background: #f0fdfa !important;
    border-color: #5eead4 !important;
    color: #115e59 !important;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.12);
}

.nexus-action-btn:has(.fa-plus) i,
.nexus-action-btn:has(.fa-plus-circle) i,
.btn:has(.fa-plus) i,
.btn:has(.fa-plus-circle) i {
    color: #0d9488 !important;
}

.nexus-action-btn:has(.fa-plus):hover,
.nexus-action-btn:has(.fa-plus-circle):hover,
.btn:has(.fa-plus):hover,
.btn:has(.fa-plus-circle):hover {
    background: #ccfbf1 !important;
    border-color: #2dd4bf !important;
    color: #0f766e !important;
}

.nexus-action-btn:has(.fa-rotate-left),
.btn:has(.fa-rotate-left),
form[method="GET"] a.nexus-button {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.1);
}

.nexus-action-btn:has(.fa-rotate-left) i,
.btn:has(.fa-rotate-left) i,
form[method="GET"] a.nexus-button i {
    color: #64748b !important;
}

.nexus-action-btn:has(.fa-rotate-left):hover,
.btn:has(.fa-rotate-left):hover,
form[method="GET"] a.nexus-button:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.nexus-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.nexus-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #2563eb;
}

.nexus-kpi-card__top,
.nexus-kpi-card__footer {
    position: relative;
    z-index: 1;
}

.nexus-kpi-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.nexus-kpi-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
}

.nexus-kpi-card__footer {
    margin-top: 8px;
}

.nexus-kpi-card .nexus-panel-label {
    color: #475569;
}

.nexus-kpi-card .nexus-metric {
    color: #0f172a;
}

.nexus-panel.nexus-panel-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #0ea5e9 100%);
    border-color: transparent;
    color: #ffffff;
}

.nexus-panel.nexus-panel-primary .nexus-panel-label,
.nexus-panel.nexus-panel-primary .nexus-muted,
.nexus-panel.nexus-panel-primary .nexus-metric-sm {
    color: rgba(255, 255, 255, 0.92);
}

.kpi-card-primary,
.nexus-kpi-card--accent {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
}

.kpi-card-primary::before,
.nexus-kpi-card--accent::before {
    background: #2563eb;
}

.kpi-card-primary .nexus-kpi-card__icon,
.nexus-kpi-card--accent .nexus-kpi-card__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.kpi-card-warning {
    border-color: #fde68a;
    background: linear-gradient(145deg, #fffbeb, #ffffff);
}

.kpi-card-warning::before {
    background: #f59e0b;
}

.kpi-card-warning .nexus-kpi-card__icon {
    background: #fef3c7;
    color: #b45309;
}

.kpi-card-success {
    border-color: #bbf7d0;
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
}

.kpi-card-success::before {
    background: #16a34a;
}

.kpi-card-success .nexus-kpi-card__icon {
    background: #dcfce7;
    color: #15803d;
}

.kpi-card-danger {
    border-color: #fecaca;
    background: linear-gradient(145deg, #fff1f2, #ffffff);
}

.kpi-card-danger::before {
    background: #dc2626;
}

.kpi-card-danger .nexus-kpi-card__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.erp-production-status {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 65%, #0284c7);
    color: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.erp-production-status h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.erp-production-status .erp-context {
    margin-top: 0;
}

.erp-production-status span {
    margin-right: 12px;
    font-size: 13px;
    font-weight: 700;
}

.btn.nexus-button,
.btn {
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary.nexus-button,
button.btn-primary,
a.btn-primary {
    background: #eef2ff !important;
    border-color: #a5b4fc !important;
    color: #3730a3 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.btn-primary.nexus-button:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background: #e0e7ff !important;
    border-color: #818cf8 !important;
    color: #312e81 !important;
}

.btn-success.nexus-button,
button.btn-success,
a.btn-success {
    background: #ecfdf5 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.12);
}

.btn-success.nexus-button:hover,
button.btn-success:hover,
a.btn-success:hover {
    background: #dcfce7 !important;
    border-color: #4ade80 !important;
    color: #15803d !important;
}

.btn-secondary.nexus-button,
.btn-light.nexus-button,
.btn-outline-secondary.nexus-button,
button.btn-secondary,
button.btn-light,
button.btn-outline-secondary,
a.btn-secondary,
a.btn-light,
a.btn-outline-secondary {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.1);
}

.btn-secondary.nexus-button:hover,
.btn-light.nexus-button:hover,
.btn-outline-secondary.nexus-button:hover,
button.btn-secondary:hover,
button.btn-light:hover,
button.btn-outline-secondary:hover,
a.btn-secondary:hover,
a.btn-light:hover,
a.btn-outline-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.btn-outline-primary.nexus-button,
button.btn-outline-primary,
a.btn-outline-primary {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.btn-outline-primary.nexus-button:hover,
button.btn-outline-primary:hover,
a.btn-outline-primary:hover {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #1d4ed8 !important;
}

.btn-danger.nexus-button,
.btn-outline-danger.nexus-button,
button.btn-danger,
button.btn-outline-danger,
a.btn-danger,
a.btn-outline-danger {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
}

.btn-danger.nexus-button:hover,
.btn-outline-danger.nexus-button:hover,
button.btn-danger:hover,
button.btn-outline-danger:hover,
a.btn-danger:hover,
a.btn-outline-danger:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #7f1d1d !important;
}

.hero-card {
    margin-bottom: 15px;
    overflow: hidden;
    border: 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 65%, #0284c7);
    color: #fff;
}

.hero-card .card-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.hero-card h4 {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 900;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
}

.hero-card-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
    font-weight: 900;
}

.dashboard-main-hero .card-body {
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
}

.dashboard-main-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-shortcuts {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    min-width: 0;
    width: 100%;
}

.dashboard-shortcuts .nexus-shortcut {
    min-height: 58px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.dashboard-shortcuts .nexus-shortcut i {
    color: #bfdbfe;
}

.dashboard-shortcuts .nexus-shortcut:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dashboard-shortcuts .nexus-shortcut--primary {
    grid-column: auto;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dashboard-shortcuts .nexus-shortcut--primary i,
.dashboard-shortcuts .nexus-shortcut--primary:hover,
.dashboard-shortcuts .nexus-shortcut--primary:hover i {
    color: #fff;
}

.nx-eyebrow {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.production-dashboard-kpis {
    margin-bottom: 10px;
}

.production-dashboard-kpis .nexus-kpi-card {
    min-height: 96px;
    padding: 12px;
}

.production-dashboard-kpis .nexus-metric {
    font-size: 18px;
    line-height: 1.1;
}

.production-dashboard-kpis .nexus-muted {
    font-size: 12px;
}

.erp-kpi-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.erp-kpi-link:hover {
    color: inherit;
    text-decoration: none;
}

.erp-kpi-link:hover .nexus-kpi-card {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.nx-table th {
    color: #52637a;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nx-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.table-hover tbody tr:hover,
.nx-table tbody tr:hover {
    background: #f1f5f9;
    cursor: pointer;
}

.status-badge,
.nexus-chip {
    border-radius: 999px;
}

.nexus-status-finalizado,
.nexus-status-completed,
.nexus-status-activa {
    background: #dcfce7;
    color: #166534;
}

.nexus-status-en_proceso,
.nexus-status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.nexus-status-pendiente,
.nexus-status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.nexus-status-cancelado,
.nexus-status-cancelled,
.nexus-status-inactiva {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 992px) {
    .erp-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .erp-hero-meta,
    .erp-hero-body {
        align-items: flex-start;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .erp-hero-center,
    .erp-hero-right {
        text-align: left;
        white-space: normal;
    }

    .erp-production-hero .erp-hero-body {
        grid-template-columns: 1fr;
    }

    .erp-hero-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(112px, 1fr));
    }

    .erp-page-header {
        flex-direction: column;
    }

    .erp-module-nav {
        max-width: 100%;
        justify-content: flex-start;
    }

    .nexus-header {
        align-items: stretch;
    }

    .module-action-bar {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-card .card-body {
        grid-template-columns: 1fr;
    }

    .hero-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-main-hero .card-body {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcuts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .erp-header {
        align-items: flex-start;
    }

    .hero-card-grid {
        grid-template-columns: 1fr;
    }

    .erp-hero-top {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .erp-hero-location,
    .erp-hero-user {
        text-align: left;
    }

    .erp-hero-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcuts .nexus-shortcut--primary {
        grid-column: auto;
    }

    .production-dashboard-kpis .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.erp-mini-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 10px;
}

.erp-mini-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.erp-mini-progress.success .erp-mini-progress-fill {
    background: linear-gradient(90deg, #16a34a, #86efac);
}

.erp-mini-progress.warning .erp-mini-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.erp-mini-progress.danger .erp-mini-progress-fill {
    background: linear-gradient(90deg, #dc2626, #fecaca);
}

.erp-mini-progress.primary .erp-mini-progress-fill {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.alert {
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-weight: 700;
}

.alert-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.erp-validation-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
}

.erp-validation-summary span {
    color: #7f1d1d;
    font-size: 13px;
}

.form-group label {
    font-weight: 800;
    color: #0f172a;
}

.form-group:has(.form-control:required) label::after,
.form-group:has(select:required) label::after,
.form-group:has(textarea:required) label::after {
    content: " *";
    color: #dc2626;
    font-weight: 900;
}

.form-control:required,
select.form-control:required,
textarea.form-control:required {
    border-left: 4px solid #93c5fd;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.form-text,
.erp-field-help {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.invalid-feedback,
.text-danger {
    color: #b91c1c !important;
    font-size: 12px;
    font-weight: 800;
}

.nexus-action-disabled-note {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.erp-check-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.erp-check-item strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.erp-check-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
}

.erp-check-item.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.erp-check-item.is-ok .erp-check-icon {
    background: #dcfce7;
    color: #16a34a;
}

.erp-check-item.is-alert {
    border-color: #fecaca;
    background: #fff7f7;
}

.erp-check-item.is-alert .erp-check-icon {
    background: #fee2e2;
    color: #dc2626;
}

.reportes-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid #dbe3ef;
}

.reportes-nav-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.08);
}

.reportes-nav-pill:hover,
.reportes-nav-pill.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    text-decoration: none;
}

.reportes-nav-pill.active {
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.reportes-filter-panel {
    border-left: 4px solid #93c5fd;
}

.reportes-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.erp-hero-actions > .production-catalog-actions {
    grid-column: 1 / -1;
}

.erp-hero-actions .production-catalog-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
    width: min(620px, 100%);
}

.erp-hero-actions .production-catalog-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 58px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: none;
}

.erp-hero-actions .production-catalog-action:hover,
.erp-hero-actions .production-catalog-action.is-active {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(37, 99, 235, 0.72);
    color: #ffffff;
    text-decoration: none;
}

.erp-hero-actions .production-catalog-action i {
    flex: 0 0 auto;
    color: #dbeafe;
}

@media (max-width: 991.98px) {
    .erp-hero-actions .production-catalog-actions {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .erp-hero-actions .production-catalog-actions {
        grid-template-columns: 1fr;
    }
}
