/* =============================================
   BASE GÉNÉRALE - TYPO, LAYOUT, STRUCTURE GLOBALE
   ============================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Open Sans", sans-serif;
    background-color: #f8f9fa;
}

/* =========================
   LOGO
   ========================= */
.home-logo {
    font-weight: bold;
}
.home-logo, .panel-logo {
    color: #417690;
}

/* =========================
   HOME
   ========================= */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1020;
}

.home-main {
    padding-top: 50px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.login-box {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-radius: 0px; /* Suppression de la bordure arrondie */
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.75rem;
    color: #777;
}

/* =========================
   PANEL INTERNE / APPLICATION
   ========================= */
.panel-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.menubar {
    position: fixed;
    top: 40px;
    height: 40px;
    width: 100%;
    background-color: #f0f2f4;
    border-bottom: 1px solid #dee2e6;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    z-index: 999;
}

.menubar .nav-link {
    color: #212529;
}

.menubar .nav-link.active,
.menubar .nav-link:hover {
    background-color: #e2e6ea;
}

.panel-main {
    padding-top: 85px;
}

@media (max-width: 768px) {
    .span-societe,
    .navbar-cpta-container {
        display: none;
    }
}

/* ==========================
   MODAL STYLE (Design Yowa)
   ========================== */
.modal-content {
    border-radius: 0px; /* Suppression de la bordure arrondie */
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.modal-footer {
    border-top: none;
    padding-top: 0.5rem;
}

.modal-title {
    font-weight: 500;
    font-size: 1.2rem;
}

.modal-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ====================
   SELECT2 PERSONNALISÉ
   ==================== */
.select2-container--default .select2-selection--single {
    background-color: #f9f9f9;
    border: 1px solid #dcdfe3;
    border-radius: 0px !important; /* Suppression de la bordure arrondie */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* ==================================
   GENERAL
   ================================== */



thead.yowa-thead th {
    background-color: #f5f5f5 !important;
    color: #212529 !important;
    font-weight: 600;
    border-bottom: 1px solid #cccccc;
}

.panel {
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0px; /* Suppression de la bordure arrondie */
}

.yowa-card {
    border: 1px solid #dee2e6;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 0px; /* Suppression de la bordure arrondie pour les cartes */
}



/* ==================================
   PANEL HOME
   ================================== */

.card-quick-access .card-header {
    background-color: #0c4b7f;
    color: white;
    font-weight: normal;
}

.quick-link {
    font-weight: 500;
    color: #0c4b7f;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.quick-link:hover {
    text-decoration: underline;
    color: #072f4e;
}

.quick-link-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}


.toolbar {
    display: flex;
    align-items: center;
    padding: 1px;
    background-color: #f8f9fa;
    gap: 1rem;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-separator {
    height: 24px;
    width: 1px;
    background-color: #ced4da;
    margin: 0 0.75rem;
}

.btn-flat {
    background: #e9ecef;
    border: none;
    color: #212529;
    padding: 4px 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.btn-flat:hover {
    background-color: #ddd;
}

.btn-flat.danger {
    color: #dc3545;
}

.btn-flat.secondary {
    color: #6c757d;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* ==================================
   TABULATOR
   ================================== */

/* Bordures entre les lignes */
.tabulator .tabulator-row {
    border-bottom: 1px solid #b3b3b3;
}

/* Modifier l'entête */
.tabulator .tabulator-header {
    background-color: #f5f5f5 !important;
    color: #212529 !important;
    font-weight: 600;
    border-bottom: 1px solid #cccccc;
}


/* Lignes normales : toujours blanches */
.tabulator .tabulator-row {
    background-color: #ffffff !important;
}

/* Hover (s'applique à toutes les lignes #f0f0f0) */
.tabulator .tabulator-row:hover {
    background-color: #F9F9F9 !important;
}

/* Cellules non éditable not-allowed*/
.tabulator .tabulator-cell.locked-cell {
    cursor: default;
}

/* Cellules non éditable*/
.tabulator .tabulator-cell.not-editable-cell {
    cursor: default;
}

/* Sélection prend la priorité sur tout */
.tabulator .tabulator-row.tabulator-selected .tabulator-cell {
    background-color: #cce5ff !important;
}

/* Variante : non-editable sélectionnée → bleu différent */
.tabulator .tabulator-row.tabulator-selected .tabulator-cell.not-editable-cell {
    background-color: #b8daff !important;
}


#div-error-new {
    max-height: 100px;       /* hauteur maximale */
    overflow-y: auto;        /* scroll vertical si beaucoup de messages */
    padding: 3px;
    background-color: #fff8f8; /* fond léger pour visualiser les erreurs */
    font-size: 14px;
    /* border: 1px solid #f00;  --> supprimé */
}

.error-item {
    color: #900;
    display: flex;
    align-items: center;
}

.error-item .icon {
    margin-right: 5px;
    color: #f39c12;
}


/* ==================================
   SWEETALERT2
   ================================== */

/* Réduction du padding de la popup */

/* Popup compacte et scrollable */
.swal-custom-popup {
    width: 350px !important;
    max-height: 300px !important;
    overflow-y: auto;
    padding: 0.8rem 1rem;
    border-radius: 0px;
}

/* Icône avec bordure et centrée */
.swal-custom-icon-border {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 35px;
    border-radius: 50%;
    border: none;   /* couleur définie via classe spécifique */
    margin: 0 auto 0.5rem auto;
    padding: 2px;
    font-size: 10px;
    box-sizing: border-box;
}

/* Taille et couleur de l’icône à l’intérieur */
/* Palette douce inspirée de SweetAlert2 */
.swal-custom-icon-border {
    border-width: 2px;
} /* bordure plus fine, plus douce */

.swal-icon-success {
    border-color: #a5dc86 !important;
} /* vert pastel */
.swal-icon-warning {
    border-color: #f8bb86 !important;
} /* orange pastel */
.swal-icon-error   {
    border-color: #f27474 !important;
} /* rouge pastel */
.swal-icon-info    {
    border-color: #3fc3ee !important;
} /* bleu pastel */
.swal-icon-confirm {
    border-color: #87adbd !important;
} /* bleu-gris doux */

/* (Optionnel) harmoniser la couleur de l’icône à l’intérieur */
.swal-icon-success i {
    color: #a5dc86 !important;
}
.swal-icon-warning i {
    color: #f8bb86 !important;
}
.swal-icon-error i  {
    color: #f27474 !important;
}
.swal-icon-info i   {
    color: #3fc3ee !important;
}
.swal-icon-confirm i {
    color: #87adbd !important;
}


/* Taille et padding du titre */
.swal-custom-popup .swal2-title {
    font-size: 1.3rem !important;
    margin: 0.3rem 0 0.3rem 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* Texte */
.swal-custom-popup .swal2-html-container {
    font-size: 1rem;
}




