@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'),
        local('MaterialIcons-Regular'),
        url("/fonts/MaterialIcons-Regular.ttf") format('truetype');
  }
  

body > div {
    background-color: rgb(246, 247, 249);
}


body > div > main {
    background-color: #f5f7fb;
}

hr {
    margin: 1rem 0;
}

body {
    color: rgb(24, 28, 50);
    font-weight: 400;
    font-family: Inter, Helvetica, "sans-serif";
}

a {
    text-decoration: none;
}

a:visited, a, a:hover {
    color: rgb(25, 103, 210);
}

a:hover {
    text-decoration: underline;
}

/* Texts */
h1 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

p.muted, span.muted {
    color: #B5B5C3;
}

.historique::before {
    font-family: 'Material Icons';
    content: "history";
    margin-right: 5px;
}
.historique {
    font-size: 0.8rem;
    color: rgb(71, 98, 130);
    font-style: italic;
}

/* Onglets */
.tabs ul {
    align-items: end;
    border-bottom-color: #dbdbdb;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    display: flex;
    flex-grow: 1;
    flex-shrink: 0;
    justify-content: flex-start;
}

.tabs a,
.tabs button {
    align-items: center;
    border: 1px solid transparent;
    color: #4a4a4a;
    display: flex;
    justify-content: center;
    margin-bottom: -1px;
    padding: 0.5em 1em;
    vertical-align: top;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1em;
}
.tabs button {
    appearance: none;
}
.tabs button:hover {
    border-bottom-color: #363636;
    color: #363636;
}
.tabs li.is-active button {
    border-bottom-color: #485fc7;
    color: #485fc7;
}

input.control.small,
select.control.small {
    padding: 0.3rem 0.3rem;
    font-size: 0.9rem;
}

.controls-group > * {
    border-radius: 0;
    margin: 0;
}
.control-group *:first-child {
    border-radius: 0.3rem 0 0 0.3rem;
}
.control-group:last-child {
    border-radius: 0 0.3rem 0.3rem 0;
}

label.checkbox input[type="checkbox"] {
    margin-right: 0.4rem;
}

a.control {
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid rgb(225, 227, 234);
    border-radius: 0.3rem;
    padding: 0.2rem 0.8rem;
    box-shadow: false;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: transparent;
}

.card {
  box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
  border-radius: 0.625rem;
  background-color: #fff;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
}
.card .body + header {
    margin-top: 1rem;
}
.card header h2 {
    float: left;
}
.card > header {
    display: flex;
    justify-content: space-between;
}
.card header .actions {
    float: right;
}
header .header-left,
header .header-left {
    display: flex;
    gap: 1rem;    
}

.card .card-body {
    flex-grow: 1;
    align-content: flex-start;
}
.card .card-footer {
    padding-top: 0.3rem;
    display: flex;
    justify-content: end;
}

