html,
body {
    height: 100%;
}

::selection {
    background: var(--emphasis-red); /* highlight color */
    color: white; /* text color while selected */
}

.min-width-0 {
    min-width: 0 !important;
}

.bi {
    display: inline-block;
    width: 1rem;
    height: 1rem;
}

/*
 * Sidebar
 */

@media (max-width: 767.98px) {
    .sidebar {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        padding: 0 !important;
    }
}

@media (min-width: 768px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .sidebar .offcanvas-lg {
        position: -webkit-sticky;
        position: sticky;
        top: 48px;
    }

    .navbar-search {
        display: block;
    }
}

.sidebar .nav-link {
    font-size: .875rem;
    font-weight: 500;
}


.sidebar-heading {
    font-size: .75rem;
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
    padding: .75rem 1rem;
}


.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.index-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.table td, .table th {
    /*text-align: center;*/
    vertical-align: middle;
}

.dt-scroll-body {
    min-height: 200px;
}

.form-max-width {
    max-width: 330px;
}

@media (max-width: 768px) {
    /*.dt-layout-table {*/
    /*    height: calc(100vh - 305px);*/
    /*}*/
    .dt-scroll-body {
        max-height: calc(100vh - 350px);
    }
}


@media (min-width: 768px) {
    /*.dt-layout-table {*/
    /*    height: calc(100vh - 230px);*/
    /*}*/
    .dt-scroll-body {
        max-height: calc(100vh - 280px);
    }
}


/*.dataTable {*/
/*    !*height: 100%;*!*/
/*    overflow-y: auto;*/

/*}*/


.is-hidden {
    display: none !important;
}


.card-title {
    margin-bottom: 0;
}

.sidebar-line {
    width: 3px;
}

.invalid-feedback {
    display: block;
}


.back-arrow {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: black;
}

