﻿/* 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. */
/*.ui-autocomplete {
    z-index: 2147483647 !important;
}
*/
:root {
    --blue-eis: #0366d6;
    --rouge-eis: #c10c0d;
    --orange-eis: rgba(255, 128, 0);
    --error-color: var(--rouge-eis);
    --disable-color: #6c757d;
    --entity-disable-color: lightgray;
    --default-border-color: #e5e5e5;
    --box-shadow: rgba(0, 0, 0, .05);
    --popup-background-color: rgba(0,0,0,0.7);
    --popup-inner-background-color: White;
    --page-header-color: rgba(0,0,0,.6);
    --page-header-title-color: var(--rouge-eis);
    --page-header-h2-color: rgba(0,0,0,.3);
    --page-header-background-color: White;
    --page-header-border-color: rgba(0,0,0,.1);
    --subtitle2-background-color: #fafafa;
    --primary-button-text-color: #fff;
    --primary-button-background-color: #1b6ec2;
    --primary-button-border-color: #1861ac;
    --active-button-background-color: rgba(0,123,255,.25);
    --table-row-border-color: #ff8888;
    --table-subtitle-background-color: #f8f9fa;
    --table-row-inner-border-color: solid 2px #dee2e6;
    --pieces-item-hover-background-color: rgb(198, 241, 255);
    --pieces-item-selectedbackground-color: rgb(198, 226, 255);
    --legend-warning-color: rgba(255, 0, 0, 0.7);
    --report-list-master-color: rgb(0, 64, 128);
    --report-master-background-color: rgb(198, 226, 255);
    --report-list-separ-border-top: 1px solid rgba(0, 64, 128, .2);
    --report-list-separ-border-bottom: 1px solid rgb(0, 64, 128);
    --report-list-separ-th-background-color: rgb(198, 226, 255);
    --report-list-separ-border-bottom-color: rgba(0, 0, 0, .1);
    --eis-action-arret-color: var(--orange-eis);
    --eis-action-consigne-color: var(--rouge-eis);
}

@media(min-width: 1200px) {
    .container {
        max-width: calc(100% - 100px) !important;
    }
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--blue-eis);
}

    a:has(i) {
        font-size: 1.2rem;
        line-height: 1;
        color: var(--blue-eis);
    }

    a:hover:has(i) {
        text-decoration: none;
        color: var(--rouge-eis);
    }

    a.disabled {
        color: var(--disable-color);
        pointer-events: none;
        cursor: default;
    }

i {
    font-family: "Fontawesome";
    text-decoration: none;
    font-style: normal;
    color: inherit;
}

.btn-primary {
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color);
    border-color: var(--primary-button-border-color);
}

.btn:focus {
    box-shadow: none;
}

.btn:active {
    background-color: var(--active-button-background-color);
}

.btn-tools {
    display: flex;
    grid-gap: 3px;
    flex-wrap: nowrap;
    padding: 0 1rem;
}

    .btn-tools .btn {
        padding: 0 2px;
        margin: 0;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: var(--primary-button-text-color);
    background-color: var(--primary-button-background-color);
    border-color: var(--primary-button-border-color);
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid var(--default-border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--default-border-color);
}

.box-shadow {
    box-shadow: 0 .25rem .75rem var(--box-shadow);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 1rem;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 30px; /* Vertically center the text there */
}

/*--------------------------------------------------
  DPI
---------------------------------------------------- */
.sticky {
    position: sticky;
    position: -webkit-sticky;
    background-color: white;
    z-index: 500;
}

.sticky2 {
    position: sticky;
    position: -webkit-sticky;
    background-color: white;
    z-index: 499;
}

.sticky3 {
    position: sticky;
    position: -webkit-sticky;
    background-color: white;
    z-index: 498;
}

.loading {
    position: fixed;
    display: none;
    z-index: 1031;
    height: 32px;
    width: 32px;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

    /* Transparent Overlay */
    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
    }

    .loading img {
        width: 128px;
    }

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-background-color);
}

.popup-inner {
    display: block;
    position: relative;
    z-index: 1031;
    top: 50vh;
    transform: translateY(-50%);
    width: 350px;
    margin: auto;
    padding: 0;
    background-color: var(--popup-inner-background-color);
}

.modal-header {
    align-items: center;
    font-size: 2.1rem;
    color: var(--blue-eis);
    padding: 0.2rem 0.6rem;
}

    .modal-header .left-button,
    .modal-header .left-button {
        color: inherit;
    }

    .modal-header h2 {
        font-size: inherit;
        color: inherit;
        text-align: center;
        margin: 0;
        padding-bottom: 3px; /*Rattrapage du décentrage vertical du texte dans le h2*/
    }

