*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*--- GLOBAL STYLE ---*/
:root {
  /* colors */
  --clr-primary: hsl(191, 100%, 23%);
  --clr-primary-dark: hsl(187, 8%, 21%);
  --clr-primary-light: hsl(195, 31%, 95%);
  --clr-accent: hsl(191, 95%, 57%);
  --clr-white: hsl(0, 0%, 98%);
  --clr-light-grey: hsl(193, 18%, 75%);
  --clr-middle-grey: hsl(186, 6%, 65%);
  --clr-dark-grey: hsl(195, 8%, 51%);
  --clr-black: hsl(0, 0%, 15%);
  --clr-error-red: hsl(354, 93%, 37%);
  --clr-error-icon-red: hsl(0, 93%, 37%);
  --clr-error-row-red: hsl(354, 92%, 85%);
  --clr-error-hover-red: hsl(354, 63%, 60%);
  --clr-success-green: hsl(70, 42%, 63%);
  --clr-success-icon-green: hsl(104, 80%, 33%);
  --clr-in-progress-row-yellow: hsl(28, 96%, 90%);
  --clr-in-progress-hover-yellow: hsl(28, 96%, 70%);

  /* RESPE colors */
  --respe-primary: #2e4e61;
  --respe-primary-light: #e6ecf2;
  --respe-primary-dark: #022c3c;
  --respe-dark: #345b6d;
  --respe-light: #dae1e5;
  --respe-light-grey: #ebebeb;
  /* w/ black */
  --respe-middle-grey: #b7c0c5;
  /* w/ black */
  --respe-dark-grey: #50565a;
  /* w/ white */
  --respe-orange: #f35d19;
  --respe-orange-acc: #F89568;
  /* w/ black */
  --respe-green: #00bf85;
  --respe-green-acc: #34FFC1;
  /* w/ black */
  --respe-white: #ffffff;
  --respe-blue-white: #ebeff1;
  --respe-black: #000000;

  /* radius */
  --soft-radius: 5px;
  --medium-radius: 10px;
  --circle: 50%;

  /* shadows */
  --box-shadow-light: 0px 0px 8px 0px rgba(0, 0, 0, 0.3);

  /* font-sizes */
  --fs-xsm: calc(var(--fs-reg) * 0.708);
  /* 11.3px si 1rem */
  --fs-sm: calc(var(--fs-reg) * 0.8125);
  /* 13px si 1rem */
  --fs-reg: 1.125rem;
  /* 16px si 1rem */
  --fs-md: calc(var(--fs-reg) * 1.125);
  /* 18px si 1rem */
  --fs-lg: calc(var(--fs-reg) * 1.27);
  /* 20.3px si 1rem */
  --fs-xl: calc(var(--fs-reg) * 1.6);
  /* 25.6px si 1rem */
  --fs-xxl: calc(var(--fs-reg) * 2.25);
  /* 36px si 1rem */
  --fs-giant: calc(var(--fs-reg) * 4);
  /* 64px si 1rem */

  /* font-weight */
  --fw-bold: 700;

  /* font-family */
  --ff-sans: Arial, Helvetica, sans-serif;
  --ff-serif: Georgia, 'Times New Roman', Times, serif;

  --header-height: 60px;
}

.sr-only {
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--respe-blue-white);
  font-family: var(--ff-sans);
  color: var(--respe-black);
  font-size: var(--fs-reg);
}

h1,
h2,
h3,
h4,
h5 {
  margin: unset;
}

h1 {
  margin-block: 0.5em;
  font-size: var(--fs-xxl);
}

.text-bold {
  font-weight: var(--fw-bold);
}

a,
a:visited {
  text-decoration: none;
  color: inherit;
}

p {
  margin-bottom: 0.6em;
}

p:last-of-type {
  margin-bottom: 0;
}

.go-back-link {
  position: relative;
  display: block;
  margin-block: 0.9em;
  font-size: var(--fs-sm);
  font-style: italic;
}

.go-back-link::before {
  content: '<\00a0' / '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
}

.go-back-link:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
}

.btn {
  --trans-duration: 0.15s;
  display: inline-block;
  margin: 0.5em;
  padding: 0.4em 0.6em;
  text-align: center;
  border-width: 2px;
  border-radius: 0.25em;
  transition: background-color var(--trans-duration), color var(--trans-duration), border-color var(--trans-duration);
}

.btn.btn-reg {
  border-style: solid;
  border-color: inherit;
}

