﻿html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

@media (max-width: 860px) {

    body {
        overflow-x: hidden !important;
    }

    .app-shell,
    .admin-shell,
    .main,
    .admin-main,
    .main-content,
    .page-content,
    .admin-content,
    .content,
    .workspace,
    .layout-content {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }

    .page,
    .card,
    .panel,
    .box,
    .admin-card,
    .content-card,
    .report-card,
    .report-hero,
    .result-card,
    .filter-card,
    .summary-card {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    .row,
    .grid,
    .form-row,
    .button-row,
    .actions,
    .toolbar,
    .report-actions,
    .filter-actions,
    .pagination-row {
        max-width: 100% !important;
        min-width: 0 !important;
        flex-wrap: wrap !important;
    }

    .grid,
    .summary-grid,
    .report-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .button-row,
    .actions,
    .report-actions,
    .filter-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    button,
    .btn,
    .form-control,
    input,
    select,
    textarea {
        max-width: 100% !important;
    }

    table {
        min-width: 720px;
    }

    .table-wrapper,
    .result-table-wrapper,
    .table-responsive,
    .data-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-bar,
    .admin-tabs,
    .tabbar,
    .tabs-wrapper {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .grid,
    .summary-grid,
    .report-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}
