﻿/* ============ Increase the default font-size =================== */
body {
    font-size: 0.9em;
}

.dropdown-menu {
    font-size: 1em;
}

.form-control {
    font-size: 1em !important;
}

#navbar_prisma nav span, #navbar_prisma nav span:hover {
    font-size: .9rem;
}

.accordion-button {
    font-size: .9rem;
}

/* ============ Team Selector =================== */
#navbar_prisma nav #teamSelector span, #navbar_prisma nav #teamSelector span:hover {
    color: #222;
}

#navbar_prisma nav #teamSelector span.k-list-item-text {
    font-size: .9em !important;
}

#navbar_prisma nav #teamSelector li.k-selected span.k-list-item-text {
    color: #fff !important;
}

#teamSelector span.k-input-inner {
    font-size: 1.2em !important;
}

@media (max-width: 560px) {
    #teamDropdownPanel {
        left: 0 !important;
    }
}

@media (max-width: 1500px) {
    #teamSelectorLabel {
        display: none !important;
    }
}

/* ============ Company Selector =================== */
#navbar_prisma nav #companySelector span, #navbar_prisma nav #companySelector span:hover {
    color: #222;
}

#navbar_prisma nav #companySelector span.k-list-item-text {
    font-size: .9em !important;
}

#navbar_prisma nav #companySelector li.k-selected span.k-list-item-text {
    color: #fff !important;
}

#companySelector span.k-input-inner {
    font-size: 1.015625rem !important;
}

@media (max-width: 560px) {
    #companyDropdownPanel {
        left: 0 !important;
    }
}

/* ============ HomePage =================== */
.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Adjust the opacity to control darkness */
    z-index: 1;
}

.carousel-image {
    height: 490px; /* Adjust as needed */
    object-fit: cover; /* Ensures the image fills the space without distortion */
}

.carousel-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 200px; /* Default logo size */
    width: auto;
    border-radius: 12px;
    z-index: 2; /* Ensure it's above the overlay */
    background: rgb(255, 255, 255, 0.9); /* Adjust the opacity to control darkness */
}

/* Media Queries for Responsive Scaling */
@media (max-width: 768px) {
    .carousel-logo {
        height: 100px;
        border-radius: 8px;
    }
}

.carousel-caption {
    position: absolute;
    z-index: 2; /* Ensure it's above the overlay */
}



/* ============ Cards =================== */

.clickable-card {
    transition: transform 0.2s ease-in-out;
}

    .clickable-card:hover {
        transform: scale(1.05);
    }

#translationPlaceHolder .card-body {
    overflow: scroll;
    height: 20em;
}

/* ============ User Photo Thumbnail =================== */

.user-photo {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: 30px 40px;
    background-position: center center;
    vertical-align: middle;
    line-height: 32px;
    margin-left: 5px;
}

