:root {
    --bender-primary: #0a2f4f;
    --bender-primary-2: #114a7a;
    --bender-accent: #1f78c8;
    --bender-bg: #eef3f8;
    --bender-surface: #ffffff;
    --bender-border: #d6e0ea;
    --bender-text: #1f2937;
    --bender-muted: #6b7280;
    --bender-success: #198754;
    --bender-warning: #d39e00;
    --bender-danger: #c0392b;
    --bender-radius: 18px;
    --bender-shadow: 0 16px 40px rgba(10, 47, 79, 0.10);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.app-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f4f8fc 0%, #eef3f8 100%);
    color: var(--bender-text);
}

.layout {
    display: flex;
    min-height: calc(100vh - 78px);
}

.content {
    flex: 1;
    padding: 30px;
}

.topbar {
    min-height: 78px;
    background: linear-gradient(135deg, var(--bender-primary) 0%, var(--bender-primary-2) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(10, 47, 79, 0.22);
}

.topbar-left,
.topbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge,
.topbar-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #d8ebff 100%);
    color: var(--bender-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 1px rgba(10, 47, 79, 0.08);
}

.brand-title,
.topbar-brand-title {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle,
.topbar-brand-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.84rem;
    font-weight: 500;
}

.topbar-user,
.topbar-user-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.topbar-user-label {
    color: rgba(255,255,255,0.68);
    font-size: 0.72rem;
    margin-bottom: 2px;
}

.topbar-user-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
}

.btn-topbar,
.btn-topbar-logout {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none;
}

.btn-topbar:hover,
.btn-topbar-logout:hover {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.bender-sidebar,
.sidebar {
    width: 290px;
    background: linear-gradient(180deg, #0b253c 0%, #113652 100%);
    color: #ffffff;
    min-height: calc(100vh - 78px);
    padding: 22px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-title,
.sidebar-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.sidebar-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.68);
}

.sidebar-menu,
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu .nav-link,
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.88);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.22s ease;
    text-decoration: none;
}

.sidebar-menu .nav-link:hover,
.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-bottom,
.sidebar-footer-box {
    margin-top: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.sidebar-bottom-title,
.sidebar-footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-bottom-text,
.sidebar-footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    color: #18324a;
    margin-top: 0;
}

.text-muted {
    color: var(--bender-muted) !important;
}

.card {
    border: 1px solid var(--bender-border);
    border-radius: var(--bender-radius);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--bender-shadow);
}

.card-kpi {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e6f2;
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.card-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bender-primary), var(--bender-accent));
}

.card-kpi .small {
    color: var(--bender-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.card-kpi .fs-3,
.card-kpi .fs-4 {
    color: var(--bender-primary);
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(180deg, #eaf3fb 0%, #e1edf8 100%);
    color: var(--bender-primary);
    font-size: 0.85rem;
    font-weight: 800;
    border-bottom: 1px solid #d3e1ee;
    white-space: nowrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.table td {
    border-color: #edf2f7;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f6fbff;
}

.badge {
    border-radius: 999px;
    padding: 0.55em 0.8em;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
}

.btn-dark {
    background: linear-gradient(135deg, var(--bender-primary) 0%, var(--bender-primary-2) 100%);
    border: none;
    color: #fff;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #082842 0%, #0f426d 100%);
    color: #fff;
}

.btn-outline-dark {
    border-color: #b8c8d7;
    color: var(--bender-primary);
}

.btn-outline-dark:hover {
    background: var(--bender-primary);
    border-color: var(--bender-primary);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--bender-accent);
    color: var(--bender-accent);
}

.btn-outline-primary:hover {
    background: var(--bender-accent);
    color: #fff;
}

.form-control,
.form-select,
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #ced8e3;
    background: #ffffff;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.ts-wrapper.focus .ts-control {
    border-color: #87b9e5;
    box-shadow: 0 0 0 0.25rem rgba(31, 120, 200, 0.15);
}

.ts-dropdown {
    border-radius: 12px;
    border: 1px solid #ced8e3;
    box-shadow: var(--bender-shadow);
}

.ts-dropdown .active {
    background-color: #e9f4ff;
    color: var(--bender-primary);
}

.alert {
    border-radius: 14px;
    font-weight: 600;
}

.alert-secondary {
    background: #f2f7fb;
    border: 1px solid #dce8f2;
    color: #4f6071;
}

.alert-success {
    background: #edf8f1;
    border: 1px solid #cde9d7;
    color: #1f6a3b;
}

.alert-danger {
    background: #fff1f0;
    border: 1px solid #f0c9c5;
    color: #9f2f25;
}

.list-group-item {
    background: transparent;
    border-color: #edf2f7;
}

.firma-box {
    border: 2px dashed #b9d0e5;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 14px;
}

#signature-pad {
    width: 100%;
    height: 220px;
    display: block;
    background: #fff;
    border-radius: 12px;
    cursor: crosshair;
}

canvas {
    max-width: 100%;
}

.bender-hero {
    background: linear-gradient(135deg, rgba(10,47,79,1) 0%, rgba(17,74,122,1) 100%);
    border-radius: 22px;
    padding: 28px 30px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(10, 47, 79, 0.20);
    position: relative;
    overflow: hidden;
}

.bender-hero::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
}

