
trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none;
}

trix-toolbar * {
  box-sizing: border-box;
}
trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
}
trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px;
}
trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 1.5vw;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 0;
  }
}
trix-toolbar .trix-button-group-spacer {
  flex-grow: 1;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button-group-spacer {
    display: none;
  }
}
trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
}
trix-toolbar .trix-button:not(:first-child) {
  border-left: 1px solid #ccc;
}
trix-toolbar .trix-button.trix-active {
  background: #cbeefa;
  color: rgb(0, 0, 0);
}
trix-toolbar .trix-button:not(:disabled) {
  cursor: pointer;
}
trix-toolbar .trix-button:disabled {
  color: rgba(0, 0, 0, 0.125);
}
@media (max-width: 768px) {
  trix-toolbar .trix-button {
    letter-spacing: -0.01em;
    padding: 0 0.3em;
  }
}
trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button--icon {
    height: 2em;
    max-width: calc(0.8em + 3.5vw);
  }
}
trix-toolbar .trix-button--icon::before {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.6;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button--icon::before {
    right: 6%;
    left: 6%;
  }
}
trix-toolbar .trix-button--icon.trix-active::before {
  opacity: 1;
}
trix-toolbar .trix-button--icon:disabled::before {
  opacity: 0.125;
}
trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%;
}
trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-dialogs {
  position: relative;
}
trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5;
}
trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
trix-toolbar .trix-input--dialog.validate:invalid {
  box-shadow: #F00 0px 0px 1.5px 1px;
}
trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none;
}
trix-toolbar .trix-dialog--link {
  max-width: 600px;
}
trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline;
}
trix-toolbar .trix-dialog__link-fields .trix-input {
  flex: 1;
}
trix-toolbar .trix-dialog__link-fields .trix-button-group {
  flex: 0 0 content;
  margin: 0;
}

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

trix-editor [data-trix-mutable] ::-moz-selection, trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection {
  background: none;
}
trix-editor [data-trix-mutable] ::selection, trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection {
  background: none;
}

trix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection {
  background: highlight;
}
trix-editor [data-trix-mutable].attachment__caption-editor:focus::selection {
  background: highlight;
}

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent;
}
trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight;
}
trix-editor .attachment {
  position: relative;
}
trix-editor .attachment:hover {
  cursor: default;
}
trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text;
}
trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in;
}
trix-editor .attachment__progress[value="100"] {
  opacity: 0;
}
trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center;
}
trix-editor .trix-button-group {
  display: inline-flex;
}
trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent;
}
trix-editor .trix-button:not(:first-child) {
  border-left: 1px solid #ccc;
}
trix-editor .trix-button.trix-active {
  background: #cbeefa;
}
trix-editor .trix-button:not(:disabled) {
  cursor: pointer;
}
trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
}
trix-editor .trix-button--remove::before {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.7;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90%;
}
trix-editor .trix-button--remove:hover {
  border-color: #333;
}
trix-editor .trix-button--remove:hover::before {
  opacity: 1;
}
trix-editor .attachment__metadata-container {
  position: relative;
}
trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
}
trix-editor .attachment__metadata .attachment__name {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
trix-editor .attachment__metadata .attachment__size {
  margin-left: 0.2em;
  white-space: nowrap;
}

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trix-content * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}
.trix-content blockquote {
  border: 0 solid #ccc;
  border-left-width: 0.3em;
  margin-left: 0.3em;
  padding-left: 0.6em;
}
.trix-content [dir=rtl] blockquote,
.trix-content blockquote[dir=rtl] {
  border-width: 0;
  border-right-width: 0.3em;
  margin-right: 0.3em;
  padding-right: 0.6em;
}
.trix-content li {
  margin-left: 1em;
}
.trix-content [dir=rtl] li {
  margin-right: 1em;
}
.trix-content pre {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #eee;
  overflow-x: auto;
}
.trix-content img {
  max-width: 100%;
  height: auto;
}
.trix-content .attachment {
  display: inline-block;
  position: relative;
  max-width: 100%;
}
.trix-content .attachment a {
  color: inherit;
  text-decoration: none;
}
.trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
  color: inherit;
}
.trix-content .attachment__caption {
  text-align: center;
}
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
  content: " •";
}
.trix-content .attachment--preview {
  width: 100%;
  text-align: center;
}
.trix-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}
.trix-content .attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.4em 1em;
  border: 1px solid #bbb;
  border-radius: 5px;
}
.trix-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.trix-content .attachment-gallery .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}
.trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
  flex-basis: 50%;
  max-width: 50%;
}
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
 @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
 
/* @import 'actiontext.css'; */

@tailwind base;
@tailwind components;
@tailwind utilities;

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

html {
  scroll-behavior: smooth;
}

@layer components {
  .home_ipay_link {
    @apply button bg-orange-100 hover:is-light text-orange-900 flex mx-auto items-center shadow-xl hover:shadow-orange-300 w-full text-center justify-center z-30 absolute inset-0 text-xs sm:text-base;
  }

  .step_payment_btn {
    @apply button is-light hover:bg-orange-500 hover:text-white flex mx-auto items-center shadow-xl hover:shadow-orange-300 w-full text-center justify-center z-30 absolute inset-0 text-xs sm:text-base;
  }
  
  .cards {
    @apply rounded-lg border border-gray-200 bg-slate-50 p-5 shadow-sm transition hover:shadow-lg sm:p-6 w-[25rem];
  }

  .card-head {
    @apply rounded bg-blue-600 p-2 text-white flex space-x-5 items-center;
  }

  .rejet-card {
    @apply border border-red-200 bg-red-100
  }

  .valid-card {
    @apply border border-green-200 bg-red-100
  }

  .tag {
    @apply p-2 border border-transparent text-sm font-semibold rounded-md text-white cursor-pointer;
  }

  .is-primary {
    @apply bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
  }

  .btn-primary {
    @apply bg-orange-500 hover:bg-orange-600 text-white py-2 px-3 shadow-lg hover:shadow-none cursor-pointer rounded-md align-middle;
  }

  .is-warning {
    @apply bg-yellow-400 hover:bg-yellow-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-yellow-500
  }

  .is-danger {
    @apply bg-red-600 hover:bg-red-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500
  }

  .is-light-primary {
    @apply bg-blue-200 text-blue-600 hover:bg-blue-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
  }

  .is-light-warning {
    @apply bg-yellow-200 text-yellow-600 hover:bg-yellow-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-yellow-500
  }

  .is-light-danger {
    @apply bg-red-200 text-red-600 hover:bg-red-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500
  }

  .is-light-success {
    @apply bg-green-200 text-green-600 hover:bg-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500
  }

  .is-light {
    @apply bg-slate-200 !text-slate-600 hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500
  }

  .is-light-outlined {
    @apply !text-slate-400 !border-slate-400 hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500
  }

  .is-outlined-danger {
    @apply border !border-red-700 !text-red-700 bg-transparent hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 hover:text-white
  }

  .is-success {
    @apply bg-green-600 hover:bg-green-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500
  }

  .is-cyan {
    @apply bg-cyan-600 hover:bg-cyan-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500
  }

  .label {
    @apply font-medium inline-block mb-1
  }

  .button-step {
    @apply py-2 w-full flex justify-center items-center pl-[1.3rem] h-[63px] relative bg-blue-300 hover:bg-blue-400
  }

  .button-step-active {
    @apply border-transparent font-medium text-white cursor-pointer bg-blue-600 hover:bg-blue-700
  }

  .button-step-disabled {
    @apply pointer-events-none text-gray-400 hover:bg-blue-200
  }

  .card {
    @apply relative flex min-w-0 flex-col break-words rounded-2xl bg-white bg-clip-border p-4 top-1
  }

  .card-title {
    @apply my-6 text-2xl font-semibold transition-colors duration-150 text-slate-700 text-center
  }

  .button {
    @apply py-2 px-4 border border-transparent font-medium rounded-md text-white cursor-pointer;
  }

  .btn-primary {
    @apply bg-orange-500 hover:bg-orange-600 text-white py-2 px-3 shadow-lg hover:shadow-none cursor-pointer rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2;
  }

  .btn-login {
    @apply cursor-pointer px-4 py-2 text-lg bg-orange-600 hover:bg-orange-400 text-white shadow-xl hover:shadow-none rounded;
  }

  .btn-logout {
    @apply cursor-pointer px-4 py-2 border border-red-500 text-red-500 hover:bg-red-500 hover:text-white shadow-xl hover:shadow-none rounded;
  }

  .links {
    @apply px-3 py-1.5 rounded inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-orange-600
  }

  .deposed-btn {
    @apply cursor-pointer rounded-full bg-green-600 px-8 py-2 h-12 text-sm font-semibold text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 shadow-lg hover:shadow-none;
  }

  .undeposed-btn {
    @apply cursor-pointer rounded-full bg-pink-600 px-8 py-2 h-12 text-sm font-semibold text-white hover:bg-pink-700 focus:outline-none focus:ring-2 focus:ring-offset-2 shadow-lg hover:shadow-none;
  }

  .file-btn {
    @apply cursor-pointer bg-cyan-600 hover:bg-cyan-700 px-4 py-2 text-white rounded text-lg shadow-xl hover:shadow-none;
  }

  .link-download {
    @apply cursor-pointer rounded-lg bg-orange-500 px-4 py-1.5 font-semibold text-white text-xs sm:text-lg hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-offset-2 shadow-xl hover:shadow-none;
  }

  .download-button {
    @apply flex items-center gap-2 bg-gray-100 hover:bg-gray-200 text-blue-700 py-2 px-4 rounded-md transition;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.zoom-animation {
  transition: transform 0.7s ease-in-out;
  /* Définissez la durée et la fonction de transition selon vos préférences */
  transform-origin: center center;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: floating 9s ease-in-out infinite;
  /* Définissez la durée et la fonction de transition selon vos préférences */
}
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-left {
  animation: slideInFromLeft 1s ease-out forwards;
}

@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-down-animation {
  animation: fade-in-down 1.75s ease-in-out;
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}
@keyframes slide-in-right {
  0% {
      visibility: visible;
      transform: translate3d(100%, 0, 0);
  }
  100% {
      transform: translate3d(0, 0, 0);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 1s ease-out forwards;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-in-top {
  animation: slideInFromTop 1s ease-out forwards;
}
.choices {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  font-size: 16px
}

.choices:focus {
  outline: 0
}

.choices:last-child {
  margin-bottom: 0
}

.choices.is-open {
  overflow: initial
}

.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input {
  background-color: #eaeaea;
  cursor: not-allowed;
  -webkit-user-select: none;
  user-select: none
}

.choices.is-disabled .choices__item {
  cursor: not-allowed
}

.choices [hidden] {
  display: none !important
}

.choices[data-type*=select-one] {
  cursor: pointer
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 7.5px
}

.choices[data-type*=select-one] .choices__input {
  display: block;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  margin: 0
}

.choices[data-type*=select-one] .choices__button {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);
  padding: 0;
  background-size: 8px;
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -10px;
  margin-right: 25px;
  height: 20px;
  width: 20px;
  border-radius: 10em;
  opacity: .25
}

.choices[data-type*=select-one] .choices__button:focus,
.choices[data-type*=select-one] .choices__button:hover {
  opacity: 1
}

.choices[data-type*=select-one] .choices__button:focus {
  box-shadow: 0 0 0 2px #0346f2
}

.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button {
  display: none
}

.choices[data-type*=select-one]::after {
  content: "";
  height: 0;
  width: 0;
  border-style: solid;
  border-color: #333 transparent transparent;
  border-width: 5px;
  position: absolute;
  right: 11.5px;
  top: 50%;
  margin-top: -2.5px;
  pointer-events: none
}

.choices[data-type*=select-one].is-open::after {
  border-color: transparent transparent #333;
  margin-top: -7.5px
}

.choices[data-type*=select-one][dir=rtl]::after {
  left: 11.5px;
  right: auto
}

.choices[data-type*=select-one][dir=rtl] .choices__button {
  right: auto;
  left: 0;
  margin-left: 25px;
  margin-right: 0
}

.choices[data-type*=select-multiple] .choices__inner,
.choices[data-type*=text] .choices__inner {
  cursor: text
}

.choices[data-type*=select-multiple] .choices__button,
.choices[data-type*=text] .choices__button {
  position: relative;
  display: inline-block;
  margin: 0 -4px 0 8px;
  padding-left: 16px;
  border-left: 1px solid #0544e6;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);
  background-size: 8px;
  width: 8px;
  line-height: 1;
  opacity: .75;
  border-radius: 0
}

.choices[data-type*=select-multiple] .choices__button:focus,
.choices[data-type*=select-multiple] .choices__button:hover,
.choices[data-type*=text] .choices__button:focus,
.choices[data-type*=text] .choices__button:hover {
  opacity: 1
}

.choices__inner {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  background-color: #ffffff;
  padding: 7.5px 7.5px 3.75px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 6px;
}

.is-focused .choices__inner,
.is-open .choices__inner {
  border-color: #b7b7b7
}

.is-open .choices__inner {
  border-radius: 2.5px 2.5px 0 0
}

.is-flipped.is-open .choices__inner {
  border-radius: 0 0 2.5px 2.5px
}

.choices__list {
  margin: 0;
  padding-left: 0;
  list-style: none
}

.choices__list--single {
  display: inline-block;
  padding: 4px 16px 4px 4px;
  width: 100%
}

[dir=rtl] .choices__list--single {
  padding-right: 4px;
  padding-left: 16px
}

.choices__list--single .choices__item {
  width: 100%
}

.choices__list--multiple {
  display: inline
}

.choices__list--multiple .choices__item {
  display: inline-block;
  vertical-align: middle;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 3.75px;
  margin-bottom: 3.75px;
  background-color: #0346f2;
  border: 1px solid #0238c2;
  color: #fff;
  word-break: break-all;
  box-sizing: border-box
}

.choices__list--multiple .choices__item[data-deletable] {
  padding-right: 5px
}

[dir=rtl] .choices__list--multiple .choices__item {
  margin-right: 0;
  margin-left: 3.75px
}

.choices__list--multiple .choices__item.is-highlighted {
  background-color: #0238c2;
  border: 1px solid #0544e6
}

.is-disabled .choices__list--multiple .choices__item {
  background-color: #aaa;
  border: 1px solid #919191
}


@media screen and (min-width: 550px),
print {
  .country-select .choices__list--dropdown {
    min-width: 252px;
  }
}

.country-select .choices__inner {
  padding: 2px !important;
  min-height: 32px;
  font-size: 13px;
}

.country-select .choices__list.choices__list--single {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100px;
  /* padding: 2px; */
}

.choices__list--dropdown {
  visibility: hidden;
  z-index: 1;
  position: absolute;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  overflow: hidden;
  word-break: break-all;
  will-change: visibility
}

.choices__list--dropdown.is-active {
  visibility: visible
}

.is-open .choices__list--dropdown {
  border-color: #b7b7b7
}

.is-flipped .choices__list--dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -1px;
  border-radius: .25rem .25rem 0 0
}

.choices__list--dropdown .choices__list {
  position: relative;
  max-height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position
}

.choices__list--dropdown .choices__item {
  position: relative;
  padding: 10px;
  font-size: 14px
}

[dir=rtl] .choices__list--dropdown .choices__item {
  text-align: right
}

@media (min-width:640px) {
  .choices__list--dropdown .choices__item--selectable {
    padding-right: 100px
  }

  .choices__list--dropdown .choices__item--selectable::after {
    content: attr(data-select-text);
    font-size: 12px;
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%)
  }

  [dir=rtl] .choices__list--dropdown .choices__item--selectable {
    text-align: right;
    padding-left: 100px;
    padding-right: 10px
  }

  [dir=rtl] .choices__list--dropdown .choices__item--selectable::after {
    right: auto;
    left: 10px
  }
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f2f2f2
}

.choices__list--dropdown .choices__item--selectable.is-highlighted::after {
  opacity: .5
}

.choices__item {
  cursor: default
}

.choices__item--selectable {
  cursor: pointer
}

.choices__item--disabled {
  cursor: not-allowed;
  -webkit-user-select: none;
  user-select: none;
  opacity: .5
}

.choices__heading {
  font-weight: 600;
  font-size: 12px;
  padding: 10px;
  border-bottom: 1px solid #f7f7f7;
  color: gray
}

.choices__button {
  text-indent: -9999px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer
}

.choices__button:focus,
.choices__input:focus {
  outline: 0
}

.choices__input {
  display: inline-block;
  vertical-align: baseline;
  background-color: #f9f9f9;
  font-size: 14px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  padding: 4px 0 4px 2px
}

[dir=rtl] .choices__input {
  padding-right: 2px;
  padding-left: 0
}

.choices__placeholder {
  opacity: .5
}

/* select country-select */
.flatpickr-calendar {
  background: transparent;
  opacity: 0;
  display: none;
  text-align: center;
  visibility: hidden;
  padding: 0;
  -webkit-animation: none;
          animation: none;
  direction: ltr;
  border: 0;
  font-size: 14px;
  line-height: 24px;
  border-radius: 5px;
  position: absolute;
  width: 307.875px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  background: #fff;
  -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);
          box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);
}
.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  opacity: 1;
  max-height: 640px;
  visibility: visible;
}
.flatpickr-calendar.open {
  display: inline-block;
  z-index: 99999;
}
.flatpickr-calendar.animate.open {
  -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
          animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.flatpickr-calendar.inline {
  display: block;
  position: relative;
  top: 2px;
}
.flatpickr-calendar.static {
  position: absolute;
  top: calc(100% + 2px);
}
.flatpickr-calendar.static.open {
  z-index: 999;
  display: block;
}
.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
  -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
          box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}