/* ============ Misc =================== */
.grabbable {
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.grabbable:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.hover-to-primary {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.hover-to-primary:hover {
    color: var(--bs-primary);
}

.flex-grow-1 {
    flex: 1 1 auto;
}

.badge-bg {
    background-color: var(--bs-primary) !important;
}

.clickableRowGrid .k-master-row {
    cursor: pointer;
}

/* ============ QEKaizen Dashboard and Form =================== */

@media (min-width: 1600px) {
    .container-xxxl {
        max-width: 1520px; /* usually 80px less than the breakpoint */
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--bs-gutter-x, 0.75rem);
        padding-right: var(--bs-gutter-x, 0.75rem);
    }
}

.kaizen-stripe {
    width: 10px;
}

.status-indicator-circle {
    width: 30px;
    height: 30px;
    background-color: white;
    z-index: 10;
}

.status-indicator-text {
    z-index: 10;
}

.status-indicator {
    top: 45px;
    z-index: 1;
}

.status-indicator-mobile {
    top: 87px;
    z-index: 1;
}

.status-indicator-form {
    top: 30px;
    z-index: 1;
}

.status-indicator-mobile-form {
    top: 45px;
    z-index: 1;
}

.status-indicator hr,
.status-indicator-mobile hr,
.status-indicator-mobile-form hr,
.status-indicator-form hr {
    display: block;
    opacity: 1;
}

.status-container{
    z-index:1;
    min-width:18em;
}

@media (min-width: 576px) {
    .status-container.active {
        min-width: 22em;
    }
}


@media (min-width: 768px) {
    .status-container.active {
        min-width: 24em;
    }
}


@media (min-width: 992px) {
    .status-container.active {
        min-width: 26em;
    }
}

@media (min-width: 1200px) {
    .status-container.active {
        min-width: 28em;
    }
}


@media (min-width: 1400px) {
    .status-container.active {
        min-width: 30em;
    }
}

@media (min-width: 1600px) {
    .status-container.active {
        min-width: 36em;
    }
}

.kaizen-card-container {
    min-width: 8em;
    min-height: 44rem;
    font-size: 1rem;
}

.kaizen-row {
    align-items: stretch;
}


.kaizen-card-container.active {
    top: -5.37rem;
    padding-top: 5.37rem;
    background-color: #ddd;
}

.kaizen-card {
    transition: transform 0.2s ease-in-out;
    transform: translateX(-1.5em);
    margin-right: -1.5em;
    background-color: #fff;
    border-top: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
}

.kaizen-card:hover {
    transform: translateX(-2.0em);
    margin-right: -2em;
}

.image-container {
    width: 8rem;
    /* 4:3 aspect ratio */
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid #bbb;
}

.image-container-form {
    width: 100%;
    height: 12.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.image-container-form img
{
    width: 100%;
    height: 100%;
    object-fit: contain; /* KEY: scales image to fit container without distortion */
}

/* Image behavior */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill 4:3 box, crop left/right */
    object-position: center;
}

.approved-kaizen-tube {
    min-width: 40px;
    height: 43rem;
    background-color: #fff;
    border-color: #bbb !important;
}

.approved-kaizen-tube.active {
    transform: translateX(-1.5em);
    margin-right: -1.5em;
    margin-top: -2em;
    border-color: #bbb !important;
}

.approved-kaizen-tube .rounded-circle {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.approved-kaizens div {
    padding: .21em .5em;
}

.approved-kaizens.active {
    margin-top: -2em;
}

approved-kaizens


.kaizen-card-container .page-link.inactive {
    color: var(--bs-pagination-disabled-color);
    background-color: var(--bs-pagination-disabled-bg);
    border-color: var(--bs-pagination-disabled-border-color);
}

.kaizen-card-container .page-link {
    background-color: transparent !important;
    color: #333;
    border-color: transparent !important;
}

.kaizen-card-container .page-link:focus {
    box-shadow: none;
    outline: none;
}

#selectableCategories span {
    line-height: 1.2em;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============ File Select Component =================== */
.k-upload .k-upload-files, .k-upload .k-file {
    display: none;
}

/* ============ Company Contact Info Grid =================== */

#ContactInfoGrid .k-grid-toolbar {
    display: none !important;
}

/* ============ Image Editor =================== */

.canvas-container {
    width: 100% !important;
    height: 100% !important;
}

.image-editor-modal {
    min-height: 500px;
    height: fit-content;
}

.qekaizen-canvas-container {
    position: relative !important;
    width: 800px;
    height: 450px;
    overflow-x: auto !important;
}

.color-circle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}


@media (min-width: 1200px) {
    #image-editor-button-container {
        max-width: 130px;
    }
}

.image-editor-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-button .bi {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: bold;
}

.image-action-buttons {
    min-height: 30px !important;
}

@media (max-width: 1199.98px) {
    .qekaizen-canvas-container {
        overflow-x: scroll !important;
        max-width:100%;
    }
}

@media (min-width: 1200px) {
    .qekaizen-canvas-container {
        overflow-x: hidden !important;
    }
}

@media (max-width: 1200px) {
    #offcanvasRight {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    .smaller-screen {
        display: none;
    }
}

#FileSizeErrorModal {
    background-color: rgba(0, 0, 0, 0.25);
}

.support-styling-company-logo img {
    max-height: 50px;
}