﻿@font-face {
    font-family: 'Euclid';
    font-style: normal;
    font-weight: 400;
    src: url('../../fonts/EuclidFlex-Regular.otf');
}

@font-face {
    font-family: 'Euclid';
    font-style: normal;
    font-weight: 700;
    src: url('../../fonts/EuclidFlex-Bold.otf');
}

@font-face {
    font-family: 'Brown';
    font-style: normal;
    font-weight: 400;
    src: url('../../fonts/Brown-Regular.otf');
}

@font-face {
    font-family: 'Brown';
    font-style: normal;
    font-weight: 700;
    src: url('../../fonts/Brown-Bold.otf');
}

/* Suite à BS4, impossible de choisir Portrait/Paysage si pas spécifié */
@page {
    size: auto;
}

html,
body {
    height: 100%;
}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
}

* {
    font-family: 'Brown';
}

body {
    font-size: .875rem;
}

@media (max-width: 576px) {
    body {
        font-size: .75rem;
    }
}

.euclid {
    font-family: 'Euclid';
    font-weight: 700;
}

a {
    text-decoration: none;
}

.container-fluid .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.dropdown-menu {
    font-size: .875rem;
}

.dropdown-item {
    padding: 3px 20px;
}

    .dropdown-item a img {
        width: 20px;
    }

/* */
/* Set width on the form input elements since they're 100% wide by default */
input[type="text"], input[type="password"], input[type="email"] {
    max-width: 280px;
}
/* Refuser les 280px maximum des inputs de bootstrap */
input.nomaxwidth {
    max-width: none;
}

.btn {
    max-width: none;
    font-size: .875rem;
}

.radio, .form-check-input, .form-check-label {
    cursor: pointer;
}

.error {
    color: red;
    font-weight: bold;
}

/* Tables */
/* Centrer les éléments des tables */
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > tfoot > tr > td,
.table-centree > tbody > tr > td:not(.libelle) {
    vertical-align: middle;
    text-align: center;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

    .table-bordered td, .table-bordered th {
        border: 1px solid #dee2e6;
    }

.table-borderless td, .table-borderless th {
    border-top: none !important;
}

.table-hover tbody tr:hover td {
    background-color: lightgreen;
}

/*Pcq sinon, qd il y a des icones pour editer/supprimer, il y a un underline*/
.table > tbody > tr > td > a, .table > tbody > tr > th > a {
    text-decoration: unset;
}

.table-index thead {
    background-color: lightgrey;
}

.table-gerable {
    text-align: center;
    margin: auto;
}

    .table-gerable .btn-group {
        position: static;
    }

.table-fitcontent {
    width: fit-content !important;
}

.form-control {
    font-size: .875rem;
}

/* Car btn-xs n'existe plus */
.btn-group-xs > .btn, .btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

h1, h2, h3:not(.popover-header) {
    margin-top: 10px;
    margin-bottom: 10px;
}

label {
    margin-bottom: unset;
}

.row {
    align-items: center;
    margin-top: .5rem;
    margin-bottom: .5rem;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

    .row label {
        font-weight: bold;
    }

.modal-footer {
    align-items: center;
    justify-content: center;
}

table select {
    max-width: 280px;
}

.hide {
    display: none;
}

.fournisseurContent .card-body {
    padding: .5rem;
}

.fournisseurContent .card {
    min-height: unset;
}

/* Bouton recopiage des comptes généraux/projet */
.recopie {
    width: 50px;
    display: inline-block;
}

/*#region Icônes FontAwesome */
.fas {
    font-size: 16px;
    cursor: pointer;
}

.fa-plus, .fa-chess-king {
    color: #070;
}

.fa-times {
    color: #700;
}

.fa-info-circle {
    color: lightcoral;
}

.fa-pencil-alt, .fa-shopping-cart {
    color: orange;
}

.fa-check {
    color: green;
}

.toast-icon.fa-check {
    color: unset;
}

.toast-icon.fa-triangle-exclamation {
    color: unset;
}

.fa-piggy-bank {
    color: pink;
}

.fa-eye, .fa-caret-down, .fa-caret-right {
    color: blue;
}

.fa-save, .fa-floppy-disk {
    color: mediumblue;
}

.fa-lock {
    color: red;
}

.fa-lock-open {
    color: green;
}

.fa-key {
    color: forestgreen;
}

.fa-file-pdf {
    color: darkred;
}

.fa-file-excel {
    color: green;
}

.fa-file-invoice {
    color: black;
}

.fa-triangle-exclamation {
    color: #FFD43B;
}

.fa-envelope {
    color: lightblue;
}

/*#endregion */
/* Resizable */
.resizable {
    resize: both;
    overflow: auto;
}

/* Sortable */
table.sortable > thead th {
    cursor: pointer;
}

    table.sortable > thead th:hover {
        background: #efefef;
    }

/**/
.retourliste {
    vertical-align: middle;
}

/* Badges */
.row.euclid .badge-image img {
    width: 40px;
    height: 100%;
}

/**/
tr.red td {
    color: red !important;
}

tr.green td {
    color: green !important;
}

/* Drag & Drop pour liste ul/li */
ul.drag-sort-enable {
    padding: 0;
}

    ul.drag-sort-enable li {
        margin: 5px 0;
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        border-radius: 3px;
        background: #136a8a;
        background: -webkit-linear-gradient(to right, #267871, #136a8a);
        background: linear-gradient(to right, #267871, #136a8a);
        color: #fff;
        list-style: none;
        cursor: move;
    }

        ul.drag-sort-enable li.drag-sort-active {
            background: transparent;
            color: transparent;
            border: 1px solid #4ca1af;
        }

/**/
.card-header {
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Context Menu */
.ctxmenu /* the main menu div */
.ctxmenu li /* any menu item */
.ctxmenu li.disabled /* any disabled menu item */
.ctxmenu li.divider /* any horizontal divider */
.ctxmenu li.interactive /* any interactive item (anchor, action item, submenu)*/ {
}

.ctxmenu li.interactive span:hover {
    cursor: pointer;
}

.ctxmenu li.submenu /* any menu item that has a submenu */ {
}

/**/
.toast-container {
    z-index: 99999;
}
