@import url('font-face.css');

/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

/* Global 13px font size except h1-h6 */
*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)::placeholder,
input,
textarea,
select,
button {
    font-size: 13px !important;
}

body {
    font-family: 'Shabnam', sans-serif !important;
    background: #f0f9ff;
}

/* =============================
   UNIFIED FORM FIELDS
============================= */
:root {
    --field-height: 45px;
    --field-radius: 10px;
    --field-border: #d8e4ea;
    --field-border-focus: #7cc8df;
    --field-bg: #ffffff;
    --field-text: #243746;
    --field-placeholder: #9aaebc;
    --field-shadow: 0 3px 6px rgb(37 78 98 / 12%);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
    min-height: var(--field-height);
    border: 1px solid #b8c9d1 !important;
    border-radius: var(--field-radius) !important;
    background-color: var(--field-bg) !important;
    color: var(--field-text) !important;
    font-family: 'Shabnam', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    padding: 9px 8px;
    outline: none !important;
    box-shadow: var(--field-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
select:focus,
textarea:focus {
    border-color: var(--field-border-focus) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(124, 200, 223, 0.18) !important;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: var(--field-placeholder) !important;
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: var(--field-placeholder) !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: var(--field-placeholder) !important;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--field-placeholder) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--field-text) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    accent-color: #28a87c;
}

input[readonly],
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f7fafc !important;
    color: #7b8d99 !important;
    cursor: not-allowed;
}

button {
    height: 45px;
    border-radius: 10px;
    padding: 0 15px;
    margin: 0;
    border: 0;
    color: #fff;
    font-family: inherit;
    background-color: #b557ff;
    cursor: pointer;
}

button.orange {
    border: 1px solid #ff9800;
    color: #c76f00;
    background-color: #fff4e5;
}

button.violet {
    border: 1px solid #9c27b0;
    color: #7b1f8a;
    background-color: #f7eafa;
}

button.green {
    border: 1px solid #00c083;
    color: #009a69;
    background-color: #e6f9f3;
}

button.red {
    border: 1px solid #f44336;
    color: #c62828;
    background-color: #fdecea;
}

button.blue {
    border: 1px solid #2196f3;
    color: #1769aa;
    background-color: #eaf5ff;
}

.check-list {
    max-width: 35px !important;
}

/* =============================
   SELECT2 UNIFIED STYLE
============================= */
.select2-container {
    width: auto !important;
    min-width: 220px;
    font-family: 'Shabnam', sans-serif !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: var(--field-height) !important;
    border: 1px solid var(--field-border) !important;
    border-radius: var(--field-radius) !important;
    background-color: #fff !important;
    box-shadow: var(--field-shadow);
    display: flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
}

.select2-container .select2-selection--single {
    height: var(--field-height) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--field-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(124, 200, 223, 0.18) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 0 !important;
    padding-left: 24px !important;
    color: var(--field-text) !important;
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--field-height) !important;
    left: 6px !important;
    right: auto !important;
}

.select2-selection__placeholder {
    color: var(--field-placeholder) !important;
    margin-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 0;
}

.select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.select2-search__field,
textarea.select2-search__field,
.select2-selection--multiple textarea {
    min-height: 32px !important;
    height: 32px !important;
    min-width: 150px;
    border: 0 !important;
    box-shadow: none !important;
    padding: 5px !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid #dd2828;
    color: #dd2828;
    left: 5px;
    top: 0;
    height: 0;
    max-width: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dataTables_filter {
    margin-bottom: 15px;
}

h1,
h2,
h3 {
    color: #90b9d4;
    font-size: 21px;
}

.d-flex {
    display: flex !important;
}

/* محتوای اصلی */
.main-content {
    padding: 30px;
}

/* کارت ساده داخل محتوا */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 0;
}

.submit_form,
.excel_export {
    height: 50px;
    border-radius: 10px;
    margin: 10px 0;
    border: 0;
    background-color: #28a87c;
    color: #fff;
    min-width: 150px;
    font-family: inherit;
}

/* پیام خطا */
.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* دکمه خروج */
.logout-btn {
    display: block;
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.2s;
    font-family: inherit;
}

.logout-btn:hover {
    background: #c0392b;
}

.login-box-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 350px;
    height: 340px;
    border: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    background-color: #fff;
}

