:root {
  --bg: #061126;
  --bg-deep: #091a3c;
  --bg-soft: #102a5c;
  --panel: rgba(10, 22, 54, 0.74);
  --panel-strong: rgba(13, 28, 69, 0.9);
  --panel-alt: rgba(10, 38, 88, 0.56);
  --line: rgba(95, 180, 255, 0.18);
  --line-strong: rgba(95, 180, 255, 0.34);
  --text: #f3f8ff;
  --muted: #9eb8de;
  --primary: #3147a5;
  --secondary: #11a5e8;
  --highlight: #66d8ff;
  --danger: #ff6b81;
  --success: #58e2c2;
  --shadow: 0 8px 32px rgba(3, 10, 28, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(17, 165, 232, 0.22), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(49, 71, 165, 0.30), transparent 26%),
    radial-gradient(circle at 78% 70%, rgba(102, 216, 255, 0.09), transparent 22%),
    linear-gradient(135deg, #061126 0%, #0a1b40 42%, #0d2b62 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.38;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}

body::before {
  width: 280px;
  height: 280px;
  top: 6%;
  right: -80px;
  background: rgba(17, 165, 232, 0.22);
}

body::after {
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: 10%;
  background: rgba(49, 71, 165, 0.28);
  animation-delay: -7s;
}

a {
  color: var(--highlight);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
strong,
th {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
}

h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
}

p,
ul {
  margin: 0;
}

/* ─── Shell & Layout ─────────────────────────────── */

.shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.page-stack {
  display: grid;
  gap: 16px;
}

/* ─── Site Header ────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(95, 180, 255, 0.10);
  background: rgba(5, 15, 36, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(2, 8, 22, 0.24);
}

.site-header__inner {
  display: flex;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 108px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(17, 165, 232, 0.12));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--highlight);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ─── Navigation ─────────────────────────────────── */

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu {
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #c8daf0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 140ms ease, color 140ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-link.is-active {
  background: rgba(17, 165, 232, 0.14);
  color: var(--highlight);
}

.nav-link svg,
.nav-link-icon {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ─── User Chip ──────────────────────────────────── */

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.user-menu {
  position: relative;
}

.user-menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  margin-top: 0;
  padding: 12px 8px 8px;
  border: 1px solid rgba(113, 204, 255, 0.18);
  border-radius: 10px;
  background: rgba(6, 17, 38, 0.96);
  box-shadow: 0 14px 30px rgba(2, 8, 22, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 30;
}

.user-menu:hover .user-menu__panel,
.user-menu:focus-within .user-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #c8daf0;
  font-size: 0.86rem;
  font-weight: 600;
}

.user-menu__link:hover,
.user-menu__link.is-active {
  background: rgba(17, 165, 232, 0.14);
  color: #ffffff;
}

.user-menu__link svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  flex-shrink: 0;
}

.user-chip__label {
  color: var(--highlight);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(102, 216, 255, 0.1);
}

.nav form {
  margin: 0;
}

/* ─── Buttons ────────────────────────────────────── */

.button,
button,
input[type="submit"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid rgba(113, 204, 255, 0.20);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(17, 165, 232, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 165, 232, 0.24);
}

.button.secondary,
button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #c8daf0;
  border-color: rgba(95, 180, 255, 0.18);
  box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: none;
}

.button.sm,
button.sm {
  min-height: 30px;
  padding: 4px 12px;
  font-size: 0.8rem;
}

/* ─── Panels & Cards ─────────────────────────────── */

.panel,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 28, 65, 0.94), rgba(8, 19, 48, 0.84));
  box-shadow: var(--shadow);
}

.panel::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(102, 216, 255, 0.07), transparent 32%, transparent 68%, rgba(49, 71, 165, 0.09));
  pointer-events: none;
}

.panel {
  padding: 20px;
}

.card {
  padding: 14px;
}

/* ─── Hero Layout ────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.dashboard-intro {
  gap: 18px;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: none;
}

.hero-text,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ─── Stack & Grid Utilities ─────────────────────── */

.stack {
  display: grid;
  gap: 12px;
}

.grid,
.stat-grid,
.check-grid,
.app-grid {
  display: grid;
  gap: 12px;
}

