/*
* styles.css
******************************************************************************/

.table > :not(caption) > * > * {
    padding: 0.25rem 0;
}

.fs-7 {
    font-size: 0.8rem;
}

.fs-8 {
    font-size: 0.7rem;
}

.fs-9 {
    font-size: 0.6rem;
}

.form-label{
    font-size: 0.8rem;
}

.image-preview {
    max-width: 10rem;
    max-height: 10rem;
}

.thumbnail-auto {
    height: 90%;
    width: 90%;
}

.thumbnail-sq-30 {
    height: 30px;
    width: 30px;
}

.thumbnail-h-30 {
    height: 30px;
}

.thumbnail-sq-50 {
    height: 50px;
    width: 50px;
}

.thumbnail-h-50 {
    height: 50px;
}

.thumbnail-sq-100 {
    height: 100px;
    width: 100px;
}

.thumbnail-h-100 {
    height: 100px;
}

.thumbnail-sq-150 {
    height: 150px;
    width: 150px;
}

.thumbnail-h-150 {
    height: 150px;
}

.thumbnail-sq-200 {
    height: 200px;
    width: 200px;
}

.thumbnail-h-200 {
    height: 200px;
}

.suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 0;
    list-style-type: none;
    position: absolute;
    background: #fff;
    z-index: 1000;
}

.suggestions li {
    padding: 8px;
    cursor: pointer;
}

.suggestions li:hover {
    background-color: #f0f0f0;
}

/** Datatable Styles */
.dt-buttons > button {
    margin: 0 !important;
    padding: 0.5rem !important;
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border: none;
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/**
    Kanban Styles
 */

.kanban-board {
    display: flex;
    overflow: scroll;
}

.kanban-column {
    min-width: 250px;
    background-color: #f7f7f7;
}

.kanban-opportunity-item {
    cursor: move;
}

.kanban-opportunity-item.ignore-drag {
    background-color: lightgrey;
    cursor: not-allowed;
}

.kanban-opportunity-item .cursor-default {
    cursor: default;
}

.kanban-header .dropdown-toggle::after {
    content: none;
}

.btn-kanban-action {
    cursor: pointer;
}

.btn-kanban-action:hover {
    background-color: #f0f0f0;
}

.btn-kanban-action.more:hover {
    background-color: transparent;
}

.bg-light-red {
    background-color: #f8d7da;
}

.bg-dark-red {
    background-color: #f1b0b7;
}

.opportunity-ribbon {
    position: relative;
    overflow: hidden;
}

.ribbon {
    --f: 10px; /* control the folded part*/
    --r: 15px; /* control the ribbon shape */
    --t: 45%; /* the top offset */

    position: absolute;
    font-size: calc(var(--f) + 3px);
    inset: var(--t) calc(-1 * var(--f)) auto auto;
    padding: 0 1rem var(--f) calc(10px + var(--r));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%,
    calc(100% - var(--f)) calc(100% - var(--f)), 0 calc(100% - var(--f)),
    var(--r) calc(50% - var(--f) / 2));
    box-shadow: 0 calc(-1 * var(--f)) 0 inset #0005;
}

.ribbon.bg-ribbon-danger {
    color: white;
    background: #BD1550;
}

.ribbon.bg-ribbon-warning {
    color: white;
    background: #007EA7;
}


/**
 * Design for form inputs
 */
/* Base Floating Label Style */
.md-filled, .md-outlined {
    position: relative;
}

.md-filled label,
.md-outlined label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    padding: 0 0.25rem;
}

.md-outlined label {
    transform: translateY(-25%);
}