.modal-body {
    padding: 0.8rem 0.8rem 1.6rem 0.8rem;
}

    .modal-body h3 {
        font-size: 1.2rem;
    }

.modal-footer {
    align-items: center;
    font-size: 2.1rem;
    color: var(--blue-eis);
    padding: 0.2rem 0.6rem;
    border: none;
}

    .modal-footer .left-button,
    .modal-footer .left-button {
        color: inherit;
    }

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--blue-eis);
    padding: 5px 0;
    border-bottom: solid var(--blue-eis) 1px;
}

dd {
    margin: 0;
}

th label {
    margin: 0;
}

.btn.disabled {
    opacity: 0.2;
}

select:has(option:disabled:checked) {
    color: var(--error-color);
}

select > option {
    color: black;
}

    select > option:disabled {
        color: var(--entity-disable-color);
    }

.form-group.row {
    align-items: center;
}

    .form-group.row > label {
        margin: 0;
    }

.logo-image {
    height: 48px;
}

.multiline {
    word-wrap: break-word;
    white-space: pre-wrap;
    background-color: var(--subtitle2-background-color);
    margin-bottom: 10px;
}

.entity-id {
    color: var(--blue-eis);
    font-weight: bold;
}

.disabled-entity {
    color: var(--entity-disable-color);
}

select.operation-select {
    height: 12rem !important;
}

.hidden {
    display: none;
}

.validation-summary-errors ul {
    padding: 0;
}

.validation-summary-errors li {
    list-style: none;
}

.ignorable-date .text {
    max-width: 150px;
}

/* -------------------------------------------------------------------------------- */
/* Login page                                                                       */
/* -------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------- */
/* Filtres d'entités                                                                */
/* -------------------------------------------------------------------------------- */
.filterbar {
    justify-content: left;
    padding: 0.75rem;
}

    .filterbar .filterbar-group {
        margin: 0 10px 10px 0;
    }

    .filterbar label {
        margin: 0;
    }

    .filterbar select:not(:where([value='-1'],[value='-2'])) {
        color: var(--blue-eis);
        font-weight: 500;
    }

    .filterbar .btn {
        margin-top: auto;
        margin-bottom: 10px;
    }


/* -------------------------------------------------------------------------------- */
/* Listes d'entités                                                                 */
/* -------------------------------------------------------------------------------- */
.table td {
    border-top-color: var(--table-row-border-color);
}

.table tr.list-subtitle td {
    border-top: solid 2px var(--table-row-inner-border-color);
    border-bottom: solid 2px var(--table-row-inner-border-color);
    background-color: var(--table-subtitle-background-color);
    font-weight: bold;
}

.table td.large {
    word-wrap: anywhere;
}

.table tr.list-subtitle2 {
    background-color: var(--subtitle2-background-color);
    font-weight: bold;
}

.cell-multi table {
    width: 100%;
    padding: 0;
    margin: 0;
}

    .cell-multi table td {
        border-top: solid 1px var(--table-row-inner-border-color);
        padding: 0;
        margin: 0;
    }

    .cell-multi table tr:first-child td {
        border-top: none;
    }

/* -------------------------------------------------------------------------------- */
/* Pièces jointes                                                                   */
/* -------------------------------------------------------------------------------- */
.pieces-jointes {
    margin: 20px 0;
}

.pieces-toolbar {
    display: flex;
    grid-column-gap: 20px;
    margin: 0 20px 5px 0;
}

    .pieces-toolbar a.disabled {
        color: var(--disable-color);
        pointer-events: none;
    }

.piece-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 5px;
}

    .piece-list > a {
        color: inherit;
        text-decoration: none;
    }

        .piece-list > a:hover {
            background-color: var(--pieces-item-hover-background-color);
        }

        .piece-list > a.selected {
            background-color: var(--pieces-item-selectedbackground-color);
        }

    .piece-list .piece {
        display: inline-flex;
        align-items: center;
        grid-column-gap: 10px;
        font-size: 0.8em;
        line-height: 0.8em;
        color: inherit;
        border: 1px solid lightgray;
        padding: 5px;
        height: 42px;
    }
/*End Pièces jointes*/

