/*
* SmartWebix
* File include item SmartWebix only specific css
******************************************************************************/

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page { padding-top: 64px !important }

.content-wrapper .navbar { z-index: auto }

.avatar-xxl {
    width: 7rem;
    height: 7rem
}

.display-none { display: none !important }

.color {
    border: 1px solid;
    height: 12px;
    width: 12px;
    margin-right: 10px
}

.custom-option.custom-option-image:hover {
    border-width: 1px !important
}

.card-bg {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-radius: .625rem .625rem 0 0;
    height: 195px
}

li.nav-item.dynamic-logo {
    display: contents
}

h1.site-title {
    font-size: 1.5em;
    line-height: 1.2;
    margin: .5em 0;
    text-align: left;
    display: grid;
}

.nav-link-custom {
    padding: 15px;
    font-size: 13px
}

.close {
    color: rgba(0, 0, 0, .8);
    font-size: 20px;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 5px
}

.close:focus, .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer
}

.clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--bs-heading-color);
    letter-spacing: 1px;
    font-size: 0.8rem;
    align-content: space-between;
    align-items: flex-end;
    margin-right: 10px;
}
fieldset {
    min-width: 0;
    padding: revert;
    margin: revert;
    border: 1px solid color-mix(in sRGB,var(--bs-base-color) 22%,var(--bs-paper-bg));
    border-radius: var(--bs-border-radius);
}
legend {
    float: none;
    width: revert;
    padding: revert;
    margin-bottom: revert;
    font-size: revert;
    line-height: revert;
}
.dataTables_processing.card {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 10;
    bottom: 0;
    right: 0;
    opacity: 0.8;
    display: flex;
    align-content: space-around;
    justify-content: space-around;
    width: auto;
    margin: 0;
}
.dataTables_processing.card>div:last-child>div { background: #666cff; }

.form-control:focus~.form-label {
    border-color: transparent;
}

thead.table-light{
    background: url("../img/illustrations/table-header.svg");
    background-size: 100%;
}

thead.table-light th{
    background: transparent;
}
table.dataTable thead th.sorting:before, table.dataTable thead th.sorting:after {
    color: #FFFFFF !important;
}

.primary-color{
    color: var(--bs-primary) !important;
}

.primary-fill-color{
    fill: var(--bs-primary) !important;
}

.primary-bg{
    background: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
}
.fm-wrapper {
    display: flex;
    height: calc(100vh - 120px);
}

/* LEFT PANEL - FOLDERS ONLY */
.fm-left {
    width: 350px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.fm-left-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.fm-tree-list { list-style: none; padding-left: 12px; margin: 0; }
.fm-tree-list li { margin: 4px 0; }

.fm-tree-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    color: #333;
}
.fm-tree-link:hover, .fm-tree-link.active {
    background: #dceeff;
}

/* RIGHT SIDE */
.fm-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fm-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.fm-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* GRID AREA */
.fm-grid-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
}

.fm-item {
    text-align: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}
.fm-item.selected {
    background: #d0e7ff;
}
.fm-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.fm-item-name {
    margin-top: 4px;
    font-size: 13px;
}

/* PREVIEW PANEL */
.fm-preview-panel {
    width: 35%;
    max-width: 420px;
    border-left: 1px solid #ddd;
    overflow-y: auto;
}

.fm-preview-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.fm-preview-box {
    width: auto;
    border: 1px solid #ccc;
    background: var(--bs-body-bg);
    margin-bottom: 10px;
    text-align: center;
    height: 240px;
    padding: 10px;
}

.fm-preview-box img {
    width: 100%;
    height: 218px;
    object-fit: contain;
    border: 0;
}

.fm-details {
    font-size: 13px;
    padding: 10px;
}
.fm-details table {
    width: 100%;
}
.fm-details th {
    text-align: left;
    width: 35%;
    font-weight: 600;
    padding: 2px 0;
}
.fm-details td {
    padding: 2px 0;
}

/* CONTEXT MENU */
.fm-context-menu {
    position: absolute;
    z-index: 9999;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    min-width: 160px;
    font-size: 13px;
}
.fm-context-menu ul {
    list-style:none;
    margin:0;
    padding:4px 0;
}
.fm-context-menu li {
    padding:4px 16px;
    cursor:pointer;
}
.fm-context-menu li:hover {
    background:#0078d7;
    color:#fff;
}

.fm-tree-root, .fm-tree-children {
    list-style:none;
    padding-left:0;
}

.fm-tree-row {
    display:flex;
    align-items:center;
    cursor:pointer;
    padding:4px 4px;
    border-radius:4px;
}

.fm-tree-row:hover {
    background:#e3f2fd;
}

.fm-toggle-icon {
    font-size:16px;
    margin-right:4px;
    color:#607d8b;
}

.fm-folder-icon {
    font-size:18px;
    margin-right:6px;
    color:#ffca28;
}

.fm-folder-name {
    font-size:14px;
}

.fm-tree-selected {
    background: var(--bs-primary-border-subtle) !important;
    border-left: 3px solid var(--bs-primary);
}
.fm-tree-selected .fm-folder-name {
    color: var(--bs-menu-color);
}

/* ------------------------------------
           TREE SLIDE ANIMATION (VS CODE STYLE)
        -------------------------------------*/
.fm-tree-children {
    overflow: hidden;
    height: 0;
    transition: height .28s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fm-tree-children.open {
    height: auto; /* JS will override temporarily */
}

.fm-tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
}

.fm-tree-row:hover {
    background: #eaf4ff;
}

.fm-tree-selected {
    background: #d8ebff !important;
    border-left: 3px solid #2196f3;
}

.fm-toggle-icon {
    font-size: 17px;
    color: #607d8b;
}