.grid,
.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.check-grid,
.app-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ─── Metric Cards ───────────────────────────────── */

.metric-card {
  display: grid;
  gap: 6px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric-meta {
  color: var(--highlight);
  font-size: 0.8rem;
}

/* ─── Info Strip / Pills / Badges ────────────────── */

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.ok {
  background: rgba(88, 226, 194, 0.10);
  border-color: rgba(88, 226, 194, 0.28);
  color: #7dedd8;
}

.badge.warn {
  background: rgba(255, 107, 129, 0.10);
  border-color: rgba(255, 107, 129, 0.28);
  color: #ff9aaa;
}

.badge.neutral {
  background: rgba(158, 184, 222, 0.08);
  border-color: rgba(158, 184, 222, 0.22);
  color: var(--muted);
}

/* ─── Flash Messages ─────────────────────────────── */

.flash {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
}

.flash.error {
  background: rgba(255, 107, 129, 0.10);
  border-color: rgba(255, 107, 129, 0.28);
  color: #ffb3be;
}

.flash.success {
  background: rgba(88, 226, 194, 0.10);
  border-color: rgba(88, 226, 194, 0.28);
  color: #a0f0e2;
}

.flash__dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  transition: background 140ms ease;
}

.flash__dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: none;
  box-shadow: none;
}

/* ─── Forms ──────────────────────────────────────── */

label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

label > span,
label > strong {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9375rem;
}

