:root {
    --white: #f0f0f0;
    --black: #2a2a2a;
    --brown: #794e25;
    --success: #35aa35;
    --wine: #a32749;
    --orange: rgb(255, 153, 0);
    --error: rgb(196, 45, 45);

    --footer-height: 50px;
    --footer-pt: 10px;
}

textarea:hover, input:hover,
textarea:active, input:active,
textarea:focus, input:focus,
button:focus, button:active,
button:hover, label:focus,
select:focus, .btn:active, .btn.active,
a.page-link:focus {
    outline: 0px !important;
    -webkit-appearance: none;
    box-shadow: none !important;
}

a.page-link {
    color: var(--brown) !important;
}

li.page-item.active a.page-link {
    color: var(--white) !important;
}

.cursor-help {
    cursor: help;
}

.form-resize,
.form-resize-min {
    margin-top: 20px;
    padding: 20px 60px;
    background: #f8f8f8;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
}
.todo,
.todo-min {
    margin-top: 0px;
    padding: 0px 00px;
    background: #f8f8f8;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
}



.focus .ts-control{
    border: #5eb5e0 1px solid;
    box-shadow: 0 0 0 0;
}
.form-resize-min {
    padding: 20px 200px;
}

.color-brown {
    color: var(--brown);
}

.color-blue {
    color: rgb(41, 113, 230) !important;
}

.color-l-blue {
    color: rgba(41, 113, 230, 0.836) !important;
}

.color-orange {
    color: var(--orange);
}

.color-success {
    color: var(--success);
}

.bg-success {
    background: var(--success) !important;
}

.color-error {
    color: var(--error);
}

.bg-error {
    background: var(--error) !important;
}

.color-orange:hover {
    color: var(--orange);
}

.bg-orange {
    background: rgb(255, 145, 0) !important;
}

.bg-brown {
    background: var(--brown) !important;
}

.color-wine {
    color: var(--wine);
}

.bg-wine {
    background: var(--wine) !important;
}

.bg-blue {
    background: rgb(41, 113, 230) !important;
}

.counter {
    font-family: sans-serif;
    font-size: 1.5rem;
}

.wide-container {
    max-width: 1900px;
    margin: 0 auto;
}

span.form-error-icon {
    background: var(--error);
}

.px-6 {
    padding-left: 40px;
    padding-right: 40px;
}

table tr,
table td {
    white-space: nowrap;
}

#datatable_wrapper {
    z-index: 1;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--white);
}

#loader {
    display: none;
    position: fixed;
    height: calc(100vh - 74px);
    bottom: 0;
    left: 0;
    right: 0;
    background: center url(../img/loading.svg) no-repeat, var(--white);
    z-index: 1500;

}

.screen-resizing {
    min-height: calc(100vh - var(--footer-height) - var(--footer-pt) - 48px);
}

h1 {
    margin-bottom: 2px;
    font-size: 1rem;
}

h2 {
    font-size: 0.8rem;
    color: var(--brown);
}

.container {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.5rem;
        color: var(--success);
    }

    .container {
        padding-left: 6;
        padding-right: 6;
    }

}


h1, h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

p {
    margin-bottom: 0;
}
#tastingAddProductBtn:hover{
    cursor:pointer;
}

#addProductBtn:hover{
    cursor:pointer;
}


.flash,
.tasting-warning {
    position: relative;
}

.flash p,
.tasting-warning p {
    padding: 20px;
    padding-left: 60px;
    background: white;
    box-shadow: 0 0 20px rgb(0 0 0 / 8%);
    color: var(--black);
    border: 1px solid lightgray;
    border-left: 4px solid var(--brown);
}

.flash p i,
.tasting-warning p i {
    font-size: 1.7rem;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(0, -50%);
}

.flash .flash-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    color: var(--black);
    cursor: pointer;
}

.flash.flash-success p i {
    color: var(--success);
}

.flash.flash-error p i {
    color: var(--error);
}

.dt-row {
    margin: 30px 0;
    padding: 5px 0;
    border-top: 2px solid var(--brown);
    border-bottom: 2px solid var(--brown);
}

.paginate_button.page-item.active a {
    background: var(--brown) !important;
    border: none;
}

form label, table th,
.dataTables_filter label,
.dataTables_length label,
.calypso-label, .tasteThumbLabel,
.cb-container + span {
    font-family: 'Catamaran', sans-serif;
    text-transform: uppercase;
    font-weight: 700 !important;
    color: #b37943;
    letter-spacing: 1px;
    font-size: .9rem;
}

.cb-container + span {
    font-size: .7rem;
    letter-spacing: inherit;
}

header a {
    color: var(--white);
}

header a:hover {
    color: var(--white);
}