.fm-folder-icon {
    font-size: 18px;
    color: var(--bs-primary);
}

/* Layout */
.fm-wrapper {
    display: flex;
    height: calc(100vh - 270px);
}
.fm-left-title {
    padding: 14px 12px 15px 12px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.fm-right {
    flex: 1;
    overflow: hidden;
}

.masonry {
    column-count: 3;          /* Number of columns (desktop) */
    column-gap: 1.5rem;       /* Space between columns */
}

.masonry-item {
    break-inside: avoid;      /* Prevent items from being cut */
    margin-bottom: 1.5rem;    /* Vertical spacing */
}

@media(max-width: 1400px) {
    .masonry {
        column-count: 2;
    }
}
@media(max-width: 768px) {
    .masonry {
        column-count: 1;
    }
}

.folders
{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

table.table.trainings-matrix {
    table-layout: fixed;
    width: 100%;
}

table.table.trainings-matrix th:first-child,
table.table.trainings-matrix td:first-child {
    background: var(--bs-primary);
    padding: 0.75rem 0.75rem;
    position: sticky;
    left: 0;
    z-index: 5; /* Keep above other cells */
    text-align: left;
}

table.table.trainings-matrix thead th:first-child {
    z-index: 10; /* Higher so header stays above body */
    background: #f8f9fa;
}
table.table.trainings-matrix td {
    width: 200px;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
}
table.table.trainings-matrix td p{
    display: block;
    background: #FFF;
    padding: 0.75rem;
    color: var(--bs-table-color);
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
}

table.table.trainings-matrix td:first-child p{
    display: block;
    background: #FFFFFF;
    padding: 0.75rem 0.75rem;
    color: var(--bs-primary);
}



table.table.trainings-matrix td:first-child a {
    display: block;
    background: #FFFFFF;
    padding: 10px;
}

table.table.trainings-matrix th:first-child,
table.table.trainings-matrix td:first-child {
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.zoom-120{
    zoom: 120%;
}

.jstree-default .jstree-node {
    min-height: 26px;
}
.content-wrapper {
    position: relative;
}
.loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(135, 66, 169, 0.6);
}
.loading-wrapper lottie-player{
    width: 350px;
    height: 350px;
}

.event-form.readonly select,
.event-form.readonly input,
.event-form.readonly #updateScopeWrap-all,
.event-form.readonly #updateScopeWrap-my,
.event-form.readonly .form-check,
.event-form.readonly input[type="checkbox"] {
    pointer-events: none;
}
.event-form.readonly button,
.event-form.readonly #updateScopeWrap-all,
.event-form.readonly #updateScopeWrap-my{
    display: none;
}
.event-form.readonly button[data-action="toggle-complete"]{
    display: block !important;
}
.event-form.readonly button[data-action="toggle-complete"],
.event-form.readonly button[data-action="delete"]{
    display: block !important;
}

.tpl-placeholder {
    background: #eef6ff;
    border: 1px dashed #4a90e2;
    padding: 2px 4px;
    border-radius: 4px;
}

.start-20 {
    inset-inline-start: 20% !important
}

div.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 2px;
    z-index: 10
}

div.dataTables_processing>div:last-child {
    position: relative;
    width: 80px;
    height: 15px;
    margin: 1em auto
}

div.dataTables_processing>div:last-child>div {
    position: absolute;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgb(13, 110, 253);
    background: rgb(var(--dt-row-selected));
    animation-timing-function: cubic-bezier(0, 1, 1, 0)
}

div.dataTables_processing>div:last-child>div:nth-child(1) {
    left: 8px;
    animation: datatables-loader-1 .6s infinite
}

div.dataTables_processing>div:last-child>div:nth-child(2) {
    left: 8px;
    animation: datatables-loader-2 .6s infinite
}

div.dataTables_processing>div:last-child>div:nth-child(3) {
    left: 32px;
    animation: datatables-loader-2 .6s infinite
}

div.dataTables_processing>div:last-child>div:nth-child(4) {
    left: 56px;
    animation: datatables-loader-3 .6s infinite
}


@keyframes datatables-loader-1 {
    0% {
        transform: scale(0)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes datatables-loader-3 {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(0)
    }
}

@keyframes datatables-loader-2 {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(24px, 0)
    }
}

@media print {
    @page { margin: 0; }
    body { margin: 1.6cm; }
}

@media (max-width: 1399.98px) {

}

@media(min-width: 1200px) {
    .modal-xxl {
        --bs-modal-width: 1340px
    }
    .modal-xxl .modal-dialog {
        max-inline-size:1140px
    }
}

@media (min-width: 992px) {
    .modal-xxl {
        --bs-modal-width: 100rem;
    }
}

@media (max-width: 991.98px) {

}

@media (max-width: 767.98px) {

    h1.site-title {
        font-size: 1.3em;
        text-align: left;
        display: grid;
    }
    h1.site-title small, h1.site-title .small {
        font-size: 0.8125rem;
        text-align: left;
    }
    .clock {
        font-size: 0.5rem;
        text-align: right;
    }
}

@media (max-width: 575.98px) {

    h1.site-title {
        font-size: 1.3em;
        text-align: left;
        display: grid;
    }
    h1.site-title small, h1.site-title .small {
        font-size: 0.6125rem;
        text-align: left;
    }
    .clock {
        font-size: 0.5rem;
        text-align: right;
    }
}

@media (max-width: 480px) {

    h1.site-title {
        font-size: 1.1em;
        text-align: left;
        display: grid;
    }
    h1.site-title small, h1.site-title .small {
        font-size: 0.6125rem;
        text-align: left;
    }
    .clock {
        font-size: 0.5rem;
        text-align: right;
    }
}