.flatpickr-calendar .hasWeeks .dayContainer,
.flatpickr-calendar .hasTime .dayContainer {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.flatpickr-calendar .hasWeeks .dayContainer {
  border-left: 0;
}
.flatpickr-calendar.hasTime .flatpickr-time {
  height: 40px;
  border-top: 1px solid #e6e6e6;
}
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
  height: auto;
}
.flatpickr-calendar:before,
.flatpickr-calendar:after {
  position: absolute;
  display: block;
  pointer-events: none;
  border: solid transparent;
  content: '';
  height: 0;
  width: 0;
  left: 22px;
}
.flatpickr-calendar.rightMost:before,
.flatpickr-calendar.arrowRight:before,
.flatpickr-calendar.rightMost:after,
.flatpickr-calendar.arrowRight:after {
  left: auto;
  right: 22px;
}
.flatpickr-calendar.arrowCenter:before,
.flatpickr-calendar.arrowCenter:after {
  left: 50%;
  right: 50%;
}
.flatpickr-calendar:before {
  border-width: 5px;
  margin: 0 -5px;
}
.flatpickr-calendar:after {
  border-width: 4px;
  margin: 0 -4px;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  bottom: 100%;
}
.flatpickr-calendar.arrowTop:before {
  border-bottom-color: #e6e6e6;
}
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #fff;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  top: 100%;
}
.flatpickr-calendar.arrowBottom:before {
  border-top-color: #e6e6e6;
}
.flatpickr-calendar.arrowBottom:after {
  border-top-color: #fff;
}
.flatpickr-calendar:focus {
  outline: 0;
}
.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}
.flatpickr-months {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.flatpickr-months .flatpickr-month {
  background: transparent;
  color: rgba(0,0,0,0.9);
  fill: rgba(0,0,0,0.9);
  height: 34px;
  line-height: 1;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  overflow: hidden;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 34px;
  padding: 10px;
  z-index: 3;
  color: rgba(0,0,0,0.9);
  fill: rgba(0,0,0,0.9);
}
.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
.flatpickr-months .flatpickr-next-month.flatpickr-disabled {
  display: none;
}
.flatpickr-months .flatpickr-prev-month i,
.flatpickr-months .flatpickr-next-month i {
  position: relative;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
/*
      /*rtl:begin:ignore*/
/*
      */
  left: 0;
/*
      /*rtl:end:ignore*/
/*
      */
}
/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,
.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
/*
      /*rtl:begin:ignore*/
/*
      */
  right: 0;
/*
      /*rtl:end:ignore*/
/*
      */
}
/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #959ea9;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #f64747;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}
.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  -webkit-transition: fill 0.1s;
  transition: fill 0.1s;
  fill: inherit;
}
.numInputWrapper {
  position: relative;
  height: auto;
}
.numInputWrapper input,
.numInputWrapper span {
  display: inline-block;
}
.numInputWrapper input {
  width: 100%;
}
.numInputWrapper input::-ms-clear {
  display: none;
}
.numInputWrapper input::-webkit-outer-spin-button,
.numInputWrapper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.numInputWrapper span {
  position: absolute;
  right: 0;
  width: 14px;
  padding: 0 4px 0 2px;
  height: 50%;
  line-height: 50%;
  opacity: 0;
  cursor: pointer;
  border: 1px solid rgba(57,57,57,0.15);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.numInputWrapper span:hover {
  background: rgba(0,0,0,0.1);
}
.numInputWrapper span:active {
  background: rgba(0,0,0,0.2);
}
.numInputWrapper span:after {
  display: block;
  content: "";
  position: absolute;
}
.numInputWrapper span.arrowUp {
  top: 0;
  border-bottom: 0;
}
.numInputWrapper span.arrowUp:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(57,57,57,0.6);
  top: 26%;
}
.numInputWrapper span.arrowDown {
  top: 50%;
}
.numInputWrapper span.arrowDown:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(57,57,57,0.6);
  top: 40%;
}
.numInputWrapper span svg {
  width: inherit;
  height: auto;
}
.numInputWrapper span svg path {
  fill: rgba(0,0,0,0.5);
}
.numInputWrapper:hover {
  background: rgba(0,0,0,0.05);
}
.numInputWrapper:hover span {
  opacity: 1;
}
.flatpickr-current-month {
  font-size: 135%;
  line-height: inherit;
  font-weight: 300;
  color: inherit;
  position: absolute;
  width: 75%;
  left: 12.5%;
  padding: 7.48px 0 0 0;
  line-height: 1;
  height: 34px;
  display: inline-block;
  text-align: center;
  -webkit-transform: translate3d(0px, 0px, 0px);
          transform: translate3d(0px, 0px, 0px);
}
.flatpickr-current-month span.cur-month {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-left: 0.5ch;
  padding: 0;
}
.flatpickr-current-month span.cur-month:hover {
  background: rgba(0,0,0,0.05);
}
.flatpickr-current-month .numInputWrapper {
  width: 6ch;
  width: 7ch\0;
  display: inline-block;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: rgba(0,0,0,0.9);
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: rgba(0,0,0,0.9);
}
.flatpickr-current-month input.cur-year {
  background: transparent;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: inherit;
  cursor: text;
  padding: 0 0 0 0.5ch;
  margin: 0;
  display: inline-block;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  line-height: inherit;
  height: auto;
  border: 0;
  border-radius: 0;
  vertical-align: initial;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}
.flatpickr-current-month input.cur-year:focus {
  outline: 0;
}
.flatpickr-current-month input.cur-year[disabled],
.flatpickr-current-month input.cur-year[disabled]:hover {
  font-size: 100%;
  color: rgba(0,0,0,0.5);
  background: transparent;
  pointer-events: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: menulist;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  height: auto;
  line-height: inherit;
  margin: -1px 0 0 0;
  outline: none;
  padding: 0 0 0 0.5ch;
  position: relative;
  vertical-align: initial;
  -webkit-box-sizing: border-box;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  width: auto;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .flatpickr-monthDropdown-months:active {
  outline: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(0,0,0,0.05);
}
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background-color: transparent;
  outline: none;
  padding: 0;
}
.flatpickr-weekdays {
  background: transparent;
  text-align: center;
  overflow: hidden;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 28px;
}
.flatpickr-weekdays .flatpickr-weekdaycontainer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
span.flatpickr-weekday {
  cursor: default;
  font-size: 90%;
  background: transparent;
  color: rgba(0,0,0,0.54);
  line-height: 1;
  margin: 0;
  text-align: center;
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-weight: bolder;
}
.dayContainer,
.flatpickr-weeks {
  padding: 1px 0 0 0;
}
.flatpickr-days {
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  width: 307.875px;
}
.flatpickr-days:focus {
  outline: 0;
}
.dayContainer {
  padding: 0;
  outline: 0;
  text-align: left;
  width: 307.875px;
  min-width: 307.875px;
  max-width: 307.875px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: inline-block;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-around;
          justify-content: space-around;
  -webkit-transform: translate3d(0px, 0px, 0px);
          transform: translate3d(0px, 0px, 0px);
  opacity: 1;
}
.dayContainer + .dayContainer {
  -webkit-box-shadow: -1px 0 0 #e6e6e6;
          box-shadow: -1px 0 0 #e6e6e6;
}
.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 150px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: #393939;
  cursor: pointer;
  font-weight: 400;
  width: 14.2857143%;
  -webkit-flex-basis: 14.2857143%;
      -ms-flex-preferred-size: 14.2857143%;
          flex-basis: 14.2857143%;
  max-width: 39px;
  height: 39px;
  line-height: 39px;
  margin: 0;
  display: inline-block;
  position: relative;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  cursor: pointer;
  outline: 0;
  background: #e6e6e6;
  border-color: #e6e6e6;
}
.flatpickr-day.today {
  border-color: #959ea9;
}
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  border-color: #959ea9;
  background: #959ea9;
  color: #fff;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #0346f2;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #fff;
  border-color: #0346f2;
}
.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
  border-radius: 50px 0 0 50px;
}
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
  border-radius: 0 50px 50px 0;
}
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  -webkit-box-shadow: -10px 0 0 #0346f2;
          box-shadow: -10px 0 0 #0346f2;
}
.flatpickr-day.selected.startRange.endRange,
.flatpickr-day.startRange.startRange.endRange,
.flatpickr-day.endRange.startRange.endRange {
  border-radius: 50px;
}
.flatpickr-day.inRange {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
          box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  color: rgba(57,57,57,0.3);
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
  color: rgba(57,57,57,0.1);
}
.flatpickr-day.week.selected {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #0346f2, 5px 0 0 #0346f2;
          box-shadow: -5px 0 0 #0346f2, 5px 0 0 #0346f2;
}
.flatpickr-day.hidden {
  visibility: hidden;
}
.rangeMode .flatpickr-day {
  margin-top: 1px;
}
.flatpickr-weekwrapper {
  float: left;
}
.flatpickr-weekwrapper .flatpickr-weeks {
  padding: 0 12px;
  -webkit-box-shadow: 1px 0 0 #e6e6e6;
          box-shadow: 1px 0 0 #e6e6e6;
}
.flatpickr-weekwrapper .flatpickr-weekday {
  float: none;
  width: 100%;
  line-height: 28px;
}
.flatpickr-weekwrapper span.flatpickr-day,
.flatpickr-weekwrapper span.flatpickr-day:hover {
  display: block;
  width: 100%;
  max-width: none;
  color: rgba(57,57,57,0.3);
  background: transparent;
  cursor: default;
  border: none;
}
.flatpickr-innerContainer {
  display: block;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
}
.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.flatpickr-time {
  text-align: center;
  outline: 0;
  display: block;
  height: 0;
  line-height: 40px;
  max-height: 40px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.flatpickr-time:after {
  content: "";
  display: table;
  clear: both;
}
.flatpickr-time .numInputWrapper {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: 40%;
  height: 40px;
  float: left;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #393939;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #393939;
}
.flatpickr-time.hasSeconds .numInputWrapper {
  width: 26%;
}
.flatpickr-time.time24hr .numInputWrapper {
  width: 49%;
}
.flatpickr-time input {
  background: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 0;
  border-radius: 0;
  text-align: center;
  margin: 0;
  padding: 0;
  height: inherit;
  line-height: inherit;
  color: #393939;
  font-size: 14px;
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}
.flatpickr-time input.flatpickr-hour {
  font-weight: bold;
}
.flatpickr-time input.flatpickr-minute,
.flatpickr-time input.flatpickr-second {
  font-weight: 400;
}
.flatpickr-time input:focus {
  outline: 0;
  border: 0;
}
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  height: inherit;
  float: left;
  line-height: inherit;
  color: #393939;
  font-weight: bold;
  width: 2%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-align-self: center;
      -ms-flex-item-align: center;
          align-self: center;
}
.flatpickr-time .flatpickr-am-pm {
  outline: 0;
  width: 18%;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
}
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #eee;
}
.flatpickr-input[readonly] {
  cursor: pointer;
}
@-webkit-keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
            transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
            transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane>svg,
.leaflet-pane>canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  overflow: hidden;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
  background: transparent;
}

/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
  image-rendering: -webkit-optimize-contrast;
}

/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
  width: 1600px;
  height: 1600px;
  -webkit-transform-origin: 0 0;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}

.leaflet-container.leaflet-touch-zoom {
  -ms-touch-action: pan-x pan-y;
  touch-action: pan-x pan-y;
}

.leaflet-container.leaflet-touch-drag {
  -ms-touch-action: pinch-zoom;
  /* Fallback for FF which doesn't support pinch-zoom */
  touch-action: none;
  touch-action: pinch-zoom;
}

.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  -ms-touch-action: none;
  touch-action: none;
}

.leaflet-container {
  -webkit-tap-highlight-color: transparent;
}

.leaflet-container a {
  -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}

.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-zoom-box {
  width: 0;
  height: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 800;
}

/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
  -moz-user-select: none;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-pane canvas {
  z-index: 100;
}

.leaflet-map-pane svg {
  z-index: 200;
}

.leaflet-vml-shape {
  width: 1px;
  height: 1px;
}

.lvml {
  behavior: url(#default#VML);
  display: inline-block;
  position: absolute;
}


/* control positioning */

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted;
  /* IE 9-10 doesn't have auto */
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
  opacity: 0;
  -webkit-transition: opacity 0.2s linear;
  -moz-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  opacity: 1;
}

.leaflet-zoom-animated {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

svg.leaflet-zoom-animated {
  will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}


/* cursors */

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-grab {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}

.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
  cursor: crosshair;
}

.leaflet-popup-pane,
.leaflet-control {
  cursor: auto;
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
  cursor: move;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane>svg path,
.leaflet-tile-container {
  pointer-events: none;
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane>svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
  pointer-events: visiblePainted;
  /* IE 9-10 doesn't have auto */
  pointer-events: auto;
}

/* visual tweaks */

.leaflet-container {
  background: #ddd;
  outline-offset: 1px;
}

.leaflet-container a {
  color: #0078A8;
}

.leaflet-zoom-box {
  border: 2px dotted #38f;
  background: rgba(255, 255, 255, 0.5);
}


/* general typography */
.leaflet-container {
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}


/* general toolbar styles */

.leaflet-bar {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}

.leaflet-bar a {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  width: 26px;
  height: 26px;
  line-height: 26px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
}

.leaflet-bar a,
.leaflet-control-layers-toggle {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  display: block;
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #f4f4f4;
}

.leaflet-bar a:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.leaflet-bar a:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom: none;
}

.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background-color: #f4f4f4;
  color: #bbb;
}

.leaflet-touch .leaflet-bar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
}

.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font: bold 18px 'Lucida Console', Monaco, monospace;
  text-indent: 1px;
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 22px;
}


/* layers control */

.leaflet-control-layers {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
  border-radius: 5px;
}

.leaflet-control-layers-toggle {
  background-image: url(/images/layers.png);
  width: 36px;
  height: 36px;
}

.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url(/images/layers-2x.png);
  background-size: 26px 26px;
}

.leaflet-touch .leaflet-control-layers-toggle {
  width: 44px;
  height: 44px;
}

.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none;
}

.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
  position: relative;
}

.leaflet-control-layers-expanded {
  padding: 6px 10px 6px 6px;
  color: #333;
  background: #fff;
}

.leaflet-control-layers-scrollbar {
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 5px;
}

.leaflet-control-layers-selector {
  margin-top: 2px;
  position: relative;
  top: 1px;
}

.leaflet-control-layers label {
  display: block;
  font-size: 13px;
  font-size: 1.08333em;
}

.leaflet-control-layers-separator {
  height: 0;
  border-top: 1px solid #ddd;
  margin: 5px -10px 5px -6px;
}

/* Default icon URLs */
.leaflet-default-icon-path {
  /* used only in path-guessing heuristic, see L.Icon.Default */
  background-image: url(/images/marker-icon.png);
}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
  background: #fff;
  background: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.leaflet-control-attribution,
.leaflet-control-scale-line {
  padding: 0 5px;
  color: #333;
  line-height: 1.4;
}

.leaflet-control-attribution a {
  text-decoration: none;
}

.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
  text-decoration: underline;
}

.leaflet-attribution-flag {
  display: inline !important;
  vertical-align: baseline !important;
  width: 1em;
  height: 0.6669em;
}

.leaflet-left .leaflet-control-scale {
  margin-left: 5px;
}

.leaflet-bottom .leaflet-control-scale {
  margin-bottom: 5px;
}

.leaflet-control-scale-line {
  border: 2px solid #777;
  border-top: none;
  line-height: 1.1;
  padding: 2px 5px 1px;
  white-space: nowrap;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px #fff;
}

.leaflet-control-scale-line:not(:first-child) {
  border-top: 2px solid #777;
  border-bottom: none;
  margin-top: -2px;
}

.leaflet-control-scale-line:not(:first-child):not(:last-child) {
  border-bottom: 2px solid #777;
}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  box-shadow: none;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: 2px solid rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
}


/* popup */

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 12px;
}

.leaflet-popup-content {
  margin: 13px 24px 13px 20px;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}

.leaflet-popup-content p {
  margin: 17px 0;
  margin: 1.3em 0;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;

  margin: -10px auto 0;
  pointer-events: auto;

  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: white;
  color: #333;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  font: 16px/24px Tahoma, Verdana, sans-serif;
  color: #757575;
  text-decoration: none;
  background: transparent;
}

.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  color: #585858;
}

.leaflet-popup-scrolled {
  overflow: auto;
}

.leaflet-oldie .leaflet-popup-content-wrapper {
  -ms-zoom: 1;
}

.leaflet-oldie .leaflet-popup-tip {
  width: 24px;
  margin: 0 auto;

  -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
  border: 1px solid #999;
}


/* div icon */

.leaflet-div-icon {
  background: #fff;
  border: 1px solid #666;
}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #222;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.leaflet-tooltip.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  position: absolute;
  pointer-events: none;
  border: 6px solid transparent;
  background: transparent;
  content: "";
}

/* Directions */

.leaflet-tooltip-bottom {
  margin-top: 6px;
}

.leaflet-tooltip-top {
  margin-top: -6px;
}

.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
  left: 50%;
  margin-left: -6px;
}

.leaflet-tooltip-top:before {
  bottom: 0;
  margin-bottom: -12px;
  border-top-color: #fff;
}

.leaflet-tooltip-bottom:before {
  top: 0;
  margin-top: -12px;
  margin-left: -6px;
  border-bottom-color: #fff;
}

.leaflet-tooltip-left {
  margin-left: -6px;
}

.leaflet-tooltip-right {
  margin-left: 6px;
}

.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  top: 50%;
  margin-top: -6px;
}

.leaflet-tooltip-left:before {
  right: 0;
  margin-right: -12px;
  border-left-color: #fff;
}

.leaflet-tooltip-right:before {
  left: 0;
  margin-left: -12px;
  border-right-color: #fff;
}

/* Printing */