header nav {
    color: var(--white);
    background: var(--black);
    position: relative;
    font-family: 'Catamaran', sans-serif;
    z-index: 9998;
}

header nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 15px 0 15px 200px;
}

.navbar__logo {
    position: absolute;
    left: 20px;
    top: calc(50% - 2px);
    transform: translate(0, -50%);
}

.navbar__logo img {
    max-width: 120px;
}

.navbar__user {
    display: inline-block;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translate(0, -50%);
}

.navbar__user span {
    font-family: 'Cinzel', serif;
    padding-right: 15px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.navbar__user a {
    padding-left: 15px;
    text-transform: uppercase;
}

header nav > ul > li,
.navbar__user .register {
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

header nav > ul li:last-child {
    border: none;
}

header nav ul li a {
    display: block;
    margin: 0 10px;
    padding: 0 10px;
    text-transform: uppercase;
    font-weight: 450;
}

header nav ul li:hover .submenu,
header .user_menu:hover .submenu {
    display: block;
}

.submenu {
    font-family: 'Catamaran', sans-serif;
    position: absolute;
    display: none;
    z-index: 1000;
    top: 100%;
    background: var(--black);
    padding: inherit;
    padding-top: 20px;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .navbar__user > span .submenu {
    right: 0;
    padding-right: 0;
    z-index: 10000;
}

.submenu li:last-child {
    margin-bottom: inherit;
}

.submenu li a {
    font-size: .9rem;
    white-space: nowrap;
    padding: 10px;
    margin: inherit;

    transition: .1s;
}

.submenu li a:hover {
    background: var(--brown);
}

footer {
    padding-top: var(--footer-pt);
    text-align: center;
    height: var(--footer-height);
}

footer p {
    margin: 0;
    padding: 10px 0;
}

.login-form {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2.5%;
    background: #f3f3f3;
    border: 2px solid var(--brown);
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 500px) {
    .login-form {
        width: 95%; 
        top: 45%;
    }
}




.login-form span,
.login-form button {
    float: right;
}

.login-form span a {
    line-height: 48px;
    margin-right: 25px;
    color: var(--brown);
}

.credits {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.app_version {
    text-transform: uppercase;
    color: #9f9f9f;
}

.calypso-btn {
    font-family: 'Catamaran', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brown);
    background: #fff;
    letter-spacing: 1px;
    padding: 7px 14px;
    border: 2px solid var(--brown);

    transition: .1s;
}

.calypso-btn:hover,
.calypso-btn.active {
    background: var(--brown);
    color: var(--white);
}

.calypso-btn.active {
    pointer-events: none;
}


.cb-container {
    height: 60px;
    width: 60px;
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(17, 1, 68, 0.08);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}
.tasting-top .form-control{
    font-size: 0.75rem;
}
#tastedProductList h3{
    color: var(--brown);
    font-family: 'Catamaran', sans-serif;
    font-size: 1rem;
    font-weight: 700 !important;
    padding-top: 5px;
    margin: 0;
    border-bottom: 1px solid var(--brown);
}
#tastedProductList h3 span{
    margin-left: 20px;
    color:  var(--wine);
}
#tastedProductList h3 span:hover{
    cursor: pointer;
}
#tastedProductList .tasteThumbLabel{
    font-size: 0.7em;
}
#tastedProductList input{
    z-index: 900;
}

#tastedProductList .form-label{
    font-size: 0.7em;
    margin: 0;
}

.m-form-label{
    font-size: 0.7em;
    margin: 0;
}


#tastedProductList .form-control{
    font-size: 0.75em;
}
#tastedProductList .cb-container img{
    width: 50%;
    margin-left: 10px;
    margin-bottom: 10px;
}
.tasting_cb .cb-container {
    height: 60px;
    width: 60px;
}

.tasting-warning p {
    padding: 5px 10px 5px 60px;
    font-size: inherit;
}

.tasting-warning p i {
    font-size: 1.2rem;
}

.cb-container input[type="checkbox"],
.cb-container input[type="radio"] {
    -webkit-appearance: none;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.cb-container input[type="checkbox"]:after,
.cb-container input[type="radio"]:after {
    position: absolute;
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: "\f111";
    font-size: 15px;
    color: #478bfb;
    right: 7px;
    top: -13px;
}

.tasting_cb .cb-container input[type="checkbox"]:after,
.tasting_cb .cb-container input[type="radio"]:after {
    right: 0;
    top: -20px;
}

.cb-container input[type="checkbox"]:checked:after,
.cb-container input[type="radio"]:checked:after {
    font-weight: 900;
    content: "\f058";
    color: #478bfb;
}

.cb-container img,
.cb-container ion-icon,
.cb-container i {
    width: 65%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
}

.cb-container label i {
    padding-top: 30px;
    padding-left: 10px;
}

.cb-container i {
    font-size: 5.5rem;
}

.cb-container.phone i {
    color: rgb(41, 113, 230);
}

.cb-container.mail i {
    color: rgb(234, 81, 81);
}

.cb-container.tasting i {
    color: var(--wine);
}

.cb-container.visit i {
    color: rgb(49, 223, 119);
}

.cb-container.tour i {
    color: rgb(233, 162, 48);
}

.next-action {
    position: relative;
    background: #b379433a;
    opacity: 1;
    -webkit-user-select: none;
}

.next-action__filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(189, 189, 189, 0.8);
}

