﻿.floating-options {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
}

.showhim {
    text-align: right;
}

.showme {
    display: none;
    margin-right: 6px;
}

    .showme div {
        margin-bottom: 10px;
    }

    .showme span {
        background-color: rgba(0, 0, 0, 0.66);
        color: #fff;
        margin-right: 10px;
        padding: 5px 10px;
    }

    .showme .btn {
        margin-bottom: 5px;
        width: 50px;
    }

.showhim:hover .showme {
    display: block;
}

.invisible {
    visibility: hidden !important;
}

/* DATATABLE PRINT STYLE */
.dt-print-view {
    background-color: white !important;
    color: #000 !important;
}

    .dt-print-view table {
        --bs-table-bg: transparent !important;
        --bs-table-accent-bg: transparent !important;
        --bs-table-striped-color: #6c757d !important;
        --bs-table-striped-bg: #f1f3fa !important;
        --bs-table-active-color: #6c757d !important;
        --bs-table-active-bg: rgba(222, 226, 230, 0.4) !important;
        --bs-table-hover-color: #6c757d !important;
        --bs-table-hover-bg: #f1f3fa !important;
        border-color: #464f5b !important;
    }

    .dt-print-view .table > :not(:first-child) {
        border-top: 2px solid #464f5b !important;
    }

    .dt-print-view td {
        color: #000 !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .dt-print-view h1 {
        font-size: 10pt !important;
    }

    .dt-print-view th {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        color: #000 !important;
    }

/* END DATATABLE PRINT STYLE */

.column-50 {
    width: 50px;
}

.spinner {
    vertical-align: -0.3em !important;
}

.form-spinner {
    margin-top: 38px;
}

.btn-spinner {
    padding: 0.5rem 0.9rem 0.3rem 0.9rem !important;
}

.container-fluid {
    padding: 0 !important;
}

.card-body {
    padding: 15px !important;
}

.table th, .table td {
    font-size: 14px;
}

.div-patient {
    display: none;
}

.div-search-patient {
    display: none;
}

.autocomplete-area {
    width: 100%;
    position: relative;
}

.autocomplete-items {
    position: absolute;
    display: none;
    width: 100%;
    z-index: 99;
    background-color: #fff;
    border: 1px solid #d4d4d4;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #d4d4d4;
}

    .autocomplete-item:hover {
        background-color: #e9e9e9;
    }

.no-search + .select2-container .select2-search--dropdown {
    display: none;
}

.table-action {
    padding-top: 4px !important;
    padding-bottom: 0px !important;
}

    .table-action i {
        font-size: 30px !important;
        color: #808080;
    }

        .table-action i:hover {
            color: #555555;
        }

tr.odd td {
    background-color: #fff !important;
}

th {
    font-weight: 400 !important;
}

.table-container {
    overflow-x: auto !important;
}

.table {
    white-space: nowrap !important;
    width: 100% !important;
}

    .table th, .table td {
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

.dropdown-menu {
    max-height: 250px !important;
    overflow: auto !important;
}

    .dropdown-menu a {
        background-color: #fff !important;
    }

.table tbody tr:hover td {
    background-color: #f5f5f5 !important;
}

.tr td {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
}

.tr td.icon-check i {
    vertical-align: text-top;
    cursor: pointer;
}

.tr td i.patient-status {
    line-height: 2.2;
    vertical-align: text-top;
    font-size: 8px;
    margin-right: 1px;
}

.tr td i.options-i {
    line-height: 1.3;
    vertical-align: text-top;
    cursor: pointer;
    padding: 5px 8px;
    margin-top: -4px;
    margin-bottom: -4px;
    margin-left: 18px !important;
}

.tr td i.options-i:hover {
    background-color: #cecdcd;
}

    .tr td i.green {
        color: #339933;
    }

    .tr td i.orange {
        color: #FF9D00;
    }

    .tr td i.blue {
        color: #007ACC;
    }

    .tr td i.red {
        color: #DA3A00;
    }

tr th.check-all i {
    line-height: 0.9;
    vertical-align: middle;
    cursor: pointer;
}

.tr td.icon-check i {
    display: none;
}

.tr:hover td.icon-check i {
    display: inline;
}

    .tr:hover td.icon-check i:hover {
        display: inline;
    }

.tr.selecionado td.icon-check i {
    display: inline;
}

.select2-container .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
}

