@import url("https://fonts.googleapis.com/css?family=Figtree:400,300,700");

/* OVERRIDES */
:root {
    /*font-size: 14px;
    --hx-grid-sorted-icon-color: #ffffff;
    --hx-sidebar-item-font-size: 1.15rem;
    --hx-sidebar-item-color: rgba(255, 255, 255, 0.8);
    --hx-sidebar-item-icon-color: rgba(255, 255, 255, 0.8);
    --hx-sidebar-item-hover-color: rgba(255, 255, 255, 1);
    --hx-sidebar-item-hover-icon-color: rgba(255, 255, 255, 1);
    --hx-sidebar-toggler-border: 0px;
    --hx-search-box-item-subtitle-color: #6c757d;
    --hx-sidebar-subitem-margin: 0 0 .25rem 1rem;
    --hx-sidebar-subitem-font-size: 1rem;
    --hx-form-spacing: 0px;*/
}

div[data-bs-theme=light], div[data-bs-theme=dark] {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.hx-toast div[data-bs-theme=light], .hx-toast div[data-bs-theme=dark] {
    background-color: transparent;
}

/*#region HAVIT OVERRIDES */

.card-grid {
    padding: 2px;
}

.card-header {
    font-weight: bold;
    text-transform: uppercase;
}

div[data-bs-theme=light] .settings-sidebar .hx-sidebar-settings {
    background-color: #e9ecef !important;
    border-right: #dee2e6 1px solid;
}

div[data-bs-theme=dark] .settings-sidebar .hx-sidebar-settings {
    background-color: #353b41 !important;
    border-right: #474a4e 1px solid;
}

.grid-selectable.hx-grid td {
    -moz-user-select: none;
}

.sidebar .hx-sidebar-footer {
    display: block !important;
}

.hx-sidebar:not(.collapsed) {
    min-width: 300px;
}

.offcanvas {
    /*width: 95vw !important;*/
}

.offcanvas-header {
    box-shadow: 0px 2px 10px -3px rgba(0,0,0,0.75);
    z-index: 1;
}

.hx-offcanvas-footer {
    box-shadow: 0px -3px 10px -3px rgba(0,0,0,0.75);
    z-index: 1;
}

/* HxTabPanel horizontal scroll for mobile */
.nav.nav-tabs.hx-tab-panel {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
}

    .nav.nav-tabs.hx-tab-panel .nav-link {
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
    }

/*#endregion */

/*#region TELERIK OVERRIDES */

.k-grid-toolbar {
    border-color: var(--kendo-color-border, rgba(33, 37, 41, 0.13)) !important;
}

.k-input-solid:focus, .k-input-solid.k-focus {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px !important;
}

.grid-selectable .k-table-row {
    cursor: pointer;
}

.k-grid td .hover-link {
    /*color: #314186 !important;*/
    font-weight: bold !important;
}

/* template */
div.custom-ellipsis,
/* OnCellRender */
.k-grid td.custom-ellipsis,
/* OnRowRender */
.k-grid tr.custom-ellipsis .k-table-td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* grid */
.k-grid.font-size,
/* grid toolbar */
.k-grid.font-size .k-toolbar,
/* grid cells */
.k-grid.font-size table,
/* textboxes */
.k-grid.font-size .k-input,
/* date pickers */
.k-grid.font-size .k-picker,
/* buttons */
.k-grid.font-size .k-button,
/* column and filter menu */
.k-popup,
.k-popup .k-input,
.k-popup .k-picker,
.k-popup .k-button,
/* dropdowns */
.k-popup .k-list,
.k-table-td,
.k-column-title {
    font-family: 'Figtree', sans-serif !important;
}

/*#region Havit style grids */

.k-grid {
    border: none !important;
}

.k-grid-header {
    background-color: transparent !important;
    font-weight: bold !important;
}

    .k-grid-header .k-column-title {
        color: var(--bs-secondary-color) !important;
    }

.k-table-thead {
    background-color: transparent !important;
}

.k-grid .k-table-th {
    border: none !important;
}

/*#endregion */

/*#endregion */

/*#region Google Maps InfoWindow */
.gm-style-iw-chr button {
    width: 15px !important;
    height: 20px !important;
}

    .gm-style-iw-chr button span {
        width: 15px !important;
        height: 15px !important;
        margin: 5px !important;
    }

.gm-style .gm-style-iw {
    color: black;
}

.gm-style-iw-d a {
    color: #091827;
}

/*#endregion */
/*#region Cropper OVERRIDES */
img.cropper-container {
    display: none;
}
/*#endregion */

.bt-mobile .mobile-menu-icon {
    color: white;
}

div[data-bs-theme='dark'] .k-grid,
div[data-bs-theme='dark'] .k-editor,
div[data-bs-theme='dark'] .k-content,
div[data-bs-theme='dark'] .k-input-solid {
    background-color: #212529 !important;
}

div[data-bs-theme='dark'] .k-chart > svg > g > path[fill="rgb(0, 0, 0)"] {
    fill: #212529;
}

/***************************/
/* Charts to re-render when switching, so these are manual css fixes under the page is refreshed*/
/***************************/
div[data-bs-theme='light'] .k-chart > svg > g > path[fill="rgb(0, 0, 0)"] {
    fill: rgb(255, 255, 255);
}

div[data-bs-theme='dark'] .k-chart > svg > g > path[fill="rgb(255, 255, 255)"] {
    fill: #212529;
}

div[data-bs-theme='light'] .k-chart > svg > g text[fill="rgb(255, 255, 255)"] {
    fill: rgb(33, 37, 41);
}

div[data-bs-theme='dark'] .k-chart > svg > g text[fill="rgb(33, 37, 41)"] {
    fill: rgb(255, 255, 255);
}
/***************************/

/*#region GLOBALS */

/* lock body to remove scroll bounce on mobile.  Scrolling will be on the main body div */
html {
    position: static;
    overflow-y: hidden;
    height: 100%;
    max-height: 100%;
    overscroll-behavior: none;
}

body {
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    overscroll-behavior: none;
}

html, body {
    height: 100%;
}

body {
    overflow-x: hidden;
    font-family: 'Figtree', sans-serif !important;
}

a {
    cursor: pointer;
}

/*#endregion */

/*#region BLAZOR */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*#endregion */

.search .dropdown-item div {
    overflow: hidden;
}

.tooltip.show {
    opacity: 1 !important;
}

/*.app-background {
    background-position-y: center;
    background-size: cover;
    background-color: #212529;
}*/

.page-header {
    font-size: 1.85rem;
    font-weight: bold;
    /*color: #333333;*/
}

.visibility-visible {
    visibility: visible !important;
}

.cursor-pointer {
    cursor: pointer;
}

.cover {
    object-fit: cover;
}

.app-logo {
    height: 150px;
    max-width: 20rem;
    padding: 10px;
}

.profile-page .tab-content {
    height: 100% !important;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-dark);
}


