@font-face {
  font-family: Inter;
  src: url('assets/tarifs-inter.woff2');
}
@font-face {
  font-family: Montserrat;
  src: url('assets/tarifs-montserrat.woff2');
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
:root {
  --bg: #080909;
  --panel: #111313;
  --line: #262929;
  --muted: #939a98;
  --accent: #c0786f;
  --white: #f3f1ed;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font:
    14px Inter,
    sans-serif;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 92px;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #050606;
  border-right: 1px solid var(--line);
  z-index: 5;
}
.brand {
  display: block;
  width: 65px;
  margin: 30px 0 48px;
}
.brand img {
  width: 100%;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}
.icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #89928e;
  background: none;
  border: 1px solid transparent;
  text-decoration: none;
}
.icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon:hover {
  color: #e6c2bc;
  background: #171312;
}
.icon.active {
  color: #e0a399;
  background: #2b1b19;
  border-color: #684039;
}
.icon.active:before {
  content: '';
  position: absolute;
  left: -24px;
  height: 20px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
[data-tip]:after {
  content: attr(data-tip);
  pointer-events: none;
  position: absolute;
  left: 58px;
  top: 9px;
  background: #242625;
  color: #f4f1ec;
  border: 1px solid #414441;
  border-radius: 7px;
  padding: 7px 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-5px);
  transition: 0.18s;
  font-size: 12px;
  box-shadow: 0 10px 30px #0008;
}
[data-tip]:hover:after,
[data-tip]:focus-visible:after {
  opacity: 1;
  transform: translateX(0);
}
.help {
  margin-top: auto;
  font-family: Georgia;
  font-size: 20px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #545a54;
  border-radius: 50%;
  font-size: 10px;
  margin: 18px 0 25px;
  color: #d1d6ce;
}
.shell {
  margin-left: 92px;
}
header {
  height: 80px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #c4c9c6;
}
.breadcrumb span {
  margin: 0 15px;
  color: #555e59;
}
.top-right {
  display: flex;
  gap: 26px;
  align-items: center;
}
.fiction {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #c9a69f;
  border: 1px solid #4a302d;
  border-radius: 20px;
  padding: 6px 11px;
}
.profile {
  font-size: 12px;
  color: #b8beba;
}
.profile-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7b7a0;
  margin-left: 8px;
}
main {
  max-width: 1580px;
  margin: auto;
  padding: 40px 42px 20px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.22em;
  font-weight: 600;
}
h1,
h2,
h3,
.value {
  font-family: Montserrat, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.2px;
  margin: 12px 0;
}
p {
  color: var(--muted);
  line-height: 1.7;
}
.heading p {
  font-size: 12px;
  margin: 0;
}
.periods {
  display: flex;
  background: #111313;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 10px;
  gap: 3px;
}
.periods button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 9px 14px;
  border-radius: 6px;
}
.periods button.selected {
  color: #f6e6e1;
  background: #3b2521;
}
.context {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 20px;
  color: #d8dcd7;
  font-size: 11px;
}
.context-line {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.context label {
  color: #78827a;
}
.context select {
  border: 0;
  background: #080909;
  color: #ddd;
  padding: 4px 6px;
  margin-left: 8px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.card {
  background: linear-gradient(135deg, #141616, #101212);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
}
.kpi {
  position: relative;
  min-height: 143px;
}
.kpi:first-child {
  background:
    radial-gradient(ellipse at top right, #40231f55, transparent 75%), #131313;
  border-color: #563932;
}
.label {
  color: #a6ada8;
  font-size: 11px;
}
.value {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 18px 0 12px;
  font-variant-numeric: tabular-nums;
}
.delta {
  font-size: 10px;
  color: #a1b79c;
}
.delta span {
  color: #737e75;
  margin-left: 6px;
}
.info {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid #4a504b;
  background: none;
  color: #9ba39d;
  display: inline-grid;
  place-items: center;
  font: italic 11px Georgia;
}
.kpi .info {
  position: absolute;
  right: 18px;
  top: 19px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 18px;
  margin-top: 19px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.card-title h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.3px;
}
.micro {
  color: #818b83;
  font-size: 10px;
}
.legend {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  color: #a1aaa3;
  margin-top: 17px;
}
.legend i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.legend .previous {
  background: #68716b;
}
.chart {
  height: 225px;
  position: relative;
  margin-top: 15px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart text {
  fill: #6f7c72;
  font: 9px Inter;
}
.chart line {
  stroke: #292f2a;
  stroke-dasharray: 3 6;
}
.chart .curve {
  fill: none;
  stroke: #c0786f;
  stroke-width: 2.5;
}
.chart .old {
  fill: none;
  stroke: #657068;
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
}
.chart .area {
  fill: url(#shade);
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  display: none;
  background: #252b26;
  border: 1px solid #536055;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  z-index: 2;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 185px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#c0786f 0 66%, #8f9e8a 66% 90%, #535e56 90%);
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(-90deg);
}
.donut:before {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #121414;
}
.donut-center {
  z-index: 1;
  text-align: center;
  transform: rotate(90deg);
}
.donut-center strong {
  font: 600 22px Montserrat;
  display: block;
}
.donut-center span {
  font-size: 9px;
  color: #8e9b91;
}
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #252b26;
}
.source-row:last-child {
  border: 0;
}
.source-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 9px;
}
.source-row strong {
  font-weight: 500;
  color: #e8e8de;
}
.source-row small {
  font-size: 10px;
  color: #808c81;
  margin-left: 12px;
}
.bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.text-link {
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 11px;
  white-space: nowrap;
}
th {
  color: #79857c;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  font-weight: 500;
  padding: 0 12px 13px;
}
td {
  padding: 14px 12px;
  border-top: 1px solid #252a26;
  color: #c4cdc5;
}
th:last-child,
td:last-child {
  text-align: right;
}
td strong {
  font-weight: 500;
  color: #eceee5;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.initial {
  width: 29px;
  height: 29px;
  border: 1px solid #414c42;
  background: #1a211b;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 9px;
  color: #b3c0b0;
}
.person small {
  display: block;
  font-size: 9px;
  color: #737e76;
  margin-top: 4px;
}
.bar-row {
  margin-top: 21px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a8b3a9;
}
.bar-label strong {
  color: #e6e9dd;
  font-weight: 500;
}
.bar {
  height: 5px;
  background: #252c26;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #c0786f;
  border-radius: 5px;
}
.total-line {
  border-top: 1px solid #30372f;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 11px;
  color: #95a18f;
}
.total-line strong {
  color: #e8eddf;
}
.section-panel {
  margin-top: 18px;
}
.chip {
  border: 1px solid #4e574a;
  color: #aabb9e;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search {
  background: #151a16;
  color: #e9ede2;
  border: 1px solid #3a4439;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  width: 230px;
}
.primary {
  background: #a65f56;
  border: 1px solid #ce8b7e;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #6c786c;
  padding: 26px 0 0;
}
footer span {
  letter-spacing: 0;
  color: #566257;
}
dialog {
  background: #141817;
  color: #ecefe7;
  border: 1px solid #4f5149;
  border-radius: 18px;
  padding: 32px;
  max-width: 460px;
  width: calc(100% - 40px);
  box-shadow: 0 35px 100px #000a;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 20px;
  margin-top: 18px;
}
dialog p {
  text-align: justify;
  font-size: 13px;
}
.close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid #444c43;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  color: #ccc;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.close-modal {
  float: right;
  margin-top: 12px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 55px;
  }
  .chart {
    height: 270px;
  }
  .kpi {
    min-height: 164px;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 25px;
  }
  main {
    padding: 30px 25px;
  }
  .value {
    font-size: 22px;
  }
  .card {
    padding: 18px;
  }
  .grid-main,
  .bottom {
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
  }
}
@media (max-width: 800px) {
  aside {
    width: 66px;
  }
  .brand {
    width: 48px;
    margin-bottom: 30px;
  }
  .shell {
    margin-left: 66px;
  }
  .icon.active:before {
    left: -10px;
  }
  header {
    height: 65px;
    padding: 0 17px;
  }
  .profile {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-right {
    gap: 8px;
  }
  main {
    padding: 26px 17px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main,
  .bottom {
    grid-template-columns: 1fr;
  }
  .periods {
    align-self: flex-start;
  }
  .value {
    font-size: 25px;
  }
  footer span {
    display: none;
  }
  .chart {
    height: 230px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .kpi {
    min-height: 138px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

nav {
  margin-top: 116px;
}
@media (max-width: 800px) {
  nav {
    margin-top: 96px;
  }
}

.drivers-preview .card-title .text-link {
  margin-right: 12px;
}

.drivers-preview th:first-child,
.drivers-preview td:first-child {
  padding-left: 0;
}
.company-list {
  margin-top: 20px;
}
.company-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  padding: 18px;
}
.company-card summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.company-card summary::-webkit-details-marker {
  display: none;
}
.company-card summary > span:first-child {
  flex: 1;
}
.company-card summary > span:nth-child(2) {
  text-align: right;
}
.company-card strong {
  font-weight: 500;
}
.company-card small,
.expense-meta {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.chevron {
  color: var(--accent);
}
.company-card[open] .chevron {
  transform: rotate(180deg);
}
.expense-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.secondary {
  background: #191d1b;
  border: 1px solid #414941;
  border-radius: 8px;
  padding: 10px 18px;
  color: #d5dbd5;
  font: 11px Inter;
  cursor: pointer;
}
#editor {
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
}
#editor h2 {
  margin-bottom: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
#editor label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #b6c0b6;
  font-size: 12px;
}
#editor input,
#editor select {
  width: 100%;
  padding: 12px;
  border: 1px solid #3c463e;
  border-radius: 8px;
  background: #0d110e;
  color: var(--white);
  font: 13px Inter;
  min-width: 0;
}
#editor input:focus,
#editor select:focus {
  outline: 1px solid var(--accent);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.text-button {
  border: 0;
  background: none;
  text-align: right;
  color: var(--accent);
  font: 11px Inter;
  cursor: pointer;
}
.form-error {
  color: #df9b90;
  font-size: 12px;
}
.supplier-list {
  margin-bottom: 25px;
  max-height: 220px;
  overflow: auto;
}
.company-card[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .company-card {
    padding: 12px;
  }
  .company-card summary {
    gap: 10px;
    font-size: 12px;
  }
  .expense-actions {
    flex-wrap: wrap;
  }
  .search {
    max-width: 55%;
  }
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.row-actions .text-button {
  padding: 5px 0;
}
.row-actions [data-delete-expense] {
  color: #aaa59e;
}
.row-actions button:hover {
  text-decoration: underline;
}

.row-actions .text-button {
  width: 32px;
  height: 32px;
  padding: 6px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
}
.row-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-actions .text-button:hover {
  background: #2b1b19;
  border-color: #684039;
  text-decoration: none;
}
.row-actions [data-delete-expense]:hover {
  color: var(--accent);
}

#editor.dashboard-help {
  max-width: 670px;
}
.help-intro {
  font-size: 13px;
  text-align: justify;
  margin-bottom: 24px;
}
.help-sections details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  background: #101412;
}
.help-sections summary {
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font: 600 13px Montserrat;
}
.help-sections summary::-webkit-details-marker {
  display: none;
}
.help-sections summary span {
  color: var(--accent);
}
.help-sections details[open] summary span {
  transform: rotate(180deg);
}
.help-sections dl {
  padding: 0 18px 8px;
  margin: 0;
}
.help-sections dt {
  font: 600 12px Montserrat;
  color: var(--accent);
  margin: 16px 0 7px;
}
.help-sections dd {
  font: 12px/1.75 Inter;
  color: #b7c0b9;
  text-align: justify;
  margin: 0 0 17px;
}
.help-sections details[open] summary {
  border-bottom: 1px solid var(--line);
}

#editor.dashboard-help {
  max-width: 790px;
  padding: 30px;
  background:
    radial-gradient(ellipse at top left, #38201b55, transparent 48%), #111514;
}
.dashboard-help h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 10px !important;
}
.dashboard-help .help-intro {
  margin: 0 0 25px;
  color: #9ea89f;
}
.help-sections details {
  background: #0d110f;
  border-color: #303931;
}
.help-sections summary {
  padding: 17px 18px;
  align-items: center;
}
.help-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8ede6 !important;
}
.help-step {
  font: 10px Inter;
  color: #d29a8f !important;
  border: 1px solid #63433b;
  background: #2d211d;
  border-radius: 8px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  transform: none !important;
}
.help-sections details[open] summary span {
  transform: none;
}
.help-sections details[open] summary .help-arrow {
  transform: rotate(180deg);
}
.help-card-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.help-card {
  padding: 17px;
  background: linear-gradient(135deg, #1a201c, #151a17);
  border: 1px solid #303a32;
  border-radius: 12px;
}
.help-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.help-card-heading h3 {
  margin: 0;
  color: #e9ece4;
  font-size: 12px;
  line-height: 1.5;
}
.help-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #3c2923;
  color: #dfa99c;
  font: 16px Inter;
}
.help-card p {
  font: 12px/1.8 Inter;
  color: #aeb9af;
  text-align: justify;
  margin: 0;
}
.help-card-wide {
  grid-column: 1/-1;
  background: linear-gradient(120deg, #30221e, #191e19);
  border-color: #61433a;
}
.help-formula {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.help-formula span {
  padding: 9px 12px;
  background: #101511;
  border: 1px solid #4a5147;
  border-radius: 8px;
  color: #e2e9dc;
  font-size: 11px;
}
.help-formula b {
  color: #d99b8b;
  font-size: 18px;
  font-weight: 400;
}
.dashboard-help .form-actions {
  margin-top: 20px;
}
@media (max-width: 600px) {
  #editor.dashboard-help {
    padding: 23px 17px;
  }
  .help-card-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .help-card-wide {
    grid-column: auto;
  }
  .help-sections summary {
    padding: 13px;
    font-size: 12px;
  }
  .help-formula {
    gap: 7px;
  }
  .help-formula span {
    padding: 8px;
  }
}
.help-card-grid > .help-card {
  order: 1;
}
.help-card-grid > .help-card-wide {
  order: 2;
}

.account-anchor {
  position: relative;
}
.account-anchor .avatar {
  background: #141915;
  cursor: pointer;
  font-family: Inter;
}
.account-anchor .avatar:hover,
.account-anchor .avatar[aria-expanded='true'] {
  border-color: var(--accent);
  color: #e6b3a8;
  background: #2a1d19;
}
.account-menu {
  position: absolute;
  bottom: 22px;
  left: 58px;
  width: 280px;
  background: linear-gradient(130deg, #20231f, #111612);
  border: 1px solid #454d42;
  border-radius: 16px;
  box-shadow: 0 18px 65px #000b;
  overflow: hidden;
  z-index: 20;
}
.account-menu[hidden] {
  display: none;
}
.account-identity {
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #333b30;
}
.account-monogram,
.profile-monogram {
  display: grid;
  place-items: center;
  background: #3b2821;
  border: 1px solid #68483c;
  color: #e0ac9b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 12px;
}
.account-identity strong {
  display: block;
  font: 600 12px Montserrat;
}
.account-identity small {
  display: block;
  font-size: 10px;
  color: #8f9c8d;
  margin-top: 6px;
}
.account-menu-actions {
  padding: 9px;
}
.account-menu-actions button {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e5e9df;
  text-align: left;
  padding: 13px 12px;
  border-radius: 9px;
  font: 12px Inter;
}
.account-menu-actions button:hover {
  background: #30392d;
}
.account-menu-actions button span:first-child {
  width: 20px;
  color: #c8907f;
  font-size: 19px;
  text-align: center;
}
.account-menu-actions button span:last-child:not(:first-child) {
  margin-left: auto;
  color: #7e8b77;
  font-size: 12px;
}
.account-menu-actions .logout {
  color: #dba493;
  border-top: 1px solid #333b30;
  border-radius: 0 0 9px 9px;
  margin-top: 6px;
  padding-top: 18px;
}
.profile-preview {
  text-align: center;
  margin: 10px 0 25px;
}
.profile-monogram {
  width: 64px;
  height: 64px;
  margin: auto;
  font-size: 19px;
}
.profile-preview h3 {
  font-size: 17px;
  margin: 16px 0;
}
.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-fields > div,
.settings-card {
  padding: 18px;
  background: #111710;
  border: 1px solid #303c2e;
  border-radius: 11px;
}
.profile-fields small {
  display: block;
  color: #899780;
  font-size: 11px;
  margin-bottom: 9px;
}
.profile-fields strong {
  font-weight: 500;
  font-size: 13px;
}
.settings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}
.settings-card h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.settings-card p {
  font-size: 12px;
  text-align: justify;
  margin: 0;
}
@media (max-width: 600px) {
  .account-menu {
    left: 45px;
    width: 260px;
  }
}

:root {
  --heading-font: Montserrat;
  --body-font: Inter;
}
body {
  font-family: var(--body-font), sans-serif;
}
h1,
h2,
h3,
.value {
  font-family: var(--heading-font), sans-serif;
}
.deep-black {
  --bg: #000;
  --panel: #070907;
}
.deep-black .card {
  background: #070907;
}
#editor input[type='color'] {
  height: 43px;
  padding: 5px;
  cursor: pointer;
}
.settings-demo-note {
  font-size: 11px;
  text-align: justify;
  margin-top: 22px;
  color: #859280;
}

.profile-password {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #b6c0b6;
  font-size: 12px;
}
.profile-password button {
  height: 43px;
}
#editor.login-preview {
  max-width: 500px;
  padding: 34px;
  background:
    radial-gradient(ellipse at top, #42251f66, transparent 65%), #101512;
}
.login-preview h2 {
  font-size: 22px;
  margin: 23px 0 10px;
}
.login-mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font: 600 25px Montserrat;
  letter-spacing: 3px;
  margin-top: 22px;
}
.login-mark span {
  font: 11px Inter;
  color: #b5887a;
  letter-spacing: 1px;
}
.login-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #090e0b;
  border: 1px solid #303b30;
  border-radius: 11px;
  margin: 24px 0;
}
.login-tabs button {
  flex: 1;
  padding: 11px 5px;
  border: 0;
  background: none;
  color: #879580;
  border-radius: 7px;
  font: 11px Inter;
}
.login-tabs .selected {
  background: #3b2720;
  color: #f0d1c4;
}
.login-submit {
  width: 100%;
  margin-top: 23px;
  padding: 13px;
}
.login-description {
  font-size: 12px;
  text-align: justify;
}
.login-subtitle {
  text-align: center;
  font-size: 16px;
}
.passkey-illustration {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #30241e;
  color: #d9a791;
  font-size: 35px;
  margin: 30px auto 20px;
}