.back-arrow {
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-arrow i {
    color: var(--bs-body-color);
}

.back-arrow:hover {
    transform: scale(1.3);
    color: var(--bs-link-hover-color);
}

.back-arrow:hover i {
    color: var(--bs-link-hover-color);
}

p {
    margin-bottom: 0.5rem;
}

.priceListLabel {
    width: 229px;
}

.priceListValue {
    width: 130px;
}

.quill-content {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.custom-input input {
    border: none;
    border-bottom: 2px dashed #ccc;
    padding: 5px 0;
    width: 100%;
}

.custom-input strong {
    font-weight: bold;
}

.input-strong input {
    font-weight: bold;
}

.order-component-summary {
    /*min-width: 1100px;*/

}

.order-component-summary-wrapper {
    position: relative;
}

.scroll-prompt {
    display: none;
}

@media (max-width: 941px) {
    .scroll-prompt {
        display: block;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        font-size: 14px;
        color: #888;
        pointer-events: none;
        animation: fade-in-out 2s infinite;
    }

    @keyframes fade-in-out {
        0%, 100% {
            opacity: 0.5;
        }
        50% {
            opacity: 1;
        }
    }

}

.euro-input::after {
    content: "€";
    position: absolute;
    right: 10px;
}

.video-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    z-index: 2;
}

/* Primary CTA button — Awerka brand orange with black text for WCAG contrast */
.btn-awerka {
    background-color: #FE7F2D;
    border-color: #FE7F2D;
    color: #000;
}

.btn-awerka:hover,
.btn-awerka:focus,
.btn-awerka:active {
    background-color: #e56a1a;
    border-color: #e56a1a;
    color: #000;
}

.bg-awerka {
    background-color: #FE7F2D !important;
}

.text-awerka {
    color: #FE7F2D !important;
}

.border-awerka {
    border: 2px solid #FE7F2D !important;
}

.hand-underline {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.hand-underline::after {
    content: '';
    position: absolute;
    left: -3%;
    bottom: 0.05em;
    width: 110%;
    height: 0.18em;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 7 C40 6, 70 5, 120 4 S170 3, 197 3' stroke='%23FE7F2D' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    transform: rotate(-2deg);
}

.user-profile-link-container {
    /*background-color: var(--bs-gray-900);*/
    text-overflow: clip;
    /*overflow: hidden;*/
}

.shadowed-sidebar {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%, transparent 100%);
    /*box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);*/
    /*height: 100vh;*/
    /*padding: 1rem;*/
    /*width: 250px;*/
    color: white;
}

.shadowed-sidebar a {
    color: white;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.shadowed-sidebar a:hover {
    color: var(--sidebar-hover-color) !important;
    text-shadow: 0 0 8px rgba(128, 143, 135, 0.52);
}

.shadowed-sidebar a:active {
    color: var(--battleship-grey) !important;
    text-shadow: 0 0 20px var(--battleship-grey), 0 0 40px var(--battleship-grey);
    transition: text-shadow 0.1s ease-out;
}

.shadowed-sidebar a.active {
    color: var(--emphasis-red) !important;
}

.sidebar li a:active {
    color: var(--battleship-grey) !important;
}


.card img {
    /*width: 100%;*/
    height: auto;
    display: block;
}

.image-wrapper {
    position: relative;
    /*width: 100px; !* Adjust size as needed *!*/
    /*height: 100px; !* Keep it square *!*/
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px; /* Rounded corners */
    border: 3px solid rgba(0, 0, 0, 0.1); /* Subtle border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Modern shadow */
    background-color: white; /* Optional background */
}

/*.image-wrapper img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover; !* Ensures the image fills the wrapper nicely *!*/
/*    border-radius: 10px; !* Ensures the image follows the wrapper's rounded corners *!*/
/*}*/


.category-hover {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

.image-wrapper:hover .category-hover {
    opacity: 1;
}

.btn-toggle-nav {
    padding-left: 0;
    margin-left: 2rem;
    list-style: none;
}

.btn-toggle-nav li {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--bs-border-color);
}

/* Horizontal branch */
.btn-toggle-nav li::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0.65em;
    width: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

/* Last item corner */
.btn-toggle-nav li:last-child {
    border-left-color: transparent;
}

.btn-toggle-nav li:last-child::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    height: 0.65em;
    border-left: 1px solid var(--bs-border-color);
}

.sidebar-line {
    position: relative;
    width: 4px; /* Adjust width */
    height: 100%;
    background: linear-gradient(transparent, var(--battleship-grey) 30%, var(--battleship-grey) 70%, transparent);
    overflow: hidden;
}

.sidebar-line::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 8px;
    height: 100%;
    background: linear-gradient(45deg, yellow, transparent, yellow);
    filter: drop-shadow(0 0 8px yellow);
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.sidebar-line:hover::before,
.sidebar-line:active::before {
    animation: lightning 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes lightning {
    0% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
}

.status-created {
    background-color: var(--status-created-bg);
    color: var(--status-created-color);
}

.status-planning {
    background-color: var(--status-planning-bg);
    color: var(--status-planning-color);
}

.status-in-progress {
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-color);
}

.status-critical {
    background-color: var(--status-critical-bg);
    color: var(--status-critical-color);
}

.status-done {
    background-color: var(--status-done-bg);
    color: var(--status-done-color);
}

/* Reuse base .status-badge styles from Task */
.status-placed {
    background-color: var(--status-planning-bg);
    color: var(--status-planning-color);
}

.status-partially-delivered {
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-color);
}

.status-fully-delivered {
    background-color: var(--status-done-bg);
    color: var(--status-done-color);
}

.status-fully-delivered-to-customer {
    background-color: var(--status-critical-bg);
    color: var(--status-critical-color);
}

.project-status-badge {
    display: inline-block;
    max-width: 100%; /* don’t overflow the container */
    white-space: normal; /* allow wrapping */
    word-break: break-word; /* break very long words */
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
}


.status-badge-fixed-width {
    min-width: 150px;
    max-width: 150px;
}

.project-status-default {
    background-color: var(--bs-gray);
    color: var(--status-planning-color);
}

.project-status-archived {
    background-color: var(--bs-gray);
    color: white;
}

.project-status-new {
    background-color: var(--status-created-bg);
    color: var(--status-created-color);
}

.project-status-in-progress {
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-color);
}

.project-status-done {
    background-color: var(--status-done-bg);
    color: var(--status-done-color);
}


.small-scrollable-card-body {
    max-height: 50vh;
    overflow: scroll;
}

.delete-column {
    opacity: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-width 0.3s ease, padding 0.3s ease;
}

.delete-column.show {
    opacity: 1;
    max-width: 100px;
    padding: 0.5rem;
}

