﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
    --primary: #EC6C4D; /* Couleur primaire (boutons) */
    --secondary: #3D5980; /* Couleur secondaire et des thead */
    --dark: #293241; /* Couleur du texte et fond des headers */
    --light-blue: #D3DBE6; /* Jours hors travail dans les tableaux (Opacité à 20%) */
    --pale-blue: #EAF3F8; /* Ligne impaire des tableaux */
}

html, body {
    background-color: #F5F5F5;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
}

html * {
    color: var(--dark);
}

main {
    height: 100%;
    width: 100%;
    margin: auto;
    overflow: auto;
}

.page-header .form-check label {
    color: white;
}


/* General styles
-------------------------------------------------- */
.navbar-brand {
    border-right: solid var(--secondary) 2px;
    padding-right: 1em;
    color: var(--secondary) /*#64A1D3*/ !important;
    font-weight: bold;
}

.required::after {
    content: " *";
    color: red;
}

.main-container {
    height: calc(100% - 60px);
    padding: 2em;
}

.w-90 {
    width: 90vw!important;
}

.container {
    height: 100%;
    padding: 1em;
}

.bg-dark {
    background-color: var(--dark)!important;
}

.selected {
    color: var(--secondary);
    font-weight: bold;
}

.d-inline-flex-2 {
    display: inline-flex;
}

.bg-secondary {
    background-color: var(--secondary)!important;
}

.col-form-label {
    white-space: nowrap;
    overflow: hidden;
}


/* Alert styles
-------------------------------------------------- */
.alert-success * {
    color: var(--success);
}

.alert-info * {
    color: var(--info);
}

.alert-warning * {
    color: var(--warning);
}

.alert-danger * {
    color: var(--danger);
}


/* Page styles
-------------------------------------------------- */
.page-header {
    height: 40px;
}

.page-body {
    height: calc(100% - 40px);
}

.page-header > h4 {
    color: white;
    text-align: left;
    margin: 0 0.5rem;
}

.page-header > .btn-group {
    margin-left: auto;
    height: 100%;
}

.page-header .btn-group .btn {
    border-radius: 0;
    border-left: 1px solid var(--dark);
    /*border-bottom: 1px solid var(--dark);*/
}


/* Buttons styles
-------------------------------------------------- */
.btn-icon {
    padding: 0 0.10rem;
    font-size: 1.6em;
}

.text-primary {
    color: var(--primary) !important;
}

.square {
    height: 1.5em;
    width: 1.5em;
}

a.btn.text-primary:hover {
    color: var(--primary) !important;
}


/* Modal styles
-------------------------------------------------- */
.modal-content {
    background: var(--white) !important;
    border: none !important;
}

.modal-body {
    padding: 1em 2em 0 2em;
}

.modal-title {
    color: var(--white);
}

.modal h5 {
    display: table;
    white-space: nowrap;
    text-align: center;
}

.modal h5:after {
    content: "";
    display: table-cell;
    width: 100%;
    background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=) repeat-x left center;
}


/* Tables styles
-------------------------------------------------- */
.cra-table {
    width: 100%;
    height: 100%;
    text-align: center;
    overflow-y: scroll;
}

.cra-row {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.cra-cell {
    margin: 0 10px;
    width: fit-content;
    -ms-flex-item-align: center !important;
    align-self: center !important;
}

.holiday {
    background-color: var(--light-blue) !important;
}

.bg-pale-blue {
    background-color: var(--pale-blue);
}


table {
    width: 100%;
}

table * {
    text-align: center;
}

thead {
    background-color: var(--secondary);
}

thead * {
    color: var(--white);
}

tbody tr:nth-child(even) {
    background-color: var(--pale-blue);
}

tbody tr:nth-child(odd) {
    background-color: white;
}

.table-clickable-rows .table-row.selected,
.table-clickable-rows .table-row:not(.table-row-details):hover {
    background-color: var(--light-blue) !important;
}

.w-sm, .w-md {
    padding-right: 15px;
    padding-left: 15px;
    flex-grow: 1;
}

.w-sm {
    flex-basis: 9%;
}

.w-md {
    flex-basis: calc(9% + 20px);
}

.w-20px {
    width: 20px;
}

.w-30px {
    width: 30px;
}

.w-40px {
    width: 40px;
}

.table-scroll {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-scroll * {
    text-align: center;
}

.table-header {
    background-color: var(--secondary);
}

.table-header * {
    color: white;
    font-weight: bold;
}

.table-title-1, .table-title-2 {
    flex-grow: 1;
    padding: 0 15px;
}

.table-title-1 {
    flex-basis: 36%;
}

.table-title-2 {
    flex-basis: 45%;
}

.table-body {
    height: 100%;
    overflow: auto;
}

.table-footer {
    border-top: 2px solid #DEE2E6;
    padding-left: 1rem;
    text-align: left !important;
}

.table-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.table-header .table-row {
    padding-right: 1.5rem;
}

.table-body .table-row {
    min-height: 45px;
}

.table-body .table-row:nth-child(even) {
    background-color: var(--pale-blue);
}

.table-row-details {
    border-bottom: 1px solid #DEE2E6;
}


/* Navbar styles
-------------------------------------------------- */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}


/* DataTable styles
-------------------------------------------------- */
.ex_highlight tbody tr.even, tbody tr.even td.highlighted {
    background-color: var(--pale-blue) !important;
}

.ex_highlight tbody tr.odd, tbody tr.odd td.highlighted {
    background-color: white !important;
}
/*
.ex_highlight tbody tr.even:hover, tbody tr.even td.highlighted {
    background-color: #0050B4 !important;
    color: white;
}

.ex_highlight tbody tr.odd:hover, tbody tr.odd td.highlighted {
    background-color: #0050B4 !important;
    color: white;
}
*/
table.dataTable tbody td,
table.dataTable tbody th {
    padding: 0;
}

table.dataTable thead td,
table.dataTable thead th {
    font-family: Roboto, sans-serif !important;
    border: none;
}

table.dataTable.no-footer {
    border-bottom: 2px solid #DEE2E6;
}

.dataTables_info {
    padding-top: 1rem !important;
    padding-left: 1rem;
}

.dataTables_paginate {
    padding-top: 0.5rem !important;
    padding-right: 1rem;
}

.dataTables_wrapper {
    height: 100%;
}