@media print {

  /* Prevent printers from removing background-images of controls. */
  .leaflet-control {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.loader {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-bottom: 5px solid #ff5500;
  animation: animate 1s linear infinite;
}

.loader::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  right: 10px;
  border-radius: 50%;
  border-bottom: 3px solid #ffffff;
  animation: animate 2s linear infinite
}

.loader::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  bottom: 22px;
  right: 22px;
  border-radius: 50%;
  border-bottom: 2px solid #04f504;
  animation: animate 3s linear infinite
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(50deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader:hover {
  display: none;
}
.button-step {
  @apply relative inline-flex items-center px-4 py-2 text-sm font-semibold transition-all duration-300 ease-in-out text-slate-700;
  background-color: #dbeafe; /* blue-100 par défaut */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.button-step::before,
.button-step::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-top: 32px solid transparent;
  border-bottom: 32px solid transparent;
  transition: all 0.3s ease-in-out;
}

.button-step::after {
  right: -18px;
  border-left: 18px solid #93c5fd; /* blue-300 */
  z-index: 1;
}

.button-step::before {
  left: 0;
  border-left: 20px solid #fff;
}

.button-step:hover::after {
  border-left-color: #60a5fa; /* blue-400 */
}

/* === Actif === */
.button-step-active {
  background-color: #f97316 !important; /* orange-500 */
  color: #ffffff !important;
}

.button-step-active::after {
  border-left-color: #f97316 !important;
}

.button-step-active:hover::after {
  border-left-color: #ea580c !important; /* orange-600 */
}

/* === Désactivé === */
.button-step-disabled {
  @apply cursor-not-allowed opacity-50 pointer-events-none;
}
.notification {
  animation: slideInOut 7s 1;
  -webkit-animation: slideInOut 7s 1;
  -moz-animation: slideInOut 7s 1;
  -o-animation: slideInOut 7s 1;
  -ms-animation: slideInOut 7s 1;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.68, -.55, .265, 1.3);
  /* background-color: #f5f5f5; */
  /* border-radius: 4px; */
  max-width: 600px;
  padding: 1.25rem 2.5rem 1.25rem 1.5rem;
  position: fixed;
  right: .5rem;
  z-index: 100
}

@keyframes slideInOut {
  0% {
    transform: translateX(110%)
  }
  25%{
    transform: translateX(0)
  }
  50%{
    transform: translateX(0)
  }
  to {
    transform: translateX(110%)
  }
}
.a4-page {
  width: 260mm;
  margin: 0 auto 20px auto;
  background: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 30mm 20mm;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  page-break-after: always;
  margin-top: 100px;
}
body {
  background: #e5e7eb;
}
@media print {
  body {
    background: white;
  }
  .a4-page {
    box-shadow: none;
    margin: 0;
    page-break-after: always;
  }
}
.pagy {
  display: flex;
  font-family: sans-serif;
  font-size: 0.9rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #ff9500;
}

.pagy> :not([hidden])~ :not([hidden]) {
  --space-reverse: 0;
  margin-right: calc(0.25rem * var(--space-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
}

.pagy a:not(.gap) {
  display: block;
  text-decoration: none;
  border-radius: 0.5rem;
  background-color: #ebe9e5;
  padding: 0.25rem 0.75rem;
  color: inherit;
}

.pagy a:not(.gap):hover {
  background-color: #dbd7d1;
}

.pagy a:not(.gap):not([href]) {
  /* disabled links */
  cursor: default;
  background-color: #f3f4f6;
  color: #d1d5db;
}

.pagy a:not(.gap).current {
  background-color: #ffbe82;
  color: white;
}

.pagy label {
  white-space: nowrap;
  display: inline-block;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  padding: 0.125rem 0.75rem;
}

.pagy label input {
  line-height: 1.5rem;
  border-radius: 0.375rem;
  border-style: none;
  background-color: #f3f4f6;
}
/* =============================================================================
   iFutur — Administration · STYLES DE COMPOSANTS
   Toutes les classes .ng-* de l'app vivent ici. Importe les tokens.
   ============================================================================= */

:root {
   --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
   --font-mono: var(--font-sans);

   --bg-page: #fafbfa;
   --bg-surface: #ffffff;

   --n-0: #ffffff;
   --n-25: #f7f8f8;
   --n-50: #f1f3f2;
   --n-100: #e7eae8;
   --n-200: #d8dcd9;
   --n-300: #c0c6c2;
   --n-400: #949b97;
   --n-500: #6b726e;
   --n-600: #4d534f;
   --n-700: #343935;
   --n-900: #121613;

   --fg-1: var(--n-900);
   --fg-2: var(--n-700);
   --fg-3: var(--n-500);
   --fg-4: var(--n-400);

   --border-subtle: var(--n-100);
   --border-default: var(--n-200);
   --border-strong: var(--n-300);

   --ng-green-50: #e8f3e8;
   --ng-green-100: #cde6ce;
   --ng-green-200: #9dcd9f;
   --ng-green-300: #5faf62;
   --ng-green-500: #127914;
   --ng-green-600: #0e6510;
   --ng-green-700: #0a4f0c;

   --ng-orange-50: #fff4e5;
   --ng-orange-100: #ffe4c2;
   --ng-orange-200: #ffcd8f;
   --ng-orange-500: #ff8c00;
   --ng-orange-600: #e07700;
   --ng-orange-700: #b35e00;

   --ng-teal-50: #e4f1ef;
   --ng-teal-500: #2d8c86;

   --ng-blue-50: #e5eff9;
   --ng-blue-500: #2c6db5;

   --ng-gold-50: #faf1d8;
   --ng-gold-500: #be8a1f;

   --danger: #b23a24;
   --danger-bg: #f8e7e1;
   --danger-border: #e8bcad;
   --info-border: #bfd3ef;

   --fg-on-green: #ffffff;
   --ink: #121613;

   --radius-pill: 999px;
   --radius-lg: 13px;
   --radius-xl: 18px;

   --dur-fast: 120ms;
   --dur-base: 200ms;
   --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

   --shadow-xs: 0 1px 1px rgba(18, 22, 19, 0.04);
   --shadow-sm: 0 1px 2px rgba(18, 22, 19, 0.06), 0 1px 1px rgba(18, 22, 19, 0.04);
   --shadow-md: 0 4px 12px rgba(18, 22, 19, 0.06), 0 1px 2px rgba(18, 22, 19, 0.04);
   --shadow-lg: 0 12px 28px rgba(18, 22, 19, 0.10), 0 2px 4px rgba(18, 22, 19, 0.04);
   --shadow-inset: inset 0 1px 2px rgba(18, 22, 19, 0.06);
   --shadow-focus: 0 0 0 3px rgba(18, 121, 20, 0.26);
}

/* =============================================================================
   App shell
   ============================================================================= */
.ng-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--bg-page); font-family: var(--font-sans); color: var(--fg-2); }

.ng-side { background: var(--n-0); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; padding: 0; position: sticky; top: 0; height: 100vh; }
.ng-brand { display: flex; align-items: center; gap: 11px; height: 60px; padding: 0 18px; box-sizing: border-box; border-bottom: 1px solid var(--border-subtle); }
.ng-brand, .ng-brand:hover { text-decoration: none; }
.ng-brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ng-brand-app { font-weight: 800; font-size: 16px; color: var(--fg-1); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-brand-gov { font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; white-space: nowrap; }

.ng-nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.ng-nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-4); padding: 14px 10px 6px; font-weight: 700; }
.ng-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; color: var(--fg-2); font-size: 13.5px; cursor: pointer; font-weight: 500; font-family: inherit; text-align: left; text-decoration: none; box-sizing: border-box; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ng-nav-item:hover { background: var(--n-50); color: var(--fg-1); }
.ng-nav-item.active { background: var(--ng-green-500); color: #fff; font-weight: 700; border-radius: 10px; box-shadow: var(--shadow-sm); }
.ng-nav-item.active:hover { background: var(--ng-green-600); }
.ng-nav-item.active .lucide { color: #fff; }
.ng-nav-item .lucide { width: 17px; height: 17px; color: var(--fg-4); flex-shrink: 0; }
.ng-nav-item .count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.ng-nav-item.active .count { color: rgba(255, 255, 255, 0.85); }
.ng-nav-item .chev-x { margin-left: auto; width: 15px; height: 15px; color: var(--fg-4); transition: transform var(--dur-fast) var(--ease-out); }
.ng-nav-item.collapse-active { background: var(--n-50); color: var(--fg-1); }
.ng-nav-item.open .chev-x { transform: rotate(180deg); }
.ng-nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.ng-nav-sub[hidden] { display: none; }
.ng-nav-item.child { padding-left: 36px; font-size: 13px; }
.ng-nav-item.child .lucide { width: 15px; height: 15px; }

.ng-side-foot { position: relative; padding: 12px 14px; border-top: 1px solid var(--border-subtle); }
.ng-side-foot details > summary { list-style: none; }
.ng-side-foot details > summary::-webkit-details-marker { display: none; }
.ng-user-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px; border-radius: 9px; cursor: pointer; font-family: inherit; text-align: left; }
.ng-user-btn:hover { background: var(--n-50); }
.ng-user-btn .chev { margin-left: auto; color: var(--fg-4); width: 16px; height: 16px; flex-shrink: 0; }
.ng-user-menu { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 4px); background: #fff; border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.ng-user-menu form { margin: 0; }
.ng-user-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg-1); border-radius: 8px; cursor: pointer; text-align: left; }
.ng-user-item:hover { background: var(--n-50); }
.ng-user-item .lucide { width: 16px; height: 16px; color: var(--fg-3); flex-shrink: 0; }
.ng-user-item.danger { color: var(--danger); }
.ng-user-item.danger .lucide { color: var(--danger); }
.ng-user-menu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 5px 4px; }

.ng-main { display: flex; flex-direction: column; min-width: 0; }
.ng-top { height: 60px; border-bottom: 1px solid rgba(216, 220, 217, 0.6); background: rgba(255, 255, 255, 0.66); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); display: flex; align-items: center; gap: 14px; padding: 0 18px; position: sticky; top: 0; z-index: 20; }
.ng-proj { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--fg-1); cursor: pointer; }
.ng-proj .lucide { width: 15px; height: 15px; color: var(--fg-4); }
.ng-year-form { margin: 0; flex-shrink: 0; }
.ng-year-select { display: inline-flex; align-items: center; gap: 8px; min-width: 174px; padding: 7px 10px 7px 12px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; color: var(--fg-1); box-shadow: var(--shadow-subtle); }
.ng-year-select .lucide { width: 15px; height: 15px; color: var(--fg-4); flex-shrink: 0; pointer-events: none; }
.ng-year-select select { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--fg-1); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; appearance: none; -webkit-appearance: none; outline: none; padding: 0 18px 0 0; }
.ng-year-select .ng-year-chev { margin-left: -18px; }
.ng-search { flex: 1; max-width: 380px; position: relative; }
.ng-search input { width: 100%; box-sizing: border-box; padding: 8px 12px 8px 34px; border-radius: 8px; border: 1px solid var(--border-default); background: var(--n-25); font-size: 13px; font-family: inherit; box-shadow: var(--shadow-inset); }
.ng-search input:focus { outline: none; border-color: var(--ng-green-500); box-shadow: var(--shadow-focus), var(--shadow-inset); }
.ng-search .lucide { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-4); }
.ng-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ng-iconbtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); cursor: pointer; position: relative; }
.ng-iconbtn:hover { background: var(--n-50); }
.ng-iconbtn .lucide { width: 18px; height: 18px; }
.ng-iconbtn .ping { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ng-orange-500); border: 1.5px solid #fff; }

.ng-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; background: var(--ng-green-100); color: var(--ng-green-700); border: 1px solid var(--ng-green-200); }
.ng-avatar.orange { background: var(--ng-orange-100); color: var(--ng-orange-700); border-color: var(--ng-orange-200); }
.ng-avatar.neutral { background: var(--n-100); color: var(--n-600); border-color: var(--n-200); }
.ng-avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }

.ng-page { padding: 28px 22px 48px; width: 100%; box-sizing: border-box; margin: 0 auto; }
.ng-page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ng-page-head > div:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.ng-page-head > div:last-child { flex-shrink: 0; }
.ng-page-title { font-size: 27px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.02em; }
.ng-page-sub { font-size: 14px; color: var(--fg-3); margin-top: 0; }

/* Empty state (pages à construire) */
.ng-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 440px; text-align: center; color: var(--fg-3); }
.ng-empty .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--n-50); border: 1px solid var(--border-subtle); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-4); }
.ng-empty .ic .lucide { width: 26px; height: 26px; }
.ng-empty h3 { font-size: 18px; font-weight: 700; color: var(--fg-1); margin: 10px 0 6px; }
.ng-empty p { font-size: 13.5px; max-width: 360px; margin: 0; }
.ng-empty-action { margin-top: 2px; }

/* =============================================================================
   Buttons
   ============================================================================= */
.ng-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; line-height: 1; padding: 10px 15px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); white-space: nowrap; text-decoration: none; }
.ng-btn .lucide { width: 15px; height: 15px; }
.ng-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ng-btn-primary { background: var(--ng-green-500); color: var(--fg-on-green); border-color: var(--ng-green-600); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs); }
.ng-btn-primary:hover { background: var(--ng-green-600); }
.ng-btn-primary:active { background: var(--ng-green-700); transform: translateY(1px); }
.ng-btn-green { background: var(--ng-green-500); color: var(--fg-on-green); border-color: var(--ng-green-600); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs); }
.ng-btn-green:hover { background: var(--ng-green-600); }
.ng-btn-green:active { background: var(--ng-green-700); transform: translateY(1px); }
.ng-btn-accent { background: var(--ng-orange-500); color: var(--ink); border-color: var(--ng-orange-600); box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), var(--shadow-xs); }
.ng-btn-accent:hover { background: var(--ng-orange-600); }
.ng-btn-accent:active { background: var(--ng-orange-700); color: #fff; transform: translateY(1px); }
.ng-btn-secondary { background: #fff; color: var(--fg-1); border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.ng-btn-secondary:hover { background: var(--n-25); border-color: var(--border-strong); }
.ng-btn-ghost { background: transparent; color: var(--fg-2); }
.ng-btn-ghost:hover { background: var(--n-50); }
.ng-btn-danger { background: #fff; color: var(--danger); border-color: var(--danger-border); }
.ng-btn-danger:hover { background: var(--danger-bg); }
.ng-btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }

/* =============================================================================
   Badges / statuts
   ============================================================================= */
.ng-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; line-height: 1.45; white-space: nowrap; }
.ng-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.ng-badge.ok      { background: var(--ng-green-50);  color: var(--ng-green-700);  border-color: var(--ng-green-200); }
.ng-badge.ok .dot { background: var(--ng-green-500); }
.ng-badge.pending      { background: var(--ng-orange-50);  color: var(--ng-orange-700);  border-color: var(--ng-orange-200); }
.ng-badge.pending .dot { background: var(--ng-orange-500); }
.ng-badge.danger      { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.ng-badge.danger .dot { background: var(--danger); }
.ng-badge.neutral      { background: var(--n-50); color: var(--n-600); border-color: var(--n-200); }
.ng-badge.neutral .dot { background: var(--n-400); }
.ng-badge.info      { background: var(--ng-blue-50); color: var(--ng-blue-500); border-color: var(--info-border); }
.ng-badge.info .dot { background: var(--ng-blue-500); }
.ng-otp-admin-toggle-form { margin: 0; display: inline-flex; }
.ng-otp-admin-toggle {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.ng-otp-admin-toggle .lucide { width: 13px; height: 13px; }
.ng-otp-admin-toggle:hover { border-color: var(--danger); }

/* =============================================================================
   Cards & surfaces
   ============================================================================= */
.ng-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); }
.ng-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); }
.ng-card-title { font-size: 15.5px; font-weight: 700; color: var(--fg-1); }
.ng-card-sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.ng-link { color: var(--ng-green-600); font-size: 13px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.ng-link:hover { color: var(--ng-green-700); }
.ng-link .lucide { width: 14px; height: 14px; }

/* Héro — carte verte pleine (aplat, sans dégradé) */
.ng-hero-card { background: var(--ng-green-600); border-radius: var(--radius-xl); padding: 28px 34px 30px; color: #fff; margin-bottom: 16px; }
.ng-hero-card .eyebrow { color: rgba(255,255,255,0.72); }
.ng-hero-val { font-size: 56px; font-weight: 800; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 14px; }
.ng-hero-val .cur { color: #fff; font-weight: 800; }
.ng-hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; background: rgba(255,255,255,0.16); color: #fff; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: var(--radius-pill); }
.ng-hero-badge .lucide { width: 16px; height: 16px; }

/* Tuiles KPI — couleurs pleines + pastille d'icône translucide (tableau de bord) */
.ng-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ng-stat-tile { display: block; border-radius: var(--radius-lg); padding: 18px; color: #fff; box-shadow: var(--shadow-xs); }
.ng-stat-tile.green  { background: var(--ng-green-500); }
.ng-stat-tile.orange { background: var(--ng-orange-500); }
.ng-stat-tile.teal   { background: var(--ng-teal-500); }
.ng-stat-tile.gold   { background: var(--ng-gold-500); }
.ng-stat-tile-link { color: #fff; text-decoration: none; transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), filter 160ms var(--ease-out); }
.ng-stat-tile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: saturate(1.05); }
.ng-stat-tile-link:focus-visible { outline: 3px solid var(--ng-green-100); outline-offset: 2px; }
.ng-stat-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ng-stat-tile-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.92); line-height: 1.35; }
.ng-stat-tile-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.18); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ng-stat-tile-ic .lucide { width: 16px; height: 16px; }
.ng-stat-tile-val { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 14px; line-height: 1; }
.ng-stat-tile-sub { font-size: 12.5px; color: rgba(255,255,255,0.82); font-weight: 600; margin-top: 8px; }

/* KPI cards — fond neutre + pastille de couleur devant le libellé (Statistiques, galerie) */
.ng-kpi { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; padding: 16px; position: relative; box-shadow: var(--shadow-xs); }
.ng-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Le libellé porte une pastille colorée (le ton) ; neutre par défaut */
.ng-kpi-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); font-weight: 600; }
.ng-kpi-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--n-300); flex-shrink: 0; }
.ng-kpi.green  .ng-kpi-label::before { background: var(--ng-green-500); }
.ng-kpi.orange .ng-kpi-label::before { background: var(--ng-orange-500); }
.ng-kpi.danger .ng-kpi-label::before { background: var(--danger); }
.ng-kpi-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--n-50); color: var(--fg-4); flex-shrink: 0; }
.ng-kpi-ic .lucide { width: 16px; height: 16px; }
.ng-kpi-val { font-size: 26px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 12px; line-height: 1; }
.ng-kpi-meta { font-size: 12px; color: var(--fg-3); margin-top: 7px; font-variant-numeric: tabular-nums; }
.ng-kpi-meta strong { font-weight: 700; color: var(--fg-2); }

/* Mini compteurs — pastille d'icône colorée à gauche */
.ng-counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ng-counter { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow-xs); }
.ng-counter-link { color: inherit; text-decoration: none; transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.ng-counter-link:hover { transform: translateY(-2px); border-color: var(--ng-green-200); box-shadow: var(--shadow-sm); }
.ng-counter-link:focus-visible { outline: 3px solid var(--ng-green-100); outline-offset: 2px; }
.ng-counter .c-label { font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.ng-counter .c-val { font-size: 24px; font-weight: 800; color: var(--fg-1); font-variant-numeric: tabular-nums; line-height: 1; margin-top: 4px; }
.ng-counter .c-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--n-50); color: var(--fg-4); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ng-counter .c-ic.green  { background: var(--ng-green-50);  color: var(--ng-green-600); }
.ng-counter .c-ic.orange { background: var(--ng-orange-50); color: var(--ng-orange-600); }
.ng-counter .c-ic.teal   { background: var(--ng-teal-50);   color: var(--ng-teal-500); }
.ng-counter .c-ic.blue   { background: var(--ng-blue-50);   color: var(--ng-blue-500); }
.ng-counter .c-ic.gold   { background: var(--ng-gold-50);   color: var(--ng-gold-500); }
.ng-counter .c-ic .lucide { width: 19px; height: 19px; }

/* =============================================================================
   Tables
   ============================================================================= */
.ng-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ng-tbl thead th { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; text-align: left; padding: 11px 18px; background: var(--n-25); border-bottom: 1px solid var(--border-subtle); }
.ng-tbl thead th.num { text-align: right; }
.ng-tbl tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); color: var(--fg-1); }
.ng-tbl tbody tr:last-child td { border-bottom: 0; }
.ng-tbl tbody tr:hover td { background: var(--n-25); }
.ng-tbl tbody tr.clickable { cursor: pointer; }
.ng-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.ng-tbl td .sub { color: var(--fg-3); font-size: 12px; }
.ng-tbl td.date { color: var(--fg-3); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ng-tbl .ref { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); }
.ng-row-name { display: flex; align-items: center; gap: 11px; }

