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: black; }
  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-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

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

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

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::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: ' \2022 '; }
  .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=Libertinus+Serif+Display&family=Orbitron:wght@400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
  font-family: Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@layer components {
  /* ========================================
     CARDs
    ======================================== */
  .card {
  @apply bg-white shadow;
  }
  
  /* ========================================
     PREVIEW IMAGE - Converti depuis style.css
     ======================================== */
  .form-img-preview {
    @apply inline-block;
  }

  .form-img-preview img {
    @apply max-w-full h-auto block border border-gray-200 rounded;
  }

  .form-img-preview__controls {
    @apply flex items-center mt-4 gap-2;
  }

  .form-img-preview__name {
    @apply text-xs pl-1 whitespace-nowrap overflow-hidden text-ellipsis flex-1;
  }

  /* ========================================
     FORMULAIRES
     ======================================== */
  .form-label,
  .label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
  }

  .form-group {
    @apply relative mb-6;
  }

  /* Champs de saisie */
  .input-field {
    @apply block w-full px-4 py-3 text-base text-gray-900 bg-white border border-gray-300 rounded-lg shadow-sm placeholder:italic placeholder:text-gray-400 hover:border-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-200 focus:border-indigo-500 transition-all duration-300;
  }

  .input-icon {
    @apply pl-10;
  }

  .input-error {
    @apply mt-1 text-sm text-red-600;
  }

  .select-field,
  .select-field-primary {
    @apply block w-full px-4 py-3 text-base text-gray-900 bg-white border border-gray-300 rounded-lg shadow-sm appearance-none hover:border-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-200 focus:border-indigo-500 transition-all duration-300;
  }

  .select-icon-wrapper {
    @apply relative;
  }

  .select-icon-wrapper::after {
    content: '▾';
    @apply absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none;
  }

  .select-error {
    @apply mt-1 text-sm text-red-600;
  }

  .textarea {
    @apply w-full min-h-[120px] px-4 py-3 text-[15px] border border-gray-300 rounded-[10px] bg-gray-50 resize-y outline-none transition-all duration-[250ms] focus:border-blue-600 focus:shadow-[0_0_0_3px_rgba(37,99,235,0.25)] focus:bg-white;
  }

  .input-field-primary {
    @apply block w-full px-4 py-2 text-base text-gray-900 border border-gray-300 rounded-lg shadow-sm focus:ring-green-600 focus:border-green-600 transition duration-150 ease-in-out;
  }

  .select-field-primary {
    @apply block w-full px-4 py-2 text-base text-gray-900 bg-white border border-gray-300 rounded-lg shadow-sm focus:ring-green-600 focus:border-green-600 transition duration-150 ease-in-out appearance-none cursor-pointer;
  }

  .input-field-error {
    @apply border-red-500 focus:ring-red-500 focus:border-red-500;
  }

  .input-search {
    @apply w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:border-green-600 focus:ring-green-600 transition duration-150;
  }

  /* ========================================
     BOUTONS - Système unifié (converti depuis style.css)
     ======================================== */

  /* Boutons de base */
  .btn {
    @apply inline-flex items-center justify-center gap-2 px-3 py-1.5 text-sm font-medium rounded border border-transparent transition-colors duration-200 cursor-pointer;
  }

  .btn--info {
    @apply bg-sky-500 text-white hover:bg-sky-600;
  }

  .btn--small {
    @apply text-xs px-2 py-1;
  }

  .btn--light {
    @apply bg-blue-100 text-blue-700 hover:bg-blue-200;
  }

  /* ========================================
     UTILITIES SHADOW
     ======================================== */
  .shadow-3xl {
    @apply box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .shadow-4xl {
    @apply box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  /* ========================================
     AUTRES BOUTONS - Système existant
     ======================================== */

  .btn-sm {
    @apply inline-flex items-center justify-center gap-2 px-3 py-1 text-sm font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer;
  }

  .btn-lg {
    @apply inline-flex items-center justify-center gap-2 px-6 py-3 text-base font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer;
  }
  .btn-primary {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 cursor-pointer;
  }

  .btn-success {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-green-600 text-white hover:bg-green-700 focus:ring-green-600 cursor-pointer;
  }

  .btn-danger {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-red-600 text-white hover:bg-red-700 focus:ring-red-500 cursor-pointer;
  }

  .btn-warning {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-orange-600 text-white hover:bg-orange-700 focus:ring-orange-500 cursor-pointer;
  }

  .btn-info {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-cyan-600 text-white hover:bg-cyan-700 focus:ring-cyan-500 cursor-pointer;
  }

  .btn-secondary {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500;
  }

  /* Boutons avec contour */
  .btn-outline {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gray-100 text-gray-800 hover:bg-gray-200 border border-gray-300 cursor-pointer;
  }

  .btn-outline-primary {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-white text-blue-600 hover:bg-blue-50 border border-blue-600 cursor-pointer;
  }
  
  .btn-light {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gray-100 text-gray-800 hover:bg-gray-200 border border-gray-300 cursor-pointer;
  }

  /* Boutons avec gradient */
  .btn-gradient-success {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gradient-to-r from-green-600 to-green-600 text-white hover:from-green-600 hover:to-green-700 hover:shadow-lg cursor-pointer;
  }

  .btn-gradient-danger {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gradient-to-r from-red-500 to-red-600 text-white hover:from-red-600 hover:to-red-700 hover:shadow-lg cursor-pointer;
  }

  /* Boutons d'action spécifiques */
  .btn-submit {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 cursor-pointer;
  }

  .btn-filter {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-green-600 text-white hover:bg-green-700 focus:ring-green-600 cursor-pointer;
  }

  .btn-export {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-cyan-600 text-white hover:bg-cyan-700 focus:ring-cyan-500 cursor-pointer;
  }

  .btn-import {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gray-100 text-gray-800 hover:bg-gray-200 border border-gray-300 cursor-pointer;
  }

  .btn-icon {
    @apply inline-flex items-center text-slate-400 bg-transparent hover:bg-slate-200 hover:text-slate-900 rounded-lg text-sm p-1.5 cursor-pointer;
  }

  /* Boutons icône uniquement */
  .btn-action {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition cursor-pointer;
  }

  .btn-action-view {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition bg-blue-100 text-blue-700 hover:bg-blue-200 hover:text-blue-800 cursor-pointer;
  }

  .btn-action-edit {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition bg-gray-100 text-gray-700 hover:bg-gray-200 hover:text-gray-900 cursor-pointer;
  }

  .btn-action-delete {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition bg-red-100 text-red-700 hover:bg-red-200 hover:text-red-800 cursor-pointer;
  }

  .btn-action-validate {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition bg-green-50 text-green-700 hover:bg-green-100 border border-green-200 hover:border-green-300 cursor-pointer;
  }

  .btn-action-reject {
    @apply flex items-center gap-1 px-3 py-1 rounded-lg font-medium text-sm transition bg-red-50 text-red-700 hover:bg-red-100 border border-red-200 hover:border-red-300 cursor-pointer;
  }

  /* Bouton de soumission primaire (legacy) */
  .submit-button-primary {
    @apply w-full md:w-auto bg-green-600 hover:bg-green-700 text-white font-semibold py-3 px-8 rounded-full shadow-lg hover:shadow-xl transition duration-300 ease-in-out transform hover:scale-105 cursor-pointer focus:outline-none focus:ring-4 focus:ring-green-600;
  }

  .contribute {
    @apply inline-flex items-center justify-center gap-2 px-4 py-2 font-medium rounded-lg transition duration-150 ease-in-out shadow-md focus:outline-none focus:ring-2 focus:ring-offset-2 bg-green-600 text-white hover:bg-green-700 focus:ring-green-600 text-sm cursor-pointer;
  }

  /* ========================================
     BADGES & STATUTS
     ======================================== */
  .badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
  }

  .badge-sm {
    @apply inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium;
  }

  .badge-lg {
    @apply inline-flex items-center px-4 py-2 rounded-full text-base font-medium;
  }

  .badge-success {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800;
  }

  .badge-danger {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-red-100 text-red-800;
  }

  .badge-warning {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800;
  }

  .badge-info {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800;
  }

  .badge-gray {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-gray-100 text-gray-800;
  }

  /* Badge avec ombre */
  .badge-elevated {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium shadow-lg tracking-wider;
  }

  /* ========================================
     CARTES & CONTENEURS
     ======================================== */
  .card {
    @apply bg-white rounded-xl shadow-lg border border-gray-100 p-6;
  }

  .card-lg {
    @apply bg-white rounded-xl shadow-lg border border-gray-100 p-8;
  }

  .card-sm {
    @apply bg-white rounded-xl shadow-lg border border-gray-100 p-4;
  }

  .card-interactive {
    @apply bg-white rounded-xl shadow-lg border border-gray-100 p-6 hover:shadow-xl transition duration-300;
  }

  .card-section {
    @apply bg-white rounded-xl shadow-2xl border-t-8 p-8 lg:p-12;
  }

  .card-header {
    @apply bg-white rounded-xl shadow-sm border border-gray-100 p-6;
  }

  /* ========================================
     LAYOUT & CONTAINERS
     ======================================== */
  .container-main {
    @apply min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-8 px-4 sm:px-6 lg:px-8;
  }

  .container-section {
    @apply py-16 bg-gray-50;
  }

  .container-content {
    @apply container mx-auto px-6 max-w-7xl;
  }

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  .heading-1 {
    @apply text-3xl sm:text-4xl lg:text-5xl font-extrabold text-gray-900;
  }

  .heading-2 {
    @apply text-2xl sm:text-3xl md:text-4xl font-extrabold text-gray-900;
  }

  .heading-3 {
    @apply text-xl sm:text-2xl md:text-3xl font-bold text-gray-900;
  }

  .heading-page {
    @apply text-3xl md:text-4xl font-extrabold text-gray-900 flex items-center gap-3;
  }

  .heading-section {
    @apply text-3xl font-bold text-gray-900 mb-8 flex items-center;
  }

  .text-subtitle {
    @apply text-xl text-gray-600 max-w-3xl mx-auto;
  }

  /* ========================================
     ICONS & DECORATIVE
     ======================================== */
  .icon-box {
    @apply w-12 h-12 rounded-lg bg-gradient-to-br flex items-center justify-center;
  }

  .icon-box-primary {
    @apply w-12 h-12 rounded-lg bg-gradient-to-br flex items-center justify-center from-blue-500 to-blue-600;
  }

  .icon-box-success {
    @apply w-12 h-12 rounded-lg bg-gradient-to-br flex items-center justify-center from-green-600 to-green-600;
  }

  .icon-box-danger {
    @apply w-12 h-12 rounded-lg bg-gradient-to-br flex items-center justify-center from-red-500 to-red-600;
  }

  /* ========================================
     TABLES
     ======================================== */
  .table-container {
    @apply overflow-x-auto border border-gray-200 rounded-lg;
  }

  .table {
    @apply min-w-full divide-y divide-gray-200;
  }

  .table-header {
    @apply bg-gray-200 text-xs text-gray-600 uppercase tracking-wider;
  }

  .table-header-cell {
    @apply px-6 py-3 text-left font-semibold;
  }

  .table-body {
    @apply bg-white divide-y divide-gray-200;
  }

  .table-row {
    @apply hover:bg-blue-50/50 transition duration-100 ease-in-out;
  }

  .table-cell {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
  }

  /* ========================================
     FORMS LAYOUT
     ======================================== */
  .form-row {
    @apply md:flex md:items-center mb-6;
  }

  .form-label-col {
    @apply md:w-1/3;
  }

  .form-input-col {
    @apply md:w-2/3;
  }

  .form-actions {
    @apply flex justify-end mt-8 gap-3;
  }

  .form-actions-center {
    @apply flex justify-center items-center mt-8 gap-3;
  }

  /* ========================================
     UTILITIES
     ======================================== */
  .hidden-transition {
    @apply transition-all duration-500 ease-in-out opacity-100 h-auto;
  }

  .flex-center {
    @apply flex items-center justify-center;
  }

  .flex-between {
    @apply flex items-center justify-between;
  }

  .flex-items-center-gap {
    @apply flex items-center gap-3;
  }

  .flex-items-center-gap-sm {
    @apply flex items-center gap-2;
  }

  /* ========================================
     RESPONSIVE ACTIONS
     ======================================== */
  .action-buttons {
    @apply flex flex-col sm:flex-row sm:justify-end sm:items-center gap-3 cursor-pointer;
  }

  .filter-section {
    @apply mb-6 p-4 bg-gray-100 rounded-lg border border-gray-200;
  }

  /* ========================================
     NAVBAR & NAVIGATION
     ======================================== */
  .nav-link {
    @apply flex items-center gap-2 text-sm text-gray-700 hover:text-green-700 transition;
  }
  
  .nav-link-primary {
    @apply hover:text-green-700 transition py-3 border-b-2 border-transparent;
  }

  .link-back {
    @apply text-gray-600 hover:text-blue-600 hover:underline font-medium transition duration-150 ease-in-out;
  }
}
.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 {
  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: #569ff7;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #fff;
  border-color: #569ff7;
}
.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 #569ff7;
          box-shadow: -10px 0 0 #569ff7;
}
.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 #569ff7, 5px 0 0 #569ff7;
          box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;
}
.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);
  }
}
/* Hero Section Animations */

