/* Global responsive safety layer for admin + frontend templates */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
}

.table-responsive,
.table-responsive-modern {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.form-group,
.field {
    min-width: 0;
}

@media (max-width: 992px) {
    .content-wrapper,
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .action-buttons,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn,
    .actions .btn {
        width: 100%;
    }
}