.login-box input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    margin-bottom: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    margin-top: 10px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px !important;
    cursor: pointer;
}

.remember-me div {
    font-size: 14px;
    cursor: pointer;
    margin-top: -10px;
}

.dataTables_info,
.dataTables_paginate {
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px 0;
    padding: 0 10px;
}

/* جدول دیتاتیبل */
table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    border: 0;
    border-top: 6px solid #ccf1e6;
    border-bottom: 0 solid #333 !important;
    margin: 20px 0;
}

table.dataTable th {
    text-align: center !important;
    padding: 15px 0 !important;
    border: 0;
    border-bottom: 1px solid #e1e1e1;
    max-width: 345px;
}

table.dataTable td {
    text-align: center !important;
    padding: 14px 0 !important;
    border: 0;
    max-width: 450px;
    border: 2px solid #fff !important;
    border-right: 0 !important;
    border-left: 0 !important;
}

thead {
    background-color: #fffdf5;
    color: #615541;
}

table.dataTable tbody tr {
    border-bottom: 1px solid #f1f1f1;
}

.btn-wrapper {
    display: inline-flex;
    width: 100%;
    min-width: 280px !important;
    justify-content: center;
    gap: 5px;
}

input.row-check,
#select-all {
    min-width: 50px !important;
}

/* header.css */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: #2c3e50;
    padding: 0 20px;
    font-family: 'Shabnam', sans-serif;
    color: #fff;
}

.main-header a,
.main-header button {
    color: #fff;
    text-decoration: none;
    background: #0000002b;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 7px;
    margin-right: 7px;
    padding: 10px;
    border-radius: 10px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
}

.edit-profile {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    background-color: #00c2ff40 !important;
}

.edit-profile:hover {
    color: #111827;
}

.header-left button.logout-btn {
    width: 100px;
    font-weight: bold;
    background-color: #ff0000;
    margin: auto;
}

.header-right {
    display: flex;
    align-items: center;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 140px;
    background-color: #fff !important;
    color: #2c3e50 !important;
    padding: 3px 10px !important;
    border-right: 6px solid #3ccece !important;
    font-weight: bold;
}