/*#region Agilx Classes */

.square {
    border-radius: 0px !important;
}

.noshadow {
    box-shadow: none !important;
}

.k-editor {
    border-radius: 5px;
}

    .k-editor .k-toolbar {
        border-radius: 5px 5px 0px 0px;
    }

    .k-editor .k-editor-content {
        border-radius: 0px 0px 5px 5px;
    }
/*Drop shadow on controls within cards*/
.card .form-control, .card .form-select, .card .k-input, .card .k-editor, .card .form-check-input {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px;
}

/*Drop shadow on cards*/
.card {
    /*background-color: #f8f9fa;*/
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/*Spacing between cards*/
.card {
    margin-bottom: 8px;
}

.sc-head-center {
    text-align: center;
}

.line-through {
    text-decoration: line-through
}

.card .card-header h5 {
    margin-bottom: 0px;
    padding-top: 4px;
}

/*#endregion */

/* classes to support Telerik Grid row hovers */

.hover-target {
    visibility: hidden;
}

.row-hover:hover .hover-target {
    visibility: visible;
}

.hover-link:hover {
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

/* end */

.bt-mobile-tabbar a {
    color: white;
    text-decoration: none;
}

.bt-mobile-tabbar .active {
    background-color: #0d6efd;
}

/* Mobile */
@media (max-width: 1399px) {

    .main-content-container {
    }

    .bt-desktop {
        display: none !important;
    }

    .has-mobile-footer-menu .bt-mobile-padding {
        margin-bottom: 77px;
    }

    .has-mobile-footer-menu .defaultgridheight {
        height: calc(100vh - 340px);
        min-height: 400px;
    }

    .has-mobile-footer-menu .documentgridheight {
        height: calc(100vh - 380px);
        min-height: 400px;
    }

    .has-mobile-footer-menu .photogridheight {
        height: calc(100vh - 250px);
        min-height: 400px;
    }

    .bt-mobile .list-group {
        margin: 0;
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        position: relative;
    }

    .bt-mobile .list-group-item {
        border-left: none;
        border-right: none;
        padding: 1rem;
        cursor: pointer;
    }

        .bt-mobile .list-group-item:first-child {
            border-top: none;
        }

        .bt-mobile .list-group-item:last-child {
            border-bottom: none;
        }

        .bt-mobile .list-group-item h6 {
            margin: 0;
            font-size: 1rem;
            font-weight: bold;
        }

        .bt-mobile .list-group-item .d-flex {
            gap: 0.5rem;
        }

        .bt-mobile .list-group-item .hx-icon {
            font-size: 1.25rem;
            color: var(--bs-gray-600);
        }

        .bt-mobile .list-group-item:hover h6 {
        }

        .bt-mobile .list-group-item:hover .hx-icon {
            color: #212529;
        }

    .defaultgridheight {
        height: calc(100vh - 270px);
        min-height: 400px;
    }

    .storyboardgridheight {
        height: calc(100vh - 275px);
        min-height: 400px;
    }

    .photo-gallery-container {
        padding-bottom: 90px; /* Space for sticky button bar */
    }

    /* Mobile selection buttons styling */
    .mobile-selection-buttons {
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-selection-header {
        text-align: center;
        margin-bottom: 12px;
    }

    .mobile-selection-buttons .btn {
        font-weight: 500;
        padding: 12px 8px;
        border-radius: 6px;
    }

        .mobile-selection-buttons .btn .hx-icon {
            margin-right: 6px;
        }

    .photo-viewer-header {
        padding: 1rem;
    }

    .photo-viewer-content {
        padding: 1rem;
    }

    .photo-viewer-note {
        bottom: 1rem;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .photo-viewer-note-content {
        padding: 8px 12px;
        font-size: 13px;
    }

        .photo-viewer-note-content span {
            font-size: 13px;
            line-height: 1.3;
        }
}

/* Desktop */
@media only screen and (min-width: 1400px) {

    .main-content-container {
        height: 100vh
    }

    .bt-mobile {
        display: none !important;
    }

    .defaultgridheight {
        height: calc(100vh - 160px);
        min-height: 400px;
    }

    .storyboardgridheight {
        height: calc(100vh - 165px);
        min-height: 400px;
    }

    .documentgridheight {
        height: calc(100vh - 210px);
        min-height: 400px;
    }

    .photogridheight {
        height: calc(100vh - 120px);
        min-height: 400px;
    }
}


/* Style the breadcrumb container */
div[data-bs-theme="light"] .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 5px;
    padding: 5px 5px 5px 10px;
    background-color: #ffffff; /* White background for container */
    border-radius: 0px;
    border: solid #dee2e6 1px;
}

/* Style each breadcrumb item */
div[data-bs-theme="light"] .breadcrumb-item {
    display: flex;
    align-items: center;
    font-weight: normal; /* Adjusted weight for consistency */
    /*color: #3a4d9d;*/ /* Link color */
    margin-right: 5px;
    font-size: 14px; /* Adjust font size */
}

    /* Style for the active breadcrumb item (last item) */
    div[data-bs-theme="light"] .breadcrumb-item.active {
        /*color: #3a4d9d;*/ /* White text */
        padding: 5px 10px; /* Added padding for the active item */
        border-radius: 4px; /* Rounded corners for active item */
        font-weight: bold; /* Bold text for active item */
    }

    /* Breadcrumb links */
    div[data-bs-theme="light"] .breadcrumb-item a {
        /*color: #3a4d9d;*/
        transition: color 0.3s ease;
    }

        div[data-bs-theme="light"] .breadcrumb-item a:hover {
            /*color: #25357c;*/ /* Darker blue on hover */
        }

    /* Divider between breadcrumb items */
    div[data-bs-theme="light"] .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        /*color: #6c757d;*/
        margin-right: 5px;
        margin-left: 0px;
        font-weight: normal;
    }

/* Style the breadcrumb container */
div[data-bs-theme="dark"] .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 5px;
    padding: 5px 5px 5px 10px;
    background-color: #212529; /* White background for container */
    border-radius: 0px;
    border: solid #474a4e 1px;
}

/* Style each breadcrumb item */
div[data-bs-theme="dark"] .breadcrumb-item {
    display: flex;
    align-items: center;
    font-weight: normal; /* Adjusted weight for consistency */
    /*color: #3a4d9d;*/ /* Link color */
    margin-right: 5px;
    font-size: 14px; /* Adjust font size */
}

    /* Style for the active breadcrumb item (last item) */
    div[data-bs-theme="dark"] .breadcrumb-item.active {
        /*color: #3a4d9d;*/ /* White text */
        padding: 5px 10px; /* Added padding for the active item */
        border-radius: 4px; /* Rounded corners for active item */
        font-weight: bold; /* Bold text for active item */
    }

    /* Breadcrumb links */
    div[data-bs-theme="dark"] .breadcrumb-item a {
        /*color: #3a4d9d;*/
        transition: color 0.3s ease;
    }

        div[data-bs-theme="dark"] .breadcrumb-item a:hover {
            /*color: #25357c;*/ /* Darker blue on hover */
        }

    /* Divider between breadcrumb items */
    div[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        /*color: #6c757d;*/
        margin-right: 5px;
        margin-left: 0px;
        font-weight: normal;
    }

.bottom-row {
    background-color: #f7f7f7;
    border-top: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    bottom: 0;
    width: 100vw;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
}

/*#region Photo Gallery Styles */

.photo-upload-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    /*background: #f8f9fa;*/
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-upload-zone:hover {
        border-color: #6c757d;
        /*background: #e9ecef;*/
    }

    .photo-upload-zone.dragover {
        border-color: #0d6efd;
        /*background: #e7f3ff;*/
    }

.photo-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 5px;
    grid-auto-rows: 400px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    grid-column-end: span 1;
    grid-row-end: span 1;
}

    .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .photo-item:hover img {
        transform: scale(1.05);
    }

    .photo-item.selected {
        border: 3px solid #0d6efd;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
        transform: scale(0.95);
    }

        .photo-item.selected::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(13, 110, 253, 0.15);
            pointer-events: none;
        }

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
}

