/**
 * Veno File Manager custom CSS
 *
 * Architecture:
 * 1. Tokens and semantic base from _content/template/colors.css
 * 2. Base primitives and accessibility helpers
 * 3. App-shell surfaces for auth, shared links and file details
 * 4. Drive manager, sidebar and search modules
 * 5. States and responsive overrides
 */

body {
    background-color: var(--vfm-bg);
    color: var(--vfm-text);
    font-family: var(--vfm-font-family-base);
    font-size: var(--vfm-font-size-base);
    line-height: var(--vfm-line-height-base);
}

a {
    color: var(--vfm-link) !important;
    text-decoration: none;
    transition: color var(--vfm-transition);
}

a:hover {
    color: var(--vfm-text);
}

:focus-visible {
    outline: 2px solid var(--vfm-primary);
    outline-offset: 2px;
}

.is-loading,
.is-busy {
    pointer-events: none;
    cursor: progress;
    opacity: 0.72;
}

.is-empty {
    color: var(--vfm-text-muted);
}

.is-error {
    color: var(--vfm-danger);
}

.is-selected,
[aria-selected="true"] {
    background-color: var(--vfm-primary-soft);
}

/* Auth pages: login and reset */
.to-top {
    bottom: 5rem !important;
}

.auth-page {
	min-height: calc(100vh - 4rem);
    background: var(--vfm-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1rem 1.25rem;
	margin: 0 auto;
}

.auth-shell {
    background: var(--vfm-surface);
    border: 1px solid var(--vfm-border);
	border-radius: 1.25rem;
    box-shadow: var(--vfm-shadow-md);
	width: 100%;
	max-width: 23rem;
	margin: auto;
}

.auth-hero {
	padding: 1rem 0.5rem 0.5rem;
	text-align: center;
    border-bottom: 1px solid var(--vfm-border);
}

.auth-hero__icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
    background: var(--vfm-primary);
    color: var(--color-primary-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.3rem;
}

.auth-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
    color: var(--vfm-text);
}

.auth-body {
	padding: 1rem;
}

.auth-form-group {
	margin-bottom: 0.8rem;
}

.auth-form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
    color: var(--vfm-text-muted);
	margin-bottom: 0.3rem;
}

.auth-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.auth-input-group .input-group-text {
    border: 1px solid var(--vfm-border);
    background: var(--vfm-surface);
    color: var(--vfm-text-muted);
	font-size: 0.95rem;
	border-radius: 0.75rem 0 0 0.75rem;
    padding: 0.3rem 0.5rem;
}

.auth-input-group .form-control {
    border: 1px solid var(--vfm-border);
	border-radius: 0 0.75rem 0.75rem 0;
	padding: 0.3rem 0.5rem;
	font-size: 0.95rem;
}

.auth-input-group .form-control:focus {
    border-color: var(--vfm-primary);
    box-shadow: var(--vfm-focus-ring);
}

.auth-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0;
	font-size: 0.875rem;
}

.auth-checkbox input[type="checkbox"] {
	border-radius: 0.35rem;
}

.auth-checkbox label {
	margin: 0;
}

.auth-checkbox a {
    color: var(--vfm-link);
	text-decoration: underline;
}

.auth-button {
	border-radius: 0.75rem;
	font-weight: 600;
	padding: 0.65rem 1rem;
	transition: all 0.2s ease;
	width: 100%;
}

.auth-button.btn-primary {
    background: var(--vfm-primary);
    border-color: var(--vfm-primary);
}

.auth-button.btn-primary:hover {
    background: var(--vfm-primary-hover);
    border-color: var(--vfm-primary-hover);
}

.auth-footer {
	padding: 0.5rem 0.5rem 0.5rem;
	text-align: center;
    border-top: 1px solid var(--vfm-border);
}

.auth-footer a {
    color: var(--vfm-link);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
}

.auth-footer a:hover {
	text-decoration: underline;
}

.auth-register-btn {
	text-align: center;
	margin-top: 1.25rem;
}

.auth-register-btn a {
	display: inline-block;
	width: 100%;
	max-width: 28rem;
	border-radius: 0.75rem;
	font-weight: 600;
	padding: 0.65rem 1rem;
    border: 1px solid var(--vfm-primary);
	background: transparent;
    color: var(--vfm-primary);
	text-decoration: none;
	transition: all 0.2s ease;
}

.auth-register-btn a:hover {
    background: var(--vfm-primary-soft);
}

.sendresponse {
	margin-bottom: 1rem;
}

.auth-desc {
	padding: 1rem 0;
    color: var(--vfm-text-muted);
	font-size: 0.875rem;
	text-align: center;
}

.mailpreload {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.mailpreload.active {
	display: flex !important;
}

.mailpreload[style*="display: block"] {
	display: flex !important;
}

.mailpreload__content {
	background: #fff;
	padding: 2rem;
	border-radius: 1rem;
	text-align: center;
}

.auth-invalid-box {
	padding: 1.5rem;
}

.auth-invalid-alert {
	border-radius: 0.75rem;
	border: none;
	background: #fee;
	color: #c33;
}

.auth-hero__desc {
	margin: 0.75rem 0 0;
	color: #667085;
	font-size: 0.875rem;
}

/* Inline login variant */
.inline-login-form {
	background: #f6f8fb;
	border: 1px solid #e4e8ef;
	border-radius: 1rem;
	padding: 1.25rem;
}

.inline-login-form .auth-form-group {
	margin-bottom: 0.75rem;
}

.inline-login-form label {
	font-size: 0.8rem;
	color: #667085;
}

.inline-login-form .auth-input-group .input-group-text {
	border-radius: 0.6rem 0 0 0.6rem;
}

.inline-login-form .auth-input-group .form-control {
	border-radius: 0 0.6rem 0.6rem 0;
}

.inline-login-form .auth-button {
	margin-top: 0.5rem;
}

.auth-inline-register {
	margin-top: 0.75rem;
}

.auth-inline-register .btn {
	width: 100%;
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 0.875rem;
}

.auth-inline-lostpwd {
	text-align: center;
	margin-top: 0.75rem;
}

.auth-inline-lostpwd .small {
	color: #0d6efd;
	text-decoration: none;
	font-weight: 600;
}

.main-content {
    justify-content: center;
    padding-top: 0 !important;
}

@media (max-width: 575.98px) {
	.auth-page {
		min-height: calc(100vh - 8rem);
		padding: 0.5rem;
	}

	.auth-shell {
		border-radius: 1rem;
		max-width: 100%;
	}

	.auth-hero {
		padding: 1.5rem 1rem;
	}

	.auth-body {
		padding: 1rem;
	}

	.auth-footer {
		padding: 0.75rem 1rem;
	}
}

body.unlogged .container-fluid.fx-drive-shell {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.unlogged .main-content {
	min-height: calc(100vh - 4rem);
	align-items: center;
	justify-content: center;
}

body.unlogged .main-content > * {
	width: 100%;
}

/* Shared links page (migrado desde downloader.php) */
.shared-page {
    min-height: 100vh;
    background: var(--vfm-bg);
}

.shared-page > .container-lg {
    position: relative;
    z-index: 1;
}

.shared-panel {
    background: var(--vfm-surface);
    border: 1px solid var(--vfm-border);
    border-radius: 1.25rem;
    box-shadow: 0 0.75rem 1.75rem rgba(16, 24, 40, 0.04);
}

.shared-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.shared-hero__lead {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.shared-hero__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.shared-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #667085;
    margin-bottom: 0.25rem;
}

.shared-hero__title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    color: var(--vfm-text);
}

.shared-hero__desc {
    margin: 0.35rem 0 0;
    color: #667085;
    max-width: 46rem;
}

.shared-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.shared-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    background: var(--vfm-bg);
    color: var(--vfm-text);
    font-size: 0.8rem;
    font-weight: 400;
}

.shared-chip--primary {
    background: #eaf2ff;
    color: #0d6efd;
}

.shared-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.shared-zip-btn {
    border-radius: 0.3rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
}

.shared-section {
    padding: 1.25rem 1.5rem 1.5rem;
}

.shared-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shared-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.shared-toolbar .form-control,
.shared-toolbar .form-select {
    min-width: 12rem;
    border-radius: 999px;
}

.shared-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vfm-text);
}

.shared-section__subtitle {
    margin: 0;
    color: var(--vfm-text-muted);
    font-size: 0.875rem;
}

.shared-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shared-empty-state {
    display: none;
    text-align: center;
    padding: 1.5rem;
    border: 1px dashed #d0d7e2;
    border-radius: 1rem;
    color: #667085;
    background: #fafcff;
}

.shared-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .5rem;
    border: 1px solid var(--vfm-border);
    border-radius: .3rem;
    background: var(--vfm-surface);
}

.shared-file-row:hover {
    border-color: var(--vfm-border-strong);
    box-shadow: var(--vfm-shadow-sm);
}

.shared-file-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shared-file-media .service-btn {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border-radius: 0.3rem;
    overflow: hidden;
    box-shadow: none;
}

.shared-file-media .service-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-icon-box {
    width: 2rem;
}

.shared-thumb-img {
    height: 3.5rem;
    width: 3.5rem;
    max-width: none;
}

.shared-file-body {
    min-width: 0;
}

.shared-file-title {
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--vfm-text);
    text-decoration: none;
    word-break: break-word;
}

button.shared-file-title {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
}

button.shared-file-title:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
    border-radius: 0.4rem;
}

.shared-file-title:hover {
    color: #0d6efd;
}

.shared-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.shared-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.5rem;
    background: var(--vfm-bg);
    border: 1px solid var(--vfm-border);
    color: var(--vfm-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.shared-file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shared-file-actions .btn {
    border-radius: 0.3rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.shared-auth-card,
.shared-expired {
    max-width: 34rem;
    margin: 2rem auto 0;
    background: var(--vfm-surface);
    border: 1px solid var(--vfm-border);
    border-radius: 1.25rem;
    box-shadow: var(--vfm-shadow-md);
}

.shared-auth-card .card-body,
.shared-expired {
    padding: 1.5rem;
}

.shared-auth-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.shared-auth-head__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: var(--vfm-primary-soft);
    color: var(--vfm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.shared-auth-head__icon--expired {
    background: var(--vfm-danger-soft);
    color: var(--vfm-danger);
}

.shared-auth-head__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vfm-text);
}

.shared-auth-head__desc {
    margin: 0.35rem 0 0;
    color: var(--vfm-text-muted);
}

.shared-expired {
    text-align: center;
}

.shared-expired__title {
    margin: 0.75rem 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vfm-text);
}

.shared-expired__desc {
    margin: 0;
    color: var(--vfm-text-muted);
}

.shared-auth-btn {
    border-radius: 999px;
    font-weight: 700;
}

.shared-expired-home-btn {
    border-radius: 999px;
    font-weight: 700;
    min-width: 12rem;
}

.tm-progress__bar {
    display: block;
    height: 100%;
}

@media (max-width: 767.98px) {
    .shared-hero,
    .shared-section,
    .shared-file-row,
    .shared-auth-card .card-body,
    .shared-expired {
        padding: 1rem;
    }

    .shared-file-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .shared-file-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .shared-hero__actions {
        justify-content: flex-start;
    }

    .shared-toolbar {
        justify-content: flex-start;
    }
}

/* File details page (migrado desde file-details.php) */
.details-page {
    min-height: 100vh;
    background: var(--vfm-bg);
}

.details-page > .container-lg {
    position: relative;
    z-index: 1;
}

