.file-manager .list-group-item {
    padding: 10px 0 0 10px;
    border: none;
}

.file-manager .folders-sub-menu {
    margin: 0;
}

.file-manager .folders-menu a {
    font-size: 18px;
}


.label-pill {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 3px;
    cursor: pointer;
    user-select: none;
}

.label-pill.selected {
    border-color: #0d6efd;
    background-color: #e8f0fe;
}

/* ── Upload Modal Styles ─────────────────────────────────────────────────── */

/* Dropzone */
.fu-modal-dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fu-modal-dropzone:hover,
.fu-modal-dropzone--over {
    border-color: #0d6efd;
    background: #f0f6ff;
}

.fu-modal-dropzone--over {
    border-style: solid;
}

.fu-modal-file-input {
    display: none;
}

.fu-modal-file-selected {
    display: flex;
    align-items: center;
    font-size: .875rem;
}

.fu-modal-file-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Label radio-pills */
.label-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1.5px solid #dee2e6;
    font-size: .8125rem;
    cursor: pointer;
    user-select: none;
    transition: background .12s, color .12s, border-color .12s;
    background: #fff;
    color: #495057;
    line-height: 1.4;
    margin: 0;
    font-weight: normal;
}

.label-pill:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.label-pill.selected {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 500;
}

.label-pill-add {
    border-style: dashed;
    color: #6c757d;
}

.label-pill-add:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

/* New label inline form */
.fu-modal-new-label, .new-label-form {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
}

.fu-modal-color-picker {
    display: flex;
    gap: 5px;
    align-items: center;
}

.fu-modal-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .1s, border-color .1s;
    flex-shrink: 0;
}

.fu-modal-color-dot:hover {
    transform: scale(1.15);
}

.fu-modal-color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #495057;
}

.gap-2 {
    gap: .5rem;
}

/* ── Upload Modal Styles ─────────────────────────────────────────────────── */

/* Dropzone */
.fu-modal-dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fu-modal-dropzone:hover,
.fu-modal-dropzone--over {
    border-color: #0d6efd;
    background: #f0f6ff;
}

.fu-modal-dropzone--over {
    border-style: solid;
}

.fu-modal-file-input {
    display: none;
}

.fu-modal-file-selected {
    display: flex;
    align-items: center;
    font-size: .875rem;
}

.fu-modal-file-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Label radio-pills */
.label-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1.5px solid #dee2e6;
    font-size: .8125rem;
    cursor: pointer;
    user-select: none;
    transition: background .12s, color .12s, border-color .12s;
    background: #fff;
    color: #495057;
    line-height: 1.4;
    margin: 0;
    font-weight: normal;
}

.label-pill:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.label-pill.selected {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 500;
}

.label-pill-add {
    border-style: dashed;
    color: #6c757d;
}

.label-pill-add:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

/* New label inline form */
.fu-modal-new-label {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
}

.fu-modal-color-picker {
    display: flex;
    gap: 5px;
    align-items: center;
}

.fu-modal-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .1s, border-color .1s;
    flex-shrink: 0;
}

.fu-modal-color-dot:hover {
    transform: scale(1.15);
}

.fu-modal-color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #495057;
}

.gap-2 {
    gap: .5rem;
}

/* ── Index Modal (3-step) ────────────────────────────────────────────────── */

/* Breadcrumb */
.im-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
}

.im-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #adb5bd;
}

.im-breadcrumb-item.active {
    color: #212529;
    font-weight: 600;
}

.im-breadcrumb-item.done {
    color: #198754;
}

.im-breadcrumb-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dee2e6;
    color: #495057;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.im-breadcrumb-item.active .im-breadcrumb-num {
    background: #0d6efd;
    color: #fff;
}

.im-breadcrumb-item.done .im-breadcrumb-num {
    background: #198754;
    color: #fff;
}

.im-breadcrumb-sep {
    color: #dee2e6;
    font-size: .625rem;
    letter-spacing: -2px;
}

/* Entity grid */
.im-entity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.im-entity-card {
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    transition: border-color .12s, background .12s, box-shadow .12s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.im-entity-card:hover {
    border-color: #0d6efd;
    background: #f0f6ff;
}

.im-entity-card.selected {
    border-color: #0d6efd;
    background: #e8f0fe;
}

.im-entity-inbox {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.im-entity-icon {
    font-size: 1.25rem;
    color: #6c757d;
}

.im-entity-card:hover .im-entity-icon,
.im-entity-card.selected .im-entity-icon {
    color: #0d6efd;
}

.im-entity-label {
    font-size: .875rem;
    font-weight: 500;
    color: #212529;
}

.im-entity-sub {
    font-size: .75rem;
    color: #6c757d;
}

/* Record list */
.im-record-list {
    max-height: 260px;
    overflow-y: auto;
}

.im-record-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .1s;
}

.im-record-row:hover {
    background: #f8f9fa;
}

.im-record-row.selected {
    background: #e8f0fe;
}

.im-record-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
    flex-shrink: 0;
    transition: border-color .1s, background .1s;
}

.im-record-row.selected .im-record-radio {
    border-color: #0d6efd;
    background: #0d6efd;
    box-shadow: inset 0 0 0 3px #fff;
}

.im-record-name {
    font-size: .875rem;
    color: #212529;
}

.im-record-sub {
    font-size: .75rem;
    color: #6c757d;
}

/* Selected badge */
.im-selected-badge {
    font-size: .8125rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffc107;
    color: #212529;
}

.fancybox__container.has-sidebar .fancybox__carousel {
    padding-right: 220px;
}

.fancybox__container.has-sidebar .fancybox-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    z-index: 10;
    overflow-y: auto;
}

.fancybox__container.has-sidebar .f-carousel__toolbar {
    right: 220px !important;
    left: 0;
    width: auto;
}