/* -------------------------------------------------------------------------------- */
/* Page Layout                                                                      */
/* -------------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--page-header-background-color);
    z-index: 1000;
}

.navbar .navbar-nav {
    flex-wrap: wrap;
    align-items: center;
}

.page-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--page-header-color);
    margin-bottom: 30px;
    padding: 0 10px 0.5em 10px;
    margin: 0 auto 10px;
    background-color: var(--page-header-background-color);
    border-bottom: solid 1px var(--page-header-border-color);
}

    .page-header h1 {
        font-size: 1.2rem;
        line-height: 1;
        margin: 0;
        color: var(--page-header-title-color);
    }

    .page-header h2 {
        font-size: 1.2rem;
        line-height: 1;
        margin: 0;
        padding: 0;
        color: var(--page-header-h2-color);
        border: none;
    }
/*End Page Layout*/

/* -------------------------------------------------------------------------------- */
/* CRUD                                                                             */
/* -------------------------------------------------------------------------------- */
.list-content td {
    padding: 0.25em 0.75em;
}

    .list-content td.sup-row {
        padding-top: 0;
    }

.data-block h2 {
    margin-bottom: 25px;
}

.data-block textarea {
    height: 150px;
}

.form-check-label {
    margin-right: 15px;
}

.form-check-inline {
    position: relative;
    margin-right: 8px;
    top: 1px;
}

.row-buttons {
    display: inline-block;
    padding-right: 0 !important;
    padding-left: 0 !important;
    white-space: nowrap;
}

    .row-buttons a {
        margin-left: 2px;
        margin-right: 2px;
        padding: 0;
    }
/*End CRUD*/

.number {
    max-width: 120px;
    text-align: right;
}

.date {
    max-width: 150px;
    text-align: left;
}

.text-sm {
    max-width: 120px;
}

.text-md {
    max-width: 250px;
}

.text-mdlg {
    max-width: 350px;
}

.text-lg {
    max-width: 500px;
}

.text-auto {
    width: auto;
}

.text-full-width {
    max-width: 100%;
}

.text-centered {
    text-align: center;
}

.text-pre {
    white-space: pre !important;
}

.text-pre-line {
    white-space: pre-line;
}

.legend {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 15px 0;
}

    .legend .colored-square {
        width: 25px;
    }

    .legend .legend-icon {
        display: inline-block;
        margin-right: 10px;
        color: var(--blue-eis);
    }

    .legend .legend-item {
        margin-right: 25px;
    }

    .legend .legend-item-right {
        margin-left: auto;
    }

    .legend .legend-icon.warning {
        color: var(--legend-warning-color);
    }

.details-actions a {
    padding-right: 10px;
}

/* -------------------------------------------------------------------------------- */
/* Affectation Dossiers-Utilisateurs                                                */
/* -------------------------------------------------------------------------------- */
#affectations .btn {
    width: 120px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#affectations select {
    height: 300px;
}

/* -------------------------------------------------------------------------------- */
/* Reporting Lists                                                                  */
/* -------------------------------------------------------------------------------- */
.list-master {
    color: var(--report-list-master-color);
    background-color: var(--report-master-background-color);
}

    .list-master td, list-master th {
        padding: 2px 5px;
    }

.list-with-hsepar {
    border-top: 1px solid var(--report-list-separ-border-top);
    border-bottom: 1px solid var(--report-list-separ-border-bottom);
    margin-bottom: 20px;
}

    .list-with-hsepar th {
        color: var(--report-list-separ-border-bottom);
        background-color: var(--report-list-separ-th-background-color);
        border-bottom: 1px solid var(--report-list-master-color);
        font-weight: normal;
    }

    .list-with-hsepar tbody:before {
        content: "@";
        color: transparent;
        display: block;
        font-size: 0;
        line-height: 4px;
    }

    .list-with-hsepar tr {
        border-bottom: 1px solid var(--report-list-separ-border-bottom-color);
    }

    .list-with-hsepar td, .list-with-hsepar th {
        padding: 2px 5px;
    }

        .list-with-hsepar td .remarque {
            display: block;
            white-space: pre-wrap;
            color: var(--blue-eis);
        }

.list-head-panel {
    color: var(--report-list-master-color);
    padding: 8px !important;
    border: solid var(--report-list-master-color);
    border-width: 1px;
}

    .list-head-panel table {
    }

    .list-head-panel th {
        padding: 0 20px 0 0;
        font-weight: 500;
    }

    .list-head-panel td {
        padding: 0 40px 0 0;
    }
/*End Reporting Lists*/

.eis-action i {
    padding-left: 2px;
}

    i.legend-icon.arret,
    .eis-action i.arret {
        color: var(--eis-action-arret-color);
    }

    i.legend-icon.consigne,
    .eis-action i.consigne {
        color: var(--eis-action-consigne-color);
    }