/* Alert list (stock faible) — en-tête orangé doux, sans filet latéral */
.ng-alert-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); overflow: hidden; }
.ng-alert-card .ng-card-head { background: var(--ng-orange-50); }
.ng-alert-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border-subtle); }
.ng-alert-row:last-child { border-bottom: 0; }
.ng-alert-row:hover { background: var(--ng-orange-50); }
.ng-alert-name { font-weight: 700; color: var(--fg-1); font-size: 13.5px; }
.ng-alert-loc { font-size: 12.5px; color: var(--fg-3); margin-top: 1px; }
.ng-alert-qty { text-align: right; }
.ng-alert-qty .q { font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; font-size: 14px; }
.ng-alert-qty .s { font-size: 11.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* =============================================================================
   Stepper (workflow horizontal)
   ============================================================================= */
.ng-stepper { display: flex; align-items: flex-start; gap: 0; }
.ng-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.ng-step .bar { position: absolute; top: 17px; height: 2px; background: var(--n-200); left: -50%; right: 50%; z-index: 0; }
.ng-step:first-child .bar { display: none; }
.ng-step.done .bar, .ng-step.current .bar { background: var(--ng-green-500); }
.ng-step .node { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--n-200); display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; color: var(--fg-4); font-weight: 800; font-size: 13px; }
.ng-step .node .lucide { width: 17px; height: 17px; }
.ng-step.done .node { background: var(--ng-green-500); border-color: var(--ng-green-600); color: #fff; }
.ng-step.current .node { background: #fff; border-color: var(--ng-orange-500); color: var(--ng-orange-600); box-shadow: 0 0 0 4px var(--ng-orange-50); }
.ng-step .s-label { font-size: 12.5px; font-weight: 700; color: var(--fg-1); margin-top: 10px; }
.ng-step.todo .s-label { color: var(--fg-4); }
.ng-step .s-meta { font-size: 11.5px; color: var(--fg-3); margin-top: 2px; }

/* Timeline verticale (multi-acteurs) */
.ng-tl { display: flex; flex-direction: column; }
.ng-tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.ng-tl-item:last-child { padding-bottom: 0; }
.ng-tl-line { position: absolute; left: 16px; top: 34px; bottom: -2px; width: 2px; background: var(--border-default); }
.ng-tl-item:last-child .ng-tl-line { display: none; }
.ng-tl-ic { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; z-index: 1; border: 2px solid; }
.ng-tl-ic .lucide { width: 15px; height: 15px; }
.ng-tl-ic.ok { background: var(--ng-green-50); border-color: var(--ng-green-200); color: var(--ng-green-600); }
.ng-tl-ic.pending { background: var(--ng-orange-50); border-color: var(--ng-orange-200); color: var(--ng-orange-600); }
.ng-tl-ic.danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.ng-tl-ic.neutral { background: var(--n-50); border-color: var(--n-200); color: var(--fg-4); }
.ng-tl-body { flex: 1; padding-top: 2px; min-width: 0; }
.ng-tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ng-tl-title { font-size: 13.5px; font-weight: 700; color: var(--fg-1); }
.ng-tl-actor { font-size: 12.5px; margin-top: 1px; }
.ng-tl-actor .by { color: var(--ng-orange-700); font-weight: 600; }
.ng-tl-time { font-size: 11.5px; color: var(--fg-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ng-tl-note { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.ng-tl-quote { font-size: 13px; color: var(--fg-2); margin-top: 8px; padding: 9px 13px; background: var(--n-25); border: 1px solid var(--border-subtle); border-radius: 9px; font-style: italic; }

/* Key-value detail */
.ng-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border-subtle); font-size: 13px; }
.ng-kv:last-child { border-bottom: 0; }
.ng-kv .k { color: var(--fg-3); }
.ng-kv .v { color: var(--fg-1); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ng-kv .v.mono { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; }

/* Validators list */
.ng-validator { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.ng-validator:last-child { border-bottom: 0; }
.ng-validator .vn { font-size: 13.5px; font-weight: 700; color: var(--fg-1); }
.ng-validator .vr { font-size: 12px; color: var(--fg-3); }

/* Chips / filtres */
.ng-chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ng-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-default); background: #fff; color: var(--fg-2); cursor: pointer; font-family: inherit; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out); }
.ng-chip .lucide { width: 14px; height: 14px; }
.ng-chip:hover { background: var(--n-25); }
.ng-chip.active { background: var(--ng-green-500); border-color: var(--ng-green-600); color: #fff; }
.ng-chip .n { font-variant-numeric: tabular-nums; color: var(--fg-4); font-weight: 700; }
.ng-chip.active .n { color: var(--ng-green-100); }

/* KPI ton danger (rupture de stock) — la pastille du libellé porte le ton ;
   la valeur reste en rouge brique pour signaler le risque */
.ng-kpi.danger .ng-kpi-val { color: var(--danger); }

/* Champs / selects */
.ng-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ng-field { display: flex; flex-direction: column; gap: 6px; }
.ng-field > label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3); }
.ng-select { position: relative; }
.ng-select select { appearance: none; -webkit-appearance: none; width: 100%; padding: 9px 34px 9px 12px; border: 1px solid var(--border-default); border-radius: 9px; background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg-1); cursor: pointer; box-shadow: var(--shadow-inset); }
.ng-select select:focus { outline: none; border-color: var(--ng-green-500); box-shadow: var(--shadow-focus); }
.ng-select .chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fg-4); width: 15px; height: 15px; }

/* Graphiques — barres horizontales */
.ng-hbars { display: flex; flex-direction: column; gap: 13px; }
.ng-hbar { display: grid; grid-template-columns: 92px 1fr 86px; align-items: center; gap: 12px; }
.ng-hbar .lbl { font-size: 12px; font-weight: 700; color: var(--fg-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-hbar .track { height: 18px; background: var(--n-50); border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); }
.ng-hbar .fill { display: block; height: 100%; border-radius: 6px 0 0 6px; transition: width var(--dur-base) var(--ease-out); }
.ng-hbar .val { font-size: 12.5px; font-weight: 700; color: var(--fg-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ng-legend { display: flex; gap: 16px; align-items: center; }
.ng-legend .item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.ng-legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Inputs texte / date */
.ng-input,
.input,
.textarea,
.select,
.country-select select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.45;
  box-shadow: var(--shadow-inset);
}
.ng-input::placeholder,
.input::placeholder,
.textarea::placeholder { color: var(--fg-4); }
.ng-input:focus,
.input:focus,
.textarea:focus,
.select:focus,
.country-select select:focus { outline: none; border-color: var(--ng-green-500); box-shadow: var(--shadow-focus), var(--shadow-inset); }
.ng-input:disabled,
.input:disabled,
.textarea:disabled,
.select:disabled,
.country-select select:disabled { background: var(--n-50); color: var(--fg-4); cursor: not-allowed; }
textarea.ng-input,
textarea.input,
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.radio { accent-color: var(--ng-green-500); }
.ng-input.with-ic { padding-left: 36px; }
.ng-input-wrap { position: relative; }
.ng-input-wrap > .lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-4); }

/* Sélecteur de projet (menu) */
.ng-proj-wrap { position: relative; }
.ng-proj-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px; background: #fff; border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.ng-proj-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--fg-4); padding: 9px 10px 4px; }
.ng-proj-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg-1); border-radius: 8px; cursor: pointer; text-align: left; }
.ng-proj-item:hover { background: var(--n-50); }
.ng-proj-item .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--n-300); flex-shrink: 0; }
.ng-proj-item.sel .pdot { background: var(--ng-green-500); }
.ng-proj-item .chk { margin-left: auto; color: var(--ng-green-600); width: 15px; height: 15px; }

/* Fil d'Ariane */
.ng-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.ng-crumb .crumb-link { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; color: var(--fg-3); font-weight: 600; cursor: pointer; }
.ng-crumb .crumb-link:hover { color: var(--ng-green-700); }
.ng-crumb .crumb-cur { color: var(--fg-1); font-weight: 700; }
.ng-crumb .sep { width: 13px; height: 13px; color: var(--fg-4); flex-shrink: 0; }

/* Panneau de filtres repliable */
.ng-filterpanel { overflow: hidden; }
.ng-filter-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.ng-filter-head:hover { background: var(--n-25); }
.ng-filter-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--fg-1); }
.ng-filter-title .lucide { width: 16px; height: 16px; color: var(--fg-3); }
.ng-filter-toggle { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ng-green-600); }
.ng-filter-toggle .lucide { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.ng-filter-head.open .ng-filter-toggle .lucide { transform: rotate(180deg); }
.ng-filter-body { padding: 16px 18px 18px; border-top: 1px solid var(--border-subtle); }

/* Menu d'actions de ligne (portail, position fixe) */
.ng-rowmenu { position: fixed; min-width: 178px; background: #fff; border: 1px solid var(--border-default); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 5px; z-index: 200; font-family: var(--font-sans); }
.ng-rowmenu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg-1); border-radius: 7px; cursor: pointer; text-align: left; }
.ng-rowmenu-item:hover { background: var(--n-50); }
.ng-rowmenu-item .lucide { width: 15px; height: 15px; color: var(--fg-3); }
.ng-rowmenu-item.danger { color: var(--danger); }
.ng-rowmenu-item.danger .lucide { color: var(--danger); }
.ng-rowmenu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 4px 2px; }
.ng-actions { display: inline-flex; align-items: center; }
.ng-actions-trigger .lucide { width: 16px; height: 16px; color: var(--fg-2); }
.ng-rowmenu-item[data-turbo-method] { text-decoration: none; }

/* Pagination */
.ng-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); background: var(--n-25); }
.ng-pagination .pp { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.ng-pagination .ng-select.sm select { padding: 6px 30px 6px 10px; font-size: 12.5px; box-shadow: var(--shadow-xs); }
.ng-pagination .ng-select.sm .chev { right: 9px; width: 14px; height: 14px; }
.ng-pagination .nav { display: flex; align-items: center; gap: 12px; }
.ng-pagination .rng { font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.pg-btn { width: 32px; height: 32px; border: 1px solid var(--border-default); background: #fff; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-2); }
.pg-btn:hover:not(:disabled) { background: var(--n-50); }
.pg-btn:disabled { opacity: .4; cursor: default; }
.pg-btn .lucide { width: 16px; height: 16px; }

/* Formulaires */
.ng-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ng-form-grid .col-2 { grid-column: span 2; }
.ng-hint { font-size: 12px; color: var(--fg-4); margin-top: 5px; }
.ng-form-actions { display: flex; gap: 10px; margin-top: 24px; }

/* =============================================================================
   User profile
   ============================================================================= */
.ng-profile-page {
  max-width: 1180px;
  margin: 0 auto;
}

.ng-profile-head {
  align-items: center;
}

.ng-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ng-profile-summary {
  overflow: hidden;
  position: sticky;
  top: 82px;
}

.ng-profile-cover {
  height: 112px;
  background: var(--ng-green-600);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
  box-sizing: border-box;
}

.ng-profile-cover-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ng-profile-cover-ic .lucide,
.ng-profile-cover-ic [data-lucide] {
  width: 19px;
  height: 19px;
}

.ng-profile-summary-body {
  padding: 0 20px 22px;
}

.ng-profile-avatar-wrap {
  margin-top: -42px;
  display: flex;
  justify-content: center;
}

.ng-profile-avatar,
.ng-profile-avatar-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}

.ng-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ng-orange-100);
  color: var(--ng-orange-700);
  font-size: 24px;
  font-weight: 800;
}

.ng-profile-avatar-img {
  object-fit: cover;
  background: var(--n-50);
}

.ng-profile-identity {
  margin-top: 14px;
  text-align: center;
}

.ng-profile-identity h2 {
  margin: 0;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.ng-profile-identity p {
  margin: 5px 0 0;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 700;
}

.ng-profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
}

.ng-profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--n-25);
  border: 1px solid var(--border-subtle);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}

.ng-profile-contact-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-profile-contact-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-profile-contact-ic .lucide,
.ng-profile-contact-ic [data-lucide] {
  width: 15px;
  height: 15px;
}

.ng-profile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ng-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ng-profile-stat .ng-kpi-val {
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ng-profile-security-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--n-25);
}

.ng-profile-security-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ng-profile-security-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ng-green-50);
  color: var(--ng-green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-profile-security-ic .lucide,
.ng-profile-security-ic [data-lucide] {
  width: 19px;
  height: 19px;
}

.ng-profile-security-title {
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.ng-profile-security-sub {
  margin-top: 3px;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.ng-profile-security-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ng-profile-form-card {
  overflow: hidden;
}

.ng-profile-form-body {
  padding: 20px;
}

.ng-profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ng-profile-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.ng-profile-alert-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.ng-profile-alert-ic .lucide,
.ng-profile-alert-ic [data-lucide] {
  width: 17px;
  height: 17px;
}

.ng-profile-alert strong {
  display: block;
  color: var(--danger);
  font-size: 13.5px;
}

.ng-profile-alert p {
  margin: 3px 0 0;
  font-size: 12.5px;
}

.ng-profile-section {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--n-25);
}

.ng-profile-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ng-profile-section-head h3 {
  margin: 0;
  color: var(--fg-1);
  font-size: 15px;
  font-weight: 800;
}

.ng-profile-section-head p {
  margin: 3px 0 0;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.ng-profile-section-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ng-blue-50);
  color: var(--ng-blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-profile-section-ic.accent {
  background: var(--ng-orange-50);
  color: var(--ng-orange-700);
}

.ng-profile-section-ic.secure {
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}

.ng-profile-section-ic .lucide,
.ng-profile-section-ic [data-lucide] {
  width: 18px;
  height: 18px;
}

.ng-profile-label {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 800;
}

.ng-profile-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border-default);
  border-radius: 10px;
  background: #fff;
}

.ng-profile-file-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--fg-3);
  background: var(--n-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-profile-file-ic .lucide,
.ng-profile-file-ic [data-lucide] {
  width: 17px;
  height: 17px;
}

.ng-profile-file-input {
  width: 100%;
  min-width: 0;
  color: var(--fg-2);
  font-family: inherit;
  font-size: 13px;
}

.ng-profile-file-input::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--n-25);
  color: var(--fg-1);
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ng-profile-file-input::file-selector-button:hover {
  background: var(--n-50);
}

.ng-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .ng-profile-layout {
    grid-template-columns: 1fr;
  }

  .ng-profile-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .ng-profile-stats {
    grid-template-columns: 1fr;
  }

  .ng-profile-form-body {
    padding: 16px;
  }

  .ng-profile-section {
    padding: 14px;
  }

  .ng-profile-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ng-profile-security-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .ng-profile-security-actions {
    justify-content: space-between;
    width: 100%;
  }

  .ng-profile-actions .ng-btn {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .ng-profile-contact-item span:last-child {
    white-space: normal;
  }

  .ng-profile-file {
    align-items: flex-start;
  }

  .ng-profile-security-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ng-profile-security-actions .ng-btn,
  .ng-profile-security-actions .ng-badge {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
  }
}

/* =============================================================================
   Index pages — titres, filtres, tables, actions
   ============================================================================= */
