* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
}

body {
    font-family: "Arial", sans-serif;
}

body.inserted-frame {
    padding: 1em;
}

body:not(.inserted-frame) {
    min-height: calc(100vh - 1.6em);
}

body, .discreet {
    color: #111111;
}

.big-field {
    max-width: 100%;
    width: 400px;
    margin: 4px 0;
}

.big-field[type="submit"] {
    font-weight: bold;
}

tr:hover > td:not(.trait) {
    background: rgba(127, 127, 127, 0.2);
    box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.2);
}

footer {
    text-align: center;
    padding-top: 15px;
    grid-column: 1 / span 2;
    grid-row: 3 / 3;
}

footer .discreet {
    vertical-align: middle;
    line-height: 32px;
    padding: 10px;
}

.discreet img {
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.discreet:hover {
    text-decoration: none;
}

input, textarea, select {
    margin: 4px;
    padding: 4px 8px;
    border: 1px solid silver;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    background: #f8f8f8;
}

#logo {
    float: left;
    padding: 8px 16px 8px 8px;
}

.faded {
    opacity: 0.5;
}

sup.label {
    padding: 2px 8px;
    font-size: 16px;
    border-radius: 15px;
    background: #278575;
    color: #fafafa;
}

.primary {
    color: #278575;
}

input[type="submit"].bg-primary,
.bg-primary {
    background: #278575;
    color: #fafafa;
}

#centre {
    width: 800px;
    margin: auto;
}

#banniere .haut {
    width: 0;
    height: 186px;
    position: absolute;
    top: 0;
    left: 0;
}

#banniere .haut img {
    position: absolute;
    top: 0;
    left: 0;
}

#banniere h1 {
    font-size: 42px;
    padding: 0;
    margin: 0;
    height: 66px;
    width: 260px;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 270px;
}

#banniere .bas {
    margin-top: 162px;
    display: flex;
    flex-direction: row;
}

#banniere .date {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    padding: 5px 0;
    width: 200px;
    -moz-border-radius: 1em;
}

#banniere .adresse {
    width: 50%;
    font-size: 19px;
    line-height: 26px;
    padding: 10px 0;
}

#banniere .entreprise {
    width: 50%;
    font-size: 19px;
    padding: 10px 0;
}

#numero input {
    font-weight: bold;
    font-size: 18px;
    margin: 0 -5px;
}

#facture {
    border-top: 1px solid black;
    padding-top: 20px;
}

table {
    width: 800px;
    margin-bottom: 20px;
}

td {
    text-align: right;
}

th {
    padding: 6px 0;
}

table .designation {
    text-align: left;
}

table .description {
    font-size: 12px;
    border-left: 1px solid silver;
    padding-left: 10px;
    margin-left: 10px;
}

table .trait {
    border-top: 1px solid #767676;
}

table .espace {
    height: 20px;
}

#total {
    float: right;
    text-align: right;
    width: 300px;
}

#total .acote {
    padding: 8px;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 3px;
    white-space: nowrap;
}

#total .total {
    float: right;
    width: 182px;
    padding: 4px;
    margin-left: 12px;
    border: 2px solid black;
    font-weight: bold;
    font-size: 21px;
}

#total .note {
    color: #838383;
    border: 1px solid #838383;
    padding: 0 0.4em;
}

#total .note .total {
    border-color: transparent;
}

#total .note p {
    clear: both;
}

#paiements table {
    width: 400px;
}

#paiements td {
    text-align: right;
}

.hauteur {
    float: left;
    height: 50px;
}

#pied {
    padding-top: 20px;
    clear: both;
    text-align: center;
}

h2 {
    margin: 0;
    padding: 18px 0 0 12px;
}

a {
    color: #18a28a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a img {
    border: none;
}

.graph {
    height: 200px;
    margin: 1em 0;
}

.graph-legend-title {
    border-bottom: 3px solid silver;
    margin-bottom: 0;
}

.card-row {
    background: #e2e2e2;
}

.card-row .card {
    float: left;
    min-width: 100px;
    margin: 10px;
    text-align: center;
    padding: 6px;
    background:#f9f9f9;
}

.card-row .card.large {
    min-width: 180px;
}

.logout {
    clear: both;
    text-align: right;
}

.navbar-buttons {
	float: right;
}

.bouton {
    margin: 4px;
    display: inline-block;
    width: 94px;
    height: 74px;
    padding: 4px 2px 0 2px;
    border: 1px solid white;
    text-align: center;
}

.bouton:hover {
    text-decoration: none;
    border: 1px solid silver;
    border-bottom-color: gray;
    border-right-color: gray;
}

.icon-button {
    margin: -4px 4px;
    padding: 4px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    display: inline-block;
    transition: .1s all;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.icon-button img {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin: 0;
}

.icon-button.small {
    height: 28px;
    position: relative;
    top: 1px;
}

.icon-button.small.stick-top {
    top: -2px;
}

.icon-button.small img {
    width: 20px;
    height: 20px;
}

.icon-button:hover {
    background: #b8d2de;
}

.designation img {
    position: relative;
    top: 6px;
    margin-top: -5px;
}

#liste {
    margin-top: 4px;
    clear: both;
    width: 100%;
}

.fin {
    text-align: center;
    border-bottom: 1px solid #767676;
}