#editor label[hidden],
#loginStepHint[hidden] {
  display: none;
}
.login-alternatives {
  margin-top: 20px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #788674;
  font-size: 10px;
  margin-bottom: 18px;
}
.login-divider span {
  height: 1px;
  background: #303b30;
  flex: 1;
}
.login-passkey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
}
.login-passkey svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#editor.login-preview h2 {
  margin-top: 25px;
}
#editor input:disabled {
  opacity: 0.5;
}

.reset-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #37271f;
  border: 1px solid #614439;
  display: grid;
  place-items: center;
  color: #dca18e;
  font-size: 25px;
  margin: 22px 0;
}
.reset-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reset-address {
  padding: 17px;
  background: #0d130e;
  border: 1px solid #34412f;
  border-radius: 11px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.reset-address span {
  display: block;
  color: #8b9a80;
  font-size: 11px;
  margin-bottom: 9px;
}
.reset-address strong {
  font-size: 13px;
  font-weight: 500;
  color: #e4eadf;
}

.forgot-password {
  display: block;
  margin: 15px 0 0 auto;
  padding: 3px 0;
  font-size: 11px;
}
.forgot-password:hover {
  text-decoration: underline;
}
.forgot-password + .login-submit {
  margin-top: 18px;
}

.metric-grid,
.document-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.mini-metric {
  padding: 20px;
  border: 1px solid #30382f;
  background: #101610;
  border-radius: 12px;
}
.mini-metric > span {
  display: block;
  font-size: 11px;
  color: #a0ad99;
}
.mini-metric > strong {
  display: block;
  font: 600 23px Montserrat;
  margin: 15px 0 10px;
  color: #e9eddf;
}
.mini-metric > small {
  font-size: 10px;
  color: #798b70;
  line-height: 1.6;
}
.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.follow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #3c3c30;
  background: #1b1b14;
  border-radius: 12px;
  text-decoration: none;
  color: #d9ddce;
}
.follow-item strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.follow-item small {
  display: block;
  color: #a39172;
  font-size: 10px;
  margin-top: 7px;
}
.follow-item > span:last-child {
  margin-left: auto;
  color: var(--accent);
}
.follow-symbol {
  color: #d0a084;
  font-size: 20px;
}
.amber {
  border-color: #71603f;
  color: #cdb077;
}
.document-filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.document-filters label {
  font-size: 11px;
  color: #8d9d82;
  display: flex;
  gap: 9px;
  align-items: center;
}
.document-filters select {
  background: #121a11;
  border: 1px solid #384431;
  color: #dce3d2;
  padding: 10px;
  border-radius: 8px;
}
.document-kpis {
  margin-top: 0;
}
.table-wrap tr[hidden],
#documentEmpty[hidden] {
  display: none;
}
nav {
  gap: 10px;
  margin-top: 95px;
}
@media (max-height: 760px) {
  nav {
    margin-top: 25px;
    gap: 4px;
  }
  .avatar {
    margin: 10px 0 16px;
  }
}
@media (max-width: 800px) {
  .metric-grid,
  .document-kpis,
  .follow-grid {
    grid-template-columns: 1fr;
  }
  .document-filters .search {
    max-width: 100%;
    width: 100%;
  }
  nav {
    margin-top: 40px;
    gap: 6px;
  }
}
[data-document-row] .row-actions {
  align-items: center;
}
[data-document-row] .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  line-height: 1.2;
  text-align: center;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Colonnes constantes : état, consultation, téléchargement, modification, suppression. */
