/* ======================================================
   HealthyDiab – Global Stylesheet (Syncfusion Edition)
   Palette: Vert médical (#2E7D32 primaire) + Blanc + Gris
   ====================================================== */

:root {
    --hd-green-dark:    #1B5E20;
    --hd-green:         #2E7D32;
    --hd-green-med:     #43A047;
    --hd-green-light:   #A5D6A7;
    --hd-green-xlight:  #E8F5E9;
    --hd-white:         #FFFFFF;
    --hd-gray-bg:       #F5F5F5;
    --hd-gray-light:    #EEEEEE;
    --hd-gray:          #9E9E9E;
    --hd-text-primary:  #212121;
    --hd-text-secondary:#616161;
    --hd-danger:        #C62828;
    --hd-warning:       #F57F17;
    --hd-info:          #0277BD;
    --hd-shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
    --hd-shadow-md:     0 4px 16px rgba(0,0,0,0.10);
    --hd-radius:        8px;
    --hd-radius-lg:     16px;
    --hd-sidebar-width: 260px;
   
}

/*#search-wrapper {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.276);
    align-items: stretch;
    border-radius: 50px;
    background-color: #d1ecf1;
    overflow: hidden;
    width: 300px;
    box-shadow: 2px 1px 5px 1px rgba(0, 0, 0, 0.273);
}

#search {
    border: none;
    width: 100%;
    font-size: 15px;
}

    #search:focus {
        outline: none;
    }

.search-icon {
    margin: 5px;
    color: rgba(0, 0, 0, 0.564);
}


legend.d-flex {
    display: flex;
    align-items: center;
    width: auto;
}

legend h4 {
    margin-bottom: 0;
    margin-right: 1rem;
}

.bold {
    font-weight: 700;
}


.doc-container {
    position: relative;
    display: inline-block;
}

.delete-btn {
    position: absolute;
    top: 0;
    right: 45px;
    z-index: 2;
}

.confirm-popup {
    position: absolute;
    top: 0;
    right: -50px;
    background: white;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}*/


/* Pour modifier la bordure du combo quand il est ouvert */
/*.e-ddl.e-popup-open {
    border-color: #007bff !important;*/ /* Couleur bleue */
    /*box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important;
}*/

/* Pour modifier également la bordure du dropdown qui apparaît */
/*.e-dropdownbase.e-popup {
    border: 1px solid #007bff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3) !important;
}

.custom-fieldset {
    position: relative;*/
    /* border: 1px solid #ccc; */
    /*border-radius: 4px;
    padding: 0px 0px 0px 0px;*/
    /* margin-bottom: 15px; */
/*}

.custom-legend {
    position: absolute;
    top: -13px;
    left: 10px;
    background-color: white;
    border-radius: 10px;
    padding: 0 8px;
    font-size: 14px;
    color: #666;
    z-index: 5;
    font-weight: 700;
    color: #0a0a0a;
}

.legend-combo {
    width: 100%;
}

.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}


.modal-footer {
    padding: .1rem;
    border-top: 4px solid #d1ecf1 !important;
}

.e-grid .e-rowcell {
    border-style: solid;
    border-width: 1px 0 0;
    display: table-cell;
    font-size: 14px;
    line-height: 22px;
    overflow: hidden;*/
    /* padding: 6px 8px; */
    /*vertical-align: middle;
    white-space: nowrap;
    width: auto;
}*/

/* Style de base du fieldset */
/*fieldset {
    border: 2px solid #007bff;*/ /* Bordure bleue */
    /*border-radius: 8px;*/ /* Coins arrondis */
    /*padding: 15px;
    margin: 5px 0;*/
    /*background-color: #f8f9fa;*/ /* Fond l�ger */
    /*box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}*/

    /* Lorsque l'on survole le fieldset */
    /*fieldset:hover {
        border-color: #0056b3;*/ /* Changement de couleur au survol */
    /*}*/

/* Style de la l�gende */
/*legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff;
    width: auto;
    margin-top: -30px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 4px solid #d1ecf1;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}*/

*, *::before, *::after { box-sizing: border-box; }