.details-shell {
    background: var(--vfm-surface);
    border: 0px solid var(--vfm-border);
    border-radius: 0;
    box-shadow: var(--vfm-shadow-md);
}

.details-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.details-hero__lead {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.details-hero__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: var(--vfm-primary);
    color: var(--color-primary-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.details-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vfm-text-muted);
    margin-bottom: 0.25rem;
}

.details-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    color: var(--vfm-text);
    word-break: break-word;
}

.details-desc {
    margin: 0.35rem 0 0;
    color: var(--vfm-text-muted);
    max-width: 52rem;
}

.details-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.details-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--vfm-surface-alt);
    color: var(--vfm-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.details-chip--primary {
    background: var(--vfm-primary-soft);
    color: var(--vfm-primary);
}

.details-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.details-section {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--vfm-border-strong);
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.details-card {
    border: 1px solid var(--vfm-border);
    border-radius: 1rem;
    background: var(--vfm-surface);
    box-shadow: var(--vfm-shadow-sm);
}

.details-card__head {
    padding: 1rem 1rem 0;
}

.details-card__head--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.details-card__head--actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.details-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vfm-text-muted);
}

.details-card__body {
    padding: 1rem;
}

.details-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.details-meta {
    border: 1px solid var(--vfm-border);
    border-radius: 0.9rem;
    background: var(--vfm-surface);
    padding: 0.9rem;
}

.details-meta__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vfm-text-muted);
    margin-bottom: 0.35rem;
}

.details-meta__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vfm-text);
    word-break: break-word;
}

.details-path {
    font-family: var(--vfm-font-family-mono);
}

.details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.details-actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.details-share-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.details-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--vfm-border);
    border-radius: 1rem;
    background: var(--vfm-surface);
}

.details-share-row--expired {
    border-color: var(--vfm-danger-soft);
    background: #fffafa;
}

.details-share-body {
    min-width: 0;
    flex: 1 1 24rem;
}

.details-share-link {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--vfm-text);
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.details-share-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.details-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.details-share-actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.details-share-warning {
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: var(--vfm-warning-soft);
    border: 1px solid #ffd8a8;
    color: var(--vfm-warning);
    font-size: 0.9rem;
    font-weight: 600;
}

.details-share-warning i {
    margin-right: 0.35rem;
}

.details-share-delete {
    border-radius: 999px;
    font-weight: 600;
}

.details-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.33rem 0.62rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.details-status--active {
    background: var(--vfm-primary-soft);
    color: var(--vfm-primary);
}

.details-status--expired {
    background: var(--vfm-danger-soft);
    color: var(--vfm-danger);
}

.details-status--protected {
    background: var(--vfm-warning-soft);
    color: var(--vfm-warning);
}

.details-back {
    border-radius: 999px;
    font-weight: 700;
}

/* Main file manager panels */
.fx-drive-shell {
    width: 100%;
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0 !important;
}

.fx-drive-layout {
    align-items: flex-start;
}

.fx-drive-sidebar,
.fx-drive-main {
    min-width: 0;
}

.fx-drive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fx-drive-sidebar-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.fx-drive-sidebar-shell__head,
.fx-drive-sidebar-shell__body {
    width: 100%;
}

.fx-sidebar-brand {
    padding: 1rem 0.5rem 0;
}

.fx-sidebar-brand-link {
    color: inherit;
    text-decoration: none;
    justify-content: center;
}

.fx-sidebar-brand-logo {
    max-height: 2.25rem;
    width: auto;
    display: block;
    border-radius: 0.75rem;
}

.fx-sidebar-brand-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.fx-drive-sidebar-shell__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 1rem;
    padding-right: .5rem;
}

.fx-drive-sidebar-shell__footer {
    border-top: 1px solid var(--bs-border-color, #e9edf3);
    padding: 0.3rem 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bs-body-bg, #ffffff);
}

.fx-sidebar-footer-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--bs-body-color, #101828);
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 0;
}

.fx-sidebar-footer-user-main {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.fx-sidebar-footer-user img.avatar {
    width: 1.7rem;
    height: 1.7rem;
    object-fit: cover;
    margin-right: 0rem;
}

.fx-sidebar-footer-user button {
    color: inherit;
    font-weight: 600;
    padding: 0.3rem !important;
}

.fx-sidebar-footer-user button:hover {
    color: inherit;
    text-decoration: none;
    background-color: var(--hover-bg-menu);
    padding: 0.3rem !important;
    border-radius: 1rem;
}

.fx-sidebar-footer-actions {
    display: flex;
    align-items: center;
    gap: 0rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.fx-sidebar-footer-actions .btn-icon {
    min-width: 2rem;
    min-height: 2rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 0px;
}

.fx-sidebar-footer-actions .dropdown-toggle::after {
    display: none;
}

.fx-sidebar-footer-actions .lang-menu {
    min-width: 12rem;
}

.fx-sidebar-user-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.vfm-navbar {
    background: var(--vfm-surface);
    border-bottom: 1px solid var(--vfm-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.dark-mode .vfm-navbar {
    background: var(--vfm-surface);
    border-color: var(--vfm-border);
}

.vfm-navbar .navbar-brand {
    color: var(--vfm-text);
}

.vfm-navbar .navbar-brand:hover {
    color: var(--vfm-link);
}

.vfm-navbar .navbar-brand-image {
    max-height: 2rem;
    width: auto;
}

.vfm-navbar .dropdown-menu {
    background: var(--vfm-surface);
    border-color: var(--vfm-border);
}

.fx-sidebar-user-menu-toggle {
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--vfm-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all var(--vfm-transition);
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
}

.fx-sidebar-user-menu-toggle:hover {
    background-color: var(--hover-bg-menu);
    color: var(--vfm-text);
}

.fx-sidebar-user-menu-panel {
    position: fixed;
    background: var(--vfm-surface);
    border: 1px solid var(--vfm-border);
    border-radius: 0.3rem;
    min-width: 200px;
    max-width: 280px;
    width: min(280px, calc(100vw - 16px));
    display: none;
    z-index: 1100;
    box-shadow: var(--vfm-shadow-sm);
    overflow-y: auto;
    max-height: calc(100vh - 16px);
    right: auto;
}

.fx-sidebar-user-menu-panel.open {
    display: flex;
    flex-direction: column;
    z-index: 12000000000;
}

.fx-sidebar-user-menu-item {
    background: none;
    border: none;
    padding: 0.65rem 1rem;
    cursor: pointer;
    color: var(--vfm-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    white-space: nowrap;
    transition: all var(--vfm-transition);
    text-align: left;
    width: 100%;
    text-decoration: none;
}

.fx-sidebar-user-menu-item:hover {
    background-color: var(--vfm-surface-alt);
    color: var(--vfm-text);
}

.fx-sidebar-user-menu-item:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.fx-sidebar-user-menu-lang-toggle {
    justify-content: space-between;
}

.fx-sidebar-user-menu-subpanel {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--vfm-border);
}

.fx-sidebar-user-menu-subpanel.open {
    display: flex;
}

.fx-sidebar-user-menu-submenu-icon {
    font-size: 0.7rem;
    color: var(--vfm-text-muted);
}

.fx-sidebar-user-menu-subpanel .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
    width: 100%;
    display: block !important;
}

.fx-sidebar-user-menu-subpanel .dropdown-menu .dropdown-item {
    padding: 0.65rem 1rem;
    color: var(--vfm-text);
}

.fx-sidebar-user-menu-subpanel .dropdown-menu .dropdown-item:hover,
.fx-sidebar-user-menu-subpanel .dropdown-menu .dropdown-item:focus {
    background-color: var(--vfm-surface-alt);
    color: var(--vfm-text);
}

.fx-drive-sidebar-backdrop {
    display: none;
}

.fx-mobile-storage-footer {
    margin-top: 0.85rem;
}

.fx-sidebar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.15rem;
    margin-bottom: .1rem !important;
}

.fx-sidebar-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vfm-text);
    font-weight: 00;
    font-size: 1rem;
}

.fx-sidebar-section-subtitle {
    color: var(--vfm-text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
    text-transform: none !important;
    font-weight: 100;
}

.fx-sidebar-accordion-shell {
    border: 1px solid var(--vfm-border);
    border-radius: 1.15rem;
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 34%), linear-gradient(180deg, var(--vfm-surface) 0%, var(--vfm-surface-alt) 100%);
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.fx-sidebar-accordion-item {
    border: 0 solid var(--vfm-border);
    border-radius: 1rem;
    background: var(--vfm-surface);
    overflow: clip;
}

.fx-sidebar-accordion-item + .fx-sidebar-accordion-item {
    margin-top: 0.75rem;
}

.fx-sidebar-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.fx-sidebar-accordion-summary::-webkit-details-marker {
    display: none;
}

.fx-sidebar-accordion-summary:hover,
.fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary {
    background: var(--vfm-primary-soft);
    border-radius: 1rem;
}

.fx-sidebar-accordion-summary:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.fx-sidebar-accordion-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--vfm-text);
}

.fx-sidebar-accordion-summary-main .bi {
    flex: 0 0 auto;
    color: var(--vfm-primary);
}

.fx-sidebar-accordion-summary-main span {
    min-width: 0;
}

.fx-sidebar-accordion-summary-meta {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--vfm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fx-sidebar-accordion-caret {
    flex: 0 0 auto;
    color: var(--vfm-text-subtle);
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.fx-sidebar-accordion-caret--open {
    display: none;
}

.fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-caret {
    color: var(--vfm-primary);
}

.fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-caret--closed {
    display: none;
}

.fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-caret--open {
    display: inline-flex;
}

.fx-sidebar-accordion-content {
    border-top: 0px solid #edf2f7;
    padding: 0;
}

.fx-sidebar-accordion-content .fx-side-list-block {
    padding: 0;
    border: 0;
    background: transparent;
}

.fx-side-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.1rem;
}

.fx-side-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.0rem 0.6rem;
    border: 0px solid var(--vfm-border);
    border-radius: 0.9rem;
    background: transparent;
    transition: border-color var(--vfm-transition), box-shadow var(--vfm-transition), transform var(--vfm-transition);
}

.fx-side-entry:hover {
    border-color: var(--vfm-primary-soft);
    box-shadow: 0 0.35rem 0.9rem rgba(13, 110, 253, 0.06);
    transform: translateY(-1px);
}

.fx-side-entry__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--vfm-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.fx-side-entry__link:hover,
.fx-side-entry__link:focus {
    color: var(--vfm-primary);
    text-decoration: none;
}

.fx-side-entry__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--vfm-text);
}

.fx-side-entry__icon .bi {
    font-size: 0.9rem;
}

.fx-side-entry__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-side-entry__action {
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: 999px;
    padding: 0.15rem 0.35rem;
}

.fx-sidebar-empty-state {
    padding: 0.2rem 0.1rem 0.05rem;
    color: #667085;
    font-size: 0.875rem;
}

.fx-drive-sidebar .fx-upload-panel,
.fx-drive-sidebar .fx-folders-panel,
.fx-drive-sidebar .fx-space-panel {
    margin-bottom: 0;
}

.fx-drive-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pt-5 {
    padding-top: 0 !important;
}

.fx-drive-main .fx-folders-panel,
.fx-drive-main .fx-files-panel {
    margin-bottom: 0 !important;
}

