/*ATTENTION, REMEMBER: Replace all #3b71ca for #004963 in Light.css*/

.table {
    vertical-align: middle;
}

.datatable {
    --mdb-datatable-thead-th-font-weight: 900;
}

.form-check-input {
    background-color: var(--mdb-menu-light-dark);
}

.form-control {
    background-color: var(--mdb-menu-light-dark);
}

    .form-control:focus {
        background-color: rgba(calc(var(--mdb-menu-light-dark-c)-40), calc(var(--mdb-menu-light-dark-c)-40), calc(var(--mdb-menu-light-dark-c)-40));
        color: var(--mdb-input-color);
    }

.form-outline {
    background: var(--mdb-menu-light-dark);
    border-radius: 5px;
}

    .form-outline .form-control {
        background: var(--mdb-menu-light-dark);
        color: var(--mdb-input-color);
    }

        .form-outline .form-control:focus {
            background-color: rgba(calc(var(--mdb-menu-light-dark-c)-40), calc(var(--mdb-menu-light-dark-c)-40), calc(var(--mdb-menu-light-dark-c)-40));
            color: var(--mdb-input-color);
        }

.treetable input:not([type='checkbox']) {
    min-width: 100px;
}

/*::-webkit-scrollbar {
    display: none;
}*/

.treetable td {
    padding: 0.8rem 0.7rem;
}

.treetable tr.subrow {
    background: #00000017;
}


    .treetable tr.subrow td {
        padding: 0.3rem 0.7rem;
    }


    .treetable tr.subrow.hidden td {
        padding: 0px;
    }


.wysiwyg #links-section .dropdown-menu {
    padding: 2rem 2.5rem 2rem 2.5rem
}

.wysiwyg-content {
    border-radius: 5px;
    min-height: 50px;
    padding: .5rem;
    background-color: var(--mdb-menu-light-dark);
    color: var(--mdb-input-color);
}

.wysiwyg {
    border-radius: 0 0 5px 5px;
}

.table-editor {
    background-color: var(--mdb-menu-light-dark);
    border-radius: 5px;
}

    .table-editor.edited-table.sm .edited-row td {
        padding: .1rem .1rem;
    }

    .table-editor.sm table td {
        padding: .1rem .1rem;
    }

    .table-editor.sm tbody tr:last-child {
        height: inherit;
    }

    .table-editor.sm input[disabled] {
        padding-left: 0.5rem;
        padding-right: 0.1rem;
    }

    .table-editor.sm table td {
        text-align: center;
    }

/*.table > :not(caption) > * > * {
    color: var(--mdb-light-dark);
}*/

.datatable table tr.item-deleted {
    background-color: #ff00001a;
}


.datatable table tr td .item-deleted {
    /*background-color: #ff00001a;*/
    text-decoration: line-through;
}

.row-temp .form-control,
.row-temp .select {
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
}

.service-card {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

    .service-card .card-header {
        background: #f8fafc;
        font-weight: 600;
        font-size: 0.95rem;
    }

.service-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

    .service-title i {
        color: #198754; /* matches green buttons */
    }

.service-total {
    font-size: 0.9rem;
}

.depot-dropdown-menu {
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    max-width: calc(100vw - 1rem);
    min-width: min(23rem, calc(100vw - 1rem));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.depot-dropdown-menu::-webkit-scrollbar {
    width: 0.55rem;
}

.depot-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--mdb-primary);
    border: 2px solid var(--mdb-dropdown-bg);
    border-radius: 999px;
}

.depot-dropdown-menu::-webkit-scrollbar-track {
    background-color: transparent;
}

.depot-dropdown-menu .depot-dropdown-current,
.depot-dropdown-menu .depot-dropdown-current:hover,
.depot-dropdown-menu .depot-dropdown-current:focus {
    background-color: var(--mdb-dropdown-bg);
    box-shadow: 0 1px 0 var(--mdb-dropdown-border-color);
    color: var(--mdb-dropdown-link-color);
    cursor: default;
    line-height: 1.35;
    position: sticky;
    top: 0;
    white-space: normal;
    z-index: 1;
}

.depot-dropdown-menu .depot-dropdown-option {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    line-height: 1.25;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    width: 100%;
}

.depot-dropdown-menu .depot-dropdown-option .icon {
    flex: 0 0 auto;
}

.depot-dropdown-menu .depot-dropdown-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .depot-dropdown-menu {
        max-height: calc(100vh - 3.5rem);
        max-height: calc(100dvh - 3.5rem);
        min-width: min(20rem, calc(100vw - 1rem));
    }
}