@keyframes heroZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes heroMove {
  0%, 100% {
    transform: translate(0, 0) scale(1.1);
  }
  25% {
    transform: translate(-2%, -2%) scale(1.12);
  }
  50% {
    transform: translate(0%, -3%) scale(1.13);
  }
  75% {
    transform: translate(2%, -2%) scale(1.12);
  }
}

.hero-bg-animated {
  animation: heroMove 20s ease-in-out infinite;
  transform-origin: center center;
}

/* Hero Content 3D Effects */
.hero-perspective {
  perspective: 1000px;
}

.hero-title-small {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(249, 115, 22, 0.3);
}

.hero-title-main {
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.2);
  transform: rotateX(5deg) translateZ(20px);
}

.hero-description {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 15px rgba(134, 239, 172, 0.2);
  transform: translateZ(10px);
}

.hero-button {
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4), 0 0 20px rgba(22, 163, 74, 0.3);
  transform: translateZ(30px);
}
.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);
  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%)
  }
}

.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.
   ============================================================================= */
/* =============================================================================
   iFutur — Administration · TOKENS & TYPE
   Source unique de verite : couleurs, type, espacement, rayons, ombres.
   Couleurs : vert (primaire) + orange (accent) + neutres.
   delta-nation · systeme de design. Importez ce fichier depuis n'importe quelle UI.
   ============================================================================= */

