#menu_top_main_header {
    background-color : #FFFFFF !important;
    z-index: 9;
}
.btn.btn-info {
    background-color : #009baa !important;
    color : #FFFFFF !important;
    border : #009baa solid 1px !important;
    border-radius : 0.375rem !important;
}

.btn-check:checked + .btn {
    background-color: #009baa !important;
    color: #FFFFFF !important;
    border: 1px solid #009baa !important;
    border-radius: 0.375rem !important;
}

.btn-check + .btn:active {
    background-color: #009baa !important;
    color: #FFFFFF !important;
    border: 1px solid #009baa !important;
}

.btn.btn-info.dropdown-toggle {
    background-color : #FFFFFF !important;
    color : #333333 !important;
    border : #AAAAAA solid 1px !important;
    border-radius : 0.375rem !important;
}

.btn.btn-info.dropdown-toggle:hover {
    background-color : #DDDDDD !important;
    color : #333333 !important;
    border : #AAAAAA solid 1px !important;
    border-radius : 0.375rem !important;
}

.btn.btn-info.dropdown-toggle.show {
    background-color : #009baa !important;
    color : #FFFFFF !important;
}

.iframe-container {
    height: calc(100vh - 26vh);
    overflow: hidden;
}

.iframe-scroll {
    width: 100%;
    height: 100%;
    border: none;
    overflow-y: auto;
    display: block;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-select-ul {
    overflow-y: auto;
    max-height: 200px;
}

input[readonly], select[readonly] {
    background-color: #d7ebec;
    cursor: not-allowed;
}

.file-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-bottom: 1px solid #009baa !important;
    border-radius: .5rem .5rem 0 0;
    background: #f8f9fa;
    margin-right: .25rem;
    padding: .5rem 1rem;
    box-shadow: inset 12px -3px 10px 0px rgba(0, 0, 0, 0.06);
    color: #6c757d;
}

.file-tabs .nav-link:hover {
    background: #e9ecef;
}

.file-tabs .nav-link.active {
    background: white;
    font-weight: 600;
    color: #009baa;
    border: 1px solid #009baa;
    border-bottom: 1px solid white !important;
    box-shadow: none;
}
.div-onglet {
    border-left: 1px solid #009baa; 
    border-right: 1px solid #009baa;
    background: #fff;
    min-height: 350px;
    padding-bottom: 150px;
}
input.lowercase {
    text-transform: lowercase;
}
input.lowercase { 
    text-transform: lowercase; 
}
input.capitalize {
    text-transform: capitalize;
}

/* DataTable */
#myTable thead tr:first-child th {
    background-color: #3D85AF;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    border-bottom: 2px solid #185FA5;
}
#myTable thead tr:nth-child(2) th {
    background-color: #fff;
    padding: 6px 8px;
}
#myTable thead tr:nth-child(2) th input {
    width: 100%;
    font-size: 12px;
    padding: 3px 8px;
    border: 0.5px solid #B5D4F4;
    border-radius: 6px;
    color: #185FA5;
    outline: none;
}
#myTable thead tr:nth-child(2) th input::placeholder {
    color: #B5D4F4;
}
#myTable thead tr:nth-child(2) th input:focus {
    border-color: #3D85AF;
    box-shadow: 0 0 0 2px rgba(55,138,221,.15);
}
#myTable tbody tr { transition: background .1s; }
#myTable tbody tr:hover { background: #f0f6fd !important; }
#myTable tbody td { font-size: 13px; vertical-align: middle; }
#myTable tfoot tr th {
    background-color: #3D85AF;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
}

/* "Drapeau" BAYROL sur les boutons lieu */
.fi-byr {
    background-color: white;
    background-image: url('https://www.bayrol.fr/themes/custom/bayrol/favicon.ico') !important;
    clip-path: inset(0% 12% 0% 12%);
}

/* Géolocalisation */
#adresse_suggestions .list-group-item {
    cursor: pointer;
}

#adresse_suggestions .list-group-item:hover,
#adresse_suggestions .list-group-item.active {
    background-color: #f8f9fa;
}