input[type="text"],
input[type="date"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(113, 204, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

select option,
select optgroup {
  color: #f3f8ff;
  background: #0d214d;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(102, 216, 255, 0.42);
  background: #f3f8ff;
  color: #0d214d;
  box-shadow: 0 0 0 3px rgba(17, 165, 232, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(158, 184, 222, 0.5);
}

/* ─── Code Block ─────────────────────────────────── */

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.code {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(102, 216, 255, 0.28);
  background: rgba(4, 16, 41, 0.6);
  color: #cdeeff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

/* ─── Layout Helpers ─────────────────────────────── */

.compact {
  padding: 14px;
}

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

.form-grid--single-row {
  grid-template-columns: 1fr;
}

.form-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--two {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--artica-line {
  grid-template-columns: minmax(0, 0.5fr) repeat(4, minmax(0, 1fr));
}

.form-grid--expense-line {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(132px, 10ch) minmax(320px, 2.6fr) minmax(180px, 1.05fr) calc(6.8ch + 1.25rem) calc(6.8ch + 1.25rem) calc(6.8ch + 1.25rem) minmax(222px, 1fr);
  align-items: end;
}

.form-grid--expense-line > label,
.form-grid--expense-line > div {
  min-width: 0;
}

.form-grid--filters-line {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.6fr) 150px 150px max-content;
  align-items: end;
}

.status-row,
.section-header,
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-header h1,
.section-header h2 {
  line-height: 1;
}

/* ─── Tables ─────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(95, 180, 255, 0.09);
  text-align: left;
  vertical-align: middle;
  font-size: 0.875rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 11px;
  padding-bottom: 11px;
}

tbody tr:hover {
  background: rgba(17, 165, 232, 0.04);
}

.table-link {
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 600;
}

.table-link:hover {
  color: #ffffff;
}

/* ─── Form Grid ──────────────────────────────────── */

.form-grid {
  align-items: start;
}

.assignment-card {
  gap: 10px;
}

.expense-create-line label {
  gap: 0;
}

.expense-create-headings,
.expense-edit-headings {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(132px, 10ch) minmax(320px, 2.6fr) minmax(180px, 1.05fr) calc(6.8ch + 1.25rem) calc(6.8ch + 1.25rem) calc(6.8ch + 1.25rem) minmax(222px, 1fr);
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expense-create-headings span:nth-child(-n + 3),
.expense-edit-headings span:nth-child(-n + 3) {
  text-align: left;
  margin-left: 10px;
}

.expense-create-headings span:nth-child(n + 4):nth-child(-n + 6),
.expense-edit-headings span:nth-child(n + 4):nth-child(-n + 6),
.expense-create-headings span:last-child,
.expense-edit-headings span:last-child {
  text-align: center;
}

.expense-edit-line label {
  gap: 0;
}

.expense-create-line label,
.expense-edit-line label {
  min-width: 0;
}

.expense-create-line input[name="amount_ht"],
.expense-create-line input[name="amount_tva"],
.expense-create-line input[name="amount_ttc"],
.expense-edit-line input[name="amount_ht"],
.expense-edit-line input[name="amount_tva"],
.expense-edit-line input[name="amount_ttc"] {
  width: 100%;
  max-width: calc(8ch + 1.8rem);
  text-align: right;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
  padding-left: 10px;
  padding-right: 10px;
}

.expense-create-line input[name="amount_ht"]::-webkit-outer-spin-button,
.expense-create-line input[name="amount_ht"]::-webkit-inner-spin-button,
.expense-create-line input[name="amount_tva"]::-webkit-outer-spin-button,
.expense-create-line input[name="amount_tva"]::-webkit-inner-spin-button,
.expense-create-line input[name="amount_ttc"]::-webkit-outer-spin-button,
.expense-create-line input[name="amount_ttc"]::-webkit-inner-spin-button,
.expense-edit-line input[name="amount_ht"]::-webkit-outer-spin-button,
.expense-edit-line input[name="amount_ht"]::-webkit-inner-spin-button,
.expense-edit-line input[name="amount_tva"]::-webkit-outer-spin-button,
.expense-edit-line input[name="amount_tva"]::-webkit-inner-spin-button,
.expense-edit-line input[name="amount_ttc"]::-webkit-outer-spin-button,
.expense-edit-line input[name="amount_ttc"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.expense-amount-input--mismatch {
  border-color: rgba(255, 107, 129, 0.55) !important;
  background: rgba(255, 107, 129, 0.10) !important;
  color: #ffe1e7 !important;
}

.expense-amount-input--mismatch:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.18) !important;
}

.expense-editor {
  gap: 14px;
}

.expense-editor__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.expense-editor__actions {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  min-width: 240px;
  justify-items: start;
}

.expense-editor__actions--create {
  grid-template-columns: minmax(120px, max-content);
  min-height: 40px;
  min-width: 140px;
  justify-items: start;
}

.expense-editor__actions > .muted,
.expense-editor__actions--create > .muted {
  grid-column: 1 / -1;
  min-height: 1.2em;
}

.expense-editor__actions > button,
.expense-editor__actions > .button {
  width: auto;
}

.expense-editor__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.expense-editor__actions-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.expense-editor__actions > .expense-icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.expense-editor__actions > .muted {
  min-width: 0;
  margin-left: 8px;
}

.expense-editor__action-delete {
  margin-left: auto;
}

.expense-delete-button {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  justify-content: center;
}

.expense-delete-button svg {
  width: 16px;
  height: 16px;
}

.form-grid--expense-line > label:nth-child(2) {
  margin-left: 8px;
}

.form-grid--expense-line > label:nth-child(2) input[type="text"] {
  padding-left: calc(0.95rem + 5px);
}

.expense-report-actions {
  justify-content: flex-end;
}

.expense-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.expense-tabs-header__filter {
  margin-left: auto;
}

.expense-tabs-header__filter label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expense-tabs-header__filter span {
  color: var(--muted);
  font-size: 0.78rem;
}

.expense-tabs-header__filter select {
  min-width: 260px;
}

.expense-icon-button {
  min-width: 40px;
  width: 40px;
  padding: 0;
  justify-content: center;
}

.expense-icon-button svg {
  width: 16px;
  height: 16px;
}

.expense-icon-button--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.expense-icon-button--danger {
  color: #ffb3be;
  border-color: rgba(255, 107, 129, 0.28);
}

.expense-icon-button--danger:hover {
  color: #ffd5dc;
}

.section-header--subtle {
  padding-top: 4px;
}

.expense-tab-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.expense-tab-panel::before {
  display: none;
}

.expense-line-row {
  gap: 2px;
  padding: 4px 0;
}

.expense-pending-toolbar {
  align-items: center;
  gap: 12px;
}

.filters-line__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.toolbar-row,
.toolbar-inline,
.checkbox-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-row form,
.toolbar-inline {
  margin: 0;
}

.mode-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

.action-row > .button:not(.danger),
.action-row > button:not(.danger) {
  flex: 1 1 auto;
}

.action-row > .button.danger,
.action-row > button.danger {
  margin-left: auto;
  flex: 0 0 auto;
}

/* ─── Sales / Invoice ────────────────────────────── */

.sales-board {
  display: grid;
  gap: 14px;
}

.grouped-sales-board {
  gap: 20px;
}

.invoice-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.invoice-group__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(95, 180, 255, 0.10);
}

.invoice-group__items {
  display: grid;
  gap: 12px;
}

.sale-card {
  padding: 16px;
}

.sale-description-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sale-description-row .muted {
  flex: 1 1 auto;
}

.license-badge {
  flex: 0 0 auto;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 12px;
  border-color: rgba(102, 216, 255, 0.36);
  background: linear-gradient(135deg, rgba(17, 165, 232, 0.16), rgba(49, 71, 165, 0.28));
  color: #e9f8ff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: none;
  transition: transform 140ms ease, background 140ms ease;
}

.license-badge:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(102, 216, 255, 0.20), rgba(49, 71, 165, 0.38));
}

.invoice-preview-frame {
  min-height: 76vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.invoice-preview-frame iframe {
  width: 100%;
  min-height: 76vh;
  border: 0;
  background: #ffffff;
}

/* ─── Danger Button ──────────────────────────────── */

.button.danger,
button.danger {
  background: linear-gradient(135deg, #c43d54, #8e2238);
  border-color: rgba(255, 141, 160, 0.24);
  box-shadow: 0 4px 16px rgba(142, 34, 56, 0.24);
}

.button.danger:hover,
button.danger:hover {
  box-shadow: 0 6px 20px rgba(142, 34, 56, 0.32);
}

/* ─── Catalog Picker ─────────────────────────────── */

.catalog-picker {
  position: relative;
}

.catalog-picker__input {
  width: 100%;
}

.catalog-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 17, 38, 0.98);
  box-shadow: 0 16px 36px rgba(3, 10, 28, 0.42);
}

.catalog-picker.is-open .catalog-picker__menu {
  display: grid;
}

.catalog-picker__option,
.catalog-picker__empty {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(95, 180, 255, 0.10);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
}

.catalog-picker__option:hover {
  background: rgba(17, 165, 232, 0.10);
}

.catalog-picker__empty {
  color: var(--muted);
}

/* ─── Misc Utilities ─────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox-row {
  justify-content: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.form-panel {
  align-content: start;
}

.quick-panel {
  display: grid;
  gap: 10px;
}

.app-card {
  display: grid;
  gap: 8px;
}

/* ─── App Launch ─────────────────────────────────── */

.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.app-launchpad {
  justify-items: stretch;
}

.app-launchpad .section-header {
  width: 100%;
}

.app-launch-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  background: linear-gradient(180deg, rgba(15, 31, 72, 0.96), rgba(10, 21, 48, 0.88));
}