@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');

:root {
  /* ── Vert (PRIMAIRE : action, navigation, validation) — base #127914 ── */
  --ng-green-50:  #E8F3E8;
  --ng-green-100: #CDE6CE;
  --ng-green-200: #9DCD9F;
  --ng-green-300: #5FAF62;
  --ng-green-400: #2E9233;
  --ng-green-500: #127914;   /* base */
  --ng-green-600: #0E6510;   /* hover */
  --ng-green-700: #0A4F0C;   /* pressed + texte/liens sur blanc */
  --ng-green-800: #073908;
  --ng-green: var(--ng-green-500);

  /* ── Orange (ACCENT : emphase, attention, « en cours ») — base #FF8C00 ── */
  --ng-orange-50:  #FFF4E5;
  --ng-orange-100: #FFE4C2;
  --ng-orange-200: #FFCD8F;
  --ng-orange-300: #FFB152;
  --ng-orange-400: #FF9D27;
  --ng-orange-500: #FF8C00;   /* base */
  --ng-orange-600: #E07700;   /* hover */
  --ng-orange-700: #B35E00;   /* pressed + texte/liens sur blanc */
  --ng-orange-800: #8A4700;
  --ng-orange: var(--ng-orange-500);

  /* ── Neutres institutionnels (très légèrement froids/neutres) ─────────── */
  --n-0:   #FFFFFF;
  --n-25:  #F7F8F8;   /* fond de page */
  --n-50:  #F1F3F2;   /* fond carte discret */
  --n-100: #E7EAE8;   /* séparateur */
  --n-200: #D8DCD9;   /* bordure */
  --n-300: #C0C6C2;   /* bordure forte */
  --n-400: #949B97;   /* icône muette */
  --n-500: #6B726E;   /* texte secondaire */
  --n-600: #4D534F;   /* corps appuyé */
  --n-700: #343935;
  --n-800: #20231F;
  --n-900: #121613;   /* encre / titres */

  --ink:   #121613;
  --ink-2: #20231F;

  /* ── Accents tableau de bord (tuiles pleines + pastilles d'icône) ─────── */
  --ng-teal-500: #2D8C86;  --ng-teal-50: #E4F1EF;   /* sarcelle */
  --ng-blue-500: #2C6DB5;  --ng-blue-50: #E5EFF9;   /* bleu (= info) */
  --ng-gold-500: #BE8A1F;  --ng-gold-50: #FAF1D8;   /* or / ocre */
  --info-border: #B8CFEA;

  /* ── Sémantique (vert + orange d'abord ; brique pour l'erreur) ────────── */
  --ok:        var(--ng-green-600);
  --ok-bg:     var(--ng-green-50);
  --ok-border: var(--ng-green-200);

  --pending:        var(--ng-orange-600);
  --pending-bg:     var(--ng-orange-50);
  --pending-border: var(--ng-orange-200);

  /* erreur / rejet : brique — sœur harmonique de l'orange, jamais rouge vif */
  --danger:        #B23A24;
  --danger-bg:     #F8E7E1;
  --danger-border: #E8BCAD;

  /* ── Tokens de premier plan ───────────────────────────────────────────── */
  --fg-1: var(--n-900);
  --fg-2: var(--n-700);
  --fg-3: var(--n-500);
  --fg-4: var(--n-400);
  --fg-on-orange: var(--ink);   /* orange lumineux → texte encre (accessible) */
  --fg-on-green:  #FFFFFF;
  --fg-on-dark:   #EEF1EF;

  /* ── Tokens de fond ───────────────────────────────────────────────────── */
  --bg-page:    #FAFBFA;   /* fond de la zone de contenu principale */
  --bg-surface: var(--n-0);
  --bg-sunken:  var(--n-50);
  --bg-inverse: var(--ink);

  /* ── Bordures ─────────────────────────────────────────────────────────── */
  --border-subtle:  var(--n-100);
  --border-default: var(--n-200);
  --border-strong:  var(--n-300);

  /* ── Rayons ───────────────────────────────────────────────────────────── */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 13px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* ── Espacement (base 4px) ────────────────────────────────────────────── */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;

  /* ── Ombres (douces, jamais noir pur) ─────────────────────────────────── */
  --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);

  /* ── Typographie (Open Sans — cohérence iFutur) ───────────────────────── */
  --font-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  /* Pas de police mono : tout le texte est en Open Sans. Le token --font-mono
     est conservé (les classes .mono / .ref l'utilisent) mais pointe vers Open Sans. */
  --font-mono: var(--font-sans);

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

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

  --num-tabular: 'tnum' 1, 'lnum' 1;
}

.lucide,
i[data-lucide] {
  display: inline-block;
  flex-shrink: 0;
}

/* =============================================================================
   Base typographique (classe racine .ng)
   ============================================================================= */
/* =============================================================================
   Base
   ============================================================================= */
.ng, .ng * { box-sizing: border-box; }
.ng {
  font-family: var(--font-sans);
  color: var(--fg-2);
  background: var(--bg-page);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'pnum' 1, 'lnum' 1;
}
.ng h1, .ng h2, .ng h3, .ng h4 { margin: 0; color: var(--fg-1); }
.ng .tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: var(--num-tabular); }
.ng .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 700; color: var(--fg-3);
}
.ng .mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.ng-hidden { display: none !important; }
.ng i { line-height: 1; }
.ng strong { font-weight: 700; color: var(--fg-1); }
/* =============================================================================
   App shell
   ============================================================================= */
.ng-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--bg-page); }

.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-logo { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.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; }
.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; padding: 8px 10px; border-radius: 8px; color: var(--fg-2); background: none; border: 0; font-family: inherit; font-size: 13.5px; cursor: pointer; font-weight: 500; text-decoration: none; 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.open .chev-x { transform: rotate(180deg); }
.ng-nav-item i:not(.chev-x) { width: 17px; color: var(--fg-4); text-align: center; flex-shrink: 0; }
.ng-nav-item.active i { color: #fff; }
.ng-nav-toggle { width: 100%; text-align: left; }
.ng-nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.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-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-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 i { width: 16px; color: var(--fg-3); text-align: center; flex-shrink: 0; }
.ng-user-item.danger { color: var(--danger); }
.ng-user-item.danger .lucide { color: var(--danger); }
.ng-user-item.danger i { color: var(--danger); }
.ng-user-menu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 5px 4px; }
.ng-user-menu.top { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; min-width: 232px; }
.ng-user-meta { min-width: 0; flex: 1; line-height: 1.2; }
.ng-user-name { display: block; color: var(--fg-1); font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-user-role { display: block; color: var(--fg-3); font-size: 10.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-user-btn.compact { width: auto; }

.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 26px; position: sticky; top: 0; z-index: 20; }
.ng-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.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, .ng-proj i { width: 15px; color: var(--fg-4); }
.ng-field-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--fg-4); font-size: 13px; pointer-events: none; }
.ng-field-icon .lucide { width: 15px; height: 15px; }
.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 i { font-size: 16px; }
.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 32px 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; }
.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); }
.ng-empty p { font-size: 13.5px; max-width: 360px; margin: 0; }
.ng-empty.compact { min-height: 220px; padding: 34px 18px; }
.ng-empty .ic i { font-size: 24px; }

