/* Atabey Fix Dashboard Inventarios v1.0.2 */
.inv-stats-grid .inv-stat-button,
.inv-stat-button {
    appearance: none;
    border: 0 !important;
    border-left: 0 !important;
    width: 100%;
    min-height: 132px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #022856 !important;
    color: #fff !important;
    cursor: pointer;
    border-radius: 14px !important;
    padding: 20px 16px !important;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}
.inv-stats-grid .inv-stat-button:hover,
.inv-stats-grid .inv-stat-button:focus,
.inv-stat-button:hover,
.inv-stat-button:focus {
    background: #E09A44 !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.inv-stat-button h3,
.inv-stat-button p,
.inv-stat-button:hover h3,
.inv-stat-button:hover p,
.inv-stat-button:focus h3,
.inv-stat-button:focus p {
    color: #fff !important;
}
.inv-stat-button h3 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.inv-stat-button p {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(0.88rem, 1.35vw, 1.05rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
}
.atabey-fix-more-row td {
    text-align: center !important;
    padding: 12px !important;
}
.atabey-fix-more-btn,
.inv-dashboard-more {
    background: #022856 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.atabey-fix-more-btn:hover,
.atabey-fix-more-btn:focus,
.inv-dashboard-more:hover,
.inv-dashboard-more:focus {
    background: #E09A44 !important;
    color: #fff !important;
}

/* Reportes / tablas anchas: desplazamiento horizontal seguro */
.atabey-report-table-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}
.atabey-report-scroll-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
}
.atabey-report-scroll-label {
    margin-right: auto;
    color: #022856;
    font-weight: 700;
    font-size: 0.86rem;
}
.atabey-report-scroll-btn {
    min-width: 42px;
    height: 36px;
    border: 0 !important;
    border-radius: 8px;
    background: #022856 !important;
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.atabey-report-scroll-btn:hover,
.atabey-report-scroll-btn:focus {
    background: #E09A44 !important;
    color: #fff !important;
}
.atabey-report-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #022856 #eef2f6;
}
.atabey-report-scroll::-webkit-scrollbar {
    height: 12px;
}
.atabey-report-scroll::-webkit-scrollbar-track {
    background: #eef2f6;
    border-radius: 999px;
}
.atabey-report-scroll::-webkit-scrollbar-thumb {
    background: #022856;
    border-radius: 999px;
}
.atabey-report-scroll::-webkit-scrollbar-thumb:hover {
    background: #E09A44;
}
.atabey-report-scroll .inv-table {
    min-width: 1120px;
    width: max-content;
    max-width: none;
}
.atabey-report-scroll .inv-table th,
.atabey-report-scroll .inv-table td {
    white-space: normal;
    vertical-align: top;
}
.atabey-report-scroll .inv-table th:nth-child(1),
.atabey-report-scroll .inv-table td:nth-child(1) { min-width: 100px; }
.atabey-report-scroll .inv-table th:nth-child(2),
.atabey-report-scroll .inv-table td:nth-child(2) { min-width: 150px; }
.atabey-report-scroll .inv-table th:nth-child(3),
.atabey-report-scroll .inv-table td:nth-child(3) { min-width: 190px; }
.atabey-report-scroll .inv-table th:nth-child(4),
.atabey-report-scroll .inv-table td:nth-child(4) { min-width: 210px; }
.atabey-report-scroll .inv-table th:nth-child(5),
.atabey-report-scroll .inv-table td:nth-child(5) { min-width: 180px; }
.atabey-report-scroll .inv-table th:nth-child(6),
.atabey-report-scroll .inv-table td:nth-child(6) { min-width: 150px; }
.atabey-report-scroll .inv-table th:nth-child(7),
.atabey-report-scroll .inv-table td:nth-child(7) { min-width: 180px; }
.atabey-report-scroll .inv-table th:nth-child(8),
.atabey-report-scroll .inv-table td:nth-child(8) { min-width: 260px; }

@media (max-width: 780px) {
    .atabey-report-scroll-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    .atabey-report-scroll-label {
        width: 100%;
        margin: 0 0 4px 0;
        text-align: center;
    }
    .atabey-report-scroll .inv-table,
    .atabey-report-scroll .inv-table thead,
    .atabey-report-scroll .inv-table tbody,
    .atabey-report-scroll .inv-table th,
    .atabey-report-scroll .inv-table td,
    .atabey-report-scroll .inv-table tr {
        display: table-row-group;
    }
    .atabey-report-scroll .inv-table thead { display: table-header-group; }
    .atabey-report-scroll .inv-table tr { display: table-row; }
    .atabey-report-scroll .inv-table th,
    .atabey-report-scroll .inv-table td { display: table-cell; }
}
