:root {
  --navy: #6e0e18;
  --ink: #35262a;
  --muted: #96868a;
  --accent: #f1dcc0;
  --bg: #f8f6f5;
  --line: #eee7e6;
  --positive: #517e45;
  --negative: #b16c5e;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 "Inter",
    "Avenir Next",
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 35px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 11px;
}
.boot {
  padding: 80px;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}
.boot span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin-top: 20px;
}
.app {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d6aeb4;
  padding: 32px 20px 23px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
.brand b {
  font-weight: 400;
  color: var(--accent);
}
.brandmark {
  width: 29px;
  height: 33px;
  display: flex;
  gap: 3px;
  align-items: center;
  transform: skewY(-17deg);
}
.brandmark i {
  display: block;
  width: 7px;
  background: var(--accent);
  border-radius: 2px;
  height: 24px;
}
.brandmark i:nth-child(2) {
  height: 33px;
}
.brandmark i:last-child {
  height: 18px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #b06e79;
  font-weight: 600;
  margin: 45px 15px 18px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 43px;
}
.nav a.active {
  color: #6e0e18;
  background: var(--accent);
  font-weight: 600;
}
.nav a:hover:not(.active) {
  background: #801d29;
  color: #fff1ee;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.nav .count {
  margin-left: auto;
  background: #ffffff18;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.environment {
  margin: 35px 12px 25px;
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cf9da6;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #acd58b;
  border-radius: 50%;
  display: inline-block;
}
.sidebar-profile {
  border-top: 1px solid #8d3846;
  padding: 22px 7px 0;
  display: flex;
  gap: 11px;
  align-items: center;
}
.avatar {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1e2df;
  color: #975362;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: #954551;
  color: #f6e2dd;
}
.sidebar-profile strong {
  display: block;
  color: #fff4f0;
  font-size: 12px;
}
.sidebar-profile small {
  font-size: 10px;
}
.logout {
  background: transparent;
  border: 0;
  color: #d3a4ac;
  display: flex;
  gap: 9px;
  padding: 17px 8px 0;
  font-size: 10px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 82px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.crumb {
  font-size: 11px;
  color: var(--muted);
}
.crumb span {
  color: #ded2d1;
  margin: 0 17px;
}
.crumb b {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.lang {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  padding: 8px;
  max-width: 110px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f4ece7;
  color: #8f635d;
  white-space: nowrap;
}
.pill.pending {
  background: #fbf1dc;
  color: #a07e3e;
}
.pill.rejected,
.pill.cancelled {
  background: #f8eae7;
  color: #a66b62;
}
.pill.completed {
  background: #edf4e9;
  color: #5b8050;
}
.page-wrap {
  max-width: 1470px;
  padding: 34px 39px 0;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.overline {
  font-size: 10px;
  color: #a1858a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  border: 1px solid #dae2df;
  background: white;
  color: var(--ink);
  padding: 11px 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover {
  border-color: #97aa9f;
}
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff3ed;
}
.button.accent {
  background: var(--accent);
  border: 0;
  color: #6e0e18;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  padding: 7px 0;
  font-weight: 500;
  color: #936875;
}
.button.small {
  font-size: 10px;
  padding: 7px 10px;
}
.button.danger {
  color: #a45e5b;
}
.metrics {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 23px;
}
.metric.featured {
  background: #f2e7e7;
  border-color: #ead8d8;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a1787d;
}
.metric .metric-value {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.3;
  margin: 13px 0 7px;
  font-weight: 550;
}
.metric.featured .metric-value {
  font-size: 36px;
  letter-spacing: -1.6px;
}
.metric small {
  font-size: 10px;
  color: #a38c8e;
}
.mini-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #f7f0ee;
  color: #a16b76;
  font-size: 16px;
}
.metric:nth-child(3) .mini-icon {
  color: #b18363;
  background: #faf1e9;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(245px, 1fr);
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.panel-heading small {
  color: var(--muted);
}
.chart-panel {
  min-height: 257px;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.chart-top .range {
  color: #a18c91;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
}
.chart {
  margin-top: 20px;
  width: 100%;
  height: 155px;
  display: block;
}
.chart text {
  fill: #a08b90;
  font-family: inherit;
  font-size: 10px;
}
.account-card {
  background: linear-gradient(135deg, #7e1b28, #540b15);
  color: #f8e7df;
  border-radius: 15px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  min-height: 259px;
  display: flex;
  flex-direction: column;
}
.account-card:before,
.account-card:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #f8d2bc28;
  border-radius: 50%;
  right: -115px;
  top: -65px;
  pointer-events: none;
}
.account-card:after {
  width: 300px;
  height: 300px;
  right: -150px;
  top: -100px;
}
.account-card .account-kind {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #dbabb2;
  text-transform: uppercase;
  z-index: 1;
}
.account-card .amount {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 23px 0 3px;
  z-index: 1;
}
.account-card .ref {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #d8afb1;
  margin: 15px 0 20px;
  z-index: 1;
}
.account-card .account-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
  z-index: 1;
}
.account-card .account-bottom button {
  color: #ead0c8;
  background: #ffffff0a;
  border: 1px solid #ad6270;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 9px;
}
.account-card .held {
  font-size: 10px;
  color: #dcadb3;
  margin-bottom: 12px;
}
.quick-panel {
  margin-top: 20px;
  padding: 22px;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 20px;
}
.quick-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 8px;
  text-align: center;
  font-size: 10px;
}
.quick-link .round-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5ece9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 10px;
  color: #9f6670;
}
.quick-link:hover {
  background: #faf3f1;
}
.table-panel {
  margin-top: 23px;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
.data-table th {
  font-weight: 400;
  text-align: left;
  color: #94a09b;
  font-size: 10px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 16px 8px;
  border-bottom: 1px solid #eff2ef;
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .right {
  text-align: right;
  white-space: nowrap;
}
.transaction-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.tx-icon {
  background: #f4ebe7;
  color: #a56e72;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tx-icon.debit {
  background: #f9f0e9;
  color: #b48666;
}
.transaction-label strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  max-width: 230px;
  overflow-wrap: anywhere;
}
.transaction-label small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.amount-plus {
  color: #6a8b54;
}
.data-table .pill {
  font-size: 9px;
}
.pending-strip {
  margin: 18px 0 0;
  padding: 14px 17px;
  border: 1px solid #e8e5d5;
  background: #faf7ec;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 10px;
}
.section-spacer {
  margin-top: 25px;
}
.beneficiary-list {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.beneficiary-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 64px;
  font-size: 10px;
  text-align: center;
  overflow-wrap: anywhere;
}
.beneficiary-mini .avatar {
  width: 42px;
  height: 42px;
  font-size: 12px;
}
.beneficiary-mini.add .avatar {
  background: white;
  border: 1px dashed #cdb1b7;
  font-size: 22px;
  color: #b4878c;
}
.footer {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b19b9d;
  font-size: 9px;
}
.footer strong {
  font-size: 10px;
  font-weight: 500;
  color: #a18489;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters select {
  width: auto;
  max-width: 220px;
}
.field {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 18px;
}
.field span {
  display: block;
  margin-bottom: 8px;
}
input,
select {
  width: 100%;
  padding: 12px 13px;
  background: white;
  border: 1px solid #e8dadd;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
}
input:focus,
select:focus {
  border-color: #a45b66;
}
input::placeholder {
  color: #bfaeb1;
}
input[readonly] {
  background: #faf5f3;
}
.field small {
  display: block;
  color: #b29b9e;
  margin-top: 6px;
  font-size: 10px;
}
.form-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}
.form-panel {
  padding: 30px;
}
.form-panel > h2 {
  margin-bottom: 25px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-panel .button.primary {
  width: 100%;
  padding: 14px;
}
.info {
  background: #f2e7e7;
  border-radius: 15px;
  padding: 30px;
  align-self: start;
  color: #a27778;
}
.info .info-icon {
  font-size: 27px;
  display: block;
  margin-bottom: 25px;
}
.info h2 {
  color: #7b3941;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.info p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 20px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.account-grid .account-card {
  min-height: 230px;
}
.account-add {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed #d5b4b9;
  border-radius: 15px;
  margin-top: 25px;
  background: #f5ebea;
  gap: 15px;
}
.account-add p {
  color: #a88185;
  font-size: 12px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.beneficiary-card .avatar {
  width: 45px;
  height: 45px;
  margin-bottom: 20px;
}
.beneficiary-card h2 {
  margin-bottom: 9px;
}
.beneficiary-card p {
  font-size: 10px;
  color: #b49b9e;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.beneficiary-card .button {
  margin-right: 5px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}
.profile-card .avatar {
  width: 70px;
  height: 70px;
  font-size: 23px;
  margin-bottom: 24px;
}
.profile-card h2 {
  font-size: 24px;
  font-weight: 500;
}
.profile-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 25px;
}
.settings-panel h2 {
  margin-bottom: 25px;
}
.settings-panel .lang {
  border: 1px solid var(--line);
  width: 100%;
  max-width: none;
  padding: 12px;
}
.settings-panel form {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 25px;
}
.settings-panel form h2 {
  font-size: 14px;
}
.empty {
  padding: 35px 15px;
  color: #b09b9d;
  text-align: center;
  font-size: 12px;
}
.error {
  color: #a96055;
  font-size: 12px;
  margin: 15px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #6e0e18;
  color: #fff0e6;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 6px 30px #6e0e1822;
  z-index: 100;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #3c111b68;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 50;
}
.dialog {
  width: 100%;
  max-width: 510px;
  background: white;
  border-radius: 18px;
  padding: 30px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0002;
}
.dialog h2 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 25px;
}
.dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.review-row span {
  color: var(--muted);
}
.review-row strong {
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.review-amount {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 10px 0 20px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #6e0e18;
  color: #fff0e4;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-art h1 {
  font-size: 58px;
  font-weight: 450;
  letter-spacing: -2.5px;
  line-height: 1.13;
  max-width: 500px;
  margin: auto 0 25px;
  z-index: 1;
}
.login-art > p {
  color: #e3bcb8;
  font-size: 14px;
  margin-bottom: auto;
  z-index: 1;
}
.login-art .decor {
  position: absolute;
  border: 1px solid #f4d3b833;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  right: -380px;
  bottom: -180px;
}
.login-art .decor.two {
  width: 800px;
  height: 800px;
  right: -455px;
  bottom: -255px;
}
.login-art small {
  color: #d7a8aa;
  margin-top: 60px;
}
.login-form-wrap {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf7f5;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin: 28px 0 10px;
}
.login-form > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 30px;
}
.login-form .button {
  width: 100%;
  padding: 14px;
}
.login-form > .lang {
  display: block;
  margin-left: auto;
}
.login-form .test-login {
  margin-top: 24px;
  font-size: 10px;
  color: #b09799;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.admin-tabs button.active {
  background: #f1dedc;
  border-color: #ddbebf;
}
.admin-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}
.admin-metrics .metric {
  flex: 1;
}
.logs-table td {
  font-size: 10px;
}
.print-only {
  display: none;
}
[hidden] {
  display: none !important;
}
.mobile-brand {
  display: none;
}
.subtle-note {
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0 0;
}
.busy {
  opacity: 0.6;
  pointer-events: none;
}
.header-bell {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ad9095;
}
.currency-input {
  position: relative;
}
.currency-input input {
  padding-right: 40px;
}
.currency-input:after {
  content: "EUR";
  position: absolute;
  right: 13px;
  top: 12px;
  font-size: 10px;
  color: #b0989c;
}
@media (min-width: 1600px) {
  .page-wrap {
    padding-top: 43px;
  }
  .metrics .metric {
    padding: 28px;
  }
  .chart-panel {
    min-height: 290px;
  }
  .chart {
    height: 188px;
  }
  .account-card {
    min-height: 290px;
  }
}
@media (max-width: 1150px) {
  .app {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    padding: 28px 15px;
  }
  .brand {
    font-size: 20px;
  }
  .page-wrap {
    padding: 28px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr);
    gap: 18px;
  }
  .metric {
    padding: 18px;
  }
  .metric .metric-value {
    font-size: 26px;
  }
  .metric.featured .metric-value {
    font-size: 30px;
  }
  .metric small {
    font-size: 9px;
  }
  .table-panel {
    padding: 20px 15px;
  }
  .crumb > span:first-child {
    display: none;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .heading-actions .button {
    padding: 10px;
  }
  .chart-top .range {
    display: none;
  }
  .account-card {
    padding: 23px;
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
  }
  .sidebar > .brand {
    font-size: 22px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin-top: 15px;
  }
  .nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 13px;
    font-size: 11px;
  }
  .nav .icon {
    font-size: 17px;
  }
  .nav .count {
    display: none;
  }
  .topbar {
    height: 60px;
  }
  .crumb {
    font-size: 10px;
  }
  .main-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions .button {
    font-size: 10px;
  }
  .heading-actions {
    gap: 7px;
  }
  .metrics {
    gap: 12px;
  }
  .metric .metric-value {
    font-size: 25px;
  }
  .metric.featured .metric-value {
    font-size: 28px;
  }
  .settings-layout {
    grid-template-columns: 1fr 1.3fr;
  }
}
@media (max-width: 660px) {
  .page-wrap {
    padding: 25px 16px 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .crumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .top-actions > .avatar {
    display: none;
  }
  .top-actions .pill {
    font-size: 9px;
  }
  .top-actions .lang {
    margin-left: auto;
  }
  .page-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .subtitle {
    font-size: 12px;
  }
  .heading-actions {
    align-self: stretch;
  }
  .heading-actions .button {
    flex: 1;
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .metric.featured {
    grid-column: 1/-1;
  }
  .metric.featured .metric-value {
    font-size: 38px;
  }
  .metric .metric-value {
    font-size: 27px;
  }
  .metric small {
    font-size: 10px;
  }
  .main-grid,
  .form-layout,
  .account-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .main-grid > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .quick-panel {
    margin: 0;
  }
  .chart-panel {
    min-height: 245px;
  }
  .account-card {
    min-height: 230px;
  }
  .form-panel,
  .panel {
    padding: 22px;
  }
  .table-panel {
    padding: 20px 12px;
  }
  .data-table td {
    padding: 15px 7px;
  }
  .data-table th {
    padding: 13px 7px;
  }
  .data-table .date-column {
    display: none;
  }
  .transaction-label {
    min-width: 155px;
    gap: 9px;
  }
  .transaction-label strong {
    font-size: 11px;
    max-width: 160px;
  }
  .transaction-label small {
    font-size: 9px;
  }
  .data-table .pill {
    font-size: 8px;
    padding: 4px 6px;
  }
  .data-table {
    font-size: 10px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .account-add {
    align-items: flex-start;
    flex-direction: column;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 9px;
  }
  .filters input {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    max-width: 100%;
    font-size: 11px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialog {
    padding: 24px;
  }
  .footer {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 270px;
    padding: 30px;
  }
  .login-art h1 {
    font-size: 35px;
    letter-spacing: -1.2px;
    margin: 40px 0 15px;
  }
  .login-art small {
    display: none;
  }
  .login-form-wrap {
    padding: 25px;
  }
  .login-form {
    max-width: 420px;
  }
  .login-form h2 {
    margin-top: 18px;
  }
  .admin-metrics {
    gap: 10px;
  }
  .admin-metrics .metric {
    padding: 15px;
  }
  .admin-metrics .metric-value {
    font-size: 25px;
  }
  .data-table.logs-table {
    min-width: 540px;
  }
  .sidebar {
    padding: 16px;
  }
  .nav a {
    padding: 9px 11px;
  }
  .nav {
    margin-top: 12px;
  }
  .chart-top h2 {
    font-size: 15px;
  }
  input,
  select {
    font-size: 16px;
  }
  .lang {
    font-size: 12px;
    min-height: 38px;
  }
  .button {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .page-content {
    animation: enter 0.22s ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0.6;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media print {
  body {
    background: white;
    color: #172b25;
  }
  .app {
    display: block;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .filters,
  .footer,
  .button,
  .toast,
  .modal-backdrop,
  .subtle-note {
    display: none !important;
  }
  .page-wrap {
    padding: 0;
    max-width: none;
  }
  .panel {
    border: 0;
    padding: 10px;
  }
  .print-only {
    display: block;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
  }
  .print-only h1 {
    font-size: 28px;
  }
  .print-only p {
    font-weight: bold;
    font-size: 12px;
    margin-top: 12px;
  }
  .data-table {
    font-size: 11px;
  }
  .data-table .date-column {
    display: table-cell;
  }
  .data-table td {
    break-inside: avoid;
  }
  .data-table tr {
    break-inside: avoid;
  }
  .data-table .pill {
    border: 1px solid #888;
    color: #333;
  }
  .data-table {
    min-width: 0;
  }
  .table-wrap {
    overflow: visible;
  }
}
@media screen and (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .workspace,
  .main-grid > *,
  .panel {
    min-width: 0;
  }

  .nav {
    max-width: 100%;
    overflow-x: auto;
  }
}

.mobile-menu-toggle {
  display: none;
}

@media screen and (max-width: 900px) {
  .sidebar {
    position: relative;
  }

  .sidebar > .brand {
    padding-right: 110px;
    min-height: 44px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ffffff55;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
  }

  .sidebar .nav {
    display: none;
  }

  .sidebar.menu-open .nav {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    overflow: visible;
  }

  .sidebar .nav a {
    white-space: normal;
    min-height: 44px;
    font-size: 14px;
  }

  .sidebar.menu-open .sidebar-bottom {
    display: block;
  }

  .sidebar.menu-open .environment {
    display: none;
  }

  .sidebar.menu-open .sidebar-profile {
    margin-top: 18px;
  }

  .sidebar.menu-open .logout {
    min-height: 44px;
    font-size: 13px;
  }
}
/* Icône du menu mobile, dessinée en CSS. */
.menu-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  margin-right: 8px;
}
.menu-lines i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