/* =============================================================================
   Buttons
   ============================================================================= */
.ng-btn { display: inline-flex; align-items: center; justify-content: 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 i { font-size: 14px; }
.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; }
.ng-btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 11px; }
.ng-btn-block { width: 100%; }

/* =============================================================================
   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: #fff; color: var(--fg-2); border-color: var(--border-default); }

/* =============================================================================
   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-card-body { padding: 20px; }
.ng-section-gap { margin-top: 16px; }
.ng-stack-gap { margin-bottom: 16px; }
.ng-section-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ng-section-title { font-size: 18px; font-weight: 800; color: var(--fg-1); letter-spacing: 0; }
.ng-section-sub { margin: 2px 0 0; color: var(--fg-3); font-size: 13px; font-weight: 500; }
.ng-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.ng-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.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.compact { padding: 24px 30px 26px; }
.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; 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 { 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-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-ic i { font-size: 15px; }
.ng-stat-tile-val { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 0; 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; }

.ng-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ng-recent-card { overflow: hidden; }
.ng-recent-card .ng-card-head { align-items: flex-start; gap: 12px; }
.ng-recent-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ng-recent-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--ng-green-50); color: var(--ng-green-600); border: 1px solid var(--ng-green-100); }
.ng-recent-icon .lucide { width: 17px; height: 17px; }
.ng-recent-table { font-size: 13px; }
.ng-recent-card .ng-table-scroll .ng-tbl { min-width: 560px; }
.ng-recent-table thead th { padding: 10px 14px; }
.ng-recent-table tbody td { padding: 11px 14px; vertical-align: middle; }
.ng-recent-table td:first-child strong { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 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; 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-counters.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.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 .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; }
.ng-counter .c-ic i { font-size: 17px; }

/* Statistiques détaillées */
.ng-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ng-page-actions .ng-chips { margin-bottom: 0; }
.ng-stat-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: end; }
.ng-stat-hero-side { display: grid; gap: 10px; }
.ng-stat-hero-side > div { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); border-radius: 11px; padding: 12px 14px; }
.ng-stat-hero-side span { display: block; color: rgba(255,255,255,0.72); font-size: 12px; font-weight: 700; }
.ng-stat-hero-side strong { display: block; margin-top: 5px; color: #fff; font-size: 22px; line-height: 1; font-weight: 800; }
.ng-stats-model-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ng-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ng-breakdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ng-kpi.teal .ng-kpi-label::before { background: var(--ng-teal-500); }
.ng-kpi.gold .ng-kpi-label::before { background: var(--ng-gold-500); }
.ng-kpi.blue .ng-kpi-label::before { background: var(--ng-blue-500); }

/* =============================================================================
   Tables
   ============================================================================= */
.ng-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ng-table-scroll { overflow-x: auto; }
.ng-table-scroll .ng-tbl { min-width: 720px; }
.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; }
.ng-rank { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--border-default); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ng-divider-block { border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.ng-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ng-green-600); }
.ng-section-heading .lucide { width: 17px; height: 17px; }
.ng-section-heading h3 { font-size: 15.5px; font-weight: 700; color: var(--fg-1); }
.ng-list { display: flex; flex-direction: column; gap: 8px; }
.ng-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--n-25); border: 1px solid var(--border-subtle); border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); }

