/* Import de réservations.
  Règles déplacées de booking.css (étape 7 de l’audit), dans leur ordre d’origine ; chargé juste après booking.css. */

:root {
  /* Palette du fichier : couleurs écrites en dur remplacées par ces variables (mêmes valeurs). */
  --c-amber-44: #e0a100;
}
/* Section d’origine : V157 — Import de réservations */
dialog.bi-dialog {
  width: min(760px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 0;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--theme-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog.bi-dialog:not([open]) {
  display: none;
}
dialog.bi-dialog::backdrop {
  background: rgba(10, 12, 16, 0.55);
}
.bi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border);
}
.bi-head h2 {
  margin: 0;
  font-size: 18px;
}
.bi-x {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 26px;
  cursor: pointer;
  border-radius: 10px;
}
.bi-body {
  padding: 14px 16px 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bi-note {
  margin: 0;
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.45;
}
.bi-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.bi-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px dashed var(--theme-accent);
  border-radius: 12px;
  color: var(--theme-accent-text);
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}
.bi-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bi-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.bi-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-accent-text);
}
.bi-cols {
  margin: 0;
  font-size: 12px;
  color: var(--theme-muted);
  line-height: 1.45;
}
.bi-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bi-btn.bi-primary {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: var(--theme-on-accent);
}
.bi-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.bi-body > .bi-btn {
  align-self: flex-start;
}
.bi-msg {
  margin: 0;
  font-size: 14px;
  color: var(--theme-muted);
}
.bi-msg:empty {
  display: none;
}
.bi-msg.is-bad {
  color: var(--c-danger-3);
}
.bi-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bi-rows {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bi-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--theme-border);
  border-left: 4px solid #2e9d5b;
  border-radius: 12px;
  background: var(--theme-surface);
}
.bi-row.is-warn {
  border-left-color: var(--c-amber-44);
}
.bi-row.is-error {
  border-left-color: var(--c-danger-3);
  opacity: 0.8;
}
.bi-use {
  flex: none;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.bi-use input {
  width: 22px;
  height: 22px;
  accent-color: var(--theme-accent);
}
.bi-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.bi-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bi-price {
  font-weight: 700;
  white-space: nowrap;
}
.bi-route {
  overflow-wrap: anywhere;
}
.bi-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--theme-soft);
  font-size: 12px;
  font-weight: 600;
}
.bi-alt {
  display: block;
  width: 100%;
  margin: 4px 0;
  min-height: 40px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-input);
  color: var(--theme-text);
  font-size: 13px;
}
.bi-meta {
  font-size: 13px;
  color: var(--theme-muted);
  overflow-wrap: anywhere;
}
.bi-main em {
  font-style: normal;
  font-size: 12.5px;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}
.bi-err {
  background: rgba(192, 57, 43, 0.12);
  color: #a93226;
}
.bi-warn {
  background: rgba(224, 161, 0, 0.14);
  color: #8a6300;
}
.bi-go {
  position: sticky;
  bottom: -18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 2px;
  background: var(--theme-surface);
}
.bi-done ul {
  margin: 4px 0 10px;
  padding-left: 20px;
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  .bi-err {
    color: #ff8a7a;
  }
  .bi-warn {
    color: #f5c542;
  }
}