@media (min-width: 1200px) {
    .fx-drive-layout {
        min-height: 100vh;
    }

    .fx-drive-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: min(24rem, 24%);
        display: flex;
        flex-direction: column;
        z-index: 100;
        background: transparent;
        margin-top: 0;
        border-right: 1px solid var(--bs-border-color, #e9edf3);
    }

    .fx-drive-sidebar-shell {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-height: 100%;
        transform: none;
        overflow: hidden;
        border: 0;
        box-shadow: none;
        background: var(--bs-body-bg, #ffffff);
    }

    .fx-drive-sidebar-shell__head {
        display: none;
    }

    .fx-drive-sidebar-shell__body {
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        padding-left: .5rem;
    }

    .fx-drive-sidebar-shell__footer {
        margin-top: auto;
        z-index: 1;
        background: var(--bs-body-bg, #ffffff);
    }

    .fx-drive-main {
        margin-left: min(calc(24rem + 1rem), 25%);
        max-width: calc(100% - min(24rem + 1rem, 25%));
        padding: 0rem 0.3rem;
    }

    .fx-drive-shell .fx-drive-layout {
        --bs-gutter-x: 0rem;
        padding-right: 0;
        margin-top: -1rem !important;
    }
}

@media (max-width: 1199.98px) {
    .fx-drive-main {
        order: 1;
    }

    .fx-drive-sidebar {
        order: 2;
    }
}

.fx-files-panel,
.fx-folders-panel {
    position: relative;
}

.fx-panel-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--vfm-border);
    border-radius: 0.3rem;
    background: var(--vfm-surface);
    box-shadow: none !important;
    padding: 1rem .5rem !important;
    margin-bottom: 0 !important;
}

.fx-files-table-card,
.fx-folders-table-card {
    overflow: visible;
}

.fx-panel-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0rem;
    background: linear-gradient(90deg, var(--vfm-primary) 0%, #6ea8fe 50%, #dbeafe 100%);
    opacity: 0.95;
}

.fx-panel-head {
    padding: 0.25rem 0 1rem;
    gap: 0.75rem;
    align-items: center;
}

.fx-panel-head .btn-group .btn,
.fx-panel-head .switchview {
    border-radius: 9px;
}

.fx-panel-heading {
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.fx-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--vfm-text);
    letter-spacing: 0.01em;
}

.fx-panel-subtitle {
    margin: 0.2rem 0 0;
    color: var(--vfm-text-muted);
    font-size: 0.78rem;
}

.fx-files-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.fx-files-table.listview {
    table-layout: fixed;
    width: 100%;
}

.fx-files-table.listview thead td,
.fx-files-table.listview tbody td {
    overflow: visible;
}

.icon-placeholder i.bi {
    font-size: 0.9em !important;
}

.fx-files-table.listview thead td:nth-child(1),
.fx-files-table.listview tbody td:nth-child(1) {
    width: 30px !important;
}

@media (max-width: 768px) {

div.dataTables_wrapper div.dataTables_paginate {
    width: 100%;
}
    
}
@media (min-width: 769px) {

.fx-files-table.listview thead td:nth-child(2),
.fx-files-table.listview tbody td:nth-child(2) {
    width: 25px !important;
}
    
}
.fx-files-table.listview thead td:nth-child(3),
.fx-files-table.listview tbody td:nth-child(3) {
    width: auto !important;
}

.fx-files-table.listview thead td:nth-child(4),
.fx-files-table.listview tbody td:nth-child(4) {
    width: 50px !important;
    white-space: nowrap;
}

.fx-files-table.listview thead td:nth-child(5),
.fx-files-table.listview tbody td:nth-child(5) {
    width: 100px !important;
    white-space: nowrap;
}

.fx-files-table.listview thead td:nth-child(6),
.fx-files-table.listview tbody td:nth-child(6),
.fx-files-table.listview thead td:nth-child(7),
.fx-files-table.listview tbody td:nth-child(7),
.fx-files-table.listview thead td:nth-child(8),
.fx-files-table.listview tbody td:nth-child(8) {
    width: 30px !important;
}

.fx-files-table thead th,
.fx-files-table thead td {
    background: var(--vfm-surface-alt);
    color: var(--vfm-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--vfm-border-strong);
}

.fx-files-table tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-files-table tbody tr:hover,
.table>tbody>tr:hover {
    background: var(--vfm-primary-soft) !important;
}

.fx-files-table tbody td {
    vertical-align: middle;
    border-color: var(--vfm-border);
    padding-top: 0;
    padding-bottom: 0;
}

.fx-files-table tbody .relative,
.fx-folders-table tbody .relative {
    min-width: 0;
}

.fx-files-table tbody a,
.fx-folders-table tbody a {
    color: var(--vfm-text);
    text-decoration: none;
    font-weight: 400;
}

.fx-files-table tbody .name .item,
.fx-folders-table tbody .relative > a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bi::before, [class*=" bi-"]::before, [class^=bi-]::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.2em;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.2em !important;
}

.bi-dash-square::before {
    content: "\f282" !important;
    font-size: .7rem !important;
}

.bi-plus-square::before {
    content: "\f285" !important;
    font-size: .7rem !important;
}

.fx-files-table.listview tbody .name,
.fx-files-table.listview tbody .name .relative,
.fx-files-table.listview tbody .name .item,
.fx-files-table.listview tbody .name .grid-item-title {
    min-width: 0;
}

.fx-files-table.listview tbody .name .relative {
    display: block;
    overflow: hidden;
}

.fx-files-table.listview tbody .name .item {
    display: block;
}

.fx-files-table.listview tbody .name .hover {
    right: 0;
    position: absolute;
    top: -0.3em;
}

.fx-files-table tbody a:hover,
.fx-folders-table tbody a:hover {
    color: var(--vfm-text);
}

.fx-files-table tbody .icon .icon-placeholder,
.fx-folders-table tbody .icon .icon-placeholder {
    border-radius: 0.8rem;
    overflow: hidden;
    border: 0px solid #e9edf3;
    background: transparent;
}

.fx-files-table tbody .round-btn,
.fx-folders-table tbody .round-btn {
    border-radius: 9px;
    border: 1px solid var(--vfm-border);
    background: var(--vfm-surface);
    color: var(--vfm-text-muted);
}

.fx-files-table tbody .round-btn:hover,
.fx-folders-table tbody .round-btn:hover {
	border-color: var(--vfm-primary-soft);
	color: var(--vfm-text);
	background-color: var(--hover-bg-menu);
}

.fx-files-table tbody tr.table-active,
.fx-files-table tbody tr.attivo,
.fx-folders-table tbody tr.table-active,
.fx-folders-table tbody tr.attivo {
    background: var(--vfm-primary-soft);
}

.fx-files-table .grid-item-title {
    margin-top: 0.35rem;
    color: var(--vfm-text-muted);
    font-size: 0.8rem;
}

.fx-panel-loading {
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--vfm-surface) 72%, transparent);
    backdrop-filter: blur(2px);
}

.fx-empty-panel {
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-empty-panel__icon {
    color: var(--vfm-primary);
    opacity: 0.25;
    border: 0px !important;
}

.fx-folders-summary,
.fx-user-dirs,
.fx-folders-table-card {
    margin-bottom: 1rem;
}

.fx-folders-summary h6,
.fx-user-dirs a,
.fx-folders-table a {
    color: var(--vfm-text);
    text-decoration: none;
}

.fx-folders-summary .list-group-item a,
.fx-user-dirs td a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-folders-summary h6 {
    font-weight: 700;
}

.fx-folders-summary .list-group-item,
.fx-user-dirs .table td,
.fx-folders-table td {
    border-color: var(--vfm-border);
}

.fx-folders-summary .list-group-item {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background: transparent;
}

.fx-folders-summary .toggle-favorite-path {
    border-radius: 999px;
}

.fx-side-list-block {
    border: 0px solid var(--vfm-border);
    border-radius: 0.85rem;
    background: var(--vfm-surface-alt);
    padding: 0.5rem 0.75rem;
}

.fx-side-list-block h6 {
    font-size: 0.84rem;
    margin-bottom: 0.55rem;
}

.fx-folders-grid {
    padding-top: 0.25rem;
}

.fx-folders-table {
    margin-bottom: 0;
    table-layout: fixed;
}

.fx-folders-table thead td {
    color: var(--vfm-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--vfm-border-strong);
    background: var(--vfm-surface-alt);
}

.fx-folders-table tbody tr:hover {
    background: var(--vfm-surface-alt);
}

.fx-files-toolbar-wrap .groupact {
    border-radius: 999px;
    font-weight: 600;
}

.fx-files-toolbar-wrap .switchview {
    border: 1px solid var(--vfm-border);
    background-color: var(--vfm-surface);
}

.fx-files-toolbar-wrap .switchview.list,
.fx-files-toolbar-wrap .switchview.grid {
    background-position: center;
    background-repeat: no-repeat;
}

.fx-files-panel .table-controls-top,
.fx-files-panel .table-controls-bottom,
.fx-folders-panel .table-controls-top,
.fx-folders-panel .table-controls-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fx-files-panel .dataTables_filter input,
.fx-folders-panel .dataTables_filter input {
    border: 1px solid var(--vfm-border);
    border-radius: 999px;
    padding-inline: 0.9rem;
}

.fx-files-panel .dataTables_length select,
.fx-folders-panel .dataTables_length select {
    border: 1px solid var(--vfm-border);
    border-radius: 999px;
    padding-inline: 0.6rem 1.9rem;
    background-position: right 0.7rem center;
}

.fx-files-panel .dataTables_paginate .paginate_button,
.fx-folders-panel .dataTables_paginate .paginate_button {
    background: var(--vfm-surface) !important;
    color: var(--vfm-text-muted) !important;
    margin: 0px 1px !important;
}

.fx-files-panel .dataTables_paginate .paginate_button a,
.fx-folders-panel .dataTables_paginate .paginate_button a {
    border: 1px solid var(--vfm-border) !important;
}

.page-item.active .page-link {
    background-color: var(--vfm-surface-alt) !important;
}

.fx-files-panel .dataTables_paginate .paginate_button.current,
.fx-folders-panel .dataTables_paginate .paginate_button.current {
    border-color: var(--vfm-primary-soft) !important;
    background: var(--vfm-primary-soft) !important;
    color: var(--vfm-primary) !important;
    font-weight: 700;
}

.fx-files-toolbar-wrap .groupact[disabled],
.fx-files-toolbar-wrap .manda[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.fx-files-table .dropdown-menu,
.fx-folders-table .dropdown-menu {
    border: 1px solid var(--vfm-border);
    border-radius: 0.0rem;
    box-shadow: var(--vfm-shadow-md);
    padding: 0.4rem 0.0rem;
    z-index: 1085;
}

.fx-files-table .dropdown-menu-right,
.fx-folders-table .dropdown-menu-right {
    right: 0;
    left: auto;
}

.fx-files-table .dropdown-item,
.fx-folders-table .dropdown-item {
    border-radius: 0.6rem;
    color: var(--vfm-text);
}

.fx-files-table .dropdown-item:hover,
.fx-folders-table .dropdown-item:hover {
    background-color: var(--hover-bg-menu) !important;
    color: var(--vfm-text);
    border-radius: 0rem;
}

.fx-files-table .dropdown-item i,
.fx-folders-table .dropdown-item i {
    margin-right: 0.35rem;
}

.fx-files-table .rowa.attivo,
.fx-folders-table .rowa.attivo {
    box-shadow: inset 0 0 0 1px var(--vfm-primary-soft);
}

.fx-files-table .rowa.attivo .checkb .round-btn,
.fx-folders-table .rowa.attivo .checkb .round-btn {
    color: var(--color-primary-text);
    border-color: var(--vfm-primary-soft) !important;
    background: var(--vfm-primary);
}

.fx-files-panel .gridview .gridbody {
    gap: 0.9rem;
    padding-top: 0.2rem;
}

.fx-files-panel .gridview .gridbody > .rowa {
    border: 1px solid var(--vfm-border);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--vfm-surface);
    box-shadow: 0 0.45rem 1.1rem rgba(16, 24, 40, 0.05);
    transition: transform var(--vfm-transition), box-shadow var(--vfm-transition), border-color var(--vfm-transition);
}

.fx-files-panel .gridview .gridbody > .rowa:hover {
    transform: translateY(-2px);
    border-color: var(--vfm-primary-soft);
    box-shadow: 0 0.8rem 1.5rem rgba(16, 24, 40, 0.1);
}

.fx-files-panel .gridview .gridbody > .rowa .name {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0;
}

.fx-files-panel .gridview tbody > .rowa .name .relative {
    background: var(--vfm-surface);
}

.fx-files-panel .gridview .itemicon .item {
    box-shadow: none;
}

.fx-files-panel .gridview .itemicon .hover {
    background: var(--vfm-primary-soft-2);
}

.fx-files-panel .gridview .infopanel {
    top: 0.4rem;
    right: 0.4rem;
    opacity: 0.1;
}

.fx-files-panel .gridview tbody > .rowa:hover .infopanel,
.fx-files-panel .gridview tbody > .rowa.attivo .infopanel {
    opacity: 1;
}

.fx-files-panel .gridview .grid-item-title {
    padding: 0.65rem 0.8rem 0.85rem;
}

.fx-files-panel .gridview .grid-item-title > .overflowed,
.fx-files-panel .gridview .grid-item-title span {
    font-weight: 600;
    color: #101828;
}

.fx-files-table.listview .grid-item-title__name {
    display: none;
}

.fx-files-table.listview .grid-item-title__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    color: #667085;
    font-size: 0.76rem;
}