/* ── Modal overlay ──────────────────────────────────────────────────── */
/* ── Modal overlay ──────────────────────────────────────────────────── */
/*.hd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    animation: hd-fade-in 0.15s ease;
}

.hd-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: hd-slide-up 0.2s ease;
}*/

/* ── Modal header ───────────────────────────────────────────────────── */
/*.hd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.hd-modal-close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

    .hd-modal-close:hover {
        background: rgba(255,255,255,0.3);
    }

    .hd-modal-close .material-icons {
        font-size: 18px;
    }*/

/* ── Modal body ─────────────────────────────────────────────────────── */
/*.hd-modal-body {
    padding: 24px 24px 16px;
    max-height: 65vh;
    overflow-y: auto;
}*/

/* ── Modal footer ───────────────────────────────────────────────────── */
/*.hd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #F0F0F0;
    background: #FAFAFA;
}*/

/* ── Info grid (consultation) ───────────────────────────────────────── */
/*.hd-modal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-modal-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #F9F9F9;
    border-radius: 8px;
}

.hd-modal-info-label {
    font-size: 11px;
    color: #9E9E9E;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-modal-info-value {
    font-size: 13px;
    font-weight: 500;
    color: #212121;
}*/

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes hd-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hd-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

html, body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--hd-gray-bg);
    /* background-image: url('/images/background2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; */
    color: var(--hd-text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}


::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--hd-gray-light); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--hd-green-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--hd-green-med); }

/* ===== LAYOUT ===== */
.hd-layout { display: flex;
    min-height: 100vh; 
}

.hd-sidebar {
    width: var(--hd-sidebar-width);
    background: var( --hd-green-xlight);
    color:black !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.25s ease;
    overflow-y: auto;
}
.hd-sidebar-closed { transform: translateX(calc(-1 * var(--hd-sidebar-width))); }
.hd-sidebar-open  { transform: translateX(0); }

.hd-sidebar-header {
    display: flex; align-items: center; gap: 10px;
    font-weight:bold;
    padding: 8px 8px;
    color: var(--hd-green);
    background: var(--hd-white);
}


.hd-sidebar-logo-icon { color: var(--hd-green); font-size: 32px; }
.hd-sidebar-title  { 
    /*color: var(--hd-green);*/
    font-weight: 700; font-size: 16px;
    line-height: 1.1; 

}
.hd-sidebar-subtitle {
    /*color: rgba(255,255,255,0.75);*/
    font-size: 11px; 

}

.hd-sidebar-user {
    padding: 10px 12px;
    margin: 8px;
    /*background: linear-gradient(135deg, #1B5E20, #43A047);*/
    background: var(--hd-green-dark);
    color: white;
    border-radius: 8px;
}
.hd-sidebar-username { color: white; font-size: 13px; font-weight: 500; }

.hd-sidebar-footer { margin-top: auto; padding: 12px; }

.hd-main-area {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}
.hd-main-shifted { margin-left: var(--hd-sidebar-width); }

/* ===== NAV ===== */
.hd-nav { padding: 8px; flex: 1; }

/*.hd-nav-section-label {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
    text-transform: uppercase;
}*/

.hd-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 7px;
    border-radius: 6px;
    /*color: rgba(255,255,255,0.85);*/
    color: black;
    font-size: 16px;
    text-decoration: none;
    margin: 1px 0;
    transition: background 0.15s;
}
    .hd-nav-link:hover {
        background: var(--hd-green-med);
        color: white;
    }

    .hd-nav-link.active {
        background: var(--hd-green-med);
        color: white;
        font-weight: 600;
    }
.hd-nav-link-nested { margin-left: 16px; font-size: 13px; }

.hd-nav-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    /*color: rgba(255,255,255,0.85);*/
    color: black;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s;
}
.hd-nav-group-title:hover { background: rgba(255,255,255,0.1); }
.hd-nav-arrow { margin-left: auto; font-size: 18px !important; }
.hd-nav-group-items { margin-left: 4px; }

