@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

:root {
    --brand: #077BA1;
    --brand-dark: #446078;
    --accent: #BB0808;
    --accent-dark: #8f0606;
    --bg-soft: #FFFFFF;
    --text-main: #446078;
    --text-muted: #7E8080;
    --surface-soft: #f7fafc;
    --border-soft: #d9e6ef;
    --bs-primary: #077BA1;
    --bs-secondary: #446078;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-soft);
    background-image: radial-gradient(circle at top right, rgba(7, 123, 161, 0.12) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(187, 8, 8, 0.12) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-main);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
}

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    color: var(--accent-dark);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-success {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--brand);
    border-color: var(--brand);
}

.btn-excel {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-excel:hover,
.btn-excel:focus {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}

.form-control,
.form-select {
    border-color: var(--border-soft);
    color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(187, 8, 8, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(187, 8, 8, 0.16);
}

.table {
    color: var(--text-main);
}

.table thead th {
    color: var(--brand-dark);
    background: var(--surface-soft);
    border-bottom-color: var(--border-soft);
}

.alert {
    border-radius: 12px;
    border-width: 1px;
}

.alert-info,
.alert-primary {
    background: #eef7fb;
    border-color: #c7dceb;
    color: var(--brand-dark);
}

.alert-warning {
    background: #fff7e8;
    border-color: #f0dfb6;
    color: #6f5a2e;
}

.alert-danger {
    background: #fdeeee;
    border-color: #f3c3c3;
    color: #8b2f2f;
}

.modal-header {
    border-bottom-color: var(--border-soft);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.modal-title {
    color: var(--brand-dark);
}

.page-link {
    color: var(--accent);
    border-color: var(--border-soft);
}

.page-link:hover {
    color: var(--accent-dark);
    background: #fceeee;
    border-color: #bfd3e1;
}

.page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
}

.badge.text-bg-primary {
    background-color: var(--accent) !important;
}

.card-soft {
    border: 1px solid #e5edf3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.text-muted-brand {
    color: var(--text-muted);
}

.content-wrap {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0b86af 0%, #446078 100%);
    color: #fff;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 8px 0 24px -20px rgba(0, 0, 0, 0.45);
    transition: width 0.25s ease, padding 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
    overflow: hidden;
}

.app-shell.sidebar-collapsed .app-sidebar.desktop {
    width: 0;
    padding: 1.25rem 0;
    opacity: 0;
    transform: translateX(-16px);
    box-shadow: none;
    pointer-events: none;
}

.app-sidebar .brand {
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 1rem;
    display: block;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    max-width: 170px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.55);
}

.sidebar-subtitle {
    opacity: 0.82;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.side-link {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.55rem;
    transition: all 0.2s ease;
}

.side-link:hover,
.side-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background: #fff;
    color: #446078;
    flex: 0 0 auto;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background: #fff;
    color: #446078;
    font-weight: 600;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
    background: #f4f8fb;
    color: #077BA1;
    border-color: #bfd3e1;
}

.sidebar-toggle-btn:hover {
    background: #f4f8fb;
    color: #077BA1;
    border-color: #bfd3e1;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1015;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    padding: 0.7rem 1rem;
}

.topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.operation-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background: #fff;
    color: #446078;
    font-weight: 600;
    box-shadow: 0 10px 18px -18px rgba(0, 0, 0, 0.35);
}

.operation-counter-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7E8080;
}

.operation-counter-value {
    font-size: 1rem;
    font-weight: 700;
    color: #077BA1;
    line-height: 1;
}

.mobile-operation-counter {
    width: 100%;
    justify-content: space-between;
}

.topbar-breadcrumb {
    margin: 0;
    white-space: nowrap;
    overflow: auto;
    font-size: 0.9rem;
    min-width: 0;
}

.topbar-breadcrumb .breadcrumb-item a {
    color: #446078;
    text-decoration: none;
}

.topbar-breadcrumb .breadcrumb-item.active {
    color: #7E8080;
}

.dashboard-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-right: 0.45rem;
    vertical-align: middle;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(7, 123, 161, 0.25);
    padding: 3px;
    box-shadow: 0 4px 10px -8px rgba(0, 0, 0, 0.7);
}

.page-shell {
    display: grid;
    gap: 1rem;
}

.form-shell {
    display: grid;
    gap: 1rem;
}

.content-stage {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 0 0.75rem;
}

