/* src/styles/components.css */
:root {
  --green-900: #0f3d2e;
  --green-800: #14533d;
  --green-700: #1b6b4f;
  --green-600: #1f8a5f;
  --green-500: #22a06b;
  --green-400: #3ebf88;
  --green-300: #7ed4ab;
  --green-200: #bfe8d4;
  --green-100: #dff3e8;
  --green-50: #eef9f3;
  --amber-600: #c27a0b;
  --amber-500: #e6a23c;
  --amber-100: #fdf1dd;
  --amber-50: #fdf7ec;
  --red-600: #c0392b;
  --red-500: #e04b3a;
  --red-100: #fbe3df;
  --red-50: #fdf1ef;
  --blue-600: #2456c7;
  --blue-500: #3b74e8;
  --blue-100: #e1ebfd;
  --blue-50: #f1f6fe;
  --violet-500: #6f57d8;
  --violet-100: #e7e2fb;
  --ink-900: #0a1a14;
  --ink-800: #14241c;
  --ink-700: #233228;
  --ink-600: #3c4a40;
  --ink-500: #5d6b60;
  --ink-400: #8a968c;
  --ink-300: #b8c1ba;
  --ink-200: #dde2df;
  --ink-150: #e8ece9;
  --ink-100: #f1f3f0;
  --ink-50: #f8f9f6;
  --paper: #ffffff;
  --cream: #fbfaf5;
  --oat: #f5f1e6;
  --bg: var(--ink-50);
  --surface: var(--paper);
  --border: #e6ebe7;
  --border-strong: #d3dbd5;
  --shadow-xs: 0 1px 0 rgba(15,61,46,0.04);
  --shadow-sm: 0 1px 2px rgba(15,61,46,0.05), 0 1px 3px rgba(15,61,46,0.04);
  --shadow-md: 0 4px 12px rgba(15,61,46,0.06), 0 2px 4px rgba(15,61,46,0.04);
  --shadow-lg: 0 12px 30px rgba(15,61,46,0.10), 0 4px 10px rgba(15,61,46,0.05);
  --shadow-xl: 0 24px 60px rgba(15,61,46,0.18), 0 8px 20px rgba(15,61,46,0.08);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font-sans:
    "Inter",
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  --font-display:
    "Fraunces",
    "Source Serif 4",
    Georgia,
    serif;
  --font-mono:
    "JetBrains Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings:
    "cv11",
    "ss01",
    "ss03";
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-300);
  background-clip: content-box;
  border: 2px solid transparent;
}
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green-900);
  color: #e6f3ec;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.brand {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #f5f1e6,
      #e8dfc5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 61, 46, 0.1);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #f5f1e6;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  color: rgba(245, 241, 230, 0.6);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-search {
  margin: 14px 14px 6px;
  position: relative;
}
.sidebar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e6f3ec;
  padding: 8px 10px 8px 32px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.sidebar-search input::placeholder {
  color: rgba(230, 243, 236, 0.4);
}
.sidebar-search input:focus {
  border-color: var(--green-400);
  background: rgba(255, 255, 255, 0.09);
}
.sidebar-search .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(230, 243, 236, 0.5);
}
.sidebar-search kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: rgba(230, 243, 236, 0.55);
  font-family: var(--font-mono);
}
.nav-group {
  padding: 12px 10px 0;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(230, 243, 236, 0.4);
  padding: 0 8px 6px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(230, 243, 236, 0.78);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
  cursor: pointer;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f5f1e6;
}
.nav-item.active {
  background:
    linear-gradient(
      90deg,
      rgba(62, 191, 136, 0.18),
      rgba(62, 191, 136, 0.08));
  color: #fff;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--green-400);
  border-radius: 0 3px 3px 0;
}
.nav-item svg {
  flex-shrink: 0;
}
.nav-item .nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(230, 243, 236, 0.7);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}
.nav-item.active .nav-badge {
  background: var(--green-500);
  color: #fff;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.org-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.org-card:hover {
  background: rgba(255, 255, 255, 0.07);
}
.org-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--green-500);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.org-meta {
  flex: 1;
  min-width: 0;
}
.org-name {
  font-size: 12.5px;
  color: #f5f1e6;
  font-weight: 600;
  line-height: 1.2;
}
.org-role {
  font-size: 10.5px;
  color: rgba(230, 243, 236, 0.5);
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.breadcrumb .sep {
  color: var(--ink-300);
}
.breadcrumb .current {
  color: var(--ink-900);
  font-weight: 600;
}
.topbar-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--ink-50);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border);
}
.topbar-tab {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .12s;
}
.topbar-tab:hover {
  color: var(--ink-900);
}
.topbar-tab.active {
  background: var(--paper);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.topbar-spacer {
  flex: 1;
}
.topbar-action {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-600);
  border: 1px solid transparent;
  position: relative;
  transition: all .12s;
}
.topbar-action:hover {
  background: var(--ink-50);
  border-color: var(--border);
  color: var(--ink-900);
}
.topbar-action .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  border: 2px solid var(--paper);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 24px;
  background: var(--ink-50);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--green-500),
      var(--green-700));
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  display: grid;
  place-items: center;
}
.user-chip-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.1;
}
.user-chip-role {
  font-size: 10.5px;
  color: var(--ink-500);
}
.page {
  padding: 24px 28px 48px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
.page-sub {
  font-size: 13.5px;
  color: var(--ink-500);
  margin-top: 4px;
}
.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-800);
  transition: all .12s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink-50);
  border-color: var(--border-strong);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-600);
}
.btn-ghost:hover {
  background: var(--ink-100);
  color: var(--ink-900);
  border-color: transparent;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
}
.btn-danger-ghost {
  color: var(--red-600);
}
.btn-danger-ghost:hover {
  background: var(--red-50);
  color: var(--red-600);
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 7px;
}
.btn-icon {
  padding: 8px;
  width: 34px;
  justify-content: center;
}
.btn-split {
  display: inline-flex;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
}
.btn-split > * {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-split > *:hover {
  background: var(--ink-50);
}
.btn-split > * + * {
  border-left: 1px solid var(--border);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.kpi:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kpi-label {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.kpi-icon.green {
  background: var(--green-100);
  color: var(--green-700);
}
.kpi-icon.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}
.kpi-icon.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}
.kpi-icon.violet {
  background: var(--violet-100);
  color: var(--violet-500);
}
.kpi-icon.red {
  background: var(--red-100);
  color: var(--red-600);
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-value .unit {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
}
.kpi-delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.kpi-delta.up {
  color: var(--green-600);
}
.kpi-delta.down {
  color: var(--red-600);
}
.kpi-delta.flat {
  color: var(--ink-500);
}
.kpi-foot {
  font-size: 11.5px;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-spark {
  height: 28px;
  width: 100%;
  margin-top: 4px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.card-sub {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}
.card-body {
  padding: 18px;
}
.toolbar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 9px;
  min-width: 240px;
  transition: border-color .15s, background .15s;
}
.search-box:focus-within {
  border-color: var(--green-500);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.12);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-900);
}
.search-box input::placeholder {
  color: var(--ink-400);
}
.search-box kbd {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--ink-500);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-700);
  font-weight: 500;
  transition: all .12s;
}
.filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--ink-50);
}
.filter-chip.active {
  background: var(--green-50);
  border-color: var(--green-300);
  color: var(--green-800);
}
.filter-chip .chip-v {
  color: var(--ink-900);
  font-weight: 600;
}
.filter-chip .chip-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-150);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  margin-left: 2px;
}
.view-switcher {
  display: inline-flex;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.view-switcher button {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}
.view-switcher button:hover {
  color: var(--ink-900);
}
.view-switcher button.active {
  background: var(--paper);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data thead th {
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data thead th .sort {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
table.data tbody tr {
  border-bottom: 1px solid var(--ink-100);
  transition: background .1s;
}
table.data tbody tr:last-child {
  border-bottom: 0;
}
table.data tbody tr:hover {
  background: var(--green-50);
}
table.data tbody tr.selected {
  background: var(--green-50);
}
table.data tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  color: var(--ink-800);
}
table.data .num {
  color: var(--green-700);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
table.data .muted {
  color: var(--ink-400);
}
table.data .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-900);
  text-align: right;
}
table.data .amount .dh {
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
  margin-left: 2px;
}
.row-obj {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 420px;
}
.row-obj-title {
  color: var(--ink-900);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-obj-meta {
  font-size: 11.5px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.progress {
  width: 90px;
  height: 6px;
  background: var(--ink-100);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress > span {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--green-500),
      var(--green-400));
  border-radius: 4px;
  transition: width .4s;
}
.progress.warn > span {
  background:
    linear-gradient(
      90deg,
      var(--amber-500),
      #f0bb5a);
}
.progress.danger > span {
  background:
    linear-gradient(
      90deg,
      var(--red-500),
      #f0746a);
}
.progress-label {
  font-size: 11.5px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}
.avatar-stack {
  display: inline-flex;
}
.avatar-stack .av {
  margin-left: -6px;
  border: 2px solid var(--paper);
}
.avatar-stack .av:first-child {
  margin-left: 0;
}
.av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  background: var(--green-100);
  color: var(--green-700);
}
.badge.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}
.badge.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}
.badge.red {
  background: var(--red-100);
  color: var(--red-600);
}
.badge.gray {
  background: var(--ink-100);
  color: var(--ink-600);
}
.badge.violet {
  background: var(--violet-100);
  color: var(--violet-500);
}
.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}
.checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-300);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all .12s;
  background: var(--paper);
}
.checkbox:hover {
  border-color: var(--green-500);
}
.checkbox:checked {
  background: var(--green-600);
  border-color: var(--green-600);
}
.checkbox:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 1.8px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.checkbox:indeterminate {
  background: var(--green-600);
  border-color: var(--green-600);
}
.checkbox:indeterminate::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #fff;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--ink-50);
}
.pagination-info {
  font-size: 12.5px;
  color: var(--ink-500);
}
.pagination-info b {
  color: var(--ink-900);
  font-weight: 600;
}
.page-btns {
  display: flex;
  align-items: center;
  gap: 2px;
}
.page-btn {
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-600);
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
}
.page-btn:hover {
  background: var(--paper);
  color: var(--ink-900);
}
.page-btn.active {
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
}
.page-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.market-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color .15s,
    box-shadow .15s,
    transform .15s;
  cursor: pointer;
  position: relative;
}
.market-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.market-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.market-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-700);
  font-weight: 600;
  background: var(--green-50);
  padding: 3px 8px;
  border-radius: 6px;
}
.market-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.market-card-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.amount-big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1;
}
.amount-sub {
  font-size: 11.5px;
  color: var(--ink-500);
}
.market-card-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-500);
}
.progress-row b {
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.market-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.attributaire {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-700);
  min-width: 0;
}
.attributaire .name {
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 160px;
}
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(27, 107, 79, 0.12);
  z-index: 100;
  transition: transform .15s;
}
.fab:hover {
  transform: scale(1.06);
  background: var(--green-800);
}
.bulk-bar {
  position: sticky;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 16px auto 0;
  max-width: 640px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xl);
  z-index: 40;
  font-size: 13px;
}
.bulk-bar .count {
  background: var(--green-500);
  color: #fff;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
}
.bulk-bar .actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.bulk-bar .actions button {
  padding: 6px 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.bulk-bar .actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.bulk-bar .actions .danger:hover {
  background: rgba(224, 75, 58, 0.2);
  color: #fff;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal {
  background: var(--paper);
  border-radius: 18px;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  animation: slideUp .22s ease;
}
.modal-aside {
  background:
    linear-gradient(
      180deg,
      var(--green-900),
      var(--green-800));
  color: rgba(255, 255, 255, 0.85);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-aside-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-aside-head .ic {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.modal-aside-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.01em;
}
.modal-aside-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
.stepper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .12s;
}
.step:hover {
  background: rgba(255, 255, 255, 0.04);
}
.step.active {
  background: rgba(255, 255, 255, 0.08);
}
.step.done .step-num {
  background: var(--green-400);
  color: var(--green-900);
}
.step.active .step-num {
  background: #fff;
  color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .12s;
}
.step-body {
  flex: 1;
  min-width: 0;
}
.step-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}
.step.active .step-name {
  color: #fff;
}
.step-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.step-check {
  color: var(--green-400);
}
.modal-aside-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.save-status {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.save-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.modal-main {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  min-width: 0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.modal-step-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 2px;
}
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
}
.modal-close:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-50);
}
.modal-foot .progress-lite {
  flex: 1;
  max-width: 220px;
  height: 4px;
  background: var(--ink-150);
  border-radius: 3px;
  overflow: hidden;
}
.modal-foot .progress-lite > span {
  display: block;
  height: 100%;
  background: var(--green-500);
  border-radius: 3px;
  transition: width .3s;
}
.modal-foot .progress-text {
  font-size: 12px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.modal-foot .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-label .req {
  color: var(--red-500);
}
.field-label .hint {
  color: var(--ink-400);
  font-weight: 500;
  font-size: 11.5px;
  margin-left: auto;
}
.field-input {
  position: relative;
}
.input,
.select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink-900);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
}
.input::placeholder {
  color: var(--ink-400);
}
.input:hover,
.select:hover {
  border-color: var(--border-strong);
}
.input:focus,
.select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.15);
}
.input.with-suffix {
  padding-right: 44px;
}
.input-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 600;
  background: var(--ink-100);
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
}
.input.with-prefix {
  padding-left: 34px;
}
.input-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}
.input-hint {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: -2px;
}
.input-err {
  font-size: 11.5px;
  color: var(--red-600);
  margin-top: -2px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px 16px;
}
.col-12 {
  grid-column: span 12;
}
.col-6 {
  grid-column: span 6;
}
.col-4 {
  grid-column: span 4;
}
.col-3 {
  grid-column: span 3;
}
.col-8 {
  grid-column: span 8;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: span 12;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-title .ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink-900);
  outline: none;
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}
.textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.15);
}
.toggle-group {
  display: inline-flex;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.toggle-group button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
}
.toggle-group button.active {
  background: var(--paper);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.dropzone {
  border: 1.5px dashed var(--green-300);
  background: var(--green-50);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: background .12s, border-color .12s;
  cursor: pointer;
}
.dropzone:hover {
  background: #e7f6ee;
  border-color: var(--green-500);
}
.dropzone .ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-700);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.grid-span-8 {
  grid-column: span 8;
}
.grid-span-6 {
  grid-column: span 6;
}
.grid-span-4 {
  grid-column: span 4;
}
.grid-span-12 {
  grid-column: span 12;
}
.chart-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chart-card-head {
  padding: 14px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.chart-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.chart-card-sub {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 2px;
}
.chart-card-body {
  padding: 4px 14px 14px;
  flex: 1;
  min-height: 0;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-600);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.summary-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  padding: 12px;
  font-size: 12.5px;
  color: var(--ink-800);
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 12;
}
.summary-card .st {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-800);
  font-weight: 600;
  font-size: 12px;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat-tile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-tile .lbl {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-tile .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.stat-tile.green {
  background: var(--green-50);
  border-color: var(--green-200);
}
.stat-tile.amber {
  background: var(--amber-50);
  border-color: #f4e0b8;
}
.stat-tile.blue {
  background: var(--blue-50);
  border-color: #d6e4fb;
}
.stat-tile.violet {
  background: #f6f3fe;
  border-color: #dcd1f7;
}
.tweaks {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: 14px;
  z-index: 300;
  display: none;
}
.tweaks.open {
  display: block;
}
.tweaks h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.tweak-row label {
  font-size: 11.5px;
  color: var(--ink-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tweak-row .opts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tweak-row .opt {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 500;
}
.tweak-row .opt.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.swatch-row {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch.active {
  border-color: var(--ink-900);
}
.hstack {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vstack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grow {
  flex: 1;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-500);
}
.empty .ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-700);
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.empty h4 {
  font-size: 15px;
  color: var(--ink-900);
  margin: 0 0 4px;
  font-weight: 600;
}
.empty p {
  font-size: 13px;
  margin: 0 0 16px;
}
[data-tip] {
  position: relative;
}
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.hoverable:hover {
  background: var(--ink-50);
}

/* src/styles/responsive.css */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 61, 46, 0.45);
  backdrop-filter: blur(2px);
}
@media (max-width: 1023px) {
  .app {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 transparent;
  }
  .app[data-mobile-open=true] .sidebar {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgba(15, 61, 46, 0.25);
  }
  .app[data-mobile-open=true] .mobile-backdrop {
    display: block;
    animation: fadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .app[data-mobile-open=true] {
    overflow: hidden;
    height: 100vh;
  }
}
.mobile-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-700);
  border-radius: 6px;
  transition: background 120ms;
}
.mobile-burger:hover {
  background: var(--ink-100);
}
@media (max-width: 1023px) {
  .mobile-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 1023px) {
  .topbar .tabs-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .topbar .tabs-row::-webkit-scrollbar {
    display: none;
  }
  .topbar .tab {
    flex-shrink: 0;
  }
  .topbar .tab .tab-count {
    display: none;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 0 12px;
  }
  .topbar .actions .user-chip > div:not(.user-avatar) {
    display: none;
  }
  .topbar .actions .topbar-action[title=Aide] {
    display: none;
  }
}
@media (max-width: 1023px) {
  .page {
    padding: 16px 18px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header .page-actions {
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-title {
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .page {
    padding: 12px 14px;
  }
  .page-title {
    font-size: 19px;
  }
  .page-actions .btn .btn-label,
  .page-actions .btn span:not(.icon) {
    display: none;
  }
  .page-actions .btn-primary span:not(.icon) {
    display: inline;
  }
}
@media (max-width: 1023px) {
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns:repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(6,1fr)"],
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="grid-template-columns:240px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
  .stat-tiles {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .stat-tiles {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1023px) {
  [style*="grid-template-columns:340px 1fr 300px"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto;
  }
  [style*="grid-template-columns:420px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1023px) {
  .dash-grid {
    grid-template-columns: 1fr !important;
  }
  .dash-grid > .grid-span-12,
  .dash-grid > .grid-span-8,
  .dash-grid > .grid-span-6,
  .dash-grid > .grid-span-4 {
    grid-column: 1 / -1 !important;
  }
}
.table-wrap,
.card > .tbl,
.tbl {
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 1023px) {
  table.tbl,
  table.data {
    min-width: 720px;
  }
  .card > div[style*="overflow-x:auto"],
  .card > .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  .input,
  input.input,
  select.select,
  textarea.input {
    font-size: 16px;
    padding: 10px 12px;
  }
  .btn {
    min-height: 38px;
    padding: 0 14px;
  }
  .btn-sm {
    min-height: 32px;
    padding: 0 10px;
  }
}
@media (max-width: 1023px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch !important;
  }
  .filters-bar .toggle-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  .card {
    border-radius: var(--radius-md);
  }
  .card .card-header {
    padding: 12px 14px;
  }
  .card .card-body {
    padding: 12px 14px;
  }
}
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(auto-fill,minmax(380px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(340px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(330px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(320px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(300px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(260px"],
  [style*="grid-template-columns:repeat(auto-fill,minmax(220px"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1023px) {
  [style*="grid-template-columns:300px 1fr"],
  [style*="grid-template-columns:440px 1fr"],
  [style*="grid-template-columns:1fr 460px"],
  [style*="grid-template-columns:320px 1fr 280px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:200px 1fr auto"] {
    grid-template-columns: 1fr !important;
    row-gap: 6px;
  }
  [style*="grid-template-columns:1.6fr 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  [style*="grid-template-columns:1.6fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 460px"] > div[style*="position:sticky"] {
    position: static !important;
  }
}
@media (max-width: 640px) {
  .topbar {
    min-height: 48px;
  }
  .app {
    padding-top: env(safe-area-inset-top);
  }
}
@media (max-width: 480px) {
  .nav-item-desc {
    display: none;
  }
  .module-badge-eyebrow {
    display: none;
  }
  .brand-sub {
    display: none;
  }
}
.sidebar {
  -webkit-overflow-scrolling: touch;
}
.sidebar .nav-item {
  -webkit-tap-highlight-color: transparent;
}
.toast-host {
  transform: translateZ(0);
}

/* src/styles/base.css */
.page {
  animation: fadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cdk-overlay-container {
  z-index: 1000;
}
.cdk-overlay-backdrop {
  background: rgba(15, 61, 46, 0.35);
  backdrop-filter: blur(2px);
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cdk-overlay-pane.drawer-pane {
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  animation: slideIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
app-icon:has(+ input) {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
  z-index: 1;
}
table.tbl,
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl thead th,
table.data-table thead th {
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  font-weight: 700;
  white-space: nowrap;
}
table.tbl tbody tr,
table.data-table tbody tr {
  border-bottom: 1px solid var(--ink-100);
  transition: background .1s;
}
table.tbl tbody tr:last-child,
table.data-table tbody tr:last-child {
  border-bottom: 0;
}
table.tbl tbody tr:hover,
table.data-table tbody tr:hover {
  background: var(--green-50);
}
table.tbl tbody td,
table.data-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  color: var(--ink-800);
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
