﻿.treeNode {
    cursor: pointer;
    position: relative;
    width: 20px;
    display: flex;
    height: 20px;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    color: #212529;
}

.expanded {
    transform: rotate(90deg); /* Rotate arrow on expansion */
}

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
}

#TreeContainer a {
    color: #212529;
    text-decoration: none;
}

    #TreeContainer a:hover {
        color: blue;
        text-decoration: underline;
    }


.nodeDetail {
    display: grid;
    /*gap: 3px;*/
    align-items: center;
    grid-template-columns: auto auto 1fr;
    /*padding: 1px 0px;*/
    border-radius: 5px;
}

    .nodeDetail:hover {
        background-color: #ffd800 !important;
    }

    .nodeDetail .addlink {
        padding-right: 5px;
        display: none;
    }

    .nodeDetail a {
        white-space: nowrap;
    }

@media (max-width: 768px) {
    .nodeDetail {
        padding: 3px 0px;
    }

    a {
        padding: 5px;
    }
}

@media print {

    .NoPrint {
        display: none !important;
    }
}

.nodeDetailActions {
    grid-column: 3;
    display: none;
}

.nodeDetailActionsBtns {
    display: flex;
    justify-content: end;
    gap: 5px;
    padding-right: 3px;
}

#divData {
    width: 100%;
    overflow: auto;
}

#divEdit , #divSearch {
    padding: 10px;
    max-width: 400px;
    margin: auto;
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#divViewDetails {
    padding: 10px;
    max-width: 500px;
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}

    #divViewDetails .modal-body {
        font-size: 14px;
    }

        #divViewDetails .modal-body label {
            color: #6c757d;
            margin-bottom: 0;
        }

        #divViewDetails .modal-body > div:not([style*="grid-column"]) {
            padding: 5px 0;
            border-bottom: 1px solid #f0f0f0;
        }

    #divViewDetails .modal-header {
        background: linear-gradient(90deg, #7c8dff, #a8b5ff);
        color: white;
        border-radius: 10px 10px 0 0;
    }

        #divViewDetails .modal-header .modal-title {
            color: white;
        }

.EditBody {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px;
    align-items: center;
}

a {
    text-decoration: none;
    color: #0d6efd;
}

.tdb {
    border: 1px solid black;
    padding: 0px 2px;
}

.shortcut-letter {
    text-decoration: underline;
}

.UserAccess {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2px;
}

#OuterContainer {
    display: grid;
    height: 100dvh;
    grid-template-rows: auto 1fr auto;
    overflow: auto;
}

.stickyTable {
    position: relative;
}

    .stickyTable th {
        position: sticky;
        background-color: #d0d0d0 !important;
        top: 0; /* Don't forget this, required for the stickiness */
    }

.IdInt {
    font-size: 0.8em;
    background-color: yellow;
}

.tperson {
    cursor: pointer;
    vertical-align: middle;
}

    .tperson:hover {
        background-color: lightblue;
    }

.deleted {
    color: red;
}

.verified {
    font-weight: bold;
}

.dead {
    color: red !important;
}

.village {
    background-color: #ffebae;
    border-radius: 10%;
    padding: 0px 3px;
}

.listname {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

    .listname span {
        font-size: .8em;
    }


@media print {
    #OuterContainer, #divDataParent, #divData {
        height: max-content !important;
        overflow: visible !important;
    }
}

.relationpre {
    color: #413333;
    font-size: .8em;
    margin-right: 2px;
    padding: 0px 3px;
}

.S {
    background: #42efe0;
}

.D {
    background: #ff54d4;
    color: white;
}

.H, .W {
    background: purple;
    color: white;
}

.ded {
    background: red;
    color: white;
}

#filter-buttons {
    /* 1. Enable Grid */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 3px;
    padding: 10px;
    width: 100%;    
}