.btn.btn-info {
  background-color: #acb5b9;
  color: var(--respe-black);
  border-style: solid;
  border-color: transparent;
}

.btn.btn-info:hover {
  border-color: var(--respe-primary-dark);
}

.btn.btn-cta {
  background-color: var(--respe-primary);
  color: var(--clr-white);
  border-style: solid;
  border-color: transparent;
}

.btn.btn-cta:hover {
  background-color: var(--respe-dark);
  border-color: var(--respe-primary-light);
}

.btn.btn-alert {
  background-color: var(--clr-error-red);
  color: var(--clr-white);
  border-style: solid;
  border-color: transparent;
}

.btn.btn-alert:hover {
  border-color: var(--respe-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  box-shadow: var(--box-shadow-light);
}

thead {
  background-color: var(--respe-primary-dark);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-white);
}

th,
td {
  padding-inline: 18px;
}

th {
  padding-block: 0.6em;
}

th:not(:last-of-type) {
  border-right: 1px solid var(--respe-primary-light);
}

tbody {
  font-size: var(--fs-sm);
  background-color: var(--clr-white);
}

  tbody tr {
    --line-bg-color: var(--clr-white);
    background-color: var(--line-bg-color);
  }

    tbody tr:nth-of-type(2n + 1) {
      --line-bg-color: var(--clr-white);
    }

    tbody tr:nth-of-type(2n) {
      --line-bg-color: hsl(193, 18%, 85%);
    }

    tbody tr:hover,
    tbody tr:nth-of-type(2n):hover {
      --line-bg-color: var(--clr-light-grey);
    }

      td {
        padding-block: 0.45em;
      }

      td:not(:last-of-type) {
        border-right: 2px solid hsl(0, 0%, 92%);
      }

      tr:nth-of-type(2n) td:not(:last-of-type) {
        border-right: 2px solid hsl(193, 18%, 80%);
      }

      td.td-report-state, 
      td.td-report-show-page {
        text-align: center;
      }

      td.td-report-show-page {
        padding-inline: 0px;
      }

  table .icon-success,
  table .icon-error, 
  table .icon-warning,
  table .icon-intervention {
    fill: white;
  }

  table .icon-success,
  table .icon-warning {
    border-radius: var(--circle);
  }

  table .icon-success {
    padding: 2px;
    background-color: var(--clr-success-icon-green);
  }

  table .icon-warning {
    padding: 4px;
    background-color: #C96C19;
  }

  table .icon-error,
  table .icon-intervention {
    border-radius: 4px;
  }

  table .icon-error {
    background-color: var(--clr-error-icon-red);
  }

  table .icon-intervention {
    padding: 2px;
    background-color: var(--respe-dark-grey);
  }

textarea {
  font-family: inherit;
  font-size: inherit;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: revert;
  outline-offset: revert;
}

.input-error {
  outline: 2px solid var(--clr-error-red);
}

.label-error {
  color: var(--clr-error-red);
}

.error-msgs p {
  color: var(--clr-white);
  background-color: var(--clr-error-hover-red);
  margin-bottom: 0.5em;
  padding: 0.5em;
  text-align: center;
}

.alert-card:has(#alert-message:checked) {
  animation: softVanish 0.4s ease-in-out forwards;
}

.alert-card {
  position: fixed;
  z-index: 2;
  top: 20px;
  left: 50%;
  padding: 0.8em;
  padding-right: 2.2em;
  background-color: var(--respe-light-grey);
  border-radius: var(--soft-radius);
  color: var(--respe-white);
  transform: translateX(-50%);
}

.alert-card h2 {
  font-size: var(--fs-md);
}

.alert-card li {
  margin-left: 1em;
  list-style: disc;
}

.alert-card label.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0 0.2em;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  font-style: normal;
}

.alert-card label.close-btn:hover {
  cursor: pointer;
}

.alert-card.error {
  background-color: var(--clr-error-red);
  color: var(--respe-white);
}

.alert-card.success {
  background-color: var(--clr-success-green);
  color: var(--respe-black);
  animation: disapear ease-in-out 0.4s 5s forwards;
}

.alert-card.success a {
  font-style: italic;
}

.alert-card.success a:hover {
  text-decoration: underline;
}

@keyframes softVanish {
  100% {
    opacity: 0;
    transform: translate(-50%, -110%);
    visibility: hidden;
  }
}

@keyframes disapear {
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%);
    visibility: hidden;
  }
}