/* Statistiques */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.kpi {
    background: var(--bs-secondary-bg, #f8f9fa);
    border-radius: 8px;
    padding: 14px 16px;
}
.kpi-label {
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 4px;
    font-weight: 400;
}
.kpi-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    margin: 0;
    line-height: 1.1;
}
.kpi-sub {
    font-size: 12px;
    margin: 3px 0 0;
    color: var(--bs-secondary-color, #6c757d);
}
.kpi.kpi-primary {
    background: #EEEDFE;
}
.kpi.kpi-primary .kpi-label,
.kpi.kpi-primary .kpi-value {
    color: #3C3489;
}
.kpi.kpi-primary .kpi-sub {
    color: #3C3489;
}
.kpi.kpi-success {
    background: #EAF3DE; 
}
.kpi.kpi-success .kpi-label,
.kpi.kpi-success .kpi-value {
    color: #3B6D11;
}
.kpi.kpi-success .kpi-sub {
    color: #3B6D11;
}
.kpi.kpi-warn {
    background: #FAECE7;
}
.kpi.kpi-warn .kpi-label,
.kpi.kpi-warn .kpi-value {
    color: #993C1D;
}
.kpi.kpi-warn .kpi-sub {
    color: #993C1D;
}
.kpi.kpi-unsub {
    background: #FCEBEB;
}
.kpi.kpi-unsub .kpi-label,
.kpi.kpi-unsub .kpi-value {
    color: #A32D2D;
}
.kpi.kpi-unsub .kpi-sub {
    color: #A32D2D;
}
.kpi.kpi-send {
    background: #E6F1FB;
}
.kpi.kpi-send .kpi-label,
.kpi.kpi-send .kpi-value {
    color: #185FA5;
}
.kpi.kpi-send .kpi-sub {
    color: #185FA5;
}

.vagues-section-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 10px;
}
.vague-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 14px;
}
.vague-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
.vague-dot.past   { background: #1D9E75; }
.vague-dot.today  { background: #378ADD; }
 
.vague-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 13px;
}
.vague-num {
    min-width: 56px;
    font-weight: 500;
    color: var(--bs-body-color, #212529);
}
.vague-date {
    min-width: 86px;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 12px;
}
.vague-bar-wrap {
    flex: 1;
    height: 20px;
    background: var(--bs-secondary-bg, #f0f0f0);
    border-radius: 4px;
    overflow: hidden;
}
.vague-bar {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 500;
    box-sizing: border-box;
    min-width: 24px;
}
.vague-bar.past  { background: #9FE1CB; color: #085041; }
.vague-bar.today { background: #378ADD; color: #fff; }
.vague-count {
    min-width: 72px;
    text-align: right;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.badge-stat {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-sent     { background: #E6F1FB; color: #185FA5; }
.badge-opened   { background: #EAF3DE; color: #3B6D11; }
.badge-clicked  { background: #EEEDFE; color: #3C3489; }
.badge-bounce,
.badge-hardbounced,
.badge-softbounced,
.badge-deferred { background: #FAECE7; color: #993C1D; }
.badge-spam,
.badge-blocked,
.badge-unsub    { background: #FCEBEB; color: #A32D2D; }

.badge-vague {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: #F1EFE8;
    color: #5F5E5A;
    white-space: nowrap;
}

/* Calendrier Stat */
#cal-emailing-root {
    font-family: var(--bs-body-font-family, sans-serif);
}
.cal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-nav button {
    background: none;
    border: 0.5px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--bs-body-color, #212529);
}
.cal-nav button:hover {
    background: var(--bs-secondary-bg, #f8f9fa);
}
.cal-month-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    min-width: 130px;
    text-align: center;
}
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
}
.cal-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day-name {
    font-size: 11px;
    color: var(--bs-secondary-color, #6c757d);
    text-align: center;
    padding: 4px 0 8px;
}
.cal-cell {
    min-height: 76px;
    border: 0.5px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    padding: 5px 6px;
    background: var(--bs-body-bg, #fff);
}
.cal-cell.cal-other-month {
    background: var(--bs-secondary-bg, #f8f9fa);
    opacity: .6;
}
.cal-cell.cal-today {
    border-color: #378ADD;
    border-width: 1.5px;
}
.cal-cell-num {
    font-size: 11px;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 4px;
    line-height: 1;
}
.cal-cell.cal-today .cal-cell-num {
    color: #185FA5;
    font-weight: 500;
}
.cal-vague-pill {
    display: block;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 20px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}
.toggle-view-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.toggle-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 18px;
    border: 0.5px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-secondary-bg, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.toggle-view-btn:first-child {
    border-radius: 6px 0 0 6px;
}
.toggle-view-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}
.toggle-view-btn.active {
    background: #185FA5;
    color: #E6F1FB;
    border-color: #185FA5;
}
.toggle-view-btn:not(.active):hover {
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}