@charset "UTF-8";
@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap";

/* src/styles.scss */
:root {
  --mamba-900: #0F1710;
  --mamba-800: #182118;
  --mamba-700: #2A4830;
  --mamba-600: #386048;
  --mamba-500: #4C7C61;
  --mamba-400: #649E7A;
  --mamba-300: #8EC2A4;
  --mamba-200: #BCD8C8;
  --mamba-100: #DCEEE4;
  --mamba-50: #EDF7F1;
  --gold-900: #3A1400;
  --gold-700: #6A2C00;
  --gold-600: #8C4008;
  --gold-500: #B55A18;
  --gold-400: #CE7830;
  --gold-300: #E09850;
  --gold-100: #F8E2C8;
  --gold-50: #FCF1E6;
  --surface-bg: #F2EDE3;
  --surface-paper: #FAF7F1;
  --surface-warm: #EDE7D9;
  --surface-wash: #E5DED0;
  --border-base: #D6CCBA;
  --border-light: #E2DBCE;
  --border-strong: #B8AE9C;
  --ink-900: #1C1409;
  --ink-700: #342C1E;
  --ink-500: #584838;
  --ink-400: #7A6858;
  --ink-300: #9C8C7C;
  --ink-200: #C0B2A2;
  --success: #265038;
  --success-mid: #36704C;
  --success-bg: #E4F2EA;
  --success-border: #9CC8AE;
  --warning: #763000;
  --warning-mid: #984800;
  --warning-bg: #F6EEE2;
  --warning-border: #DCA876;
  --danger: #881A1A;
  --danger-mid: #A42020;
  --danger-bg: #F4E6E6;
  --danger-border: #D09C9C;
  --info: #163C6C;
  --info-mid: #225898;
  --info-bg: #E0EBF6;
  --info-border: #86B0D4;
  --neutral: #585048;
  --neutral-bg: #EAE5DD;
  --neutral-border: #BCB4A6;
  --primary: var(--mamba-600);
  --primary-light: var(--mamba-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-400);
  --border: var(--border-light);
  --bg-secondary: var(--surface-warm);
  --ink-soft: var(--ink-400);
  --sidebar-w: 258px;
  --topbar-h: 58px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --font-display:
    "Fraunces",
    Georgia,
    "Times New Roman",
    serif;
  --font-body:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  --font-mono:
    "JetBrains Mono",
    "Courier New",
    monospace;
  --shadow-xs: 0 1px 3px rgba(28,20,9,.06);
  --shadow-sm: 0 2px 7px rgba(28,20,9,.08), 0 1px 2px rgba(28,20,9,.04);
  --shadow: 0 5px 18px rgba(28,20,9,.10), 0 2px 6px rgba(28,20,9,.05);
  --shadow-lg: 0 16px 44px rgba(28,20,9,.14), 0 5px 14px rgba(28,20,9,.07);
  --shadow-gold: 0 4px 20px rgba(181,90,24,.30);
  --t-fast: .13s ease;
  --t-base: .2s ease;
  --t-slow: .32s ease;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 14px;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface-bg);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--mamba-600);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--mamba-700);
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(28, 20, 9, 0.16);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 20, 9, 0.28);
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #0F1710;
  background-image:
    radial-gradient(
      circle at 82% 12%,
      rgba(181, 90, 24, 0.14) 0%,
      transparent 44%),
    radial-gradient(
      circle at 18% 90%,
      rgba(100, 158, 122, 0.07) 0%,
      transparent 36%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255, 255, 255, 0.016) 23px,
      rgba(255, 255, 255, 0.016) 24px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(255, 255, 255, 0.016) 23px,
      rgba(255, 255, 255, 0.016) 24px);
}
.sidebar-header {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background:
    linear-gradient(
      145deg,
      var(--gold-400),
      var(--gold-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(181, 90, 24, 0.4), 0 1px 3px rgba(0, 0, 0, 0.22);
}
.sidebar-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1;
  font-variation-settings: "opsz" 22, "WONK" 0;
}
.sidebar-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
  line-height: 1.6;
  font-family: var(--font-body);
}
.sidebar-nav {
  flex: 1;
  padding: 10px 0 24px;
}
.nav-section {
  padding: 20px 20px 5px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 20px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font-body);
  position: relative;
  letter-spacing: 0.01em;
}
.nav-item .icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity var(--t-fast);
  line-height: 1;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.nav-item:hover .icon {
  opacity: 0.88;
}
.nav-item.active {
  background: rgba(181, 90, 24, 0.16);
  color: #ffffff;
  text-decoration: none;
}
.nav-item.active .icon {
  opacity: 1;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gold-400);
  border-radius: 0 2px 2px 0;
}
.sidebar-footer {
  padding: 14px 20px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  line-height: 2;
  font-family: var(--font-body);
}
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--surface-paper);
  border-bottom: 1px solid var(--border-base);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  z-index: 99;
  box-shadow: 0 1px 0 rgba(28, 20, 9, 0.04), 0 2px 8px rgba(28, 20, 9, 0.05);
}
.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      var(--gold-500) 20%,
      var(--gold-400) 50%,
      var(--gold-500) 80%,
      transparent 100%);
  opacity: 0.4;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variation-settings: "opsz" 15, "WONK" 0;
}
.topbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border-base);
  flex-shrink: 0;
}
.topbar-subtitle {
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 400;
  white-space: nowrap;
  font-family: var(--font-body);
}
.topbar-badge {
  background: var(--gold-50);
  color: var(--gold-700);
  border: 1px solid var(--gold-300);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 10px;
  background: var(--surface-bg);
  border-radius: 7px;
  border: 1px solid var(--border-light);
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  font-family: var(--font-body);
}
.user-role {
  font-size: 10px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--danger-border);
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  font-family: var(--font-body);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.btn-logout:hover {
  background: var(--danger-bg);
  border-color: var(--danger-mid);
  color: var(--danger-mid);
}
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 30px 34px;
  min-height: calc(100vh - var(--topbar-h));
  animation: gsas-reveal 0.26s ease both;
}
@keyframes gsas-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}
.page-header > div:first-child {
  flex: 1;
}
.page-header h1,
.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.3px;
  line-height: 1.15;
  font-variation-settings: "opsz" 26, "WONK" 0;
}
.page-header .subtitle,
.page-subtitle,
.subtitle {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 5px;
  font-weight: 400;
  font-family: var(--font-body);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 18px;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      var(--mamba-600),
      var(--mamba-400));
  opacity: 0;
  transition: opacity var(--t-base);
}
.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  font-variation-settings: "opsz" 36, "WONK" 0;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.stat-sub {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 5px;
  font-family: var(--font-body);
}
.stat-accent {
  color: var(--gold-500) !important;
}
.card {
  background: var(--surface-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--surface-paper);
  color: var(--ink-900);
}
.card-header .ch-icon {
  width: 30px;
  height: 30px;
  background: var(--surface-wash);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.card-header .card-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-header-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: "opsz" 15, "WONK" 0;
}
.card-body {
  padding: 22px;
}
.card-body.p0 {
  padding: 0;
}
.card.accent-success {
  border-left: 3px solid var(--success-mid);
}
.card.accent-warning {
  border-left: 3px solid var(--gold-500);
}
.card.accent-danger {
  border-left: 3px solid var(--danger-mid);
}
.card.accent-info {
  border-left: 3px solid var(--info-mid);
}
.card.accent-forest {
  border-left: 3px solid var(--mamba-500);
}
.table-responsive {
  overflow-x: auto;
}
table.table,
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--font-body);
}
table.table th,
table.data-table th {
  padding: 10px 18px;
  text-align: left;
  background: var(--surface-warm);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ink-500);
  border-bottom: 1px solid var(--border-base);
  white-space: nowrap;
  font-family: var(--font-body);
}
table.table td,
table.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-700);
  vertical-align: middle;
  line-height: 1.45;
}
table.table tbody tr,
table.data-table tbody tr {
  transition: background var(--t-fast);
}
table.table tbody tr:hover,
table.data-table tbody tr:hover {
  background: rgba(56, 96, 72, 0.04);
}
table.table tbody tr:last-child td,
table.data-table tbody tr:last-child td {
  border-bottom: none;
}
.table-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-wash);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--mamba-700);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--border-light);
}
.table-actions {
  padding: 6px 10px !important;
  white-space: nowrap;
  vertical-align: middle;
}
.table-actions > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.08px;
  font-family: var(--font-body);
}
.badge-green,
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.badge-red,
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}
.badge-yellow,
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}
.badge-blue,
.badge-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}
.badge-grey,
.badge-neutral {
  background: var(--neutral-bg);
  color: var(--neutral);
  border-color: var(--neutral-border);
}
.badge-orange {
  background: #f6ede0;
  color: #7A3200;
  border-color: #DEBA90;
}
.badge-purple {
  background: #F0ECFA;
  color: #4C2E96;
  border-color: #C4ACEA;
}
.badge-forest {
  background: var(--mamba-50);
  color: var(--mamba-700);
  border-color: var(--mamba-200);
}
.badge-gold {
  background: var(--gold-50);
  color: var(--gold-700);
  border-color: var(--gold-300);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 17px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1;
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn:focus-visible {
  outline: 2px solid var(--mamba-400);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--mamba-600);
  color: #fff;
  border-color: var(--mamba-600);
  box-shadow: 0 2px 6px rgba(56, 96, 72, 0.24);
}
.btn-primary:hover:not(:disabled) {
  background: var(--mamba-700);
  border-color: var(--mamba-700);
  box-shadow: 0 4px 14px rgba(56, 96, 72, 0.34);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-accent {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
  box-shadow: 0 2px 8px rgba(181, 90, 24, 0.28);
}
.btn-accent:hover:not(:disabled) {
  background: var(--gold-600);
  border-color: var(--gold-600);
  box-shadow: var(--shadow-copper);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 2px 6px rgba(136, 26, 26, 0.22);
}
.btn-danger:hover:not(:disabled) {
  background: #761616;
  border-color: #761616;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--mamba-700);
  border-color: var(--mamba-300);
}
.btn-outline:hover:not(:disabled) {
  background: var(--mamba-50);
  color: var(--mamba-800);
  border-color: var(--mamba-400);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-500);
  border-color: var(--border-base);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-wash);
  color: var(--ink-700);
  border-color: var(--border-strong);
  text-decoration: none;
}
.btn-sm {
  padding: 4px 11px;
  font-size: 11.5px;
  border-radius: 5px;
}
.btn-lg {
  padding: 11px 24px;
  font-size: 14px;
  border-radius: var(--radius-lg);
}
.form-input,
.form-label + input,
.form-label + select {
  padding: 9px 13px;
  border: 1.5px solid var(--border-base);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--surface-paper);
  color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: auto;
  width: 100%;
}
.form-input:focus {
  border-color: var(--mamba-500);
  box-shadow: 0 0 0 3px rgba(76, 124, 97, 0.14);
}
.form-input::placeholder {
  color: var(--ink-300);
  font-weight: 400;
}
.form-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
  font-family: var(--font-body);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid .third {
  grid-column: span 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: var(--font-body);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 13px;
  border: 1.5px solid var(--border-base);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: var(--font-body);
  width: 100%;
  background: var(--surface-paper);
  color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mamba-500);
  box-shadow: 0 0 0 3px rgba(76, 124, 97, 0.14);
}
.form-group input::placeholder {
  color: var(--ink-300);
  font-weight: 400;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.form-group .hint {
  font-size: 11px;
  color: var(--ink-400);
}
.form-group .hint.danger {
  color: var(--danger);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-variation-settings: "opsz" 14, "WONK" 0;
}
.form-section-title .fst-num {
  width: 22px;
  height: 22px;
  background: var(--mamba-600);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  background: var(--surface-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
}
.filters-bar input,
.filters-bar select {
  padding: 7px 12px;
  border: 1.5px solid var(--border-base);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--surface-bg);
  color: var(--ink-900);
  min-width: 150px;
  transition: border-color var(--t-fast);
  outline: none;
  appearance: auto;
}
.filters-bar input:focus,
.filters-bar select:focus {
  border-color: var(--mamba-500);
  background: var(--surface-paper);
}
.filters-bar .spacer {
  flex: 1;
}
.filters-bar .count {
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 500;
  white-space: nowrap;
}
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
  font-family: var(--font-body);
  border-left-width: 3px;
}
.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.alert-danger,
.alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}
.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-item .di-label {
  font-size: 9.5px;
  color: var(--ink-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-body);
}
.detail-item .di-value {
  font-size: 13.5px;
  color: var(--ink-700);
  font-weight: 500;
  line-height: 1.4;
  font-family: var(--font-body);
}
.detail-item .di-value.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-wash);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--border-light);
}
.workflow-bar {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-base);
  margin-bottom: 22px;
  background: var(--surface-paper);
  box-shadow: var(--shadow-xs);
}
.wf-step {
  flex: 1;
  padding: 13px 8px 11px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  border-right: 1px solid var(--border-light);
  color: var(--ink-400);
  background: var(--surface-bg);
  transition: background var(--t-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.wf-step:last-child {
  border-right: none;
}
.wf-step .wf-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-base);
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all var(--t-base);
}
.wf-step.done {
  background: var(--mamba-50);
  color: var(--success);
}
.wf-step.done .wf-num {
  background: var(--success-mid);
  color: #fff;
}
.wf-step.current {
  background: var(--gold-50);
  color: var(--warning);
}
.wf-step.current .wf-num {
  background: var(--gold-500);
  color: #fff;
  box-shadow: 0 2px 8px rgba(181, 90, 24, 0.36);
}
.wf-step.rejected {
  background: var(--danger-bg);
  color: var(--danger);
}
.wf-step.rejected .wf-num {
  background: var(--danger);
  color: #fff;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--ink-400);
  gap: 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
}
.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-base);
  border-top-color: var(--mamba-500);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-400);
  font-family: var(--font-body);
}
.empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: 0.4;
  display: block;
}
.empty-state strong {
  display: block;
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 15, "WONK" 0;
}
.empty-state p {
  font-size: 13px;
  margin-top: 4px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 9, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-box,
.modal-card {
  background: var(--surface-paper);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
  border: 1px solid var(--border-base);
}
@keyframes slideUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header,
.modal-title {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  font-variation-settings: "opsz" 16, "WONK" 0;
}
.modal-header .close {
  margin-left: auto;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-400);
  border: none;
  background: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.modal-header .close:hover {
  background: var(--surface-wash);
}
.modal-body {
  padding: 22px;
}
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--ink-400);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning);
}
.flex-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
.info-panel {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  border-left-width: 3px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--info);
  line-height: 1.6;
  font-family: var(--font-body);
}
.info-panel strong {
  font-weight: 700;
}
.warning-panel {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  border-left-width: 3px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--warning);
  line-height: 1.6;
  font-family: var(--font-body);
}
.back-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-base);
  background: var(--surface-paper);
  transition: all var(--t-fast);
  font-family: var(--font-body);
}
.back-btn:hover {
  background: var(--surface-wash);
  color: var(--ink-700);
}
.breadcrumb-sep {
  color: var(--border-strong);
  font-size: 14px;
}
.breadcrumb-current {
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
  font-family: var(--font-body);
}
.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.breakdown-row:last-child {
  border-bottom: none;
}
.breakdown-label {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink-500);
  font-family: var(--font-body);
}
.breakdown-bar-wrap {
  flex: 2;
  height: 5px;
  background: var(--surface-wash);
  border-radius: 10px;
  overflow: hidden;
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 10px;
  background:
    linear-gradient(
      90deg,
      var(--mamba-600),
      var(--mamba-400));
  transition: width 0.5s ease;
}
.breakdown-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  min-width: 58px;
  text-align: right;
}
.upload-progress-bar {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}
.upload-progress-fill {
  background: #fff;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.cert-card {
  background:
    linear-gradient(
      145deg,
      var(--mamba-800) 0%,
      var(--mamba-600) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cert-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.cert-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(181, 90, 24, 0.12);
  border-radius: 50%;
}
.cert-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-300);
  margin-bottom: 8px;
  letter-spacing: 1.2px;
}
.cert-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
  font-variation-settings: "opsz" 22, "WONK" 0;
}
.login-page {
  min-height: 100vh;
  background: #0F1710;
  background-image:
    radial-gradient(
      circle at 14% 28%,
      rgba(181, 90, 24, 0.14) 0%,
      transparent 44%),
    radial-gradient(
      circle at 86% 72%,
      rgba(76, 124, 97, 0.12) 0%,
      transparent 44%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.014) 35px,
      rgba(255, 255, 255, 0.014) 36px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.014) 35px,
      rgba(255, 255, 255, 0.014) 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--surface-paper);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 28px 72px rgba(15, 23, 16, 0.56), 0 4px 16px rgba(15, 23, 16, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo-icon {
  width: 58px;
  height: 58px;
  background:
    linear-gradient(
      145deg,
      var(--gold-400),
      var(--gold-600));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 22px rgba(181, 90, 24, 0.4);
}
.login-logo h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.2px;
  font-variation-settings: "opsz" 28, "WONK" 0;
}
.login-logo p {
  font-size: 11.5px;
  color: var(--ink-400);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-family: var(--font-body);
}
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .main-content {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .topbar-title {
    font-size: 14px;
  }
}
.hom-dossier-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
.hom-action-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.hom-action-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hom-pipeline-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hom-pipeline-card {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 8px;
}
.hom-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.hom-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.hom-timeline-step .step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.hom-timeline-step .step-label {
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
}
.hom-timeline-connector {
  flex: 1;
  height: 3px;
  margin-bottom: 22px;
}
.hom-chips-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hom-secteur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.hom-secteur-card {
  background: var(--surface-paper);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.hom-secteur-card:hover {
  box-shadow: var(--shadow);
}
.hom-secteur-card-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hom-secteur-card-body {
  padding: 12px 16px;
}
.stat-chip-orange {
  border-color: #CD7A30;
  color: #7A3200;
}
.stat-chip-orange.active {
  background: #F6EDDE;
}
@media (max-width: 900px) {
  .hom-dossier-grid {
    grid-template-columns: 1fr;
  }
  .hom-action-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .hom-pipeline-card {
    min-width: 120px;
  }
}
@media (max-width: 640px) {
  .hom-dossier-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hom-action-grid-3 {
    grid-template-columns: 1fr;
  }
  .hom-action-grid-2 {
    grid-template-columns: 1fr;
  }
  .hom-pipeline-grid {
    flex-direction: column;
  }
  .hom-pipeline-card {
    min-width: auto;
  }
  .hom-timeline-step {
    min-width: 70px;
  }
  .hom-secteur-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .page-header > div:last-child {
    width: 100%;
  }
  .page-header > div:last-child .btn {
    width: 100%;
    justify-content: center;
  }
  .filters-bar {
    flex-direction: column;
  }
  .filters-bar input,
  .filters-bar select {
    width: 100%;
  }
  .table-responsive table th:nth-child(n+5),
  .table-responsive table td:nth-child(n+5) {
    display: none;
  }
}
.text-nowrap {
  white-space: nowrap;
}
.table-cell-nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface-wash);
  border: 1.5px solid var(--border-base);
  color: var(--ink-500);
  transition: all var(--t-fast);
  font-family: var(--font-body);
}
.stat-chip.active,
.stat-chip:hover {
  border-color: var(--mamba-400);
  background: var(--mamba-50);
  color: var(--mamba-700);
}
.stat-chip-warning {
  border-color: var(--warning-border);
  color: var(--warning);
}
.stat-chip-warning.active {
  background: var(--warning-bg);
}
.stat-chip-success {
  border-color: var(--success-border);
  color: var(--success);
}
.stat-chip-success.active {
  background: var(--success-bg);
}
.stat-chip-danger {
  border-color: var(--danger-border);
  color: var(--danger);
}
.stat-chip-danger.active {
  background: var(--danger-bg);
}
tr.table-row-warning td {
  background: var(--warning-bg) !important;
}
tr.table-row-danger td {
  background: var(--danger-bg) !important;
}
.badge-yellow {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}
.badge-red {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

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