/*--- HEADER ---*/
header {
  box-sizing: content-box;
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: var(--header-height);
  padding-inline: var(--fs-sm);
  background-color: var(--respe-primary);
  color: var(--clr-white);
  border-bottom: 6px solid var(--respe-orange);
}

header .logo-incaya {
  margin-right: var(--fs-sm);
}

header nav {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

header nav a {
  display: inline-block;
  height: 100%;
  padding-inline: 1em;
  line-height: var(--header-height);
}

header nav a:hover {
  background-color: var(--respe-primary);
  text-decoration: underline;
}

header nav a.active-page {
  background-color: var(--respe-primary-light);
  color: var(--respe-primary-dark);
}

header .user-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

header .user-name {
  display: flex;
  align-items: center;
  margin-right: 0.5em;
  padding: 0.3em 0.5em;
  background-color: var(--clr-white);
  color: var(--respe-primary-dark);
  font-size: var(--fs-reg);
  font-weight: var(--fw-bold);
  border-radius: 40px;
}

header .user-name p {
  margin-inline: 0.5em;
}

header .user-menu button {
  display: flex;
  background-color: inherit;
  border: none;
  color: inherit;
}

header .user-menu button:hover {
  color: var(--respe-orange-acc);
}

/*--- MAIN ---*/
main {
  flex-grow: 1;
  width: min(95%, 1380px);
  margin-inline: auto;
  padding-block: calc(var(--header-height) + 10px) 10px;
}

/* --_ Login page _-- */
.login form>input {
  min-height: 25px;
  min-width: 225px;
}

.login-forgot-password {
  margin-top: 0.5em;
  font-size: var(--fs-sm);
  font-style: italic;
}

/* --_ Forgot password page _-- */
.forgot-password form>input {
  min-height: 25px;
  min-width: 225px;
}

.forgot-password-message {
  margin-top: 0.5em;
  font-size: var(--fs-sm);
  font-style: italic;
}

/* --_ Home page _-- */
.status-legend {
  font-size: var(--fs-sm);
  padding-left: 0.5em;
}

.legend-items {
  display: flex;
  margin-top: 0.3em;
}

.legend-item {
  margin-right: 1em;
}

.legend-item svg {
  padding: 2px;
  translate: 0 28%;
}

.legend-item svg.ok {
  background-color: var(--clr-middle-grey);
}

.legend-item svg.exclamation {
  padding: 4px;
  aspect-ratio: 1/1;
  background-color: var(--clr-middle-grey);
}

.legend-item svg.error {
  background-color: var(--clr-error-row-red);
}

.services-status {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-block: 30px;
}

.service-card {
  --service-type-icon-size: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 1rem;
  border: 2px solid var(--respe-primary);
  border-radius: var(--medium-radius);
}

.service-card.error {
  background-color: hsl(355, 77%, 92%);
  border: 2px solid var(--clr-error-red);
}

.service-state-icon {
  --icon-spacing: 5px;
  position: absolute;
  top: var(--icon-spacing);
  right: var(--icon-spacing);
  padding: 2px;
}

.service-state-icon.exclamation-point {
  padding: 8px;
}

.service-type {
  position: absolute;
  width: var(--service-type-icon-size);
  height: var(--service-type-icon-size);
}

.service-type.mailing {
  max-width: calc(var(--service-type-icon-size) + 5px);
}

.service-card h2 {
  margin-left: calc(var(--service-type-icon-size) + 10px);
  margin-right: calc(var(--service-type-icon-size) + 10px);
  margin-bottom: 0.8em;
  word-break: break-word;
}

.service-card p {
  line-height: 1.4;
}

.service-card-btn {
  margin-top: auto;
}

.service-card .btn {
  display: inline-block;
  width: 100%;
  margin: 0;
  margin-top: 0.5em;
  font-weight: var(--fw-bold);
}

.service-card .btn:first-of-type {
  margin-top: 1.5em;
}

/* --_ Reports page _-- */
/* message cards */
.message-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  padding: 0.1em 0.5em;
  font-size: var(--fs-reg);
  border-radius: 0.3em;
}

.message-card.alert {
  --bg-color: var(--clr-error-red);

  padding-right: 0.2em;
  background-color: var(--bg-color);
  color: var(--clr-white);
}