/* ===== APP BAR ===== */
.hd-appbar {
    display: flex; align-items: center;
    padding: 0 16px;
    height: 56px;
    background: white;
    border-bottom: 1px solid var(--hd-gray-light);
    box-shadow: var(--hd-shadow-sm);
    position: sticky; top: 0; z-index: 50;
    gap: 12px;
}
.hd-appbar-menu-btn {
    background: none; border: none; cursor: pointer;
    padding: 6px; border-radius: 6px;
    color: var(--hd-text-primary);
    display: flex; align-items: center;
}
.hd-appbar-menu-btn:hover { background: var(--hd-gray-bg); }
.hd-appbar-breadcrumb { flex: 1; }
.hd-appbar-actions { display: flex; align-items: center; gap: 4px; }
.hd-appbar-icon-btn {
    background: none; border: none; cursor: pointer; border-radius: 50%;
    /*width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;*/
    display: flex; align-items: center; justify-content: center;
    color: var(--hd-text-primary);
}
.hd-appbar-icon-btn:hover { background: var(--hd-gray-bg); }

/* ===== CONTENT ===== */


.hd-layout {
    display: flex;
    width: 100%;
    min-width: 0;
}

.hd-main-area {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background-color: #e0e8e8;
}

.hd-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: auto;
    background-color: #e0e8e8;
}

   

#search-wrapper {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.276);
    align-items: stretch;
    border-radius: 50px;
    background-color: #d1ecf1;
    overflow: hidden;
    width: 300px;
    box-shadow: 2px 1px 5px 1px rgba(0, 0, 0, 0.273);
}