[data-document-row] .row-actions {
  display: grid;
  grid-template-columns: 100px repeat(4, 32px);
  gap: 14px;
  justify-content: end;
  align-items: center;
}
[data-document-row] .row-actions .chip {
  justify-self: center;
}
[data-document-row] [data-view-document] {
  grid-column: 2;
}
[data-document-row] [data-download-document] {
  grid-column: 3;
}
[data-document-row] [data-edit-document] {
  grid-column: 4;
}
[data-document-row] [data-delete-document] {
  grid-column: 5;
}
[data-document-row] .row-actions > * {
  grid-row: 1;
}
[data-document-row] .row-actions .chip {
  grid-column: 1;
}

.document-file-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  font:
    13px/1.7 Inter,
    sans-serif;
}

.settlement-shortcut {
  cursor: pointer;
}
.settlement-shortcut:hover td {
  background: #211916;
}
.settlement-shortcut:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.settlement-shortcut button {
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.chip.status-red {
  color: #f19a98;
  background: #451f24;
  border-color: #824047;
}
.chip.status-orange {
  color: #f3c28a;
  background: #3c2b1a;
  border-color: #7e5933;
}
.chip.status-green {
  color: #a2d7b3;
  background: #1d3528;
  border-color: #3f7152;
}

.driver-shortcut {
  cursor: pointer;
}
.driver-shortcut:hover td {
  background: #211916;
}
.driver-shortcut:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.driver-profile-company {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.driver-profile-company h3 {
  margin: 6px 0;
}
.driver-profile-company small {
  color: #a9aaa5;
}

.flow-shortcut {
  cursor: pointer;
}
.flow-shortcut:hover td {
  background: #211916;
}
.flow-shortcut:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.flow-shortcut a {
  text-decoration: none;
}

.supplier-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 18px;
  border: 1px solid #33352f;
  border-radius: 12px;
  background: #111510;
  color: var(--text);
  cursor: pointer;
  margin: 10px 0;
  font: inherit;
}
.supplier-card small {
  display: block;
  color: #a6a69e;
  margin-top: 7px;
}
.supplier-card:hover {
  border-color: var(--accent);
  background: #231a18;
}
#supplierProfile textarea {
  background: #111510;
  color: #eee;
  border: 1px solid #383a33;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
#supplierProfile h3 {
  margin: 20px 0 0;
}