.db_todo {
    height: 700px;
}

.info_card {
    height: calc((800px / 4) - 18px);
    position: relative;
}

.info_card_footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
}

.info_card_footer a:hover {
    color: var(--white);
}

.info_card .info-type {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-weight: 500;
}

.dt-badge {
    color:#478bfb;
    font-weight: 700;
}

.dashboard-resizer {
    height: 800px;
}
.dashboard tr{
    font-size: 0.8rem;
}
.calypso-wrapper {
    padding: 10px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
}

.calypso-wrapper .dt-row {
    margin: 25px 0;
}

.client_contact {
    border: 2px solid var(--brown);
    padding: 8px;
}

.client_contact img {
    width: 40px;
}

.client_contact span {
    padding-top: 20px ;
}

.client_contact.phone {
    font-size: 1.2rem;
}

.client_contact.email {
    font-size: 0.9rem;
}

.client_action {
    width: 80px;
    height: 80px;
    line-height: 1rem;
    white-space: nowrap;
}

.db_actions_wrapper {
    height: 260px;
    overflow-y: auto;
}

.db_actions_wrapper.mini {
    height: 145px;
}

.db_action {
    min-width: 50px;
    max-width: 80px;
    min-height: 50px;
    line-height: 1rem;
    font-size: .9rem;
    white-space: nowrap;
}

.client_action.mini small {
    font-size: .8rem;
    text-align: center;
}

.product_infos tr td:first-child {
    width: 100px;
}

.product_infos tr td:nth-child(3) {
    width: 170px;
}

.day_actions tr td {
    position: relative;
    font-size: .9rem;
    font-weight: 500;
}

.day_actions tr td span {
    position: absolute;
    top: -2px;
    left: 8px;
    font-size: .7rem;
}

.todo-list h5 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
}

.product_labels ul li {
    width: 80px;
    list-style-type: none;
    margin-right: 50px !important;
}

#search-results {
    display: none;
    position: absolute;
    display: inline-block;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    z-index: 1000;
    background: white;
    font-family: sans-serif;
}

#search-results div {
    color: var(--black);
    font-weight: 700;
    padding: 5px;
    line-height: 1rem;
    cursor: pointer;

    transition: .1s;
}

#search-results div:hover {
    background: rgba(226, 226, 226, 0.933);
    color: var(--black);
}

.tableCheckLabel{
    display: none;
}
.tasting-info,
.person-info{
    padding: 10px;
    padding-left: 20px;
    background: white;
    box-shadow: 0 0 20px rgb(0 0 0 / 8%);
    color: var(--black);
    border: 1px solid lightgray;
    border-left: 4px solid var(--brown);
}
.searchLg input[type="search"]{
    width: 300px !important;
}
#actionTableBody tr:hover{
    cursor: pointer;
}
.text-odd{
    color: var(--black);
}
.text-even{
    color: var(--brown);
}


#cke_to_do_todo {
    max-height: 700px; /* Hauteur maximale du ckeditor de la todolist */
    overflow-y: auto;
}

#client_axe tr{
    font-size: 0.8rem;
}

#product_axe tr{
    font-size: 0.8rem;
}

.db_reminder,
.db_actions {
    font-size: 1rem;
    color: inherit;
    height: 388px;

}
.db_reminder.d_size,
.db_actions.d_size {
    font-size: 1rem;
    color: inherit;
    height: 800px;

}

.db_reminder .dt-row,
.db_actions .dt-row {
    height: 190px;
    overflow: auto;
}

.db_reminder .dt-row-d,
.db_actions .dt-row-d {
    height: 550px;
    overflow: auto;
}

.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Garantit le centrage vertical */
}

.modal-header .btn-link {
    color: var(--wine);
    font-size: 1.5rem;
    padding: 0;
}

.modal-header .btn-link:hover {
    color: #d9534f; /* Changez la couleur au survol si nécessaire */
}

.text-brown{
    color: var(--brown);
}

.text-wine{
    color: var(--wine);
}

.form-switch .form-check-input:checked {
    background-color: var(--wine);
    border-color: var(--brown);
}