:root {
    --appli_title_color: #039eb9;
    --appli_title_font_color: white;
    --menu_color: #055daa;
    /*--page_title_color: rgb(0, 145, 255);*/
    --page_title_color: #252a3f;
    --title_font_color: white;
    --menu_bar: #ffb503;
    --button_color: #3366bb;
    --button_bk_color: #2ba7e5;
    --selected_menu_color: #5583ff;
    --selected_row_color: #fbf3a1;
    --table_title_color: #efefff;
    --site_branding_background: #d7dfea;
    --side_panel_min_width: 15rem;
    --border_radius_button: 0.5rem;
    --canvas_background_color: #ddd;
}
/*body,
html {
  margin: 0;
  height: 100%;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
}*/
.designer {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    padding: 0;
}

    .designer .button {
        color: white;
        background-color: var(--button_bk_color);
        border-radius: var(--border_radius_button);
        border-width: 0.8px;
        border-color: gray;
        padding: 0rem 1rem 0rem 1rem;
        font-size: 1rem;
    }

    .designer .small_button {
        color: white;
        background-color: var(--button_bk_color);
        border-radius: var(--border_radius_button);
        border-width: 0.8px;
        border-color: gray;
        padding: 0rem 0.5rem 0rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Standard sizes */
    .designer .white_cross {
        /*width: 1rem;*/
        width: .75rem;
        cursor: default;
    }
    /*=========================*/
    /* Style for the three panel views  TO BE DELETED*/
    /*=================================*/
    .designer .shape3d_view {
        display: flex;
        /*height: calc(100vh - 120px);*/
        height: 100%;
    }

    .designer .design_views {
        /*flex: 80;*/ /* 85% */
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        background-color: var(--canvas_background_color);
    }


    .designer .side_panel {
        /*flex: 20;*/
        /*        min-width: var(--side_panel_min_width);
        max-width: var(--side_panel_min_width);*/
        background-color: #ddd;
        border: 1px solid;
    }

        .designer .side_panel > * {
            width: var(--side_panel_min_width);
            margin-top: 1px;
        }

    /*.designer .header,*/
    .designer .footer {
        background-color: #ccc;
        border: 1px solid;
    }

    /*    .designer .header {
        text-align: left;
        height: 2.2rem;
    }*/

    .designer .footer {
        text-align: right;
    }

    /*====================*/
    /*  Generic divs      */
    /*====================*/
    .designer .div_justified {
        display: flex;
        justify-content: space-between;
    }
    .designer .div_center_text {
        text-align : center;
    }
    /*==============================
        Style for popup modal window
    ================================*/
    .designer .dialog_box {
        display: block; /* Hidden by default */
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: #fff;
        z-index: 1000;
        overflow: hidden;
        /*font-size: 0.8rem;*/
        font-size: 0.6rem;
        /*width: 15%;*/
        width: min(100%, 13rem);
        /*height: 40rem;*/
        /* Blurred background */
        /*backdrop-filter: blur(10px);*/
        /*background: rgba(255, 255, 255, 0.3); /* Adds a frosted glass effect */
    }
    /* Style du bandeau de titre */
    .designer .dialog_header {
        background-color: var(--page_title_color);
        color: var(--title_font_color);
        padding: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        cursor: grab;
    }

        .designer .dialog_header h3 {
            color: var(--title_font_color);
            /*font-size: 1rem;*/
            margin: auto;
        }

    .designer .close-btn {
        cursor: pointer;
        font-size: 20px;
        font-weight: bold;
    }

    /* Style du contenu de la boîte */
    .designer .dialog_content {
        text-align: center;
        /*padding: 1rem;*/
        padding: .75rem;
        max-height: 90vh; /* Limite la hauteur de la partie du contenu */
        overflow-y: auto; /* Active le scroll vertical si nécessaire */
    }

    /* Style du pied de la boîte */
    .designer .dialog_footer {
        padding: 10px;
        text-align: center;
        border-top: 1px solid #ddd;
    }

    .designer .grid2c {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        text-align: center;
        /*margin-right: 0.4rem;*/
        margin-right: 0.3rem;
    }

    .designer .grid3c {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1px;
        text-align: center;
        /*margin-right: 0.4rem;*/
        margin-right: 0.3rem;
    }

    .designer .grid4c {
        display: grid;
        grid-template-columns: 0.2fr 1fr 1fr 1fr;
        gap: 1px;
        text-align: center;
        /*margin-right: 0.4rem;*/
        margin-right: 0.2rem;
    }

    .designer .grid5c {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        gap: 1px;
        text-align: center;
        /*margin-right: 0.4rem;*/
        margin-right: 0.2rem;
    }
/* Header panel */
#modalDesigner .btn_img {
    width: 2rem;
    height: 2rem;
    border-radius: 3px;
    border: 0.5px solid rgb(60, 61, 121);
}

/*===============*/
/* Options group */
/*===============*/
.designer .options_fieldset {
    border: 2px solid #ccc;
    padding: 5px;
    margin-bottom: 5px;
}

    .designer .options_fieldset legend {
        width: auto;
        float: none;
        padding: 0 5px;
        font-size: 1em;
        color: #555;
    }

/****************/
/* Master-scale */
/****************/
.designer #board_name {
    width: 100%;
    text-align: center;
    font-weight: bold;
    /*padding-bottom: 0.5rem;*/
    padding-bottom: .375rem;
}

/******************/
/*  Control point */
/******************/
.designer .input_coord {
    /*font-size: 1rem;*/
    font-size: .50rem;
    /*height: 1.5rem;*/
    height: 1.125rem;
    /*width: 3.2rem;*/
    width: 3rem;
    box-sizing: border-box;
    text-align: right;
    padding: 1px;
}

    .designer .input_coord[disabled] {
        background-color: lightgray;
    }