.fx-files-table.listview .fx-meta-sep {
    color: #98a2b3;
    font-size: 0.8rem;
}

.bg-light {
    padding: 0.0rem 0.0rem 0.5rem !important;
    background-color: transparent !important;
    font-weight: 100;
}

.folder-badges {
    width: 50px !important;
}

.fx-folders-table thead .last_change {
    width: 80px !important;
}
.fx-folders-table thead .actions {
    width: 20px !important;
}

.fx-files-panel .gridview .grid-item-title__meta {
    display: none !important;
}

.fx-files-panel .gridview .grid-item-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-files-emptywrap .fx-empty-panel {
    border-style: dashed;
    border-width: 2px;
    border-color: #d7dee8;
}

.fx-panel-loading .spinner-border {
    width: 2.2rem;
    height: 2.2rem;
    border-width: 0.2rem;
}

.checkb .round-btn {
    width: 15px;
    height: 15px;
    font-size: 12px;
    line-height: 14px;
    padding: 0;
    font-weight: 800;
    border: 1.5px solid #adb5bd !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.checkb .round-btn::after {
    content: "" !important;
}

.rowa.attivo .checkb .round-btn::after,
.fx-files-table .rowa.attivo .checkb .round-btn::after,
.fx-folders-table .rowa.attivo .checkb .round-btn::after {
    font-family: bootstrap-icons !important;
    content: "\F272" !important;
}

@media (max-width: 575.98px) {
    .fx-panel-card {
        border-radius: 0.3rem;
    }

    .fx-files-toolbar,
    .fx-breadcrumbs__list,
    .fx-upload-group,
    .fx-newdir-group,
    .fx-folders-summary,
    .fx-user-dirs,
    .fx-folders-table-card {
        border-radius: 0.3rem;
    }

    .fx-files-panel .gridview .gridbody {
        gap: 0.7rem;
    }

    .fx-files-panel .gridview .gridbody > .rowa {
        border-radius: 0.85rem;
    }

    .fx-files-panel .gridview .infopanel {
        opacity: 1;
    }

    .fx-files-table .round-btn,
    .fx-folders-table .round-btn {
        min-width: 32px;
        min-height: 32px;
    }

    .fx-files-toolbar-wrap .switchview {
        width: 2.3rem;
        height: 2.3rem;
    }

    .fx-files-table.listview,
    .fx-folders-table.listview {
        table-layout: fixed;
        width: 100%;
    }

    .fx-files-table.listview td,
    .fx-folders-table.listview td {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .fx-files-table.listview td.icon,
    .fx-files-table.listview td.checkb,
    .fx-files-table.listview td.delete,
    .fx-folders-table.listview td:first-child,
    .fx-folders-table.listview td:last-child {
        width: 2.6rem;
    }

    .fx-files-table.listview td.name,
    .fx-folders-table.listview td:nth-child(2) {
        min-width: 0;
    }

    .fx-files-table.listview td.name .relative,
    .fx-files-table.listview td.name .item,
    .fx-files-table.listview td.name .grid-item-title,
    .fx-folders-table.listview td:nth-child(2) .relative,
    .fx-folders-table.listview td:nth-child(2) a,
    .fx-folders-table.listview td:nth-child(2) .icon {
        display: block;
        min-width: 0;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fx-files-table.listview td:last-child,
    .fx-folders-table.listview td:last-child {
        text-align: right;
    }

    .fx-files-table.listview .dropdown-menu,
    .fx-folders-table.listview .dropdown-menu {
        min-width: 12rem;
    }

    .fx-files-panel .gridview .gridbody > .rowa {
        width: 100%;
        max-width: 100%;
    }

    .fx-files-panel .gridview .gridbody > .rowa .name {
        width: 100%;
        left: 0;
        bottom: 0;
    }

    .fx-files-panel .gridview .gridbody > .rowa .grid-item-title {
        padding: 0.55rem 0.7rem 0.7rem;
    }

    .fx-files-panel .gridview .gridbody > .rowa .infopanel {
        z-index: 3;
    }

    .fx-files-table.listview .grid-item-title__meta {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .fx-files-table.listview thead {
        display: none;
    }

    .fx-files-table.listview tbody,
    .fx-files-table.listview tbody tr,
    .fx-files-table.listview tbody td {
        display: block;
        width: 100%;
    }

    .fx-files-table.listview tbody tr {
        position: relative;
        padding: 0.5rem;
        border-bottom: 1px solid var(--vfm-border);
        background: var(--vfm-surface);
        background-color: var(--vfm-surface) !important;
        --bs-table-bg: var(--vfm-surface);
        --bs-table-accent-bg: transparent;
        color: var(--vfm-text);
        box-shadow: 0 0.4rem 1rem rgba(16, 24, 40, 0.04);
    }

    .fx-drive-main{
        padding-right: calc(var(--bs-gutter-x) * .1);
        padding-left: calc(var(--bs-gutter-x) * .1);
        margin-top: -1rem;
    }

    .fx-files-table.listview tbody td {
        padding: 0;
        border: 0;
        background: var(--vfm-surface);
        background-color: var(--vfm-surface) !important;
        overflow: hidden;
    }

    .fx-files-table.listview tbody td.checkb,
    .fx-files-table.listview tbody td.icon {
        position: relative;
        width: auto;
    }

    .fx-files-table.listview tbody td.checkb {
        display: none;
    }

    .fx-files-table.listview tbody td.icon {
        position: absolute;
        top: 0.6rem;
        left: 0.5rem;
        width: 2.7rem;
        margin-right: 0;
    }

    .fx-files-table.listview tbody td.name {
        clear: none;
        padding-top: 0;
        padding-left: 3.35rem;
        padding-right: 2.9rem;
        min-height: 2.7rem;
        min-width: 0;
    }

    .fx-files-table.listview tbody td.name .item {
        display: none;
    }

    .fx-files-table.listview tbody td.name .grid-item-title {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: 0;
        padding: 0;
    }

    .fx-files-table.listview tbody td.name .grid-item-title__name {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        font-size: 0.98rem;
        line-height: 1.25;
        font-weight: 400;
        color: var(--vfm-text);
    }

    .fx-files-table.listview tbody td.name .grid-item-title__meta {
        display: block;
        flex-wrap: wrap;
        gap: 0.35rem;
        font-size: 0.72rem;
        line-height: 1.2;
        font-weight: 400;
        color: var(--vfm-text-muted);
    }

    .fx-files-table.listview tbody td.name .hover {
        display: none;
    }

    .fx-files-table.listview tbody td:nth-child(4),
    .fx-files-table.listview tbody td:nth-child(5),
    .fx-files-table.listview tbody td:nth-child(6),
    .fx-files-table.listview tbody td:nth-child(7),
    .fx-files-table.listview tbody td:nth-child(8) {
        display: none;
    }

    .fx-files-table.listview tbody td.icon .icon-placeholder {
        width: 2.45rem;
        height: 2.45rem;
    }

    .fx-files-table.listview tbody td.icon .cta i {
        font-size: 1rem;
    }

    .fx-files-table.listview .fx-mobile-actions {
        position: absolute;
        top: 0.7rem;
        right: 0.5rem;
    }

    .fx-files-table.listview .fx-mobile-actions .dropdown-toggle {
        width: 2.35rem;
        height: 2.35rem;
        line-height: 2.35rem;
    }

    .fx-files-table.listview .fx-mobile-actions .dropdown-menu {
        min-width: 11rem;
    }

    .fx-folders-table thead {
        display: none;
    }

    .fx-folders-table tbody,
    .fx-folders-table tbody tr,
    .fx-folders-table tbody td {
        width: 100%;
    }

    .fx-folders-table tbody tr {
        position: relative;
        margin-bottom: 0.85rem;
        padding: 0.85rem;
        border: 1px solid var(--vfm-border);
        border-radius: 1rem;
        background: var(--vfm-surface);
        background-color: var(--vfm-surface) !important;
        --bs-table-bg: var(--vfm-surface);
        --bs-table-accent-bg: transparent;
        color: var(--vfm-text);
        box-shadow: 0 0.4rem 1rem rgba(16, 24, 40, 0.04);
        overflow: visible;
    }

    .fx-folders-table tbody td {
        padding: 0;
        border: 0;
        background: var(--vfm-surface);
        background-color: var(--vfm-surface) !important;
        overflow: visible;
    }

    .fx-folders-table tbody td:first-child,
    .fx-folders-table tbody td:nth-child(3),
    .fx-folders-table tbody td:nth-child(4),
    .fx-folders-table tbody td:nth-child(5),
    .fx-folders-table tbody td:nth-child(6),
    .fx-folders-table tbody td:nth-child(7),
    .fx-folders-table tbody td:nth-child(8) {
        display: none;
    }

    .fx-folders-table tbody td:nth-child(2) {
        position: relative;
        min-width: 0;
        border-bottom: 1px solid var(--vfm-border);
    }

    .fx-folders-table tbody td:nth-child(2) .relative > a.folder-item-link {
        display: none !important;
    }

    .fx-folders-table .folder-item-title {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        text-decoration: none;
        min-width: 0;
        padding-right: 3.1rem;
        padding-left: 0;
    }

    .fx-folders-table .folder-item-title__name {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        font-size: 0.98rem;
        line-height: 1.25;
        font-weight: 400;
        color: var(--vfm-text);
        gap: 0.45rem;
        align-items: center;
    }

    .fx-folders-table .folder-item-title__name i {
        color: var(--vfm-primary);
        font-size: 0.95rem;
        flex: 0 0 auto;
    }

    .fx-folders-table .folder-item-title__meta {
        align-items: center;
        gap: 0.35rem;
        font-size: 0.72rem;
        line-height: 1.2;
        color: var(--vfm-text-muted);
        flex-wrap: wrap;
    }

    .fx-folders-table .folder-item-title__meta .bi-calendar-event {
        margin-left: 10px !important;
    }

    .fx-folders-table .folder-item-title__meta-sep {
        color: var(--vfm-text-subtle);
    }

    .fx-folders-table .hover {
        display: none;
    }

    .fx-folders-table .fx-mobile-actions {
        position: absolute;
        top: 0;
        right: 0;
    }

    .fx-folders-table .fx-mobile-actions .dropdown-toggle {
        width: 2.35rem;
        height: 2.35rem;
        line-height: 2.35rem;
    }

    .fx-folders-table .fx-mobile-actions .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 11rem;
        z-index: 9999;
        margin-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-files-table tbody tr,
    .fx-files-panel .gridview .gridbody > .rowa,
    .fx-files-table tbody .round-btn,
    .fx-folders-table tbody .round-btn {
        transition: none !important;
    }
}

.fx-files-toolbar {
    padding: 0.9rem 1rem;
    border: 1px solid #e4e8ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.4rem 1rem rgba(16, 24, 40, 0.03);
}

.fx-files-toolbar h6 {
    color: #101828;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fx-toolbar-search {
    display: none;
}

/* .fx-breadcrumbs {
    margin-bottom: 1rem;
} */

.fx-breadcrumbs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 3px;
}

.fx-breadcrumbs__title-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.fx-breadcrumbs__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: #101828;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.5;
    padding-left: 0.5rem;
}

.fx-breadcrumbs__menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: -0.1rem;
}

