@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #f3f2f7;
    font-size: 14px !important;
}

.crm-text-logo {
    font-weight: bold;
    color: #3b5fff;
    text-decoration: none;
}

.crm-text-logo:hover {
    text-decoration: none;
    color: #3b5fff;
}

.dropdown-menu {
    font-size: 14px !important;
    border-radius: 5px;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.25rem;
    padding: var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);
}

.dropdown-menu[data-bs-popper] {
    margin-top: 8px;
}

.btn-white {
    background-color: #FFF;
    border: 1px solid rgb(176, 176, 176);
}

.btn-white:hover {
    background-color: rgb(231, 231, 231);
    border: 1px solid rgb(176, 176, 176);
}

.breadcrumb-item a {
    text-decoration: none !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
}

.dropdown-item.active {
    color: #212529;
    background-color: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}

th a {
    color: #444;
    text-decoration: none !important;
}

th a:hover {
    color: #444;
    text-decoration: none !important;
}

td .form-control {
    font-size: 14px;
}

.dropdown-divider {
    display: block;
    width: 100%;
    background-color: rgb(227, 227, 227);
    height: 0.5px;
}


.text-navy {
    color: #013753;
}

.btn {
    font-size: 14px;
}

.icon-inline::before {
    display: inline !important;
}

.form-control[read-only] {
    background-color: #f3f3f3;
    cursor: not-allowed;
}

.app-text-small {
    font-size: 12px !important;
}

select[readonly].select2-hidden-accessible+.select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible+.select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible+.select2-container .select2-selection__arrow,
select[readonly].select2-hidden-accessible+.select2-container .select2-selection__clear {
    display: none;
}

.select2-selection__choice__remove {
    width: 0.5rem !important;
    height: 0.5rem !important;
}

/** YII2 **/

main>.container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}


.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.timeline {
    position: relative;
    border-color: rgba(160, 175, 185, .15);
    padding: 0;
    margin: 0
}

.tl-item {
    border-radius: 3px;
    position: relative;
    display: -ms-flexbox;
    display: flex
}

.tl-item>* {
    padding: 10px
}

.tl-item:last-child .tl-dot:after {
    display: none
}

.tl-item.active .tl-dot:before {
    border-color: #448bff;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, .2)
}

.tl-item:last-child .tl-dot:after {
    display: none
}

.tl-item.active .tl-dot:before {
    border-color: #448bff;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, .2)
}

.tl-dot {
    position: relative;
    border-color: rgba(160, 175, 185, .15)
}

.tl-dot:after,
.tl-dot:before {
    content: '';
    position: absolute;
    border-color: inherit;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%)
}

.tl-dot:after {
    width: 0;
    height: auto;
    top: 25px;
    bottom: -15px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-radius: 0
}

tl-item.active .tl-dot:before {
    border-color: #448bff;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, .2)
}

.tl-dot {
    position: relative;
    border-color: rgba(160, 175, 185, .15)
}

.tl-dot:after,
.tl-dot:before {
    content: '';
    position: absolute;
    border-color: inherit;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%)
}

.tl-dot:after {
    width: 0;
    height: auto;
    top: 25px;
    bottom: -15px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-radius: 0
}

.tl-content p:last-child {
    margin-bottom: 0
}

.tl-date {
    font-size: .95em;
    margin-top: 1px;
}

.bg-white {
    background-color: #FFF;
}

.integration-ct {
    margin-top: 20px;
    margin-bottom: 10px;
}

.integration-title {
    font-weight: 500;
}

.mt-30 {
    margin-top: 30px;
}

.form__err__ct {
    margin-bottom: 20px;
}

.form__err__title {
    margin-bottom: 10px;
}

.form__err__prop__ct {
    margin-bottom: 8px;
}

.form__err__prop {
    font-size: 12px;
    font-weight: 500;
    color: #a94442;
}

.form-label {
    font-weight: 500;
}

.form__err__msg {
    font-size: 11px;
    color: #a94442;
}

.invoices__items__table .invoices__items__add__new__tr:not(:last-child) {
    border-bottom: 1px dashed #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.top-border-dashed {
    border-top: 1px dashed #e9ecef;
}

.filters .select2-container--bootstrap-5 .select2-selection {
    font-size: 14px !important;
}

.fw-600 {
    font-weight: 600;
}

.blue-text {
    color: #1cbfff;
}

.text-xs {
    font-size: 12px;
}

.text-xxs {
    font-size: 10px;
}

.rounded-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

