﻿body {
    background-color: #fbfbfb;
}

@media (min-width: 991.98px) {
    main {
        padding-left: 250px;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    padding: 0;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
    width: 250px;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 56px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.list-group-item-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navdrawer-nav .nav-divider {
    color: rgba(0, 0, 0, .57);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
    padding: 1.0625rem 1rem;
    text-overflow: ellipsis;
    transition-duration: .3s;
    transition-property: background-color, color;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
}

/* feedback de formulário */
.invalid-feedback {
    line-height: 1;
    margin-top: 0.25rem;
}

.invalid-feedback:not(:empty) {
    display: flex;
}

/* textarea */
textarea.form-control:not([rows="1"]) {
    border-left: none;
    border-right: none;
    border-top: none;
    padding: calc(1rem - 1px) 0;
}

textarea.form-control:hover:not([rows="1"]),
textarea.form-control:focus:not([rows="1"]) {
    box-shadow: none;
}

/* required */
.required::after {
    content: "*";
    font-weight: bold;
    color: var(--danger);
    margin-left: 4px;
}

/* table */
.table tbody td,
.table tbody th {
    height: auto;
    vertical-align: middle;
}

.table thead td,
.table thead th {
    height: auto;
}

.pagination {
    background-color: transparent;
}

/* button */
.btn-xs {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
}

/* icons */
.icon-xs {
    font-size: 1rem;
}

/* avatar */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: white;
    color: var(--primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
}

/* navbar icon */
.navbar-icon {
    -ms-flex-align: center;
    -ms-flex-negative: 0;
    -ms-flex-pack: center;
    align-items: center;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    color: inherit;
    display: -ms-inline-flexbox;
    display: inline-flex;
    flex-shrink: 0;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    width: 2.25rem;
}

.navbar-icon:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.navbar-icon:active,
.navbar-icon:focus,
.navbar-icon:hover {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.navbar-dark .navbar-icon:before {
    background-color: rgba(0, 0, 0, .12);
    border-radius: 50%;
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition-duration: .3s;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.navbar-dark .navbar-icon:before {
    background-color: hsla(0, 0%, 100%, .12);
}

.navbar-icon:active:before,
.navbar-icon:focus:before,
.navbar-icon:hover:before {
    opacity: 1;
}

.navdrawer-backdrop {
    z-index: 39;
}

/* search input */
input[type="search"] {
    padding-right: 24px !important;
}

.search-icon {
    position: absolute;
    right: 0;
    bottom: 5px;
    cursor: pointer;
}

/* search input */
input[type="search"] {
    padding-right: 24px !important;
}

.search-icon {
    position: absolute;
    right: 0;
    bottom: 5px;
    cursor: pointer;
}

/* icons size */
.mi-1x {
    font-size: 2em;
}

.mi-2x {
    font-size: 2em;
}

.mi-3x {
    font-size: 3em;
}

/* gap sizes */
.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

/* OS */
.os-actions {
    margin: 8px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-os {
    height: 300px;
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 0 4px 0 rgb(0 0 0 / 14%), 0 3px 4px 0 rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

/* select2 */
.select2-container {
    padding: 0.375rem 0 calc(0.375rem - 1px);
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border: none;
    outline: 0;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .42);
    border-radius: 0;
}

.select2-container .select2-selection--multiple,
.select2-container .select2-selection--single {
    min-height: fit-content;
}

.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--secondary);
    box-shadow: inset 0 -2px 0 0 var(--secondary);
}

.select2-container--default .select2-selection--multiple:hover,
.select2-container--default .select2-selection--single:hover {
    border-color: var(--secondary);
    box-shadow: inset 0 -2px 0 -1px var(--secondary);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
    color: white;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--single .select2-selection__choice {
    margin-top: 0;
    vertical-align: middle;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 20px;
    vertical-align: middle;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}

.select2-container--open .select2-dropdown--below {
    margin-top: -10px;
}

/* chip */
.chip-xs {
    height: 1.5rem;
    font-size: 0.75rem;
}

.os-card-header h3 {
    font-weight: 700;
    margin-bottom: 0;
}

.os-card-header-info {
    flex-direction: column;
    gap: 8px;
}

.os-card {
    height: 100%;
    max-height: max-content;
}

/* interaction */
.interaction {
    border-left: 2px solid var(--primary);
    padding-left: 4px;
    margin-bottom: 8px;
}

.interaction:last-child {
    margin-bottom: 0;
}

.interaction-parent {
    border-left: 2px solid var(--primary-dark);
}

.interaction-parent p {
    margin-bottom: 0;
}

/* Custom class */
.card-created {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 16px;
    padding-bottom: 16px;
}

.card-created p {
    margin-bottom: 0;
}

/* animations */
@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotate {
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.5;
    }
}

.pulse {
    -webkit-animation: pulsate 2s ease-out;
    -webkit-animation-iteration-count: infinite;
    opacity: 0.5;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* html selection and scroolbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(19, 21, 23, .9);
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ckeditor 5 */
.ck-editor__editable_inline {
    min-height: 100px;
    line-height: 1;
}