﻿.fm-tree-container {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .75rem;
    background-color: #ffffff;
    max-height: 650px;
    overflow-y: auto;
}

.fm-tree {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

    .fm-tree ul {
        list-style: none;
        margin: 0;
        padding-left: 1rem;
    }

.fm-node {
    margin-bottom: 2px;
}

.fm-node-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .25rem;
    border-radius: .25rem;
    text-decoration: none;
    font-size: .9rem;
    color: #212529;
}

    .fm-node-label:hover {
        background-color: #f1f3f5;
        text-decoration: none;
    }

.fm-node-folder > .fm-node-label {
    font-weight: 600;
}

.fm-node-doc > .fm-node-label {
    padding-left: 1.4rem;
}

.fm-node-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.fm-node-selected > .fm-node-label {
    background-color: #0d6efd;
    color: #ffffff;
}

.fm-detail {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1rem;
    background-color: #ffffff;
    min-height: 300px;
}

.fm-log-list {
    max-height: 220px;
    overflow-y: auto;
    padding-left: 0;
}

.fm-log-item + .fm-log-item {
    border-top: 1px dashed #e9ecef;
    margin-top: .35rem;
    padding-top: .35rem;
}

/* TOOLBAR */

.fm-toolbar {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background-color: #f8f9fa;
    padding: .35rem .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.fm-toolbar-label {
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    margin-right: .5rem;
}

.fm-toolbar-group {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    flex: 1 1 auto;
}

.fm-toolbar-form {
    display: flex;
    flex-wrap: nowrap;
    gap: .25rem;
    flex: 1 1 260px;
}

    .fm-toolbar-form .form-control-sm {
        flex: 1 1 auto;
    }

    .fm-toolbar-form button {
        flex: 0 0 auto;
        min-width: 130px;
    }

/* NODE RENAME */

.fm-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fm-node-rename-toggle {
    border: none;
    background: transparent;
    padding: 0 .15rem;
    font-size: .8rem;
    color: #6c757d;
    cursor: pointer;
}

    .fm-node-rename-toggle:hover {
        color: #343a40;
    }

.fm-node-rename-form {
    margin-top: 2px;
    padding-left: 1.4rem;
}

    .fm-node-rename-form .form-control-sm {
        height: 26px;
        padding: .1rem .25rem;
        font-size: .75rem;
    }

    .fm-node-rename-form .btn {
        padding: .1rem .35rem;
        font-size: .7rem;
    }

/* PREVIEW */

.fm-preview-container {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background-color: #f8f9fa;
    overflow: hidden;
}

    .fm-preview-container iframe {
        display: block;
        width: 100%;
    }

/* LAYOUT ROOT */

.fm-layout-root {
    cursor: default;
}

/* DOKÜMAN ŞEMASI LINK */

.fm-schema-link {
    font-size: .85rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    padding: 0;
    border: 0;
    background: none;
}

    .fm-schema-link:hover {
        text-decoration: underline;
        color: #0b5ed7;
    }

/* DOKÜMAN TUŞ TAKIMI */

.fm-action-bar {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: .15rem;
    justify-content: center;
    flex: 1 1 auto;
    overflow-x: auto;
}


.fm-action-item {
    flex: 1 1 0;
    max-width: 190;
}

.fm-action-item1 {
    flex: 1 1 100;
    max-width: flex;
}

.fm-action-item .btn {
    width: 100%;
}

.fm-action-item input[type="file"] {
     width: 100%;
     font-size: .8rem;
}

/* Genel küçük iyileştirmeler */

.fm-tree-container,
.fm-detail {
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.fm-delete-list {
    max-height: 300px;
    overflow-y: auto;
    background-color: #ffffff;
}