.designer .tg_img {
    /*width: 1.8rem;*/
    width: 1.35rem;
    /*height: 1.8rem;*/
    height: 1.35rem;
    border-radius: 3px;
    border: 1px solid black;
}

.designer .tg_img_small {
    /*width: 1rem;*/
    width: .75rem;
    /*height: 1rem;*/
    height: .75rem;
    border-radius: 3px;
    border: 1px solid black;
}

.designer .shadow_1 {
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6) !important;
}

.designer #tangents_types {
    text-align: center;
    /*margin-bottom: 1rem;*/
    margin-bottom: .75rem;
}

.designer #point_types, #measurement_unit {
    text-align: center;
    /*margin-bottom: 1rem;*/
    margin-bottom: .4rem;
}

    .designer #point_types label, #measurement_unit label {
        padding: 2px 6px;
        border: 1px solid var(--button_bk_color);
        width: 3rem;
        border-radius: 5px;
    }
    .designer .radio_label {
        padding: 2px 6px;
        border: 1px solid var(--button_bk_color);
        width: 3rem;
        border-radius: 5px;
    }

/*================*/
/* Master scale box */
/*================*/

/*================*/
/* Undo box */
/*================*/
.designer .side_popup {
    width: min(100%, var(--side_panel_min_width));
    /* height: 40rem; */
}
/*================*/
/* Properties box */
/*================*/
.designer #popup_properties {
    display: none;
    position: absolute;
    width: auto;
    height: auto;
    padding-bottom: 0.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/*================*/
/* Viewer3d box */
/*================*/
.designer #popup_viewer3d {
    display: none;
    width: auto;
    height: 500px;
}

/*=================*/
/*     Slice box   */
/*=================*/
.designer .popup_position {
    display: none;
    position: absolute;
    /*width: 18rem;*/
    width: min(100%, var(--side_panel_min_width)); /*height: 40rem;*/
    /*height: 13rem;*/
    height: 9.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/*=================*/
/*     Curve box   */
/*=================*/
.designer #popup_curve {
    display: none;
    position: absolute;
    /*width: 18rem;*/
    width: min(100%, var(--side_panel_min_width)); /*height: 40rem;*/
    /*height: 13rem;*/
    height: 11rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Cacher les boutons radio par défaut */
.designer input[type="radio"].button {
    display: none;
}

.designer input[type="color"] {
    width: 1.4rem;
    height: 1.2rem;
    border-radius: 5px;
    border: 0px solid #ccc;
    cursor: pointer;
}
/* Styliser les labels pour qu'ils ressemblent à des boutons */
.designer .popup_position label {
    display: inline-block;
    padding: 2px 6px;
    border: 2px solid #007bff;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
    /*width:4rem;*/
    width: 3rem;
    transition: background-color 0.3s, color 0.3s;
}

/* Changer l'apparence du label lorsque le bouton radio est sélectionné */
.designer input[type="radio"]:checked.button + label {
    background-color: #007bff;
    color: white;
}

/* Effet au survol */
.designer .popup_position label:hover {
    background-color: #e9f5ff;
}

.designer .btn_ok_cancel {
    padding: 0.5rem;
    border-radius: 5px;
}


/*=====================*/
/*     Box popup box   */
/*=====================*/
.designer #popup_box {
}
.designer #new_popup_box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.designer .more_box {
}

.designer .box_select {
    width: 8rem;
}

.designer .box_input {
    width: 3rem;
    text-align: right;
}

.designer .box_buttons {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    display: flex; /* Active Flexbox */
    justify-content: space-evenly; /* Espace égal entre les boutons */
    width: 100%; /* Prend toute la largeur disponible */
    /*gap: 16px; /* Espace optionnel entre les boutons (si besoin) */
}
.designer .box_grid_table {
    padding-top:0.5rem;
    width:100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 colonnes de même largeur */
    border:none; /*0px solid #ccc;*/
}

.designer .box_row {
    display: contents; /* Permet aux cellules de s'aligner directement dans la grille */
}

.designer .box_cell {
    border: 0px solid #ccc;
    padding: 3px;
    text-align: center;
}

/*.designer .row:first-child .cell {
    font-weight: bold;*/ /* Style pour l'en-tête */
    /*background-color: #f2f2f2;
}*/

/*==============*/
/* Context menu */
/*==============*/
.designer .context-menu,
.designer .submenu {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 7px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    display: none;
    min-width: 150px;
    z-index: 1000;
    transform: translate(-30%, -50%);
}

.designer .menu-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.designer .menu-check {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;
    color: green;
    font-weight: bold;
}

.designer .menu-disabled {
    color: lightgray;
}

.designer .menu-label {
    flex-grow: 1;
}

.designer .menu-shortcut {
    flex-grow: 1;
    margin-left: 0;
    text-align: right;
    padding-left: 1rem;
}

.designer .menu-arrow {
    margin-left: 8px;
    font-size: 12px;
}

.designer .menu-item:hover > .submenu {
    display: block;
    top: 0;
    left: 100%;
    margin-left: 2px;
}

.designer .menu-separator {
    height: 1px;
    background-color: #ccc;
    margin: 4px 0;
}
/*=====================
/*  Modal Bootstrap popup
/*========================
/* Center verticaly */
.designer .modal-dialog {
    display: flex;
    align-items: center;
    min-height: 100vh;
}
/* Style of the title */
.designer .modal-header {
    background-color: #007bff;
    color: white;
}

.designer .modal-body {
    align-items: center !important;
}

/*  Bootstrap.js tooltip color*/
.tooltip-inner {
    background-color: var(--button_color) !important;
    color: #FFFFFF !important;
}