.app-launch-card__description {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.app-launch-button {
  width: 100%;
  justify-content: center;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.is-hidden {
  display: none !important;
}

.app-card .metric-meta {
  color: var(--muted);
}

/* ─── CDR Workspace ───────────────────────────────── */

.cdr-shell {
  gap: var(--space-5);
}

.cdr-shell__header {
  align-items: flex-start;
}

.cdr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(102, 216, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 28, 64, 0.74), rgba(8, 18, 44, 0.82));
}

.cdr-tab {
  min-height: 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: none;
}

.cdr-tab:hover {
  background: rgba(102, 216, 255, 0.08);
  color: var(--text);
}

.cdr-tab.is-active {
  background: linear-gradient(135deg, rgba(17, 165, 232, 0.18), rgba(49, 71, 165, 0.32));
  border-color: rgba(102, 216, 255, 0.24);
  color: #eff9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(6, 20, 52, 0.28);
}

.cdr-tab--push {
  margin-left: auto;
}

.cdr-tab-panels {
  gap: var(--space-5);
}

.cdr-tab-panel {
  display: none;
}

.cdr-tab-panel.is-active {
  display: grid;
  gap: var(--space-5);
}

.cdr-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: var(--space-4);
}

/* ─── Center Panel ───────────────────────────────── */