.supplier-row {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #292d26;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.supplier-row:hover {
  background: #211916;
}
.supplier-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Défilement harmonisé : pages, tableaux, formulaires et fenêtres. */
:root {
  --scrollbar-track: #10130f;
  --scrollbar-thumb: #81534e;
  --scrollbar-hover: #c0786f;
  color-scheme: dark;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}
::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
}

.documents-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.documents-menu {
  position: sticky;
  top: 24px;
  padding: 20px 12px;
  background: #10140f;
  border: 1px solid #272c24;
  border-radius: 18px;
}
.documents-menu .eyebrow {
  padding: 0 10px;
  margin-bottom: 16px;
}
.documents-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b7bab1;
  text-align: left;
  font:
    12px/1.5 Inter,
    sans-serif;
  cursor: pointer;
}
.documents-menu button:hover {
  background: #211916;
  color: #eee;
}
.documents-menu button[aria-current] {
  color: #edc0ba;
  background: #2a1d1b;
  border-color: #67433d;
}
.document-count {
  font-size: 11px;
  min-width: 22px;
  text-align: center;
  border-radius: 6px;
  background: #ffffff08;
  padding: 2px 4px;
}
.documents-sections {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.document-section {
  scroll-margin-top: 24px;
  min-width: 0;
}
.document-section .card-title {
  gap: 16px;
  align-items: center;
}
.document-section .card-title h2 {
  line-height: 1.6;
  max-width: 60%;
}
.document-section .primary {
  white-space: nowrap;
  flex-shrink: 0;
}
.document-section table {
  min-width: 650px;
}
.document-section .row-actions {
  gap: 7px;
}
.document-section .document-filters {
  flex-wrap: wrap;
}
.documents-menu button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 1050px) {
  .documents-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .document-section .card-title {
    flex-wrap: wrap;
  }
  .document-section .card-title h2 {
    max-width: 100%;
  }
}
@media (max-width: 760px) {
  .documents-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .documents-menu {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
  }
  .documents-menu .eyebrow {
    display: none;
  }
  .documents-menu button {
    width: auto;
    flex-shrink: 0;
  }
  .document-section .card-title h2 {
    max-width: 100%;
  }
}
.documents-layout {
  margin-top: 24px;
}
.documents-sections {
  padding-bottom: 75vh;
}