.dashboard-link img {
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

/* مخفی کردن آیکون‌های سورت در هدر دیتاتیبل */
.sorting:before,
.sorting:after {
    content: "" !important;
}

.cards-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.dash-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: 0.25s;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.dash-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.dash-card span {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* ستون مخصوص چک‌باکس */
th.checkbox-cl,
td.checkbox-cl {
    width: 35px !important;
    max-width: 35px !important;
    min-width: 35px !important;
    text-align: center !important;
    padding: 4px !important;
    white-space: nowrap !important;
}

/* خود چک‌باکس */
td.checkbox-cl input[type="checkbox"],
th.checkbox-cl input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.form-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.btn-followup,
.btn-details,
.btn-following {
    margin: 2px;
    padding: 8px;
    cursor: pointer;
    font-family: 'Shabnam';
}

.highlight-following {
    background-color: #fff8b3;
}

tr.followup-row td {
    padding: 0 !important;
}

.followup-box {
    display: flex;
    gap: 20px;
    margin-top: 0;
    padding: 20px;
    background-color: #f0f9ff;
}

.fu-block {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fu-block textarea {
    width: 100%;
    height: 70px;
    margin-bottom: 5px;
}

.fu-block span {
    font-size: 12px;
    color: #555;
    text-align: left;
    padding: 5px 0;
}

.details-right {
    min-width: 350px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-right p {
    padding: 10px;
    text-align: right;
}

/* =============================
   CREDIT FORM CLEAN & EQUAL
============================= */
.wrapper-up-credit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    border: 1px solid #efefef;
    padding: 20px;
    border-radius: 15px;
    background: #f8f8f8;
}

.wrapper-up-credit > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wrapper-up-credit lable {
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.wrapper-up-credit input:not([type="checkbox"]):not([type="radio"]),
.wrapper-up-credit select,
.wrapper-up-credit .select2-container {
    width: 100% !important;
    height: var(--field-height);
    font-size: 14px;
}

#credit_update_input {
    text-align: center;
    font-size: 22px !important;
    font-weight: bold;
    background-color: #f9f9f9 !important;
}

/* =============================
   INCREASE / DECREASE
============================= */
.credit-wrapper {
    position: relative;
    width: 100%;
}

.credit-wrapper input {
    width: 100%;
    padding-right: 40px !important;
}

.credit-wrapper span.prefix {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.credit-wrapper.increase input {
    border-left: 6px solid #28a87c !important;
}

.credit-wrapper.increase span.prefix {
    background-color: #28a87c;
}

.credit-wrapper.decrease input {
    border-left: 6px solid #dd2828 !important;
}

.credit-wrapper.decrease span.prefix {
    background-color: #dd2828;
}

.bulk-actions {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px;
    z-index: 999;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bulk-actions.hidden {
    display: none;
}

#cancelEditBtn {
    display: none;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    margin-top: 0;
}

.status-used {
    background-color: green;
}

.status-expired {
    background-color: red;
}

.status-dots-wrapper {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
    margin-left: 3px;
}

.bulk-bar {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 999999;
    border-bottom: 2px solid #000;
    padding: 15px 0;
    margin-bottom: 20px;
}

.date-filter-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.date-filter-box button {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #2f80ed;
    color: #fff;
}

.date-filter-box .secondary {
    background: #777;
}

.club-tab-content {
    display: none;
}

.club-tab-content.active {
    display: block;
}

/* =========================================================
   MDS PERSIAN DATEPICKER - SAFE LOCAL STYLE FIX
   این بخش فقط ظاهر خود تقویم را اصلاح می‌کند و به قالب اصلی دست نمی‌زند
========================================================= */
.mds-bs-persian-datetime-picker-popover,
.mds-bs-persian-datetime-picker-modal,
.mds-bs-dtp-container {
    font-family: 'Shabnam', sans-serif !important;
    direction: rtl !important;
    color: #243746 !important;
}

.mds-bs-persian-datetime-picker-popover {
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px rgba(37, 78, 98, 0.18) !important;
    background: #ffffff !important;
    z-index: 999999999 !important;
}

.mds-bs-dtp-container {
    min-width: 310px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 0px !important;
    overflow: visible !important;
}

/* جلوگیری از اثر استایل عمومی جدول‌های پروژه روی تقویم */
.mds-bs-dtp-container table,
.mds-bs-dtp-container thead,
.mds-bs-dtp-container tbody,
.mds-bs-dtp-container tfoot,
.mds-bs-dtp-container tr,
.mds-bs-dtp-container th,
.mds-bs-dtp-container td {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.mds-bs-dtp-container table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
}

.mds-bs-dtp-container th,
.mds-bs-dtp-container td {
    padding: 3px !important;
    font-size: 13px !important;
    max-width: none !important;
}

/* جلوگیری از اثر button عمومی پروژه روی دکمه‌های تقویم */
.mds-bs-dtp-container button,
.mds-bs-dtp-container .btn,
.mds-bs-persian-datetime-picker-popover button,
.mds-bs-persian-datetime-picker-popover .btn,
.mds-bs-persian-datetime-picker-modal button,
.mds-bs-persian-datetime-picker-modal .btn {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border-radius: 9px !important;
    border: 1px solid transparent !important;
    background: #f7fbfd !important;
    color: #243746 !important;
    font-family: 'Shabnam', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.mds-bs-dtp-container .btn {
    width: 100% !important;
}

.mds-bs-dtp-container button:hover,
.mds-bs-dtp-container .btn:hover {
    background: #eaf7fb !important;
    border-color: #cbe8f2 !important;
    color: #17657d !important;
}

/* input های داخلی تقویم نباید ظاهر فیلدهای پروژه را بگیرند */
.mds-bs-dtp-container input,
.mds-bs-persian-datetime-picker-popover input,
.mds-bs-persian-datetime-picker-modal input {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 3px 6px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #243746 !important;
    box-shadow: none !important;
    text-align: center !important;
    font-family: 'Shabnam', sans-serif !important;
}

.mds-bs-dtp-container input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(124, 200, 223, 0.18) !important;
}

/* روزها */
.mds-bs-dtp-container table table tbody.days tr:first-child > td {
    color: #7b8d99 !important;
    font-weight: 700 !important;
    padding-bottom: 7px !important;
}

.mds-bs-dtp-container table table tbody.days td[data-day] {
    border-radius: 9px !important;
    transition: 0.15s ease !important;
}

.mds-bs-dtp-container table table tbody.days td[data-day]:not([data-special-date]):hover {
    background: #eaf7fb !important;
    color: #17657d !important;
}

.mds-bs-dtp-container table table tbody.days td[data-day][data-today] {
    background: #e6f9f3 !important;
    color: #009a69 !important;
    font-weight: 700 !important;
}

.mds-bs-dtp-container table table tbody.days td[data-day][data-mds-dtp-selected-day] {
    background: #28a87c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.mds-bs-dtp-container table table tbody.days td[data-pm],
.mds-bs-dtp-container table table tbody.days td[data-nm],
.mds-bs-dtp-container table table tbody.days td[disabled] {
    opacity: 0.28 !important;
}

/* لیست سال و منوها */
.mds-bs-dtp-container .select-year-box,
.mds-bs-dtp-container .select-year-inline-box,
.mds-bs-dtp-container .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e4edf2 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(37, 78, 98, 0.12) !important;
}

.mds-bs-dtp-container .dropdown-item {
    padding: 6px 8px !important;
    border-radius: 8px !important;
    color: #243746 !important;
    background: transparent !important;
}

.mds-bs-dtp-container .dropdown-item:not(.disabled):hover {
    background: #eaf7fb !important;
}

/* عنوان مدال */
[data-mds-dtp] .modal-title {
    line-height: 1.6 !important;
    width: 100% !important;
    text-align: center !important;
    font-family: 'Shabnam', sans-serif !important;
}


.mds-bs-dtp-container .dropdown-menu{
    display:none;
}

.mds-bs-dtp-container .dropdown-menu.show{
    display:block;
}
h3.popover-header.text-center.p-1 {
    margin: 0 !important;
    text-align: center;
    padding: 15px 0;
}

.dt-top-bar {
    background-color: #feebd9;
    width: 100%;
    height: 75px;
    padding: 15px 15px 0 15px;
    border-radius: 15px 15px 0 0;
}
.dt-bottom-bar {
    background-color: #f0f0f0;
    width: 100%;
    height: 75px;
    padding: 0px 15px 15px 15px;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #c0c0c0;
}
div#dailyLeadsTable_paginate {
    background-color: #fff;
}
div#dailyLeadsTable_info {
    background-color: #fff;
}

.call-success-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #bfc3c9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0px 10px;
}
.call-success-btn.active{background:#19c37d}
.call-success-btn img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

tr td{
    transition: border-color .18s ease;
}
tr.row-editing td { 
    border-top-color: #ffd000 !important; 
    border-bottom-color: #ffd000 !important; 
}

#dailyLeadsTable input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea {
    min-width: 130px !important;
}
/* =============================
   GLOBAL FLOATING / OVERLAP LABELS
   فقط برای فیلدهایی که واقعاً لیبل بالایی دارند
============================= */
.float-label-box{
    position:relative !important;
    padding-top:9px !important;
}

.float-label-box > .floating-label-caption,
.float-label-box > label.floating-label-caption,
.float-label-box > lable.floating-label-caption,
.float-label-nested > .floating-label-caption{
    position:absolute !important;
    top:0 !important;
    left:14px !important;
    right:auto !important;
    z-index:8 !important;
    display:inline-flex !important;
    align-items:center !important;
    min-height:18px !important;
    line-height:18px !important;
    padding:0 8px !important;
    margin:0 !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#5f7482 !important;
    font-size:11px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    pointer-events:none !important;
}

.float-label-box > .has-floating-label-control,
.float-label-box > input.has-floating-label-control,
.float-label-box > select.has-floating-label-control,
.float-label-box > textarea.has-floating-label-control,
.float-label-box > .select2-container.has-floating-label-control{
    width:100% !important;
    margin-top:0 !important;
}

.float-label-box > textarea.has-floating-label-control{
    padding-top:13px !important;
}

.float-label-nested{
    display:block !important;
}

.float-label-nested > input.has-floating-label-control,
.float-label-nested > select.has-floating-label-control,
.float-label-nested > textarea.has-floating-label-control{
    display:block !important;
    width:100% !important;
}

.float-label-box .select2-container .select2-selection--single,
.float-label-box .select2-container .select2-selection--multiple{
    padding-top:6px !important;
}

@media(max-width:768px){
    .float-label-box > .floating-label-caption,
    .float-label-box > label.floating-label-caption,
    .float-label-box > lable.floating-label-caption,
    .float-label-nested > .floating-label-caption{
        left:12px !important;
        font-size:10.5px !important;
    }
}

/* Modern shared app header - unified with consultant header style */
.main-header.app-minimal-header{
    height:auto!important;
    min-height:72px;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px;
    flex-wrap:wrap;
    background:#fff!important;
    border-radius:18px;
    padding:14px 18px!important;
    margin:16px 18px!important;
    box-shadow:0 10px 28px rgba(15,23,42,.06)!important;
    border:1px solid #eef1f4!important;
    color:#263238!important;
    font-family:'Shabnam', sans-serif;
}
.main-header.app-minimal-header .app-header-user-area{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    min-width:210px;
}
.main-header.app-minimal-header .app-header-avatar{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border-radius:50%!important;
    background:#f3e8ff!important;
    border:1px solid #eadcf0!important;
    color:#7b1f8a!important;
    box-shadow:none!important;
    font-size:18px!important;
    font-weight:900!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.main-header.app-minimal-header .app-header-user-text{display:flex;flex-direction:column;gap:4px;line-height:1.25;}
.main-header.app-minimal-header .app-header-user-name{font-size:15px;font-weight:900;color:#263238;white-space:nowrap;}
.main-header.app-minimal-header .app-header-user-meta{font-size:12px;color:#607080;font-weight:700;white-space:nowrap;}
.main-header.app-minimal-header .app-header-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex:1 1 auto;
    flex-wrap:wrap;
}
.main-header.app-minimal-header a,
.main-header.app-minimal-header button{
    margin:0!important;
    text-decoration:none!important;
    font-size:13px!important;
    line-height:1.2!important;
}
.main-header.app-minimal-header .app-header-link{
    min-height:40px;
    padding:10px 14px!important;
    border-radius:12px!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:850!important;
    color:#263238!important;
    background:#f7f9fb!important;
    border:1px solid #e5e7eb!important;
    transition:.18s ease;
}
.main-header.app-minimal-header .app-header-link:hover{
    background:#edf8ff!important;
    color:#175cd3!important;
    border-color:#cfe8ff!important;
    transform:translateY(-1px);
}
.main-header.app-minimal-header .app-header-actions{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex-wrap:wrap;
}
.main-header.app-minimal-header .consultant-header-btn{
    border:0;
    border-radius:12px;
    padding:10px 14px!important;
    cursor:pointer;
    font-weight:850!important;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:40px;
    width:auto!important;
}
.main-header.app-minimal-header .consultant-profile-btn,
.main-header.app-minimal-header .app-profile-link{
    background:#edf8ff!important;
    color:#175cd3!important;
    border:1px solid #cfe8ff!important;
}
.main-header.app-minimal-header .consultant-logout-btn,
.main-header.app-minimal-header .logout-btn{
    background:#fdecec!important;
    color:#b3261e!important;
    border:1px solid #f5b5b5!important;
}
@media(max-width:900px){
    .main-header.app-minimal-header{align-items:stretch!important;margin:12px!important;padding:12px!important;border-radius:16px;}
    .main-header.app-minimal-header .app-header-user-area,
    .main-header.app-minimal-header .app-header-nav,
    .main-header.app-minimal-header .app-header-actions{width:100%;}
    .main-header.app-minimal-header .app-header-nav{justify-content:flex-start;}
    .main-header.app-minimal-header .app-header-link{flex:1 1 calc(50% - 8px);}
    .main-header.app-minimal-header .app-header-actions .consultant-header-btn{flex:1;}
}
@media(max-width:520px){
    .main-header.app-minimal-header .app-header-link{flex:1 1 100%;}
}

/* =========================================================
   Global panel header - exact consultant-app-header style
   Replaces old navy header without touching page logic
========================================================= */
.global-panel-header.consultant-app-header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    flex-wrap:wrap !important;
    height:auto !important;
    min-height:unset !important;
    background:#fff !important;
    border-radius:18px !important;
    padding:14px 18px !important;
    margin:16px 18px !important;
    box-shadow:0 10px 28px rgba(15, 23, 42, .06) !important;
    border:1px solid #eef1f4 !important;
    color:#263238 !important;
    font-family:'Shabnam', sans-serif !important;
}
.global-panel-header .consultant-app-header-right,
.global-panel-header .global-header-user-area{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    min-width:220px;
}
.global-panel-header .consultant-header-avatar.global-header-avatar{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    background:#f3e8ff !important;
    border:1px solid #eadcf0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-weight:900 !important;
    color:#7b1f8a !important;
    box-shadow:none !important;
}
.global-panel-header .consultant-header-name.global-header-name{
    font-size:16px !important;
    font-weight:900 !important;
    color:#263238 !important;
    margin-bottom:4px !important;
    white-space:nowrap;
}
.global-panel-header .consultant-header-meta.global-header-meta{
    font-size:12px !important;
    color:#607080 !important;
    display:flex !important;
    gap:8px !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    font-weight:700 !important;
}
.global-panel-header .global-header-nav{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    flex:1 1 auto !important;
    flex-wrap:wrap !important;
}
.global-panel-header .global-header-link{
    min-height:40px !important;
    padding:10px 14px !important;
    border-radius:12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-weight:850 !important;
    color:#263238 !important;
    background:#f7f9fb !important;
    border:1px solid #e5e7eb !important;
    text-decoration:none !important;
    margin:0 !important;
    transition:.18s ease !important;
}
.global-panel-header .global-header-link:hover,
.global-panel-header .global-header-link.is-active{
    background:#edf8ff !important;
    color:#175cd3 !important;
    border-color:#cfe8ff !important;
    transform:translateY(-1px);
}
.global-panel-header .consultant-app-header-left,
.global-panel-header .global-header-actions{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:wrap !important;
}
.global-panel-header .consultant-header-btn{
    border:0 !important;
    border-radius:12px !important;
    padding:10px 14px !important;
    cursor:pointer !important;
    font-weight:800 !important;
    text-decoration:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    min-height:40px !important;
    width:auto !important;
    margin:0 !important;
    font-size:13px !important;
}
.global-panel-header .consultant-profile-btn,
.global-panel-header .global-profile-link{
    background:#edf8ff !important;
    color:#175cd3 !important;
    border:1px solid #cfe8ff !important;
}
.global-panel-header .consultant-logout-btn,
.global-panel-header .global-logout-link{
    background:#fdecec !important;
    color:#b3261e !important;
    border:1px solid #f5b5b5 !important;
}
@media(max-width:900px){
    .global-panel-header.consultant-app-header{
        align-items:stretch !important;
        margin:12px !important;
        padding:12px !important;
        border-radius:16px !important;
    }
    .global-panel-header .consultant-app-header-right,
    .global-panel-header .global-header-nav,
    .global-panel-header .consultant-app-header-left{
        width:100% !important;
    }
    .global-panel-header .global-header-nav{justify-content:flex-start !important;}
    .global-panel-header .global-header-link{flex:1 1 calc(50% - 8px) !important;}
    .global-panel-header .consultant-header-btn{flex:1 !important;}
}
@media(max-width:520px){
    .global-panel-header .global-header-link{flex:1 1 100% !important;}
}


/* Smooth first table paint: prevents empty DataTables flash before first AJAX result */
.js-table-initial-loading,
.js-table-initial-loading + .dataTables_wrapper,
.dataTables_wrapper:has(.js-table-initial-loading){
    opacity: 0;
    visibility: hidden;
}
.js-table-initial-loading.is-table-ready,
.js-table-initial-loading.is-table-ready + .dataTables_wrapper,
.dataTables_wrapper:has(.js-table-initial-loading.is-table-ready){
    opacity: 1;
    visibility: visible;
    transition: opacity .16s ease;
}


/* Initial CRM table boot mask: prevents the empty DataTables draw flash on page refresh */
body.crm-tables-booting #leadsTable,
body.crm-tables-booting #leadsTable_wrapper,
body.crm-tables-booting #clubCustomersTable,
body.crm-tables-booting #clubCustomersTable_wrapper,
body.crm-tables-booting #dailyLeadsTable,
body.crm-tables-booting #dailyLeadsTable_wrapper{
    opacity:0 !important;
    visibility:hidden !important;
}
body:not(.crm-tables-booting) #leadsTable_wrapper,
body:not(.crm-tables-booting) #clubCustomersTable_wrapper,
body:not(.crm-tables-booting) #dailyLeadsTable_wrapper{
    opacity:1;
    visibility:visible;
    transition:opacity .18s ease;
}