/* Contributions publiques/admin : table desktop + cartes mobiles */
.ng-contribution-table td { vertical-align: middle; }
.ng-tbl td.ng-contribution-amount { color: var(--ng-green-700); }
.ng-contribution-mobile-list { display: none; flex-direction: column; gap: 12px; }
.ng-contribution-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); overflow: hidden; }
.ng-contribution-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 16px 13px; }
.ng-contribution-person { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ng-contribution-person span,
.ng-contribution-field span,
.ng-contribution-card-foot span { color: var(--fg-3); font-size: 11.5px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.06em; }
.ng-contribution-person strong { color: var(--fg-1); font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ng-contribution-mobile-amount { flex-shrink: 0; margin-left: auto; color: var(--ng-green-700); font-size: 14px; font-weight: 800; line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ng-contribution-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border-subtle); background: var(--n-25); }
.ng-contribution-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ng-contribution-field strong { color: var(--fg-2); font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ng-contribution-field strong.ref { color: var(--fg-3); font-size: 12.5px; }
.ng-contribution-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border-subtle); }
.ng-contribution-card-foot strong { color: var(--fg-3); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* =============================================================================
   Index admin — refonte inspiree des captures index/table
   ============================================================================= */
.ng-index { display: flex; flex-direction: column; gap: 16px; }
.ng-index-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.ng-index-titleblock { min-width: 0; }
.ng-index-titleline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ng-index-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

.ng-index .ng-crumb { margin-bottom: 10px; }
.ng-index .ng-page-title { font-size: 28px; line-height: 1.12; letter-spacing: 0; }
.ng-index .ng-page-sub { margin: 0; font-weight: 500; white-space: nowrap; }

.ng-index .ng-filter-section { margin-bottom: 0; background: #fff; border-color: var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); }
.ng-index .ng-filter-head { min-height: 48px; padding: 15px 18px; }
.ng-index .ng-filter-title i { width: 16px; color: var(--fg-3); text-align: center; }
.ng-index .ng-filter-title .lucide { width: 16px; height: 16px; color: var(--fg-3); }
.ng-index .ng-filter-body { padding: 16px 18px 18px; background: #fff; }
.ng-index .ng-filter-search { grid-column: 1 / -1; }
.ng-index .ng-field.action { align-self: end; }

.ng-table-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); overflow: hidden; }
.ng-index-table { font-size: 14px; }
.ng-index-table thead th { padding: 12px 18px; background: var(--n-25); letter-spacing: 0.08em; }
.ng-index-table tbody td { padding: 13px 18px; vertical-align: middle; }
.ng-index-table tbody tr:nth-child(even) td { background: rgba(247, 248, 248, 0.58); }
.ng-index-table tbody tr:hover td { background: var(--ng-green-50); }
.ng-index-table tbody td:first-child { font-weight: 800; color: var(--fg-1); }

.ng-inline-form { margin: 0; display: inline-flex; }
.ng-btn:disabled,
.ng-btn[disabled] { opacity: .48; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.ng-btn:disabled:hover,
.ng-btn[disabled]:hover { background: inherit; }

.ng-validation-page .ng-table-card { position: relative; }
.ng-validation-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ng-validation-filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-validation-table { min-width: 920px; }
.ng-validation-table td { white-space: nowrap; }
.ng-validation-table td:nth-child(2),
.ng-validation-table td:nth-child(4),
.ng-validation-table td:nth-child(5),
.ng-validation-table td:nth-child(6) { white-space: normal; }
.ng-validation-amount { color: var(--ng-green-700) !important; }
.ng-validation-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: nowrap; }
.ng-validation-total { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); background: #fff; font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.ng-validation-total strong { color: var(--ng-green-700); font-size: 14px; }

.ng-row-actions { position: relative; }
.ng-kebab { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--n-50); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ng-kebab:hover,
.ng-kebab[aria-expanded="true"] { background: var(--n-100); color: var(--fg-1); }
.ng-kebab:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ng-rowmenu { right: auto; bottom: auto; }
.ng-rowmenu-form { margin: 0; }
.ng-rowmenu-item i { width: 15px; color: var(--fg-3); text-align: center; flex-shrink: 0; }
.ng-rowmenu-item.danger i { color: var(--danger); }

/* 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: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(4, minmax(0, 1fr)); gap: 14px 16px; }
.ng-field { display: flex; flex-direction: column; gap: 6px; }
.ng-field.action { justify-content: end; }
.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; }
.ng-select .chev .lucide { width: 15px; height: 15px; }
.ng-select-with-icon select { padding-left: 36px; min-width: 180px; }
.ng-select.compact { min-width: 180px; }
.ng-filter-section { background: var(--n-25); border: 1px solid var(--border-subtle); border-radius: 13px; margin-bottom: 20px; overflow: hidden; }

/* 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,
.ng .input-field,
.ng .select-field {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  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-input[disabled],
.ng .input-field[disabled],
.ng .select-field[disabled] { background: var(--n-50); color: var(--fg-3); cursor: not-allowed; }
.ng-input::placeholder,
.ng .input-field::placeholder { color: var(--fg-4); }
.ng-input:focus,
.ng .input-field:focus,
.ng .select-field:focus { outline: none; border-color: var(--ng-green-500); box-shadow: var(--shadow-focus); }
.ng input[type="file"].input-field {
  min-height: 46px;
  padding: 8px;
  cursor: pointer;
}
.ng input[type="file"].input-field::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--n-25);
  color: var(--fg-1);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 11px;
  cursor: pointer;
}
.ng input[type="file"].input-field:hover::file-selector-button {
  border-color: var(--ng-green-200);
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}
.ng-input.with-ic { padding-left: 36px; }
.ng-input.with-action { padding-right: 42px; }
.ng-input-wrap { position: relative; }
.ng-input-wrap.grow { flex: 1; min-width: 220px; }
.ng-input-wrap > .lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-4); }
.ng-input-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-4); font-size: 14px; pointer-events: none; }
.ng-input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-4); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ng-input-action:hover { background: var(--n-50); color: var(--fg-2); }
.ng-input-action:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ng-color-input { padding: 0; height: 40px; max-width: 70px; }
.ng-search-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 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-toggle .rotate-180 { 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; }

/* 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 .pagination,
.ng-pagination .pagy { display: flex; align-items: center; gap: 6px; }
.ng-pagination .pagination a:not(.gap),
.ng-pagination .pagy a:not(.gap) {
  min-width: 32px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #fff;
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 10px;
  text-decoration: none;
  text-align: center;
}
.ng-pagination .pagination a.current,
.ng-pagination .pagy a.current {
  background: var(--ng-green-500);
  border-color: var(--ng-green-600);
  color: #fff;
}
.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 { display: flex; flex-direction: column; gap: 0; }
.ng-card.ng-card-body:has(> .ng-form) {
  max-width: 860px;
  margin-inline: auto;
  padding: 22px;
}
.ng-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ng-form-grid .col-2 { grid-column: span 2; }
.ng-form-grid .hidden { display: none !important; }
.ng-form .ng-field,
.ng-import-form .ng-field,
.contribution-form .ng-field { gap: 7px; }
.ng .form-label,
.contribution-form label,
.ng-form .ng-field > label,
.ng-import-form .ng-field > label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-3);
}
.ng-hint { font-size: 12px; color: var(--fg-4); margin-top: 5px; }
textarea.ng-input { resize: vertical; min-height: 88px; line-height: 1.5; }
.ng-form-actions { display: flex; gap: 10px; margin-top: 24px; }
.ng-form-actions form { margin: 0; }
.ng-field-error .ng-input,
.ng-field-error .choices__inner { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(178,58,36,0.16), var(--shadow-inset) !important; }
.ng-error-text { color: var(--danger); font-size: 12px; font-weight: 600; margin-top: 5px; }
.ng-upload { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--n-25); }
.ng-upload-preview { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.ng-upload-preview.sm { width: 42px; height: 42px; }
.ng-upload-controls { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ng-upload-name { color: var(--fg-3); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.ng-radio-group { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 13.5px; font-weight: 600; }
.ng-radio { accent-color: var(--ng-green-500); }
.ng .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ng-green-600);
  border-radius: 9px;
  background: var(--ng-green-500);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.ng .btn-submit:hover { background: var(--ng-green-600); }
.ng .btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid var(--ng-orange-600);
  background: var(--ng-orange-500);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ng .btn-export:hover { background: var(--ng-orange-600); }
.ng .choices { font-size: 13.5px; margin-bottom: 0; }
.ng .choices__inner {
  min-height: 38px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-inset);
  color: var(--fg-1);
  font-size: 13.5px;
}
.ng .choices.is-focused .choices__inner,
.ng .choices.is-open .choices__inner {
  border-color: var(--ng-green-500);
  box-shadow: var(--shadow-focus), var(--shadow-inset);
}
.ng .choices__list--dropdown,
.ng .choices__list[aria-expanded] {
  border: 1px solid var(--border-default);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ng .choices__list--dropdown .choices__item--selectable,
.ng .choices__list[aria-expanded] .choices__item--selectable { padding: 9px 12px; }
.ng .choices__list--dropdown .choices__item--selectable.is-highlighted,
.ng .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}

/* 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; }

/* 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; }

/* =============================================================================
   Profil utilisateur & securite du compte
   ============================================================================= */
.ng-profile-shell { display: flex; flex-direction: column; gap: 16px; }
.ng-profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 26px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 13px; box-shadow: var(--shadow-xs); }
.ng-profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ng-profile-avatar { width: 76px; height: 76px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--ng-green-50); color: var(--ng-green-700); border: 1px solid var(--ng-green-200); font-size: 24px; font-weight: 800; }
.ng-profile-name { font-size: 30px; line-height: 1.12; font-weight: 800; color: var(--fg-1); }
.ng-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ng-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ng-profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 16px; align-items: start; }
.ng-profile-list { display: flex; flex-direction: column; gap: 10px; }
.ng-contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.ng-contact-row:last-child { border-bottom: 0; }
.ng-contact-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--n-50); color: var(--fg-3); border: 1px solid var(--border-subtle); }
.ng-contact-ic.green { background: var(--ng-green-50); color: var(--ng-green-600); border-color: var(--ng-green-200); }
.ng-contact-ic.orange { background: var(--ng-orange-50); color: var(--ng-orange-600); border-color: var(--ng-orange-200); }
.ng-contact-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--fg-3); }
.ng-contact-v { margin-top: 2px; color: var(--fg-1); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ng-security-panel { display: flex; flex-direction: column; gap: 14px; }
.ng-security-state { display: flex; gap: 13px; align-items: flex-start; padding: 14px; border-radius: 11px; background: var(--n-25); border: 1px solid var(--border-subtle); }
.ng-security-state.ok { background: var(--ng-green-50); border-color: var(--ng-green-200); }
.ng-security-state.pending { background: var(--ng-orange-50); border-color: var(--ng-orange-200); }
.ng-security-state.danger { background: var(--danger-bg); border-color: var(--danger-border); }
.ng-security-ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; color: var(--fg-3); border: 1px solid var(--border-default); }
.ng-security-state.ok .ng-security-ic { color: var(--ng-green-600); border-color: var(--ng-green-200); }
.ng-security-state.pending .ng-security-ic { color: var(--ng-orange-600); border-color: var(--ng-orange-200); }
.ng-security-state.danger .ng-security-ic { color: var(--danger); border-color: var(--danger-border); }
.ng-security-title { font-size: 15px; font-weight: 800; color: var(--fg-1); }
.ng-security-copy { font-size: 13px; color: var(--fg-2); margin-top: 2px; line-height: 1.45; }
.ng-security-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-user-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ng-user-action-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  box-shadow: var(--shadow-xs);
}
.ng-user-action-card h2 { font-size: 15px; font-weight: 800; color: var(--fg-1); }
.ng-user-action-card p { margin-top: 3px; color: var(--fg-3); font-size: 13px; line-height: 1.45; }
.ng-user-action-card form { margin: 0; }
.ng-user-action-ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  background: var(--n-50);
  color: var(--fg-3);
}
.ng-user-action-ic.ok { background: var(--ng-green-50); border-color: var(--ng-green-200); color: var(--ng-green-600); }
.ng-user-action-ic.pending { background: var(--ng-orange-50); border-color: var(--ng-orange-200); color: var(--ng-orange-700); }
.ng-user-action-ic.danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.ng-link { color: var(--ng-green-700); font-weight: 700; text-decoration: none; }
.ng-link:hover { color: var(--ng-green-600); text-decoration: underline; }

