﻿#name {
    color: red
}

.left-card {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.right-card {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.round-btn {
    border-radius: 50px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    width: 100%;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    height: 100%;
}

/* Override soft-ui-dashboard.css -> Start */
.navbar-vertical .navbar-nav > .nav-item .nav-link.active .icon {
    background-image: linear-gradient(310deg, #255d19 0%, #6ab358 100%);
}

.navbar-vertical .navbar-nav > .nav-item .nav-link.active {
    background-color: #dee2e6;
}

.navbar-vertical .navbar-nav .nav-link[data-bs-toggle="collapse"]:after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f107";
    margin-left: auto;
    color: #344767;
    transition: all 0.2s ease-in-out;
}

.bg-gradient-primary {
    background-image: linear-gradient(310deg, #255d19 0%, #6ab358 100%);
}

.btn-outline-primary {
    color: #6ab358;
    border-color: #6ab358;
}

.text-primary {
    color: #6ab358 !important;
}

/*.bg-gradient-success {
    background-image: linear-gradient( 310deg,#ff99e3,#ff4dcf);
}*/
/* make the sidebar wider */
.navbar-vertical.navbar-expand-xs {
    max-width: 22.625rem !important;
}

/* make main container go left more due to increased width of sidebar*/
@media (min-width: 1200px) {
    .sidenav.fixed-start + .main-content {
        margin-left: 24.125rem; /* always +2 compare to sidebar width (ignore the decimal)*/
    }

    .g-sidenav-hidden .navbar-vertical:hover {
        max-width: 22.625rem !important;
    }

    .g-sidenav-hidden .navbar-vertical {
        max-width: 6rem !important;
    }
}

/* make sidebar go left more due to increase width of sidebar during slide-out navigation */
@media (max-width: 1199.98px) {
    .g-sidenav-show:not(.rtl) .sidenav {
        transform: translateX(-24.125rem);
    }

    .g-sidenav-show.g-sidenav-pinned .sidenav {
        transform: translateX(0);
    }
}

.swal2-actions {
    z-index: 0;
}
/* Override soft-ui-dashboard.css -> End */
/* Override choices.scss -> Start */
.choices[data-type*='select-one']:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
/* Override choices.scss -> End */

/* For Image Modal -> Start */
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    z-index: 1080; /* show at the top*/
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    z-index: 1080; /* show at the top, same with image modal*/
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}
/* For Image Modal -> End */

/*    Dashboard     */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.dashboard-item {
    width: 100%;
}

/* For List datatable */
/*#datatable-search th,
#datatable-search td {
    font-size: 0.75rem;
}

#datatable-search td:first-child {
    font-size: 0.7rem;
}*/

.custom-dropdown-menu {
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 5px 0;
    list-style: none;
    position: absolute;
    z-index: 9999;
}

    .custom-dropdown-menu .dropdown-item {
        padding: 8px 16px;
        cursor: pointer;
    }

        .custom-dropdown-menu .dropdown-item:hover {
            background: #f5f5f5;
        }

.action-trigger {
    line-height: 1;
    vertical-align: middle;
}

    .action-trigger i {
        font-size: 14px;
    }

.icon-btn {
    border: none;
    background: transparent;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
}

body.dropdown-open,
body {
    overflow: hidden auto !important;
    padding-right: 0 !important;
}

#datatable-search th,
#datatable-search td {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem; /* reduce row height */
    vertical-align: middle;
}

#datatable-search th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8392a5; /* muted grey header color */
}

#datatable-search td {
    color: #344767; /* darker text for data */
}

/* tighten the top controls (entries per page + search) */
.dataTable-top,
.dataTable-bottom {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem !important;
    font-size: 0.75rem;
}

/* compact action icons */
#datatable-search td:first-child {
    white-space: nowrap;
}

    #datatable-search td:first-child a {
        margin-right: 4px;
    }

/* Action button */
.action-dropdown-menu {
    min-width: 160px;
    font-size: 0.85rem;
}

    .action-dropdown-menu .dropdown-item:hover {
        background-color: #f6f9fc;
    }

    .action-dropdown-menu .dropdown-item.active {
        background-color: #e9ecef;
        font-weight: 600;
    }

.table-responsive {
    overflow: visible !important;
}

.action-dropdown {
    position: relative;
}

.action-dropdown-menu {
    z-index: 9999;
}

.action-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Overwrite Creative Time Left Menu Panel */
.sidenav {
    z-index: 1000;
}

/* Used by Vue to hide this element until Vue is finished mounting and ready to show the real data*/
[v-cloak] {
    display: none !important;
}