.heading-text {

    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

/* Old card-header blue style removed - now using gradient in card section */

/* Task widget */
.task-checkbox {
    cursor: pointer;
    color: var(--bs-secondary);
    transition: color 0.15s ease-in-out;
}
.task-checkbox:hover .checkbox-empty {
    display: none !important;
}
.task-checkbox:hover .checkbox-hover {
    display: inline-block !important;
}
.task-completed {
    opacity: 0.5;
    transition: opacity 0.3s ease, max-height 0.4s ease 0.8s, margin 0.4s ease 0.8s, padding 0.4s ease 0.8s;
    max-height: 200px;
    overflow: hidden;
}
.task-completed a {
    text-decoration: line-through;
}
.task-completed.task-slide-out {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.confirm-actions {
    display: flex;
    gap: 5px;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 99;
}
#task-sortable-list .task-drag-handle:hover {
    color: var(--bs-primary) !important;
}
#task-sortable-list .task-drag-handle:active {
    cursor: grabbing !important;
}
#task-sortable-list .sortable-ghost {
    opacity: 0.4;
}

/* Clean DataTable header styling */
table.dataTable thead th {
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid var(--bs-border-color) !important;
    background: transparent !important;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* Subtle sorting indicator */
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order,
table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order,
table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order {
    opacity: 0.5;
}

table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order,
table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order {
    opacity: 1;
}

table.dataTable tr {
    cursor: pointer;
}

tr.filters th {
    background-color: #f8f9fa;
    padding: 0.25rem 0.375rem;
}

tr.filters .select2-container {
    font-size: 0.8125rem;
}

tr.filters .select2-container--default .select2-selection--multiple {
    min-height: 28px;
    padding: 1px 4px;
}

tr.filters .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 0.75rem;
    padding: 1px 6px;
    margin: 1px 2px;
}

tr.filters .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 4px;
}

/* Fix Select2 background in filter rows */
tr.filters .select2-selection {
    background-color: #f8f9fa !important;
    border-color: #dee2e6;
}

/* Dark mode filter bar styles */
[data-bs-theme=dark] tr.filters th {
    background-color: var(--bs-tertiary-bg);
}

[data-bs-theme=dark] tr.filters .select2-selection {
    background-color: var(--bs-tertiary-bg) !important;
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme=dark] tr.filters .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

/* Column header filter dropdown */
.dt-scroll-head {
    overflow: hidden !important;
}

.dt-header-filter {
    vertical-align: baseline;
}