/* Filled Input Style */
.md-filled input.form-control {
    background-color: #eaeaea;
    border: none;
    border-bottom: 2px solid gray;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.md-filled input.form-control:focus {
    border-color: #6200ee;
    box-shadow: none;
}

.md-filled input.form-control:focus + label,
.md-filled input.form-control:not(:placeholder-shown) + label {
    top: 0.4rem;
    font-size: 0.75rem;
    color: #6200ee;
}

/* Outlined Input Style */
.md-outlined input.form-control {
    border: 2px solid gray;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.md-outlined input.form-control:focus {
    border-color: #6200ee;
    box-shadow: none;
}

.md-outlined input.form-control:focus + label,
.md-outlined input.form-control:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.65rem;
    font-size: 0.75rem;
    color: #6200ee;
    background-color: #fff;
    padding: 0 4px;
}


/**
 * #####################################################################################
 * Summer note Fix
 */
.note-modal.open {
    top: 25% !important;
}

button.note-btn.dropdown-toggle::after {
    display: none !important;
}

.note-btn-group.open .note-dropdown-menu .note-btn-group {
    margin: 0 !important;
}

.note-btn-group.note-color .note-color-all .note-dropdown-menu {
    min-width: 400px !important;
}

.note-modal-footer {
    margin-bottom: 1rem !important;
}

.border-custom-1 th, .border-custom-1 td {
    border: 1px solid #aaa !important;
}

.note-dropdown-item h1 {
    font-size: 1.5rem !important;
    line-height: 1.5rem !important;
}

.note-dropdown-item h2 {
    font-size: 1.3rem !important;
    line-height: 1.3rem !important;
}

.note-dropdown-item h3 {
    font-size: 1.1rem !important;
    line-height: 1.1rem !important;
}

.note-dropdown-item h4 {
    font-size: 1rem !important;
    line-height: 1rem !important;
}

.note-dropdown-item h5 {
    font-size: 0.8rem !important;
    line-height: 0.8rem !important;
}

.note-dropdown-item h6 {
    font-size: 0.7rem !important;
    line-height: 0.7rem !important;
}

/**
 * #####################################################################################
 * Datetime and Date Picker Fix
 */

input[type='datetime-local'].form-control.is-invalid,
input[type='date'].form-control.is-invalid {
    background-image: none !important;
}

/**
 * #####################################################################################
 * Select2 Fix
 */
span.select2, span.select2 span.selection {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 3rem !important;
}

.select2-container--default .select2-selection--single {
    border-color: #c0bec5 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 3rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3rem !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0.4rem !important;
}

html.dark-style .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

html.dark-style .select2-results ul li {
    color: #000 !important;
}

.select2.select2-container--disabled {
    background-color: #e7eaee;
    cursor: not-allowed;
}

/* selected item select2 */
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
/ / background: #8c57ff !important;
    background: rgb(88, 86, 214) !important;
    display: flex;
    color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.5rem !important;
}

.select2-image {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.2rem;
}

.select2-selection__choice img {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0 0.2rem;
}

/* Select 2 dark mode fix*/
html[data-coreui-theme="dark"] [id^="select2-"][id$="-container"] {
    color: white;
}

html[data-coreui-theme="dark"] .select2-results__options,
html[data-coreui-theme="dark"] .select2.select2-container.select2-container--default.select2-container--disabled {
    background: #323a49;
}

html[data-coreui-theme="dark"] .select2-results__option[aria-selected="true"] {
    background: black;
}

/*******************************************************************************/

.menu .app-brand.campus {
    height: 64px;
}

.app-brand-logo.campus svg {
    width: 30px;
    height: 24px;
}

.app-brand-text.campus {
    font-size: 1.25rem;
}

.authentication-wrapper .app-brand-text.campus {
    font-size: 1.5rem;
    text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.campus-blocks > * {
    display: block !important;
}

.campus-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .campus-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .campus-only-element class with .campus-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.campus-vertical-spacing > * {
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
}

.campus-vertical-spacing.campus-only-element > :first-child {
    margin-top: 0 !important;
}

.campus-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.campus-vertical-spacing-lg.campus-only-element > :first-child {
    margin-top: 0 !important;
}

.campus-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.campus-vertical-spacing-xl.campus-only-element > :first-child {
    margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 300px;
        position: relative;
    }

    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1.25rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1.25rem;
}

.offcanvas-90 {
    width: 90% !important;
    max-width: 90% !important;
    height: 100% !important;
}