/* Importations dashboard */
.ng-import-card {
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
}
.ng-import-info {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--ng-orange-50);
}
.ng-import-info-ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--ng-orange-200);
  color: var(--ng-orange-700);
}
.ng-import-info h2 { font-size: 15px; font-weight: 800; color: var(--fg-1); }
.ng-import-info p {
  max-width: 760px;
  margin: 3px 0 12px;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.ng-import-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.ng-import-preview {
  min-height: 112px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border: 1px dashed var(--border-default);
  border-radius: 11px;
  background: var(--n-25);
  box-shadow: var(--shadow-inset);
  color: var(--fg-3);
  font-size: 12.5px;
}
.ng-import-preview p { margin: 0; }
.ng-setup-grid { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ng-qr-frame { display: flex; justify-content: center; align-items: center; min-height: 260px; padding: 18px; background: var(--n-25); border: 1px dashed var(--border-default); border-radius: 12px; }
.ng-qr-frame svg { width: min(230px, 100%); height: auto; display: block; background: #fff; padding: 10px; border-radius: 10px; box-shadow: var(--shadow-xs); }
.ng-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: ng-step-count; }
.ng-step-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; background: var(--n-25); border: 1px solid var(--border-subtle); border-radius: 10px; }
.ng-step-row::before { counter-increment: ng-step-count; content: counter(ng-step-count); width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--ng-green-500); color: #fff; font-size: 13px; font-weight: 800; }
.ng-step-row strong { display: block; font-size: 13.5px; }
.ng-step-row span { display: block; color: var(--fg-3); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.ng-otp-input { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ng-auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: var(--bg-page); }
.ng-auth-card { width: min(460px, 100%); }
.ng-auth-logo { width: 58px; height: 58px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--ng-green-50); border: 1px solid var(--ng-green-200); color: var(--ng-green-700); margin-bottom: 14px; }
.ng-auth-logo img { max-width: 38px; max-height: 38px; object-fit: contain; }
.ng-auth-head { text-align: center; padding: 26px 26px 18px; }
.ng-auth-title { font-size: 24px; font-weight: 800; color: var(--fg-1); line-height: 1.15; }
.ng-auth-sub { margin-top: 7px; color: var(--fg-3); font-size: 13.5px; }
.ng-auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--ng-orange-200); background: var(--ng-orange-50); color: var(--ng-orange-700); font-size: 13px; font-weight: 600; line-height: 1.45; }
.ng-auth-alert i { margin-top: 2px; flex-shrink: 0; }
.ng-auth-form { display: flex; flex-direction: column; gap: 16px; }
.ng-auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ng-auth-footer { display: flex; justify-content: center; margin-top: 18px; }
.ng-check-row { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.ng-check { width: 16px; height: 16px; accent-color: var(--ng-green-500); cursor: pointer; }

/* =============================================================================
   Notifications (toasts) — glissent depuis le haut, disparaissent après 5 s
   ============================================================================= */
.ng-notice-stack { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.ng-notice {
  display: flex; align-items: flex-start; gap: 11px; width: 380px; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 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; }
.ng-notice-body { flex: 1; min-width: 0; }
.ng-notice-title { font-size: 13.5px; font-weight: 700; color: var(--fg-1); line-height: 1.3; }
.ng-notice-msg { font-size: 12.5px; color: var(--fg-3); margin-top: 1px; line-height: 1.4; }
.ng-notice-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ng-green-700); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.ng-notice-link:hover { color: var(--ng-green-800); text-decoration: underline; }
.ng-notice-link .lucide { width: 14px; height: 14px; }
.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: 15px; height: 15px; }
.ng-notice-ic i { font-size: 16px; }
/* Tons */
.ng-notice.success { border-color: var(--ng-green-200); }
.ng-notice.success .ng-notice-ic { background: var(--ng-green-50); color: var(--ng-green-600); }
.ng-notice.info { border-color: var(--info-border); }
.ng-notice.info .ng-notice-ic { background: var(--ng-blue-50); color: var(--ng-blue-500); }
.ng-notice.error { border-color: var(--danger-border); }
.ng-notice.error .ng-notice-ic { background: var(--danger-bg); color: var(--danger); }
@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; 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; }

/* =============================================================================
   Home layout — navigation publique Delta Nation
   ============================================================================= */
.ng-home {
  background: var(--bg-page);
}

.ng-home-main {
  min-width: 0;
}

.ng-home-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(216, 220, 217, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-xs);
}

.ng-home-nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ng-home-nav-top {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.ng-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--fg-1);
  text-decoration: none;
}

.ng-home-brand:hover {
  color: var(--fg-1);
}

.ng-home-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--n-25);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.ng-home-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ng-home-nav-meta,
.ng-home-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ng-home-nav-meta {
  margin-left: auto;
}

.ng-home-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.ng-home-meta-link:hover {
  background: var(--n-50);
  color: var(--ng-green-700);
}

.ng-home-meta-link .lucide {
  width: 15px;
  height: 15px;
  color: var(--fg-4);
}

.ng-home-social {
  width: 34px;
  height: 34px;
  border-color: var(--border-subtle);
  background: var(--n-25);
}

.ng-home-social:hover {
  background: var(--ng-green-50);
  color: var(--ng-green-700);
  border-color: var(--ng-green-200);
}

.ng-home-social .lucide {
  width: 16px;
  height: 16px;
}

.ng-home-cta {
  margin-left: 4px;
}