.fx-breadcrumbs__menu-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0.35rem;
    margin-left: 0.2rem;
    cursor: pointer;
    color: var(--vfm-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3rem;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    flex-shrink: 0;
    border: 1px solid transparent;
}

	/* Hover menu and icons */
.fx-breadcrumbs__menu-toggle:hover,
.fx-breadcrumbs__menu-toggle.open,
.fx-breadcrumbs__ellipsis-toggle:hover,
.fx-breadcrumbs__ellipsis-toggle.open,
.fx-breadcrumbs__search-btn:hover {
    background-color: var(--vfm-surface-alt);
    color: var(--vfm-text);
    border: 1px solid var(--vfm-text-subtle) !important;
}

.fx-breadcrumbs__menu-toggle i {
    transition: transform 0.2s ease;
}

.fx-breadcrumbs__menu-toggle.open i {
    transform: rotate(180deg);
}

.fx-breadcrumbs__menu-panel {
    position: fixed;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 0.3rem;
    min-width: 180px;
    max-width: 280px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    overflow-y: auto;
    max-height: 80vh;
}

@media (max-width: 576px) {
    .fx-breadcrumbs__menu-panel {
        min-width: 160px;
        max-width: calc(100vw - 20px);
    }
}

.fx-breadcrumbs__menu-panel.open {
    display: flex;
    flex-direction: column;
}

.fx-breadcrumbs__menu-item {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.fx-breadcrumbs__menu-item:hover {
    background-color: #f3f4f6;
    color: #101828;
}

.fx-breadcrumbs__menu-item:first-child {
    border-radius: 0.25rem 0.25rem 0 0;
}

.fx-breadcrumbs__menu-item:last-child {
    border-radius: 0 0 0.25rem 0.25rem;
}

.fx-breadcrumbs__hint {
    color: #667085;
    font-size: 0.74rem;
}

.fx-breadcrumbs__search-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #344054;
    min-height: 1.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.3rem;
    padding: 0 0.3rem;
    margin-left: 0.3rem;
    box-shadow: none;
    transition: all 0.18s ease;
    font-size: 0.78rem;
    line-height: 1;
}

.fx-breadcrumbs__search-btn:hover {
    border-color: var(--vfm-text-subtle);
    box-shadow: none;
    transform: none;
}

.fx-breadcrumbs__search-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.14);
}

.fx-breadcrumbs__search-btn i {
    font-size: 1rem;
    line-height: 1;
}

.fx-breadcrumbs__search-label {
    font-weight: 400;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .fx-breadcrumbs__search-label {
        display: none;
    }

    .fx-breadcrumbs__search-btn {
        padding: 0;
        min-width: 1.7rem;
        justify-content: center;
    }
}


.fx-mobile-quicknav {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.fx-mobile-quicknav .btn {
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.fx-breadcrumbs__list {
    margin-bottom: 0;
    padding: 0rem 0.5rem !important;
    border: 1px solid #e4e8ef;
    border-radius: 0.3rem;
    background: #fff;
    /* box-shadow: 0 0.4rem 1rem rgba(16, 24, 40, 0.03); */
}

/* Compact breadcrumb styles */
.fx-breadcrumbs__compact {
    margin-bottom: 0rem;
    padding: 0 !important;
}

.fx-breadcrumbs__compact .breadcrumb {
    margin-bottom: 0;
    padding: 0.0rem 0.5rem !important;
    border: 1px solid #e4e8ef;
    border-radius: 0.3rem;
    background: #fff;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
}

.fx-breadcrumbs__compact .breadcrumb-item {
    padding-left: 0.3rem !important;
    flex: 0 0 auto;
    min-width: 0;
}

.fx-breadcrumbs__compact .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fx-breadcrumbs__compact .breadcrumb-item:last-child {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
}

.fx-breadcrumbs__compact .breadcrumb-item:last-child a {
    min-width: 0;
    width: 100%;
    display: inline-flex;
}

.fx-breadcrumbs__compact .breadcrumb-item a:hover {
    text-decoration: underline;
}

.fx-breadcrumbs__compact .breadcrumb-item.active {
    color: #6c757d;
}

/* Ellipsis menu button */
.fx-breadcrumbs__ellipsis-wrapper {
    display: inline-block;
}

.fx-breadcrumbs__ellipsis-toggle {
    color: #667085 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.2rem;
    transition: all 0.2s ease;
}

/* Ellipsis menu dropdown */
.fx-breadcrumbs__ellipsis-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 0.3rem;
    min-width: 200px;
    max-width: 300px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 0;
}

.fx-breadcrumbs__ellipsis-menu.show {
    display: flex;
}

.fx-breadcrumbs__ellipsis-item {
    padding: 0.6rem 1rem !important;
    color: #344054 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-align: left;
    text-decoration: none;
}

.fx-breadcrumbs__ellipsis-item:hover {
    background-color: #f3f4f6 !important;
    color: #101828 !important;
}

/* Current folder with ellipsis */
.fx-breadcrumbs__current-folder {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #6c757d;
}

.fx-breadcrumbs__current-folder-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.3rem !important;
}

/* Inline header actions (new folder / upload) */
.fx-breadcrumbs__actions {
    display: flex;
    align-items: center;
}

.fx-inline-actions {
    border-top: 1px dashed #e9edf3;
}

.fx-inline-newdir .form-control,
.fx-inline-upload .form-control {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .fx-breadcrumbs__actions { order: 2; }
    .fx-inline-actions { padding: 0.5rem; }
}

.fx-breadcrumbs .breadcrumb-item a {
    color: #344054;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    display: inline-flex;
}

.fx-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #98a2b3;
    padding-right: 0.3rem !important;
}

.fx-upload-panel {
    margin-bottom: 1rem;
}

.fx-upload-form,
.fx-newdir-form {
    margin-bottom: 0;
}

.fx-upload-action-card {
    border: 1px solid #e9edf3;
    border-radius: 0.95rem;
    background: #fbfdff;
    padding: 0.6rem;
}

.fx-upload-action-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    color: #344054;
    font-size: 0.8rem;
    font-weight: 700;
}

.fx-upload-group,
.fx-newdir-group {
    border: 1px solid #e4e8ef;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.4rem 1rem rgba(16, 24, 40, 0.03);
}

.fx-upload-group .input-group-text,
.fx-newdir-group .input-group-text {
    background: transparent;
    border: 0;
    color: var(--vfm-text);
    padding-inline: 1rem;
}

.fx-upload-group .form-control,
.fx-newdir-group .form-control {
    border: 0;
    box-shadow: none;
    padding-block: 0.95rem;
}

.fx-upload-group .btn,
.fx-newdir-group .btn {
    border-radius: 0;
    min-width: 4rem;
}

.fx-space-panel {
    margin-bottom: 1rem;
    border: 1px solid var(--vfm-border);
    border-radius: 0.95rem;
    background: var(--vfm-surface);
    box-shadow: var(--vfm-shadow-sm);
    padding: 0.9rem;
}

.fx-space-summary {
    margin-bottom: -0.65rem;
}

.fx-space-summary__used {
    color: var(--vfm-text);
    font-weight: 400;
    margin-bottom: 0.1rem !important;
    font-size: .8em;
}

.fx-space-summary__free {
    color: var(--vfm-text-muted);
    font-weight: 400;
    margin-bottom: 0.1rem !important;
    font-size: .8em;
}

.fx-space-progress {
    width: 100%;
    height: 0.3rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--vfm-border);
}

.fx-space-progress::-webkit-progress-bar {
    background: var(--vfm-border);
    border-radius: 999px;
}

.fx-space-progress::-webkit-progress-value {
    border-radius: 999px;
}

.fx-space-progress::-moz-progress-bar {
    border-radius: 999px;
}

.fx-space-progress.bg-info::-webkit-progress-value,
.fx-space-progress.bg-info::-moz-progress-bar {
    background: #0dcaf0;
}

.fx-space-progress.bg-warning::-webkit-progress-value,
.fx-space-progress.bg-warning::-moz-progress-bar {
    background: #ffc107;
}

.fx-space-progress.bg-danger::-webkit-progress-value,
.fx-space-progress.bg-danger::-moz-progress-bar {
    background: #dc3545;
}

.fx-space-progress-label {
    margin-top: 0;
    font-size: 0.7rem;
    color: var(--vfm-text-muted);
    text-align: right;
    font-weight: 100;
}