.message-card p>span {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.message-card a {
  background-color: var(--bg-color);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: inherit;
}

.message-card.alert a:hover {
  background-color: var(--clr-white);
  color: var(--clr-error-red);
  cursor: pointer;
}

/* Filters */
.filters-form {
  margin-block: 15px;
  padding: 10px;
  background-color: var(--respe-white);
}

.filters-form details summary {
  position: relative;
}

.filters-form details summary:hover {
  text-decoration: underline;
  cursor: pointer;
}

.filters-form details summary span {
  font-size: var(--fs-sm);
  font-style: italic;
}

.filters-form details[open] summary span {
  display: none;
}

.filters-form details .active-filters {
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  padding: 5px 8px;
  background-color: var(--clr-success-green);
}

.filters-form fieldset {
  --font-size: var(--fs-sm);
  --padding-left: 3.8em;

  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-block: 15px;
  padding-left: var(--padding-left);
  border-width: 0;
}

    .filters-form legend {
      position: absolute;
      margin-bottom: 0.2em;
      font-style: italic;
      font-size: var(--font-size);
      transform: translate(-100%, 45%);
    }

  .filters-form input[type=checkbox],
  .filters-form input[type=radio] {
    /* hide the checkbox in the UI, but keep it accessible */
    clip: rect(1px, 1px, 1px, 1px);  
    clip-path: inset(50%);  
    height: 1px;  
    width: 1px;  
    margin: -1px;  
    overflow: hidden;  
    padding: 0;  
    position: absolute;
  }

  .filters-form input[type=checkbox] + label,
  .filters-form input[type=radio] + label {
    display: block;
    margin: 0.2em 0.3em;
    padding: 0.3em 0.5em;
    background-color: var(--respe-middle-grey);
    font-size: var(--fs-sm);
    color: var(--respe-black);
  }

    .filters-form input[type=checkbox] + label:hover,
    .filters-form input[type=radio] + label:hover {
      background-color: var(--respe-dark-grey);
      color: var(--respe-white);
      cursor: pointer;
    }

    .filters-form input[type=checkbox]:focus + label,
    .filters-form input[type=radio]:focus + label {
      outline: 2px solid red;
    }

    .filters-form input[type=checkbox]:checked + label,
    .filters-form input[type=radio]:checked + label {
      background-color: var(--clr-success-green);
      color: var(--respe-black);
    }

        
    .filters-form input[type=checkbox]:checked + label:hover,
    .filters-form input[type=radio]:checked + label:hover {
      background-color: #F5FFC3;
      color: var(--respe-black);
    }
  
  .filters-form .btn {
    margin: 0.3em;
    font-size: var(--fs-sm);
    cursor: pointer;
  }


/* Reports table */
.reports-list {
  margin-block: 25px;
  margin-inline: auto;
}

.reports-list .td-report-date {
  width: 15%;
}

.reports-list .td-report-service {
  width: 20%;
}

.reports-list .td-report-status {
  width: 20%;
}

.reports-list .td-report-details {
  width: auto;
}

.reports-list .td-report-comments {
  width: 8%;
}

.reports-list .td-report-show-page {
  width: 12%;
}

.reports-list thead td {
  border-left: 1px solid var(--respe-primary-light);
}

.reports-list tbody tr {
  border-bottom: 1px solid var(--line-bg-color);
}

.reports-list tbody tr.is-open {
  --line-bg-color: var(--clr-error-row-red);
}

.reports-list tbody tr.is-open:not(:last-of-type),
.reports-list tbody tr.is-ongoing:not(:last-of-type) {
  border-bottom: 1px solid hsl(193, 18%, 80%);
}

.reports-list tbody tr.is-open:hover {
  --line-bg-color: var(--clr-error-hover-red);
}

.reports-list tbody tr.is-ongoing {
  --line-bg-color: var(--clr-in-progress-row-yellow);
}

.reports-list tbody tr.is-ongoing:hover {
  --line-bg-color: var(--clr-in-progress-hover-yellow);
}

.reports-list tbody tr.is-open td:not(:last-of-type),
.reports-list tbody tr.is-ongoing td:not(:last-of-type) {
  border-right: 1px solid hsl(193, 18%, 80%);
}

      .reports-list .td-report-details:not(th) {
        font-style: italic;
      }


.reports-list .td-report-status:not(th) {
  --td-height: 30px;
  --td-padd-left: 40px;

  position: relative;
  height: var(--td-height);
  padding-left: var(--td-padd-left);
}

.reports-list .td-report-status svg {
  position: absolute;
  top: 50%;
  left: calc(var(--td-padd-left) / 2);
  transform: translate(-50%, -50%);
}

.reports-list .btn {
  margin-block: 0.15em;
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: var(--fs-sm);
}

.pagination a {
  width: 40px;
  margin-inline: 0.15rem;
  background-color: var(--clr-light-grey);
  color: var(--respe-black);
  border: 1px solid transparent;
  text-align: center;
}

.pagination a:not(.arrow) {
  padding-block: 8px;
}

.pagination .arrow {
  font-size: var(--fs-xl);
  line-height: 105%;
}

.pagination .arrow.inactive {
  color: var(--clr-dark-grey);
  cursor: not-allowed;
}

.pagination .active {
  background-color: var(--respe-primary);
  text-decoration: underline;
  font-weight: var(--fw-bold);
  color: var(--clr-white);
}


/* --_ Report/Intervention page _-- */
.report-page,
.intervention-page {
  --service-type-icon-size: 52px;
  
  display: grid;
  gap: 30px 50px;
  padding-inline: var(--service-type-icon-size);
}

.report-page {
  grid-template:
    "title status" min-content
    "results comments" min-content
    / 1fr 1fr;
}

.intervention-page {
  grid-template: 
  "title title" min-content
  "results comments" min-content
  / 1fr 1fr;
}

.intervention-update {
  position: absolute;
  right: 15px;
  transform: translateY(-50%);
}

.intervention-update:hover {
  color: var(--respe-orange);
}

@media screen and (max-width: 774px) {
  .report-page {
    grid-template-areas:
      "title title"
      "status status"
      "results results"
      "comments comments"
    ;
  }

  .intervention-page {
    grid-template-areas: 
      "title title"
      "results results"
      "comments comments"
    ;
  }
}

  .report-page h3,
  .intervention-page h3 {
    font-size: var(--fs-lg);
  }

.report-title {
  grid-area: title;
}

.report-title .service-type {
  transform: translate(-125%, -3%);
}

.report-title h1 {
  margin-bottom: 0.1em;
}

.report-title h2 {
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 300;
}

.report-status {
  grid-area: status;
  align-self: end;

  display: flex;
  gap: 10px;
}

.report-status .status-pill {
  width: fit-content;
  padding: 0.8em 0.9em;
  background-color: var(--clr-success-green);
  font-size: var(--fs-md);
  border-radius: var(--soft-radius);
}

.report-status .status-pill.is-open {
  background-color: var(--clr-error-row-red);
}

.report-status .status-pill.is-ongoing {
  background-color: var(--clr-in-progress-hover-yellow);
}

.report-status .status-pill span {
  text-transform: uppercase;
  font-weight: var(--fw-bold);
}

.report-status button {
  font-size: var(--fs-reg);
}

.report-results {
  grid-area: results;
}

.intervention-page .result-infos {
  box-shadow: var(--box-shadow-light);
}

.result-infos {
  --text-color: var(--respe-black);
  --bg-color: var(--clr-success-green);
  
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  .result-infos.warning {
    --text-color: var(--respe-black);
    --bg-color: var(--clr-in-progress-hover-yellow);
  }
  
  .result-infos.error {
    --text-color: var(--respe-white);
    --bg-color: var(--clr-error-red);
  }
  
  .result-infos.solved {
    --text-color: var(--respe-black);
    --bg-color: var(--clr-light-grey);
  }
  
  .result-infos.intervention {
    --text-color: var(--respe-white);
    --bg-color: var(--respe-dark-grey);
  }
  
    .result-infos > p:first-child {
      display: flex;
      align-items: center;
      padding: 10px;
      font-size: var(--fs-lg);
    } 

      .result-infos .state-icon {
        margin-right: 10px;
        fill: var(--text-color);
      }

      .result-infos .icon-warning {
        margin-left: 5px;
      }

    .result-infos .error-message {
      padding: 20px;
      padding-left: 25px;
      background-color: white;
      color: var(--respe-black);
      border: 2px solid var(--bg-color);
    }

    .result-infos .error-message ul {
      display: block;
      margin-top: 0.33em;
      margin-left: 0.833em;
      font-weight: var(--fw-bold);
    }

  .result-infos .intervention-update {
    top: 55%;
  }

.result-details {
  position: relative;
  margin-top: 40px;
}

.intervention-page .result-details {
  margin-top: 0px;
}

.result-details h3 {
  margin-bottom: 20px;
}

.result-details tbody {
  font-size: var(--fs-reg);
}

.result-details .intervention-update {
  top: var(--fs-md);
}

.result-details tr.report-test-error {
  background-color: var(--clr-error-row-red);
}

.result-details tr.report-test-error:hover {
  background-color: var(--clr-error-hover-red);
}

.result-details tr.report-test-error:not(:last-of-type) {
  border-bottom: 1px solid hsl(193, 18%, 80%);
}

.result-details tr.report-test-error td:not(:last-of-type) {
  border-right: 1px solid hsl(193, 18%, 80%);
}

.result-details .test-infos p:first-of-type {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  font-style: initial;
}

.result-details .test-infos p:nth-of-type(2) {
  margin-block: 0.3em;
}

.result-details .test-infos ul {
  margin-left: 0.6em;
  margin-bottom: 0.5em;
  list-style-type: '- ';
}

.result-details td:not(.test-infos) {
  width: 18%;
}

    .result-details .intervention-message {
      padding: 1.2em;
      box-shadow: var(--box-shadow-light);
      background-color: var(--respe-white);
    }


.report-comments {
  --padding-inline: 20px;

  grid-area: comments;
  height: min-content;
  padding-block: var(--padding-inline);
  box-shadow: var(--box-shadow-light);
  background-color: var(--respe-white);
}

.report-comments>*:not(h3) {
  border-top: 1px solid var(--clr-light-grey);
}

.report-comments h3 {
  margin-bottom: var(--padding-inline);
  padding-inline: var(--padding-inline);
}

.report-comments .comment {
  padding-inline: var(--padding-inline);
  padding-block: 15px var(--padding-inline);
}

.comment-infos {
  display: flex;
  gap: 0.4em;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4em;
  font-size: var(--fs-sm);
}

.comment-infos .comment-date {
  font-weight: var(--fw-bold);
}

.comment-infos .comment-name {
  font-style: italic;
}

.comment-infos svg {
  position: relative;
  top: 2px;
}

.comment-message {
  padding: 4px 10px;
  line-height: 1.3;
  background-color: var(--respe-light-grey);
}

.report-comments .resolved-flag {
  --padding-right: 0.8em;

  position: relative;
  left: calc(0px - var(--padding-inline));
  clip-path: polygon(100% 0%, calc(100% - var(--padding-right)) 50%, 100% 100%, 0 100%, 0 0);
  width: fit-content;
  margin-bottom: 0.6em;
  padding-block: 0.2em;
  padding-inline: var(--padding-inline) calc(var(--padding-right) + 5px);
  background-color: var(--clr-success-green);
  font-size: var(--fs-sm);
  font-style: italic;
}

.report-comments form {
  display: flex;
  flex-direction: column;
  padding: 10px var(--padding-inline) 0;
}

.report-comments textarea {
  margin-block: 8px 15px;
  font-size: var(--fs-reg);
}

.report-comments form p {
  margin-bottom: 15px;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.report-comments label {
  font-size: var(--fs-sm);
  font-style: italic;
}

.report-comments form div>label {
  margin-left: 0.5em;
}

.report-comments button {
  align-self: end;
  margin-right: 0;
  font-size: var(--fs-reg);
  text-transform: uppercase;
}


/* --_ Intervention forms _-- */
.intervention-form-container {
  max-width: 800px;
  margin-inline: auto;
}

.intervention-add {
  display: grid;
  grid-template-areas:
    "infos infos"
    "date service"
    "subject subject"
    "message message"
    "button button"
  ;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: min-content;
  gap: 15px;
}

.intervention-add .infos {
  grid-area: infos;
  font-style: italic;
  font-size: var(--fs-sm);
}

.intervention-add .date {
 grid-area: date;
}

.intervention-add .service {
 grid-area: service;
}

.intervention-add .subject {
 grid-area: subject;
}

.intervention-add .message {
 grid-area: message;
}

.intervention-add button {
 grid-area: button;
 width: clamp(350px, 33%, 450px);
 margin-inline: auto;
 font-size: var(--fs-reg);
}

.intervention-add label {
  display: block;
  margin-bottom: 0.4em;
}

.intervention-add select {
  padding: 0.2em 0.8em;
  font-size: var(--fs-sm);
}

.intervention-add input[type=text] {
  width: 100%;
  padding: 0.4em;
  font-size: var(--fs-sm);
}

.intervention-add input[type=datetime-local] {
  padding: 0.2em;
  font-size: var(--fs-sm);
}

.intervention-add textarea {
  width: 100%;
  padding: 0.2em;
}


/*--- FOOTER ---*/
footer {
  padding-block: 1em;
  font-size: var(--fs-xsm);
  text-align: center;
}