.photo-item:hover .photo-overlay, .photo-item.selected .photo-overlay {
    opacity: 1;
}

.photo-item.selected .photo-overlay {
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.2));
}

.photo-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.photo-note-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

    .photo-note-icon:hover {
        background: rgba(255, 193, 7, 1);
        transform: scale(1.1);
    }

    .photo-note-icon .hx-icon {
        font-size: 14px;
    }

.photo-checkbox {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .photo-checkbox:hover {
        background: rgba(13, 110, 253, 0.8);
        transform: scale(1.1);
    }

    .photo-checkbox input {
        width: 18px;
        height: 18px;
        border-radius: 3px;
        cursor: pointer;
    }

.photo-item.selected .photo-checkbox {
    background: #0d6efd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .photo-item.selected .photo-checkbox::before {
        content: '✓';
        color: white;
        font-weight: bold;
        font-size: 16px;
        line-height: 1;
    }

    .photo-item.selected .photo-checkbox input {
        display: none;
    }

.photo-note-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), transparent);
    padding: 12px 8px 8px 8px;
    z-index: 1;
}

.photo-note-text {
    color: white;
    font-size: 12px;
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.selection-indicator {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
}

.photo-checkbox:hover .selection-indicator {
    opacity: 1;
}

.photo-item.selection-mode {
    cursor: pointer;
}

    .photo-item.selection-mode .photo-overlay {
        opacity: 1;
    }

.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.photo-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: white;
}