.center-panel {
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Login ──────────────────────────────────────── */

.login-shell {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.login-card {
  width: min(100%, 400px);
  padding: 28px 26px 24px;
}

.login-logo {
  width: min(180px, 60%);
  margin: 0 auto 8px;
}

/* ─── Admin Hero ─────────────────────────────────── */

.admin-hero {
  align-items: start;
}

/* ─── Page Header Strip ──────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.page-header__title {
  display: grid;
  gap: 3px;
}

/* ─── Animations ─────────────────────────────────── */

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -12px, 0) scale(1.05);
  }
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 980px) {
  .hero,
  .grid,
  .stat-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid--triple {
    grid-template-columns: 1fr;
  }

  .form-grid--artica-line {
    grid-template-columns: 1fr;
  }

  .form-grid--expense-line {
    grid-template-columns: 1fr;
  }

  .form-grid--filters-line {
    grid-template-columns: 1fr;
  }

  .expense-create-headings,
  .expense-edit-headings {
    display: none;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
  }

  .site-header__inner,
  .header-actions,
  .toolbar-row,
  .toolbar-inline,
  .mode-switch,
  .action-row,
  .checkbox-strip,
  .invoice-group__header,
  .sale-description-row,
  .status-row,
  .section-header,
  .checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brandmark {
    width: 100%;
  }

  .brand-logo {
    width: 96px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .user-chip {
    width: 100%;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu__panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .panel,
  .card {
    border-radius: 12px;
  }

  .panel {
    padding: 16px;
  }

  .launch-grid {
    grid-template-columns: 1fr;
  }

  .cdr-two-column {
    grid-template-columns: 1fr;
  }
}

/* ── Modals ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.active { display: flex; }

.modal-panel {
  background: #0f1d3f;
  border: 1px solid rgba(158, 184, 222, 0.28);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.05);
  outline-offset: -1px;
  backdrop-filter: blur(6px);
  padding: var(--space-6);
  width: 100%;
  max-width: 780px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.modal-panel--lg { max-width: 1060px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-shrink: 0;
}
.modal-header h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { background: var(--surface-alt); color: var(--text); }

.modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

.expense-report-modal-panel {
  max-width: 560px;
  padding: 0;
  overflow: hidden;
}

.expense-report-modal-panel .modal-header {
  padding: 22px 26px 0;
}

.expense-report-modal-body {
  padding: 0 26px 26px;
  gap: 18px;
}

.expense-report-modal-intro {
  padding: 16px 18px;
  border: 1px solid rgba(158, 184, 222, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at top right, rgba(102, 216, 255, 0.14), transparent 45%);
}

.expense-report-modal-intro p {
  margin: 0;
}

.expense-report-modal-form {
  gap: 18px;
}

.expense-report-period-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(102, 216, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(11, 27, 61, 0.96), rgba(18, 38, 83, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.expense-report-period-picker__field {
  gap: 8px;
}

.expense-report-period-picker__field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 227, 255, 0.72);
}

.expense-report-period-picker__field select {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 12px;
  border-color: rgba(102, 216, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f8ff;
  font-size: 1rem;
  font-weight: 600;
}

.expense-report-period-picker__field select:focus {
  border-color: rgba(102, 216, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 165, 232, 0.14);
}

.expense-report-period-picker__field--year select {
  text-align: center;
}

.expense-report-period-preview {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(102, 216, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 241, 255, 0.92);
}

.expense-report-period-preview strong {
  color: #ffffff;
}

.expense-quick-link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.expense-quick-link-card {
  padding: 18px;
}

.expense-quick-link-card--qr {
  align-items: center;
  text-align: center;
}

.expense-quick-link-qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

.expense-receipt-modal-panel {
  max-width: 980px;
}

.expense-receipt-modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.expense-receipt-modal-body img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.expense-quick-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.expense-quick-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 22, 53, 0.96), rgba(15, 29, 63, 0.96));
  border: 1px solid rgba(102, 216, 255, 0.12);
  box-shadow: 0 20px 60px rgba(6, 11, 24, 0.35);
}

.expense-quick-hero {
  gap: 4px;
}

.expense-quick-hero__topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.expense-quick-hero__titles {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.expense-quick-hero__titles h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.expense-quick-user-name {
  justify-self: end;
  text-align: right;
  font-size: 0.88rem;
  color: rgba(232, 241, 255, 0.82);
}

.expense-quick-hero h1,
.expense-quick-step-card h2 {
  margin: 0;
}

.expense-quick-flash {
  margin: 0;
}

.expense-quick-footer {
  gap: 10px;
  margin-top: 8px;
}

.expense-quick-session-meta {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(102, 216, 255, 0.2);
  background: rgba(102, 216, 255, 0.08);
  color: #eef7ff;
}

.expense-quick-step-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(158, 184, 222, 0.18);
}

.expense-quick-step-topbar {
  display: flex;
  justify-content: flex-end;
}

.expense-quick-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(158, 184, 222, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f8ff;
}

.expense-quick-back-icon svg {
  width: 18px;
  height: 18px;
}

.expense-quick-step-topbar__selection {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(102, 216, 255, 0.18);
  background: rgba(102, 216, 255, 0.08);
}

.expense-quick-step-topbar__icon {
  font-size: 1.1rem;
}

.expense-quick-step-topbar__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f7fbff;
}

.expense-quick-primary-button {
  width: 100%;
  justify-content: center;
}

.expense-quick-pin-input {
  min-height: 58px;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.25rem;
  font-weight: 700;
}

.expense-quick-upload-zone {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px 16px;
  border: 1px dashed rgba(102, 216, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.expense-quick-upload-zone input[type="file"] {
  width: 100%;
}

.expense-quick-photo-preview {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(158, 184, 222, 0.18);
}

.expense-quick-bio-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(88, 226, 194, 0.18);
  background: rgba(88, 226, 194, 0.06);
}

.expense-quick-bio-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(158, 184, 222, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f8ff;
  text-align: left;
}

.expense-quick-bio-status.is-active {
  border-color: rgba(88, 226, 194, 0.28);
  background: rgba(88, 226, 194, 0.08);
}

.expense-quick-bio-status__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.expense-quick-bio-status__icon svg {
  width: 22px;
  height: 22px;
}

.expense-quick-bio-status__content {
  display: grid;
  gap: 2px;
}

.expense-quick-bio-status__label {
  font-size: 0.9rem;
  font-weight: 700;
}

.expense-quick-bio-status__meta {
  font-size: 0.8rem;
  color: rgba(232, 241, 255, 0.78);
}

.expense-quick-bio-status__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(88, 226, 194, 0.18);
  color: #9effea;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.expense-quick-bio-panel__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(88, 226, 194, 0.18);
  background: rgba(88, 226, 194, 0.07);
}

.expense-quick-form--bio-panel-open {
  display: block;
}

.expense-quick-photo-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.expense-quick-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.expense-quick-type-button {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 92px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(102, 216, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f8ff;
}

.expense-quick-type-button.is-active {
  border-color: rgba(88, 226, 194, 0.45);
  background: rgba(88, 226, 194, 0.12);
  box-shadow: 0 0 0 3px rgba(88, 226, 194, 0.12);
}

.expense-quick-type-button__icon {
  font-size: 1.4rem;
}

.expense-quick-type-button__label {
  display: block;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.expense-quick-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.expense-quick-step-actions--single {
  grid-template-columns: 1fr;
}

.expense-quick-amounts {
  gap: 12px;
}

.expense-quick-gps-status {
  margin: 0;
}

.expense-webauthn-device-list {
  gap: 10px;
}

.expense-webauthn-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(158, 184, 222, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 640px) {
  .expense-report-modal-panel .modal-header {
    padding: 18px 18px 0;
  }

  .expense-report-modal-body {
    padding: 0 18px 18px;
  }

  .expense-report-period-picker {
    grid-template-columns: 1fr;
  }

  .expense-quick-link-grid,
  .form-grid--two,
  .expense-quick-step-actions {
    grid-template-columns: 1fr;
  }

  .expense-quick-card,
  .expense-quick-step-card,
  .expense-quick-link-card {
    padding: 16px;
  }
}

/* Progress bar */
.progress-track {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.35s ease;
  width: 0%;
}
.progress-fill--error { background: var(--danger, #dc2626); }
.progress-fill--done  { background: var(--success, #16a34a); }

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

/* FTP filter input */
.modal-search {
  width: 100%;
  margin-bottom: var(--space-3);
}

/* Banque */
.banque-page-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: -20px auto 0;
  transform: none;
  padding: 22px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.96));
  box-shadow: 0 18px 44px rgba(2, 8, 22, 0.08);
  z-index: 1;
}

.banque-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(102, 216, 255, 0.16), transparent 28%),
    radial-gradient(circle at left center, rgba(49, 71, 165, 0.08), transparent 26%);
  pointer-events: none;
}

.banque-page-shell > * {
  position: relative;
  z-index: 1;
}

.banque-page-shell .panel,
.banque-page-shell .card {
  color: #10203e;
  border-color: rgba(29, 68, 145, 0.12);
  box-shadow: 0 10px 30px rgba(7, 18, 42, 0.06);
}

.banque-page-shell .panel {
  background: rgba(255, 255, 255, 0.72);
  margin-inline: 22px;
}

.banque-page-shell .card {
  background: rgba(248, 251, 255, 0.92);
}

.banque-page-shell h1,
.banque-page-shell h2,
.banque-page-shell h3,
.banque-page-shell strong,
.banque-page-shell th,
.banque-page-shell td,
.banque-page-shell label,
.banque-page-shell p,
.banque-page-shell li,
.banque-page-shell code {
  color: inherit;
}

.banque-page-shell .muted,
.banque-page-shell .metric-label,
.banque-page-shell .metric-meta {
  color: #60708a;
}

.banque-page-shell .eyebrow {
  color: #2958ba;
}

.banque-hero-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-inline: 22px;
  padding-left: 0;
  padding-right: 0;
  color: #10203e;
}