.tr td {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.patient-status {
    margin-right: 8px;
    vertical-align: middle;
}

.options-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.options-i {
    margin-left: 8px;
    cursor: pointer;
}

.dropdown-menu1 {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: #fff;
    border: 1px solid #ccc;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    width: 175px;
    display: none;
    position: absolute;
}

.dropdown-item1 {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

    .dropdown-item1 i {
        margin-right: 10px;
    }

    .dropdown-item1:hover {
        background-color: #f0f0f0 !important;
        color: #000;
    }

.select2-container--default .select2-results__option {
    color: #414141 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #414141 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #414141 !important;
}

.form label.form-label {
    font-weight: lighter;
}

.form span {
    color: #414141 !important;
    font-weight: 600;
    min-height: 18px !important;
    display: block;
}

div .title {
    border-bottom: solid 1px #414141;
    color: #414141;
    padding-bottom: 6px;
    font-size: 18px;
}

.card-title {
    font-weight: 400;
    color: #57A562;
}

    .card-title i {
        font-size: 16px;
        margin-right: 10px;
    }

/* General Toast Styles */
.toast {
    display: flex;
    align-items: center; /* Ensure icon and text alignment */
    position: relative;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    z-index: 9999 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    color: #fff !important;
    opacity: 0.9 !important;
}

    .toast:hover {
        opacity: 1 !important; /* Fully visible when hovered */
    }

/* Success Icon */
.toast-success:before {
    font-size: 16px;
    color: #fff;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Error Icon */
.toast-error:before {
    font-size: 16px;
    color: #fff;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Toast Message */
.toast .toast-message {
    margin-left: 35px; /* Adjust to prevent overlap with icon */
    line-height: 1.5; /* Better text alignment */
    display: inline-block; /* Prevent wrapping issues */
    vertical-align: middle;
}

/* Background Colors */
.toast-success {
    background-color: #28a745 !important; /* Green for success */
}

.toast-error {
    background-color: #dc3545 !important; /* Red for error */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-file {
    position: absolute;
    width: 33px;
    height: 33px;
    display: inline-block;
}

    .spinner-file div {
        border: 2px solid rgba(0, 0, 0, 0.37);
        border-left-color: #ffffff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        animation: spin 1s linear infinite;
        margin: 4px auto;
    }

div.attachments {
    margin-bottom: 15px;
    margin-top: 10px;
}

    div.attachments:last-child {
        margin-bottom: 5px;
    }

.dt-buttons .btn {
    background-color: #57A562 !important;
    color: white !important;
}

    .dt-buttons .btn:hover {
        background-color: #345b94 !important;
    }

.dt-buttons > .btn {
    border: solid 2px #57A562 !important;
}

.dt-buttons > .btn-group > .btn {
    border-color: #57A562 !important;
}

.dt-buttons .btn-group {
    border-color: #57A562 !important;
}

.toast-div {
    position: fixed;
    top: 70px;
    right: 20px;
    color: #fff;
    z-index: 9999 !important;
    width: 400px;
    padding: 10px 15px;
    border-radius: 5px;
    display: none;
}

    .toast-div.error {
        background-color: #E05564;
    }

        .toast-div.error #iError {
            display: inline;
        }

        .toast-div.error #iSuccess {
            display: none;
        }

    .toast-div.success {
        background-color: #79DF9D;
    }

        .toast-div.success #iSuccess {
            display: inline;
        }

        .toast-div.success #iError {
            display: none;
        }

    .toast-div.show {
        display: inline;
    }

.notification-table {
    width: 100%;
}

    .notification-table tr {
        cursor: pointer;
    }

        .notification-table tr:hover {
            background-color: #f3f3f3
        }

    .notification-table .avatar {
        width: 56px;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 8px;
    }

        .notification-table .avatar div {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            overflow: hidden;
        }

    .notification-table td p {
        margin-bottom: -6px;
        font-size: 15px;
        font-weight: 600;
    }

        .notification-table td p span {
            font-size: 12px;
            font-weight: normal;
            margin-left: 5px;
        }

    .notification-table td span {
        font-size: 12px;
    }

.pending-text {
    display: inline-block;
    margin: 5px 0 0 0;
    padding: 0;
    line-height: 1.1;
    word-wrap: break-word;
    white-space: normal;
}

table#datatable thead th {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #EAEAEA !important;
}