.ng-home-menu-btn {
  display: none;
}

.ng-home-nav-links {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ng-home-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.ng-home-nav-link {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}

.ng-home-nav-link.active {
  background: var(--ng-green-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.ng-home-nav-link.active .chev-x {
  color: #fff;
}

.ng-home-dropdown {
  position: relative;
}

.ng-home-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: 238px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.ng-home-dropdown-menu .ng-user-item {
  text-decoration: none;
}

.ng-home-dropdown-menu .ng-user-item.active {
  background: var(--ng-green-50);
  color: var(--ng-green-700);
}

.ng-home-mobile-menu {
  display: none;
}

.ng-home-mobile-link {
  width: 100%;
  min-height: 38px;
  justify-content: space-between;
}

.ng-home-mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-subtle);
}

.ng-home-mobile-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ng-home .rotate-180 {
  transform: rotate(180deg);
}

/* =============================================================================
   Home main — sections publiques Delta Nation
   ============================================================================= */
.ng-home-main {
  background: var(--bg-page);
}

.ng-home-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ng-home-section {
  padding: 76px 0;
  background: var(--bg-page);
}

.ng-home-section.white {
  background: #fff;
}

.ng-home-section.dark {
  background: var(--ink);
  color: var(--fg-on-dark);
}

.ng-home-section.accent {
  background: var(--ng-orange-500);
  color: var(--ink);
}

.ng-home-section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.ng-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ng-green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ng-home-section.dark .ng-home-eyebrow {
  color: var(--ng-green-300);
}

.ng-home-section-title {
  margin: 0;
  color: var(--fg-1);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.ng-home-section-title .accent {
  color: var(--ng-orange-600);
}

.ng-home-section.dark .ng-home-section-title {
  color: #fff;
}

.ng-home-section.accent .ng-home-section-title {
  color: var(--ink);
}

.ng-home-section-lead {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1.7;
}

.ng-home-section.dark .ng-home-section-lead {
  color: rgba(238, 241, 239, 0.74);
}

.ng-home-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 116px));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.ng-home-hero-bg,
.ng-home-hero-bg::after {
  position: absolute;
  inset: 0;
}

.ng-home-hero-bg {
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.ng-home-hero-bg::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 22, 19, 0.92), rgba(18, 22, 19, 0.68) 52%, rgba(18, 22, 19, 0.38)),
    linear-gradient(0deg, rgba(18, 22, 19, 0.28), rgba(18, 22, 19, 0.28));
}

.ng-home-hero-content {
  width: min(860px, 100%);
  padding: 72px 0 84px;
}

.ng-home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 140, 0, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(255, 140, 0, 0.12);
  color: var(--ng-orange-200);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ng-home-hero-title {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: 66px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.ng-home-hero-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(238, 241, 239, 0.86);
  font-size: 22px;
  line-height: 1.65;
}

.ng-home-hero-actions,
.ng-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ng-home-grid {
  display: grid;
  gap: 18px;
}

.ng-home-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ng-home-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-home-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.ng-home-card-body {
  padding: 22px;
}

.ng-home-mission {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border-top: 4px solid var(--ng-green-500);
}

.ng-home-mission.orange {
  border-top-color: var(--ng-orange-500);
}

.ng-home-mission.teal {
  border-top-color: var(--ng-teal-500);
}

.ng-home-mission-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--ng-green-50);
  color: var(--ng-green-600);
}

.ng-home-mission.orange .ng-home-mission-icon {
  background: var(--ng-orange-50);
  color: var(--ng-orange-600);
}

.ng-home-mission.teal .ng-home-mission-icon {
  background: var(--ng-teal-50);
  color: var(--ng-teal-500);
}

.ng-home-mission-icon .lucide {
  width: 22px;
  height: 22px;
}

.ng-home-card-title {
  margin: 0;
  color: var(--fg-1);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.ng-home-card-text {
  margin: 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.65;
}

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

.ng-home-list li {
  display: flex;
  gap: 8px;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.45;
}

.ng-home-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ng-green-500);
  flex-shrink: 0;
}

.ng-home-mission.orange .ng-home-list li::before {
  background: var(--ng-orange-500);
}

.ng-home-mission.teal .ng-home-list li::before {
  background: var(--ng-teal-500);
}

.ng-home-total {
  max-width: 620px;
  margin: 0 auto 26px;
  padding: 24px;
  text-align: center;
  background: var(--ng-green-600);
  border: 1px solid var(--ng-green-700);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.ng-home-total-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ng-home-total-value {
  margin-top: 10px;
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

.ng-home-chart-wrap {
  min-height: 310px;
}

.ng-home-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.ng-home-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-2);
  font-size: 13px;
}

.ng-home-legend-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ng-home-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ng-home-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ng-home-impact-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-xs);
}

.ng-home-impact-value {
  margin: 0 0 8px;
  color: var(--ng-orange-400);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.ng-home-impact-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.ng-home-impact-sub {
  margin: 6px 0 0;
  color: rgba(238, 241, 239, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.ng-home-post-card {
  height: 100%;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.ng-home-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ng-home-post-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n-50);
}

.ng-home-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ng-home-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ng-home-post-title {
  margin: 0;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ng-home-post-title a {
  color: inherit;
  text-decoration: none;
}

.ng-home-post-title a:hover {
  color: var(--ng-green-700);
}

.ng-home-post-excerpt {
  margin: 10px 0 18px;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

.ng-home-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ng-home-cta-panel .ng-home-section-head {
  margin: 0;
  text-align: left;
}

.ng-home-payment-note {
  margin: 14px 0 0;
  color: rgba(18, 22, 19, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.ng-home-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.ng-home-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.ng-home-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ng-home-contact-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--ng-green-50);
  color: var(--ng-green-600);
  flex-shrink: 0;
}

.ng-home-contact-icon .lucide {
  width: 17px;
  height: 17px;
}

.ng-home-contact-label {
  margin: 0 0 3px;
  color: var(--fg-1);
  font-size: 13.5px;
  font-weight: 800;
}

.ng-home-contact-value {
  margin: 0;
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.ng-home-map {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--n-50);
}

.ng-home-map iframe {
  display: block;
}

/* Modal */
.ng-modal { position: fixed; inset: 0; z-index: 100; overflow-y: auto; }
.ng-modal-backdrop { position: fixed; inset: 0; background: rgba(18,22,19,0.46); }
.ng-modal-shell { position: relative; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ng-modal-card { width: min(560px, 100%); overflow: hidden; }

/* =============================================================================
   Pages d'erreurs
   ============================================================================= */
.ng-error-body {
  background:
    linear-gradient(180deg, rgba(18, 121, 20, 0.075) 0%, rgba(250, 251, 250, 0) 340px),
    var(--bg-page);
}

.ng-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
}

.ng-error-shell {
  width: min(100%, 980px);
}

.ng-error-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ng-error-brandlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ng-error-logo {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.ng-error-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ng-error-brandtext {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.22;
}

.ng-error-brandtext strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--fg-1);
}

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

.ng-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 11px;
  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;
}

.ng-error-badge .lucide {
  width: 15px;
  height: 15px;
}

.ng-error-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.ng-error-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 32px;
  background: var(--n-25);
  border-right: 1px solid var(--border-subtle);
}

.ng-error-mark {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ng-green-200);
  border-radius: 18px;
  background: var(--ng-green-50);
  color: var(--ng-green-600);
}