.banque-page-shell > .banque-hero-panel:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

.banque-hero-panel h1,
.banque-hero-panel .muted,
.banque-hero-panel .eyebrow,
.banque-hero-panel p,
.banque-hero-panel strong,
.banque-hero-panel a,
.banque-hero-panel span {
  color: inherit;
}

.banque-hero-panel .eyebrow,
.banque-hero-panel .banque-settings-link {
  color: #2958ba;
}

.banque-hero-panel .muted,
.banque-hero-panel .banque-action-meta {
  color: #60708a;
}

.banque-page-shell > .banque-hero-panel:first-child .card,
.banque-page-shell > .banque-hero-panel:first-child .panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.banque-account-line {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banque-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}

.banque-settings-link {
  color: #2958ba;
  font-size: 0.84rem;
  font-weight: 700;
}

.banque-settings-link:hover {
  color: #17397f;
}

.banque-primary-action-form {
  margin: 0;
}

.banque-action-meta {
  color: #60708a;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: right;
}

.banque-page-shell input[type="text"],
.banque-page-shell input[type="password"],
.banque-page-shell input[type="email"],
.banque-page-shell input[type="url"],
.banque-page-shell input[type="number"],
.banque-page-shell input[type="date"],
.banque-page-shell input[type="file"],
.banque-page-shell textarea,
.banque-page-shell select {
  color: #10203e;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(29, 68, 145, 0.18);
}

.banque-page-shell input::placeholder,
.banque-page-shell textarea::placeholder {
  color: #7b8aa3;
}

.banque-page-shell input:focus,
.banque-page-shell textarea:focus,
.banque-page-shell select:focus {
  outline: none;
  border-color: rgba(41, 88, 186, 0.55);
  box-shadow: 0 0 0 3px rgba(41, 88, 186, 0.12);
}

@media (min-width: 1232px) {
  .banque-page-shell--wide {
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-right: -100px;
  }
}

@media (max-width: 900px) {
  .banque-page-shell {
    width: calc(100vw - 20px);
    margin-top: -20px;
    padding: 16px 0 20px;
  }

  .banque-page-shell .panel {
    margin-inline: 16px;
  }

  .banque-account-line {
    white-space: normal;
  }

  .banque-hero-actions {
    width: 100%;
    align-items: flex-start;
  }

  .banque-hero-panel {
    margin-inline: 16px;
  }

  .banque-action-meta {
    text-align: left;
  }
}