.page-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.page-hero-text {
    color: rgba(255,255,255,0.80);
    max-width: 760px;
}

.retiro-card {
    border-radius: 22px;
    border: 1px solid #d7e3ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 40px rgba(10, 47, 79, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #18324a;
}

.section-subtitle {
    color: #6b7280;
    font-size: 0.92rem;
}

.section-badge {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a2f4f 0%, #1f78c8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(10, 47, 79, 0.18);
}

.retiro-table-wrap {
    border: 1px solid #dce6ef;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.retiro-table thead th {
    background: linear-gradient(180deg, #eaf3fb 0%, #e1edf8 100%);
    color: #0a2f4f;
    font-size: 0.85rem;
    font-weight: 800;
    border-bottom: 1px solid #d6e3ef;
}

.retiro-readonly {
    background: #f5f9fc !important;
    color: #33516e;
    font-weight: 700;
}

.retorno-hint {
    color: #5f7387;
    font-size: 0.88rem;
    font-weight: 500;
}

.firma-panel {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
    border: 1px solid #dbe6f0;
    border-radius: 18px;
    padding: 16px;
}

.retiro-summary {
    border-radius: 22px;
    border: 1px solid #d7e3ef;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 18px 40px rgba(10, 47, 79, 0.10);
}

.sticky-summary {
    position: sticky;
    top: 24px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dceeff;
    color: #0f3d66;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 8px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.summary-title {
    color: #18324a;
    font-weight: 800;
}

.summary-text {
    color: #6b7280;
    font-size: 0.92rem;
}

.summary-box {
    background: #f6faff;
    border: 1px solid #dce7f1;
    border-radius: 16px;
    padding: 14px 16px;
}

.summary-label {
    color: #6b7280;
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.summary-value {
    color: #18324a;
    font-size: 1rem;
    font-weight: 800;
}

.summary-checklist {
    display: grid;
    gap: 10px;
}

.summary-check-item {
    background: #f8fbfe;
    border: 1px solid #e2ebf3;
    border-radius: 14px;
    padding: 11px 13px;
    font-weight: 600;
    color: #29445d;
}

.summary-note {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .sticky-summary {
        position: static;
    }
}

@media (max-width: 992px) {
    .layout {
        flex-direction: column;
    }

    .bender-sidebar,
    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-hero-content,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-title {
        font-size: 1.6rem;
    }

    .brand-subtitle,
    .topbar-user-label {
        display: none;
    }

    .content {
        padding: 16px;
    }
}

/* =========================================================
   STOCK PRO - INDUSTRIAS BENDER
========================================================= */

.stock-filter-card {
    border-radius: 20px;
    border: 1px solid #dbe6ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.stock-kpi-card {
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 16px 30px rgba(10, 47, 79, 0.08);
    overflow: hidden;
    position: relative;
}

.stock-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
}

.stock-kpi-ok::before {
    background: linear-gradient(90deg, #198754 0%, #43b97f 100%);
}

.stock-kpi-low::before {
    background: linear-gradient(90deg, #d39e00 0%, #f2bf3b 100%);
}

.stock-kpi-critical::before {
    background: linear-gradient(90deg, #c0392b 0%, #ef6a5f 100%);
}

.stock-kpi-neutral::before {
    background: linear-gradient(90deg, #5f7387 0%, #90a4b8 100%);
}

.stock-kpi-label {
    color: #607284;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.stock-kpi-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #18324a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stock-kpi-sub {
    color: #7a8795;
    font-size: 0.88rem;
}

.stock-pro-card {
    border-radius: 22px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 35px rgba(10, 47, 79, 0.08);
    transition: transform 0.20s ease, box-shadow 0.20s ease;
}

.stock-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(10, 47, 79, 0.12);
}

.stock-state-ok {
    border-top: 5px solid #198754;
}

.stock-state-low {
    border-top: 5px solid #d39e00;
}

.stock-state-critical {
    border-top: 5px solid #c0392b;
}

.stock-state-inactive {
    border-top: 5px solid #7b8794;
}

.stock-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.stock-card-code {
    color: #6d7b89;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}

.stock-card-title {
    color: #18324a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stock-card-meta {
    color: #708090;
    font-size: 0.88rem;
    line-height: 1.45;
}

.stock-status-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-ok {
    background: #e9f8ef;
    color: #198754;
    border: 1px solid #bce5ca;
}

.badge-low {
    background: #fff6df;
    color: #b37e00;
    border: 1px solid #efd28b;
}

.badge-critical {
    background: #fff0ee;
    color: #c0392b;
    border: 1px solid #efbeb8;
}

.badge-inactive {
    background: #f1f4f7;
    color: #667786;
    border: 1px solid #d6dee6;
}

.stock-main-data {
    background: linear-gradient(180deg, #f5f9fc 0%, #eef5fb 100%);
    border: 1px solid #dbe6ef;
    border-radius: 18px;
    padding: 18px 18px 16px;
}

.stock-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #0f3d66;
    line-height: 1.05;
}

.stock-amount span {
    font-size: 1rem;
    font-weight: 700;
    color: #6a7b8c;
}

.stock-main-label {
    margin-top: 6px;
    color: #758595;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-bar-wrap {
    padding-top: 4px;
}

.stock-bar {
    width: 100%;
    height: 12px;
    background: #e7eef5;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d8e3ec;
}

.stock-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.fill-ok {
    background: linear-gradient(90deg, #198754 0%, #43b97f 100%);
}

.fill-low {
    background: linear-gradient(90deg, #d39e00 0%, #f1c24a 100%);
}

.fill-critical {
    background: linear-gradient(90deg, #c0392b 0%, #ef6a5f 100%);
}

.fill-inactive {
    background: linear-gradient(90deg, #7b8794 0%, #a4b2bf 100%);
}

.stock-mini-box {
    background: #f9fbfd;
    border: 1px solid #e1eaf2;
    border-radius: 16px;
    padding: 14px;
    height: 100%;
}

.stock-mini-label {
    color: #7a8896;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stock-mini-value {
    color: #1d3952;
    font-size: 1.05rem;
    font-weight: 800;
}

.stock-desc {
    color: #607284;
    font-size: 0.90rem;
    line-height: 1.5;
    min-height: 48px;
}

.stock-hero-btn {
    border-color: rgba(255,255,255,0.28) !important;
    color: #fff !important;
}

.stock-hero-btn:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .stock-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .stock-status-badge {
        white-space: normal;
    }

    .stock-amount {
        font-size: 1.7rem;
    }
}

/* OT PRO */

.ot-card {
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(10,47,79,0.08);
}

.ot-section-title {
    font-weight: 800;
    color: #18324a;
}

.ot-info-box {
    background: #f5f9fc;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    padding: 14px;
}

.ot-info-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}

.ot-info-box .value {
    font-weight: 800;
    color: #18324a;
}

.ot-summary {
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(10,47,79,0.08);
}

/* =========================================================
   ARTÍCULOS PRO - INDUSTRIAS BENDER
========================================================= */

.articulos-filter-card {
    border-radius: 20px;
    border: 1px solid #dbe6ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.articulos-kpi-card {
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 16px 30px rgba(10, 47, 79, 0.08);
    overflow: hidden;
    position: relative;
}

.articulos-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
}

.articulos-kpi-primary::before {
    background: linear-gradient(90deg, #0a2f4f 0%, #1f78c8 100%);
}

.articulos-kpi-secondary::before {
    background: linear-gradient(90deg, #5f7387 0%, #90a4b8 100%);
}

.articulos-kpi-accent::before {
    background: linear-gradient(90deg, #1f78c8 0%, #59a5ea 100%);
}

.articulos-kpi-warning::before {
    background: linear-gradient(90deg, #d39e00 0%, #f2bf3b 100%);
}

.articulos-kpi-label {
    color: #607284;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.articulos-kpi-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #18324a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.articulos-kpi-sub {
    color: #7a8795;
    font-size: 0.88rem;
}

.articulos-table-card {
    border-radius: 22px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 35px rgba(10, 47, 79, 0.08);
}

.articulos-pro-table thead th {
    background: linear-gradient(180deg, #eaf3fb 0%, #e1edf8 100%);
    color: #0a2f4f;
    font-size: 0.84rem;
    font-weight: 800;
    border-bottom: 1px solid #d6e3ef;
}

.articulos-name {
    font-weight: 800;
    color: #18324a;
    line-height: 1.2;
}

.articulos-desc {
    color: #708090;
    font-size: 0.84rem;
    margin-top: 4px;
    max-width: 280px;
}

.articulos-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border: 1px solid #d6e5f1;
    color: #244865;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.articulos-stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.86rem;
    border: 1px solid transparent;
}

.stock-ok {
    background: #eaf8ef;
    color: #198754;
    border-color: #cde9d7;
}

.stock-low {
    background: #fff5de;
    color: #b37e00;
    border-color: #efd18a;
}

.stock-critical {
    background: #fff0ee;
    color: #c0392b;
    border-color: #efbeb8;
}

.articulos-hero-btn {
    font-weight: 800;
}

@media (max-width: 992px) {
    .articulos-desc {
        max-width: none;
    }
}

/* =========================================================
   REPORTES PRO - INDUSTRIAS BENDER
========================================================= */

.reportes-filter-card {
    border-radius: 20px;
    border: 1px solid #dbe6ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.reportes-kpi-card {
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 16px 30px rgba(10, 47, 79, 0.08);
    overflow: hidden;
    position: relative;
}

.reportes-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
}

.reportes-kpi-primary::before {
    background: linear-gradient(90deg, #0a2f4f 0%, #1f78c8 100%);
}

.reportes-kpi-secondary::before {
    background: linear-gradient(90deg, #5f7387 0%, #90a4b8 100%);
}

.reportes-kpi-accent::before {
    background: linear-gradient(90deg, #1f78c8 0%, #59a5ea 100%);
}

.reportes-kpi-label {
    color: #607284;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.reportes-kpi-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #18324a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.reportes-kpi-sub {
    color: #7a8795;
    font-size: 0.88rem;
}

.reportes-table-card {
    border-radius: 22px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 35px rgba(10, 47, 79, 0.08);
}

.reportes-pro-table thead th {
    background: linear-gradient(180deg, #eaf3fb 0%, #e1edf8 100%);
    color: #0a2f4f;
    font-size: 0.84rem;
    font-weight: 800;
    border-bottom: 1px solid #d6e3ef;
}

.reportes-date {
    font-weight: 700;
    color: #18324a;
    white-space: nowrap;
}

.reportes-mov-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border: 1px solid #d6e5f1;
    color: #244865;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.reportes-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f8fb;
    border: 1px solid #dde7ef;
    color: #546474;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.reportes-articulo-name {
    font-weight: 800;
    color: #18324a;
    line-height: 1.2;
}

.reportes-cantidad-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf8ef;
    border: 1px solid #cde9d7;
    color: #198754;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.reportes-hero-btn {
    font-weight: 800;
}

@media (max-width: 992px) {
    .reportes-mov-pill,
    .reportes-code,
    .reportes-cantidad-pill {
        white-space: normal;
    }
}

/* =========================================================
   MOVIMIENTOS PRO - INDUSTRIAS BENDER
========================================================= */

.movimientos-kpi-card {
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 16px 30px rgba(10, 47, 79, 0.08);
    overflow: hidden;
    position: relative;
}

.movimientos-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
}

.movimientos-kpi-primary::before {
    background: linear-gradient(90deg, #198754 0%, #43b97f 100%);
}

.movimientos-kpi-danger::before {
    background: linear-gradient(90deg, #c0392b 0%, #ef6a5f 100%);
}

.movimientos-kpi-accent::before {
    background: linear-gradient(90deg, #0a2f4f 0%, #1f78c8 100%);
}

.movimientos-kpi-secondary::before {
    background: linear-gradient(90deg, #5f7387 0%, #90a4b8 100%);
}

.movimientos-kpi-label {
    color: #607284;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.movimientos-kpi-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #18324a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.movimientos-kpi-sub {
    color: #7a8795;
    font-size: 0.88rem;
}

.movimientos-table-card {
    border-radius: 22px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 35px rgba(10, 47, 79, 0.08);
}

.movimientos-pro-table thead th {
    background: linear-gradient(180deg, #eaf3fb 0%, #e1edf8 100%);
    color: #0a2f4f;
    font-size: 0.84rem;
    font-weight: 800;
    border-bottom: 1px solid #d6e3ef;
}

.mov-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5fb;
    border: 1px solid #d6e5f1;
    color: #244865;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.mov-date {
    font-weight: 700;
    color: #18324a;
    white-space: nowrap;
}

.mov-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mov-pill-retiro {
    background: #eef5fb;
    color: #244865;
    border-color: #d6e5f1;
}

.mov-pill-combustible {
    background: #fff5de;
    color: #b37e00;
    border-color: #efd18a;
}

.mov-pill-ajuste {
    background: #f2f4f7;
    color: #5f7387;
    border-color: #dce3ea;
}

.mov-pill-ingreso {
    background: #eaf8ef;
    color: #198754;
    border-color: #cde9d7;
}

.mov-pill-default {
    background: #f4f8fb;
    color: #5f7387;
    border-color: #dde7ef;
}

.mov-anulacion-box {
    background: #fff4f3;
    border: 1px solid #f0c8c4;
    border-radius: 14px;
    padding: 10px 12px;
    color: #7a322a;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mov-no-actions {
    color: #7b8794;
    font-size: 0.85rem;
    font-weight: 600;
}

.movimientos-hero-btn {
    font-weight: 800;
}

@media (max-width: 992px) {
    .mov-type-pill,
    .mov-id-pill {
        white-space: normal;
    }
}

/* =========================================================
   COMBUSTIBLE PRO
========================================================= */

.combustible-kpi-card {
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 16px 30px rgba(10,47,79,0.08);
    position: relative;
}

.combustible-kpi-card::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
}

.combustible-kpi-primary::before {
    background:linear-gradient(90deg,#0a2f4f,#1f78c8);
}

.combustible-kpi-accent::before {
    background:linear-gradient(90deg,#1f78c8,#59a5ea);
}

.combustible-kpi-secondary::before {
    background:linear-gradient(90deg,#5f7387,#90a4b8);
}

.combustible-kpi-label {
    font-size:0.8rem;
    text-transform:uppercase;
    color:#607284;
    font-weight:800;
}

.combustible-kpi-value {
    font-size:2rem;
    font-weight:800;
    color:#18324a;
}

.combustible-table-card {
    border-radius:22px;
    box-shadow:0 18px 35px rgba(10,47,79,0.08);
}

.comb-id {
    background:#eef5fb;
    padding:6px 10px;
    border-radius:999px;
    font-weight:700;
}

.comb-date {
    font-weight:700;
}

.comb-litros {
    background:#eaf8ef;
    padding:6px 12px;
    border-radius:999px;
    font-weight:800;
    color:#198754;
}

.comb-desc {
    color:#6b7280;
    font-size:0.85rem;
}

/* =========================================================
   TOASTS / NOTIFICACIONES MODERNAS
========================================================= */

.toast-bender-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 99999;
    pointer-events: none;
}

.toast-bender {
    min-width: 360px;
    max-width: 440px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #dce6ef;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(10, 47, 79, 0.18);
    padding: 16px 18px;
    transform: translateY(-14px) scale(0.98);
    opacity: 0;
    transition: all 0.28s ease;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
}

.toast-bender::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 18px 0 0 18px;
}

.toast-bender-show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-bender-hide {
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
}

.toast-bender-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

.toast-bender-content {
    flex: 1;
    min-width: 0;
}

.toast-bender-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #18324a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.toast-bender-message {
    font-size: 0.90rem;
    color: #5f7387;
    line-height: 1.45;
    word-break: break-word;
}

.toast-bender-close {
    background: transparent;
    border: none;
    color: #7f8b97;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-top: 1px;
    transition: color 0.2s ease;
}

.toast-bender-close:hover {
    color: #18324a;
}

.toast-success::before {
    background: linear-gradient(180deg, #198754 0%, #43b97f 100%);
}

.toast-success .toast-bender-icon {
    background: #eaf8ef;
    color: #198754;
    border: 1px solid #cde9d7;
}

.toast-error::before {
    background: linear-gradient(180deg, #c0392b 0%, #ef6a5f 100%);
}

.toast-error .toast-bender-icon {
    background: #fff0ee;
    color: #c0392b;
    border: 1px solid #efbeb8;
}

.toast-warning::before {
    background: linear-gradient(180deg, #d39e00 0%, #f2bf3b 100%);
}

.toast-warning .toast-bender-icon {
    background: #fff5de;
    color: #b37e00;
    border: 1px solid #efd18a;
}

.toast-info::before {
    background: linear-gradient(180deg, #0a2f4f 0%, #1f78c8 100%);
}

.toast-info .toast-bender-icon {
    background: #eef5fb;
    color: #1f78c8;
    border: 1px solid #d6e5f1;
}

@media (max-width: 768px) {
    .toast-bender-container {
        top: 14px;
        right: 14px;
        left: 14px;
    }

    .toast-bender {
        min-width: 0;
        max-width: 100%;
    }
}

/* =========================================================
   MODALES DE CONFIRMACIÓN MODERNOS
========================================================= */

.bender-confirm-modal {
    border-radius: 22px;
    border: 1px solid #d9e4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 24px 50px rgba(10, 47, 79, 0.18);
    overflow: hidden;
}

.confirm-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dceeff;
    color: #0f3d66;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 8px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.confirm-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #18324a;
}

.confirm-modal-text {
    font-size: 0.95rem;
    color: #5f7387;
    line-height: 1.5;
}

/* =========================================================
   EPP - FIRMA / FICHA
========================================================= */

.firma-preview-box {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #dbe6ef;
    border-radius: 18px;
    padding: 18px;
}

.firma-preview-img {
    max-height: 180px;
    object-fit: contain;
}

/* =========================================================
   EPP - SELECT DE PRODUCTOS
========================================================= */

.epp-card-overflow,
.epp-card-overflow .card-body,
.epp-card-overflow-body,
.epp-table-wrap,
.epp-product-cell {
    overflow: visible !important;
}

.epp-product-cell {
    position: relative;
    z-index: 20;
}

.ts-dropdown,
.tomselect-dropdown,
.ts-control,
.tomselect-control {
    z-index: 99999 !important;
}

.tomselect-dropdown {
    min-width: 540px !important;
    max-width: 760px !important;
    border-radius: 14px !important;
    border: 1px solid #cfdceb !important;
    box-shadow: 0 18px 40px rgba(10, 47, 79, 0.18) !important;
    padding: 6px !important;
}

.tomselect-dropdown .option,
.epp-ts-option {
    white-space: normal !important;
    line-height: 1.45;
    padding: 10px 12px !important;
    font-size: 0.92rem;
}

.tomselect-dropdown .active {
    background: #eef5fb !important;
    color: #0a2f4f !important;
    border-radius: 10px;
}

.epp-product-cell .ts-wrapper,
.epp-product-cell .ts-control,
.epp-product-cell .tomselect-control {
    min-width: 340px;
}

@media (max-width: 992px) {
    .tomselect-dropdown {
        min-width: 320px !important;
        max-width: 95vw !important;
    }
}