@media (max-width: 768px) {

    .hd-content {
        padding: 12px;
    }

    .hd-main-area {
        width: 100%;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* ===== PROFILE DROPDOWN ===== */
.hd-profile-menu { position: relative; }
.hd-dropdown-menu {
    position: absolute; top: 44px; right: 0;
    background: white; border-radius: 8px;
    box-shadow: var(--hd-shadow-md);
    min-width: 180px; z-index: 200;
    border: 1px solid var(--hd-gray-light);
    overflow: hidden;
}
.hd-dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; font-size: 13px;
    text-decoration: none; color: var(--hd-text-primary);
    cursor: pointer; background: none; border: none; width: 100%;
    text-align: left;
}
.hd-dropdown-item:hover { background: var(--hd-gray-bg); }
.hd-dropdown-divider { height: 1px; background: var(--hd-gray-light); }

/* ===== CARDS ===== */
.hd-card {
    background: white;
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow-sm);
}
.hd-card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.hd-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--hd-shadow-md);
}
.hd-stat-card { background: white; border-radius: var(--hd-radius); padding: 20px; box-shadow: var(--hd-shadow-sm); }
.hd-stat-row  { display: flex; align-items: center; justify-content: space-between; }
.hd-stat-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hd-stat-label { color: #616161; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.hd-stat-value { font-weight: 700; font-size: 1.8rem; line-height: 1.2; }
.hd-stat-unit  { font-size: 14px; font-weight: 400; }
.hd-stat-sub   { font-size: 12px; }
.hd-stat-footer { font-size: 14px; color: #9E9E9E; }
.hd-card-header-row { display: flex; align-items: center; justify-content: space-between; }

/* ===== GRIDS ===== */
.hd-grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hd-grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.hd-grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.hd-grid-4-8 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.hd-grid-8-4 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hd-grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hd-flex-col { display: flex; flex-direction: column; }
@media (max-width: 900px) {
    .hd-grid-2, .hd-grid-3, .hd-grid-4, .hd-grid-4-8, .hd-grid-8-4 { grid-template-columns: 1fr; }
    .hd-sidebar-open { transform: translateX(0); }
    .hd-main-shifted { margin-left: 0; }
}

/* ===== BUTTONS ===== */
.hd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500; font-size: 13.5px;
    border: none; cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    text-transform: none; letter-spacing: 0;
    line-height: 1.4;
}
.hd-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hd-btn-sm { padding: 5px 12px; font-size: 14px; }
.hd-btn-lg { padding: 12px 24px; font-size: 15px; }
.hd-btn-full { width: 100%; }
.hd-btn-primary { background: var(--hd-green); color: white; }
.hd-btn-primary:hover { background: var(--hd-green-dark); }
.hd-btn-primary.active { background: var(--hd-green-dark); }
.hd-btn-success { background: #388E3C; color: white; }
.hd-btn-success:hover { background: #2E7D32; }
.hd-btn-warning { background: #F57F17; color: white; }
.hd-btn-warning:hover { background: #E65100; }
.hd-btn-outline-primary { background: white; color: var(--hd-green); border: 1.5px solid var(--hd-green); }
.hd-btn-outline-primary:hover { background: var(--hd-green-xlight); }
.hd-btn-outline-danger { background: white; color: var(--hd-danger); border: 1.5px solid var(--hd-danger); }
.hd-btn-outline-danger:hover { background: #FFEBEE; }
.hd-btn-text { background: none; color: var(--hd-green); padding: 4px 8px; }
.hd-btn-text:hover { background: var(--hd-green-xlight); }
.hd-btn-group { display: flex; }
.hd-btn-group .hd-btn { border-radius: 0; border-right: none; }
.hd-btn-group .hd-btn:first-child { border-radius: 6px 0 0 6px; }
.hd-btn-group .hd-btn:last-child  { border-radius: 0 6px 6px 0; border-right: 1.5px solid var(--hd-green); }
.hd-icon-btn { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 4px; line-height: 0; }
.hd-icon-btn:hover { background: var(--hd-gray-bg); }
.ml-2 { margin-left: 8px !important; }

/* ===== BADGES ===== */
.hd-badge {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px; border-radius: 6px;
    font-size: 15px; font-weight: 500;
}
.hd-badge-success { background: #E8F5E9; color: #2E7D32; }
.hd-badge-danger  { background: #FFEBEE; color: #C62828; }
.hd-badge-warning { background: #FFF8E1; color: #F57F17; }
.hd-badge-info    { background: #E3F2FD; color: #0277BD; }
.hd-badge-primary { background: #E8F5E9; color: #2E7D32; }
.hd-badge-default { background: #F5F5F5; color: #616161; }

/* ===== ALERTS ===== */
.hd-alert {
    padding: 10px 14px; border-radius: 8px; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
}
.hd-alert-danger  { background: #FFEBEE; color: #C62828; border-left: 3px solid #C62828; }
.hd-alert-warning { background: #FFF8E1; color: #F57F17; border-left: 3px solid #F57F17; }
.hd-alert-success { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #2E7D32; }
.hd-alert-info    { background: #E3F2FD; color: #0277BD; border-left: 3px solid #0277BD; }

/* ===== FORMS ===== */
.hd-form-group  { margin-bottom: 16px; }
.hd-label       { display: block; font-weight: 500; font-size: 13px; color: var(--hd-text-secondary); margin-bottom: 6px; }
.hd-hint        { font-size: 11.5px; color: #9E9E9E; margin-top: 4px; display: block; }
.hd-input-wrapper { position: relative; display: flex; align-items: center; }
.hd-input-icon  { position: absolute; left: 10px; color: #9E9E9E; font-size: 20px; pointer-events: none; z-index: 1; }
.hd-input-icon-right { position: absolute; right: 8px; background: none; border: none; cursor: pointer; color: #9E9E9E; }
.hd-check-group { display: flex; align-items: center; gap: 8px; }
.hd-check-row   { display: flex; flex-wrap: wrap; gap: 16px; }
.hd-form-row    { display: flex; gap: 8px; align-items: center; }
.hd-form-row-between { justify-content: space-between; }

/* ===== NATIVE INPUT (remplace SfTextBox) ===== */
.hd-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: var(--hd-radius);
    font-size: 13.5px;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--hd-text-primary);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    box-sizing: border-box;
}
.hd-input:focus {
    border-color: var(--hd-green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
.hd-input::placeholder { color: #BDBDBD; }
.hd-input-wrapper .hd-input { padding-right: 110px; }

/* ===== AVATARS ===== */
.hd-avatar {
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white;
}
.hd-avatar-primary { background: var(--hd-green); }
.hd-avatar-warning { background: #F57F17; }
.hd-avatar-xs  { width: 24px; height: 24px; font-size: 10px; }
.hd-avatar-sm  { width: 32px; height: 32px; font-size: 13px; }
.hd-avatar     { width: 40px !important; height: 40px !important; font-size: 15px; }
.hd-avatar-lg  { width: 52px; height: 52px; font-size: 18px; }
.hd-avatar-xl  { width: 80px; height: 80px; font-size: 28px; }

/* ===== MISC ===== */
.hd-divider { height: 1px; background: #EEEEEE; }
.hd-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #F5F5F5;
}
.hd-list-item:last-child { border-bottom: none; }
.hd-page-header { display: flex; align-items: center; justify-content: space-between; }
.hd-link { color: var(--hd-green); text-decoration: none; }
.hd-link:hover { text-decoration: underline; }
.hd-link-bold { font-weight: 600; }
.hd-section-title { font-size: 18px; font-weight: 700; color: var(--hd-text-primary); margin: 0; }
.hd-section-subtitle { font-size: 13px; color: var(--hd-text-secondary); margin: 0; }
.text-center { text-align: center; }
.pa-3 { padding: 12px; }
.pa-4 { padding: 16px; }
.pa-5 { padding: 20px; }
.pa-6 { padding: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.rounded-lg { border-radius: var(--hd-radius); }

/* ===== GLYCEMIA ZONES ===== */
.hd-glycemie-normal  { color: var(--hd-green) !important; }
.hd-glycemie-warning { color: var(--hd-warning) !important; }
.hd-glycemie-danger  { color: var(--hd-danger) !important; }

/* ===== AUTH PAGES ===== */
.hd-auth-card {
    background: white; border-radius: var(--hd-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden; max-width: 440px; margin: auto;
    width: 100%;
}

.hd-nav-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    text-transform: uppercase;
    color: #011602;
    font-weight: bold;
    font-size: 14px;
}

    .hd-nav-section-label::before,
    .hd-nav-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--hd-green-dark);
    }

/* Avatar par abonnement */
.hd-avatar-freemium {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hd-avatar-basique {
    background: linear-gradient(135deg, #90CAF9, #1976D2);
    color: white;
}

.hd-avatar-premium {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
}

/* Freemium — gris neutre */
.hd-sidebar-user-freemium {
    background: rgba(255, 200, 0, 0.2) !important;
    color: #FFD54F !important;
}

/* Basique — bleu professionnel */
.hd-sidebar-user-basique {
    background: #1565C0 !important;
    border-left: 3px solid #42A5F5;
}

/* Premium — or/ambre luxe */
.hd-sidebar-user-premium {
    background: #E65100;
}

.material-icons {
    font-size: 20px !important;
}

.hd-auth-header { background: var(--hd-green-med); padding: 12px; text-align: center; }
.hd-auth-icon   { font-size: 56px; color: white; display: block; }
.hd-auth-title  { color: white; font-weight: 700; margin: 8px 0 4px; font-size: 1.6rem; }
.hd-auth-subtitle { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; }
.hd-auth-body   { padding: 24px; }
.hd-auth-form-title { color: var(--hd-green); font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.hd-auth-footer { padding: 16px; text-align: center; border-top: 1px solid var(--hd-gray-light); display: flex; gap: 6px; justify-content: center; }
.hd-auth-legal  { color: rgba(255,255,255,0.6); font-size: 12px; text-align: center; margin-top: 16px; }

/* ===== SPINNER ===== */
.hd-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== STEPPER ===== */
.hd-stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; gap: 4px; flex-wrap: wrap; }
.hd-step-item { display: flex; align-items: center; gap: 4px; }
.hd-step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; cursor: pointer;
    background: #E0E0E0; color: #757575;
}
.hd-step-active { background: var(--hd-green) !important; color: white !important; }
.hd-step-done   { background: #81C784 !important; color: white !important; }
.hd-step-label  { font-size: 14px; color: #9E9E9E; }
.hd-step-label-active { color: var(--hd-green); font-weight: 600; }
.hd-step-line { width: 24px; height: 2px; background: #E0E0E0; margin: 0 4px; }
.hd-step-line-done { background: #81C784; }

/* ===== SYNCFUSION OVERRIDES ===== */
.e-control { 
    /*font-family: 'Inter', 'Roboto', sans-serif !important;*/
}

.e-input-group { border-radius: var(--hd-radius) !important; }
.e-input-group:not(.e-float-input) .e-input { font-size: 13.5px; }
.e-btn.e-primary { background: var(--hd-green) !important; border-color: var(--hd-green) !important; }
.e-tab .e-tab-header .e-indicator { background: var(--hd-green) !important; }
.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text { color: var(--hd-green) !important; }
.e-grid .e-headercell { background: var(--hd-green-xlight) !important; color: var(--hd-green-dark) !important; font-weight: 600 !important; font-size: 12px !important; }
.e-grid .e-row:hover .e-rowcell { background: var(--hd-green-xlight) !important; }
.e-breadcrumb .e-breadcrumb-item .e-breadcrumb-text { font-size: 13px; }
.e-dialog { border-radius: var(--hd-radius) !important; }
.e-dialog .e-dlg-header-content { background: var(--hd-green-xlight); }
.sf-sb-sf-btn { background: transparent !important; }
.e-toast-container { z-index: 99999 !important; }
.e-toast {
    border-radius: 10px !important;
}
.e-toast.e-toast-success { background: #2E7D32 !important; color:white !important ;font-weight:bold;}
.e-toast.e-toast-danger  { background: #C62828 !important;  color:white !important ;font-weight:bold;}
.e-toast.e-toast-warning { background: #F57F17 !important;  color:white !important ;font-weight:bold;}
.e-toast.e-toast-info    { background: #0277BD !important;  color:white !important ;font-weight:bold;}
.e-toast-content {  color:white !important ;font-weight:bold; margin: 10px !important;}
/* ===== SF INPUT with icon offset ===== */
.hd-sf-input.e-input-group .e-input {
    padding-left: 36px !important;
}

/* ===== PROGRESS BAR ===== */
.e-progressbar { border-radius: 3px; overflow: hidden; }

/* ===== RADIO BUTTON GROUP (custom, replaces SfDropDownList for simple choices) ===== */
.hd-radio-group {
    display: flex;
    gap: 8px; 
    /*flex-wrap: wrap;*/
}
.hd-radio-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 5px; border-radius: 8px;
    border: 1.5px solid var(--hd-gray-light);
    cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--hd-text-secondary);
    transition: all 0.15s;
    user-select: none;
}
.hd-radio-item:hover { border-color: var(--hd-green); color: var(--hd-green); }
.hd-radio-active {
    border-color: var(--hd-green) !important;
    background: var(--hd-green-xlight) !important;
    color: var(--hd-green) !important;
    font-weight: 600;
}

/* ===== SIDEBAR overlay on mobile ===== */
.hd-sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
@media (min-width: 900px) {
    /* Sur desktop la sidebar est fixe — le décalage est géré par hd-main-shifted */
    .hd-sidebar { transform: translateX(0) !important; }
    .hd-sidebar-closed { transform: translateX(calc(-1 * var(--hd-sidebar-width))) !important; }
    .hd-sidebar-overlay { display: none !important; }
}
@media (max-width: 899px) {
    .hd-sidebar { position: fixed; z-index: 100; transform: translateX(calc(-1 * var(--hd-sidebar-width))); }
    .hd-sidebar-open { transform: translateX(0) !important; }
}

/* ===== HTML TABLE (remplace SfGrid pour les listes simples) ===== */
.hd-table {
    width: 100%; border-collapse: collapse;
}
.hd-table th {
    background: #E8F5E9; color: #1B5E20; font-size: 12px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
    padding: 10px 14px; text-align: left; white-space: nowrap;
    border-bottom: 2px solid #C8E6C9;
}
.hd-table td {
    padding: 10px 14px; border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
}
.hd-table tbody tr:hover td { background: #F9FBE7; }
.hd-table tbody tr:last-child td { border-bottom: none; }

/* ===== CUSTOM TABS (remplace SfTab pour plus de contrôle) ===== */
.hd-tabs {
    display: flex; gap: 4px;
    border-bottom: 2px solid #E0E0E0;
}
.hd-tab {
    padding: 10px 20px; font-size: 13.5px; font-weight: 500;
    background: none; border: none; cursor: pointer;
    color: var(--hd-text-secondary); border-radius: 6px 6px 0 0;
    transition: all 0.15s; position: relative; bottom: -2px;
}
.hd-tab:hover { color: var(--hd-green); background: var(--hd-green-xlight); }
.hd-tab-active {
    color: var(--hd-green) !important;
    border-bottom: 3px solid var(--hd-green) !important;
    font-weight: 600 !important;
}