@media (max-width: 767.98px) {
    .fx-drive-layout {
        row-gap: 0.85rem;
    }

    .fx-drive-sidebar {
        display: block;
        position: static;
        width: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        z-index: 2000;
    }

    .fx-drive-sidebar-shell {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(22rem, 86vw);
        border-right: 1px solid #e4e8ef;
        background: #ffffff;
        z-index: 2147483001;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        visibility: visible;
        will-change: transform;
    }

    .fx-drive-sidebar-shell.is-open {
        transform: translateX(0);
    }

    .fx-drive-sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: none;
        background: rgba(16, 24, 40, 0.42);
        z-index: 2147483000;
        pointer-events: auto;
    }

    .fx-drive-sidebar-backdrop.is-open {
        left: min(22rem, 86vw);
        width: calc(100vw - min(22rem, 86vw));
    }

    .fx-drive-sidebar-backdrop.is-open {
        display: block;
        margin-top: 0;
    }

    body.fx-sidebar-open {
        overflow: hidden;
    }

    body.fx-sidebar-open .modal-backdrop,
    body.fx-sidebar-open .offcanvas-backdrop {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.fx-sidebar-open .overdrag {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .fx-drive-sidebar-shell__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        border-bottom: 1px solid #e9edf3;
        padding: 0.9rem 1rem;
    }

    .fx-drive-sidebar-shell__body {
        padding: 0.65rem;
        overflow-y: auto;
    }

    .fx-files-panel .table-controls-top,
    .fx-files-panel .table-controls-bottom,
    .fx-folders-panel .table-controls-top,
    .fx-folders-panel .table-controls-bottom {
        flex-wrap: wrap;
    }

    .fx-files-panel .dataTables_filter,
    .fx-folders-panel .dataTables_filter {
        width: 100%;
    }

    .fx-files-panel .dataTables_filter input,
    .fx-folders-panel .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .fx-drive-sidebar {
        position: static;
    }

    .fx-sidebar-section-head {
        align-items: flex-start;
        gap: 0.2rem;
    }

    .fx-panel-heading {
        margin-bottom: 0.6rem;
    }

    .fx-panel-subtitle {
        display: none;
    }

    .fx-breadcrumbs__head {
        flex-wrap: wrap;
        margin-bottom: 0.45rem;
    }

    .fx-breadcrumbs__title {
        font-size: 0.95rem;
    }

    .fx-breadcrumbs__compact .breadcrumb {
        font-size: 0.8rem;
        padding: 0.0rem 0.4rem !important;
    }

    .fx-breadcrumbs__compact .breadcrumb-item a {
        font-size: 0.8rem;
    }

    .fx-breadcrumbs__current-folder-name {
        max-width: none;
    }

    .fx-breadcrumbs__ellipsis-menu {
        min-width: 180px;
        max-width: calc(100vw - 20px);
    }

    .fx-upload-action-card {
        padding: 0.5rem;
    }

    .fx-mobile-quicknav {
        flex-wrap: wrap;
    }

    .fx-mobile-quicknav .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .fx-mobile-storage-footer {
        margin-top: 0.85rem;
    }

    .fx-mobile-storage-footer .fx-space-panel {
        border: 1px solid var(--vfm-border);
        border-radius: 0.95rem;
        background: var(--vfm-surface);
        padding: 0.75rem;
        box-shadow: var(--vfm-shadow-sm);
    }
}

/* Header and footer */
.vfm-header {
    position: relative;
    z-index: 1;
    padding: 0;
}

.vfm-header__banner {
    padding: 0;
}

.vfm-header__banner a {
    display: inline-block;
}

.vfm-header__logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

.vfm-header__description {
    padding: 0 0 1rem;
    color: #667085;
}

.vfm-footer {
    position: relative;
    width: 100%;
    background: var(--vfm-surface);
    border-top: 1px solid var(--vfm-border);
    color: var(--vfm-text-muted);
    box-sizing: border-box;
}

.vfm-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.vfm-footer a:hover {
    text-decoration: underline;
}

.vfm-footer__row {
    align-items: center;
    row-gap: 0.75rem;
}

.vfm-footer__credits {
    text-align: right;
}

.vfm-footer__brandmark {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .vfm-footer__credits {
        text-align: left;
    }
}

.details-empty {
    padding: 1rem 1.25rem;
    border: 1px dashed #d0d7e2;
    border-radius: 1rem;
    background: #fafcff;
    color: #667085;
}

@media (max-width: 991.98px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .details-hero,
    .details-section,
    .details-card__body,
    .details-card__head {
        padding: 1rem;
    }

    .details-meta-grid {
        grid-template-columns: 1fr;
    }

    .details-hero__actions {
        justify-content: flex-start;
    }
}

.fx-file-details-modal {
    z-index: 1055;
}

.fx-file-details-modal .modal-backdrop {
    z-index: 1054;
}

.fx-file-details-modal .modal-dialog {
    width: min(1100px, 96vw);
    max-width: min(1100px, 96vw);
}

.fx-file-details-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    height: min(92vh, 860px);
}

.fx-file-details-modal .modal-header {
    border-bottom: 1px solid var(--vfm-border);
    background: var(--vfm-surface);
}

/* Sidebar: hide inline forms and show large "+ Nuevo" button */
.fx-sidebar-newbtn .btn-lg {
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: 0.3rem;
}
.fx-drive-sidebar .fx-upload-panel .fx-sidebar-forms.d-none {
    display: none !important;
}
@media (min-width: 992px) {
    .fx-sidebar-newbtn {
        position: sticky;
        top: 1rem;
        z-index: 20;
        background: transparent;
        box-shadow: 0 2px 8px -4px rgba(16,24,40,0.06);
        border-radius: 0.9rem 0.9rem 0 0;
        margin-bottom: 0.8rem;
    }
}
@media (max-width: 991.98px) {
    .fx-drive-sidebar .fx-upload-panel .fx-sidebar-newbtn {
        position: static;
        top: auto;
        z-index: auto;
        background: none;
        box-shadow: none;
        border-radius: 0.9rem;
        margin-bottom: 0.5rem;
    }
}
.fx-drive-sidebar .fx-upload-panel .dropdown-menu.w-100 {
    min-width: 100%;
}

/* Mejor apariencia para el menú '+ Nuevo' en la barra lateral */
.fx-drive-sidebar .fx-upload-panel .dropdown-menu.w-100 {
    background: #ffffff;
    border: 1px solid #e6eefc;
    box-shadow: 0 0.6rem 1.2rem rgba(16,24,40,0.08);
    border-radius: 0.6rem;
    padding: 0.35rem 0;
    margin-top: 0.35rem;
}
.fx-drive-sidebar .fx-upload-panel .dropdown-item {
    padding: 0.6rem 1rem;
    color: #273248;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.fx-drive-sidebar .fx-upload-panel .dropdown-item i.bi {
    font-size: 1.05rem;
    color: #0d6efd;
}
.fx-drive-sidebar .fx-upload-panel .dropdown-item:hover,
.fx-drive-sidebar .fx-upload-panel .dropdown-item:focus {
    background: linear-gradient(90deg, rgba(234,244,255,0.8), rgba(239,246,255,0.8));
    color: #0d6efd;
}
.fx-sidebar-newbtn .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.fx-sidebar-newbtn .btn-primary::after {
    display: none; /* evitar el caret duplicado si bootstrap añade ::after */
}
.fx-drive-sidebar .fx-upload-panel .dropdown-divider {
    margin: 0.35rem 0;
}

.fx-foldertree-panel .foldertree-sidebar {
    max-height: none;
    overflow: auto;
    padding: 0.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 0px solid #e4e8ef;
    border-radius: 1.1rem;
}

.fx-foldertree-panel .foldertree-sidebar .wrap-foldertree {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: -.15rem;
    padding: 0;
}

.fx-foldertree-panel .foldertree-sidebar .wrap-foldertree > .toggle-all-tree {
    position: static;
    align-self: flex-end;
    margin: 0;
    padding: 0.35rem;
    border-radius: 0.65rem;
    background: #eef5ff;
    color: #0d6efd;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree > li,
.fx-foldertree-panel .foldertree-sidebar .foldertree li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree ul {
    margin: 0;
    padding-left: 0.8rem;
    width: 100%;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li {
    list-style: none;
    margin: 0.1rem 0;
    position: relative;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li:before,
.fx-foldertree-panel .foldertree-sidebar .foldertree li:after {
    display: none;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry.active {
    padding-left: 1.5rem;
    margin-left: -1.5rem;
    border: 1px solid var(--bs-primary-bg-subtle);
    border-radius: 1rem;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > .folder-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    color: #101828;
    text-decoration: none;
    font-weight: 400;
    padding: 0;
    border: 0px solid transparent;
    border-radius: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > a,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > span,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > .folder-item,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:hover,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:focus {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #d5e6ff;
    box-shadow: 0 0.18rem 0.45rem rgba(13, 110, 253, 0.08);
    transform: translateX(1px);
    text-decoration: none;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span {
    background: #eef5ff;
    color: #0d6efd;
    border-color: #d5e6ff;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.04);
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry .bi,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry .folder-item .bi {
    flex-shrink: 0;
    color: #0d6efd;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree li > .toggle-tree {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.85rem;
    width: 1.5rem;
    height: 1.3rem;
    margin-left: auto;
    border: 0px solid #dbe7f5;
    border-radius: 0.6rem;
    background: transparent;
    color: #5f6f82;
    box-shadow: 0 0.08rem 0.2rem rgba(16, 24, 40, 0.04);
}


.fx-foldertree-panel .foldertree-sidebar .wrap-foldertree .toggle-all-tree {
    position: static;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667085;
}

.fx-foldertree-panel .foldertree-sidebar .foldertree .tree-toggler,
.fx-foldertree-panel .foldertree-sidebar .wrap-foldertree .tree-toggler {
    width: auto;
    height: auto;
    font-size: 0.7rem;
    background: transparent;
}

.fx-foldertree-panel .foldertree-sidebar .folderoot {
    padding-left: 0;
}

.fx-foldertree-panel .foldertree-sidebar .folderoot > i,
.fx-foldertree-panel .foldertree-sidebar .folderoot > a,
.fx-foldertree-panel .foldertree-sidebar .folderoot > span {
    font-weight: 700;
    display: none;
}

.rename-response .mt-2 {
    display: none;
}

.fx-foldertree-panel .foldertree-sidebar .search-highlight {
    font-weight: 500;
    color: #0d6efd;
    background: linear-gradient(180deg, #eef5ff 0%, #e7f0ff 100%);
    padding: 0;
    border-radius: 0.75rem;
}

.fx-file-details-modal .modal-body {
    height: 100%;
    background: #f6f8fb;
    overflow: auto;
}

.fx-file-details-content {
    min-height: 100%;
}

/* Asegurar que modales de compartir link estén encima del modal de detalles */
.modal.sendfiles {
    z-index: 1060;
}

.modal.changename {
    z-index: 1060;
}

#zipmodal {
    z-index: 1060;
}

@media (max-width: 767.98px) {
    .fx-file-details-modal .modal-dialog {
        margin: 0.5rem;
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
    }

    .fx-file-details-modal .modal-content {
        height: calc(100vh - 1rem);
        border-radius: 0.8rem;
    }
}

/* Global search redesign */
/* #global-search .search-modal-dialog {
    max-width: 1080px;
} */

#global-search .search-modal {
    border: 1px solid;
    border-radius: .3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.10), transparent 32%),
        radial-gradient(circle at bottom left, rgba(25, 135, 84, 0.10), transparent 26%),
        var(--vfm-surface);
    box-shadow: var(--vfm-shadow-lg);
    height: 100%;
}

#global-search .search-modal__header {
    padding: 0.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--vfm-border-strong);
    background: transparent;
}

#global-search .search-modal__eyebrow {
    letter-spacing: 0.14em;
    color: var(--vfm-text-muted);
}

#global-search .search-modal__subtitle {
    color: var(--vfm-text-muted);
}

#global-search .search-modal__body {
    padding: 0.8rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, var(--vfm-surface-alt), var(--vfm-surface));
}

#global-search .search-shell {
    display: grid;
    gap: 0.5rem;
}

#global-search .search-hero {
    padding: 0rem;
    border: 0px solid var(--vfm-border);
    border-radius: 1.1rem;
    background: transparent;
    box-shadow: none;
}

#global-search .search-input-group .input-group-text,
#global-search .search-input-group .form-control,
#global-search .search-input-group .btn {
    border-color: var(--vfm-border);
}

#global-search .search-input-group .input-group-text {
    background: var(--vfm-surface-alt);
    color: var(--vfm-text);
    height: 2.5rem;
}