.ng-index { display: flex; flex-direction: column; gap: 16px; }
.ng-index-head { margin-bottom: 0; }
.ng-index-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-index-filterpanel { overflow: visible; }
.ng-index-filters { width: 100%; }
.ng-index-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 16px; align-items: end; }
.ng-index-filter-grid-compact { grid-template-columns: minmax(220px, 420px) max-content; }
.ng-index-filter-submit { justify-content: flex-end; }
.ng-index-filter-submit .ng-btn { width: max-content; }
.ng-index-filters .input,
.ng-index-filters .textarea,
.ng-index-filters input[type="text"],
.ng-index-filters input[type="number"],
.ng-index-filters input[type="email"],
.ng-index-filters input[type="tel"],
.ng-index-filters input[type="datetime-local"],
.ng-index-filters input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg-1);
  box-shadow: var(--shadow-inset);
}
.ng-index-filters select,
.ng-index-filters .select,
.ng-index-filters .choices__inner {
  width: 100%;
  min-height: 39px;
  box-sizing: border-box;
  border-color: var(--border-default);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg-1);
}
.ng-index-filters input:focus,
.ng-index-filters select:focus,
.ng-index-filters .choices.is-focused .choices__inner {
  outline: none;
  border-color: var(--ng-green-500);
  box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng-index-filters .choices { margin-bottom: 0; }
.ng-index-filters .choices__list--single { padding: 2px 16px 2px 2px; }
.ng-index-filters .choices__list--dropdown { border-color: var(--border-default); border-radius: 9px; box-shadow: var(--shadow-sm); z-index: 40; }
.ng-index-filters .radio { margin-right: 5px; accent-color: var(--ng-green-500); }

.ng-table-card { overflow: visible; }
.ng-table-scroll { width: 100%; overflow-x: auto; overflow-y: visible; }
.ng-tbl { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); }
.ng-tbl thead th {
  padding: 13px 18px;
  background: var(--n-50);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.ng-tbl thead th:first-child { border-top-left-radius: 13px; }
.ng-tbl thead th:last-child { border-top-right-radius: 13px; }
.ng-tbl tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.45;
  vertical-align: middle;
}
.ng-tbl tbody tr:last-child td { border-bottom: 0; }
.ng-tbl tbody tr:hover td { background: var(--n-25); }
.ng-tbl tbody td:first-child { color: var(--fg-1); font-weight: 800; }
.ng-tbl strong,
.ng-tbl b { color: var(--fg-1); font-weight: 800; }
.ng-tbl tfoot td {
  padding: 15px 18px;
  border-top: 1px solid var(--border-default);
  background: var(--ng-green-50);
  color: var(--fg-1);
  font-size: 13.5px;
}
.ng-tbl-summary-label { font-weight: 800; }
.ng-tbl-summary-label-inner { display: inline-flex; align-items: center; gap: 9px; }
.ng-tbl-summary-label-inner .lucide { width: 17px; height: 17px; color: var(--ng-green-600); }
.ng-tbl-summary-value {
  color: var(--ng-green-700);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ng-tbl-summary-fill { color: transparent; }
.ng-cell-icon { width: 18px; height: 18px; color: var(--fg-3); }
.ng-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-inline-actions form { margin: 0; }
.ng-tbl-action-col { width: 58px; }
.ng-tbl-actions { width: 58px; text-align: right; position: relative; }
.ng-actions-menu { position: relative; display: inline-flex; justify-content: flex-end; }
.ng-actions-menu > summary { list-style: none; }
.ng-actions-menu > summary::-webkit-details-marker { display: none; }
.ng-actions-trigger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0;
  background: var(--n-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  cursor: pointer;
}
.ng-actions-trigger:hover { background: var(--n-100); }
.ng-actions-menu[open] .ng-actions-trigger { background: var(--n-100); }
.ng-actions-menu .ng-rowmenu { top: calc(100% + 6px); right: 0; left: auto; position: absolute; text-align: left; }
.ng-actions-menu .ng-rowmenu form { margin: 0; }
.ng-actions-menu .ng-rowmenu button.ng-rowmenu-item { appearance: none; }
.ng-empty-table { min-height: 284px; padding: 34px 16px; }
.ng-report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ng-report-error { color: var(--danger); }
.ng-form-page { width: 100%; max-width: none; }
.ng-form-card {
   width: min(100%, 760px);
   margin-inline: auto;
   padding: 20px;
   border-radius: 13px;
   box-shadow: var(--shadow-xs);
}
.ng-form-stack { display: flex; flex-direction: column; gap: 18px; }
.ng-field { min-width: 0; }
.ng-form-stack .ng-input,
.ng-form-stack select { min-height: 40px; }
.ng-form-card .card,
.ng-form-card form.max-w-3xl {
   max-width: none;
   margin: 0;
   padding: 0;
   border: 0;
   border-radius: 0;
   background: transparent;
   box-shadow: none;
}
.ng-form-card form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}
.ng-form-card .md\:flex {
   display: grid;
   grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
   gap: 14px;
   align-items: start;
   margin-bottom: 0;
}
.ng-form-card .md\:w-1\/3,
.ng-form-card .md\:w-2\/3 {
   width: auto;
}
.ng-form-card form label {
   display: inline-flex;
   margin-bottom: 6px;
   color: var(--fg-3);
   font-size: 11px;
   font-weight: 800;
   letter-spacing: 0.07em;
   line-height: 1.3;
   text-transform: uppercase;
}
.ng-form-card label.inline-flex {
   margin-bottom: 0;
   color: var(--fg-2);
   font-size: 13.5px;
   font-weight: 600;
   letter-spacing: 0;
   text-transform: none;
}
.ng-form-card .label {
   margin-bottom: 0;
   padding-top: 10px;
}
.ng-form-card .hidden {
   display: none !important;
}
.ng-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.ng-form-card select,
.ng-form-card textarea {
   width: 100%;
   min-height: 40px;
   box-sizing: border-box;
   padding: 9px 12px;
   border: 1px solid var(--border-default);
   border-radius: 9px;
   background: #fff;
   color: var(--fg-1);
   font-family: var(--font-sans);
   font-size: 13.5px;
   line-height: 1.45;
   box-shadow: var(--shadow-inset);
}
.ng-form-card textarea {
   min-height: 92px;
   resize: vertical;
}
.ng-form-card input::placeholder,
.ng-form-card textarea::placeholder {
   color: var(--fg-4);
}
.ng-form-card input:focus,
.ng-form-card select:focus,
.ng-form-card textarea:focus {
   outline: none;
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng-form-card .ng-btn,
.ng-form-card .button {
   align-self: flex-start;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   min-height: 37px;
   border-radius: 9px;
   font-family: var(--font-sans);
   font-size: 13.5px;
   font-weight: 800;
   line-height: 1;
   padding: 10px 15px;
   text-decoration: none;
   transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ng-form-card .button.is-primary {
   border: 1px solid var(--ng-green-600);
   background: var(--ng-green-500);
   color: var(--fg-on-green);
   box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
}
.ng-form-card .button.is-primary:hover {
   background: var(--ng-green-600);
}
.ng-form-card .button.is-primary:focus-visible {
   outline: none;
   box-shadow: var(--shadow-focus), inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
}
.ng-form-card input[type="checkbox"],
.ng-form-card input[type="radio"] {
   width: 16px;
   height: 16px;
   accent-color: var(--ng-green-500);
}
.ng-form-card input[type="file"] {
   padding: 7px 10px;
}
.ng-form-card input[type="file"]::file-selector-button {
   margin-right: 12px;
   border: 1px solid var(--border-default);
   border-radius: 8px;
   background: var(--n-50);
   color: var(--fg-1);
   font-family: var(--font-sans);
   font-size: 12.5px;
   font-weight: 700;
   padding: 7px 11px;
   cursor: pointer;
}
.ng-form-card input[type="submit"],
.ng-form-card button[type="submit"] {
   align-self: flex-start;
   border: 1px solid var(--ng-green-600);
   border-radius: 9px;
   background: var(--ng-green-500);
   color: var(--fg-on-green);
   box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
   cursor: pointer;
   font-family: var(--font-sans);
   font-size: 13.5px;
   font-weight: 800;
   line-height: 1;
   padding: 10px 15px;
   transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ng-form-card input[type="submit"]:hover,
.ng-form-card button[type="submit"]:hover {
   background: var(--ng-green-600);
}
.ng-form-card input[type="submit"]:active,
.ng-form-card button[type="submit"]:active {
   background: var(--ng-green-700);
   transform: translateY(1px);
}
.ng-form-card .ng-form-actions {
   display: flex;
   justify-content: flex-end;
   gap: 10px;
   margin-top: 6px;
}
.ng-form-card .ng-form-actions .ng-btn,
.ng-form-card .ng-form-actions input[type="submit"],
.ng-form-card .ng-form-actions button[type="submit"] {
   align-self: auto;
}
.ng-form-card .choices,
.ng-form-card .choices__inner {
   width: 100%;
}
.ng-form-card .choices__inner {
   min-height: 40px;
   border: 1px solid var(--border-default);
   border-radius: 9px;
   background: #fff;
   box-shadow: var(--shadow-inset);
}
.ng-form-card .choices.is-focused .choices__inner {
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus), var(--shadow-inset);
}

@media (max-width: 860px) {
   .ng-form-card {
      width: 100%;
      padding: 16px;
   }
   .ng-form-card .md\:flex {
      grid-template-columns: 1fr;
      gap: 8px;
   }
   .ng-form-card .label {
      padding-top: 0;
   }
   .ng-form-card .ng-form-actions {
      justify-content: stretch;
   }
   .ng-form-card .ng-form-actions .ng-btn,
   .ng-form-card .ng-form-actions input[type="submit"],
   .ng-form-card .ng-form-actions button[type="submit"] {
      width: 100%;
   }
}

.ng-contact-show { display: flex; flex-direction: column; gap: 20px; }
.ng-contact-summary {
   display: grid;
   grid-template-columns: 48px minmax(0, 1fr);
   gap: 14px;
   align-items: flex-start;
   padding-bottom: 18px;
   border-bottom: 1px solid var(--border-subtle);
}
.ng-contact-avatar {
   width: 48px;
   height: 48px;
   border-radius: 12px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: var(--ng-green-50);
   color: var(--ng-green-700);
   border: 1px solid var(--border-subtle);
}
.ng-contact-avatar .lucide { width: 22px; height: 22px; }
.ng-contact-identity { min-width: 0; }
.ng-contact-kicker {
   display: inline-flex;
   margin-bottom: 4px;
   color: var(--fg-4);
   font-size: 11px;
   font-weight: 800;
   letter-spacing: 0;
   line-height: 1.3;
   text-transform: uppercase;
}
.ng-contact-identity h2,
.ng-contact-original h3 {
   margin: 0;
   color: var(--fg-1);
   font-size: 19px;
   font-weight: 800;
   line-height: 1.25;
}
.ng-contact-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 12px;
}
.ng-contact-meta-item {
   min-width: 0;
   display: inline-flex;
   align-items: center;
   gap: 7px;
   padding: 7px 10px;
   border: 1px solid var(--border-subtle);
   border-radius: 9px;
   background: var(--n-25);
   color: var(--fg-2);
   font-size: 13px;
   font-weight: 600;
   line-height: 1.25;
   text-decoration: none;
}
.ng-contact-meta-item:hover { color: var(--ng-green-700); border-color: var(--ng-green-200); }
.ng-contact-meta-item .lucide {
   width: 15px;
   height: 15px;
   flex: 0 0 auto;
   color: var(--fg-3);
}
.ng-contact-meta-item span { overflow-wrap: anywhere; }
.ng-contact-response-form {
   padding-bottom: 20px;
   border-bottom: 1px solid var(--border-subtle);
}
.ng-input-icon { position: relative; }
.ng-input-icon .ng-input { padding-right: 40px; }
.ng-input-icon > .lucide {
   position: absolute;
   top: 50%;
   right: 12px;
   width: 17px;
   height: 17px;
   color: var(--fg-4);
   transform: translateY(-50%);
   pointer-events: none;
}
.ng-contact-original {
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   background: var(--n-25);
   overflow: hidden;
}
.ng-contact-original-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 12px;
   padding: 16px 18px;
   border-bottom: 1px solid var(--border-subtle);
   background: #fff;
}
.ng-contact-original-head > .lucide {
   width: 18px;
   height: 18px;
   flex: 0 0 auto;
   color: var(--fg-3);
}
.ng-contact-message {
   padding: 16px 18px;
   color: var(--fg-2);
   font-size: 14px;
   line-height: 1.7;
}
.ng-contact-message p { margin: 0; }
.ng-contact-message p + p { margin-top: 10px; }