.rounded-bottom {
    border-top-left-radius: 0rem;
    border-top-right-radius: 0rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.non-rounded {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.grid-view table thead tr th,
.grid-view table thead tr th a {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.text-disabled {
    color: #bcbcbc;
}

.grid-view table thead tr th {
    vertical-align: middle;
}

.grid-view .table-v-top tbody tr td {
    vertical-align: top;
}

.grid-view .table-v-bottom tbody tr td {
    vertical-align: bottom;
}

.grid-view .table-v-middle tbody tr td {
    vertical-align: middle;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8fafc;
}

.icon-sm {
    font-size: 10px;
}

.fs-8 {
    font-size: 8px;
}

.fs-10 {
    font-size: 10px;
}

.fs-12 {
    font-size: 12px;
}

.tc-badge {
    border-radius: 4px;
}

.editorjs-container {
    border-radius: 5px;
    padding: 30px 20px;
}

.ce-block__content,
.ce-toolbar__content {
    max-width: initial;
}

.cdx-block {
    max-width: 100% !important;
}

.editor-container-init {
    background-color: #fff !important;
    min-height: 200px;
}

.bg-dark-card-header {
    background-color: #e7e7e7;
}

.header__ticket {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.03);

}

.ql-container {
    font-family: 'Poppins', sans-serif !important;
}

.ql-toolbar.ql-snow {
    border-radius: 0.375rem 0.375rem 0 0;
}

.ql-toolbar.ql-snow.is-valid {
    border-color: #198754;
}

.ql-toolbar.ql-snow.is-invalid {
    border-color: #dc3545;
}

.ql-container.ql-snow {
    border-radius: 0 0 0.375rem 0.375rem;
}

.ql-container.ql-snow.is-valid {
    border-color: #198754;
}

.ql-container.ql-snow.is-invalid {
    border-color: #dc3545;
}

.bg-reply-public {
    background-color: #fbffd0;
}

.ticket-main-header,
.ticket-reply-header {
    border-bottom: 1px dashed #e7e7e7;
}

.ticket-reply-footer {
    border-top: 1px dashed #e7e7e7;
}

.ticket-content-container {
    border-top: 1px dashed #e7e7e7;
}

.bg-pending {
    background-color: #ff1bf0;
    color: #fff;
}

.text-orange {
    color: #fb5d24;
}

.m-05 {
    margin: 2px 2px 2px 2px;
}

/*
* EditorJS Width
*/
.ce-block__content,
.ce-toolbar__content {
    max-width: calc(100% - 80px) !important;
}

.cdx-block {
    max-width: 100% !important;
}

/*
* EditorJS image caption
*/
.image-tool__caption {
    display: none;
}

/**
* Select2 search box
*/
.select2-container--bootstrap-5 .select2-search {
    width: auto !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    margin-bottom: 0 !important;
    font-size: 12px !important;
}


/*
* except last element
*/
.history-item:not(:last-child) {
    border-bottom: 1px dashed #e7e7e7;
}

.json-input {
    font-size: 12px;
    font-family: monospace;
    background-color: #f8f9fa;
    color: #c55;
}

@media (min-width: 992px) {

    .ce-block__content,
    .ce-toolbar__content {
        max-width: calc(100% - 80px) !important;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: center;
    align-items: center;
    z-index: 999999999;
}

.loader {
    transform: translate(-50%, -50%);
    border: 5px solid #c2c2c2;
    border-top: 5px solid #0955ed;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.normal-wrapper {
    width: 100%;
    height: 550px;
}

/* Desktop only */
.update-loc {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px;
    z-index: 1000;
}

.circle-icon {
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.circle-icon i {
    font-size: 1.2rem;
}

.info-badge {
    background: rgba(13, 110, 253, 0.1);
    /* primary color with 10% opacity */
    color: #0d6efd;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.info-badge i {
    font-size: 1.1rem;
}

.info-text {
    color: #6c757d;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.info-text span {
    color: #adb5bd;
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

.btn-xs {
    padding: 0.08rem 0.36rem;
    font-size: 0.75rem;
}

#image-upload-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* semi-transparent background */
    z-index: 1050; /* high enough to sit on top of modals and forms */
}

.loading-overlay {
    width: 100%;
    height: 100%;
}

.image-container {
    width: 100%;
    height: 400px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 20px; */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.filter-bar {
    font-size: 14px;
}

.filter-link {
    color: #444;
    text-decoration: none;
    margin: 0 5px;
}

.filter-link:hover {
    color: #007bff;
}

.active-link {
    color: #007bff;
    font-weight: bold;
}

.separator {
    color: #ccc;
    margin: 0 5px;
}