#global-search .search-input-group .form-control {
    border-left: 0;
    border-right: 0;
    background: var(--vfm-surface);
    height: 2.5rem;
    font-size: 1rem;
}

#global-search .search-input-group .form-control:focus {
    box-shadow: none;
}

#global-search .search-input-group:focus-within {
    filter: drop-shadow(0 0 0.85rem rgba(13, 110, 253, 0.10));
}

#global-search .search-input-group .btn {
    min-width: 7rem;
    font-weight: 400;
    border-radius: 0rem 0.5rem 0.5rem 0rem;
    font-size: 1rem;
    height: 2.5rem;
}

#global-search .search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

#global-search .search-filter-group .btn {
    border-radius: 999px;
    padding-inline: 0.8rem;
    box-shadow: none;
    margin-right: .3rem;
    font-size: 0.88rem;
    padding: 0.3rem 0.7rem;
}

#global-search .search-filter-group .btn.active,
#global-search .search-filter-group .btn:active {
    color: var(--color-primary-text);
    background: linear-gradient(135deg, var(--vfm-primary), var(--vfm-primary-hover));
    border-color: var(--vfm-primary);
}

#global-search .search-sort-wrap {
    min-width: 12rem;
}

#global-search .search-sort {
    border-radius: 999px;
    border-color: var(--vfm-border);
}

#global-search .search-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--vfm-surface-alt);
    color: var(--vfm-text-muted);
    white-space: nowrap;
}

#global-search .search-results-panel {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

#global-search .search-results-list {
    display: grid;
    gap: 0rem;
}

#global-search .search-result-card {
    display: grid;
    grid-template-columns: 2.85rem minmax(0, 1fr) auto;
    gap: 0rem;
    align-items: center;
    padding: 0.3rem 0.3rem 0.3rem;
    border-bottom: 1px solid var(--vfm-border);
    border-radius: 0rem;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

#global-search .search-result-card:hover,
#global-search .search-result-card:focus-visible {
    transform: translateY(-0px);
    border-color: var(--vfm-primary);
    background: linear-gradient(180deg, var(--vfm-surface-alt), var(--vfm-surface));
    box-shadow: var(--vfm-shadow-sm);
}

#global-search .search-result-card__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vfm-primary-soft), var(--vfm-primary-soft-2));
    color: var(--vfm-primary);
    font-size: 1rem;
}

#global-search .search-result-card--folder .search-result-card__icon {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.14), rgba(25, 135, 84, 0.06));
    color: var(--vfm-success);
}

#global-search .search-result-card--file .search-result-card__icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
}

#global-search .search-result-card__body {
    min-width: 0;
}

#global-search .search-result-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

#global-search .search-result-card__title {
    font-weight: 400;
    color: var(--vfm-text);
    line-height: 1;
    font-size: 0.88rem;
}

#global-search .search-result-card__path,
#global-search .search-result-card__meta {
    display: block;
    font-size: 0.7rem;
    color: var(--vfm-text-muted);
}

#global-search .search-result-card__meta {
    margin-top: 0.35rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#global-search .search-result-card__meta span + span {
    position: relative;
}

#global-search .search-result-card__meta span + span::before {
    content: "";
    display: inline-block;
    width: 0.28rem;
    height: 0.28rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.55);
    vertical-align: middle;
}

#global-search .search-result-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.3rem;
    border-radius: 999px;
    background: var(--vfm-surface-alt);
    color: var(--vfm-text);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#global-search .search-result-card__action {
    color: var(--vfm-text-subtle);
    font-size: 0.7rem;
}

#global-search .search-empty-state {
    padding: 1.5rem;
    border: 1px dashed var(--vfm-border);
    border-radius: 1rem;
    background: var(--vfm-surface-alt);
    text-align: center;
    color: var(--vfm-text-muted);
}

#global-search .search-empty-state__icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    margin: 0 auto 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vfm-primary-soft);
    color: var(--vfm-primary);
    font-size: 1.3rem;
}

#global-search .search-results-error {
    border-radius: 1rem;
}

#global-search .search-load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

#global-search .search-load-more {
    border-radius: 999px;
    padding-inline: 1rem;
}

#global-search .search-status__spinner {
    vertical-align: -0.18em;
}

#global-search .search-highlight {
    background-color: var(--vfm-primary-soft);
    color: var(--vfm-primary);
    border-radius: 0.35rem;
    padding: 0.04rem 0.2rem;
}

/* -------------------------------------------------------------------------- */
/* Foundation overrides: shared shells and enterprise states                   */
/* -------------------------------------------------------------------------- */

.auth-page,
.shared-page,
.details-page {
    background: var(--vfm-bg);
}

.auth-shell,
.shared-panel,
.details-shell,
.shared-auth-card,
.shared-expired,
.fx-panel-card,
.fx-files-toolbar,
.fx-upload-group,
.fx-newdir-group,
.fx-side-list-block,
.fx-drive-sidebar-shell,
.fx-sidebar-user-menu-panel,
.fx-breadcrumbs__list,
.fx-breadcrumbs__compact .breadcrumb,
.fx-breadcrumbs__menu-panel,
.fx-breadcrumbs__ellipsis-menu,
.fx-upload-action-card,
.fx-space-panel,
#global-search .search-modal,
.vfm-footer {
    background-color: var(--vfm-surface);
    border-color: var(--bs-border-color) !important;
    box-shadow: var(--vfm-shadow-sm);
    color: var(--vfm-text);
}

.auth-hero,
.auth-footer,
.shared-section,
.details-section,
.shared-auth-head,
.details-card__head,
.vfm-header__description,
.fx-sidebar-section-title,
.fx-sidebar-section-subtitle,
.fx-panel-title,
.fx-panel-subtitle,
.fx-breadcrumbs__hint,
#global-search .search-modal__subtitle,
#global-search .search-summary,
#global-search .search-empty-state,
#global-search .search-result-card__path,
#global-search .search-result-card__meta,
.shared-kicker,
.shared-hero__desc,
.details-kicker,
.details-desc,
.details-meta__label,
.details-share-warning,
.details-share-meta,
.details-empty,
.shared-empty-state,
.fx-sidebar-empty-state,
.fx-space-summary__free,
.fx-space-progress-label {
    color: var(--vfm-text-muted);
}

.shared-kicker,
.details-kicker,
.fx-sidebar-section-subtitle,
.fx-panel-subtitle,
#global-search .search-modal__eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shared-file-row,
.details-share-row,
.details-card,
.details-meta,
.fx-side-entry,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry,
.fx-files-panel .gridview .gridbody > .rowa,
.fx-files-table tbody tr,
.fx-folders-table tbody tr,
#global-search .search-result-card {
    transition: background-color var(--vfm-transition), border-color var(--vfm-transition), box-shadow var(--vfm-transition), transform var(--vfm-transition);
}

.shared-chip--primary,
.details-chip--primary,
.details-status--active,
.fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary,
.fx-side-entry:hover,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > a,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > span,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > .folder-item,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:focus,
.fx-files-table tbody tr.table-active,
.fx-files-table tbody tr.attivo,
.fx-folders-table tbody tr.table-active,
.fx-folders-table tbody tr.attivo,
.fx-files-panel .gridview .gridbody > .rowa:hover,
.fx-files-panel .gridview .gridbody > .rowa.attivo {
    background-color: var(--vfm-primary-soft) !important;
    color: var(--vfm-text) !important;
}

.fx-sidebar-accordion-summary:hover,
.fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:hover {
    background-color: var(--hover-bg-menu) !important;
    color: var(--vfm-text) !important;
}

#global-search .search-filter-group .btn.active,
#global-search .search-filter-group .btn:active {
    background-color: var(--vfm-primary-soft) !important;
    color: var(--vfm-surface) !important;
}

.auth-input-group .form-control:focus,
.auth-input-group .input-group-text,
.inline-login-form,
.shared-chip,
.details-chip,
.shared-meta-pill,
.details-meta,
.details-status,
.fx-files-table tbody .round-btn,
.fx-folders-table tbody .round-btn,
.fx-breadcrumbs__menu-toggle,
.fx-sidebar-user-menu-toggle,
.fx-sidebar-user-menu-item,
.fx-sidebar-user-menu-subpanel .dropdown-menu .dropdown-item,
.fx-breadcrumbs__menu-item,
.fx-breadcrumbs__ellipsis-item,
#global-search .search-result-card,
#global-search .search-result-card__badge {
    border-color: var(--vfm-border);
}

.shared-empty-state,
.details-empty,
#global-search .search-empty-state,
.fx-panel-loading,
.mailpreload__content {
    background-color: var(--vfm-bg);
}

.auth-invalid-alert,
.details-share-row--expired,
.details-status--expired,
.shared-auth-head__icon--expired {
    background-color: var(--vfm-danger-soft);
}

.details-status--protected {
    background-color: var(--vfm-warning-soft);
}