/* Pages new/edit — shell inspiré de la référence "form inputs" */
.ng-editor-page {
   width: min(100%, 940px);
   margin: 0 auto;
}
.ng-editor-page.wide { width: min(100%, 1180px); }
.ng-editor-card {
   background: #fff;
   border: 1px solid var(--border-subtle);
   border-radius: 14px;
   box-shadow: var(--shadow-xs);
   overflow: hidden;
}
.ng-editor-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 18px;
   padding: 20px 22px 18px;
   border-bottom: 1px solid var(--border-subtle);
}
.ng-editor-eyebrow {
   margin: 0 0 6px;
   font-size: 11px;
   line-height: 1.2;
   font-weight: 800;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--ng-green-700);
}
.ng-editor-title {
   margin: 0;
   color: var(--fg-1);
   font-size: 22px;
   font-weight: 800;
   line-height: 1.2;
   letter-spacing: -0.01em;
}
.ng-editor-sub {
   margin: 8px 0 0;
   color: var(--fg-3);
   font-size: 13.5px;
   line-height: 1.5;
}
.ng-editor-back { flex-shrink: 0; }
.ng-editor-back span { font-size: 15px; line-height: 1; }
.ng-editor-body {
   padding: 22px;
}
.ng-editor-frame {
   display: block;
}
.ng-editor-body .card,
.ng-editor-body form.max-w-3xl {
   max-width: none;
   margin: 0;
   padding: 0;
   border: 0;
   border-radius: 0;
   background: transparent;
   box-shadow: none;
}
.ng-editor-body form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}
.ng-editor-body form label {
   display: inline-flex;
   margin-bottom: 6px;
   color: var(--fg-3);
   font-size: 11px;
   font-weight: 800;
   letter-spacing: 0.07em;
   line-height: 1.3;
   text-transform: uppercase;
}
.ng-editor-body label.inline-flex {
   margin-bottom: 0;
   color: var(--fg-2);
   font-size: 13.5px;
   font-weight: 600;
   letter-spacing: 0;
   text-transform: none;
}
.ng-editor-body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.ng-editor-body select,
.ng-editor-body textarea {
   width: 100%;
   min-height: 40px;
   box-sizing: border-box;
   padding: 9px 12px;
   border: 1px solid var(--border-default);
   border-radius: 9px;
   background: #fff;
   color: var(--fg-1);
   font-family: var(--font-sans);
   font-size: 13.5px;
   line-height: 1.45;
   box-shadow: var(--shadow-inset);
}
.ng-editor-body textarea {
   min-height: 92px;
   resize: vertical;
}
.ng-editor-body input::placeholder,
.ng-editor-body textarea::placeholder {
   color: var(--fg-4);
}
.ng-editor-body input:focus,
.ng-editor-body select:focus,
.ng-editor-body textarea:focus {
   outline: none;
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng-editor-body input[type="checkbox"],
.ng-editor-body input[type="radio"] {
   width: 16px;
   height: 16px;
   accent-color: var(--ng-green-500);
}
.ng-editor-body input[type="file"] {
   padding: 7px 10px;
}
.ng-editor-body input[type="file"]::file-selector-button {
   margin-right: 12px;
   border: 1px solid var(--border-default);
   border-radius: 8px;
   background: var(--n-50);
   color: var(--fg-1);
   font-family: var(--font-sans);
   font-size: 12.5px;
   font-weight: 700;
   padding: 7px 11px;
   cursor: pointer;
}
.ng-editor-body input[type="submit"],
.ng-editor-body button[type="submit"] {
   align-self: flex-start;
   border: 1px solid var(--ng-green-600);
   border-radius: 9px;
   background: var(--ng-green-500);
   color: var(--fg-on-green);
   box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
   cursor: pointer;
   font-family: var(--font-sans);
   font-size: 13.5px;
   font-weight: 800;
   line-height: 1;
   padding: 10px 15px;
   transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ng-editor-body input[type="submit"]:hover,
.ng-editor-body button[type="submit"]:hover {
   background: var(--ng-green-600);
}
.ng-editor-body input[type="submit"]:active,
.ng-editor-body button[type="submit"]:active {
   background: var(--ng-green-700);
   transform: translateY(1px);
}
.ng-editor-body .choices,
.ng-editor-body .choices__inner {
   width: 100%;
}
.ng-editor-body .choices__inner {
   min-height: 40px;
   border: 1px solid var(--border-default);
   border-radius: 9px;
   background: #fff;
   box-shadow: var(--shadow-inset);
}
.ng-editor-body .choices.is-focused .choices__inner {
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng-editor-import-note {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 16px;
   margin-bottom: 22px;
   padding: 14px;
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   background: var(--n-25);
}
.ng-editor-import-note p {
   margin: 0;
   color: var(--fg-3);
   font-size: 13.5px;
   line-height: 1.55;
}
.ng-editor-preview {
   min-height: 72px;
   max-height: 320px;
   overflow-x: auto;
   overflow-y: auto;
   border: 1px dashed var(--border-default);
   border-radius: 10px;
   background: var(--n-25);
   color: var(--fg-3);
   font-size: 12.5px;
   padding: 14px;
}

@media (max-width: 720px) {
   .ng-editor-head {
      flex-direction: column;
      align-items: stretch;
      padding: 18px;
   }
   .ng-editor-title { font-size: 20px; }
   .ng-editor-back { justify-content: center; }
   .ng-editor-body { padding: 18px; }
   .ng-editor-import-note { flex-direction: column; }
   .ng-editor-import-note .ng-btn { width: 100%; justify-content: center; }
}

.ng-pagination .nav .pagy { display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; }
.ng-pagination .nav .pagy a:not(.gap) {
  min-width: 32px;
  height: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #fff;
  color: var(--fg-2);
  text-decoration: none;
  padding: 0 10px;
}
.ng-pagination .nav .pagy a:not(.gap):hover { background: var(--n-50); }
.ng-pagination .nav .pagy a:not(.gap).current { background: var(--ng-green-500); border-color: var(--ng-green-600); color: #fff; }
.ng-pagination .nav .pagy a:not(.gap):not([href]) { opacity: .42; cursor: default; background: #fff; color: var(--fg-4); }

@media (max-width: 1080px) {
  .ng-index-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .ng-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ng-index-actions { justify-content: stretch; }
  .ng-index-actions .ng-btn,
  .ng-index-filter-submit .ng-btn { width: 100%; justify-content: center; }
  .ng-index-filter-grid { grid-template-columns: 1fr; }
  .ng-report-grid { grid-template-columns: 1fr; }
}

/* Détail (fiches) */
.ng-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; }
.ng-detail-field .k { font-size: 12px; color: var(--fg-3); font-weight: 600; margin-bottom: 3px; }
.ng-detail-field .v { font-size: 15px; color: var(--fg-1); font-weight: 600; }
.ng-detail-field .vsub { font-size: 12px; color: var(--fg-4); margin-top: 2px; }
.ng-section-title { font-size: 15px; font-weight: 700; color: var(--fg-1); margin: 0 0 12px; }
.ng-limit-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--n-25); border: 1px solid var(--border-subtle); border-radius: 10px; font-size: 13.5px; }
.ng-limit-row .ln { font-weight: 700; color: var(--fg-1); }
.ng-limit-row .lv { color: var(--fg-3); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Show étudiant */
.ng-student-show-page { gap: 18px; }
.ng-student-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.ng-student-show-main,
.ng-student-show-side { min-width: 0; }
.ng-student-show-side {
  position: sticky;
  top: 82px;
}
.ng-show-card { overflow: hidden; }
.ng-show-card .ng-card-title,
.ng-student-profile-card .ng-card-title,
.ng-student-reset-card .ng-card-title,
.ng-student-assignment-card .ng-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ng-show-card-body { padding: 18px 20px 20px; }
.ng-show-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ng-show-detail-grid .ng-detail-field {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--n-25);
}
.ng-show-detail-grid .ng-detail-field .k {
  margin-bottom: 5px;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ng-show-detail-grid .ng-detail-field .v {
  color: var(--fg-1);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ng-show-detail-grid .ng-detail-field .v .ng-btn {
  margin-top: 2px;
  white-space: normal;
}
.ng-muted { color: var(--fg-4); font-weight: 600; }
.ng-show-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}
.ng-student-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ng-student-profile-card,
.ng-student-reset-card,
.ng-student-assignment-card { overflow: hidden; }
.ng-student-profile-top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.ng-student-photo {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--n-50);
  box-shadow: var(--shadow-xs);
}
.ng-student-photo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-border);
}
.ng-student-photo-empty .lucide { width: 28px; height: 28px; }
.ng-student-profile-copy { min-width: 0; }
.ng-student-profile-copy h2 {
  margin: 0;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.ng-student-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.ng-student-decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 0;
}
.ng-student-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 0;
}
.ng-student-action-full {
  width: 100%;
  justify-content: center;
  white-space: normal;
  min-height: 40px;
}
.ng-student-deposit-box {
  padding: 16px 18px 18px;
}
.ng-student-deposit-box form,
.ng-student-reset-card form,
.ng-student-choice-form { margin: 0; }
.ng-student-status-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 800;
}
.ng-student-status-line.ok {
  color: var(--ng-green-700);
  background: var(--ng-green-50);
  border-color: var(--ng-green-200);
}
.ng-student-status-line .lucide { width: 16px; height: 16px; }
.ng-student-empty-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 18px 18px;
  padding: 13px 14px;
  border: 1px solid var(--ng-orange-200);
  border-radius: 11px;
  background: var(--ng-orange-50);
  color: var(--ng-orange-700);
  font-size: 13.5px;
  font-weight: 700;
}
.ng-student-empty-note .lucide { width: 17px; height: 17px; flex-shrink: 0; }
.ng-student-card-body {
  padding: 16px 18px 18px;
}
.ng-student-muted {
  margin: 0 0 14px;
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.55;
}
.ng-student-choice-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ng-student-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ng-student-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--n-25);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ng-student-choice:hover {
  background: var(--ng-orange-50);
  border-color: var(--ng-orange-200);
}
.ng-student-choice input { margin-top: 2px; }
.ng-student-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ng-student-choice-name,
.ng-student-choice-school {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.35;
}
.ng-student-choice-name {
  color: var(--fg-1);
  font-size: 13.5px;
  font-weight: 800;
}
.ng-student-choice-school {
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 600;
}
.ng-student-choice-name .lucide,
.ng-student-choice-school .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--ng-orange-600);
}
.ng-student-final-choice {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (max-width: 1080px) {
  .ng-student-show-grid { grid-template-columns: 1fr; }
  .ng-student-show-side { position: static; }
}

@media (max-width: 720px) {
  .ng-show-detail-grid { grid-template-columns: 1fr; }
  .ng-student-profile-top { grid-template-columns: 58px minmax(0, 1fr); padding: 16px; }
  .ng-student-photo { width: 58px; height: 58px; border-radius: 13px; }
  .ng-student-decision-actions { grid-template-columns: 1fr; }
}

/* Swatch (fondations) */
.ng-sw { border-radius: 10px; height: 64px; border: 1px solid rgba(18,22,19,0.10); display: flex; align-items: flex-end; padding: 7px 9px; }
.ng-sw .hex { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }

/* =============================================================================
   Notifications (toasts) — glissent depuis le haut, disparaissent après 3 s
   ============================================================================= */
.ng-notice-stack { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ng-notice {
  display: flex; align-items: center; gap: 11px; width: 380px; max-width: calc(100vw - 12px);
  min-height: 62px; padding: 11px 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
  pointer-events: auto; animation: ng-notice-in var(--dur-base) var(--ease-out);
}
.ng-notice.is-leaving { animation: ng-notice-out 220ms var(--ease-out) forwards; }
.ng-notice-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--n-50); color: var(--fg-4); }
.ng-notice-ic .lucide { width: 17px; height: 17px; stroke-width: 2.4; }
.ng-notice-body { flex: 1; min-width: 0; }
.ng-notice-title { font-size: 14px; font-weight: 800; color: var(--fg-1); line-height: 1.25; }
.ng-notice-msg { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; line-height: 1.35; }
.ng-notice-close { flex-shrink: 0; width: 24px; height: 24px; border: 0; background: none; border-radius: 6px; color: var(--fg-4); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ng-notice-close:hover { background: var(--n-50); color: var(--fg-2); }
.ng-notice-close .lucide { width: 14px; height: 14px; stroke-width: 1.8; }
/* Tons */
.ng-notice.success { border-color: var(--ng-green-200); box-shadow: 0 10px 22px rgba(18, 121, 20, 0.10), 0 2px 4px rgba(18, 22, 19, 0.04); }
.ng-notice.success .ng-notice-ic { background: var(--ng-green-50); color: var(--ng-green-600); }
.ng-notice.info { border-color: var(--fg-2); }
.ng-notice.info .ng-notice-ic { background: var(--ng-blue-50); color: var(--ng-blue-500); }
.ng-notice.error { border-color: var(--danger-border); box-shadow: 0 10px 22px rgba(178, 58, 36, 0.12), 0 2px 4px rgba(18, 22, 19, 0.04); }
.ng-notice.error .ng-notice-ic { background: var(--danger-bg); color: var(--danger); }
.ng-notice.warning { border-color: #efd3a0; }
.ng-notice.warning .ng-notice-ic { background: var(--ng-gold-50); color: var(--ng-gold-500); }
@keyframes ng-notice-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ng-notice-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }

/* =============================================================================
   Écran de connexion (verrou côté client) + mini-jeu de pied de page
   ============================================================================= */
.dn-auth { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 24px 0; overflow-y: auto;
  background: radial-gradient(circle at 30% 20%, rgba(18,121,20,0.14) 0%, transparent 55%), var(--ink); }
.dn-auth-card { flex-shrink: 0; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-surface); border-radius: 16px; padding: 34px 32px 30px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04); }
.dn-auth-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ng-green-700); }
.dn-auth-title { margin: 2px 0 0; font-size: 24px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.01em; line-height: 1.15; }
.dn-auth-sub { margin: 4px 0 10px; color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }
.dn-auth-label { font-size: 12px; font-weight: 700; color: var(--fg-2); margin-bottom: -6px; }
.dn-auth-input { font-family: var(--font-sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: #fff; box-shadow: var(--shadow-inset); outline: none; transition: border-color 120ms, box-shadow 120ms; }
.dn-auth-input:focus { border-color: var(--ng-green-500); box-shadow: var(--shadow-inset), var(--shadow-focus); }
.dn-auth-input.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(178,58,36,0.18); }
.dn-auth-err { color: var(--danger); font-size: 12.5px; margin-top: -4px; font-weight: 600; }
.dn-auth-btn { background: var(--ng-green-500); color: #fff; border: 1px solid var(--ng-green-600); border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 6px; transition: background 120ms, transform 120ms; font-family: inherit; }
.dn-auth-btn:hover { background: var(--ng-green-600); }
.dn-auth-btn:active { background: var(--ng-green-700); transform: translateY(1px); }
.dn-game { margin-top: auto; width: 100%; max-width: 980px; display: flex; flex-direction: column; }
.dn-game-canvas { width: 100%; height: auto; display: block; background: var(--ink); border: 1px solid rgba(255,255,255,0.08); border-bottom: 0; border-radius: 14px 14px 0 0; image-rendering: pixelated; }
.dn-game-hud { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-top: 0; border-radius: 0 0 14px 14px; padding: 12px 18px 14px; color: rgba(255,255,255,0.72); font-size: 12px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dn-game-hud-title { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--ng-green-300); }
.dn-game-hud-mission { color: rgba(238,241,239,0.85); font-weight: 500; text-align: center; max-width: 720px; }
.dn-game-hud-mission b { color: #fff; font-weight: 700; }
.dn-game-hud-controls { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; color: rgba(255,255,255,0.65); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; }
.dn-game-hud-tip { font-size: 11px; color: rgba(255,255,255,0.45); font-style: italic; text-align: center; }
.dn-game-hud kbd { font-family: var(--font-mono); background: rgba(46,146,51,0.14); border: 1px solid rgba(46,146,51,0.30); padding: 2px 7px; border-radius: 4px; font-size: 11px; color: var(--ng-green-300); margin-right: 4px; }
/* Bouton de déconnexion (pied de la barre latérale du navigateur) */
.ds-signout { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #8E938C; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.ds-signout:hover { color: #fff; }
.ds-signout i[data-lucide] { width: 14px; height: 14px; }

/* =============================================================================
   Responsive — mobile & tablette (barre latérale en tiroir, grilles empilées)
   ============================================================================= */
.ng-menu-btn { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: -2px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; color: var(--fg-1); cursor: pointer; flex-shrink: 0; }
.ng-menu-btn .lucide { width: 18px; height: 18px; }
.ng-scrim { display: none; }
.ng-scrim[hidden] { display: none !important; }
body.ng-sidebar-open { overflow: hidden; }

@media (max-width: 860px) {
  /* Barre latérale en tiroir hors-écran */
  .ng-app { grid-template-columns: 1fr; }
  .ng-side { position: fixed; top: 0; left: 0; height: 100vh; width: 280px; max-width: 84vw;
    transform: translateX(-100%); transition: transform var(--dur-base) var(--ease-out);
    z-index: 80; box-shadow: var(--shadow-lg); }
  .ng-side.is-open { transform: translateX(0); }
  .ng-scrim { display: block; position: fixed; inset: 0; background: rgba(18,22,19,0.45); z-index: 70; }
  .ng-menu-btn { display: inline-flex; }

  /* Topbar */
  .ng-top { padding: 0 14px; gap: 10px; }
  .ng-search { display: none; }
  .ng-proj { max-width: 50vw; overflow: hidden; }
  .ng-year-select { min-width: 0; max-width: 54vw; }
  .ng-year-select select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Contenu */
  .ng-page { padding: 16px 14px 36px; }
  .ng-page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ng-page-head > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
  .ng-page-title { font-size: 22px; }

  /* Grilles → empilées */
  .ng-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ng-counters { grid-template-columns: repeat(2, 1fr); }
  .ng-split { grid-template-columns: 1fr !important; }
  .ng-filters { grid-template-columns: 1fr; }
  .ng-form-grid { grid-template-columns: 1fr; }
  .ng-form-grid .col-2 { grid-column: auto; }
  .ng-detail-grid { grid-template-columns: 1fr; }

  /* Héro */
  .ng-hero-card { padding: 22px 20px 24px; }
  .ng-hero-val { font-size: 38px; }

  /* Tableaux : défilement horizontal dans leur carte */
  .ng-card:has(> .ng-tbl) { overflow-x: auto !important; }
  .ng-card > .ng-tbl { min-width: 600px; }

  /* Stepper : défilement horizontal si besoin */
  .ng-stepper { overflow-x: auto; padding-bottom: 4px; }
  .ng-step { min-width: 92px; }
}

@media (max-width: 520px) {
  .ng-kpi-grid { grid-template-columns: 1fr; }
  .ng-counters { grid-template-columns: 1fr; }
  .ng-pagination { flex-direction: column; gap: 10px; align-items: stretch; }
  .ng-pagination .nav { justify-content: space-between; }
}

/* =============================================================================
    Dashboard admin (refonte inspirée des maquettes)
    ============================================================================= */
.ng-dashboard { display: flex; flex-direction: column; gap: 20px; }
.ng-dashboard-head { margin-bottom: 0; }
.ng-dashboard-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ng-dashboard-head-actions .ng-chip { margin-bottom: 0; }

.ng-hero-card-dashboard { margin-bottom: 0; }

.ng-dashboard-kpis,
.ng-dashboard-counters,
.ng-dashboard-split-lg,
.ng-dashboard-split-sm {
   animation: ng-fade-rise 360ms var(--ease-out) both;
}

.ng-dashboard-kpis { animation-delay: 40ms; }
.ng-dashboard-counters { animation-delay: 80ms; }
.ng-dashboard-split-lg { animation-delay: 120ms; }
.ng-dashboard-split-sm { animation-delay: 160ms; }

.ng-dashboard-split-lg { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.ng-dashboard-split-sm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ng-dashboard-chart,
.ng-dashboard-bars,
.ng-dashboard-activity { min-height: 100%; }
.ng-dashboard-card-body { padding: 18px 20px; }

.ng-dashboard .ng-hbar { grid-template-columns: 120px 1fr 72px; }
.ng-dashboard .ng-hbar .lbl { font-size: 12.5px; }

.ng-dashboard-activity .ng-card-head { background: #f8f1de; }
.ng-dashboard-activity .ng-alert-row { background: #fff; }
.ng-dashboard-activity .ng-alert-row:hover { background: var(--n-25); }
.ng-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px; }
.ng-activity-group { min-width: 0; border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; background: #fff; }
.ng-activity-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); background: #fffaf0; }
.ng-activity-group .ng-alert-row { min-height: 72px; gap: 12px; }
.ng-activity-group .ng-alert-qty .lucide { width: 18px; height: 18px; margin-left: auto; color: var(--ng-green-600); }

.ng-statistics-page .ng-dashboard-split-lg { gap: 20px; }
.ng-stat-card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ng-stat-chart { overflow: hidden; }
.ng-stat-chart .ng-card-head { background: var(--n-25); }
.ng-chart-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--fg-3); text-align: left; }
.ng-chart-empty.compact { min-height: auto; justify-content: flex-start; padding-top: 12px; }
.ng-chart-empty .ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--n-50); color: var(--fg-4); border: 1px solid var(--border-subtle); }
.ng-chart-empty .ic .lucide { width: 19px; height: 19px; }
.ng-stat-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ng-stat-summary-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3); margin-bottom: 6px; }

.ng-admin-dashboard .ng-page-head { margin-bottom: 0; }
.ng-admin-hero { display: flex; justify-content: space-between; gap: 24px; }
.ng-admin-hero-title { margin-top: 10px; font-size: 34px; line-height: 1.08; font-weight: 800; color: #fff; letter-spacing: -0.02em; max-width: 680px; }
.ng-admin-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ng-stat-tile-emoji { font-size: 17px; line-height: 1; }
.ng-admin-chart-tabs { overflow: hidden; }
.ng-admin-period-tabs { margin-bottom: 18px; }
.ng-admin-period-panel { animation: ng-fade-rise 260ms var(--ease-out) both; }
.ng-admin-chart-head { padding: 0 0 14px; border-bottom: 0; }
.ng-admin-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ng-admin-chart-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--n-50); }

