#filter-row {
    display: none;
}

.pointer-none {
    pointer-events: none;
    opacity: 0.6;
}

.cursor-pointer:hover {
    cursor: pointer;
}

.select2-container--open {
    z-index: 999999 !important;
}

.select2-dropdown {
    z-index: 999999 !important;
}

label:has(~ input:required)::after {
    content: " *";
    color: #f44336;
}

label:has(+ input:required)::after {
    content: "  *";
    color: #f44336;
}

label:has(+ select:required)::after {
    content: "  *";
    color: #f44336;
}

label:has(+ textarea:required)::after {
    content: "  *";
    color: #f44336;
}

label[for="status"]::after {
    content: "  *";
    color: #f44336;
}

.select2-container .select2-selection--single .select2-selection__clear span {
    line-height: 38px !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #000000 !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    line-height: 38px;
    margin-right: 22px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 26px !important;
    top: 7px !important;
}

.select2-container .select2-selection--multiple {
    min-height: 38px !important;
    color: #000000 !important;
}

.form-select {
    height: 38px;
}

.iti {
    position: relative;
    display: flex !important;
}

.iti__country-list {
    z-index: 999 !important;
}

.flatpickr-calendar {
    z-index: 9999 !important;
}

/* Select2 invalid styling */
.was-validated .form-select:invalid + .select2 .select2-selection {
    border-color: #dc3545 !important;
}

.was-validated .form-select:valid + .select2 .select2-selection {
    border-color: #198754 !important;
}

.lead_checkbox {
    border: 1px solid black;
}

.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
    height: auto;
    width: 200px !important;
}

label,
input[type="checkbox"] {
    cursor: pointer;
}

.call-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    max-height: 80vh;
    overflow: auto;
    z-index: 9999;
}

.call-header {
    background: #0d3b7d;
    color: white;
    padding: 10px 15px;
    cursor: move;
}

.toggle-activity-table {
    cursor: pointer;
}


.activity-table-container .table th {
    width: 30%;
    white-space: nowrap;
}
 
.activity-table-container .table td {
    width: 70%;
    word-break: break-word;
    white-space: normal; /* preserves line breaks in messages */
}

.play-recording{
    border: none;
    height: 25px;
    width: 31px;
}

#audioOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);
    z-index: 99998;
}

#audioContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 99999;
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 300px;
}

#audioContainer audio {
    width: 100%;
    outline: none;
}

#closeAudio {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

table a, .modal a, .stat-link{
    text-decoration: underline;
}
 