.section-card {
    border: 1px solid #e4ebf2;
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px -18px rgba(0, 0, 0, 0.35);
    min-width: 0;
}

.section-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7E8080;
    margin-bottom: 0.8rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.summary-bar {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

.summary-item {
    border: 1px solid #e8eef4;
    border-radius: 12px;
    background: #f8fbfd;
    padding: 0.75rem 0.9rem;
    min-width: 0;
}

.summary-item .label {
    font-size: 0.76rem;
    color: #7E8080;
    margin-bottom: 0.2rem;
}

.summary-item .value {
    color: #446078;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.preview-item {
    border: 1px solid #e8eef4;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.7rem 0.85rem;
    min-width: 0;
}

.preview-item.full {
    grid-column: 1 / -1;
}

.preview-item .label {
    font-size: 0.76rem;
    color: #7E8080;
    margin-bottom: 0.2rem;
}

.preview-item .value {
    color: #446078;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-wrap {
    border: 1px solid #e8eef4;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}

.table-wrap table {
    margin-bottom: 0;
}

.items-table {
    min-width: 840px;
}

.items-table td,
.items-table th {
    padding: 0.55rem 0.65rem;
}

.table-wrap thead th {
    background: #f7fafc;
    border-bottom-color: #e8eef4;
    font-size: 0.82rem;
    color: #446078;
}

.table-wrap td,
.table-wrap th {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.table-wrap td input {
    min-width: 0;
}

.items-empty-cell {
    padding: 1.5rem 1rem !important;
    background: #fbfdff;
}

.items-empty-state {
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    text-align: center;
    color: #7E8080;
}

.items-empty-state strong {
    color: #446078;
    font-size: 0.98rem;
    font-weight: 700;
}

.items-empty-state span {
    font-size: 0.88rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.modal-preview {
    margin-top: 1rem;
}

.observation-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    white-space: nowrap;
    width: auto;
}

.number-col {
    width: 48px;
    min-width: 48px;
}

.code-col {
    min-width: 96px;
}

.description-col {
    min-width: 220px;
}

.type-col {
    min-width: 110px;
}

.stock-col {
    min-width: 88px;
}

.qty-col {
    width: 88px;
    min-width: 88px;
    white-space: nowrap;
}

.actions-col {
    width: 130px;
    min-width: 130px;
    white-space: nowrap;
}

.obs-col {
    width: 72px;
    min-width: 72px;
    white-space: nowrap;
}

.cantidad-input {
    width: 68px;
    min-width: 68px;
}

.action-btn {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.operation-result {
    border-color: rgba(7, 123, 161, 0.25);
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
    color: #446078;
}

.operation-result strong,
.operation-result .value {
    color: #077BA1;
}

.operation-result .table {
    color: #446078;
}

.operation-result .table thead th {
    background: #f2f9fd;
    color: #077BA1;
    border-bottom-color: #d9e8f2;
}

.observation-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border: 1px solid rgba(7, 123, 161, 0.45);
    border-radius: 10px;
    background: #fff;
    color: #077BA1;
    cursor: pointer;
    flex: 0 0 auto;
}

.action-icon-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(7, 123, 161, 0.45);
    border-radius: 10px;
    background: #fff;
    color: #077BA1;
}

.action-icon-btn:hover,
.action-icon-btn:focus {
    background: #077BA1;
    border-color: #077BA1;
    color: #fff;
}

.delivery-grid > * {
    min-width: 0;
}

#buscarItemInput {
    min-width: 0;
}


/* Mobile sidebar (offcanvas) color palette to match desktop sidebar */
@media (max-width: 991.98px) {
    .app-sidebar.desktop {
        display: none;
    }

    .app-main .content-wrap {
        padding-top: 1.25rem;
    }

    .sidebar-toggle-btn.desktop-only {
        display: none;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    #mobileSidebar {
        background: linear-gradient(180deg, #0b86af 0%, #446078 100%) !important;
        color: #fff;
    }
    #mobileSidebar .offcanvas-header,
    #mobileSidebar .offcanvas-body {
        background: transparent;
        color: #fff;
    }
    #mobileSidebar .offcanvas-title {
        font-weight: 700;
        letter-spacing: 0.2px;
        margin-bottom: 1rem;
        display: block;
        color: #fff;
        text-decoration: none;
        font-size: 1.25rem;
        text-align: center;
        line-height: 1.2;
    }
    #mobileSidebar .side-link {
        color: rgba(255,255,255,0.92) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-radius: 10px;
        padding: 0.55rem 0.75rem;
        margin-bottom: 0.55rem;
        background: transparent;
        transition: all 0.2s ease;
    }
    #mobileSidebar .side-link:hover,
    #mobileSidebar .side-link.active {
        background: rgba(255,255,255,0.18) !important;
        color: #fff !important;
        border-color: rgba(255,255,255,0.28) !important;
    }
    #mobileSidebar .dashboard-icon {
        background: #ffffff;
        border: 1px solid rgba(7, 123, 161, 0.25);
        border-radius: 6px;
        padding: 3px;
        box-shadow: 0 4px 10px -8px rgba(0,0,0,0.7);
    }
}