.dt-header-filter-btn {
    line-height: 1;
    vertical-align: baseline;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.dt-header-filter-btn:hover,
.dt-header-filter-btn.text-primary {
    opacity: 1;
}

.dt-header-filter-menu {
    min-width: 200px;
    max-width: 280px;
    font-size: 0.8125rem;
    z-index: 1050;
    position: fixed !important;
}

.dt-header-filter-list {
    max-height: 220px;
    overflow-y: auto;
}

.dt-header-filter-list .form-check {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.dt-header-filter-list .form-check-input {
    margin-top: 0.2em;
}

#userList .list-group-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    right: auto;
    margin-top: -0.1rem;
    display: none;
}

.dropdown-submenu .dropdown-menu.show {
    display: block;
}

.dropdown-submenu.open-left .dropdown-menu {
    left: auto;
    right: 100%;
}


.checkbox-container {
    height: 58px;
}

.project-filter-dropdown-menu-width {
    min-width: 380px;
}

@media (min-width: 576px) {
    .project-filter-dropdown-menu-width {
        min-width: 500px;
    }
}

@media (min-width: 700px) {
    .project-filter-dropdown-menu-width {
        min-width: 600px;
    }
}

@media (min-width: 1200px) {
    .project-filter-dropdown-menu-width {
        min-width: 900px;
    }
}

dd {
    min-height: 24px;
}

.padded_main {
    padding-top: 82px;
}

.index-logo {
    height: 50px;
    width: 55px;
}


.machine {
    width: 40vmin;
    fill: #198754;
}

.machine-small-shadow, .machine-medium-shadow, .machine-large-shadow {
    fill: rgba(0, 0, 0, 0.05);
}

.machine-small {
    -webkit-animation: counter-rotation 5s infinite linear;
    -moz-animation: counter-rotation 5s infinite linear;
    -o-animation: counter-rotation 5s infinite linear;
    animation: counter-rotation 5s infinite linear;
    -webkit-transform-origin: 100.136px 225.345px;
    -ms-transform-origin: 100.136px 225.345px;
    transform-origin: 100.136px 225.345px;
}

.machine-small-shadow {
    -webkit-animation: counter-rotation 5s infinite linear;
    -moz-animation: counter-rotation 5s infinite linear;
    -o-animation: counter-rotation 5s infinite linear;
    animation: counter-rotation 5s infinite linear;
    -webkit-transform-origin: 110.136px 235.345px;
    -ms-transform-origin: 110.136px 235.345px;
    transform-origin: 110.136px 235.345px;
}

.machine-medium {
    -webkit-animation: rotation 7.5s infinite linear;
    -moz-animation: rotation 7.5s infinite linear;
    -o-animation: rotation 7.5s infinite linear;
    animation: rotation 7.5s infinite linear;
    -webkit-transform-origin: 254.675px 379.447px;
    -ms-transform-origin: 254.675px 379.447px;
    transform-origin: 254.675px 379.447px;
}

.machine-medium-shadow {
    -webkit-animation: rotation 7.5s infinite linear;
    -moz-animation: rotation 7.5s infinite linear;
    -o-animation: rotation 7.5s infinite linear;
    animation: rotation 7.5s infinite linear;
    -webkit-transform-origin: 264.675px 389.447px;
    -ms-transform-origin: 264.675px 389.447px;
    transform-origin: 264.675px 389.447px;
}

.machine-large {
    -webkit-animation: counter-rotation 10s infinite linear;
    -moz-animation: counter-rotation 10s infinite linear;
    -o-animation: counter-rotation 10s infinite linear;
    animation: counter-rotation 10s infinite linear;
    -webkit-transform-origin: 461.37px 173.694px;
    -ms-transform-origin: 461.37px 173.694px;
    transform-origin: 461.37px 173.694px;
}

.machine-large-shadow {
    -webkit-animation: counter-rotation 10s infinite linear;
    -moz-animation: counter-rotation 10s infinite linear;
    -o-animation: counter-rotation 10s infinite linear;
    animation: counter-rotation 10s infinite linear;
    -webkit-transform-origin: 471.37px 183.694px;
    -ms-transform-origin: 471.37px 183.694px;
    transform-origin: 471.37px 183.694px;
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(359deg);
    }
}

@-moz-keyframes rotation {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(359deg);
    }
}