@keyframes ng-fade-rise {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@media (max-width: 1200px) {
   .ng-dashboard-split-lg,
   .ng-dashboard-split-sm {
      grid-template-columns: 1fr;
   }

   .ng-activity-grid { grid-template-columns: 1fr; }
   .ng-stat-summary-grid { grid-template-columns: 1fr; }
   .ng-activity-group,
   .ng-activity-group:last-child { border: 1px solid var(--border-subtle); }
   .ng-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .ng-admin-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
   .ng-dashboard-head-actions { width: 100%; }
   .ng-dashboard-head-actions .ng-btn { width: 100%; justify-content: center; }
   .ng-dashboard .ng-hbar { grid-template-columns: 88px 1fr 64px; }
   .ng-activity-group-head { align-items: flex-start; flex-direction: column; }
   .ng-activity-group-head .ng-link { width: 100%; justify-content: flex-start; }
   .ng-admin-hero-title { font-size: 26px; }
   .ng-admin-kpis { grid-template-columns: 1fr; }
}

/* =============================================================================
    BAC verification page
    ============================================================================= */
.ng-bac-page {
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 28px 16px;
   background:
      radial-gradient(circle at 84% 18%, rgba(58, 152, 148, 0.18) 0%, transparent 48%),
      radial-gradient(circle at 12% 88%, rgba(17, 127, 23, 0.14) 0%, transparent 52%),
      linear-gradient(132deg, #f3f8f4 0%, #edf3f7 44%, #f5efe4 100%);
   position: relative;
   overflow: hidden;
}

.ng-bac-orb {
   position: absolute;
   border-radius: 999px;
   filter: blur(2px);
   opacity: 0.64;
   pointer-events: none;
}

.ng-bac-orb-a {
   width: 270px;
   height: 270px;
   top: -92px;
   right: -82px;
   background: radial-gradient(circle at 30% 30%, rgba(17, 127, 23, 0.35) 0%, rgba(17, 127, 23, 0.08) 64%, transparent 100%);
}

.ng-bac-orb-b {
   width: 220px;
   height: 220px;
   bottom: -86px;
   left: -70px;
   background: radial-gradient(circle at 55% 45%, rgba(247, 147, 6, 0.28) 0%, rgba(247, 147, 6, 0.07) 62%, transparent 100%);
}

.ng-bac-card {
   width: min(540px, 100%);
   background: rgba(255, 255, 255, 0.92);
   border: 1px solid rgba(255, 255, 255, 0.78);
   border-radius: 22px;
   box-shadow: 0 26px 46px rgba(24, 39, 30, 0.18);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   padding: 24px;
   position: relative;
   z-index: 1;
   animation: ng-bac-enter 360ms var(--ease-out) both;
}

.ng-bac-head {
   text-align: center;
   margin-bottom: 20px;
}

.ng-bac-logo {
   width: auto;
   height: 58px;
   margin: 0 auto 10px;
}

.ng-bac-head h1 {
   margin: 0;
   color: var(--fg-1);
   font-size: 26px;
   font-weight: 800;
   letter-spacing: -0.02em;
}

.ng-bac-head p {
   margin: 8px auto 0;
   max-width: 430px;
   color: var(--fg-3);
   font-size: 13.5px;
   line-height: 1.55;
}

.ng-bac-alert {
   display: grid;
   grid-template-columns: 34px 1fr;
   gap: 12px;
   border: 1px solid var(--info-border);
   background: linear-gradient(180deg, rgba(232, 240, 250, 0.62) 0%, rgba(232, 243, 242, 0.5) 100%);
   border-radius: 13px;
   padding: 12px;
   margin-bottom: 16px;
}

.ng-bac-alert-ic {
   width: 34px;
   height: 34px;
   border-radius: 10px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: #fff;
   color: var(--ng-blue-500);
   border: 1px solid rgba(191, 211, 239, 0.9);
}

.ng-bac-alert-ic .lucide {
   width: 18px;
   height: 18px;
}

.ng-bac-alert h3 {
   margin: 1px 0 5px;
   color: var(--fg-1);
   font-size: 14px;
   font-weight: 800;
}

.ng-bac-alert p {
   margin: 0;
   color: var(--fg-2);
   font-size: 12.7px;
   line-height: 1.55;
}

.ng-bac-form {
   display: flex;
   flex-direction: column;
   gap: 14px;
}

.ng-bac-form .ng-field > label {
   text-transform: none;
   letter-spacing: 0;
   font-size: 12.5px;
   color: var(--fg-2);
}

.ng-bac-actions {
   margin-top: 6px;
}

.ng-bac-submit {
   width: 100%;
   justify-content: center;
   padding: 12px 15px;
   font-size: 14px;
}

.ng-bac-help {
   margin-top: 18px;
   border-top: 1px dashed var(--border-default);
   padding-top: 14px;
}

.ng-bac-help h4 {
   margin: 0;
   font-size: 14px;
   color: var(--fg-1);
   font-weight: 800;
}

.ng-bac-help p {
   margin: 7px 0 10px;
   color: var(--fg-3);
   font-size: 12.5px;
}

.ng-bac-help ul {
   margin: 0;
   padding: 0;
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.ng-bac-help li {
   display: flex;
   align-items: center;
   gap: 8px;
   color: var(--fg-2);
   font-size: 12.8px;
}

.ng-bac-help li .lucide {
   width: 15px;
   height: 15px;
   color: var(--ng-green-600);
   flex-shrink: 0;
}

@keyframes ng-bac-enter {
   from {
      opacity: 0;
      transform: translateY(14px) scale(0.985);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

@media (max-width: 640px) {
   .ng-bac-page {
      padding: 14px;
      align-items: flex-start;
   }

   .ng-bac-card {
      padding: 18px;
      border-radius: 18px;
      margin-top: 8px;
   }

   .ng-bac-head h1 {
      font-size: 22px;
   }

   .ng-bac-alert {
      grid-template-columns: 30px 1fr;
      gap: 10px;
      padding: 10px;
   }

   .ng-bac-alert-ic {
      width: 30px;
      height: 30px;
      border-radius: 9px;
   }
}

/* =============================================================================
   Request form (Nouvelle / Modifier demande) — design clair, moderne, responsive
   ============================================================================= */
.ng-request-page {
   min-height: 100vh;
   padding: 28px 16px 48px;
   background:
      radial-gradient(circle at 88% 12%, rgba(58, 152, 148, 0.14) 0%, transparent 46%),
      radial-gradient(circle at 6% 92%, rgba(17, 127, 23, 0.10) 0%, transparent 52%),
      linear-gradient(180deg, #f4f8f4 0%, #f7f5ef 60%, #f1f4f8 100%);
}

.ng-request-wrap {
   max-width: 880px;
   margin: 0 auto;
}

.ng-request-card {
   background: #fff;
   border: 1px solid var(--border-subtle);
   border-radius: 18px;
   box-shadow: var(--shadow-sm);
   padding: 28px 28px 24px;
   animation: ng-fade-rise 360ms var(--ease-out) both;
}

.ng-request-head {
   text-align: center;
   margin-bottom: 18px;
}

.ng-request-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 11.5px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.12em;
   color: var(--ng-green-700);
   background: var(--ng-green-50);
   border: 1px solid var(--ng-green-200);
   padding: 5px 11px;
   border-radius: 999px;
}
.ng-request-eyebrow .lucide,
.ng-request-eyebrow [data-lucide] { width: 14px; height: 14px; }

.ng-request-title {
   margin: 12px 0 6px;
   font-size: 24px;
   font-weight: 800;
   color: var(--fg-1);
   letter-spacing: -0.02em;
   line-height: 1.2;
}

.ng-request-sub {
   margin: 0 auto;
   max-width: 540px;
   color: var(--fg-3);
   font-size: 13.5px;
   line-height: 1.55;
}

.ng-request-alert {
   display: grid;
   grid-template-columns: 36px 1fr;
   gap: 12px;
   border: 1px solid var(--info-border);
   background: linear-gradient(180deg, rgba(232, 240, 250, 0.6) 0%, rgba(232, 243, 242, 0.45) 100%);
   border-radius: 13px;
   padding: 13px 14px;
   margin-bottom: 20px;
}

.ng-request-alert-ic {
   width: 36px;
   height: 36px;
   border-radius: 10px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: #fff;
   color: var(--ng-blue-500);
   border: 1px solid rgba(191, 211, 239, 0.9);
}
.ng-request-alert-ic .lucide,
.ng-request-alert-ic [data-lucide] { width: 18px; height: 18px; }

.ng-request-alert-title {
   margin: 2px 0 6px;
   font-size: 13.5px;
   font-weight: 700;
   color: var(--fg-1);
}

.ng-request-alert-list {
   margin: 0;
   padding-left: 18px;
   color: var(--fg-2);
   font-size: 12.8px;
   line-height: 1.55;
   display: flex;
   flex-direction: column;
   gap: 3px;
}

/* Form layout */
.ng-request-form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}

.ng-request-type { margin-bottom: 4px; }

.ng-request-select {
   appearance: none;
   -webkit-appearance: none;
   width: 100%;
   padding: 10px 36px 10px 13px;
   border: 1px solid var(--border-default);
   border-radius: 10px;
   background: #fff;
   font-family: inherit;
   font-size: 13.5px;
   font-weight: 600;
   color: var(--fg-1);
   cursor: pointer;
   box-shadow: var(--shadow-inset);
   transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ng-request-select:focus {
   outline: none;
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng-request-select.is-error {
   border-color: var(--danger);
   box-shadow: 0 0 0 3px rgba(178, 58, 36, 0.16);
}

/* Field labels — clear, not uppercase, light look */
.ng-request-form .ng-field > label,
.ng-request-section .ng-field > label {
   text-transform: none;
   letter-spacing: 0;
   font-size: 13px;
   font-weight: 600;
   color: var(--fg-2);
}

.ng-request-section { display: flex; flex-direction: column; gap: 20px; }
.ng-request-block {
   background: var(--n-25);
   border: 1px solid var(--border-subtle);
   border-radius: 14px;
   padding: 18px 18px 16px;
   display: flex;
   flex-direction: column;
   gap: 14px;
}
.ng-request-block-title {
   margin: 0 0 4px;
   font-size: 14px;
   font-weight: 700;
   color: var(--fg-1);
   letter-spacing: -0.005em;
}

/* Inputs override pour rester clairs (jamais d'effet sombre) */
.ng-request-section .ng-input,
.ng-request-form .ng-input {
   background: #fff;
   color: var(--fg-1);
   border-color: var(--border-default);
   border-radius: 10px;
   padding: 10px 12px;
}
.ng-request-section .ng-input::placeholder { color: var(--fg-4); }
.ng-request-section .ng-input:focus,
.ng-request-form .ng-input:focus {
   border-color: var(--ng-green-500);
   box-shadow: var(--shadow-focus);
}
.ng-request-section textarea.ng-input { min-height: 110px; line-height: 1.55; }

/* Read-only display "champ" (excellence) */
.ng-readonly {
   display: block;
   width: 100%;
   box-sizing: border-box;
   padding: 10px 12px;
   border: 1px dashed var(--border-default);
   border-radius: 10px;
   background: #fff;
   font-size: 13.5px;
   color: var(--fg-2);
   font-weight: 600;
   min-height: 40px;
}

/* Radios */
.ng-radio-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ng-radio {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-size: 13.5px;
   font-weight: 600;
   color: var(--fg-2);
   cursor: pointer;
}
.ng-radio input[type="radio"] {
   appearance: none;
   -webkit-appearance: none;
   width: 18px;
   height: 18px;
   border: 1.5px solid var(--border-strong);
   border-radius: 50%;
   background: #fff;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ng-radio input[type="radio"]::after {
   content: "";
   width: 9px;
   height: 9px;
   border-radius: 50%;
   background: var(--ng-green-500);
   transform: scale(0);
   transition: transform 140ms var(--ease-out);
}
.ng-radio input[type="radio"]:checked { border-color: var(--ng-green-500); }
.ng-radio input[type="radio"]:checked::after { transform: scale(1); }
.ng-radio input[type="radio"]:focus-visible { box-shadow: var(--shadow-focus); outline: none; }

/* File attachments */
.ng-file-input {
   padding: 8px 12px;
   font-size: 13px;
   color: var(--fg-2);
   background: #fff;
   cursor: pointer;
}
.ng-file-input::file-selector-button {
   margin-right: 10px;
   padding: 6px 12px;
   border-radius: 8px;
   border: 1px solid var(--border-default);
   background: var(--n-50);
   color: var(--fg-1);
   font-weight: 600;
   font-size: 12.5px;
   cursor: pointer;
   transition: background var(--dur-fast) var(--ease-out);
}
.ng-file-input::file-selector-button:hover { background: var(--n-100); }

.ng-file-current {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-top: 6px;
   padding: 9px 12px;
   border-radius: 10px;
   border: 1px solid var(--ng-green-200);
   background: var(--ng-green-50);
   color: var(--ng-green-700);
   font-size: 13px;
   font-weight: 600;
}
.ng-file-current-ic {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   color: var(--ng-green-600);
   flex-shrink: 0;
}
.ng-file-current-ic .lucide,
.ng-file-current-ic [data-lucide] { width: 16px; height: 16px; }
.ng-file-current-name {
   flex: 1;
   min-width: 0;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}
.ng-file-replace {
   border: 0;
   background: none;
   color: var(--ng-green-700);
   font-weight: 700;
   font-size: 12px;
   text-decoration: underline;
   cursor: pointer;
   font-family: inherit;
}
.ng-file-replace:hover { color: var(--ng-green-600); }
.ng-file-cancel {
   margin-top: 4px;
   border: 0;
   background: none;
   color: var(--fg-4);
   font-size: 12px;
   text-decoration: underline;
   cursor: pointer;
   font-family: inherit;
}
.ng-file-cancel:hover { color: var(--fg-2); }

/* Submit */
.ng-request-actions {
   display: flex;
   justify-content: flex-end;
   margin-top: 4px;
}
.ng-request-submit {
   width: 100%;
   justify-content: center;
   padding: 12px 18px;
   font-size: 14px;
   border-radius: 11px;
}

@media (min-width: 640px) {
   .ng-request-submit { width: auto; min-width: 200px; }
}

@media (max-width: 640px) {
   .ng-request-page { padding: 14px 12px 36px; }
   .ng-request-card { padding: 20px 16px 18px; border-radius: 16px; }
   .ng-request-title { font-size: 21px; }
   .ng-request-alert { grid-template-columns: 32px 1fr; padding: 10px 12px; }
   .ng-request-alert-ic { width: 32px; height: 32px; border-radius: 9px; }
   .ng-request-block { padding: 14px 14px 12px; border-radius: 12px; }
}

/* =============================================================================
   Request show page — détails d'une demande, layout responsive 2 colonnes
   ============================================================================= */
.ng-request-show {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   gap: 22px;
   animation: ng-fade-rise 360ms var(--ease-out) both;
}

.ng-request-show-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 18px;
   flex-wrap: wrap;
}
.ng-request-show-head-left { min-width: 0; flex: 1 1 320px; }
.ng-request-show-head-right { flex-shrink: 0; }

.ng-request-show-title {
   margin: 12px 0 6px;
   font-size: 26px;
   font-weight: 800;
   color: var(--fg-1);
   letter-spacing: -0.02em;
   line-height: 1.2;
   text-transform: uppercase;
}

.ng-request-show-ref {
   margin: 0;
   color: var(--fg-3);
   font-size: 13.5px;
}
.ng-request-show-ref-val {
   color: var(--fg-1);
   font-weight: 700;
   font-family: var(--font-mono);
   font-size: 13px;
}

.ng-request-show-head-right .ng-badge {
   padding: 6px 14px;
   font-size: 13px;
}
.ng-request-show-head-right .ng-badge .lucide,
.ng-request-show-head-right .ng-badge [data-lucide] { width: 14px; height: 14px; }

.ng-request-show-grid {
   display: grid;
   grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
   gap: 18px;
   align-items: start;
}

.ng-request-show-main {
   display: flex;
   flex-direction: column;
   gap: 18px;
   min-width: 0;
}

.ng-request-show-side {
   display: flex;
   flex-direction: column;
   gap: 18px;
   min-width: 0;
}

.ng-request-show-card { overflow: hidden; }
.ng-request-show-card.sticky { position: sticky; top: 20px; }

.ng-request-show-card .ng-card-head { padding: 16px 22px; }
.ng-request-show-card .ng-card-title {
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 15px;
}
.ng-request-card-ic {
   width: 30px;
   height: 30px;
   border-radius: 9px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: var(--ng-green-50);
   color: var(--ng-green-600);
   border: 1px solid var(--ng-green-200);
   flex-shrink: 0;
}
.ng-request-card-ic.accent {
   background: var(--ng-orange-50);
   color: var(--ng-orange-600);
   border-color: var(--ng-orange-200);
}
.ng-request-card-ic .lucide,
.ng-request-card-ic[data-lucide] { width: 16px; height: 16px; }

.ng-request-show-card-body { padding: 18px 22px 20px; }

/* Actions row */
.ng-request-show-actions {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 10px;
}
.ng-request-show-action {
   width: 100%;
   justify-content: center;
   padding: 11px 16px;
   font-size: 13.5px;
   border-radius: 11px;
}

/* Detail field overrides for show */
.ng-request-show-card .ng-detail-field .k { font-size: 12px; }
.ng-request-show-card .ng-detail-field .v { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.ng-request-show-divider {
   height: 1px;
   background: var(--border-subtle);
   margin: 18px 0 6px;
}

/* Workflow timeline */
.ng-request-flow { display: flex; flex-direction: column; gap: 12px; }
.ng-request-flow-item {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 12px 14px;
   border: 1px solid var(--border-subtle);
   border-radius: 13px;
   background: #fff;
   transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ng-request-flow-item:hover { background: var(--n-25); }

.ng-request-flow-ic {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: var(--n-50);
   color: var(--fg-4);
   border: 1px solid var(--border-subtle);
   flex-shrink: 0;
}
.ng-request-flow-ic .lucide,
.ng-request-flow-ic [data-lucide] { width: 20px; height: 20px; }

.ng-request-flow-item.done .ng-request-flow-ic {
   background: var(--ng-green-50);
   color: var(--ng-green-600);
   border-color: var(--ng-green-200);
}
.ng-request-flow-item.done.info .ng-request-flow-ic {
   background: var(--ng-blue-50);
   color: var(--ng-blue-500);
   border-color: var(--info-border);
}
.ng-request-flow-item.danger .ng-request-flow-ic {
   background: var(--danger-bg);
   color: var(--danger);
   border-color: var(--danger-border);
}

.ng-request-flow-body { flex: 1; min-width: 0; }
.ng-request-flow-title {
   font-size: 14px;
   font-weight: 700;
   color: var(--fg-1);
   line-height: 1.3;
}
.ng-request-flow-meta {
   font-size: 12.5px;
   color: var(--fg-3);
   margin-top: 2px;
   line-height: 1.45;
}
.ng-request-flow-item .ng-badge { flex-shrink: 0; }

/* Rejection panel */
.ng-request-reject {
   display: grid;
   grid-template-columns: 38px 1fr;
   gap: 12px;
   padding: 14px 16px;
   border-radius: 14px;
   background: var(--danger-bg);
   border: 1px solid var(--danger-border);
}
.ng-request-reject-ic {
   width: 38px;
   height: 38px;
   border-radius: 11px;
   background: #fff;
   color: var(--danger);
   border: 1px solid var(--danger-border);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}
.ng-request-reject-ic .lucide,
.ng-request-reject-ic [data-lucide] { width: 18px; height: 18px; }
.ng-request-reject-title {
   margin: 2px 0 4px;
   font-size: 13.5px;
   font-weight: 700;
   color: var(--danger);
}
.ng-request-reject-msg {
   margin: 0;
   font-size: 13px;
   color: var(--danger);
   line-height: 1.55;
}

/* Sidebar — payments list */
.ng-request-payments { display: flex; flex-direction: column; gap: 12px; }
.ng-request-payment {
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   background: var(--n-25);
   padding: 12px 14px;
   display: flex;
   flex-direction: column;
   gap: 8px;
}
.ng-request-payment-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
}
.ng-request-payment-amount {
   font-size: 15px;
   font-weight: 800;
   color: var(--fg-1);
   font-variant-numeric: tabular-nums;
}
.ng-request-payment-date {
   margin: 0;
   display: inline-flex;
   align-items: center;
   gap: 7px;
   color: var(--fg-3);
   font-size: 12.5px;
   font-weight: 600;
}
.ng-request-payment-date .lucide,
.ng-request-payment-date [data-lucide] { width: 14px; height: 14px; color: var(--fg-4); }

/* Sidebar — payment box */
.ng-request-pay-amount {
   border: 1px solid var(--ng-green-200);
   background: var(--ng-green-50);
   border-radius: 14px;
   padding: 18px 14px;
   text-align: center;
   margin-bottom: 16px;
}
.ng-request-pay-amount-label {
   margin: 0 0 6px;
   font-size: 12.5px;
   font-weight: 600;
   color: var(--ng-green-700);
   text-transform: uppercase;
   letter-spacing: 0.08em;
}
.ng-request-pay-amount-val {
   margin: 0;
   font-size: 30px;
   font-weight: 800;
   color: var(--ng-green-700);
   letter-spacing: -0.02em;
   font-variant-numeric: tabular-nums;
}
.ng-request-pay-btn {
   width: 100%;
   justify-content: center;
   padding: 13px 16px;
   font-size: 14px;
   border-radius: 11px;
}
.ng-request-pay-secure {
   margin: 12px 0 0;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   color: var(--fg-4);
   font-size: 12px;
   font-weight: 600;
}
.ng-request-pay-secure .lucide,
.ng-request-pay-secure [data-lucide] { width: 14px; height: 14px; }

/* Responsive — show */
@media (max-width: 960px) {
   .ng-request-show-grid { grid-template-columns: 1fr; }
   .ng-request-show-card.sticky { position: static; }
}

@media (max-width: 640px) {
   .ng-request-show-title { font-size: 22px; }
   .ng-request-show-head { gap: 12px; }
   .ng-request-show-actions { grid-template-columns: 1fr; }
   .ng-request-show-card .ng-card-head,
   .ng-request-show-card-body { padding: 14px 16px; }
   .ng-request-flow-item { padding: 11px 12px; gap: 10px; flex-wrap: wrap; }
   .ng-request-flow-item .ng-badge { margin-left: 54px; }
}

/* =============================================================================
   Request index (user-facing) — fournit l'arrière-plan + container en dehors
   du layout admin. Hérite des styles ng-page, ng-candidates, ng-tbl, etc.
   ============================================================================= */
.ng-requests-index-page {
   min-height: 100vh;
   background: var(--bg-page);
}
.ng-requests-index { max-width: 1280px; margin: 0 auto; }

/* =============================================================================
   Candidate edit (profil) — design clair, responsive, sans effet sombre.
   ============================================================================= */
.ng-candidate-edit {
   max-width: 980px;
   margin: 0 auto;
   padding: 24px 16px 48px;
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.ng-candidate-edit-head {
   display: flex;
   flex-direction: column;
   gap: 8px;
   text-align: left;
}
.ng-candidate-edit-title {
   font-family: var(--font-display, inherit);
   font-size: 28px;
   line-height: 1.15;
   font-weight: 700;
   color: var(--fg-1);
   margin: 0;
}
.ng-candidate-edit-sub {
   color: var(--fg-3);
   font-size: 14px;
   line-height: 1.5;
   margin: 0;
   max-width: 640px;
}

/* Error alert */
.ng-candidate-edit-error {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   padding: 14px 16px;
   border-radius: var(--radius-md, 12px);
   background: #FEF2F2;
   border: 1px solid #FECACA;
   color: #7F1D1D;
}
.ng-candidate-edit-error-ic {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border-radius: 10px;
   background: #FEE2E2;
   color: #B91C1C;
   flex-shrink: 0;
}
.ng-candidate-edit-error-ic .lucide,
.ng-candidate-edit-error-ic [data-lucide] { width: 18px; height: 18px; }
.ng-candidate-edit-error-title {
   font-size: 14px;
   font-weight: 700;
   margin: 0 0 2px;
   color: #991B1B;
}
.ng-candidate-edit-error-msg {
   font-size: 13px;
   margin: 0;
   color: #B91C1C;
   line-height: 1.5;
}

/* Card */
.ng-candidate-edit-card {
   overflow: hidden;
   border-radius: var(--radius-lg, 14px);
   background: var(--bg-surface, #FFFFFF);
   border: 1px solid var(--border-1, #E5E7EB);
   box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, .05));
}
.ng-candidate-edit-card-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
   padding: 18px 20px;
   border-bottom: 1px solid var(--border-1, #E5E7EB);
   background: var(--n-25, #FAFAFA);
}
.ng-candidate-edit-meta {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 10px;
   min-width: 260px;
}
.ng-candidate-edit-meta-item {
   padding: 10px 12px;
   border-radius: 10px;
   background: #FFFFFF;
   border: 1px solid var(--border-1, #E5E7EB);
}
.ng-candidate-edit-meta-item .k {
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: .04em;
   color: var(--fg-4, #6B7280);
   font-weight: 600;
   margin-bottom: 2px;
}
.ng-candidate-edit-meta-item .v {
   font-size: 13px;
   color: var(--fg-1, #111827);
   font-weight: 600;
}

/* Body */
.ng-candidate-edit-body {
   padding: 20px;
   display: flex;
   flex-direction: column;
   gap: 18px;
}
.ng-candidate-edit-form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}

/* Sections */
.ng-candidate-edit-section {
   padding: 16px;
   border-radius: 12px;
   background: var(--n-25, #FAFAFA);
   border: 1px solid var(--border-1, #E5E7EB);
   display: flex;
   flex-direction: column;
   gap: 14px;
}
.ng-candidate-edit-section-head {
   display: flex;
   align-items: flex-start;
   gap: 12px;
}
.ng-candidate-edit-section-ic {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   border-radius: 10px;
   flex-shrink: 0;
}
.ng-candidate-edit-section-ic.info {
   background: #EFF6FF;
   color: #1D4ED8;
}
.ng-candidate-edit-section-ic.success {
   background: #ECFDF5;
   color: #047857;
}
.ng-candidate-edit-section-ic .lucide,
.ng-candidate-edit-section-ic [data-lucide] { width: 18px; height: 18px; }

.ng-candidate-edit-section-title {
   font-size: 15px;
   font-weight: 700;
   margin: 0 0 2px;
   color: var(--fg-1, #111827);
}
.ng-candidate-edit-section-sub {
   font-size: 12.5px;
   color: var(--fg-3, #4B5563);
   margin: 0;
}

/* Select & errors */
.ng-candidate-edit-select.is-error,
.ng-input.is-error {
   border-color: #FCA5A5 !important;
   background: #FEF2F2;
}
.ng-field-error {
   font-size: 12px;
   color: #B91C1C;
   margin: 6px 0 0;
   font-weight: 500;
}

/* Attribution box */
.ng-candidate-edit-attribution {
   padding: 12px 14px;
   border-radius: 10px;
   background: #FFFFFF;
   border: 1px dashed var(--border-1, #E5E7EB);
   display: flex;
   flex-direction: column;
   gap: 4px;
}
.ng-candidate-edit-attribution .k {
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: .04em;
   color: var(--fg-4, #6B7280);
   font-weight: 600;
}
.ng-candidate-edit-attribution .v {
   font-size: 15px;
   font-weight: 700;
   color: var(--ng-green-7, #047857);
}
.ng-candidate-edit-attribution .s {
   font-size: 12px;
   color: var(--fg-4, #6B7280);
   margin: 2px 0 0;
}

/* Info note */
.ng-candidate-edit-note {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   padding: 12px 14px;
   border-radius: 10px;
   background: #FFF7ED;
   border: 1px solid #FED7AA;
   color: #7C2D12;
}
.ng-candidate-edit-note-ic {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
   border-radius: 8px;
   background: #FFEDD5;
   color: #C2410C;
   flex-shrink: 0;
}
.ng-candidate-edit-note-ic .lucide,
.ng-candidate-edit-note-ic [data-lucide] { width: 16px; height: 16px; }
.ng-candidate-edit-note p {
   font-size: 13px;
   line-height: 1.5;
   margin: 0;
}

/* Actions */
.ng-candidate-edit-actions {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding-top: 4px;
   flex-wrap: wrap;
}
.ng-candidate-edit-back,
.ng-candidate-edit-submit {
   display: inline-flex;
   align-items: center;
   gap: 8px;
}
.ng-candidate-edit-back .lucide,
.ng-candidate-edit-back [data-lucide] { width: 16px; height: 16px; }

/* Hints */
.ng-hint {
   font-size: 12px;
   color: var(--fg-4, #6B7280);
   margin: 6px 0 0;
}

/* Responsive — candidate edit */
@media (max-width: 860px) {
   .ng-candidate-edit-card-head { flex-direction: column; align-items: stretch; }
   .ng-candidate-edit-meta { width: 100%; }
}

@media (max-width: 640px) {
   .ng-candidate-edit { padding: 16px 12px 36px; }
   .ng-candidate-edit-title { font-size: 22px; }
   .ng-candidate-edit-meta { grid-template-columns: 1fr; }
   .ng-candidate-edit-actions {
      flex-direction: column-reverse;
      align-items: stretch;
   }
   .ng-candidate-edit-back,
   .ng-candidate-edit-submit { justify-content: center; width: 100%; }
   .ng-candidate-edit-body { padding: 16px; }
   .ng-candidate-edit-section { padding: 14px; }
}


.loader-v1 {
  border: 6px solid #f8f6f1;
  border-top: 6px solid #f05152;
  border-bottom: 6px solid #f05152;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
.bg-image {
  background-image: url(/assets/bg.webp);
  background-size: cover;
  background-position: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-img-preview,
.ng-upload-preview {
  width: min(100%, 400px);
}

.ng-upload-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ng-upload-preview-inline,
.ng-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ng-upload-box {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-inset);
}

.ng-upload-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-upload-preview-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--n-50);
}

.ng-upload-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.ng-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ng-upload-file-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-upload-btn,
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--n-50);
  color: var(--fg-1);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 11px;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.ng-upload-btn:hover,
.upload-btn:hover {
  border-color: var(--ng-green-200);
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}

.ng-file-hidden {
  display: none;
}

/* =============================================================================
   Préinscriptions — parcours multi-étapes public
   ============================================================================= */
.ng-pre-registration {
  width: 100%;
  margin: 0 auto 36px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--fg-2);
  font-family: var(--font-sans);
}

.ng-pre-registration turbo-frame {
  display: block;
  min-width: 0;
}

.ng-pre-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.ng-pre-step-item {
  min-width: 0;
}

.ng-pre-step-button.button-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--n-25);
  color: var(--fg-2);
  clip-path: none;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.ng-pre-step-button.button-step::before,
.ng-pre-step-button.button-step::after {
  display: none;
}

.ng-pre-step-button.button-step:not(.button-step-disabled):hover {
  border-color: var(--ng-green-200);
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}

.ng-pre-step-button.button-step-active {
  border-color: var(--ng-green-600) !important;
  background: var(--ng-green-500) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
}

.ng-pre-step-button.button-step-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.ng-pre-section {
  width: 100%;
  margin-inline: auto;
}

.ng-pre-section.ng-form-card {
  width: 100%;
}

.ng-pre-form {
  gap: 16px;
}

.ng-pre-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.ng-pre-actions > div {
  min-width: 0;
}

.ng-pre-actions .ng-btn {
  min-height: 40px;
}

.ng-pre-notice-title {
  margin: 8px 0 20px;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.ng-pre-alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--border-default);
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
  color: var(--fg-2);
  box-shadow: var(--shadow-xs);
}

.ng-pre-alert h3,
.ng-pre-alert h4 {
  margin: 0 0 4px;
  color: var(--fg-1);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}

.ng-pre-alert p {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.ng-pre-alert strong {
  color: var(--danger);
  font-weight: 800;
}

.ng-pre-alert ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.ng-pre-alert-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.ng-pre-alert-ic svg,
.ng-pre-alert-row svg {
  width: 20px;
  height: 20px;
}

.ng-pre-alert-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.ng-pre-alert-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ng-pre-alert.info {
  border-color: var(--info-border);
  border-left-color: var(--ng-blue-500);
  background: var(--ng-blue-50);
}

.ng-pre-alert.info .ng-pre-alert-ic,
.ng-pre-alert.info .ng-pre-alert-row > svg {
  color: var(--ng-blue-500);
}

.ng-pre-alert.warning {
  border-color: var(--ng-orange-200);
  border-left-color: var(--ng-orange-500);
  background: var(--ng-orange-50);
}

.ng-pre-alert.warning .ng-pre-alert-ic,
.ng-pre-alert.warning .ng-pre-alert-row > svg {
  color: var(--ng-orange-600);
}

.ng-pre-alert.danger {
  border-color: var(--danger-border);
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.ng-pre-alert.danger .ng-pre-alert-ic,
.ng-pre-alert.danger .ng-pre-alert-row > svg {
  color: var(--danger);
}

.ng-pre-alert-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ng-orange-200);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.ng-pre-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ng-pre-choice-col {
  min-width: 0;
}

.ng-pre-choice-card {
  height: 100%;
  overflow: visible;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.ng-pre-choice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 13px 13px 0 0;
  background: var(--ng-green-500);
  color: #fff;
}

.ng-pre-choice-head img,
.ng-pre-choice-head svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ng-pre-choice-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-pre-choice-body {
  padding: 14px;
}

.ng-pre-choice-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ng-pre-choice-body .input {
  min-height: 40px;
}

.ng-pre-payment {
  max-width: 940px;
}

.ng-pre-payment.narrow {
  max-width: 680px;
}

.ng-pre-payment-card {
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.ng-pre-payment-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ng-pre-payment-head.centered {
  justify-content: center;
  text-align: center;
}

.ng-pre-payment-head h2 {
  margin: 0;
  color: var(--fg-1);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.ng-pre-payment-head p,
.ng-pre-payment-message p {
  margin: 4px 0 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.5;
}

.ng-pre-payment-message {
  margin-bottom: 8px;
  text-align: center;
}

.ng-pre-payment-icon,
.ng-pre-payment-step-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-pre-payment-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.ng-pre-payment-icon .lucide {
  width: 26px;
  height: 26px;
}

.ng-pre-payment-step-ic .lucide {
  width: 20px;
  height: 20px;
}

.ng-pre-payment-meta .lucide {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

.ng-pre-payment-icon.ok {
  background: var(--ng-green-50);
  color: var(--ng-green-600);
}

.ng-pre-payment-icon.info {
  background: var(--ng-blue-50);
  color: var(--ng-blue-500);
}

.ng-pre-lottie-wrap,
.ng-pre-payment-card .my-4 {
  margin: 14px 0;
  text-align: center;
}

.ng-pre-lottie {
  width: 144px;
  height: 144px;
  margin-inline: auto;
}

.ng-pre-receipt {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--info-border);
  border-radius: 12px;
  background: var(--ng-blue-50);
  text-align: center;
}

.ng-pre-receipt p {
  margin: 0 0 12px;
  color: var(--fg-2);
  font-size: 14px;
}

.ng-pre-payment-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.ng-pre-payment-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.ng-pre-payment-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
}

.ng-pre-payment-step:hover {
  border-color: var(--ng-green-200);
  background: var(--n-25);
}

.ng-pre-payment-step.danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.ng-pre-payment-step-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ng-blue-50);
  color: var(--ng-blue-500);
}

.ng-pre-payment-step.danger .ng-pre-payment-step-ic {
  background: #fff;
  color: var(--danger);
}

.ng-pre-payment-step h3 {
  margin: 0 0 4px;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 800;
}

.ng-pre-payment-step p {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.ng-pre-payment-step strong {
  color: var(--danger);
  font-weight: 800;
}

.ng-pre-ipay {
  position: relative;
  min-height: 48px;
  margin-top: 12px;
}

.ng-pre-payment-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.ng-pre-payment-foot p {
  margin: 8px 0 0;
  color: var(--fg-4);
  font-size: 12px;
}

.ng-pre-payment-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
}

.ng-pre-payment-meta span,
.ng-pre-payment-meta div {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 860px) {
  .ng-pre-registration {
    width: 100%;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 13px;
  }

  .ng-pre-stepper {
    grid-template-columns: repeat(5, minmax(116px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ng-pre-section.ng-form-card,
  .ng-pre-payment {
    width: 100%;
    max-width: none;
  }

  .ng-pre-choice-grid {
    grid-template-columns: 1fr;
  }

  .ng-pre-payment-card {
    padding: 18px;
  }

  .ng-pre-payment-head,
  .ng-pre-alert,
  .ng-pre-alert-row {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ng-pre-registration {
    padding: 10px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .ng-pre-step-button.button-step {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .ng-pre-alert,
  .ng-pre-payment-step {
    padding: 12px;
  }

  .ng-pre-alert {
    gap: 10px;
  }

  .ng-pre-alert-ic {
    width: 30px;
    height: 30px;
  }

  .ng-pre-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ng-pre-actions > div,
  .ng-pre-actions .ng-btn,
  .ng-pre-actions input[type="submit"] {
    width: 100%;
  }

  .ng-pre-payment-head,
  .ng-pre-payment-head.centered {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .ng-pre-payment-head h2 {
    font-size: 20px;
  }

  .ng-pre-payment-step {
    grid-template-columns: 1fr;
  }

  .ng-pre-payment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .ng-pre-receipt .ng-btn,
  .ng-pre-payment-actions .ng-btn {
    width: 100%;
  }
}

/* =============================================================================
   Authentification publique
   ============================================================================= */
.ng-auth-card {
  width: min(100%, 460px);
  margin-inline: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.ng-auth-card.wide {
  width: min(100%, 520px);
}

.ng-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ng-auth-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--n-25);
  padding: 16px;
}

.ng-auth-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.ng-auth-section-title strong {
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 800;
}

.ng-auth-section-title span {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 700;
}

.ng-auth-session {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 14px;
  border: 1px solid var(--ng-green-200);
  border-radius: var(--radius-pill);
  background: var(--ng-green-50);
  color: var(--ng-green-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 6px 12px;
}

.ng-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ng-auth-field.hidden,
.ng-auth-field[hidden],
.ng-auth-message.hidden {
  display: none !important;
}

.ng-auth-field > label,
.ng-auth-label {
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ng-auth-hint {
  color: var(--fg-4);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.ng-auth-row {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 10px;
}

.ng-auth-input-wrap {
  position: relative;
}

.ng-auth-input-wrap .ng-input,
.ng-auth-input-wrap input {
  padding-right: 42px;
}

.ng-auth-input-wrap .ng-input.ng-input-valid,
.ng-auth-input-wrap input.ng-input-valid {
  border-color: #16a34a;
  background: #f0fdf4;
}

.ng-auth-input-wrap .ng-input.ng-input-invalid,
.ng-auth-input-wrap input.ng-input-invalid {
  border-color: var(--danger);
}

.ng-auth-input-icon,
.ng-auth-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--fg-4);
}

.ng-auth-input-icon {
  pointer-events: none;
}

.ng-auth-input-icon svg,
.ng-auth-toggle svg {
  width: 18px;
  height: 18px;
}

.ng-auth-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ng-auth-toggle:hover {
  background: var(--n-50);
  color: var(--fg-2);
}

.ng-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ng-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}

.ng-auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ng-green-500);
}

.ng-auth-link {
  color: var(--ng-green-600);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ng-auth-link:hover {
  color: var(--ng-green-700);
  text-decoration: underline;
}

.ng-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ng-auth-actions input[type="submit"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ng-green-600);
  border-radius: 9px;
  background: var(--ng-green-500);
  color: var(--fg-on-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-xs);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 15px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.ng-auth-actions input[type="submit"]:hover {
  background: var(--ng-green-600);
}

.ng-auth-actions input[type="submit"]:active {
  background: var(--ng-green-700);
  transform: translateY(1px);
}

.ng-auth-foot {
  border-top: 1px solid var(--border-subtle);
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  padding-top: 14px;
  text-align: center;
}

.ng-auth-message {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 6px;
}

.ng-btn-full {
  justify-content: center;
  width: 100%;
}

.ng-otp-setup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ng-otp-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.ng-otp-input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-inset);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.ng-otp-input:focus {
  outline: none;
  border-color: var(--ng-green-500);
  background: var(--ng-green-50);
  box-shadow: var(--shadow-focus), var(--shadow-inset);
}

.ng-otp-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.ng-otp-qr svg {
  display: block;
  margin: 0 auto;
  width: min(100%, 220px);
  height: auto;
}

.ng-otp-secret {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--ng-orange-200);
  border-radius: 10px;
  background: var(--ng-orange-50);
  color: var(--ng-orange-700);
  padding: 12px;
}

.ng-otp-secret span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ng-otp-secret code,
.ng-otp-backup-grid code {
  overflow-wrap: anywhere;
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ng-otp-backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ng-otp-backup-grid code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.ng-otp-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.ng-otp-status h2 {
  color: var(--fg-1);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 0;
}

.ng-otp-status p {
  color: var(--fg-3);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 4px;
}

@media (max-width: 560px) {
  .ng-auth-card,
  .ng-auth-card.wide {
    padding: 16px;
  }

  .ng-auth-row {
    grid-template-columns: 1fr;
  }

  .ng-auth-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .ng-otp-digits {
    gap: 6px;
  }

  .ng-otp-input {
    height: 48px;
    font-size: 18px;
  }

  .ng-otp-backup-grid {
    grid-template-columns: 1fr;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.glassmorphic-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  position: fixed;
  z-index: 1;
  padding: 2em;
  
  /* Centering */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  /* Add the drop shadow */
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2), 0 5px 10px 0 rgba(0,0,0,0.19);
}

.cancel-button {
  background-color: #1530ff;
  font-size: 12px;
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  text-decoration: none;
}
.cancel-button:hover {
  background-color: #2640fe;
}