.ng-error-mark .lucide {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}

.ng-error-code {
  color: var(--ng-green-700);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.ng-error-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 44px 42px 42px 0;
}

.ng-error-content .eyebrow {
  margin: 0 0 12px;
}

.ng-error-content h1 {
  max-width: 560px;
  color: var(--fg-1);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.ng-error-message {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.68;
}

.ng-error-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ng-error-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ng-error-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--n-25);
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 700;
}

.ng-error-meta .lucide {
  width: 14px;
  height: 14px;
  color: var(--fg-4);
}

.ng-error-meta strong {
  color: var(--fg-1);
}

.ng-error-panel.warning .ng-error-mark {
  border-color: var(--ng-orange-200);
  background: var(--ng-orange-50);
  color: var(--ng-orange-600);
}

.ng-error-panel.warning .ng-error-code {
  color: var(--ng-orange-700);
}

.ng-error-panel.danger .ng-error-mark {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger);
}

.ng-error-panel.danger .ng-error-code {
  color: var(--danger);
}

/* =============================================================================
   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-menu-btn i { font-size: 16px; }
.ng-scrim { display: none; }

@media (max-width: 860px) {
  .ng-home-nav-inner { width: min(100% - 24px, 1180px); }
  .ng-home-container { width: min(100% - 24px, 1180px); }
  .ng-home-section { padding: 54px 0; }
  .ng-home-section-head { margin-bottom: 24px; }
  .ng-home-section-title { font-size: 28px; }
  .ng-home-hero { min-height: auto; }
  .ng-home-hero-content { padding: 64px 0 70px; }
  .ng-home-hero-title { font-size: 48px; }
  .ng-home-hero-lead { font-size: 18px; }
  .ng-home-total-value { font-size: 42px; }
  .ng-home-hero-bg::after {
    background:
      linear-gradient(90deg, rgba(18, 22, 19, 0.92), rgba(18, 22, 19, 0.70)),
      linear-gradient(0deg, rgba(18, 22, 19, 0.26), rgba(18, 22, 19, 0.26));
  }
  .ng-home-grid.three,
  .ng-home-grid.two,
  .ng-home-impact-grid,
  .ng-home-contact-grid { grid-template-columns: 1fr; }
  .ng-home-cta-panel { flex-direction: column; align-items: flex-start; }
  .ng-home-cta-panel .ng-home-section-head { text-align: left; }
  .ng-home-cta-actions { margin-top: 0; }
  .ng-home-nav-top { min-height: 62px; border-bottom: 0; }
  .ng-home-brand-mark { width: 42px; height: 42px; border-radius: 10px; }
  .ng-home-brand-logo { width: 31px; height: 31px; }
  .ng-home-nav-meta,
  .ng-home-nav-links { display: none; }
  .ng-home-menu-btn { display: inline-flex; margin-left: auto; }
  .ng-home-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 14px;
    border-top: 1px solid var(--border-subtle);
  }

  .ng-error-page { align-items: flex-start; padding: 24px 14px; }
  .ng-error-brandbar { align-items: flex-start; }
  .ng-error-panel { grid-template-columns: 1fr; gap: 0; }
  .ng-error-visual {
    flex-direction: row;
    align-items: center;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .ng-error-content { padding: 24px; }
  .ng-error-content h1 { font-size: 28px; }
  .ng-error-code { font-size: 62px; letter-spacing: 0; }
  .ng-error-mark { width: 58px; height: 58px; border-radius: 14px; }
  .ng-error-mark .lucide { width: 28px; height: 28px; }

  /* 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; }

  /* 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; }
  .ng-index-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ng-index-titleline { flex-direction: column; align-items: flex-start; gap: 3px; }
  .ng-index .ng-page-sub { white-space: normal; }
  .ng-index-actions { justify-content: flex-start; }
  .ng-index-actions .ng-btn { flex: 1 1 auto; }
  .ng-index .ng-filter-head { padding: 13px 14px; }
  .ng-index .ng-filter-body { padding: 14px; }
  .ng-contribution-table-desktop { display: none; }
  .ng-contribution-mobile-list { display: flex; }

  /* Grilles → empilées */
  .ng-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ng-stats-model-grid { grid-template-columns: repeat(2, 1fr); }
  .ng-recent-grid { grid-template-columns: 1fr; }
  .ng-chart-grid,
  .ng-breakdown-grid,
  .ng-stat-hero-grid { grid-template-columns: 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; }
  .ng-profile-hero,
  .ng-profile-grid,
  .ng-user-actions-grid,
  .ng-setup-grid { grid-template-columns: 1fr; }
  .ng-user-action-card { grid-template-columns: 40px minmax(0, 1fr); }
  .ng-user-action-card form { grid-column: 1 / -1; }
  .ng-user-action-card .ng-btn { width: 100%; }
  .ng-profile-hero { padding: 18px; }
  .ng-profile-identity { align-items: flex-start; }
  .ng-profile-actions { justify-content: flex-start; }

  /* 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-home-section { padding: 44px 0; }
  .ng-home-section-title { font-size: 26px; }
  .ng-home-hero-content { padding: 50px 0 58px; }
  .ng-home-hero-title { font-size: 36px; }
  .ng-home-hero-lead { font-size: 17px; }
  .ng-home-total-value { font-size: 32px; }
  .ng-home-hero-actions .ng-btn,
  .ng-home-cta-actions .ng-btn { width: 100%; }
  .ng-home-card-body,
  .ng-home-mission { padding: 18px; }
  .ng-home-total { padding: 20px 16px; }
  .ng-home-post-meta { align-items: flex-start; flex-direction: column; }
  .ng-error-brandbar { flex-direction: column; }
  .ng-error-badge { align-self: flex-start; }
  .ng-error-brandtext span { font-size: 11.5px; }
  .ng-error-visual { padding: 20px; }
  .ng-error-content { padding: 22px 20px; }
  .ng-error-content h1 { font-size: 25px; }
  .ng-error-message { font-size: 14.5px; }
  .ng-error-actions { align-items: stretch; flex-direction: column; }
  .ng-error-actions .ng-btn { width: 100%; }
  .ng-error-meta { flex-direction: column; }
  .ng-error-meta span { width: 100%; }
  .ng-kpi-grid { grid-template-columns: 1fr; }
  .ng-stats-model-grid { grid-template-columns: 1fr; }
  .ng-counters { grid-template-columns: 1fr; }
  .ng-counters.two { grid-template-columns: 1fr; }
  .ng-profile-identity { flex-direction: column; }
  .ng-profile-name { font-size: 24px; }
  .ng-profile-actions .ng-btn,
  .ng-security-actions .ng-btn,
  .ng-form-actions .ng-btn { width: 100%; justify-content: center; }
  .ng-form-actions form { width: 100%; }
  .ng-import-info { grid-template-columns: 1fr; padding: 16px; }
  .ng-import-form { padding: 16px; }
  .ng-pagination { flex-direction: column; gap: 10px; align-items: stretch; }
  .ng-pagination .nav { justify-content: space-between; }
}
/*
 * 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.
 *


 */