.card fieldset,
dialog fieldset {
    border: 1px solid rgb(225, 227, 234);
    display: inline;
    padding: 0.5rem 0.8rem;
    border-radius: 0.3rem;
}
.card fieldset:last-child {
    margin-bottom: 1rem;
    margin-right: 1rem;
}
.card h2 {
  font-size: 1.2rem;
  padding: 0 0.3rem;
  font-weight: 500;
  display: block;
  color: rgb(0, 158, 247);
  margin: 0 0 0.7rem 0;
}
fieldset.primary {
    border-color: rgb(114, 57, 234);
}
fieldset.primary legend {
    color: rgb(114, 57, 234);
}
fieldset legend {
    font-size: 1rem;
    margin: 0;
    padding: 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.card h2 svg {
    margin-right: 0.3rem;
}

/* Tables */
.table td, .table th {
    border: 1px solid #dbdbdb;
    border-width: 0 0 1px;
    padding: 0.2em 0.75em;
    font-size: 0.9rem;
    vertical-align: top;
}
.table-actions {
    float: right;
}
.table-actions > * {
    font-size: 0.8rem;
}
.table-actions .pagination {
    float: right
}

/* Buttons */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Forms */
form.disabled label {
    color: rgb(126, 130, 153);
}

form.disabled input[disabled],
form.disabled select[disabled],
form.disabled textarea[disabled] {
    color: rgb(63, 66, 84);
    border: none;
    padding: 0;
    font-weight: 500;
    background-color: #fff;
}
form.disabled select[disabled] {
    appearance: none;
}
.panel > .actions,
.form-actions {
    padding: 0.8rem 0.5rem 0 0;
    display: flex;
    justify-content: end;
}
.panel > .actions > button,
.card .actions .button,
.panel > .actions > a  {
    margin: 0 0.5rem;
}
.form-actions button + button,
.form-actions a + button,
.form-actions button + a {
  margin-left: 1rem;
}

.actions-right {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.form-control {
    display: inline-block;
}

label:not(.button), span.label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(63, 66, 84);
}
.form-control.inline input {
    display: inline;
    width: auto;
}
.form-control input[type="checkbox"],
.form-control input[type="radio"] {
    padding: 0 0.5rem 0 0;
    display: inline;
    width: auto;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.2rem 1rem;
}

/* Champs texte */
.text-field .label {
    color: rgb(161, 165, 183);
    min-width: 80px;
    font-size: 1rem;
    padding-right: 1rem;
    display: block;
}
.text-field .value {
    font-weight: 500;
}

/* Boutons */
a.dropdown-item:hover {
    text-decoration: none;
}
a.dropdown-item,
button.dropdown-item {
    text-align: left;
}
.button svg + span,
.button span + svg {
    margin-left: 0.5rem;
}
.button-icon.is-small {
    padding: 0.2em 0.3em;
    height: 2em;
}
.dropdown-menu {
    background-color: #fff;
}
button.dropdown-item {
    border: none;
    background-color: #fff;
}
button.dropdown-item:hover {
    cursor: pointer;
    background-color: #f8f9fa;
}
button.tag, .button-tag {
    border: none;
}
button.tag:hover {
    display: cursor;
}
button.link {
    border: none;
    background: transparent;
    color: #485fc7;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
}
button.link:hover {
    text-decoration: underline;
}

.tag.small {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.65rem;
}

.button.is-primary {
    background-color: rgb(0, 158, 247);
    border-color: transparent;
    color: #fff;
    transition: background-color 0.2s ease;
}
.button.is-primary:hover {
    background-color: rgb(0, 149, 232);
    transition: background-color 0.2s ease;
}

.panel-block > .panel-action + .panel-action {
    margin-left: 1rem;
}

table.condensed {
    font-size: 0.9rem;
}
table.th {
    white-space: nowrap;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.table-pagination .rowcount {
    font-size: 0.8rem;
}

table tr .row-actions .dropdown-trigger {
    opacity: 0.5;
}
table tr:hover .row-actions .dropdown-trigger {
    opacity: 1;
}

button.dropdown-trigger {
    border-radius: 2px;
    background-color: white;
    border: 1px solid #dbdbdb;
    color: #363636;
    cursor: pointer;
    justify-content: center;
    padding-bottom: 0.1rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    padding-top: 0.1rem;
    text-align: center;
    white-space: nowrap;
    font-size: 0.75rem;
    align-items: center;
}
.dropdown > * {
    background-color: #fff;
    min-width: 8rem;
    border-radius: 4px;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}
.dropdown-item svg + span {
    margin-left: 0.3rem;
}

dialog {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.02);
    border: 0;
    padding: 0;
}

/* Composant Timeline */
.timeline {
    position: relative;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: 
    #c9d8e0;
    left: 33px;
    margin: 0;
    border-radius: 2px;
}
.timeline > li {
    position: relative;
    margin-right: 10px;
    margin-bottom: 15px;
}
.timeline > li::after, .timeline > li::before {
    content: " ";
    display: table;
}
.timeline > .time-label > span {
    font-size: 0.8rem;
    padding: 0px 6px;
    color: #fff;
    border-radius: 2px;
    display: inline-block;
    background-color: #fff;
}
.timeline > li > .mdi {
    width: 30px;
    height: 30px;
    line-height: 30px;
    position: absolute;
    color: #fff;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0;
}
.timeline > li > .mdi:nth-last-child,
.timeline > li > .mdi.bg-secondary {
    color: #666;
}
.timeline > li > .timeline-item {
    box-shadow: 0 1px 1px  rgba(0, 0, 0, .1);
    border-radius: 3px;
    margin-top: 0;
    background: #fff;
    color: #444;
    padding: 0;
    position: relative;
}
.timeline > li > .timeline-item > .time,
.timeline > li > .timeline-item > .dateTime {
    color:  #999;
    float: right;
    padding: 6px 10px;
    font-size: 12px;
}
.timeline > li > .timeline-item > .timeline-header {
    margin: 0;
    color :#555;
    border-bottom: 1px solid #f4f4f4;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.1;
}
.timeline > li > .timeline-item > .timeline-header > a {
    font-weight: 600;
}
.timeline > li > .timeline-item > .timeline-body, .timeline > li > .timeline-item > .timeline-footer {
    padding: 6px 10px;
}

.columns.is-fullwidth {
    width: 100%;
}

/* Mode condensé */
.is-condensed .label,
.is-condensed .label + p {
    font-size: 0.9rem;
}

header.page-header {
    display: flex;
    justify-content: space-between;
}

header.page-header > .actions {
    display: flex;
    gap: 1rem;
}

header > .actions {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
}

/* Bulma override */
.title:not(:last-child), .subtitle:not(:last-child), .breadcrumb:not(:last-child) {
    margin-bottom: 0.6rem;
}

.panel-heading {
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}
.panel,
.panel-block {
    background-color: #fff;
    padding: 0.5rem;
}
.panel-block .subpanel-heading {
    display: flex;
    justify-content: space-between;
}
.panel-block .subpanel-heading > h3, .panel-block .subpanel-heading > h4 {
    font-size: 1rem;
    font-weight: 500;
}

.modal-card-head {
    padding: 0.5rem;
}
.modal-card-title {
    font-size: 1.2rem;
}
.modal-card-foot {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: end;
}
.modal-card-foot > menu {
    margin: 0;
}
dialog menu div[slot="action"] {
    display: inline;
}

.is-condensed .menu-list {
    font-size: 0.9rem;
}
.title {
    font-size: 1.7rem;
}
.label > .control {
    margin-top: 0.2rem;
}

footer {
  font-size: 0.8rem;
}


/* Tags */
.tag svg:first-child {
    margin-right: 0.4rem;
}