/*
 * Lokmat Bharat Admin responsive foundation.
 * Design-only layer: no workflow, postback, API, media, or validation behavior.
 */

html {
    -webkit-text-size-adjust: 100%;
}

body,
.wrapper {
    min-width: 0;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

.content-wrapper,
.right-side,
.main-footer {
    transition: margin-left .2s ease-in-out;
}

.admin-responsive-actions,
.responsive-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-responsive-table,
.responsive-table-shell {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-responsive-media-panel,
.responsive-media-panel {
    max-width: 100%;
    overflow: hidden;
}

.admin-mobile-fullscreen-modal .modal-content {
    min-height: 100%;
}

.content .box,
.content .box-body,
.content .box-footer,
.content .panel,
.content .well {
    max-width: 100%;
}

.content .form-control,
.content input[type="text"],
.content input[type="email"],
.content input[type="password"],
.content input[type="search"],
.content input[type="number"],
.content input[type="url"],
.content input[type="date"],
.content input[type="file"],
.content select,
.content textarea,
.tokenfield,
.twitter-typeahead,
.select2-container,
.cke {
    max-width: 100%;
}

.content textarea {
    resize: vertical;
}

.content .table,
.content table {
    max-width: 100%;
}

.content .table img,
.dataTable img {
    max-width: 90px;
    height: auto;
    object-fit: cover;
}

.dataTables_wrapper {
    max-width: 100%;
}

.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody {
    max-width: 100%;
}

.dataTables_wrapper .dataTables_scrollBody {
    -webkit-overflow-scrolling: touch;
}

.post-actions,
.table-actions,
td:last-child {
    white-space: normal;
}

.post-actions .btn,
.table-actions .btn,
td:last-child .btn {
    margin-bottom: 4px;
    white-space: normal;
}

.modal {
    -webkit-overflow-scrolling: touch;
}

.modal-dialog {
    max-width: calc(100vw - 20px);
}

.modal-content {
    max-width: 100%;
}

.modal-body {
    max-width: 100%;
    overflow-x: hidden;
}

.page-loader-box,
.loading-overlay .ajax-loader-outer {
    max-width: calc(100vw - 32px);
}

.media-upload-tray,
.publication-progress,
.alert {
    overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
    .content-wrapper,
    .content {
        overflow-x: hidden;
    }

    .content-header .breadcrumb {
        max-width: 100%;
    }

    .modal-lg,
    .modal-xl {
        width: calc(100vw - 32px);
    }

    .content .box-body > .table,
    .content .box-body > table,
    .content .table-responsive,
    .dataTables_wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content .box-body > .table > thead > tr > th,
    .content .box-body > .table > tbody > tr > td,
    .dataTable > thead > tr > th,
    .dataTable > tbody > tr > td {
        vertical-align: middle;
    }

    .content .btn {
        white-space: normal;
    }

    .btn-toggle.btn-lg {
        min-width: 6rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .content .box {
        margin-bottom: 16px;
    }

    .form-horizontal .form-group {
        margin-left: 0;
        margin-right: 0;
    }

    .media-editor-dialog {
        width: calc(100vw - 36px);
        height: calc(100vh - 36px);
        margin: 18px auto;
    }

    .media-editor-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
        gap: 14px;
    }

    .media-editor-canvas {
        min-height: 380px;
        max-height: 56vh;
    }
}

@media (max-width: 991px) {
    .content-header .breadcrumb {
        position: static;
        float: none;
        margin-top: 8px;
        padding-left: 0;
        background: transparent;
    }

    .content > .row,
    .content.container-fluid > .row,
    .box-body > .row,
    .form-group {
        margin-left: 0;
        margin-right: 0;
    }

    .content.container-fluid > .row > [class*="col-md-"],
    .content > .row > [class*="col-md-"],
    .box-body > .row > [class*="col-md-"],
    .form-horizontal > .row > [class*="col-md-"] {
        width: 100%;
        float: none;
    }

    .content.container-fluid > .row > [class*="col-"],
    .content > .row > [class*="col-"],
    .box-body > .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    #rightSideBox,
    .right-side-panel,
    .editor-side-panel {
        margin-top: 18px;
        padding-top: 10px;
    }

    .content-header .text-right,
    .box-header .text-right {
        text-align: left;
    }
}

@media (max-width: 767px) {
    :root {
        --admin-mobile-gap: 10px;
        --admin-touch-size: 44px;
    }

    html {
        height: auto !important;
        min-height: 100%;
        overflow-x: clip !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
    }

    body {
        height: auto !important;
        min-height: 100%;
        max-width: 100%;
        overflow: visible !important;
        touch-action: pan-y pinch-zoom;
    }

    body {
        background: #ecf0f5;
    }

    form#form1,
    .wrapper {
        height: auto !important;
        min-height: 100%;
        /* `hidden` on one axis promotes `visible` on the other axis to
           `auto`, recreating AdminLTE's nested vertical scroller. */
        overflow-x: clip !important;
        overflow-y: visible !important;
        touch-action: pan-y pinch-zoom;
    }

    .content-wrapper,
    .right-side,
    .main-footer {
        margin-left: 0 !important;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 1030;
        display: block;
        width: 100%;
        height: 58px;
        min-height: 58px;
        max-height: none;
        background: #536fe5;
        box-shadow: 0 2px 10px rgba(20, 34, 76, 0.16);
    }

    .main-header .logo {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 2;
        float: none;
        width: auto !important;
        min-width: 112px;
        height: 58px;
        padding: 0 10px;
        line-height: 58px;
        transform: translateX(-50%);
        background: transparent !important;
        color: #fff !important;
        font-size: 24px;
    }

    .main-header .navbar {
        float: none;
        width: 100% !important;
        min-height: 58px;
        margin-left: 0 !important;
        background: transparent !important;
    }

    .main-header .navbar .sidebar-toggle {
        height: 58px;
        padding: 19px 18px;
        color: #fff !important;
        font-size: 18px;
    }

    .main-header .navbar .sidebar-toggle:hover,
    .main-header .navbar .sidebar-toggle:focus {
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .main-header .navbar-custom-menu,
    .main-header .navbar-custom-menu > .navbar-nav,
    .main-header .navbar-custom-menu > .navbar-nav > li {
        height: 58px;
    }

    .main-header .navbar-custom-menu > .navbar-nav {
        margin: 0;
    }

    .main-header .navbar-custom-menu > .navbar-nav > li > a {
        display: flex;
        align-items: center;
        height: 58px;
        padding: 10px 14px;
        color: #fff !important;
    }

    .main-header .navbar .nav > li > a:hover,
    .main-header .navbar .nav > li > a:focus,
    .main-header .navbar .nav > .open > a {
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .main-header .navbar .user-image {
        width: 34px;
        height: 34px;
        margin-top: 0;
        border: 2px solid rgba(255, 255, 255, 0.72);
        background: #fff;
    }

    .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
        right: 5px;
        left: auto;
        max-width: calc(100vw - 10px);
    }

    .main-sidebar {
        position: fixed;
        top: 0;
        padding-top: 58px;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-open .content-wrapper,
    .sidebar-open .right-side,
    .sidebar-open .main-footer {
        transform: none;
    }

    .content-header,
    .content {
        padding-left: calc(10px + env(safe-area-inset-left));
        padding-right: calc(10px + env(safe-area-inset-right));
    }

    .content {
        padding-top: 10px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .content-header h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .box {
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .box-header,
    .box-body,
    .box-footer {
        padding: 10px;
    }

    .form-horizontal .form-group {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .form-horizontal .control-label,
    .form-horizontal .text-right {
        text-align: left !important;
    }

    .form-horizontal [class*="col-xs-"],
    .form-horizontal [class*="col-sm-"],
    .form-horizontal [class*="col-md-"],
    .form-horizontal [class*="col-lg-"] {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    .content label,
    .form-horizontal .control-label {
        margin-bottom: 6px;
    }

    .content .form-control,
    .content input[type="text"],
    .content input[type="email"],
    .content input[type="password"],
    .content input[type="search"],
    .content input[type="number"],
    .content input[type="url"],
    .content input[type="date"],
    .content input[type="file"],
    .content select {
        min-height: var(--admin-touch-size);
        width: 100%;
        font-size: 16px;
    }

    .content textarea.form-control,
    .content textarea {
        min-height: 96px;
        font-size: 16px;
    }

    .tokenfield {
        min-height: var(--admin-touch-size);
        width: 100%;
    }

    .tokenfield .token-input {
        min-height: 30px;
    }

    .cke {
        width: 100% !important;
    }

    .cke_contents {
        min-height: 260px;
    }

    .content .btn,
    .modal-footer .btn,
    .box-footer .btn,
    .google-indexing-panel .btn,
    .image-preview .btn,
    .media-upload-button,
    .media-filter-apply,
    .media-detail-foot .btn,
    #btnSaveAsDraft,
    #btnSavePost,
    #btnAdjustFeaturedImage {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--admin-touch-size);
        line-height: 1.3;
        white-space: normal;
    }

    .box-footer .btn,
    .content .form-group > .btn,
    .image-preview .btn,
    .google-indexing-panel .btn,
    #btnSaveAsDraft,
    #btnSavePost,
    #btnAdjustFeaturedImage {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .pull-right,
    .right {
        float: none !important;
    }

    .text-right {
        text-align: left !important;
    }

    .btn-toggle.btn-lg {
        display: inline-block;
        width: 76px;
        min-width: 76px;
        height: 34px;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .btn-toggle.btn-lg > .handle {
        top: 4px;
        left: 4px;
        width: 26px;
        height: 26px;
    }

    .btn-toggle.btn-lg.active > .handle {
        left: 46px;
    }

    .alert {
        padding: 10px;
    }

    .page-loader-overlay,
    .loading-overlay {
        padding: 16px;
    }

    .page-loader-box,
    .ajax-loader-outer {
        width: calc(100vw - 32px) !important;
        max-width: 420px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .content .box-body > .table,
    .content .box-body > table,
    .dataTables_wrapper {
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        background: #fff;
    }

    .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        width: 100%;
        text-align: left;
        padding: 8px;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        white-space: normal;
    }

    .pagination > li > a,
    .pagination > li > span {
        min-width: 38px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .post-actions,
    .table-actions,
    td:last-child {
        min-width: 170px;
    }

    .post-actions .btn,
    .table-actions .btn,
    td:last-child .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        margin-right: 3px;
        margin-bottom: 5px;
        max-width: 100%;
    }

    .modal-dialog,
    .modal-lg,
    .modal-xl {
        width: 100% !important;
        max-width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    .modal-content {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-header,
    .modal-footer {
        flex: 0 0 auto;
        background: #fff;
        z-index: 2;
    }

    .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -3px 12px rgba(0, 0, 0, .08);
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 0 8px;
    }

    .main-footer {
        padding: 10px;
        font-size: 12px;
    }

    .main-footer .pull-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .content-header,
    .content {
        padding-left: calc(8px + env(safe-area-inset-left));
        padding-right: calc(8px + env(safe-area-inset-right));
    }

    .content-header h1 {
        font-size: 20px;
    }

    .box-header,
    .box-body,
    .box-footer {
        padding: 8px;
    }

    .post-actions,
    .table-actions,
    td:last-child {
        min-width: 150px;
    }
}

/* Post editor and media workflow */
@media (max-width: 991px) {
    #rightSideBox,
    .image-preview,
    .google-indexing-panel,
    .media-adjust-actions {
        max-width: 100%;
    }

    #imgFeaturedImage {
        min-width: 0 !important;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    #galleryPreview,
    #uploadGalleryPreview {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .gal_box {
        display: block;
    }

    .gal_box img {
        width: 76px;
        height: 56px;
        margin-left: 0;
        object-fit: cover;
    }

    .aeo-repeat-row .row {
        margin-left: -7px;
        margin-right: -7px;
    }

    .aeo-repeat-row [class*="col-"] {
        padding-left: 7px;
        padding-right: 7px;
    }
}

@media (max-width: 767px) {
    .image-preview {
        padding: 10px;
        overflow: hidden;
    }

    .media-adjust-actions,
    .media-adjust-actions.is-visible {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .media-adjust-status {
        min-width: 0;
        font-size: 13px;
    }

    .gal_box img {
        width: 70px;
        height: 52px;
    }

    .aeo-repeat-row {
        padding: 10px;
    }

    .aeo-repeat-row .btn {
        width: 100%;
        margin-top: 10px;
    }

    .publication-progress-header {
        align-items: flex-start;
    }

    .publication-progress-step {
        grid-template-columns: 25px 1fr;
    }

    .publication-progress-step-value {
        grid-column: 2;
    }

    .publication-progress-actions {
        flex-direction: column;
    }

    .publication-progress-actions .btn {
        width: 100%;
    }

    .media-upload-tray {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
        max-height: 45vh;
    }

    .media-upload-tray.is-collapsed {
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    #featuredMediaEditor .modal-body {
        padding: 12px;
    }

    #featuredMediaEditor .modal-body > .row > [class*="col-sm-"] {
        margin-bottom: 10px;
    }

    .media-editor-dialog {
        width: 100%;
        height: 100vh;
        margin: 0;
    }

    .media-editor-dialog .modal-content {
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .media-editor-layout {
        display: block;
    }

    .media-editor-canvas {
        min-height: 240px;
        max-height: 42vh;
    }

    .media-editor-toolbar {
        gap: 6px;
    }

    .media-editor-toolbar .btn {
        width: 100%;
        margin-bottom: 0;
    }

    .media-preview-panel {
        margin-top: 14px;
        padding: 10px;
    }

    .media-preview-tag {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #featuredMediaEditor {
        overflow: hidden;
    }

    #featuredMediaEditor .modal-dialog,
    #featuredMediaEditor .media-editor-dialog {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
    }

    #featuredMediaEditor .modal-content {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #featuredMediaEditor .modal-header,
    #featuredMediaEditor .modal-footer {
        flex: 0 0 auto;
    }

    #featuredMediaEditor .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #featuredMediaEditor .media-editor-canvas {
        min-height: 220px;
        height: 38vh;
        height: min(38vh, 300px);
        max-height: 300px;
        touch-action: none;
    }

    #featuredMediaEditor .media-editor-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #featuredMediaEditor .media-editor-toolbar .btn {
        width: 100%;
        min-height: 38px;
        margin: 0;
        padding: 8px 6px;
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
    }

    #featuredMediaEditor .modal-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #featuredMediaEditor .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Post-list style filter bars used by Posts, PendingPosts and scheduled lists. */
@media (max-width: 1199px) {
    .content-header .text-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        clear: both;
    }

    .content-header .text-right > [class*="col-md-"] {
        float: none;
        width: auto;
        min-width: 150px;
        padding-left: 0;
        padding-right: 0;
    }

    .content-header .text-right .form-control,
    .content-header .text-right .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .content-header .text-right {
        display: block;
        text-align: left;
        margin-top: 10px;
    }

    .content-header .text-right > [class*="col-md-"],
    .content-header .text-right > [class*="col-sm-"],
    .content-header .text-right > [class*="col-lg-"] {
        width: 100%;
        min-width: 0;
        margin-bottom: 8px;
    }

    .content-header .text-right > .btn,
    .content-header .text-right > a.btn {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Media Library */
@media (max-width: 991px) {
    .media-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .media-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-search-row {
        grid-template-columns: 1fr 1fr;
    }

    .media-search {
        grid-column: 1 / -1;
    }

    .media-subbar,
    .media-selection,
    .media-detail-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .media-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .media-detail-actions .btn,
    .media-detail-foot .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .media-page {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 9px;
    }

    .media-thumb {
        height: 120px;
    }

    .media-list .media-card {
        display: block;
        margin-bottom: 10px;
    }

    .media-list .media-card-check {
        position: absolute;
    }

    .media-list .media-thumb {
        height: 145px;
    }

    .media-list .media-card-body {
        display: block;
    }

    .media-detail {
        width: 100%;
        right: -100%;
    }

    .media-detail.is-open {
        right: 0;
    }

    .media-detail-scroll {
        padding: 14px;
    }

    .media-detail-preview {
        height: 210px;
    }

    .media-detail-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .media-stats,
    .media-search-row,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-search {
        grid-column: auto;
    }
}

/* Add/Edit Post critical viewport containment */
@media (max-width: 991px) {
    .content-wrapper > section.content.container-fluid,
    .content-wrapper > section.content.container-fluid > .row,
    .content-wrapper > section.content.container-fluid > .row > .col-md-8,
    .content-wrapper > section.content.container-fluid > .row > .col-md-4 {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .content-wrapper > section.content.container-fluid > .row > .col-md-8,
    .content-wrapper > section.content.container-fluid > .row > .col-md-4 {
        display: block !important;
        float: none !important;
        width: 100% !important;
        clear: both !important;
    }
}

@media (max-width: 767px) {
    html,
    .content-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: clip !important;
    }

    form#form1,
    .wrapper,
    .content-wrapper,
    section.content {
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .content-wrapper,
    .right-side,
    .main-footer {
        margin-left: 0 !important;
        transform: none !important;
    }

    .content-wrapper {
        padding: 0 !important;
    }

    .content-wrapper > .row,
    .content-wrapper > section.content.container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .content-wrapper > section.content.container-fluid {
        padding-left: calc(8px + env(safe-area-inset-left)) !important;
        padding-right: calc(8px + env(safe-area-inset-right)) !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .content-wrapper > section.content.container-fluid > .row,
    .content-wrapper .box-body > .row,
    .content-wrapper .form-horizontal .form-group {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .content-wrapper > section.content.container-fluid > .row > [class*="col-"],
    .content-wrapper .box-body > .row > [class*="col-"],
    .content-wrapper .form-horizontal [class*="col-"] {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .content-wrapper .box,
    .content-wrapper .box-body,
    .content-wrapper .box-footer,
    .content-wrapper .form-horizontal,
    .content-wrapper .image-preview,
    .content-wrapper .google-indexing-panel,
    .content-wrapper #rightSideBox {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .content-wrapper .form-control,
    .content-wrapper input[type="text"],
    .content-wrapper input[type="search"],
    .content-wrapper input[type="url"],
    .content-wrapper input[type="email"],
    .content-wrapper input[type="number"],
    .content-wrapper input[type="date"],
    .content-wrapper input[type="file"],
    .content-wrapper select,
    .content-wrapper textarea,
    .content-wrapper .tokenfield,
    .content-wrapper .twitter-typeahead,
    .content-wrapper .select2-container,
    .content-wrapper .cke {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .content-wrapper .tokenfield {
        display: block !important;
        min-height: var(--admin-touch-size, 44px);
        overflow: hidden;
    }

    .content-wrapper .tokenfield .token {
        max-width: 100%;
        white-space: normal;
    }
}

.admin-submit-progress {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 28, 40, .62);
}

.admin-submit-progress.is-visible {
    display: flex;
}

.admin-submit-progress__card {
    width: min(420px, 100%);
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .24);
    text-align: center;
}

.admin-submit-progress__card .fa {
    display: block;
    margin-bottom: 12px;
    color: #367fa9;
    font-size: 32px;
}

.admin-submit-progress__card strong,
.admin-submit-progress__card span {
    display: block;
}

.admin-submit-progress__card span {
    margin-top: 6px;
    color: #5f6b76;
}

.main-header .pwa-install-button {
    min-height: 44px;
    margin: 3px 4px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
}

.main-header .pwa-install-button:hover,
.main-header .pwa-install-button:focus {
    color: #fff;
    background: rgba(0, 0, 0, .12);
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: -2px;
}

.main-header .pwa-install-button .fa {
    margin-right: 5px;
}

.admin-ajax-progress {
    position: fixed;
    top: 58px;
    right: 14px;
    z-index: 10040;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #1f2d3d;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.admin-ajax-progress.is-visible {
    display: inline-flex;
}

@media (max-width: 767px) {
    .login-page .login-box {
        width: min(360px, calc(100vw - 24px));
        margin: 7vh auto;
    }

    .login-page .login-box .form-control {
        min-height: var(--admin-touch-size, 44px);
        font-size: 16px !important;
    }

    /* Not the iCheck box: its sprite is 22px tall. The label carries the tap size. */
    .login-page .btn {
        min-height: var(--admin-touch-size, 44px);
    }

    .admin-ajax-progress {
        top: calc(54px + env(safe-area-inset-top));
        right: 10px;
        left: 10px;
        justify-content: center;
    }
}

@media (display-mode: standalone) {
    .main-header {
        padding-top: env(safe-area-inset-top);
    }
}

@media (max-width: 767px) {
    /* Drawer backdrop. AdminLTE closes the menu when .content-wrapper is tapped,
       and this pseudo-element belongs to it. Sits under the sidebar (810). */
    .content-wrapper::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 805;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .sidebar-open .content-wrapper::before {
        opacity: 1;
        visibility: visible;
    }

    .content-header > .breadcrumb > li > a {
        display: inline-flex;
        align-items: center;
        min-height: var(--admin-touch-size, 44px);
    }

    .content-header .btn-sm {
        display: inline-flex;
        align-items: center;
        min-height: var(--admin-touch-size, 44px);
    }

    .content-wrapper .row.dashboard-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .row.dashboard-stats::before,
    .row.dashboard-stats::after {
        display: none;
    }

    .dashboard-stats .small-box {
        height: 100%;
        margin-bottom: 0;
    }

    .dashboard-stats .small-box > .inner {
        padding: 10px 12px;
    }

    .dashboard-stats .small-box h3 {
        font-size: 26px;
    }
}