.assistant-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #503632;
  border-radius: 18px;
  padding: 23px;
  background: linear-gradient(115deg, #211714, #10140f 75%);
  margin-bottom: 24px;
}
.assistant-emblem {
  font-size: 28px;
  color: #c0786f;
}
.assistant-welcome-copy {
  flex: 1;
}
.assistant-welcome h2 {
  font:
    500 21px Montserrat,
    sans-serif;
  margin: 8px 0;
}
.assistant-welcome p {
  font-size: 13px;
  line-height: 1.7;
  color: #b6b6ac;
  margin: 0;
}
.assistant-welcome strong {
  color: #e7ddd7;
  font-weight: 500;
}
.assistant-welcome .secondary {
  white-space: nowrap;
}
.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #251b18;
  color: #efd8d1;
  border: 1px solid #81534e;
  border-radius: 30px;
  padding: 13px 18px;
  box-shadow: 0 8px 30px #0005;
  font:
    12px Inter,
    sans-serif;
  cursor: pointer;
}
.assistant-launcher span {
  color: #c0786f;
  font-size: 18px;
}
.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 82px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: min(640px, calc(100dvh - 115px));
  z-index: 26;
  background: #101410;
  border: 1px solid #5c403a;
  border-radius: 20px;
  box-shadow: 0 20px 75px #0008;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.assistant-panel[hidden] {
  display: none;
}
.assistant-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 12px;
}
.assistant-panel-header h2 {
  font:
    500 18px Montserrat,
    sans-serif;
  margin: 6px 0;
}
.assistant-close {
  border: 1px solid #3d4037;
  border-radius: 50%;
  background: transparent;
  color: #ccc;
  width: 30px;
  height: 30px;
  font-size: 21px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.assistant-demo {
  font:
    10px/1.6 Inter,
    sans-serif;
  color: #999f90;
  margin: 0;
  padding: 0 22px 14px;
  border-bottom: 1px solid #292e26;
}
.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant-message {
  max-width: 92%;
  padding: 13px 15px;
  border: 1px solid #30372c;
  border-radius: 15px 15px 15px 3px;
  background: #192017;
  flex-shrink: 0;
}
.assistant-message > span {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #acb59f;
}
.assistant-message p {
  font:
    12px/1.85 Inter,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
  color: #e1e3db;
}
.assistant-message.from-user {
  align-self: flex-end;
  background: #35221f;
  border-color: #67443d;
  border-radius: 15px 15px 3px 15px;
}
.assistant-message.from-user > span {
  color: #d9a39a;
}
.assistant-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.assistant-message-links a {
  font-size: 11px;
  color: #dca49a;
  text-decoration: none;
  border-bottom: 1px solid #69453e;
  padding-bottom: 3px;
}
.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
}
.assistant-suggestions button {
  border: 1px solid #343d2e;
  border-radius: 15px;
  background: #171d14;
  color: #b8c0ac;
  font:
    10px Inter,
    sans-serif;
  padding: 7px 10px;
  cursor: pointer;
}
.assistant-panel form {
  display: flex;
  gap: 8px;
  padding: 8px 18px 18px;
}
.assistant-panel input {
  flex: 1;
  min-width: 0;
  color: #e9e8df;
  background: #080c07;
  border: 1px solid #363d2e;
  border-radius: 11px;
  padding: 12px;
  font:
    12px Inter,
    sans-serif;
}
.assistant-panel form .primary {
  width: 40px;
  padding: 0;
  font-size: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
body:has(dialog[open]) .assistant-launcher,
body:has(dialog[open]) .assistant-panel {
  visibility: hidden;
}
.assistant-launcher:focus-visible,
.assistant-close:focus-visible,
.assistant-suggestions button:focus-visible {
  outline: 2px solid #c0786f;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .assistant-welcome {
    flex-wrap: wrap;
    gap: 12px;
  }
  .assistant-welcome-copy {
    min-width: 180px;
  }
  .assistant-panel {
    right: 12px;
    bottom: 78px;
  }
  .assistant-launcher {
    right: 12px;
    bottom: 16px;
  }
}
/* Enriched local record details */
.freshness {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #939b95;
  font-size: 11px;
  margin: 0 0 20px;
}
.freshness .info {
  position: static !important;
  flex: none;
}
.compact {
  padding: 9px 13px !important;
  font-size: 11px !important;
}
.context {
  flex-wrap: wrap;
}
.detail-rows {
  margin: 20px 0;
}
.detail-rows .source-row {
  gap: 22px;
  align-items: flex-start;
}
.detail-rows strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}
.company-detail-action {
  padding: 18px 0;
}
.range-notice {
  padding: 8px 0 16px;
}
tr[data-mission],
tr[data-rental],
tr[data-recurring],
tr[data-expense-detail] {
  cursor: pointer;
}
tr[data-mission]:hover,
tr[data-rental]:hover,
tr[data-recurring]:hover,
tr[data-expense-detail]:hover {
  background: #c0786f0c;
}
.detail-rows + .form-actions {
  flex-wrap: wrap;
}
.heading-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 20px;
  margin-bottom: 0;
}
.heading-topline > .eyebrow {
  flex: none;
}
.heading-topline .freshness {
  margin: 0;
  line-height: 1.4;
}
.document-operation-link {
  display: block !important;
  padding: 0 !important;
  margin: 8px 0 0 !important;
  text-align: left !important;
  line-height: 1.5;
  border-radius: 0;
}
.company-record-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.company-record-section h3 {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 12px;
}
.company-record-section .detail-rows {
  margin: 0;
}
.company-record-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 24px;
}
.company-record-identity .initial {
  width: 44px;
  height: 44px;
  flex: none;
}
.company-record-identity h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.company-linked-drivers button {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: 12px Inter;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}
.company-linked-drivers button:hover {
  background: #c0786f0c;
}
#editor > .eyebrow:empty {
  display: none;
}
@media (max-width: 700px) {
  .heading-topline {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .heading-topline .freshness {
    font-size: 10px;
    justify-content: flex-start;
  }
  .company-record-section .source-row {
    gap: 12px;
  }
}
#scope:focus:not(:focus-visible),
#scope.pointer-choice:focus {
  outline: none;
  box-shadow: none;
}
#scope:focus-visible:not(.pointer-choice) {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
/* Protected profile and unobstructed navigation */
.protected-email {
  opacity: 0.8;
  cursor: default;
}
.secure-email-link {
  text-align: left;
  margin-top: 4px;
  padding: 0;
}
.email-change-steps {
  padding-left: 22px;
  color: #b6c0b6;
  font-size: 13px;
  line-height: 1.8;
}
.email-change-steps li {
  padding: 6px 0;
}
.security-note h3 {
  font-size: 14px;
  color: var(--accent);
}
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 16px;
}
.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.table-pagination [hidden] {
  display: none !important;
}
aside .sidebar-assistant {
  position: relative;
  inset: auto;
  flex: none;
  margin-top: auto;
  margin-bottom: 12px;
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: none;
  display: grid;
  place-items: center;
  background: #251b18;
  border: 1px solid #684039;
}
aside .sidebar-assistant span {
  font-size: 24px;
}
aside:has(.sidebar-assistant) .help {
  margin-top: 0;
}
.assistant-panel {
  bottom: 24px;
  height: min(640px, calc(100dvh - 48px));
}
@media (max-width: 760px) {
  .assistant-panel {
    bottom: 12px;
    max-width: calc(100vw - 84px);
  }
  .table-pagination {
    flex-wrap: wrap;
  }
}
.assistant-history-controls {
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.assistant-history-controls select {
  width: 100%;
  background: #171c17;
  color: #e1ded6;
  border: 1px solid #3d4439;
  border-radius: 9px;
  padding: 9px 10px;
  font: 11px Inter;
  min-width: 0;
  text-overflow: ellipsis;
}
.assistant-history-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.assistant-history-actions button {
  background: none;
  border: 0;
  color: #d1a097;
  font: 10px Inter;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
}
.assistant-history-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.assistant-history-status {
  font: 9px/1.4 Inter;
  color: #8d9789;
  margin: 7px 0 0;
}
.assistant-history-status.history-warning {
  color: #efbd8f;
}
.assistant-empty {
  font-size: 12px;
  line-height: 1.8;
  color: #aeb6a6;
  margin: 14px 0;
}
.assistant-panel .assistant-messages {
  min-height: 80px;
}
.assistant-history-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.assistant-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.assistant-header-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #3d4037;
  border-radius: 50%;
  background: transparent;
  color: #ccc;
  cursor: pointer;
}
.assistant-header-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.assistant-header-icon:hover {
  color: #efd8d1;
  border-color: #94665d;
  background: #2a1d19;
}
.assistant-header-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.assistant-header-icon:disabled {
  opacity: 0.4;
  cursor: wait;
}
.assistant-panel-header {
  align-items: center;
  gap: 12px;
}
.assistant-demo[hidden] {
  display: none !important;
}
.assistant-panel-header > div:first-child {
  min-width: 0;
}
.assistant-history-controls:has(select[hidden]):not(:has(.history-warning)) {
  display: none;
}
.assistant-history-controls select[hidden] {
  display: none;
}
.assistant-history-controls:has(.history-warning) {
  display: block;
}
.assistant-history-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 22px;
}
.assistant-history-view h3 {
  font-size: 13px;
  color: #d7c0b8;
  margin: 4px 0 16px;
}
.assistant-history-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 15px;
  text-align: left;
  border: 1px solid #333c31;
  border-radius: 12px;
  background: #171d15;
  color: #ddd;
  margin-bottom: 10px;
  cursor: pointer;
}
.assistant-history-row strong {
  font: 500 12px/1.5 Inter;
  overflow-wrap: anywhere;
}
.assistant-history-row > span {
  font: 11px/1.6 Inter;
  color: #9ca693;
  overflow-wrap: anywhere;
}
.assistant-history-row time {
  font: 9px Inter;
  color: #a68178;
}
.assistant-history-row:hover,
.assistant-history-row[aria-current] {
  border-color: #9b685d;
  background: #261c18;
}
.assistant-header-icon.selected {
  color: #ebc2b7;
  border-color: #9b685d;
  background: #261c18;
}
.assistant-history-view[hidden],
.assistant-panel .assistant-messages[hidden],
.assistant-panel .assistant-suggestions[hidden],
.assistant-panel #assistantForm[hidden] {
  display: none !important;
}
.assistant-history-controls:not(:has(.history-warning)) {
  display: none;
}