@media (max-width: 575.98px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .summary-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mobile-menu-trigger {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .topbar-actions {
        gap: 0.45rem;
    }

    .operation-counter-label,
    .theme-toggle-label {
        display: none;
    }

    .operation-counter {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

@media (min-width: 992px) and (max-aspect-ratio: 4/3) {
    .app-sidebar {
        width: 220px;
        padding: 1rem 0.85rem;
    }

    .content-wrap {
        padding-top: 1.4rem;
        padding-bottom: 1.8rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-stage {
        width: min(1320px, 100%);
        padding: 0 0.5rem;
    }
}

.dashboard-home .metric-card {
    border: 0;
    border-radius: 16px;
    color: #fff;
    padding: 1rem 1.25rem;
    box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.45);
}

.dashboard-home .metric-card .icon {
    opacity: 0.92;
    font-size: 1.3rem;
}

.dashboard-home .metric-card .title {
    font-size: 0.87rem;
    margin-top: 0.35rem;
    opacity: 0.92;
}

.dashboard-home .metric-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.35rem;
}

.dashboard-home .metric-blue {
    background: linear-gradient(135deg, #077BA1, #0a95c3);
}

.dashboard-home .metric-green {
    background: linear-gradient(135deg, #446078, #5d7f9c);
}

.dashboard-home .metric-purple {
    background: linear-gradient(135deg, #077BA1, #446078);
}

.dashboard-home .metric-red {
    background: linear-gradient(135deg, #BB0808, #8f1717);
}

.dashboard-home .dash-panel {
    border-radius: 14px;
    border: 1px solid #e8edf2;
    box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.3);
}

.dashboard-home .dash-panel .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f5;
    font-weight: 600;
    color: #446078;
}

.dashboard-home .chart-wrap {
    position: relative;
    min-height: 300px;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.dashboard-shell .metric-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-shell .metric-card {
    border-radius: 14px;
    color: #fff;
    padding: 1rem 1.15rem;
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.45);
}

.dashboard-shell .metric-card .value {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.dashboard-shell .metric-card .label {
    font-size: 0.84rem;
    opacity: 0.92;
    margin-top: 0.3rem;
}

.dashboard-shell .metric-blue {
    background: linear-gradient(135deg, #0d8ab4, #3a6d95);
}

.dashboard-shell .metric-green {
    background: linear-gradient(135deg, #2ca26f, #2f8d60);
}

.dashboard-shell .metric-red {
    background: linear-gradient(135deg, #cf4b4b, #9b2c2c);
}

.dashboard-shell .selection-bar {
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-shell .chart-toggle-btn {
    border: 1px solid #d6e3ee;
    background: #f6fafd;
    color: #446078;
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.dashboard-shell .chart-toggle-btn.active {
    color: #fff;
    background: #077BA1;
    border-color: #077BA1;
}

.dashboard-shell .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 1rem;
    min-width: 0;
}

.dashboard-shell .chart-col.hidden {
    display: none;
}

.dashboard-shell .chart-card {
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 14px;
    box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.45);
    padding: 0.95rem;
    min-width: 0;
}

.dashboard-shell .chart-header {
    color: #446078;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.dashboard-shell .chart-wrap {
    position: relative;
    min-height: 290px;
}

.dashboard-shell .chart-wrap.tall {
    min-height: 360px;
}

@media (max-width: 1399.98px) {
    .dashboard-shell .charts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1400px) {
    .dashboard-shell .chart-col.full-width {
        grid-column: 1 / -1;
    }
}

.report-shell {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.report-card {
    border: 1px solid #e6edf4;
    border-radius: 16px;
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 10px 22px -20px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    min-width: 0;
}

.report-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.report-nav a,
.report-nav span {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border: 1px solid #dce7f0;
    text-decoration: none;
}

.report-nav a {
    color: #446078;
    background: #f8fbfd;
}

.report-nav a.active {
    color: #fff;
    border-color: #077BA1;
    background: #077BA1;
}

.report-nav span {
    color: #8ca0b2;
    background: #f4f8fb;
}

.summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.summary-item {
    border: 1px solid #e8eef4;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.75rem 0.85rem;
}

.summary-item .label {
    color: #7E8080;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.summary-item .value {
    color: #446078;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

.filters-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.table-wrap {
    border: 1px solid #e8eef4;
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

.table-wrap table {
    min-width: 960px;
    margin-bottom: 0;
}

.table-wrap thead th {
    background: #f5f9fc;
    color: #446078;
    font-size: 0.82rem;
    white-space: nowrap;
}

.table-wrap td,
.table-wrap th {
    vertical-align: middle;
    white-space: nowrap;
}

.filters-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0;
    padding-top: 0.85rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.filters-actions .btn {
    min-width: 130px;
    flex: 0 0 auto;
}

.filters-actions .btn:disabled,
.filters-actions .btn.disabled {
    color: #6c757d !important;
    border-color: #ced4da !important;
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;
}

.filters-actions-compact {
    justify-content: center;
}

.table-wrap .cell-description {
    max-width: 320px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    .table-wrap table {
        min-width: 860px;
    }

    .col-costo,
    .col-peso {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .col-estante,
    .col-fila {
        display: none;
    }

    .table-wrap table {
        min-width: 760px;
    }
}

@media (min-width: 992px) {
    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters-grid-single {
        grid-template-columns: minmax(340px, 760px);
    }
}

.report-monthly-table {
    min-width: 1200px;
    margin-bottom: 0;
    font-size: 0.78rem;
}

.auth-login {
    --login-primary: #077BA1;
    --login-secondary: #446078;
    --login-accent: #BB0808;
    --login-text: #446078;
    --login-muted: #7E8080;
    --login-surface: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
}

.auth-login .content-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

.auth-login .ambient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatBlob 20s infinite ease-in-out alternate;
    pointer-events: none;
}

.auth-login .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--login-primary);
    top: -110px;
    left: -110px;
}

.auth-login .shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(187, 8, 8, 0.4);
    right: -120px;
    bottom: -220px;
    animation-delay: -5s;
}

.auth-login .login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
}

.auth-login .login-card {
    border-radius: 24px;
    border: 1px solid rgba(7, 123, 161, 0.2);
    background: var(--login-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(7, 123, 161, 0.2);
    animation: slideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.auth-login .login-title {
    color: var(--login-text);
    font-weight: 600;
    letter-spacing: -0.4px;
}

.auth-login .login-logo {
    width: min(320px, 85%);
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 10px 20px rgba(7, 123, 161, 0.18));
}

.auth-login .form-control {
    border-radius: 12px;
    background: #F0F4F8;
    border-color: rgba(7, 123, 161, 0.2);
    color: var(--login-text);
    padding: 0.75rem 0.9rem;
}

.auth-login .form-control::placeholder {
    color: var(--login-muted);
}

.auth-login .form-control:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 0.25rem rgba(7, 123, 161, 0.15);
    background: #fff;
}

.auth-login .btn-login {
    border: 0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--login-primary), var(--login-secondary));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-login .btn-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--login-primary);
}

.auth-login .footer-text {
    color: var(--login-muted);
    font-size: 0.8rem;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, -20px) scale(0.9);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.import-shell {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.import-card {
    border: 1px solid #e5edf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 22px -20px rgba(0, 0, 0, 0.45);
}

.import-card .card-body {
    padding: 1rem 1.1rem;
}

.import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.import-form-row {
    display: grid;
    gap: 0.65rem;
    align-items: end;
    grid-template-columns: minmax(0, 1fr);
}

.import-form-row .form-label {
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #446078;
}

.import-meta {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.25rem;
}

.import-table-wrap {
    border: 1px solid #e7eef5;
    border-radius: 10px;
    overflow: auto;
}

.import-table-wrap table {
    margin-bottom: 0;
}

.import-table-wrap thead th {
    background: #f6fafd;
    color: #446078;
    font-weight: 700;
}

@media (min-width: 992px) {
    .import-form-row {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.75rem;
    }

    .import-form-row .btn {
        min-width: 170px;
    }
}