.photo-viewer-counter {
    font-size: 1rem;
    color: #ccc;
}

.photo-viewer-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .photo-viewer-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.photo-viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    min-height: 0;
}

    .photo-viewer-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: opacity 0.3s ease;
    }

.photo-viewer-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2001;
}

    .photo-viewer-nav:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.photo-viewer-prev {
    left: 2rem;
}

.photo-viewer-next {
    right: 2rem;
}

/* Photo viewer note overlay */
.photo-viewer-note {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    z-index: 2002;
}

.photo-viewer-note-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .photo-viewer-note-content span {
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
        display: block;
        max-width: 100%;
    }

@media (max-width: 1399px) {
    .photo-actions {
        gap: 4px;
    }

    .photo-note-icon,
    .photo-checkbox {
        width: 28px;
        height: 28px;
    }

    .photo-note-text {
        font-size: 11px;
        max-height: 30px;
        -webkit-line-clamp: 2;
    }

    .photo-viewer-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .photo-viewer-header {
        padding: 1rem;
    }

    .photo-viewer-content {
        padding: 1rem;
    }
}
/*#endregion */

/*#region Skeleton Loading Styles */

.skeleton-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.skeleton-loader {
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-text,
.skeleton-rectangle,
.skeleton-circle {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-photo-card {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Dark theme skeleton styles */
div[data-bs-theme='dark'] .skeleton-text,
div[data-bs-theme='dark'] .skeleton-rectangle,
div[data-bs-theme='dark'] .skeleton-circle,
div[data-bs-theme='dark'] .skeleton-photo-card {
    background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
    background-size: 200% 100%;
}

div[data-bs-theme='dark'] .skeleton-item {
    background-color: rgba(255, 255, 255, 0.05);
}

/*#endregion */

/*#region Mobile Photo Gallery Styles */

/* Mobile Sticky Button Bar */
.mobile-photo-button-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    padding: 16px;
    z-index: 3;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-button-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

.mobile-photo-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--bs-border-color);
}

    .mobile-photo-btn .hx-icon {
        font-size: 20px;
    }

    .mobile-photo-btn span {
        font-size: 12px;
    }

.mobile-upload-progress {
    width: 100%;
}

    .mobile-upload-progress .d-flex {
        justify-content: center;
        margin-bottom: 8px;
    }

/* Adjust main content to account for sticky button bar */
@media (max-width: 1399px) {
    .photo-gallery-container {
        padding-bottom: 90px; /* Space for sticky button bar */
    }
}

/*#endregion */

/*#region Public Photo Layout Styles */

.public-header {
    min-height: 60px;
}

.public-content {
    min-height: calc(100vh - 60px);
}

.public-photo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.public-photo-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .public-photo-item:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .public-photo-item img {
        border-radius: 8px;
    }

/*#endregion */

/*#region Photo Share Component Styles */

.photo-share-container {
    padding: 0;
}

.share-links-list {
    max-height: 400px;
    overflow-y: auto;
}

.share-link-item {
    transition: all 0.3s ease;
}

    .share-link-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.share-url-container {
    margin-bottom: 8px;
}

    .share-url-container input {
        font-size: 11px !important;
        border: 1px solid var(--bs-border-color);
    }

    .share-url-container .btn {
        border-left: none;
    }

.project-photos-tab .sticky-top {
    z-index: 10;
}

@media (max-width: 991px) {
    .project-photos-tab .col-lg-3 {
        margin-top: 2rem;
    }

    .project-photos-tab .sticky-top {
        position: static !important;
    }
}

/*#endregion */

/*#region Features */

.zoom {
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: 0.5s ease all;
    -webkit-transition: 0.5s ease all;
    -moz-transition: 0.5s ease all;
}

    .zoom:hover {
        -moz-transform: scale(1.04);
        -webkit-transform: scale(1.04);
        transform: scale(1.04);
    }

.feature-description ul {
    list-style: none;
    padding-left: 0;
}

.feature-description li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .feature-description li:before {
        content: "✓";
        color: #28a745;
        font-weight: bold;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

.feature-description p {
    margin-bottom: 0.2rem;
}

.trial-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paid-badge {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-badge {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

div[data-bs-theme=dark] .available-feature-card {
    position: relative;
    border: 1px solid #0000;
    background: linear-gradient(#212529, #212529) padding-box, linear-gradient( var(--angle), black, white ) border-box;
    animation: 8s rotate linear infinite;
}

div[data-bs-theme=light] .available-feature-card {
    position: relative;
    border: 1px solid #0000;
    background: linear-gradient(white, white) padding-box, linear-gradient( var(--angle), white, black ) border-box;
    animation: 8s rotate linear infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/*#endregion */

/*#region Hierarchical Permissions Styles */

/* Permission checkbox styling for hierarchy */
.permission-checkbox:checked + .form-check-label {
    font-weight: 500;
    color: #0d6efd;
}

.permission-checkbox:disabled + .form-check-label {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.permission-checkbox:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Permission hierarchy group container */
.permission-hierarchy-group {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

    .permission-hierarchy-group:hover {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* Permission items base styling */
.permission-item {
    position: relative;
    margin-bottom: 8px;
}

/* Child permission item with connection lines */
.permission-child-item {
    position: relative;
    border-left: 2px solid #e9ecef;
    padding-left: 10px;
    margin-bottom: -2px;
}

/* Visual connection lines for hierarchy */
/*.permission-child-item::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: calc(50% + 10px);*/ /* Align with checkbox center */
/*width: 12px;
    border-bottom: 2px solid #e9ecef;
    border-left: 2px solid #e9ecef;
}*/

/* Hover effects for permission labels */
.permission-checkbox + .form-check-label:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: all 0.2s ease;
}

/* Dark theme support for permission hierarchy */
div[data-bs-theme='dark'] .permission-hierarchy-group {
    background-color: var(--bs-dark);
    border-color: #495057;
}

div[data-bs-theme='dark'] .permission-child-item {
    border-left-color: #495057;
}

    div[data-bs-theme='dark'] .permission-child-item::before {
        border-color: #495057;
    }

div[data-bs-theme='dark'] .permission-checkbox + .form-check-label:hover {
    background-color: #343a40;
}

div[data-bs-theme='dark'] .permission-checkbox:checked + .form-check-label {
    color: #6ea8fe;
}

div[data-bs-theme='dark'] .permission-checkbox:disabled + .form-check-label {
    color: #6c757d;
    opacity: 0.5;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .permission-hierarchy-group {
        padding: 8px;
        margin-bottom: 6px;
    }

    /* Reduce indentation on mobile for better space usage */
    .permission-child-item {
        margin-left: 10px !important;
    }

        .permission-child-item::before {
            width: 8px;
        }
}

/*#endregion */

/* Custom border-left classes for dashboard cards */
.border-left-primary {
    border-left: 0.25rem solid var(--bs-primary) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--bs-success) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--bs-warning) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--bs-danger) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--bs-info) !important;
}

.border-left-secondary {
    border-left: 0.25rem solid var(--bs-secondary) !important;
}

/*#region Google */

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

    .gsi-material-button .gsi-material-button-icon {
        height: 20px;
        margin-right: 12px;
        min-width: 20px;
        width: 20px;
    }

    .gsi-material-button .gsi-material-button-content-wrapper {
        -webkit-align-items: center;
        align-items: center;
        display: flex;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        height: 100%;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .gsi-material-button .gsi-material-button-contents {
        -webkit-flex-grow: 1;
        flex-grow: 1;
        font-family: 'Roboto', arial, sans-serif;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
    }

    .gsi-material-button .gsi-material-button-state {
        -webkit-transition: opacity .218s;
        transition: opacity .218s;
        bottom: 0;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
    }

    .gsi-material-button:disabled {
        cursor: default;
        background-color: #ffffff61;
        border-color: #1f1f1f1f;
    }

        .gsi-material-button:disabled .gsi-material-button-contents {
            opacity: 38%;
        }

        .gsi-material-button:disabled .gsi-material-button-icon {
            opacity: 38%;
        }

    .gsi-material-button:not(:disabled):active .gsi-material-button-state,
    .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
        background-color: #303030;
        opacity: 12%;
    }

    .gsi-material-button:not(:disabled):hover {
        -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    }

        .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
            background-color: #303030;
            opacity: 8%;
        }

/*#endregion */