.assistant-history-item {
  position: relative;
}
.assistant-history-item .assistant-history-row {
  padding-right: 54px;
}
.assistant-history-rename {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 27px;
  height: 27px;
  min-width: 27px;
}
.assistant-history-rename svg {
  width: 14px;
  height: 14px;
}

.assistant-history-item .assistant-history-row {
  padding-right: 86px;
}
.assistant-history-rename {
  right: 46px;
}
.assistant-history-delete {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 27px;
  height: 27px;
  min-width: 27px;
}
.assistant-history-delete svg {
  width: 14px;
  height: 14px;
}
#deleteAssistantConversation[hidden] {
  display: none !important;
}
.heading-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.finance-basis {
  margin: 0;
}
.finance-basis button {
  font-size: 11px;
}
.delta span {
  margin-left: 5px;
}
@media (max-width: 760px) {
  .heading-controls {
    align-items: flex-start;
  }
}

.finance-chart-summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 18px;
}
.finance-chart-summary > strong {
  font: 500 24px Montserrat;
  color: #eee;
}
.finance-chart-summary > span {
  font-size: 12px;
  color: #cda397;
}
.finance-chart-summary small {
  color: #939e92;
  font-size: 10px;
  margin-left: 5px;
}
.finance-point-detail {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  min-height: 58px;
}
.finance-point-detail > span {
  font-size: 11px;
  color: #d7c3bb;
}
.finance-point-detail > strong {
  font: 500 15px Montserrat;
  color: #f1e4df;
}
.finance-point-detail > small {
  flex-basis: 100%;
  font-size: 10px;
  color: #99a393;
}
.finance-chart-point {
  cursor: pointer;
  outline: none;
}
.finance-chart-point:hover,
.finance-chart-point:focus-visible,
.finance-chart-point.selected {
  r: 7;
  stroke: #f2ded8;
  stroke-width: 2;
}
.finance-detail-chart svg {
  overflow: visible;
}
.finance-detail-chart {
  height: 245px;
}

.kpi .delta.trend-up {
  color: #83b994;
}
.kpi .delta.trend-down {
  color: #e47777;
}
.kpi .delta.trend-neutral {
  color: #a1a89d;
}
.kpi .delta span {
  color: #939b90;
}
body:has(nav a[href='#archives'].active) .heading-controls,
body:has(nav a[href='#archives'].active) .context {
  display: none;
}
#financeBasis[hidden] {
  display: none !important;
}

/* Neutral document indicators, matching the main cards. */
.document-kpis .mini-metric {
  background: var(--panel);
  border-color: var(--line);
}
.document-kpis .mini-metric > span,
.document-kpis .mini-metric > small {
  color: var(--muted);
}
.document-kpis .mini-metric > strong {
  color: var(--white);
}
.supplier-na {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.supplier-na input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
