/*
.project:hover {
    background-color: rgba(0, 0, 0, 0.05);
    cursor:pointer;
}
*/
.dashboard-page {
    min-height: calc(100vh + 1px);
}

.navbar-brand {
    font-family: 'Teko', sans-serif;
    font-size:2rem;
    line-height:1;
}

.warning-indicator, .attachment-indicator {
    cursor: pointer;
    display: inline-block;
}
.warning-indicator i, .attachment-indicator i {
    font-size: 14px;
}
.text-ambio {
    color:#F68E1E;
}

.modal-body .row {
    margin-left:-16px;
    margin-right:-16px;
}

.btn-xs {
    font-size: 11px;
    padding: .2rem .4rem;
}


.btn-google {
    background-color:#de5246;
    color:#fff;
}

.btn-google:hover {
    background-color:#a61c1e;
    color:#fff;
}

#project .nav-tabs .nav-item .nav-link {color:rgba(52, 58, 64, 1);}
#project .nav-tabs .nav-item .nav-link:hover {color:rgba(52, 58, 64, .75);}
#project .nav-tabs .nav-item .nav-link.active {
    color:#fff;
    background-color: #343a40;
    border-color: #343a40;
}

#project .nav-tabs .nav-item .nav-link.active:hover {
    color:#eee;
}

.project:hover {background-color:#fafafa;cursor:pointer}



.nav-tabs {
    border-bottom:0;
}

.nav-tabs .nav-link {
    border:0;
}

/* not active */
.nav-pills .nav-link:not(.active),
.nav-tabs .nav-link:not(.active){
    background-color: transparent;
    color:rgba(52, 58, 64, 1);
}

.nav-pills .nav-link:not(.active):hover,
.nav-tabs .nav-link:not(.active):hover{
    color: rgba(52, 58, 64, .75);
}

/* active (faded) */
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active{
    background-color:#343a40 !important;
    color: white;
}

.list-group .list-group-item.list-group-item-action.active {
    background-color:#343a40 !important;
    color: white;
    border:0;
}


.image-drop-area {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 200px;
}

.author .signature {
    max-height:80px;
}


#settings-navigation {
    overflow-x:scroll;
}

@media (min-width:768px) {
    #settings-navigation {
        overflow-x:initial;
    }
}
.btn btn-sm btn-secondary ml-3 {
    border: none; /* Remove borders */
    padding: 12px 24px; /* Some padding */
    font-size: 16px; /* Set a font-size */
}

/* Add a right margin to each icon */
.fa {
    margin-left: -12px;
    margin-right: 8px;
}
.stop {
    animation-name: none !important;
    -webkit-animation-name: none !important;
}

#toasts {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100000000;
}

#toasts .toast {
    min-width: 250px;
}


/*
.image-menu .card {
    max-width: 20%;
    margin-right: 15px;
    margin-left: 15px;
}

 */


.image-menu {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap:1rem;
}

@media screen and (min-width: 768px) {
    .image-menu {
        grid-template-columns: repeat(4, 1fr);
    }
}


.image-menu >.card {
    position: relative;
    transition: transform 100ms ease-in-out;
}

.image-menu >.card > a {
    position: absolute;
    inset:0;
    z-index: 100;
}

.image-menu >.card:hover {
    transform: scale(1.015);
}

.image-menu >.card > img {
    filter: grayscale(0);
    transition: filter 200ms ease-in-out;
}

.image-menu >.card:hover > img {
    filter: grayscale(50);
}

ul.missing-components li:last-of-type {
    border-bottom: none !important;
}

/* Sticky header styles */
.sticky-header {
    background-color: #fff;
    position: sticky;
    top: 0;
}

/* Create border effect using pseudo-element */
.sticky-header td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6; /* Match your table border color */
    pointer-events: none;
    box-sizing: border-box; /* Ensure borders are drawn correctly */
}

/* Ensure bottom border of header is visible */
.sticky-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-bottom: 1px solid #dee2e6; /* Match your table border color */
}

/* Adjust cell padding to compensate for content-box sizing */
.sticky-header td {
    padding: 0.75rem; /* Adjust this value to match your desired padding this here fixes the date arrow */
}

/*The .dashboard-widget is used to control the css of the forms table and nested-table.*/
.dashboard-widget[data-widget-type='form'] table.table-striped {
    /* Existing styles */
    tbody > tr:nth-of-type(2n+1):not(:hover) {
        background-color: inherit;
    }
    tbody > tr:nth-of-type(4n+1):not(:hover) {
        background-color: rgba(0,0,0,.02);
    }

    /* Nested table styles */
    .nested-table {
        tbody > tr:nth-of-type(2n+1):not(:hover) {
            background-color: inherit;
        }
        tbody > tr:nth-of-type(2n):not(:hover) {
            background-color: rgba(0,0,0,.02);
        }
        tbody > tr:hover {
            background-color: rgba(0,0,0,.075); /* Bootstrap's default hover color */
        }
    }

    /* Prevent hover effect on the container row of the nested table */
    tbody > tr.collapse:hover {
        background-color: inherit;
    }

    /* Keep the no-hover cell style */
    tbody > tr td.no-hover {
        background-color: white;
    }
    tbody > tr td.no-hover:hover {
        background-color: white;
    }
}

table thead tr td[data-form-field-id='day'] {
    width: 3rem;
}

table tbody tr td[data-form-field-id='day'] {
    text-align: center;
}

table thead tr td.vertical {
    transform: rotate(180deg);
    writing-mode: vertical-lr;
    vertical-align: middle;
    line-height: 1.3;
}

table thead tr td.vertical * {
    display: block;
    cursor: default;
}

table thead tr td.hover,
table tbody tr td.hover:not(.table-danger) {
    background-color: rgba(0,0,0,.075);
    color: #212529;
}

table tbody tr td.hover {
    cursor: pointer;
}

table tbody tr td.hover:hover {
    font-weight: bold;
}


@keyframes tilt-n-move-shaking {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2.5px, 2.5px) rotate(2.5deg); }
    50% { transform: translate(0, 0) rotate(0deg); }
    75% { transform: translate(-2.5px, 2.5px) rotate(-2.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

#preview.sorting {
    animation: tilt-n-move-shaking 0.1s infinite;
    filter: blur(1px);
}


/** Role colors **/
.color-sysadmin {
    background-color: #a61c1e;
    color: #fff;
}

.color-owner {
    background-color: #3484f0;
    color: #fff;
}

.color-coordinator {
    background-color: #c4dbfa;
    color: #000;
}

.color-user {
    background-color: #f7f7f7;
    color:#000;
}

.color-guest {
    background-color: #757575;
    color: #fff;
}


.user-access {
    display: flex;
    border:1px solid #e7e7e7;
    border-radius: 1000px;
    padding:2px 2px;
    font-size: 14px;
    margin-bottom:2px;
}

.user-access .customer {
    background-color: #e7e7e7;
    border-radius: 1000px 0 0 1000px;
    padding:1px 5px 1px 10px;
    margin-right:2px;
}

.user-access .location {
    padding:1px 5px;
    background-color: #aaa;
    color:#fff;
    margin-right:2px;
}

.user-access .role {
    /*background-color: #e7e7e7;*/
    border-radius: 0 1000px 1000px 0;
    padding:1px 10px 1px 5px;
}

.role {
    border-radius: 1000px;
    padding:2px 10px;
}