.ligne {
    clear: both;
    border-bottom: 1px solid #767676;
    padding: 0 10px;
    margin-top: 10px;
}

.centre {
    text-align: center;
}

.ligne input,
.ligne textarea {
    border: none;
    background: none;
    width: 600px;
    vertical-align: middle;
}

.tooltip {
    border-radius: 50%;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    position: relative;
    top: -1px;
    text-align: center;
    background: #426ccb;
    color: white;
    font-size: 12px;
    font-weight: bolder;
}

.ligne .dispense {
    width: auto;
}

.succes, .erreur {
    font-weight: bold;
    margin: 2px 0;
    padding: 2px;
}

.succes {
    color: green;
    background: #deffde;
}

.erreur {
    color: red;
    background: #ffdede;
}

button {
    font-size: 20px;
    font-weight: bold;
}

button span {
    position: relative;
    top: -12px;
}

#banniere .date, th {
    background: #66ada1;
}

/* cyrillic */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/playfair-cyrillic.woff2) format('woff2');
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/playfair-vietnamese.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/playfair-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/playfair-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.playfair-font {
    font-family: 'Playfair Display', serif;
}

hr {
    border-top: none;
}

th.subtitle {
    background: #aae1d8;
}

.theme-bar {
    display: flex;
    justify-content: center;
}

.theme-bar button {
    font-size: 12px;
    font-weight: normal;
    padding: 4px 10px;
    border: 1px solid #6c6c6c;
}

.theme-bar button:active {
    opacity: 0.8;
}

.logout .theme-bar {
    height: 22px;
    margin: -6px 0 3px 0;
}

.logout .theme-bar p {
    margin: 0 10px 0 0;
    padding-top: 2px;
}

.t2 {
    position: relative;
    top: 2px;
}

.main-view {
    padding-right: 8px;
}

@media (max-width: 800px) {
    body.full-page {
        grid-template-columns: 40px 1fr;
    }

    #logo {
        display: none;
    }

    body:not(.popup-page) .navbar-buttons a.bouton {
        width: 34px;
        height: 34px;
        overflow: hidden;
    }
}

@media (prefers-color-scheme: dark) {
    body:not(.print-page):not(.light-theme) {
        background: #2a2a2a;
        color: #b5b5b5;
    }

    body:not(.print-page):not(.light-theme) .discreet {
        color: #b5b5b5;
    }


    body:not(.print-page):not(.light-theme) sup.label {
        background: #1a6089;
    }

    body:not(.print-page):not(.light-theme) th {
        background: #353562;
    }

    body:not(.print-page):not(.light-theme) .boutton,
    body:not(.print-page):not(.light-theme) a,
    body:not(.print-page):not(.light-theme) .primary {
        color: #7272ff;
    }

    body:not(.print-page):not(.light-theme) .bouton {
        border-color: #565656;
    }

    body:not(.print-page):not(.light-theme) .bouton:hover {
        background: #343434;
    }

    body:not(.print-page):not(.light-theme) input,
    body:not(.print-page):not(.light-theme) textarea,
    body:not(.print-page):not(.light-theme) select {
        background: transparent;
        color: #b5b5b5;
        border-color: #565656;
    }

    body:not(.print-page):not(.light-theme) input[type="button"],
    body:not(.print-page):not(.light-theme) input[type="submit"],
    body:not(.print-page):not(.light-theme) input[type="reset"],
    body:not(.print-page):not(.light-theme) button {
        background: #4c4c4c;
        border: 1px solid #565656;
    }

    body:not(.print-page):not(.light-theme) table .trait,
    body:not(.print-page):not(.light-theme) #logo,
    body:not(.print-page):not(.light-theme) hr {
        border-color: #383838;
    }

    body:not(.print-page):not(.light-theme) .bg-primary,
    body:not(.print-page):not(.light-theme) th.subtitle {
        background: #575799;
    }

    body:not(.print-page):not(.light-theme) .card-row {
        background: #464646;
    }

    body:not(.print-page):not(.light-theme) .card-row .card {
        background: #343434;
    }

    body:not(.print-page):not(.light-theme) .dark-button {
        filter: invert(0.7);
    }
}

body.dark-theme {
    background: #2a2a2a;
    color: #b5b5b5;
}

body.dark-theme .discreet {
    color: #b5b5b5;
}

body.dark-theme sup.label {
    background: #1a6089;
}

body.dark-theme th {
    background: #353562;
}

body.dark-theme .boutton,
body.dark-theme a,
body.dark-theme .primary {
    color: #7272ff;
}

body.dark-theme .bouton {
    border-color: #565656;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background: transparent;
    color: #b5b5b5;
    border-color: #565656;
}

body.dark-theme input[type="button"],
body.dark-theme input[type="submit"],
body.dark-theme input[type="reset"],
body.dark-theme button {
    background: #4c4c4c;
    border: 1px solid #565656;
}

body.dark-theme table .trait,
body.dark-theme #logo,
body.dark-theme hr {
    border-color: #383838;
}

body.dark-theme .bg-primary,
body.dark-theme th.subtitle {
    background: #575799;
}

body.dark-theme .bouton:hover {
    background: #343434;
}

body.dark-theme .card-row {
    background: #464646;
}

body.dark-theme .card-row .card {
    background: #343434;
}

body.dark-theme .dark-button {
    filter: invert(0.7);
}