@-o-keyframes rotation {
    from {
        -o-transform: rotate(0deg);
    }
    to {
        -o-transform: rotate(359deg);
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

@-webkit-keyframes counter-rotation {
    from {
        -webkit-transform: rotate(359deg);
    }
    to {
        -webkit-transform: rotate(0deg);
    }
}

@-moz-keyframes counter-rotation {
    from {
        -moz-transform: rotate(359deg);
    }
    to {
        -moz-transform: rotate(0deg);
    }
}

@-o-keyframes counter-rotation {
    from {
        -o-transform: rotate(359deg);
    }
    to {
        -o-transform: rotate(0deg);
    }
}

@keyframes counter-rotation {
    from {
        transform: rotate(359deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.card-pricing {
    border: none;
    border-radius: 1.5rem;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-pricing:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/*.card-pricing .card-header {*/
/*    border-bottom: none;*/
/*    background: transparent;*/
/*}*/

.card-pricing .card-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.card-pricing ul li {
    padding: 0.25rem 0;
    font-size: 1rem;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* FullCalendar base styles - see full_calendar_custom.css for theming */
.fc-scroller-harness, .fc-scroller, .fc-timeline-body {
    background-color: var(--bs-body-bg);
}

/* Set first column width */
.fc-datagrid-header col:first-child,
.fc-datagrid-body col:first-child {
    width: 150px;
}

/* Zebra striping for even rows */
.fc-datagrid-body tbody tr:nth-child(even),
.fc-timeline-body tbody tr:nth-child(even) {
    background-color: var(--bs-tertiary-bg);
}

.text-red {
    color: var(--emphasis-red);
}

.go-team-logo {
    font-weight: 400;
    font-size: 26px;
    color: var(--emphasis-red);
    letter-spacing: 1.0px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    /*max-height: 70px;*/
    /*max-width: 175px;*/
    height: 50px;
    width: 150px;
    object-fit: cover;
    border-radius: 6px;
    z-index: 0;
}

.img-list-thumbnail {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.img-detail-thumbnail {
    margin-left: auto;
    margin-right: auto;
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ai-textarea {
    height: 174px;
    min-height: 174px;
    resize: vertical;
}

.ql-toolbar {
    background-color: var(--bs-tertiary-bg);
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
}

.ql-container {
    min-height: 130px;
    background-color: var(--bs-body-bg);
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

.pdf-iframe {
    width: 100%;
    height: 1500px;
}

/* ============ PDF edit split-view shell (0343) ============
   Sidebar with form on the left, live iframe preview on the right.
   Sized to the viewport so the iframe stays visible while the form
   scrolls. Collapses to a stacked layout on narrow screens. */
.pdf-edit-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}
.pdf-edit-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem 1rem;
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pdf-edit-shell__split {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
    padding: 0;
}
/* Inline form column on ≥lg; on smaller screens Bootstrap's offcanvas-lg
   class hides this element and turns it into a slide-in drawer. */
@media (min-width: 992px) {
    .pdf-edit-shell__form {
        flex: 0 0 380px;
        max-width: 380px;
        overflow-y: auto;
        padding: 1.25rem 1rem;
        background: var(--bs-body-bg, #fff);
        border: 0;
        border-right: 1px solid var(--bs-border-color);
        border-radius: 0;
        align-self: stretch;
    }
    .pdf-edit-shell__form .offcanvas-body {
        padding: 0;
    }
}
/* The preview is the "workspace" — a darker grey desk with the document
   floating on it. Borderless so the eye lands on the white sheet. */
.pdf-edit-shell__preview {
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #e2e6ea;
    background-image: linear-gradient(180deg, #e9ecef 0%, #dde2e7 100%);
}
.pdf-edit-shell__preview iframe {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    border: 0;
    display: block;
}

/* Final-PDF inline viewer — lives in the same column as the editor
   iframe, swapped via the Editor/Final toggle. Pdf.js renders each page
   into a stack of canvases; we mimic the iframe size so the layout
   doesn't jump. */
.pdf-edit-shell__final {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80vh;
    overflow-y: auto;
    background: transparent;
    padding: 24px;
}
.pdf-edit-shell__final #pdf-final-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.pdf-final-canvas {
    background: white;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 24px rgba(15, 23, 42, .08),
        0 24px 56px -12px rgba(15, 23, 42, .12);
}
@media (max-width: 991px) {
    .pdf-edit-shell__final {
        min-height: 70vh;
    }
}
@media (max-width: 991px) {
    .pdf-edit-shell__preview iframe {
        min-height: 70vh;
    }
}

.drag-handle {
    font-size: 1.2rem;
    color: #6c757d;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.alert-error {
    background-color: var(--alert-red) !important;
    border-color: var(--alert-red) !important;
    color: #fff !important;
}

.btn-red {
    --bs-btn-color: #000;
    --bs-btn-bg: var(--emphasis-red);
    --bs-btn-border-color: var(--emphasis-red);
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: var(--emphasis-red-light);
    --bs-btn-hover-border-color: var(--emphasis-red-light);
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: var(--emphasis-red-light);
    --bs-btn-active-border-color: var(--emphasis-red-light);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: var(--emphasis-red);
    --bs-btn-disabled-border-color: var(--emphasis-red);
}


.feature-card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    color: var(--primary-blue);
    transition: color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: var(--emphasis-red);
    transform: scale(1.2);
}

.feature-card h5,
.feature-card p {
    transition: color 0.3s ease;
}

.feature-card:hover h5 {
    color: var(--emphasis-red);
}

/* Sidebar icon badges */
.icon-badge {
    --badge-size: 28px;
    --badge-radius: 10px;
    --badge-bg: var(--bs-secondary);
    --badge-fg: currentColor;
    --badge-bg-hover: var(--bs-secondary);
    --badge-bg-active: var(--emphasis-red);
    --badge-fg-active: var(--emphasis-red);

    width: var(--badge-size);
    height: var(--badge-size);
    border-radius: var(--badge-radius);
    display: grid;
    place-items: center;
    flex: 0 0 var(--badge-size);
    background: var(--badge-bg);
    color: var(--badge-fg);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-pills .nav-link:hover .icon-badge {
    color: var(--emphasis-red);
}


.icon-badge i {
    font-size: 0.95rem;
    line-height: 1;
}

/* Dark mode tweak (Bootstrap 5.3 data-bs-theme) */
[data-bs-theme="dark"] .icon-badge {
    --badge-bg: color-mix(in srgb, var(--bs-body-color) 18%, transparent);
    --badge-bg-hover: color-mix(in srgb, var(--bs-primary) 28%, transparent);
}

/* Optional sizes */
.icon-badge-sm {
    /*--badge-size: 24px;*/
}

.icon-badge-lg {
    --badge-size: 32px;
}

.icon-badge-red {
    --badge-bg: var(--emphasis-red)
}

.icon-badge-primary {
    --badge-bg: var(--bs-primary);
}

.icon-badge-light-green {
    --badge-bg: var(--nice-green);
}

.icon-badge-danger {
    --badge-bg: var(--bs-danger);
}

.icon-badge-black {
    --badge-bg: var(--bs-black);
}

/* Dark mode: Keep colored badges with their colors */
[data-bs-theme="dark"] .icon-badge-red {
    --badge-bg: var(--emphasis-red);
}

[data-bs-theme="dark"] .icon-badge-primary {
    --badge-bg: var(--bs-primary);
}

[data-bs-theme="dark"] .icon-badge-light-green {
    --badge-bg: var(--nice-green);
}

[data-bs-theme="dark"] .icon-badge-danger {
    --badge-bg: var(--bs-danger);
}

[data-bs-theme="dark"] .icon-badge-black {
    --badge-bg: color-mix(in srgb, var(--bs-body-color) 30%, transparent);
}

.uppy-Dashboard-inner {
    width: 100% !important;
}

.looks-disabled {
    background-color: var(--bs-tertiary-bg);
}

/* Always keep floating labels in the floated position */
.form-floating > label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control,
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Keep the same styling when focused */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* ==========================================================================
   Required Field Indicators
   ========================================================================== */

/* Orange asterisk for required fields */
.required-indicator {
    color: var(--emphasis-orange, #FE7F2D);
    font-weight: 600;
    margin-left: 2px;
}

/* Hide submenu arrows in DataTables dropdowns */
div.dt-button-collection .dropdown-toggle::after,
.dt-button-collection .dt-button.dropdown-toggle::after,
.dt-button-collection a.dropdown-toggle::after {
    display: none !important;
}

/* Help icon (question mark) — reusable across headings and card headers */
.help-icon {
    font-size: 0.7em;
    opacity: 0.6;
    transition: opacity 0.2s;
    vertical-align: middle;
    color: var(--bs-body-tertiary-color, var(--bs-tertiary-color));
    text-decoration: none;
}

.help-icon:hover {
    opacity: 1;
}

/* Hide DataTables toolbar buttons (export, settings) on mobile */
@media (max-width: 767.98px) {
    .dt-container > .row:has(.dt-buttons) {
        display: none !important;
    }
}

/* ==========================================================================
   Nav Tabs Styling
   ========================================================================== */

.nav-tabs .nav-link {
    color: var(--bs-body-color);
}

.nav-tabs .nav-link:hover {
    color: var(--bs-primary);
}

.nav-tabs .nav-link.active {
    /*color: var(--bs-primary);*/
    font-weight: 600;
}

/* ==========================================================================
   Subtle Button Variants
   ========================================================================== */

.btn-subtle-primary {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.btn-subtle-success {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-success:hover {
    background-color: var(--bs-success);
    color: #fff;
}

.btn-subtle-info {
    background-color: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-info:hover {
    background-color: var(--bs-info);
    color: #fff;
}

.btn-subtle-warning {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-warning:hover {
    background-color: var(--bs-warning);
    color: #000;
}

.btn-subtle-danger {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-danger:hover {
    background-color: var(--bs-danger);
    color: #fff;
}

.btn-subtle-secondary {
    background-color: var(--bs-secondary-bg-subtle);
    color: var(--bs-secondary-text-emphasis);
    border: 1px solid transparent;
}

.btn-subtle-secondary:hover {
    background-color: var(--bs-secondary);
    color: #fff;
}

/* ==========================================================================
   Modern Card Styling (Glassmorphism)
   ========================================================================== */

.card {
    --card-bg: rgba(var(--bs-body-bg-rgb), 0.95);
    --card-border: rgba(var(--bs-emphasis-color-rgb), 0.08);
    --card-glow: rgba(var(--bs-primary-rgb), 0.15);

    /*border: 0 solid var(--card-border);*/
    /*border-radius: 16px;*/
    background: var(--card-bg);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /*overflow: hidden;  !* Clip content to rounded corners *!*/
}

/*.card:hover {*/
/*    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.12),*/
/*    0 0 0 1px var(--card-border);*/
/*    transform: translateY(-1px);*/
/*}*/

.card:focus-within {
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.12),
    0 0 0 2px var(--card-glow),
    0 0 24px -4px var(--card-glow);
}
.card:focus {
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.12),
    0 0 0 2px var(--card-glow),
    0 0 24px -4px var(--card-glow);
}
.card-header {
    --bs-card-cap-bg: transparent;  /* Override Bootstrap default */
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.card-header .card-title,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: inherit;
    text-transform: inherit;
    margin: 0;
}

/* Only apply gradient bg if no explicit bg class is set */
.card-header:not([class*="bg-"]) {
    /* Use same color at 0 opacity instead of 'transparent' to avoid color interpolation artifacts */
    background: linear-gradient(to bottom, rgba(var(--primary-blue-rgb), 0.15), rgba(var(--primary-blue-rgb), 0));
    color: var(--bs-body-color);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--card-border);
    padding: 0.875rem 1.25rem;
}

/* List group inside cards - transparent background */
.card .list-group,
.card .list-group-item {
    --bs-list-group-bg: transparent;
    background: transparent;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .card {
    --card-bg: rgba(var(--bs-body-bg-rgb), 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(var(--bs-primary-rgb), 0.25);
}

.badge-card-header {
    font-size: 0.75rem !important;
}

/* Dashboard KPI values - responsive typography */
.kpi-value {
    font-size: 1.25rem;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .kpi-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .kpi-value {
        font-size: 1.4rem;
    }
}

/* Meter Filter Styling */
.meter-inactive {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.meter-inactive:hover {
    opacity: 0.85;
}

/* Button group styling for meter filter */
#meter-filter-toggle .btn {
    transition: all 0.2s ease;
}

#meter-filter-toggle .btn.active {
    font-weight: 500;
}

/* ==========================================================================
   Icon Picker Widget
   ========================================================================== */

/* Icon Picker Trigger Button */
.icon-picker-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-align: left;
}

.icon-picker-trigger:hover {
    border-color: var(--bs-primary);
}

.icon-picker-trigger:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    outline: none;
}

.icon-picker-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bs-body-secondary-bg);
    border-radius: 0.375rem;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    flex-shrink: 0;
}

.icon-picker-label {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.icon-picker-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--bs-body-color);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.icon-picker-arrow {
    flex-shrink: 0;
}

/* Icon Grid (Modal) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.375rem;
}

.icon-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    transition: all 0.15s ease-in-out;
}

.icon-grid-item:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.icon-grid-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.icon-grid-item.selected {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.icon-grid-label {
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.7;
}

.icon-grid-item:hover .icon-grid-label,
.icon-grid-item.selected .icon-grid-label {
    opacity: 1;
}

.icon-category {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-top: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.icon-category:first-child {
    margin-top: 0;
}

/* Sidebar running entries */
#sidebar-running-entries {
    max-height: 160px;
    overflow-y: auto;
}

.sidebar-running-entry {
    transition: background-color 0.15s ease;
}

.sidebar-running-entry:hover {
    background: rgba(var(--bs-emphasis-color-rgb), 0.05);
}

.sidebar-running-stop {
    padding: 0.25rem;
    margin: -0.25rem;
}

.sidebar-running-timer {
    color: rgba(255, 255, 255, 0.6);
}

/* Detail image: glassmorphism overlay on hover */
.card-title-badges:not(:has(*)) {
    display: none !important;
}

.detail-image-container:hover .detail-image-overlay {
    opacity: 1 !important;
}

/* Time card on project detail: cap the height of long lists so the card
   doesn't dominate the column. Scroll vertically when content exceeds. */
.time-card-tasks-scroll {
    max-height: 18rem;
    overflow-y: auto;
}
.time-card-employees-scroll {
    max-height: 16rem;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

/* Stacked avatar group — overlapping circles via row-reverse */
.avatar-stack {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.avatar-stack > * {
    margin-right: -8px;
}

/* Round icon-only buttons (e.g. plus buttons in card headers) */
.btn-icon {
    border-radius: 50% !important;
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-sm.btn-icon {
    width: 1.625rem;
    height: 1.625rem;
}