.dark-mode .fx-sidebar-empty-state,
.dark-mode .fx-panel-subtitle,
.dark-mode .fx-breadcrumbs__hint,
.dark-mode .fx-breadcrumbs__current-folder,
.dark-mode .fx-breadcrumbs__current-folder-name,
.dark-mode .fx-breadcrumbs__title,
.dark-mode .fx-breadcrumbs__menu-item,
.dark-mode .fx-breadcrumbs__ellipsis-item,
.dark-mode .fx-breadcrumbs .breadcrumb-item a,
.dark-mode .fx-breadcrumbs .breadcrumb-item.active,
.dark-mode .fx-breadcrumbs__compact .breadcrumb-item.active,
.dark-mode .fx-upload-action-title,
.dark-mode .fx-sidebar-footer-user,
.dark-mode .fx-sidebar-footer-user-main,
.dark-mode .fx-sidebar-footer-actions,
.dark-mode .fx-folders-summary h6,
.dark-mode .fx-user-dirs a,
.dark-mode .fx-folders-table a,
.dark-mode .fx-side-list-block,
.dark-mode .fx-panel-card,
.dark-mode .fx-files-toolbar,
.dark-mode .fx-upload-group,
.dark-mode .fx-newdir-group,
.dark-mode .fx-folders-summary,
.dark-mode .fx-user-dirs,
.dark-mode .fx-folders-table-card,
.dark-mode .fx-breadcrumbs__list,
.dark-mode .fx-breadcrumbs__compact .breadcrumb,
.dark-mode .fx-breadcrumbs__menu-panel,
.dark-mode .fx-breadcrumbs__ellipsis-menu,
.dark-mode .fx-sidebar-user-menu-panel,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > .folder-item,
.dark-mode .fx-files-table tbody a,
.dark-mode .fx-folders-table tbody a,
.dark-mode .fx-files-table thead th,
.dark-mode .fx-files-table thead td,
.dark-mode .fx-folders-table thead td {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-sidebar-empty-state,
.dark-mode .fx-panel-subtitle,
.dark-mode .fx-breadcrumbs__current-folder,
.dark-mode .fx-breadcrumbs__compact .breadcrumb-item.active,
.dark-mode .fx-side-list-block,
.dark-mode .fx-panel-card,
.dark-mode .fx-files-toolbar,
.dark-mode .fx-upload-group,
.dark-mode .fx-newdir-group,
.dark-mode .fx-folders-summary,
.dark-mode .fx-user-dirs,
.dark-mode .fx-folders-table-card,
.dark-mode .fx-breadcrumbs__list,
.dark-mode .fx-breadcrumbs__compact .breadcrumb,
.dark-mode .fx-breadcrumbs__menu-panel,
.dark-mode .fx-breadcrumbs__ellipsis-menu,
.dark-mode .fx-sidebar-user-menu-panel,
.dark-mode .fx-files-table .dropdown-menu,
.dark-mode .fx-folders-table .dropdown-menu {
    background-color: var(--vfm-surface) !important;
    border-color: var(--vfm-border) !important;
}

.dark-mode .fx-breadcrumbs__menu-toggle,
.dark-mode .fx-breadcrumbs__ellipsis-toggle,
.dark-mode .fx-breadcrumbs__search-btn,
.dark-mode .fx-sidebar-user-menu-toggle,
.dark-mode .fx-sidebar-theme-toggle,
.dark-mode .fx-files-table tbody .round-btn,
.dark-mode .fx-folders-table tbody .round-btn,
.dark-mode .fx-files-table .dropdown-item,
.dark-mode .fx-folders-table .dropdown-item,
.dark-mode .fx-sidebar-user-menu-item {
    color: var(--vfm-text-muted) !important;
}

.dark-mode .fx-sidebar-accordion-shell,
.dark-mode .fx-sidebar-accordion-item,
.dark-mode .fx-sidebar-accordion-content {
    background: var(--vfm-surface) !important;
    border-color: var(--vfm-border) !important;
}

.dark-mode .fx-sidebar-accordion-summary,
.dark-mode .fx-sidebar-accordion-summary-main,
.dark-mode .fx-sidebar-accordion-summary-meta,
.dark-mode .fx-sidebar-accordion-caret,
.dark-mode .fx-side-entry,
.dark-mode .fx-side-entry__link,
.dark-mode .fx-side-entry__text,
.dark-mode .fx-side-entry__action,
.dark-mode .fx-sidebar-section-title,
.dark-mode .fx-sidebar-section-subtitle,
.dark-mode .fx-sidebar-empty-state {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-sidebar-accordion-summary:hover,
.dark-mode .fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary,
.dark-mode .fx-side-entry:hover,
.dark-mode .fx-side-entry.active,
.dark-mode .fx-side-entry:active {
    background-color: var(--vfm-primary-soft) !important;
    border-color: var(--vfm-border) !important;
    color: var(--vfm-text) !important;
}

.dark-mode .fx-sidebar-accordion-summary:hover .fx-sidebar-accordion-summary-main,
.dark-mode .fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-summary-main,
.dark-mode .fx-sidebar-accordion-summary:hover .fx-sidebar-accordion-summary-meta,
.dark-mode .fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-summary-meta,
.dark-mode .fx-sidebar-accordion-summary:hover .fx-sidebar-accordion-caret,
.dark-mode .fx-sidebar-accordion-item[open] > .fx-sidebar-accordion-summary .fx-sidebar-accordion-caret,
.dark-mode .fx-side-entry:hover .fx-side-entry__link,
.dark-mode .fx-side-entry:hover .fx-side-entry__text,
.dark-mode .fx-side-entry:hover .fx-side-entry__action,
.dark-mode .fx-side-entry.active .fx-side-entry__link,
.dark-mode .fx-side-entry.active .fx-side-entry__text,
.dark-mode .fx-side-entry.active .fx-side-entry__action,
.dark-mode .fx-side-entry:active .fx-side-entry__link,
.dark-mode .fx-side-entry:active .fx-side-entry__text,
.dark-mode .fx-side-entry:active .fx-side-entry__action {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-sidebar-accordion-summary-main .bi,
.dark-mode .fx-side-entry__icon,
.dark-mode .fx-side-entry__icon .bi {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-sidebar-accordion-summary:focus-visible,
.dark-mode .fx-side-entry__link:focus-visible,
.dark-mode .fx-sidebar-user-menu-toggle:focus-visible,
.dark-mode .fx-sidebar-theme-toggle:focus-visible {
    outline: 2px solid rgba(110, 168, 254, 0.5);
    outline-offset: 2px;
}
.dark-mode .fx-sidebar-footer-user button:hover,
.dark-mode .fx-sidebar-footer-actions .btn-icon:hover,
.dark-mode .fx-sidebar-footer-actions .btn-icon:focus-visible,
.dark-mode .fx-sidebar-footer-actions .btn-outline-secondary:hover,
.dark-mode .fx-sidebar-footer-actions .btn-outline-secondary:focus-visible,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-theme-toggle:hover,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-theme-toggle:focus-visible,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-footer-action:hover,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-footer-action:focus-visible {
    background-color: var(--vfm-surface-alt) !important;
    color: var(--vfm-text) !important;
    border-color: var(--vfm-border) !important;
}

.dark-mode .fx-sidebar-footer-user button:hover,
.dark-mode .fx-sidebar-footer-actions .btn-icon:hover i,
.dark-mode .fx-sidebar-footer-actions .btn-icon:focus-visible i,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-theme-toggle:hover i,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-theme-toggle:focus-visible i,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-footer-action:hover i,
.dark-mode .fx-sidebar-footer-actions .fx-sidebar-footer-action:focus-visible i {
    color: var(--vfm-text) !important;
}
.dark-mode .fx-sidebar-user-menu-toggle:hover,
.dark-mode .fx-sidebar-theme-toggle:hover,
.dark-mode .fx-files-table tbody .round-btn:hover,
.dark-mode .fx-files-table .dropdown-item:hover,
.dark-mode .fx-files-table .dropdown-item:focus,
.dark-mode .fx-files-table .dropdown-item:active,
.dark-mode .fx-folders-table .dropdown-item:hover,
.dark-mode .fx-folders-table .dropdown-item:focus,
.dark-mode .fx-folders-table .dropdown-item:active,
.dark-mode .fx-files-table .dropdown-toggle:hover,
.dark-mode .fx-files-table .dropdown-toggle:focus-visible,
.dark-mode .fx-folders-table .dropdown-toggle:hover,
.dark-mode .fx-folders-table .dropdown-toggle:focus-visible,
.dark-mode .fx-sidebar-user-menu-item:hover,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span:hover,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > .folder-item:hover {
    background-color: var(--hover-bg-menu) !important;
    color: var(--vfm-text) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:hover {
    background-color: transparent !important;
}

.dark-mode .fx-files-table .dropdown-menu .dropdown-item,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item,
.dark-mode .fx-files-table .dropdown-menu .dropdown-item:hover,
.dark-mode .fx-files-table .dropdown-menu .dropdown-item:focus,
.dark-mode .fx-files-table .dropdown-menu .dropdown-item:active,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:hover,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:focus,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:active {
    color: var(--vfm-text) !important;
    background-color: transparent !important;
}

.dark-mode .fx-files-table .dropdown-menu .dropdown-item:hover,
.dark-mode .fx-files-table .dropdown-menu .dropdown-item:focus,
.dark-mode .fx-files-table .dropdown-menu .dropdown-item:active,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:hover,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:focus,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item:active {
    background-color: var(--vfm-surface-alt) !important;
}

.dark-mode .fx-files-table .dropdown-menu .dropdown-item i:hover,
.dark-mode .fx-folders-table .dropdown-menu .dropdown-item i:hover,
.dark-mode .fx-files-table .dropdown-toggle i:hover,
.dark-mode .fx-folders-table .dropdown-toggle i:hover {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-breadcrumbs__menu-item:hover,
.dark-mode .fx-breadcrumbs__ellipsis-item:hover {
    color: var(--vfm-text) !important;
    background-color: var(--vfm-surface-alt) !important;
}

.dark-mode .fx-breadcrumbs__compact .breadcrumb-item a:hover,
.dark-mode .fx-breadcrumbs .breadcrumb-item a:hover,
.dark-mode .fx-files-table tbody a:hover,
.dark-mode .fx-folders-table tbody a:hover,
.dark-mode .fx-folders-summary h6:hover,
.dark-mode .fx-user-dirs a:hover,
.dark-mode .fx-folders-table a:hover {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: var(--vfm-text-subtle);
}

.dark-mode .fx-files-table thead th,
.dark-mode .fx-files-table thead td,
.dark-mode .fx-folders-table thead td {
    background: transparent;
    border-color: var(--bs-border-color);
}

.dark-mode .fx-files-table tbody tr:hover,
.dark-mode .fx-folders-table tbody tr:hover,
.dark-mode .table>tbody>tr:hover {
    background: var(--vfm-primary-soft) !important;
}

.dark-mode .fx-space-panel {
    background: var(--vfm-surface) !important;
    border-color: var(--vfm-border) !important;
    box-shadow: var(--vfm-shadow-sm) !important;
}

.dark-mode .fx-space-summary__used,
.dark-mode .fx-space-summary__free,
.dark-mode .fx-space-progress-label {
    color: var(--vfm-text-muted) !important;
}

.dark-mode .fx-space-progress {
    background: var(--vfm-surface-alt) !important;
}

.dark-mode .fx-space-progress::-webkit-progress-bar {
    background: var(--vfm-surface-alt) !important;
}

.dark-mode .fx-space-progress::-moz-progress-bar {
    background: var(--vfm-primary) !important;
}

@media (max-width: 767.98px) {
    .dark-mode .fx-files-table.listview tbody tr,
    .dark-mode .fx-files-table.listview tbody td,
    .dark-mode .fx-folders-table tbody tr,
    .dark-mode .fx-folders-table tbody td {
        background: var(--vfm-surface) !important;
        background-color: var(--vfm-surface) !important;
        color: var(--vfm-text) !important;
        --bs-table-bg: var(--vfm-surface);
        --bs-table-accent-bg: transparent;
    }
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar {
    background: transparent !important;
    border-color: var(--vfm-border) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .wrap-foldertree > .toggle-all-tree {
    background: var(--vfm-primary-soft) !important;
    color: var(--vfm-primary) !important;
    border: 1px solid var(--vfm-border) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry.active {
    border-color: var(--vfm-primary-soft) !important;
    background: var(--vfm-primary-soft-2) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > .folder-item {
    color: var(--vfm-text) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > a,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > span,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry:hover > .folder-item,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:hover,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > a:focus {
    background: var(--vfm-primary-soft) !important;
    color: var(--vfm-primary) !important;
    border-color: var(--vfm-primary-soft) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry > span {
    background: var(--vfm-surface-alt) !important;
    color: var(--vfm-primary) !important;
    border-color: var(--vfm-border) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry .bi,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li > .folder-entry .folder-item .bi {
    color: var(--vfm-text) !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree ul {
    background: transparent !important;
}

.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li:before,
.dark-mode .fx-foldertree-panel .foldertree-sidebar .foldertree li:after {
    border-color: var(--vfm-border) !important;
}

.fx-panel-loading,
.mailpreload,
.fx-drive-sidebar-backdrop {
    backdrop-filter: blur(2px);
}

@media (max-width: 991.98px) {
    #global-search .search-modal-dialog {
        max-width: calc(100% - 1rem);
    }
}

@media (max-width: 767.98px) {
    #global-search .search-modal__header,
    #global-search .search-modal__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #global-search .search-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #global-search .search-sort-wrap,
    #global-search .search-filter-group,
    #global-search .search-summary {
        width: 100%;
    }

    #global-search .search-filter-group {
        display: flex;
    }

    #global-search .search-filter-group .btn {
        flex: 1 1 0;
    }

    #global-search .search-result-card {
        grid-template-columns: 2.5rem minmax(0, 1fr);
    }

    #global-search .search-result-card__action {
        grid-column: 1 / -1;
        justify-self: end;
    }

    #global-search .search-input-group .btn {
        min-width: 4.25rem;
    }
}
