/* ==========================================================================
   nnax File Manager - Frontend Styles
   Struktur:
   01) Base & Layering (Theme/UIkit + z-index)
   02) UIkit Component Overrides (Buttons, Notifications)
   03) Table & Row Behavior (Desktop)
   04) File Name / Link / Tooltip Helpers
   05) Indicators
   06) File Type Badges
   07) Actions Dropdown & Settings Submenu
   08) Image Preview Toggle
   09) Detail Modal Tabs
   10) Share Modal
   11) Responsive Breakpoints
   12) TinyMCE Modal Fixes

   Breakpoints:
   - <= 991px: mobile table/card behavior + actions menu stacking
   - <= 960px: share layout compaction + title/actions wrapping
   - <= 500px / <= 400px: compact badges/thumbnails/text widths
   - <= 420px: share date field full width
   - >= 640px: limit info always visible
   ========================================================================== */

/* ==========================================================================
   01) Base & Layering
   DMFV Theme Overrides + stacking context
   ========================================================================== */
.nnaxfuf-file-manager h5::after,
.nnaxfuf-modal h5::after {
    display: none;
}

.nnaxfuf-modal {
    z-index: 9999 !important;
    /* Sicherstellen, dass das Modal über allen Dropdowns liegt */
}

/* Keep modal header visible on smaller viewports: cap dialog height and scroll inside. */
.nnaxfuf-modal .uk-modal-dialog {
    max-height: 70vh;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* UIkit tooltip must stay above the custom modal stack */
.uk-tooltip {
    z-index: 10050 !important;
}

/* ==========================================================================
   02) UIkit Component Overrides
   ========================================================================== */
.nnaxfuf-file-manager .uk-button .uk-icon {
    vertical-align: text-bottom;
    padding-top: 5px;
}

.nnaxfuf-file-manager .uk-button-danger,
.nnaxfuf-modal .uk-button-danger {
    background: var(--nnaxfuf-button-danger-bg, var(--nnaxfuf-color-danger)) !important;
    border-color: var(--nnaxfuf-button-danger-border, var(--nnaxfuf-color-danger)) !important;
    color: var(--nnaxfuf-button-danger-text, var(--nnaxfuf-color-on-danger)) !important;
}

.nnaxfuf-file-manager .uk-button-danger:hover,
.nnaxfuf-modal .uk-button-danger:hover {
    background: var(--nnaxfuf-button-danger-hover-bg, var(--nnaxfuf-color-danger-hover)) !important;
    border-color: var(--nnaxfuf-button-danger-hover-border, var(--nnaxfuf-color-danger-hover)) !important;
    color: var(--nnaxfuf-button-danger-hover-text, var(--nnaxfuf-button-danger-text, var(--nnaxfuf-color-on-danger))) !important;
}

.nnaxfuf-file-manager .uk-button-default,
.nnaxfuf-modal .uk-button-default {
    background: var(--nnaxfuf-button-default-bg, var(--nnaxfuf-color-surface)) !important;
    border-color: var(--nnaxfuf-button-default-border, var(--nnaxfuf-color-border)) !important;
    color: var(--nnaxfuf-button-default-text, var(--nnaxfuf-color-text)) !important;
}

.nnaxfuf-file-manager .uk-button-default:hover,
.nnaxfuf-modal .uk-button-default:hover {
    background: var(--nnaxfuf-button-default-hover-bg, var(--nnaxfuf-button-default-bg, var(--nnaxfuf-color-surface-2))) !important;
    border-color: var(--nnaxfuf-button-default-hover-border, var(--nnaxfuf-button-default-border, var(--nnaxfuf-color-border))) !important;
    color: var(--nnaxfuf-button-default-hover-text, var(--nnaxfuf-button-default-text, var(--nnaxfuf-color-text))) !important;
}

.nnaxfuf-file-manager .uk-button-primary,
.nnaxfuf-modal .uk-button-primary {
    background: var(--nnaxfuf-button-primary-bg, var(--nnaxfuf-color-primary)) !important;
    border-color: var(--nnaxfuf-button-primary-border, var(--nnaxfuf-color-primary)) !important;
    color: var(--nnaxfuf-button-primary-text, var(--nnaxfuf-color-on-primary)) !important;
}

.nnaxfuf-file-manager .uk-button-primary:hover,
.nnaxfuf-modal .uk-button-primary:hover {
    background: var(--nnaxfuf-button-primary-hover-bg, var(--nnaxfuf-color-primary-hover)) !important;
    border-color: var(--nnaxfuf-button-primary-hover-border, var(--nnaxfuf-color-primary-hover)) !important;
    color: var(--nnaxfuf-button-primary-hover-text, var(--nnaxfuf-button-primary-text, var(--nnaxfuf-color-on-primary))) !important;
}

.nnaxfuf-file-manager .uk-button-secondary,
.nnaxfuf-modal .uk-button-secondary {
    background: var(--nnaxfuf-button-secondary-bg, #222222) !important;
    border-color: var(--nnaxfuf-button-secondary-border, #222222) !important;
    color: var(--nnaxfuf-button-secondary-text, #ffffff) !important;
}

.nnaxfuf-file-manager .uk-button-secondary:hover,
.nnaxfuf-modal .uk-button-secondary:hover {
    background: var(--nnaxfuf-button-secondary-hover-bg, #151515) !important;
    border-color: var(--nnaxfuf-button-secondary-hover-border, #151515) !important;
    color: var(--nnaxfuf-button-secondary-hover-text, var(--nnaxfuf-button-secondary-text, #ffffff)) !important;
}

.uk-grid-column-small.button-grid>*,
.uk-grid-small.button-grid>* {
    padding-left: 5px;
}

.uk-notification-message {
    margin-top: 5vh !important;
}
.uk-notification-message.uk-notification-message-primary{
    color: var(--nnaxfuf-notification-primary-text, #0099cc);
    background-color: var(--nnaxfuf-notification-primary-bg, #f8f8f8);
}
.uk-notification-message.uk-notification-message-success{
    color: var(--nnaxfuf-notification-success-text, #afcc07);
    background-color: var(--nnaxfuf-notification-success-bg, #f8f8f8);
}
.uk-notification-message.uk-notification-message-warning{
    color: var(--nnaxfuf-notification-warning-text, #faa05a);
    background-color: var(--nnaxfuf-notification-warning-bg, #f8f8f8);
}
.uk-notification-message.uk-notification-message-danger{
    color: var(--nnaxfuf-notification-danger-text, #e4013a);
    background-color: var(--nnaxfuf-notification-danger-bg, #f8f8f8);
}

/* ==========================================================================
   03) Table / Row Behavior (Desktop)
   ========================================================================== */
.nnaxfuf-file-table-wrap {
    overflow: auto;
}

.nnaxfuf-file-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--nnaxfuf-table-head-bg);
    box-shadow: inset 0 -1px 0 var(--nnaxfuf-color-border);
}

.nnaxfuf-file-table tbody tr:hover {
    background: var(--nnaxfuf-row-hover);
    cursor: default;
}

.nnaxfuf-file-table th:last-child,
.nnaxfuf-file-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.nnaxfuf-item-row {
    outline: none;
}

.nnaxfuf-item-row td {
    cursor: pointer;
}

.nnaxfuf-row-folder td:first-child {
    font-weight: 600;
}

.nnaxfuf-row-selected,
.nnaxfuf-row-selected td {
    background: var(--nnaxfuf-row-selected) !important;
}

table.nnaxfuf-info th {
    vertical-align: top;
}

/* ==========================================================================
   04) File Name / Link Layout
   ========================================================================== */
.nnaxfuf-file-title {
    display: inline-block;
    max-width: calc(100% - 60px);
    vertical-align: middle;
}

.nnaxfuf-item-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--nnaxfuf-color-primary);
    text-decoration: none;
}

.nnaxfuf-item-link:hover {
    color: var(--nnaxfuf-color-primary-hover);
}

.nnaxfuf-name-ellipsis {
    display: inline-block;
    max-width: 32ch;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nnaxfuf-tooltip {
    display: inline-flex;
    align-items: center;
    cursor: help;
    pointer-events: auto;
}

.nnaxfuf-limit-infos {
    display: none;
}

.nnaxfuf-limit-infos.nnaxfuf-limit-infos-open {
    display: block;
}

/* ==========================================================================
   05) Indicators
   ========================================================================== */
.nnaxfuf-row-mobile-toggle {
    display: none;
}

.nnaxfuf-row-mobile-tooltip-slot {
    display: none;
}

.nnaxfuf-row-mobile-tooltip-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nnaxfuf-row-mobile-toggle-icon {
    transition: transform 0.2s ease;
}

.nnaxfuf-item-row.nnaxfuf-row-details-open .nnaxfuf-row-mobile-toggle-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   06) File Type Badges
   ========================================================================== */
#content table tr td span.nnaxfuf-file-badge,
span.nnaxfuf-file-badge,
.nnaxfuf-file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2em;
    padding: 0.15em 0.5em;
    margin-right: 0.5em;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.nnaxfuf-file-badge--generic {
    background: var(--nnaxfuf-badge-generic);
}

.nnaxfuf-file-badge--excel {
    background: var(--nnaxfuf-badge-excel);
}

.nnaxfuf-file-badge--image {
    background: var(--nnaxfuf-badge-image);
}

.nnaxfuf-file-badge--pdf {
    background: var(--nnaxfuf-badge-pdf);
}

.nnaxfuf-file-badge--ppt {
    background: var(--nnaxfuf-badge-ppt);
}

.nnaxfuf-file-badge--text {
    background: var(--nnaxfuf-badge-text);
}

.nnaxfuf-file-badge--archive {
    background: var(--nnaxfuf-badge-archive);
}

.nnaxfuf-file-badge--word {
    background: var(--nnaxfuf-badge-word);
}

/* ==========================================================================
   07) Actions Dropdown
   ========================================================================== */
.nnaxfuf-actions {
    position: relative;
    display: inline-block;
}

.nnaxfuf-actions-dropdown .uk-button-text {
    padding: 5px;
    text-align: left;
    color: var(--nnaxfuf-color-text);
    text-transform: uppercase;
}

.nnaxfuf-actions-dropdown .uk-button-text.uk-disabled {
    color: #999 !important;
}

.nnaxfuf-actions-dropdown .uk-button-text span[uk-icon] {
    margin-right: 6px;
}

/* Divider zwischen jedem Menüpunkt im Actions-Dropdown */
.nnaxfuf-actions-dropdown .uk-dropdown-nav>li+li {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 6px;
    padding-top: 6px;
}

/* Alte Divider-LIs im Markup ausblenden */
.nnaxfuf-actions-dropdown .uk-dropdown-nav>li.uk-nav-divider {
    display: none;
}

.nnaxfuf-actions-dropdown .uk-button-text:hover {
    background-color: var(--nnaxfuf-row-selected);
}

.nnaxfuf-actions-dropdown .uk-button-text:hover::before {
    display: none;
}

.nnaxfuf-row-selected .nnaxfuf-actions button {
    background: #fff;
}

.nnaxfuf-settings-actions {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.nnaxfuf-settings-submenu-item {
    position: relative;
}

.nnaxfuf-settings-submenu-trigger {
    display: flex;
    align-items: center;
}

.nnaxfuf-settings-submenu-caret {
    margin-left: auto;
}

.nnaxfuf-settings-submenu {
    position: absolute;
    top: -10px;
    z-index: 1100;
    min-width: 240px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.nnaxfuf-settings-actions .nnaxfuf-actions-dropdown {
    min-width: 280px;
}

.nnaxfuf-settings-actions .uk-button-text {
    white-space: nowrap;
}

.nnaxfuf-settings-submenu-item.nnaxfuf-settings-submenu-right .nnaxfuf-settings-submenu {
    left: calc(100% + 8px);
}

.nnaxfuf-settings-submenu-item.nnaxfuf-settings-submenu-left .nnaxfuf-settings-submenu {
    right: calc(100% + 8px);
}

.nnaxfuf-settings-submenu-item.is-open .nnaxfuf-settings-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px;
}

.nnaxfuf-settings-submenu-item.is-open.nnaxfuf-settings-submenu-right .nnaxfuf-settings-submenu::before {
    left: -12px;
}

.nnaxfuf-settings-submenu-item.is-open.nnaxfuf-settings-submenu-left .nnaxfuf-settings-submenu::before {
    right: -12px;
}

.nnaxfuf-settings-submenu[hidden] {
    display: none;
}

.nnaxfuf-actions-menu .uk-button-default .uk-icon,
.nnaxfuf-actions-menu .uk-button-default .uk-icon {
    padding: unset;
    vertical-align: baseline;
}

.nnaxfuf-actions-dropdown .uk-button-text.is-active {
    background-color: var(--nnaxfuf-row-selected);
}

/* ==========================================================================
   08) Image Preview Toggle
   ========================================================================== */
.nnaxfuf-list-thumb {
    display: none;
    width: 50px;
    height: 50px;
    margin-right: 0.5em;
    vertical-align: middle;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.nnaxfuf-list-thumb img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    display: block;
}

/* State: Show Previews */
.nnaxfuf-show-previews .nnaxfuf-file-badge--image {
    display: none !important;
}

.nnaxfuf-show-previews .nnaxfuf-list-thumb {
    display: inline-block;
}

/* ==========================================================================
   09) Detail Modal Tabs
   ========================================================================== */
#nnaxfuf_detail_tabs {
    border-bottom: 0;
    gap: 6px;
    margin-left: 0;
}

#nnaxfuf_detail_tabs>li {
    padding-left: 0;
}

#nnaxfuf_detail_tabs>li>a {
    border: 1px solid var(--nnaxfuf-color-border);
    border-radius: 0;
    padding: 6px 12px;
    background: var(--nnaxfuf-color-surface-2);
    color: var(--nnaxfuf-color-text);
    text-transform: none;
}

#nnaxfuf_detail_tabs>li.uk-active>a {
    border-color: var(--nnaxfuf-color-primary);
    background: var(--nnaxfuf-color-surface);
    color: var(--nnaxfuf-color-primary);
}

#nnaxfuf_detail_tab_switcher .uk-description-list > dt {
    display: inline-flex;
}

/* ==========================================================================
   10) Share Modal
   ========================================================================== */
.nnaxfuf-share-modal-dialog {
    width: min(920px, calc(100vw - 2rem)) !important;
}

.nnaxfuf-share-list-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0 8px;
    border-bottom: 1px solid var(--nnaxfuf-color-border);
}

.nnaxfuf-share-layout-card .nnaxfuf-share-list-head,
.nnaxfuf-share-layout-compact .nnaxfuf-share-list-head {
    display: none;
}

.nnaxfuf-share-list-head>span:first-child {
    flex: 0 0 240px;
}

.nnaxfuf-share-list-head-action {
    margin-left: auto;
}

.nnaxfuf-share-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.nnaxfuf-share-user-row--card {
    background: var(--nnaxfuf-color-surface-2);
    border: 1px solid var(--nnaxfuf-color-border);
    border-radius: 8px;
    padding: 10px 12px;
}

.nnaxfuf-share-user-row--compact {
    gap: 8px;
    padding: 4px 0;
}

.nnaxfuf-share-user-name {
    flex: 0 0 200px;
    min-width: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nnaxfuf-share-user-controls {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
}

.nnaxfuf-share-field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.nnaxfuf-share-user-row--compact .nnaxfuf-share-inline-label {
    font-size: 11px;
    min-width: 30px;
}

.nnaxfuf-share-inline-label {
    color: var(--nnaxfuf-color-muted);
    font-size: 12px;
    white-space: nowrap;
}

.nnaxfuf-share-role-select {
    width: min(120px, 52vw);
}

.nnaxfuf-share-user-row--compact .nnaxfuf-share-role-select {
    width: min(90px, 46vw);
}

.nnaxfuf-share-date-input {
    width: 170px;
}

.nnaxfuf-share-remove {
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 2px;
    white-space: nowrap;
}

.nnaxfuf-search-form{
    gap: 8px;
}

.nnaxfuf-search-reset .uk-icon{
    vertical-align: center;
    padding: 0 !important;
}

/* ==========================================================================
   11) Responsive Layout
   ========================================================================== */

/* <= 991px: row-details mobile table + action/menu stacking */
@media (max-width: 991px) {
    .nnaxfuf-row-mobile-toggle {
        display: inline-flex;
        align-items: center;
    }

    .nnaxfuf-actions-menu {
        flex-direction: column;
        gap: 10px;
    }
    .nnaxfuf-settings-actions{
        margin-left: 0px;
    }

    .nnaxfuf-file-table-wrap {
        overflow: visible;
        max-height: none !important;
    }

    .nnaxfuf-file-table,
    .nnaxfuf-file-table tbody,
    .nnaxfuf-file-table tr,
    .nnaxfuf-file-table td {
        display: block;
        width: 100%;
    }

    .nnaxfuf-file-table thead {
        display: none;
    }

    .nnaxfuf-file-table tbody tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid var(--nnaxfuf-color-border);
        background: var(--nnaxfuf-color-surface);
    }

    .nnaxfuf-file-table tbody td {
        border: 0;
        padding: 6px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100% !important;
        white-space: wrap !important;
    }

    .nnaxfuf-file-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--nnaxfuf-color-muted);
        font-size: 12px;
        font-weight: 600;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-select {
        justify-content: space-between;
        gap: 8px;
        align-items: center;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-select .uk-checkbox {
        margin: 0;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-select::before {
        display: none;
    }

    .nnaxfuf-row-mobile-tooltip-slot {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .nnaxfuf-row-mobile-tooltip-slot .nnaxfuf-tooltip {
        margin-left: 0 !important;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-name {
        display: block;
        padding-top: 0;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-name::before {
        display: block;
        margin-bottom: 6px;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-actions .nnaxfuf-actions {
        margin-left: auto;
    }

    .nnaxfuf-file-table tbody td.nnaxfuf-col-size,
    .nnaxfuf-file-table tbody td.nnaxfuf-col-modified,
    .nnaxfuf-file-table tbody td.nnaxfuf-col-actions {
        display: none;
    }

    .nnaxfuf-file-table tbody tr.nnaxfuf-row-details-open td.nnaxfuf-col-size,
    .nnaxfuf-file-table tbody tr.nnaxfuf-row-details-open td.nnaxfuf-col-modified,
    .nnaxfuf-file-table tbody tr.nnaxfuf-row-details-open td.nnaxfuf-col-actions {
        display: flex;
    }

    .nnaxfuf-file-title,
    .nnaxfuf-name-ellipsis {
        max-width: 100%;
    }

    .nnaxfuf-row-mobile-toggle-icon.uk-icon {
        padding: 5px;
    }

    .uk-search-default,
    #nnaxfuf_bulk_actions_btn{
        width: 100%;
    }
}

/* <= 960px: share modal controls + title/actions flow */
@media (max-width: 960px) {
    .nnaxfuf-share-list-head {
        display: none;
    }

    .nnaxfuf-share-user-row {
        flex-wrap: wrap;
    }

    .nnaxfuf-share-user-name {
        flex-basis: calc(100% - 40px);
    }
    .nnaxfuf-share-field.nnaxfuf-share-field-role {
        flex-basis: 100%;
    }
    .nnaxfuf-share-field.nnaxfuf-share-field-date {
        flex-basis: calc(50% - 6px);
    }
    .nnaxfuf-share-field select,
    .nnaxfuf-share-field input{
        width: 100% !important;
    }

    .nnaxfuf-share-user-controls {
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .nnaxfuf-share-remove {
        margin-left: 0;
    }

    .nnaxfuf-file-manager .nnaxfuf-title-block {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nnaxfuf-file-manager .nnaxfuf-title-block>div:last-child>div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nnaxfuf-file-manager .nnaxfuf-title-block>div:last-child .uk-button {
        margin-left: 0 !important;
    }

    .nnaxfuf-actions-menu>.uk-flex {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nnaxfuf-search-wrap {
        flex: 1 1 100%;
        margin-left: 0 !important;
    }

    .nnaxfuf-filter-actions,
    #nnaxfuf_filter_actions_btn,
    #nnaxfuf_bulk_actions_btn {
        width: 100%;
    }

    .nnaxfuf-search-form,
    .uk-search-default {
        width: 100%;
        margin: 0;
    }

    .nnaxfuf-search-form .uk-width-expand {
        padding-left: 0;
    }

    #nnaxfuf-detail-modal .uk-modal-dialog {
        width: calc(100vw - 1rem);
        padding: 14px;
    }

    #nnaxfuf_detail_tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 4px;
    }
    table.nnaxfuf-info th, 
    table.nnaxfuf-info td {
        display: block;
    }
}

/* >= 640px: keep expanded helper text visible on non-mobile */
@media (min-width: 640px) {
    .nnaxfuf-limit-infos {
        display: block !important;
    }
}

/* <= 500px: tighter badge/thumb sizes and toolbar truncation */
@media (max-width:500px) {
    #content table tr td span.nnaxfuf-file-badge, 
    span.nnaxfuf-file-badge, 
    .nnaxfuf-file-badge{
        min-width: 30px;
        font-size: 0.65rem;
    }

    .nnaxfuf-list-thumb {
        width: 30px;
        height: 30px;
    }
    .nnaxfuf-list-thumb img {
        width: 30px !important;
        height: 30px !important;
    }
    .nnaxfuf-item-link{
        width: 100%;
    }
    .nnaxfuf-file-title, .nnaxfuf-name-ellipsis {
        max-width: calc(100% - 60px);
    }
    #nnaxfuf_bulk_actions_btn {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    .nnaxfuf-back-button {
        padding: 5px;
        width: 60px;
    }
}

/* <= 420px: date field wraps to full width */
@media (max-width: 420px){
    .nnaxfuf-share-field.nnaxfuf-share-field-date {
        flex-basis: 100%;
    }
}

/* <= 400px: ultra-compact badge/thumb sizes */
@media (max-width:400px) {
    #content table tr td span.nnaxfuf-file-badge, 
    span.nnaxfuf-file-badge, 
    .nnaxfuf-file-badge{
        min-width: 20px;
        font-size: 0.55rem;
    }

    .nnaxfuf-list-thumb {
        width: 20px;
        height: 20px;
    }
    .nnaxfuf-list-thumb img {
        width: 20px !important;
        height: 20px !important;
    }
    .nnaxfuf-file-title, .nnaxfuf-name-ellipsis {
        max-width: calc(100% - 50px);
    }
}

/* ==========================================================================
   12) TinyMCE Modal Fixes
   ========================================================================== */
.mce-container,
.mce-floatpanel,
.tox-tinymce-aux,
.tox-tinymce,
.tox-editor-header {
    z-index: 100000 !important;
}

#nnaxfuf_notification_msg_container .mce-tinymce,
#nnaxfuf_notification_msg_container .tox-tinymce {
    display: block !important;
    visibility: visible !important;
    min-height: 200px !important;
    pointer-events: all !important;
}

#nnaxfuf_notification_msg_container iframe {
    min-height: 160px !important;
    display: block !important;
    pointer-events: all !important;
}
