/* Port Logic Tramp - design system bundle.
   GENERATED by scripts/ui/build_ui.mjs from portlogic-ui/apps/aviation. Do not edit by hand. */

/* ===== global (aviation + hub design system) ===== */


/* ============================================================
   Port Logic Aviation — Premium White Design System
   Clean Enterprise Light Theme
   ============================================================ */

:root {
  --pl-accent: #2563eb;
  --pl-accent-light: #3b82f6;
  --pl-accent-dim: rgba(37, 99, 235, 0.12);
  --pl-accent-hover: #1d4ed8;
  --pl-danger: #ef4444;
  --pl-danger-dim: rgba(239, 68, 68, 0.1);
  --pl-success: #10b981;
  --pl-success-dim: rgba(16, 185, 129, 0.1);
  --pl-warning: #f59e0b;
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-mid: 220ms;
  --dur-slow: 380ms;
  --sidebar-w: 240px;
  --topbar-h: 60px;
}

[data-theme=dark] {
  --bg-app: #0a0c11;
  --bg-surface: #13161f;
  --bg-elevated: #1c2030;
  --bg-overlay: #222638;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-active: rgba(37, 99, 235, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(37, 99, 235, 0.6);
  --text-primary: #f0f2f5;
  --text-secondary: #8a9099;
  --text-muted: #505560;
  --text-inverse: #0a0c10;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme=light] {
  --bg-app: #f0f2f5;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-active: rgba(37, 99, 235, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(37, 99, 235, 0.5);
  --text-primary: #0d1117;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
}
[data-theme=light] .pl-card {
  box-shadow: var(--shadow-sm);
}
[data-theme=light] .pl-table-wrap {
  box-shadow: var(--shadow-sm);
}
[data-theme=light] .sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 1px 0 4px rgba(37, 24, 24, 0.06);
}
[data-theme=light] .topnav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-app);
  transition: background var(--dur-mid) var(--ease), color var(--dur-mid) var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

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

a:hover {
  color: var(--pl-accent-light);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.pl-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-app);
}

.pl-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--dur-slow) var(--ease);
  z-index: 100;
}

.pl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pl-topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
  z-index: 50;
}

.pl-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-8);
  scroll-behavior: smooth;
}
.pl-content::-webkit-scrollbar {
  width: 6px;
}
.pl-content::-webkit-scrollbar-track {
  background: transparent;
}
.pl-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.pl-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.pl-logo {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.pl-logo__mark {
  width: 30px;
  height: 30px;
  background: var(--pl-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pl-logo__mark svg {
  width: 16px;
  height: 16px;
  fill: white;
}
.pl-logo__text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.pl-logo__text span {
  color: var(--pl-accent);
}

.pl-nav {
  flex: 1;
  padding: var(--sp-4) var(--sp-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-nav__section-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
}

.pl-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.pl-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pl-nav-item.active, .pl-nav-item--active {
  background: var(--bg-active);
  color: var(--pl-accent);
  font-weight: 600;
}
.pl-nav-item.active .pl-nav-item__icon, .pl-nav-item--active .pl-nav-item__icon {
  color: var(--pl-accent);
}
.pl-nav-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease);
}
.pl-nav-item:hover .pl-nav-item__icon, .pl-nav-item.active .pl-nav-item__icon {
  opacity: 1;
}

.pl-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  padding-top: var(--sp-2);
}
.pl-page-header__left {
  flex: 1;
  min-width: 200px;
}
.pl-page-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.pl-page-header__subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}
.pl-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  padding-top: var(--sp-1);
}

.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  height: 34px;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.pl-btn--primary {
  background: var(--pl-accent);
  color: #fff;
}
.pl-btn--primary:hover {
  background: var(--pl-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.pl-btn--primary:active {
  transform: translateY(0);
}
.pl-btn--secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.pl-btn--secondary:hover {
  border-color: var(--text-secondary);
}
.pl-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.pl-btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pl-btn--danger {
  background: var(--pl-danger-dim);
  color: var(--pl-danger);
}
.pl-btn--danger:hover {
  background: var(--pl-danger);
  color: white;
}
.pl-btn--sm {
  padding: 5px 12px;
  font-size: 12.5px;
}
.pl-btn--icon {
  padding: 7px;
}
.pl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.pl-card:hover {
  box-shadow: var(--shadow-md);
}
.pl-card__header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.pl-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.pl-card__body {
  padding: var(--sp-6);
}
.pl-card__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--bg-hover);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.pl-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.pl-stat-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.pl-stat-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.pl-stat-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-accent-dim);
  color: var(--pl-accent);
}
.pl-stat-card__content {
  min-width: 0;
}
.pl-stat-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pl-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1;
}
.pl-stat-card--success .pl-stat-card__icon {
  background: var(--pl-success-dim);
  color: var(--pl-success);
}
.pl-stat-card--success .pl-stat-card__value {
  color: var(--pl-success);
}
.pl-stat-card--danger .pl-stat-card__icon {
  background: var(--pl-danger-dim);
  color: var(--pl-danger);
}
.pl-stat-card--danger .pl-stat-card__value {
  color: var(--pl-danger);
}
.pl-stat-card--warning .pl-stat-card__icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--pl-warning);
}
.pl-stat-card--warning .pl-stat-card__value {
  color: var(--pl-warning);
}

.pl-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-surface);
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
}
.pl-table thead tr {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.pl-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.pl-table td {
  padding: var(--sp-4) var(--sp-5);
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.pl-table tbody tr {
  transition: background var(--dur-fast) var(--ease);
}
.pl-table tbody tr:hover {
  background: var(--bg-hover);
}
.pl-table tbody tr:last-child td {
  border-bottom: none;
}

.pl-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.pl-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.pl-input, .pl-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pl-input::placeholder, .pl-select::placeholder {
  color: var(--text-muted);
}
.pl-input:focus, .pl-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--pl-accent-dim);
}
.pl-input--error {
  border-color: var(--pl-danger);
  box-shadow: 0 0 0 3px var(--pl-danger-dim);
}
.pl-input[readonly], [readonly].pl-select, .pl-input:disabled, .pl-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pl-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9099' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.pl-field-error {
  font-size: 12px;
  color: var(--pl-danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pl-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}
.pl-badge--active {
  background: var(--pl-success-dim);
  color: var(--pl-success);
}
.pl-badge--inactive {
  background: var(--bg-hover);
  color: var(--text-muted);
}
.pl-badge--warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--pl-warning);
}
.pl-badge--danger {
  background: var(--pl-danger-dim);
  color: var(--pl-danger);
}
.pl-badge--accent {
  background: var(--pl-accent-dim);
  color: var(--pl-accent);
}
.pl-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pl-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.pl-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.pl-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pl-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}
.pl-module-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pl-module-card:hover::before {
  transform: scaleX(1);
}
.pl-module-card:hover .pl-module-card__icon {
  background: var(--pl-accent);
  color: white;
}
.pl-module-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--pl-accent-dim);
  color: var(--pl-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-mid) var(--ease);
  flex-shrink: 0;
}
.pl-module-card__icon svg {
  width: 22px;
  height: 22px;
}
.pl-module-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.pl-module-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.pl-module-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.pl-module-card__version {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--bg-hover);
  border-radius: 99px;
  color: var(--text-muted);
}

.pl-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pl-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--pl-accent-dim);
}
.pl-search__icon {
  color: var(--text-muted);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.pl-search input {
  border: none;
  height: 100%;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  flex: 1;
  min-width: 0;
}
.pl-search input::placeholder {
  color: var(--text-muted);
}

.pl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.pl-toolbar__left, .pl-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.pl-toolbar-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pl-toolbar-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--pl-accent-dim);
}
.pl-toolbar-search__icon {
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.pl-toolbar-search input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  width: 200px;
}
.pl-toolbar-search input::placeholder {
  color: var(--text-muted);
}

.pl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--dur-fast) var(--ease);
  pointer-events: none;
}
.pl-overlay > * {
  pointer-events: all;
}

.pl-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 540px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp var(--dur-mid) var(--ease);
}
.pl-modal__header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.pl-modal__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.pl-modal__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pl-modal__close {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-hover);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}
.pl-modal__close:hover {
  background: var(--pl-danger-dim);
  color: var(--pl-danger);
}
.pl-modal__body {
  padding: var(--sp-6);
  overflow-y: auto;
  flex: 1;
}
.pl-modal__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.pl-module-card__version {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
}

.pl-toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pl-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight var(--dur-mid) var(--ease);
}
.pl-toast__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.pl-toast__body {
  flex: 1;
}
.pl-toast__title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}
.pl-toast__msg {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pl-toast--success {
  border-left: 3px solid var(--pl-success);
}
.pl-toast--success .pl-toast__icon {
  color: var(--pl-success);
}
.pl-toast--error {
  border-left: 3px solid var(--pl-danger);
}
.pl-toast--error .pl-toast__icon {
  color: var(--pl-danger);
}
.pl-toast--info {
  border-left: 3px solid var(--pl-accent);
}
.pl-toast--info .pl-toast__icon {
  color: var(--pl-accent);
}

.pl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
}
.pl-pagination__info {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.pl-pagination__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.pl-pagination__btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.pl-pagination__btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pl-pagination__btn--active {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
  color: white;
  font-weight: 600;
}
.pl-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  gap: var(--sp-4);
}
.pl-empty__icon {
  width: 56px;
  height: 56px;
  background: var(--bg-hover);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.pl-empty__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.pl-empty__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 280px;
}

.pl-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.pl-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.pl-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.pl-toggle__slider::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.pl-toggle input:checked + .pl-toggle__slider {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
}
.pl-toggle input:checked + .pl-toggle__slider::after {
  left: calc(100% - 16px);
  background: white;
}

.pl-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.pl-checkbox:checked {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
}
.pl-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
[data-tooltip]:hover::after {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.pl-animate-in {
  animation: slideUp var(--dur-mid) var(--ease) both;
}
.pl-animate-in:nth-child(1) {
  animation-delay: 0ms;
}
.pl-animate-in:nth-child(2) {
  animation-delay: 40ms;
}
.pl-animate-in:nth-child(3) {
  animation-delay: 80ms;
}
.pl-animate-in:nth-child(4) {
  animation-delay: 120ms;
}
.pl-animate-in:nth-child(5) {
  animation-delay: 160ms;
}
.pl-animate-in:nth-child(6) {
  animation-delay: 200ms;
}
.pl-animate-in:nth-child(7) {
  animation-delay: 240ms;
}
.pl-animate-in:nth-child(8) {
  animation-delay: 280ms;
}
.pl-animate-in:nth-child(9) {
  animation-delay: 320ms;
}
.pl-animate-in:nth-child(10) {
  animation-delay: 360ms;
}
.pl-animate-in:nth-child(11) {
  animation-delay: 400ms;
}
.pl-animate-in:nth-child(12) {
  animation-delay: 440ms;
}

.pl-flex {
  display: flex;
}

.pl-flex-col {
  display: flex;
  flex-direction: column;
}

.pl-items-center {
  align-items: center;
}

.pl-justify-between {
  justify-content: space-between;
}

.pl-gap-2 {
  gap: var(--sp-2);
}

.pl-gap-3 {
  gap: var(--sp-3);
}

.pl-gap-4 {
  gap: var(--sp-4);
}

.pl-gap-6 {
  gap: var(--sp-6);
}

.pl-w-full {
  width: 100%;
}

.pl-text-muted {
  color: var(--text-muted);
}

.pl-text-sm {
  font-size: 12.5px;
}

.pl-font-mono {
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.pl-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pl-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

.pl-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 720px) {
  .pl-grid-2 {
    grid-template-columns: 1fr;
  }
}

.pl-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 720px) {
  .pl-grid-3 {
    grid-template-columns: 1fr;
  }
}

.pl-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--pl-accent);
  animation: pl-spin 0.7s linear infinite;
  flex-shrink: 0;
  display: inline-block;
}
.pl-spinner--sm {
  width: 13px;
  height: 13px;
}
.pl-spinner--lg {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

@keyframes pl-spin {
  to {
    transform: rotate(360deg);
  }
}
.pl-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.pl-input[rows], [rows].pl-select,
textarea.pl-input,
textarea.pl-select {
  height: auto;
  min-height: 88px;
  padding: 9px 12px;
  resize: vertical;
  line-height: 1.5;
}

.pl-page-header {
  padding-top: var(--sp-2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.pl-page-header__left {
  min-width: 200px;
}
.pl-page-header__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.pl-page-header__subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}
.pl-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.pl-confirm {
  text-align: center;
  padding: var(--sp-6);
}
.pl-confirm .confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pl-danger-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  margin: 0 auto var(--sp-4);
}
.pl-confirm h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.pl-confirm p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.td-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
}

.perm-col {
  text-align: center;
  width: 60px;
}

.pl-btn--icon {
  width: 30px;
  padding: 0;
  justify-content: center;
}
.pl-btn--icon.pl-btn--sm {
  width: 26px;
}

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --bg-app: #f4f7fa;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-overlay: #f8fafc;
  --bg-hover: rgba(0, 0, 0, 0.03);
  --bg-active: rgba(37, 99, 235, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(37, 99, 235, 0.5);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sidebar {
  --bg-surface: #0f172a;
  --bg-elevated: #1a2540;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-active: rgba(37, 99, 235, 0.18);
  --border: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f2f5;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Design Tokens (CSS Custom Properties)
   Same premium-white token set used by Aviation, required by
   the shared MainLayoutComponent/LoginComponent SCSS.
   ============================================================ */
:root {
  /* ── Backgrounds ── */
  --bg-base: #f1f5f9;
  --bg-primary: #f4f7fa;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --bg-overlay: #f8fafc;
  --bg-hover: rgba(0, 0, 0, 0.03);
  /* ── Accent: Brand Blue ── */
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.16);
  --blue-bg: rgba(37, 99, 235, 0.06);
  /* ── Accent: Amber ── */
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-dark: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.16);
  --gold-bg: rgba(217, 119, 6, 0.06);
  /* ── Text ── */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-disabled: #d1d5db;
  --text-inverted: #ffffff;
  /* ── Semantic ── */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
  --success-bg: rgba(5, 150, 105, 0.07);
  --warning-bg: rgba(217, 119, 6, 0.07);
  --error-bg: rgba(220, 38, 38, 0.07);
  --info-bg: rgba(37, 99, 235, 0.07);
  /* ── Borders ── */
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-light: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-gold: rgba(217, 119, 6, 0.28);
  --border-blue: rgba(37, 99, 235, 0.25);
  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.10), 0 8px 16px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.07);
  /* ── Border Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.375rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  /* ── Typography ── */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  /* ── Transitions ── */
  --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* ── Z-Index Layers ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

.pl-card,
.pl-module-card,
.pl-table-wrap {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pl-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.pl-module-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

body {
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--text-primary);
}

.pl-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}
.pl-alert--error {
  background: var(--pl-danger-dim, rgba(239, 68, 68, 0.1));
  color: var(--pl-danger, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.pl-alert--success {
  background: var(--pl-success-dim, rgba(16, 185, 129, 0.1));
  color: var(--pl-success, #059669);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.pl-alert--info {
  background: var(--pl-accent-dim, rgba(37, 99, 235, 0.08));
  color: var(--pl-accent, #2563eb);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pl-credit-exposure {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg, 10px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.pl-credit-exposure--loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted, #6b7280);
  font-size: 13px;
}
.pl-credit-exposure__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e40af;
  margin-bottom: 0.875rem;
}
.pl-credit-exposure__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .pl-credit-exposure__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pl-credit-exposure__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pl-credit-exposure__kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b82f6;
}
.pl-credit-exposure__kpi-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  font-variant-numeric: tabular-nums;
}
.pl-credit-exposure__kpi-value--warn {
  color: #d97706;
}
.pl-credit-exposure__kpi-value--ok {
  color: #059669;
}
.pl-credit-exposure__util-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pl-credit-exposure__util-bar {
  flex: 1;
  height: 6px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
.pl-credit-exposure__util-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 99px;
  transition: width 0.3s ease;
}
.pl-credit-exposure__util-fill--warn {
  background: #f59e0b;
}
.pl-credit-exposure__util-fill--danger {
  background: #ef4444;
}
.pl-credit-exposure__util-pct {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;
}

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Inter', monospace;
  --bg-app: #f4f7fa;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-overlay: #f8fafc;
  --bg-hover: rgba(0, 0, 0, 0.03);
  --bg-active: rgba(37, 99, 235, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(37, 99, 235, 0.5);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Design Tokens (CSS Custom Properties)
   ============================================================ */
:root {
  /* ── Backgrounds ── */
  --bg-base: #f1f5f9;
  --bg-primary: #f4f7fa;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --bg-overlay: #f8fafc;
  --bg-hover: rgba(0, 0, 0, 0.03);
  /* ── Accent: Brand Blue ── */
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.16);
  --blue-bg: rgba(37, 99, 235, 0.06);
  /* ── Accent: Aviation Amber ── */
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-dark: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.16);
  --gold-bg: rgba(217, 119, 6, 0.06);
  /* ── Text ── */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-disabled: #d1d5db;
  --text-inverted: #ffffff;
  /* ── Status Colors ── */
  --status-open: #2563eb;
  --status-open-bg: rgba(37, 99, 235, 0.07);
  --status-open-border: rgba(37, 99, 235, 0.20);
  --status-pending: #d97706;
  --status-pending-bg: rgba(217, 119, 6, 0.07);
  --status-pending-border: rgba(217, 119, 6, 0.22);
  --status-overdue: #dc2626;
  --status-overdue-bg: rgba(220, 38, 38, 0.07);
  --status-overdue-border: rgba(220, 38, 38, 0.22);
  --status-closed: #059669;
  --status-closed-bg: rgba(5, 150, 105, 0.07);
  --status-closed-border: rgba(5, 150, 105, 0.20);
  --status-approved: #7c3aed;
  --status-approved-bg: rgba(124, 58, 237, 0.07);
  --status-paid: #059669;
  --status-paid-bg: rgba(5, 150, 105, 0.07);
  --status-paid-border: rgba(5, 150, 105, 0.20);
  --status-unpaid: #d97706;
  --status-unpaid-bg: rgba(217, 119, 6, 0.07);
  --status-unpaid-border: rgba(217, 119, 6, 0.22);
  /* ── Semantic ── */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
  --success-bg: rgba(5, 150, 105, 0.07);
  --warning-bg: rgba(217, 119, 6, 0.07);
  --error-bg: rgba(220, 38, 38, 0.07);
  --info-bg: rgba(37, 99, 235, 0.07);
  /* ── Borders ── */
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-light: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-gold: rgba(217, 119, 6, 0.28);
  --border-blue: rgba(37, 99, 235, 0.25);
  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.10), 0 8px 16px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.07);
  /* ── Glows ── */
  --glow-blue: 0 0 20px rgba(37, 99, 235, 0.20), 0 0 6px rgba(37, 99, 235, 0.12);
  --glow-gold: 0 0 20px rgba(217, 119, 6, 0.20), 0 0 6px rgba(217, 119, 6, 0.12);
  --glow-green: 0 0 20px rgba(5, 150, 105, 0.20), 0 0 6px rgba(5, 150, 105, 0.12);
  --glow-red: 0 0 20px rgba(220, 38, 38, 0.20), 0 0 6px rgba(220, 38, 38, 0.12);
  /* ── Spacing (8px grid) ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  /* ── Border Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.375rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  /* ── Typography ── */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  /* ── Transitions ── */
  --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* ── Z-Index Layers ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100%;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--ease-fast);
}
a:hover {
  color: var(--blue-dark);
}

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

button {
  font-family: var(--font-body);
}

input, select, textarea {
  font-family: var(--font-body);
}

/* ============================================================
   Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Global Animations
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
@keyframes radarRing {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* ============================================================
   Shared Badge System
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-open {
  background: var(--status-open-bg);
  color: var(--status-open);
  border-color: var(--status-open-border);
}
.badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border-color: var(--status-pending-border);
}
.badge-overdue {
  background: var(--status-overdue-bg);
  color: var(--status-overdue);
  border-color: var(--status-overdue-border);
}
.badge-closed {
  background: var(--status-closed-bg);
  color: var(--status-closed);
  border-color: var(--status-closed-border);
}
.badge-paid {
  background: var(--status-paid-bg);
  color: var(--status-paid);
  border-color: var(--status-paid-border);
}
.badge-unpaid {
  background: var(--status-unpaid-bg);
  color: var(--status-unpaid);
  border-color: var(--status-unpaid-border);
}
.badge-approved {
  background: var(--status-approved-bg);
  color: var(--status-approved);
  border-color: rgba(124, 58, 237, 0.22);
}

/* ============================================================
   Shared Button System
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--ease-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--ease-fast);
}
.btn:hover::after {
  background: rgba(0, 0, 0, 0.04);
}
.btn:active::after {
  background: rgba(0, 0, 0, 0.08);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn {
  /* Variants */
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--gold-glow);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--gold-glow);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--blue-glow);
}
.btn-blue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--blue-glow);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #b91c1c 100%);
  color: white;
}
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.btn {
  /* Sizes */
}
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}
.btn-lg {
  padding: 0.875rem 1.875rem;
  font-size: var(--text-base);
}
.btn-xl {
  padding: 1.125rem 2.25rem;
  font-size: var(--text-lg);
}
.btn-full {
  width: 100%;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: all var(--ease-normal);
  appearance: none;
}
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-strong);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}
.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px var(--error-bg);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-base);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================================
   Data Table
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table thead th {
  padding: 0.8125rem 1rem;
  text-align: left;
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.data-table tbody td {
  padding: 0.9375rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--ease-fast);
}
.data-table tbody tr:hover td {
  background: var(--bg-hover);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   Card Base
   ============================================================ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Glass Helper
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Spinner / Loading
   ============================================================ */
.spinner {
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-base) 0%, rgba(0, 0, 0, 0.04) 50%, var(--bg-base) 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Notification Component
   ============================================================ */
.notification-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.3s var(--ease-normal);
}
.notification-success {
  border-left: 3px solid var(--success);
}
.notification-error {
  border-left: 3px solid var(--error);
}
.notification-warning {
  border-left: 3px solid var(--warning);
}
.notification-info {
  border-left: 3px solid var(--info);
}

/* ============================================================
   Utilities
   ============================================================ */
.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-blue {
  color: var(--blue) !important;
}

.text-green {
  color: var(--success) !important;
}

.text-red {
  color: var(--error) !important;
}

.text-amber {
  color: var(--warning) !important;
}

.font-display {
  font-family: var(--font-display) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.font-bold {
  font-weight: 700 !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.font-medium {
  font-weight: 500 !important;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ============================================================
   Global Status Badges — sbadge system
   Used by jobs, invoices, payments etc.
   Lives here so Angular view-encapsulation never blocks it.
   ============================================================ */
.sbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
}

.sbadge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sbadge--open {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}
.sbadge--open .sbadge__dot {
  background: #2563eb;
}

.sbadge--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.25);
}
.sbadge--pending .sbadge__dot {
  background: #d97706;
}

.sbadge--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.sbadge--overdue .sbadge__dot {
  background: #dc2626;
}

.sbadge--closed {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.sbadge--closed .sbadge__dot {
  background: #059669;
}

.sbadge--approved {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.2);
}
.sbadge--approved .sbadge__dot {
  background: #7c3aed;
}

.sbadge--active {
  background: #ecfdf5;
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
}
.sbadge--active .sbadge__dot {
  background: #10b981;
  animation: sbadgePulse 1.8s ease-in-out infinite;
}

.sbadge--draft {
  background: #f3f4f6;
  color: #6b7280;
  border-color: rgba(0, 0, 0, 0.1);
}
.sbadge--draft .sbadge__dot {
  background: #9ca3af;
}

.sbadge--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.sbadge--paid .sbadge__dot {
  background: #059669;
}

.sbadge--unpaid {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.25);
}
.sbadge--unpaid .sbadge__dot {
  background: #d97706;
}

.sbadge--neutral {
  background: #f1f5f9;
  color: #64748b;
  border-color: rgba(0, 0, 0, 0.08);
}
.sbadge--neutral .sbadge__dot {
  background: #94a3b8;
}

@keyframes sbadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}
/* ============================================================
   Global Flight / Airport Chips
   ============================================================ */
.flight-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.airport-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   Global Entrance Animations — fade-in-up with --delay
   ============================================================ */
@keyframes globalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: globalSlideUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

/* ============================================================
   Global KPI Icon Boxes
   ============================================================ */
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.kpi-icon--green {
  background: #d1fae5;
  color: #059669;
}

.kpi-icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.kpi-icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.kpi-icon--purple {
  background: #ede9fe;
  color: #6d28d9;
}

/* ============================================================
   Global Table + Card helpers (used by multiple pages)
   ============================================================ */
.table-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* ============================================================
   Premium Toast Overrides — Aviation Design Language
   ============================================================ */
.pl-toast-container {
  bottom: 1.5rem;
  right: 1.5rem;
  gap: 0.625rem;
}

.pl-toast {
  min-width: 300px;
  max-width: 420px;
  border-radius: 0.875rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pl-toast__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.pl-toast__msg {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.pl-toast--success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}
.pl-toast--success .pl-toast__icon {
  color: #10b981;
}
.pl-toast--error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.pl-toast--error .pl-toast__icon {
  color: #ef4444;
}
.pl-toast--info {
  border-left: 4px solid #2563eb;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}
.pl-toast--info .pl-toast__icon {
  color: #2563eb;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
/* ============================================================
   Global Empty State — shared across list pages
   ============================================================ */
.pl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
  gap: 0.75rem;
}
.pl-empty__icon {
  width: 56px;
  height: 56px;
  background: #f0f4ff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  margin-bottom: 0.25rem;
}
.pl-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}
.pl-empty__sub {
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 320px;
  line-height: 1.5;
}
.pl-empty__action {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pl-empty__action:hover {
  background: #1d4ed8;
}


/* ===== layout ===== */
/* ============================================================
   Main Layout — Dark Sidebar + White Content Area
   ============================================================ */
/* ── Shell ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

/* ── Mobile backdrop overlay ── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: calc(var(--z-sticky) - 1);
  animation: fadeIn 0.25s var(--ease-normal);
}

/* ============================================================
   SIDEBAR — Dark Navy
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 260px;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sticky);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  /* Subtle accent line on right edge */
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.4) 35%, rgba(217, 119, 6, 0.3) 65%, transparent 100%);
}
.sidebar--open {
  transform: translateX(0);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}

/* ── Brand ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  min-height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.brand-logo__icon {
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}
.brand-logo__icon svg {
  display: block;
}

.brand-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-logo__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-logo__sub {
  font-size: 0.56rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-close-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.sidebar-close-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

/* ── Navigation ── */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-group {
  margin-bottom: 1.5rem;
}
.nav-group:last-child {
  margin-bottom: 0;
}

.nav-group__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.25rem 0.5rem;
  font-size: 0.63rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--ease-fast);
  position: relative;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(37, 99, 235, 0.5);
}
.nav-link:hover .nav-link__icon {
  opacity: 1;
  color: #93c5fd;
}
.nav-link.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-left-color: #f59e0b;
}
.nav-link.active .nav-link__icon {
  opacity: 1;
  color: #f59e0b;
}

.nav-link__icon {
  flex-shrink: 0;
  opacity: 0.55;
  display: flex;
  align-items: center;
  transition: all var(--ease-fast);
}
.nav-link__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.nav-link__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.125rem 0.4rem;
  border-radius: var(--radius-full);
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

/* ── User Profile ── */
.sidebar-user {
  padding: 0.875rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--ease-fast);
  user-select: none;
}
.user-trigger:hover, .user-trigger--open {
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #2563eb 0%, #b45309 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-role {
  font-size: var(--text-xs);
  color: #f59e0b;
  white-space: nowrap;
  font-weight: 500;
}

.user-chevron {
  color: rgba(255, 255, 255, 0.3);
  transition: transform var(--ease-normal);
  flex-shrink: 0;
}
.user-chevron.rotated {
  transform: rotate(180deg);
}

/* User Dropdown — stays on dark bg */
.user-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0.5rem;
  right: 0.5rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: fadeInUp 0.2s var(--ease-normal) both;
  z-index: 10;
}

.user-dropdown__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-dropdown__avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb 0%, #b45309 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-dropdown__details {
  flex: 1;
  min-width: 0;
}

.user-dropdown__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__email {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--ease-fast);
}
.user-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}
.user-dropdown__item svg {
  opacity: 0.5;
  flex-shrink: 0;
}
.user-dropdown__item--danger {
  color: #fca5a5;
}
.user-dropdown__item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.user-dropdown__item--danger svg {
  opacity: 0.8;
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

/* ── Top Header — Dark ── */
.top-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  height: 62px;
  min-height: 62px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  flex: 1;
  min-width: 0;
}

.breadcrumb__home {
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.breadcrumb__current {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  white-space: nowrap;
}

.module-btn {
  height: 28px;
  padding: 0 0.625rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.module-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.header-div {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.header-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--ease-fast);
  position: relative;
  flex-shrink: 0;
}
.header-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0f172a;
}

/* ── Header Search Button (Ctrl+K) ── */
.header-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.header-search-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}
.header-search-btn:hover .header-search-btn__kbd {
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.header-search-btn__label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.header-search-btn__kbd {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: "Consolas", monospace;
  white-space: nowrap;
  transition: all 0.15s ease;
}

/* Bell button active state */
.header-btn--active {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  color: #93c5fd !important;
}

/* ── Notification Wrapper + Dropdown ── */
.notif-wrap {
  position: relative;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  overflow: hidden;
  animation: notifSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.notif-panel__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.notif-panel__mark-all {
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}
.notif-panel__mark-all:hover {
  background: rgba(37, 99, 235, 0.08);
}

.notif-panel__list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}
.notif-panel__list::-webkit-scrollbar {
  width: 4px;
}
.notif-panel__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: rgba(37, 99, 235, 0.03);
}
.notif-item--unread {
  background: rgba(37, 99, 235, 0.03);
}

.notif-item__strip {
  width: 3px;
  align-self: stretch;
  flex-shrink: 0;
  margin-right: 11px;
  border-radius: 0 2px 2px 0;
}
.notif-item__strip--danger {
  background: #ef4444;
}
.notif-item__strip--warning {
  background: #f59e0b;
}
.notif-item__strip--success {
  background: #10b981;
}
.notif-item__strip--info {
  background: #2563eb;
}

.notif-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  margin-top: 1px;
}
.notif-item__icon--danger {
  background: #fee2e2;
  color: #dc2626;
}
.notif-item__icon--warning {
  background: #fef3c7;
  color: #b45309;
}
.notif-item__icon--success {
  background: #d1fae5;
  color: #059669;
}
.notif-item__icon--info {
  background: #dbeafe;
  color: #1d4ed8;
}

.notif-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-item__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.notif-item__body {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.4;
}

.notif-item__time {
  font-size: 10.5px;
  color: #9ca3af;
  font-family: "Consolas", monospace;
  margin-top: 2px;
}

.notif-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 4px;
  margin-left: 6px;
}

/* Hide search button label on smaller screens */
@media (max-width: 900px) {
  .header-search-btn__label {
    display: none;
  }
  .header-search-btn {
    padding: 0 10px;
  }
}
@media (max-width: 640px) {
  .header-search-btn {
    display: none;
  }
  .notif-panel {
    width: min(320px, 100vw - 24px);
    right: -8px;
  }
}
/* ── Page Body — Light ── */
.page-body {
  flex: 1;
  padding: 1.5rem;
  background: var(--bg-primary);
  overflow-x: hidden;
}
.page-body > * {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   Responsive Layout
   ============================================================ */
/* Desktop: sidebar pushes content */
@media (min-width: 769px) {
  .main-wrapper {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-wrapper:not(.main-wrapper--expanded) {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
  .sidebar--open {
    box-shadow: none;
  }
  .sidebar-backdrop {
    display: none;
  }
}
/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-body {
    padding: 1.25rem;
  }
  .header-date {
    display: none;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    width: min(80vw, 280px);
  }
  .sidebar--open {
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
  }
  .main-wrapper {
    margin-left: 0 !important;
  }
  .page-body {
    padding: 1rem;
  }
  .header-date {
    display: none;
  }
}
@media (max-width: 480px) {
  .top-header {
    padding: 0 0.875rem;
  }
  .page-body {
    padding: 0.875rem;
  }
}
@media (min-width: 1921px) {
  .page-body {
    padding: 2rem 2.5rem;
  }
}
@media (min-width: 2560px) {
  .page-body {
    padding: 2rem 3rem;
  }
}


/* ===== mobile menu ===== */
/* ============================================================
   Mobile Menu Drawer — Dark Navy Theme
   ============================================================ */
/* ── Backdrop ── */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-overlay) - 1);
  animation: fadeIn 0.25s var(--ease-normal);
}

/* ── Drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(80vw, 320px);
  height: 100vh;
  height: 100dvh;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--ease-slow);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  /* Accent line on right edge */
}
.mobile-drawer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.4) 40%, rgba(217, 119, 6, 0.3) 70%, transparent 100%);
}
.mobile-drawer--open {
  transform: translateX(0);
}

/* ── Header ── */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-brand__icon {
  flex-shrink: 0;
}
.drawer-brand__icon svg {
  display: block;
}

.drawer-brand__text {
  display: flex;
  flex-direction: column;
}

.drawer-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.drawer-brand__sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.drawer-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.drawer-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ── Navigation ── */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem 0;
  scrollbar-width: none;
}
.drawer-nav::-webkit-scrollbar {
  display: none;
}

.drawer-group {
  margin-bottom: 1.375rem;
}
.drawer-group:last-child {
  margin-bottom: 0;
}

.drawer-group__label {
  display: block;
  padding: 0 1.25rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all var(--ease-fast);
}
.drawer-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(37, 99, 235, 0.5);
}
.drawer-link.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-left-color: #f59e0b;
}

.drawer-link__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.35;
  display: flex;
  align-items: center;
}
.drawer-link__icon svg {
  width: 18px;
  height: 18px;
}

.drawer-link.active .drawer-link__icon,
.drawer-link:hover .drawer-link__icon {
  opacity: 1;
}

/* ── Footer ── */
.drawer-footer {
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.25rem;
}

.drawer-user__avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #2563eb 0%, #b45309 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.drawer-user__info {
  flex: 1;
  min-width: 0;
}

.drawer-user__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.drawer-user__role {
  display: block;
  font-size: var(--text-xs);
  color: #f59e0b;
  font-weight: 500;
}

.drawer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6875rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.drawer-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Hidden on large screens */
@media (min-width: 769px) {
  .mobile-backdrop,
  .mobile-drawer {
    display: none;
  }
}


/* ===== command palette ===== */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: cpFadeIn 0.15s ease both;
}

.cp-modal {
  position: fixed;
  z-index: 9001;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 100vw - 32px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 99, 235, 0.2);
  overflow: hidden;
  animation: cpSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

/* Search row */
.cp-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.cp-search-icon {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.cp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.9);
}
.cp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cp-search-esc {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 3px 7px;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}

/* Body */
.cp-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.cp-body::-webkit-scrollbar {
  width: 5px;
}
.cp-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Empty state */
.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13.5px;
}
.cp-empty svg {
  opacity: 0.3;
}
.cp-empty strong {
  color: rgba(255, 255, 255, 0.6);
}

/* Section */
.cp-section {
  padding: 8px 8px 4px;
}

.cp-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 12px 6px;
}

/* Item */
.cp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.cp-item--active {
  background: rgba(37, 99, 235, 0.25);
}
.cp-item--active .cp-item-label {
  color: #ffffff;
}
.cp-item:not(.cp-item--active):hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Type icon */
.cp-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-item-icon--job {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}
.cp-item-icon--customer {
  background: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
}
.cp-item-icon--supplier {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}
.cp-item-icon--airport {
  background: rgba(217, 119, 6, 0.25);
  color: #fcd34d;
}
.cp-item-icon--product {
  background: rgba(20, 184, 166, 0.25);
  color: #5eead4;
}
.cp-item-icon--action {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
}

/* Item text */
.cp-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cp-item-label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-item-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge + arrow */
.cp-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.cp-item-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: capitalize;
}

/* Footer */
.cp-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.cp-footer-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}
.cp-footer-hint kbd {
  font-size: 10px;
  font-family: "Inter", sans-serif;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 2px 5px;
  color: rgba(255, 255, 255, 0.4);
}

.cp-footer-count {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* Animations */
@keyframes cpFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cpSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.96) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}


/* ===== login ===== */
/* ============================================================
   Login Component — Premium White Theme
   ============================================================ */
/* ── Page Shell ── */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-base);
}

/* ── Animated Background ── */
.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Radar rings — very subtle on white */
.radar-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  animation: radarRingExpand 5s ease-out infinite;
}

@keyframes radarRingExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
.ring-1 {
  width: 220px;
  height: 220px;
  animation-delay: 0s;
}

.ring-2 {
  width: 220px;
  height: 220px;
  animation-delay: 1.25s;
  border-color: rgba(217, 119, 6, 0.08);
}

.ring-3 {
  width: 220px;
  height: 220px;
  animation-delay: 2.5s;
}

.ring-4 {
  width: 220px;
  height: 220px;
  animation-delay: 3.75s;
  border-color: rgba(217, 119, 6, 0.08);
}

/* Grid pattern */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Ambient glows */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.bg-glow--top {
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.bg-glow--bottom {
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
}

/* ── Login Card ── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.05);
}

/* Top gradient accent */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 50%, var(--blue) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  animation: gradientFlow 3.5s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* ── Brand / Logo ── */
.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2), 0 0 0 1px var(--border-gold), 0 0 14px var(--gold-glow);
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Welcome Block ── */
.login-welcome {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
}

.welcome-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Login Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Field Group */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field-label svg {
  opacity: 0.6;
  color: var(--text-muted);
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: all var(--ease-normal);
  outline: none;
}
.field-input::placeholder {
  color: var(--text-muted);
}
.field-input:hover {
  border-color: var(--border-strong);
}
.field-input:focus {
  border-color: var(--blue);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--blue-bg);
  transform: translateY(-1px);
}
.field-input--error {
  border-color: var(--error);
}
.field-input--error:focus {
  box-shadow: 0 0 0 3px var(--error-bg);
}

/* Password toggle button */
.field-toggle {
  position: absolute;
  right: 0.875rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  line-height: 1;
}
.field-toggle:hover {
  color: var(--blue);
  background: var(--blue-bg);
}

/* Field error */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-xs);
  color: var(--error);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
/* ── Options Row ── */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Custom Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  flex-shrink: 0;
  position: relative;
}
.checkbox-input:checked + .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
}
.checkbox-input:checked + .checkbox-custom::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.forgot-link {
  font-size: var(--text-sm);
  color: var(--blue);
  font-weight: 500;
  transition: all var(--ease-fast);
}
.forgot-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ── Login Error ── */
.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Submit Button ── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.9375rem 1.5rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--ease-normal);
  box-shadow: 0 4px 16px var(--blue-glow);
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity var(--ease-fast);
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--blue-glow);
}
.submit-btn:hover:not(:disabled)::before {
  opacity: 1;
}
.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.submit-btn.loading {
  opacity: 0.85;
  cursor: wait;
}

.spinner {
  animation: spin 0.9s linear infinite;
}

/* ── Footer ── */
.login-footer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1.75rem;
  letter-spacing: 0.02em;
}

/* ── Bottom Ticker Bar ── */
.login-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 5px rgba(5, 150, 105, 0.5);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ticker-sep {
  opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
  }
  .login-brand {
    flex-direction: column;
    text-align: center;
  }
  .brand-name {
    font-size: var(--text-xl);
  }
  .welcome-title {
    font-size: var(--text-2xl);
  }
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
  .login-ticker {
    display: none;
  }
}
@media (max-width: 360px) {
  .login-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }
}


/* ===== dashboard ===== */
/* ============================================================
   Dashboard — Premium  (ViewEncapsulation.None, prefix: dsh-)
   ============================================================ */
@keyframes dshRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes dshPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}
@keyframes dshSpin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Root ── */
.dsh-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* ── Hero Summary Strip ── */
.dsh-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a3354 40%, #1e3a8a 75%, #1d4ed8 100%);
  border-radius: 1.25rem;
  padding: 1.375rem 2rem;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}
.dsh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 10%, rgba(99, 149, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dsh-hero__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 0 2rem;
}
.dsh-hero__item:first-child {
  padding-left: 0;
}
.dsh-hero__item--link {
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s;
}
.dsh-hero__item--link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dsh-hero__item--link:active {
  background: rgba(255, 255, 255, 0.1);
}

.dsh-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dsh-hero__icon--blue {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.dsh-hero__icon--emerald {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.dsh-hero__icon--amber {
  background: rgba(217, 119, 6, 0.25);
  color: #fcd34d;
}

.dsh-hero__icon--violet {
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
}

.dsh-hero__body {
  display: flex;
  flex-direction: column;
}

.dsh-hero__num {
  font-family: "Outfit", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.dsh-hero__lbl {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 5px;
}

.dsh-hero__rate {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  white-space: nowrap;
}

.dsh-hero__sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
  flex-shrink: 0;
}

.dsh-hero__meta {
  margin-left: auto;
  padding-left: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Section Dividers ── */
.dsh-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: -0.25rem;
}
.dsh-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.dsh-section-head__label {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  white-space: nowrap;
}

/* ── Header ── */
.dsh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dsh-header__left {
  flex: 1;
  min-width: 0;
}

.dsh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #059669;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

.dsh-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: dshPulse 2s ease-in-out infinite;
}

.dsh-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dsh-subtitle {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.dsh-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.dsh-refresh-btn:hover:not([disabled]) {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.dsh-refresh-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Skeleton loading ── */
@keyframes dshShimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
.dsh-skeleton {
  margin-top: 0.5rem;
}

.dsh-skel-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dsh-skel-hero__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 160px;
}

.dsh-skel-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: dshShimmer 1.4s ease-in-out infinite;
}

.dsh-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsh-skel-line {
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: dshShimmer 1.4s ease-in-out infinite;
}
.dsh-skel-line--num {
  height: 1.75rem;
  width: 70%;
}
.dsh-skel-line--lbl {
  height: 0.875rem;
  width: 50%;
}

.dsh-skel-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dsh-skel-kpi {
  height: 100px;
  border-radius: 0.875rem;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: dshShimmer 1.4s ease-in-out infinite;
  border: 1px solid #f1f5f9;
}

/* ── Error ── */
.dsh-error {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.75rem;
  color: #991b1b;
  font-size: 0.8125rem;
  font-family: "Inter", sans-serif;
}

.dsh-error__retry {
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.15s;
}
.dsh-error__retry:hover {
  background: #b91c1c;
}

/* ── Pipeline Layout ── */
.dsh-pipeline-wrap {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.375rem 1.5rem 1.25rem;
}

.dsh-pipeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dsh-pipeline-header__total {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.dsh-pipeline-header__num {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.dsh-pipeline-header__lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dsh-pipeline-header__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: 0.25rem;
}

.dsh-pipeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.75rem 2rem;
  text-align: center;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}
.dsh-pipeline-empty p {
  margin: 0;
  font-size: 0.84rem;
}
.dsh-pipeline-empty a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}
.dsh-pipeline-empty a:hover {
  text-decoration: underline;
}

.dsh-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}
.dsh-badge--green {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.dsh-badge--red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.dsh-badge--slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.dsh-pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.dsh-pipeline-stage {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.125rem 0.75rem;
  border-radius: 0.875rem;
  border: 1.5px solid #f1f5f9;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.dsh-pipeline-stage:hover {
  border-color: currentColor;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.dsh-pipeline-stage:hover .dsh-pipeline-stage__icon {
  transform: scale(1.12);
}
.dsh-pipeline-stage--active {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.dsh-pipeline-stage__icon {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s;
  margin-bottom: 0.1rem;
}
.dsh-pipeline-stage__count {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}
.dsh-pipeline-stage__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.dsh-pipeline-stage__pct {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-top: 0.1rem;
}
.dsh-pipeline-stage {
  /* Color variants — active state gets colored border + count tint */
}
.dsh-pipeline-stage--blue.dsh-pipeline-stage--active {
  border-color: #2563eb;
}
.dsh-pipeline-stage--blue.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #2563eb;
}
.dsh-pipeline-stage--blue .dsh-pipeline-stage__icon {
  background: #dbeafe;
  color: #2563eb;
}
.dsh-pipeline-stage--amber.dsh-pipeline-stage--active {
  border-color: #d97706;
}
.dsh-pipeline-stage--amber.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #d97706;
}
.dsh-pipeline-stage--amber .dsh-pipeline-stage__icon {
  background: #fef3c7;
  color: #d97706;
}
.dsh-pipeline-stage--purple.dsh-pipeline-stage--active {
  border-color: #7c3aed;
}
.dsh-pipeline-stage--purple.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #7c3aed;
}
.dsh-pipeline-stage--purple .dsh-pipeline-stage__icon {
  background: #ede9fe;
  color: #7c3aed;
}
.dsh-pipeline-stage--cyan.dsh-pipeline-stage--active {
  border-color: #0891b2;
}
.dsh-pipeline-stage--cyan.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #0891b2;
}
.dsh-pipeline-stage--cyan .dsh-pipeline-stage__icon {
  background: #cffafe;
  color: #0891b2;
}
.dsh-pipeline-stage--teal.dsh-pipeline-stage--active {
  border-color: #0d9488;
}
.dsh-pipeline-stage--teal.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #0d9488;
}
.dsh-pipeline-stage--teal .dsh-pipeline-stage__icon {
  background: #ccfbf1;
  color: #0d9488;
}
.dsh-pipeline-stage--green.dsh-pipeline-stage--active {
  border-color: #10b981;
}
.dsh-pipeline-stage--green.dsh-pipeline-stage--active .dsh-pipeline-stage__count {
  color: #10b981;
}
.dsh-pipeline-stage--green .dsh-pipeline-stage__icon {
  background: #d1fae5;
  color: #10b981;
}

.dsh-pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.35rem;
  flex-shrink: 0;
  color: #e5e7eb;
}
.dsh-pipeline-arrow svg {
  flex-shrink: 0;
}

/* ── KPI Grid (legacy, kept for backwards-compat in case) ── */
.dsh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}

@keyframes dshCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.dsh-kpi {
  position: relative;
  background: linear-gradient(145deg, #0f172a 0%, #141f35 55%, #1e293b 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  animation: dshCardIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.dsh-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.dsh-kpi::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.14;
  transition: opacity 0.22s ease;
}
.dsh-kpi:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.13);
}
.dsh-kpi:hover::after {
  opacity: 0.26;
}
.dsh-kpi:hover .dsh-kpi__icon {
  transform: scale(1.12) rotate(-6deg);
}

.dsh-kpi--blue::after {
  background: #2563eb;
}
.dsh-kpi--blue:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(37, 99, 235, 0.3);
}

.dsh-kpi--indigo::after {
  background: #4f46e5;
}
.dsh-kpi--indigo:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(79, 70, 229, 0.3);
}

.dsh-kpi--green::after {
  background: #059669;
}
.dsh-kpi--green:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(5, 150, 105, 0.3);
}

.dsh-kpi--amber::after {
  background: #d97706;
}
.dsh-kpi--amber:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(217, 119, 6, 0.3);
}

.dsh-kpi--red::after {
  background: #dc2626;
}
.dsh-kpi--red:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(220, 38, 38, 0.4);
}

.dsh-kpi--purple::after {
  background: #7c3aed;
}
.dsh-kpi--purple:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(124, 58, 237, 0.3);
}

.dsh-kpi--teal::after {
  background: #0d9488;
}
.dsh-kpi--teal:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(13, 148, 136, 0.3);
}

.dsh-kpi--cyan::after {
  background: #0891b2;
}
.dsh-kpi--cyan:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(8, 145, 178, 0.3);
}

.dsh-kpi--slate::after {
  background: #475569;
}
.dsh-kpi--slate:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(71, 85, 105, 0.25);
}

.dsh-kpi--orange::after {
  background: #ea580c;
}
.dsh-kpi--orange:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(234, 88, 12, 0.3);
}

.dsh-kpi--emerald::after {
  background: #059669;
}
.dsh-kpi--emerald:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(5, 150, 105, 0.3);
}

.dsh-kpi--violet::after {
  background: #7c3aed;
}
.dsh-kpi--violet:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(124, 58, 237, 0.3);
}

.dsh-kpi__bar {
  height: 3px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dsh-kpi--blue .dsh-kpi__bar {
  background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
}

.dsh-kpi--indigo .dsh-kpi__bar {
  background: linear-gradient(90deg, #4f46e5, #818cf8, #a5b4fc);
}

.dsh-kpi--green .dsh-kpi__bar {
  background: linear-gradient(90deg, #059669, #34d399, #6ee7b7);
}

.dsh-kpi--amber .dsh-kpi__bar {
  background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d);
}

.dsh-kpi--red .dsh-kpi__bar {
  background: linear-gradient(90deg, #dc2626, #f87171, #fca5a5);
}

.dsh-kpi--purple .dsh-kpi__bar {
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #c4b5fd);
}

.dsh-kpi--teal .dsh-kpi__bar {
  background: linear-gradient(90deg, #0d9488, #2dd4bf, #5eead4);
}

.dsh-kpi--cyan .dsh-kpi__bar {
  background: linear-gradient(90deg, #0891b2, #22d3ee, #67e8f9);
}

.dsh-kpi--slate .dsh-kpi__bar {
  background: linear-gradient(90deg, #475569, #64748b, #94a3b8);
}

.dsh-kpi--orange .dsh-kpi__bar {
  background: linear-gradient(90deg, #ea580c, #f97316, #fdba74);
}

.dsh-kpi--emerald .dsh-kpi__bar {
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.dsh-kpi--violet .dsh-kpi__bar {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6, #ddd6fe);
}

.dsh-kpi__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.375rem;
  position: relative;
  z-index: 1;
}

.dsh-kpi__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.dsh-kpi__icon--blue {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.dsh-kpi__icon--indigo {
  background: rgba(79, 70, 229, 0.22);
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: #a5b4fc;
}

.dsh-kpi__icon--green {
  background: rgba(5, 150, 105, 0.22);
  border: 1px solid rgba(5, 150, 105, 0.4);
  color: #6ee7b7;
}

.dsh-kpi__icon--amber {
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fcd34d;
}

.dsh-kpi__icon--red {
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

.dsh-kpi__icon--purple {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
}

.dsh-kpi__icon--teal {
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #5eead4;
}

.dsh-kpi__icon--cyan {
  background: rgba(8, 145, 178, 0.22);
  border: 1px solid rgba(8, 145, 178, 0.4);
  color: #67e8f9;
}

.dsh-kpi__icon--slate {
  background: rgba(71, 85, 105, 0.22);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: #94a3b8;
}

.dsh-kpi__icon--orange {
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fdba74;
}

.dsh-kpi__icon--emerald {
  background: rgba(5, 150, 105, 0.22);
  border: 1px solid rgba(5, 150, 105, 0.4);
  color: #34d399;
}

.dsh-kpi__icon--violet {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #ddd6fe;
}

.dsh-kpi__text {
  flex: 1;
  min-width: 0;
}

.dsh-kpi__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  font-family: "Inter", sans-serif;
}

.dsh-kpi__value {
  display: block;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 2.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.035em;
}
.dsh-kpi__value--currency {
  font-size: 1.4rem;
}

.dsh-kpi--blue .dsh-kpi__value {
  color: #93c5fd;
}

.dsh-kpi--indigo .dsh-kpi__value {
  color: #a5b4fc;
}

.dsh-kpi--green .dsh-kpi__value {
  color: #6ee7b7;
}

.dsh-kpi--amber .dsh-kpi__value {
  color: #fcd34d;
}

.dsh-kpi--red .dsh-kpi__value {
  color: #fca5a5;
}

.dsh-kpi--purple .dsh-kpi__value {
  color: #c4b5fd;
}

.dsh-kpi--teal .dsh-kpi__value {
  color: #5eead4;
}

.dsh-kpi--cyan .dsh-kpi__value {
  color: #67e8f9;
}

.dsh-kpi--slate .dsh-kpi__value {
  color: #94a3b8;
}

.dsh-kpi--orange .dsh-kpi__value {
  color: #fdba74;
}

.dsh-kpi--emerald .dsh-kpi__value {
  color: #34d399;
}

.dsh-kpi--violet .dsh-kpi__value {
  color: #ddd6fe;
}

/* ── Table Card ── */
.dsh-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dsh-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.dsh-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.dsh-card__count {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.dsh-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Table ── */
.dsh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.dsh-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid rgba(0, 0, 0, 0.07);
}
.dsh-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.63rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.dsh-table td {
  padding: 0.9375rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.dsh-table tbody tr {
  transition: background 0.12s ease;
}
.dsh-table tbody tr:last-child td {
  border-bottom: none;
}
.dsh-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.025);
}

.dsh-row {
  animation: dshRowIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.dsh-job-no {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.02em;
}

.dsh-customer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dsh-customer__av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  font-family: "Outfit", sans-serif;
  flex-shrink: 0;
  text-transform: uppercase;
}

.dsh-customer__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  font-family: "Inter", sans-serif;
}

.dsh-airport-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
}

.dsh-date {
  font-size: 0.8rem;
  color: #4b5563;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}

.dsh-date--overdue {
  color: #dc2626;
  font-weight: 600;
}

.dsh-amount {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.dsh-muted {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ── Badges ── */
.dsh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dsh-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dsh-badge--open {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}
.dsh-badge--open .dsh-badge__dot {
  background: #2563eb;
}

.dsh-badge--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.dsh-badge--pending .dsh-badge__dot {
  background: #d97706;
}

.dsh-badge--approved {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.2);
}
.dsh-badge--approved .dsh-badge__dot {
  background: #7c3aed;
}

.dsh-badge--supplied {
  background: #ccfbf1;
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.2);
}
.dsh-badge--supplied .dsh-badge__dot {
  background: #0d9488;
}

.dsh-badge--invoiced {
  background: #cffafe;
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.2);
}
.dsh-badge--invoiced .dsh-badge__dot {
  background: #0891b2;
}

.dsh-badge--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.dsh-badge--paid .dsh-badge__dot {
  background: #059669;
}

.dsh-badge--closed {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.dsh-badge--closed .dsh-badge__dot {
  background: #059669;
}

.dsh-badge--overdue {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.25);
}
.dsh-badge--overdue .dsh-badge__dot {
  background: #dc2626;
}

.dsh-badge--cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.dsh-badge--cancelled .dsh-badge__dot {
  background: #dc2626;
}

.dsh-badge--default {
  background: #f1f5f9;
  color: #475569;
  border-color: rgba(71, 85, 105, 0.2);
}
.dsh-badge--default .dsh-badge__dot {
  background: #64748b;
}

/* ── Empty State ── */
.dsh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 5rem 2rem;
  text-align: center;
}

.dsh-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.dsh-empty__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.dsh-empty__sub {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0;
  max-width: 360px;
}

/* ══════════════════════════════════════════════════════════════
   Charts Row
   ══════════════════════════════════════════════════════════════ */
.dsh-charts-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
}

.dsh-chart-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.375rem 1.375rem 0.5rem;
  overflow: hidden;
}

.dsh-chart-card--wide { /* stretches via grid */ }

.dsh-chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.dsh-chart-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.dsh-chart-card__sub {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dsh-ytd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.dsh-chart-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}
.dsh-chart-loading svg {
  animation: dshSpin 0.8s linear infinite;
}

.dsh-chart-placeholder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsh-chart-spin {
  animation: dshSpin 0.8s linear infinite;
}

@media (max-width: 900px) {
  .dsh-charts-row {
    grid-template-columns: 1fr;
  }
}
/* ══════════════════════════════════════════════════════════════
   Jobs Section
   ══════════════════════════════════════════════════════════════ */
.dsh-jobs {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ── Toolbar ── */
.dsh-jobs__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.dsh-col-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
}

.dsh-col-trigger {
  position: relative;
}

.dsh-jobs__col-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dsh-jobs__col-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

.dsh-col-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
  padding: 0.4rem;
  min-width: 170px;
}
.dsh-col-menu__title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
  padding: 0.35rem 0.55rem 0.45rem;
}
.dsh-col-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: #111827;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.dsh-col-menu__item:hover {
  background: #f1f5f9;
}
.dsh-col-menu__item input[type=checkbox] {
  cursor: pointer;
  accent-color: #2563eb;
}

.dsh-jobs__search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.dsh-jobs__search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.dsh-jobs__search {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dsh-jobs__search::placeholder {
  color: #9ca3af;
}
.dsh-jobs__search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dsh-jobs__search-clear {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.dsh-jobs__search-clear:hover {
  background: #fee2e2;
  color: #dc2626;
}

.dsh-jobs__actions {
  display: flex;
  gap: 0.5rem;
}

.dsh-jobs__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 0.625rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dsh-jobs__action-btn:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563eb;
}

/* ── Status Filter Tabs ── */
.dsh-jobs__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.dsh-jobs__clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(220, 38, 38, 0.25);
  background: #fef2f2;
  color: #dc2626;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dsh-jobs__clear-filter:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

.dsh-jobs__tabs-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 2px;
  flex-shrink: 0;
  align-self: center;
}

.dsh-jobs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dsh-jobs__tab:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
  background: #eff6ff;
}
.dsh-jobs__tab.dsh-jobs__tab--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}
.dsh-jobs__tab.dsh-jobs__tab--zero {
  opacity: 0.45;
  pointer-events: none;
}

.dsh-jobs__tab-pill {
  min-width: 22px;
  text-align: center;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}
.dsh-jobs__tab-pill.dsh-jobs__tab-pill--active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.dsh-empty__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}
.dsh-empty__link:hover {
  color: #1d4ed8;
}

/* ── Jobs Card ── */
.dsh-jobs__card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.dsh-jobs__loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 3rem;
  font-size: 0.875rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.dsh-jobs__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Jobs Table ── */
.dsh-jobs__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.dsh-jobs__table thead tr {
  background: #f8fafc;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}
.dsh-jobs__table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.dsh-jobs__table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.dsh-jobs__table tbody tr {
  transition: background 0.1s;
}
.dsh-jobs__table tbody tr:last-child td {
  border-bottom: none;
}
.dsh-jobs__table tbody tr:hover td {
  background: #f8faff;
}

.dsh-jobs__row {
  animation: dshRowIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.dsh-jobs__row--clickable {
  cursor: pointer;
}

/* ── Cell Content ── */
.dsh-job-id {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.02em;
}

.dsh-flight-no {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.03em;
}

.dsh-product {
  font-size: 0.8rem;
  color: #4b5563;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.dsh-quantity {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.dsh-unit {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 2px;
}

.dsh-amount {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

/* ── Payment Badges ── */
.dsh-pay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dsh-pay__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dsh-pay--unpaid {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.dsh-pay--unpaid .dsh-pay__dot {
  background: #d97706;
}

.dsh-pay--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.dsh-pay--paid .dsh-pay__dot {
  background: #059669;
}

.dsh-pay--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.dsh-pay--overdue .dsh-pay__dot {
  background: #dc2626;
}

/* ── View Button ── */
.dsh-jobs__view-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.15s;
}
.dsh-jobs__view-btn:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563eb;
}

/* ── Footer / Pagination ── */
.dsh-jobs__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8fafc;
}

.dsh-jobs__footer-info {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.dsh-jobs__pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dsh-jobs__pg-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: all 0.15s;
}
.dsh-jobs__pg-btn:hover:not([disabled]) {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}
.dsh-jobs__pg-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.dsh-jobs__pg-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  min-width: 44px;
  text-align: center;
}

/* ── Jobs Empty ── */
.dsh-jobs__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3.5rem 2rem;
  text-align: center;
}

/* ── Revenue Empty State ── */
.dsh-revenue-empty {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}
.dsh-revenue-empty svg {
  width: 36px;
  height: 36px;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}
.dsh-revenue-empty p {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}
.dsh-revenue-empty span {
  font-family: "Inter", sans-serif;
  font-size: 0.775rem;
  color: #9ca3af;
  max-width: 320px;
  line-height: 1.5;
}

/* ── Chart Stats Bar ── */
.dsh-chart-stats {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0.25rem -1.25rem -0.5rem;
}

.dsh-chart-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dsh-chart-stat__lbl {
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.dsh-chart-stat__val {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
}

/* ── Status Breakdown List (inside donut card) ── */
/* ── Donut empty state ── */
.dsh-donut-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 0.75rem;
}
.dsh-donut-empty p {
  font-size: 0.83rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Donut card sizing ── */
.dsh-chart-card--donut {
  display: flex;
  flex-direction: column;
}

/* ── Status legend ── */
.dsh-status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0.25rem -1.375rem -0.5rem;
  padding: 0.25rem 0;
}

.dsh-status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.375rem;
  transition: background 0.12s;
}
.dsh-status-item:hover:not(.dsh-status-item--zero) {
  background: rgba(0, 0, 0, 0.025);
}
.dsh-status-item--zero {
  opacity: 0.45;
}
.dsh-status-item--clickable {
  cursor: pointer;
  border-radius: 6px;
}

.dsh-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dsh-status-lbl {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

.dsh-status-num {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}
.dsh-status-num--zero {
  color: #d1d5db;
}

/* ── Overdue Alert Banner ── */
.dsh-alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fca5a5;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
  animation: dshSlideIn 0.3s ease;
}
.dsh-alert-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
}
.dsh-alert-banner__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dsh-alert-banner__body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7f1d1d;
}
.dsh-alert-banner__body span {
  font-size: 0.78rem;
  color: #92400e;
}
.dsh-alert-banner__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #dc2626;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.15s;
}
.dsh-alert-banner__action:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

@keyframes dshSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ── Quick Actions ── */
.dsh-quick-actions {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.dsh-quick-actions__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.875rem;
}
.dsh-quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.dsh-qa-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.dsh-qa-btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.dsh-qa-btn__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}
.dsh-qa-btn__sub {
  font-size: 0.72rem;
  color: #6b7280;
}
.dsh-qa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dsh-qa-btn--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dsh-qa-btn--blue .dsh-qa-btn__icon {
  background: #dbeafe;
  color: #1d4ed8;
}
.dsh-qa-btn--emerald {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.dsh-qa-btn--emerald .dsh-qa-btn__icon {
  background: #d1fae5;
  color: #059669;
}
.dsh-qa-btn--amber {
  background: #fffbeb;
  border-color: #fde68a;
}
.dsh-qa-btn--amber .dsh-qa-btn__icon {
  background: #fef3c7;
  color: #d97706;
}
.dsh-qa-btn--violet {
  background: #f5f3ff;
  border-color: #c4b5fd;
}
.dsh-qa-btn--violet .dsh-qa-btn__icon {
  background: #ede9fe;
  color: #7c3aed;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .dsh-kpi-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .dsh-charts-row {
    grid-template-columns: 1fr;
  }
  .dsh-hero {
    padding: 1.125rem 1.25rem;
  }
  .dsh-hero__item {
    padding: 0 1.25rem;
  }
  .dsh-hero__num {
    font-size: 1.5rem;
  }
}
@media (max-width: 900px) {
  .dsh-hero {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .dsh-hero__sep {
    display: none;
  }
  .dsh-hero__item {
    padding: 0;
    min-width: calc(50% - 0.5rem);
  }
  .dsh-hero__meta {
    width: 100%;
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .dsh-title {
    font-size: 1.5rem;
  }
  .dsh-header {
    flex-direction: column;
  }
  .dsh-jobs__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .dsh-jobs__search-wrap {
    max-width: 100%;
  }
  .dsh-quick-actions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dsh-alert-banner {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .dsh-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dsh-hero__item {
    min-width: 100%;
  }
  .dsh-quick-actions__grid {
    grid-template-columns: 1fr 1fr;
  }
  .dsh-page {
    gap: 1rem;
  }
}


/* ===== jobs list ===== */
@keyframes jlRowIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes jlSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes jlSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}
@keyframes jlPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}
@keyframes jlShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.jl-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.jl-hero {
  position: relative;
  background: linear-gradient(140deg, #0c1a56 0%, #1e3a8a 18%, #1d4ed8 52%, #2563eb 80%, #3b82f6 100%);
  border-radius: 16px;
  padding: 1.6rem 1.75rem 0;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(29, 78, 216, 0.35), 0 2px 10px rgba(0, 0, 0, 0.18);
}
.jl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.jl-hero__glow {
  position: absolute;
  top: -35%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.jl-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.jl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
}

.jl-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: jlPulse 2s ease-in-out infinite;
}

.jl-hero__create {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.jl-hero__create:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.jl-hero__create:active {
  transform: scale(0.97);
}

.jl-hero__body {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.jl-hero__title {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.1;
  font-family: "Outfit", "Inter", sans-serif;
}

.jl-hero__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 0.85rem;
}

.jl-hero__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  max-width: 360px;
  margin-bottom: 0.4rem;
}

.jl-hero__progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(147, 197, 253, 0.5);
}

.jl-hero__progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.jl-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr repeat(8, 1fr);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: 0 -1.75rem;
  padding: 0 1.75rem;
}

.jl-hero__stat {
  text-align: center;
  padding: 0.85rem 0.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.jl-hero__stat:first-child {
  border-left: none;
}
.jl-hero__stat:hover {
  background: rgba(255, 255, 255, 0.07);
}
.jl-hero__stat--total {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
}

.jl-hero__num {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.24rem;
  font-family: "Outfit", "Inter", sans-serif;
}
.jl-hero__stat--total .jl-hero__num {
  font-size: 2rem;
}

.jl-hero__lbl {
  display: block;
  font-size: 0.59rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.jl-hero__stat--pending .jl-hero__num {
  color: #fde68a;
}

.jl-hero__stat--approved .jl-hero__num {
  color: #6ee7b7;
}

.jl-hero__stat--supplied .jl-hero__num {
  color: #a5f3fc;
}

.jl-hero__stat--invoiced .jl-hero__num {
  color: #c4b5fd;
}

.jl-hero__stat--cancelled .jl-hero__num {
  color: #fca5a5;
}

.jl-hero__stat--closed .jl-hero__num {
  color: #d1fae5;
}

.jl-hero__stat--overdue .jl-hero__num {
  color: #fb7185;
}

.jl-hero__shimmer {
  display: inline-block;
  width: 2.2rem;
  height: 1.8rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
  animation: jlShimmer 1.4s infinite;
  vertical-align: middle;
}

.jl-hero__alert-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3);
}

.jl-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.jl-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 1rem;
  gap: 0.15rem;
}
.jl-tabs::-webkit-scrollbar {
  display: none;
}

.jl-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem 0.78rem;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.jl-tab:hover:not(.jl-tab--active) {
  color: #111827;
  background: rgba(0, 0, 0, 0.03);
}
.jl-tab.jl-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  font-weight: 700;
}
.jl-tab.jl-tab--zero {
  opacity: 0.4;
  pointer-events: none;
}

.jl-tab__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: #e5e7eb;
  color: #4b5563;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
}
.jl-tab__pill--active {
  background: #2563eb;
  color: #fff;
}

.jl-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  background: #ffffff;
}

.jl-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.jl-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.jl-search__input {
  width: 100%;
  padding: 0.6rem 2.4rem 0.6rem 2.4rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #111827;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.jl-search__input::placeholder {
  color: #d1d5db;
}
.jl-search__input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jl-search__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.jl-search__clear:hover {
  background: #d1d5db;
  color: #111827;
}

.jl-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

.jl-result-count {
  font-size: 0.78rem;
  color: #6b7280;
  white-space: nowrap;
}
.jl-result-count strong {
  color: #111827;
  font-weight: 700;
}

.jl-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jl-ghost-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

.jl-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: jlSpin 0.7s linear infinite;
}

.jl-refresh-bar {
  height: 3px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}
.jl-refresh-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  animation: jlSlide 1s ease-in-out infinite;
}

.jl-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  font-size: 0.8rem;
  color: #991b1b;
}
.jl-error svg {
  color: #dc2626;
  flex-shrink: 0;
}

.jl-error__retry {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid #dc2626;
  color: #991b1b;
  border-radius: 6px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.jl-error__retry:hover {
  background: #fee2e2;
}

@keyframes jlShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.jl-sk {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: jlShimmer 1.4s linear infinite;
  border-radius: 4px;
}
.jl-sk--id {
  height: 14px;
  width: 80px;
}
.jl-sk--avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jl-sk--name {
  height: 13px;
  width: 110px;
}
.jl-sk--md {
  height: 13px;
  width: 90px;
}
.jl-sk--sm {
  height: 20px;
  width: 60px;
  border-radius: 999px;
}
.jl-sk--badge {
  height: 20px;
  width: 72px;
  border-radius: 999px;
}
.jl-sk--num {
  height: 14px;
  width: 70px;
}

.jl-sk-customer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jl-row--skeleton td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.jl-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.jl-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #eef2f7;
  position: sticky;
  top: 0;
  z-index: 2;
}
.jl-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.jl-table .jl-th--id {
  padding-left: 1.4rem;
}
.jl-table .jl-th--right {
  text-align: right;
}
.jl-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
  font-size: 0.84rem;
}
.jl-table .jl-td--right {
  text-align: right;
}
.jl-table .jl-td--action {
  text-align: center;
}
.jl-table tbody tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.012);
}
.jl-table tbody tr:last-child td {
  border-bottom: none;
}

.jl-row {
  cursor: pointer;
  animation: jlRowIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  position: relative;
}
.jl-row:hover td {
  background: rgba(37, 99, 235, 0.04) !important;
}
.jl-row--open .jl-td--id {
  border-left: 4px solid #3b82f6;
  padding-left: 1.15rem;
}
.jl-row--pending .jl-td--id {
  border-left: 4px solid #f59e0b;
  padding-left: 1.15rem;
}
.jl-row--approved .jl-td--id {
  border-left: 4px solid #8b5cf6;
  padding-left: 1.15rem;
}
.jl-row--supplied .jl-td--id {
  border-left: 4px solid #06b6d4;
  padding-left: 1.15rem;
}
.jl-row--invoiced .jl-td--id {
  border-left: 4px solid #0ea5e9;
  padding-left: 1.15rem;
}
.jl-row--closed .jl-td--id {
  border-left: 4px solid #10b981;
  padding-left: 1.15rem;
}
.jl-row--cancelled .jl-td--id {
  border-left: 4px solid #d1d5db;
  padding-left: 1.15rem;
}
.jl-row--overdue .jl-td--id {
  border-left: 4px solid #ef4444;
  padding-left: 1.15rem;
}

.jl-td--id {
  border-left: 4px solid transparent;
  transition: border-color 0.15s;
}

.jl-job-id {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.02em;
  font-family: "Outfit", "Inter", sans-serif;
  line-height: 1.3;
}

.jl-job-id--copy {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.12s;
}
.jl-job-id--copy:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.jl-job-id--copied {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

.jl-copy-icon {
  opacity: 0;
  transition: opacity 0.12s;
}

.jl-job-id--copy:hover .jl-copy-icon {
  opacity: 1;
}

.jl-currency-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.jl-airline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.jl-airline__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  font-family: "Outfit", sans-serif;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.jl-airline__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-airline__code {
  font-size: 0.67rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.jl-airport {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.jl-airport__iata {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1d4ed8;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.05em;
  width: fit-content;
}

.jl-airport__name {
  font-size: 0.7rem;
  color: #6b7280;
  padding-left: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.jl-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.jl-type-chip--fueling {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.18);
}
.jl-type-chip--delivery {
  background: #f0fdf4;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.18);
}
.jl-type-chip--storage {
  background: #faf5ff;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.18);
}

.jl-muted {
  color: #6b7280;
  font-size: 0.82rem;
}

.jl-date {
  font-size: 0.8rem;
  color: #475569;
  white-space: nowrap;
}
.jl-date--overdue {
  color: #dc2626;
  font-weight: 600;
}

.jl-amount-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.jl-amount {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
  font-family: "Outfit", "Inter", sans-serif;
  letter-spacing: -0.01em;
}
.jl-amount--zero {
  color: #6b7280;
  font-weight: 500;
}

.jl-margin {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.jl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.jl-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jl-badge--open {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}
.jl-badge--open .jl-badge__dot {
  background: #2563eb;
}

.jl-badge--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.jl-badge--pending .jl-badge__dot {
  background: #d97706;
}

.jl-badge--approved {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.2);
}
.jl-badge--approved .jl-badge__dot {
  background: #7c3aed;
}

.jl-badge--supplied {
  background: #ecfeff;
  color: #155e75;
  border-color: rgba(6, 182, 212, 0.2);
}
.jl-badge--supplied .jl-badge__dot {
  background: #06b6d4;
}

.jl-badge--invoiced {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: rgba(14, 165, 233, 0.2);
}
.jl-badge--invoiced .jl-badge__dot {
  background: #0ea5e9;
}

.jl-badge--closed {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.jl-badge--closed .jl-badge__dot {
  background: #059669;
}

.jl-badge--cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.2);
}
.jl-badge--cancelled .jl-badge__dot {
  background: #9ca3af;
}

.jl-badge--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.jl-badge--overdue .jl-badge__dot {
  background: #dc2626;
}

.jl-badge--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.jl-badge--paid .jl-badge__dot {
  background: #059669;
}

.jl-badge--unpaid {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.jl-badge--unpaid .jl-badge__dot {
  background: #f59e0b;
}

.jl-badge--default {
  background: #f9fafb;
  color: #6b7280;
  border-color: #e5e7eb;
}
.jl-badge--default .jl-badge__dot {
  background: #9ca3af;
}

.jl-th--sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.jl-th--sort:hover {
  color: #2563eb;
}

.jl-th--sorted {
  color: #2563eb;
}

.jl-sort-icon {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  opacity: 0.6;
}

.jl-act-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  margin: 0 auto;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jl-act-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
  transform: scale(1.1);
}
.jl-act-btn:active {
  transform: scale(0.94);
}

.jl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 4rem 2rem;
  text-align: center;
}

.jl-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.jl-empty__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.jl-empty__sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.jl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.jl-footer__info {
  font-size: 0.78rem;
  color: #6b7280;
}
.jl-footer__info strong {
  color: #111827;
  font-weight: 700;
}

.jl-pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jl-pg-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #111827;
  padding: 0 0.5rem;
}

.jl-pg-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.jl-pg-btn:hover:not([disabled]) {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}
.jl-pg-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.jl-col-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
}

.jl-col-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
  padding: 0.4rem;
  min-width: 170px;
}
.jl-col-menu__title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
  padding: 0.35rem 0.55rem 0.45rem;
}
.jl-col-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: #111827;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.jl-col-menu__item:hover {
  background: #f1f5f9;
}
.jl-col-menu__item input[type=checkbox] {
  cursor: pointer;
  accent-color: #2563eb;
}

@media (max-width: 768px) {
  .jl-page {
    padding: 1rem;
  }
  .jl-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .jl-search {
    max-width: 100%;
  }
  .jl-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  .jl-hero {
    padding: 1.25rem 1rem;
  }
  .jl-hero__title {
    font-size: 1.5rem;
  }
  .jl-hero__stats {
    grid-template-columns: repeat(5, 1fr);
    overflow-x: auto;
  }
}
@media (max-width: 480px) {
  .jl-toolbar__right {
    flex-wrap: wrap;
  }
}


/* ===== job details ===== */
/* ═══════════════════════════════════════════════════════════════
   Job Details — Premium  (ViewEncapsulation.None)
   ═══════════════════════════════════════════════════════════════ */
/* ── Page shell ───────────────────────────────────────────────── */
.jd-page {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  min-height: 100vh;
  background: #f0f4ff;
  background-image: radial-gradient(rgba(37, 99, 235, 0.04) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  padding: 1.375rem 1.5rem 3rem;
  font-family: "Inter", sans-serif;
}

/* ── Full-screen loading / error ──────────────────────────────── */
.jd-full-loading,
.jd-full-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 5rem 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.jd-full-error__icon {
  width: 56px;
  height: 56px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jd-full-error h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}
.jd-full-error p {
  color: #9ca3af;
  margin: 0;
  font-size: 0.8125rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.jd-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 40%, #2563eb 100%);
  border-radius: 1.25rem;
  padding: 2rem 2rem 2.125rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.jd-hero__glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.jd-hero__glow2 {
  position: absolute;
  bottom: -50px;
  left: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.jd-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.jd-hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.jd-hero__actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.jd-hero__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.jd-hero__tags {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.625rem;
}
.jd-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.jd-hero__tag--currency {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.28);
}
.jd-hero__tag--ref {
  background: rgba(167, 243, 208, 0.12);
  color: #6ee7b7;
  border-color: rgba(167, 243, 208, 0.2);
  text-transform: none;
  letter-spacing: 0;
}
.jd-hero__sub-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.jd-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.625rem;
}
.jd-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: jdPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.jd-hero__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.jd-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
}
.jd-hero__sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.jd-hero__sep {
  color: rgba(255, 255, 255, 0.3);
}
.jd-hero__iata {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.jd-hero__airport-name {
  color: rgba(255, 255, 255, 0.6);
}

@keyframes jdPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
/* ── Buttons inside the hero are more compact ─────────────────── */
.jd-hero .jd-btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.775rem;
}

/* ── Breadcrumb (inside hero) ─────────────────────────────────── */
.jd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.875rem;
}
.jd-breadcrumb svg {
  color: rgba(255, 255, 255, 0.25);
}

.jd-breadcrumb__link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.jd-breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Hero status badge ────────────────────────────────────────── */
.jd-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.jd-hero-status--open {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(96, 165, 250, 0.35);
}
.jd-hero-status--pending {
  background: rgba(202, 138, 4, 0.3);
  border-color: rgba(253, 224, 71, 0.3);
}
.jd-hero-status--approved {
  background: rgba(5, 150, 105, 0.3);
  border-color: rgba(52, 211, 153, 0.3);
}
.jd-hero-status--progress {
  background: rgba(109, 40, 217, 0.3);
  border-color: rgba(167, 139, 250, 0.3);
}
.jd-hero-status--supplied {
  background: rgba(109, 40, 217, 0.3);
  border-color: rgba(167, 139, 250, 0.3);
}
.jd-hero-status--invoiced {
  background: rgba(20, 184, 166, 0.3);
  border-color: rgba(94, 234, 212, 0.3);
}
.jd-hero-status--closed {
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(148, 163, 184, 0.25);
}
.jd-hero-status--overdue {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(252, 165, 165, 0.3);
}
.jd-hero-status--cancelled {
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(148, 163, 184, 0.25);
}

.jd-hero-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.jd-hero-status--approved .jd-hero-status__dot {
  background: #34d399;
}
.jd-hero-status--open .jd-hero-status__dot {
  background: #93c5fd;
}
.jd-hero-status--pending .jd-hero-status__dot {
  background: #fde68a;
}

/* ── Status Pipeline ─────────────────────────────────────────── */
.jd-pipeline {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: visible;
}
.jd-pipeline__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  overflow: visible;
}
.jd-pipeline__step:not(.jd-pipeline__step--last)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 15px);
  right: calc(-50% + 15px);
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  transition: background 0.3s;
}
.jd-pipeline__step--done:not(.jd-pipeline__step--last)::after {
  background: #2563eb;
}
.jd-pipeline__node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.67rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}
.jd-pipeline__step--done .jd-pipeline__node {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.jd-pipeline__step--active .jd-pipeline__node {
  border-color: #2563eb;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.jd-pipeline__step--cancelled .jd-pipeline__node {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #d1d5db;
}
.jd-pipeline__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  white-space: nowrap;
}
.jd-pipeline__step--done .jd-pipeline__lbl {
  color: #2563eb;
  font-weight: 700;
}
.jd-pipeline__step--active .jd-pipeline__lbl {
  color: #1d4ed8;
  font-weight: 800;
}
.jd-pipeline__step--cancelled .jd-pipeline__lbl {
  text-decoration: line-through;
}
.jd-pipeline__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  align-self: center;
  margin-left: 1.5rem;
  flex-shrink: 0;
}
.jd-pipeline__badge--overdue {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.jd-pipeline__badge--cancelled {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* ── KPI Strip ────────────────────────────────────────────────── */
.jd-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.jd-kpi {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.jd-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.jd-kpi__accent {
  height: 3px;
}

.jd-kpi--green .jd-kpi__accent {
  background: linear-gradient(90deg, #059669, #6ee7b7);
}

.jd-kpi--blue .jd-kpi__accent {
  background: linear-gradient(90deg, #2563eb, #93c5fd);
}

.jd-kpi--amber .jd-kpi__accent {
  background: linear-gradient(90deg, #d97706, #fcd34d);
}

.jd-kpi--purple .jd-kpi__accent {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}

.jd-kpi__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
}

.jd-kpi__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jd-kpi__icon--green {
  background: #d1fae5;
  color: #059669;
}
.jd-kpi__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.jd-kpi__icon--amber {
  background: #fef3c7;
  color: #b45309;
}
.jd-kpi__icon--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.jd-kpi__content {
  flex: 1;
  min-width: 0;
}

.jd-kpi__label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}

.jd-kpi__value {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.jd-kpi__value--md {
  font-size: 1.1rem;
}

.jd-kpi__sub {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* ── Body layout ──────────────────────────────────────────────── */
.jd-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
}

.jd-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0; /* prevent grid blowout from wide tables */
}

.jd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1rem;
}

/* ── Cards ────────────────────────────────────────────────────── */
.jd-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1.375rem;
}
.jd-card--notes {
  border-left: 3px solid #f59e0b;
}
.jd-card--timeline {
  border-top: 3px solid #2563eb;
}
.jd-card--fin {
  border-top: 3px solid #059669;
}

.jd-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jd-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jd-card__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.jd-card__icon--green {
  background: #d1fae5;
  color: #059669;
}
.jd-card__icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.jd-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.15rem;
}

.jd-card__sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Info grid ────────────────────────────────────────────────── */
.jd-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

.jd-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jd-info-label {
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.jd-info-value {
  font-size: 0.8125rem;
  color: #374151;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.jd-info-value--strong {
  font-weight: 700;
  color: #111827;
}
.jd-info-value__code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ── Notes ────────────────────────────────────────────────────── */
.jd-notes-body {
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.65;
  background: #fffbeb;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
}

/* ── Chips & pills ────────────────────────────────────────────── */
.jd-iata-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #f0f4ff;
  border: 1px solid #c7d7fd;
  border-radius: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
}

.jd-mono-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
}

.jd-prod-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
}

.jd-payment-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d4ed8;
}

.jd-line-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.375rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

.jd-primary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #2563eb;
}

.jd-ac-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
}

.jd-doc-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.25rem;
  font-size: 0.67rem;
  font-weight: 700;
  color: #92400e;
}

/* ── Tabs card ────────────────────────────────────────────────── */
.jd-tabs-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.jd-tab-bar {
  display: flex;
  gap: 0;
  padding: 0.875rem 1.375rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.jd-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.875rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.jd-tab:hover {
  color: #374151;
}
.jd-tab--active {
  color: #2563eb;
  border-color: #2563eb;
}

.jd-tab__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
}
.jd-tab__pill--green {
  background: #dcfce7;
  color: #15803d;
}
.jd-tab__pill--amber {
  background: #fef9c3;
  color: #92400e;
}

.jd-tab-content {
  padding: 1.125rem 1.375rem 1.375rem;
}

/* Tab toolbar */
.jd-tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.jd-tab-toolbar--docs {
  flex-wrap: wrap;
}

.jd-tab-toolbar__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
}

.jd-doc-upload-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.jd-doc-upload-group .jd-select-wrap--sm {
  min-width: 130px;
}

/* Add button */
.jd-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  font-family: "Inter", sans-serif;
  font-size: 0.7875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jd-add-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.jd-add-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  color: #374151;
}
.jd-add-btn--outline:hover {
  background: #f8fafc;
}

/* Edit / Done mode toggle buttons */
.jd-edit-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: 0.5rem;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: #374151;
  font-family: "Inter", sans-serif;
  font-size: 0.7875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jd-edit-toggle-btn:hover {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.2);
}

.jd-edit-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: 0.5rem;
  background: #16a34a;
  border: 1.5px solid #15803d;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.7875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jd-edit-done-btn:hover {
  background: #15803d;
}

/* Tab loading */
.jd-tab-loading {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

/* Tab empty */
.jd-tab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 2.5rem 1rem;
  color: #9ca3af;
  font-size: 0.8125rem;
  text-align: center;
}
.jd-tab-empty__icon {
  color: #d1d5db;
  margin-bottom: 0.25rem;
}
.jd-tab-empty p {
  margin: 0;
}

/* ── Flight rows ──────────────────────────────────────────────── */
.jd-flight-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 0.625rem;
  background: #fafbff;
  transition: box-shadow 0.15s;
}
.jd-flight-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.jd-flight-row--primary {
  border-color: rgba(37, 99, 235, 0.2);
  background: #eff6ff;
}
.jd-flight-row:last-child {
  margin-bottom: 0;
}

.jd-flight-row__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jd-flight-row--primary .jd-flight-row__num {
  background: #2563eb;
  color: #fff;
}

.jd-flight-row__main {
  flex: 1;
  min-width: 0;
}

.jd-flight-row__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.jd-flight-no {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 800;
  color: #111827;
}

.jd-op-name {
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: italic;
}

.jd-flight-row__route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jd-route-arrow {
  color: #9ca3af;
  flex-shrink: 0;
}

.jd-flight-time {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-left: 0.25rem;
}

.jd-flight-row__actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── Lines table ──────────────────────────────────────────────── */
.jd-lines-wrap {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.jd-lines-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
}
.jd-lines-table thead tr {
  background: #f8fafc;
}
.jd-lines-table th {
  padding: 0.55rem 1rem;
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  white-space: nowrap;
}
.jd-lines-table__row {
  transition: background 0.12s;
}
.jd-lines-table__row:hover {
  background: #f8faff;
}
.jd-lines-table__row td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.jd-lines-table__row:last-child td {
  border-bottom: none;
}

.jd-th--actions {
  width: 56px;
}

.jd-td--item {
  width: 55%;
}

.jd-line-item-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.jd-line-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.jd-line-item-top {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.jd-prod-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
}

.jd-line-desc-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.3;
}

.jd-qty-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-end;
}

.jd-qty-act {
  font-size: 0.72rem;
  color: #9ca3af;
}

.jd-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-end;
}

.jd-price-sell {
  font-weight: 600;
  color: #1e293b;
}

.jd-price-buy {
  font-size: 0.72rem;
  color: #9ca3af;
}

.jd-th--num {
  text-align: right !important;
}

.jd-td--desc {
  color: #374151;
}

.jd-td--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #374151;
}

.jd-td--muted {
  color: #9ca3af;
}

.jd-td--sell {
  text-align: right;
  font-weight: 700;
  color: #1d4ed8;
}

.jd-line-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
}

.jd-lines-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
}
.jd-lines-total span {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jd-lines-total strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1d4ed8;
}

/* ── Document rows ────────────────────────────────────────────── */
.jd-doc-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.jd-doc-row:hover {
  background: #f8faff;
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}
.jd-doc-row:last-child {
  margin-bottom: 0;
}

.jd-doc-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.jd-doc-row__info {
  flex: 1;
  min-width: 0;
}

.jd-doc-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jd-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

.jd-doc-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
  transition: all 0.12s;
}
.jd-doc-dl:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* ── Inline form ──────────────────────────────────────────────── */
.jd-inline-form {
  background: #f8faff;
  border: 1.5px solid #c7d7fd;
  border-radius: 0.875rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.jd-inline-form__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
}

.jd-inline-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.jd-inline-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jd-inline-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jd-check-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}
.jd-check-label input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* ── Field / input / label ────────────────────────────────────── */
.jd-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jd-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
}

.jd-req {
  color: #ef4444;
}

.jd-input {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.jd-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.jd-input--upper {
  text-transform: uppercase;
}
.jd-input--select {
  appearance: none;
  -webkit-appearance: none;
}

.jd-select-wrap {
  position: relative;
}
.jd-select-wrap .jd-chevron {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.jd-select-wrap--sm .jd-chevron {
  right: 0.4rem;
}

.jd-input--sm {
  padding: 0.375rem 1.75rem 0.375rem 0.5rem;
  font-size: 0.78rem;
}

.jd-field--span2 {
  grid-column: span 2;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.jd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.125rem;
  border-radius: 0.625rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.jd-btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.jd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}
.jd-btn--primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.jd-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.jd-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.jd-btn--danger-ghost {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  border: 1.5px solid rgba(220, 38, 38, 0.25);
}
.jd-btn--danger-ghost:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
}
.jd-btn--danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.jd-btn--danger:hover:not(:disabled) {
  transform: translateY(-1px);
}
.jd-btn--danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.jd-btn--invoice {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.jd-btn--invoice:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Icon buttons (inside cards, not in hero) */
.jd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.4rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.jd-icon-btn:hover {
  background: #f0f4ff;
  color: #2563eb;
  border-color: #c7d7fd;
}
.jd-icon-btn--danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── Timeline ─────────────────────────────────────────────────── */
.jd-timeline {
  display: flex;
  flex-direction: column;
}

.jd-timeline__step {
  display: flex;
  gap: 0.875rem;
}

.jd-timeline__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

.jd-timeline__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #fff;
  transition: all 0.25s;
  position: relative;
}
.jd-timeline__step--done .jd-timeline__dot {
  background: #2563eb;
  border-color: #2563eb;
}
.jd-timeline__step--active .jd-timeline__dot {
  border-color: #2563eb;
  border-width: 2.5px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.jd-timeline__step--upcoming .jd-timeline__dot {
  background: #f8fafc;
}

.jd-timeline__active-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  animation: jdPulse 1.5s ease-in-out infinite;
}

.jd-timeline__line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  margin: 3px 0;
}
.jd-timeline__step--done .jd-timeline__line {
  background: #2563eb;
}
.jd-timeline__step--active .jd-timeline__line {
  background: linear-gradient(180deg, #2563eb 0%, #e5e7eb 100%);
}
.jd-timeline__step--upcoming .jd-timeline__line {
  background: #e5e7eb;
}

.jd-timeline__content {
  padding: 1px 0 1.25rem;
}

.jd-timeline__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
}
.jd-timeline__step--done .jd-timeline__label {
  color: #2563eb;
}
.jd-timeline__step--active .jd-timeline__label {
  color: #111827;
}
.jd-timeline__step--upcoming .jd-timeline__label {
  color: #9ca3af;
}

.jd-timeline__sub {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}
.jd-timeline__step--active .jd-timeline__sub {
  color: #6b7280;
}

.jd-timeline__special {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
.jd-timeline__special--cancelled {
  background: #f1f5f9;
  color: #64748b;
}
.jd-timeline__special--overdue {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Collapsible card header ──────────────────────────────────── */
.jd-card__head--toggle {
  cursor: pointer;
  user-select: none;
}
.jd-card__head--toggle:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px 12px 0 0;
}

.jd-card__chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
}
.jd-card__chevron--open {
  transform: rotate(180deg);
}

/* ── Job Activity sidebar ─────────────────────────────────────── */
.jd-act-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.jd-act-feed {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0 0.5rem;
}

.jd-act-empty {
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0.5rem 0;
  text-align: center;
}

.jd-act-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.3rem 0;
}
.jd-act-entry--create .jd-act-entry__label {
  font-weight: 700;
}

.jd-act-entry__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
  padding-top: 3px;
}

.jd-act-entry__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid currentColor;
}
.jd-act-entry__dot--blue {
  color: #2563eb;
  background: #dbeafe;
}
.jd-act-entry__dot--green {
  color: #059669;
  background: #d1fae5;
}
.jd-act-entry__dot--amber {
  color: #d97706;
  background: #fef3c7;
}
.jd-act-entry__dot--purple {
  color: #7c3aed;
  background: #ede9fe;
}
.jd-act-entry__dot--teal {
  color: #0d9488;
  background: #ccfbf1;
}
.jd-act-entry__dot--red {
  color: #dc2626;
  background: #fee2e2;
}
.jd-act-entry__dot--muted {
  color: #9ca3af;
  background: #f3f4f6;
}

.jd-act-entry__line {
  flex: 1;
  width: 1.5px;
  background: #e5e7eb;
  margin: 3px 0;
  min-height: 16px;
}

.jd-act-entry__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
  min-width: 0;
}

.jd-act-entry__label {
  font-size: 0.8125rem;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.3;
}

.jd-act-entry__user {
  font-size: 0.72rem;
  color: #6b7280;
}

.jd-act-entry__time {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* ── Financial summary ────────────────────────────────────────── */
.jd-fin {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jd-fin__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jd-fin__key {
  font-size: 0.8125rem;
  color: #6b7280;
}

.jd-fin__val {
  font-size: 0.8125rem;
  color: #374151;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.jd-fin__val--strong {
  font-weight: 700;
  color: #111827;
}

.jd-fin__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0.375rem 0;
}

.jd-fin__margin {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 0.75rem;
  border: 1px solid rgba(5, 150, 105, 0.15);
  margin-top: 0.25rem;
}

.jd-fin__margin-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
}

.jd-fin__margin-val {
  font-family: "Outfit", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: -0.02em;
}

.jd-fin__margin-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
  border-radius: 4px;
  padding: 0 0.3rem;
}

.jd-fin__pct-track {
  height: 5px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 999px;
  margin: 0.5rem 0 0.25rem;
  overflow: hidden;
}

.jd-fin__pct-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #6ee7b7);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

.jd-fin__pay {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid transparent;
}
.jd-fin__pay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jd-fin__pay--unpaid {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.jd-fin__pay--unpaid .jd-fin__pay-dot {
  background: #d97706;
}
.jd-fin__pay--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.jd-fin__pay--paid .jd-fin__pay-dot {
  background: #059669;
}
.jd-fin__pay--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.jd-fin__pay--overdue .jd-fin__pay-dot {
  background: #dc2626;
}

/* ── Spinner ──────────────────────────────────────────────────── */
.jd-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: jdSpin 0.7s linear infinite;
  flex-shrink: 0;
}
.jd-spinner--sm {
  width: 13px;
  height: 13px;
  border-width: 2px;
}
.jd-spinner--blue {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
}

@keyframes jdSpin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Status Modal ─────────────────────────────────────────────── */
.jd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.jd-modal {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 440px;
}
.jd-modal--wide {
  max-width: 600px;
}
.jd-modal--sm {
  max-width: 400px;
}
.jd-modal {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: jdModalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes jdModalPop {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.jd-modal__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jd-modal__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jd-modal__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.jd-modal__icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.jd-modal__title-group {
  flex: 1;
}

.jd-modal__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.jd-modal__subtitle {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.jd-modal__close {
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.jd-modal__close:hover {
  background: #f8fafc;
  color: #374151;
}

.jd-modal__body {
  padding: 1.25rem 1.375rem;
}

.jd-modal__text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.jd-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1rem 1.375rem;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.jd-modal__footer .jd-btn--ghost {
  background: #fff;
  color: #374151;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}
.jd-modal__footer .jd-btn--ghost:hover {
  background: #f1f5f9;
}

.jd-modal__lock-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
  font-size: 0.75rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.625rem;
}
.jd-modal__lock-note svg {
  flex-shrink: 0;
}

.jd-form-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin: 0.25rem 0 0.625rem;
}
.jd-form-section-label:not(:first-child) {
  margin-top: 1.25rem;
}

/* ── Job Edit form ────────────────────────────────────────────── */
.jd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.875rem;
}

.jd-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jd-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.jd-input {
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  color: #111827;
  outline: none;
  transition: border-color 0.15s;
}
.jd-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jd-textarea {
  resize: vertical;
  min-height: 72px;
}

/* ── Lines actions column ─────────────────────────────────────── */
.jd-td--actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.5rem 0.5rem;
}

/* ── Documents File upload ────────── */
@keyframes jdSpin {
  to {
    transform: rotate(360deg);
  }
}
.jd-dropzone {
  border: 2px dashed #c7d2fe;
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  background: #f8f9ff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.jd-dropzone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.jd-dropzone:hover, .jd-dropzone--active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.jd-dropzone:hover .jd-dropzone__cloud, .jd-dropzone--active .jd-dropzone__cloud {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-2px);
}
.jd-dropzone:hover .jd-dropzone__cta, .jd-dropzone--active .jd-dropzone__cta {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.jd-dropzone__cloud {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e0e7ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0.25rem;
}

.jd-dropzone__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-family: "Outfit", sans-serif;
}

.jd-dropzone__hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

.jd-dropzone__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  background: #fff;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.375rem;
  transition: all 0.15s;
  pointer-events: none;
}

.jd-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.625rem;
  overflow: hidden;
}

.jd-q-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  transition: border-color 0.12s;
}
.jd-q-row--uploading {
  border-color: rgba(37, 99, 235, 0.3);
}
.jd-q-row--done {
  border-color: rgba(5, 150, 105, 0.25);
}
.jd-q-row--error {
  border-color: rgba(220, 38, 38, 0.25);
}
.jd-q-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #64748b;
}

.jd-q-row--done .jd-q-row__icon {
  background: #d1fae5;
  color: #059669;
}

.jd-q-row--error .jd-q-row__icon {
  background: #fee2e2;
  color: #dc2626;
}

.jd-q-row--uploading .jd-q-row__icon {
  background: #dbeafe;
  color: #2563eb;
}

.jd-q-info {
  flex: 1;
  min-width: 0;
}
.jd-q-info__top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.jd-q-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.jd-q-size {
  font-size: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.jd-q-bar-wrap {
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.jd-q-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.jd-q-row--done .jd-q-bar {
  background: linear-gradient(90deg, #059669, #6ee7b7);
}

.jd-q-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.jd-q-badge--waiting {
  background: #f1f5f9;
  color: #64748b;
}
.jd-q-badge--uploading {
  background: #dbeafe;
  color: #1d4ed8;
}
.jd-q-badge--done {
  background: #d1fae5;
  color: #065f46;
}
.jd-q-badge--error {
  background: #fee2e2;
  color: #991b1b;
}
.jd-q-badge__spin {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: jdSpin 0.7s linear infinite;
  opacity: 0.8;
}

.jd-q-remove {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.jd-q-remove:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.jd-q-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.jd-q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.25rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.125rem;
}
.jd-q-footer__info {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
}
.jd-q-footer__clear {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.jd-q-footer__clear:hover {
  text-decoration: underline;
}

/* ── Reconciliation tab ───────────────────────────────────────── */
.jd-recon {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jd-recon-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: #dc2626;
  font-size: 0.83rem;
}

.jd-recon-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
}
.jd-recon-status--ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.jd-recon-status--partial {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.jd-recon-status--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.jd-recon-status--pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.jd-recon-flag {
  background: #fca5a5;
  color: #7f1d1d;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.jd-recon-ok {
  background: #6ee7b7;
  color: #064e3b;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.jd-recon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.jd-recon-card {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.jd-recon-card__hdr {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.jd-recon-card__hdr--supplier {
  color: #7c2d12;
}
.jd-recon-card__hdr--customer {
  color: #1e40af;
}

.jd-recon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.83rem;
  color: #374151;
}
.jd-recon-row strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.jd-recon-mismatch {
  color: #dc2626 !important;
}

.jd-recon-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.jd-recon-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.jd-recon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.jd-recon-table th {
  padding: 0.5rem 1rem;
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
}
.jd-recon-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.jd-recon-table tr:last-child td {
  border-bottom: none;
}
.jd-recon-table tr:hover td {
  background: #f8faff;
}

.jd-th--right {
  text-align: right !important;
}

.jd-td--right {
  text-align: right !important;
}

.jd-td--mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.jd-td--bold {
  font-weight: 700;
}

.jd-recon-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.jd-recon-badge--cif {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ── Activity timeline tab ────────────────────────────────────── */
.jd-timeline-feed {
  display: flex;
  flex-direction: column;
}

.jd-tl-entry {
  display: flex;
  gap: 0.875rem;
}

.jd-tl-entry__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jd-tl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
}
.jd-tl-avatar--green {
  background: #059669;
}
.jd-tl-avatar--amber {
  background: #d97706;
}
.jd-tl-avatar--red {
  background: #dc2626;
}
.jd-tl-avatar--blue {
  background: #2563eb;
}
.jd-tl-avatar--muted {
  background: #94a3b8;
}

.jd-tl-line {
  width: 2px;
  flex: 1;
  min-height: 12px;
  margin: 3px 0;
  background: #e5e7eb;
}

.jd-tl-entry__body {
  flex: 1;
  padding-bottom: 1.25rem;
}

.jd-tl-entry__hdr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.jd-tl-user {
  font-size: 0.83rem;
  font-weight: 700;
  color: #111827;
}

.jd-tl-action {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.jd-tl-action--green {
  background: #d1fae5;
  color: #065f46;
}
.jd-tl-action--amber {
  background: #fef3c7;
  color: #92400e;
}
.jd-tl-action--red {
  background: #fee2e2;
  color: #991b1b;
}
.jd-tl-action--blue {
  background: #dbeafe;
  color: #1e40af;
}
.jd-tl-action--muted {
  background: #f1f5f9;
  color: #475569;
}

.jd-tl-time {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

.jd-tl-details {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  margin-top: 0.3rem;
}

.jd-tl-meta {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .jd-body {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 1100px) {
  .jd-body {
    grid-template-columns: 1fr;
  }
  .jd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .jd-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .jd-page {
    padding: 1rem 1rem 2.5rem;
  }
  .jd-hero {
    padding: 1.5rem 1.25rem;
  }
  .jd-hero__title {
    font-size: 1.375rem;
  }
  .jd-hero__content {
    flex-direction: column;
  }
  .jd-hero__actions {
    padding-top: 0;
  }
  .jd-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
  .jd-info-grid {
    grid-template-columns: 1fr;
  }
  .jd-sidebar {
    grid-template-columns: 1fr;
  }
  .jd-inline-form__grid {
    grid-template-columns: 1fr;
  }
  .jd-lines-table th:nth-child(3),
  .jd-lines-table td:nth-child(3) {
    display: none;
  }
}


/* ===== job create ===== */
@keyframes jcSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes jcFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes jcSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes jcShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes jcPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.jc-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #eef2ff;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.07) 0%, transparent 60%), radial-gradient(rgba(37, 99, 235, 0.035) 0.8px, transparent 0.8px);
  background-size: 100% 100%, 22px 22px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #111827;
}

.jc-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(140deg, #0c1a56 0%, #1e3a8a 22%, #1d4ed8 55%, #3b82f6 88%, #60a5fa 100%);
  padding: 1.1rem 2.25rem 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(29, 78, 216, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.jc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.jc-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.jc-hero__glow {
  position: absolute;
  top: -60%;
  right: -6%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.jc-hero__glow2 {
  position: absolute;
  bottom: -80%;
  left: 20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.jc-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.jc-hero__left {
  flex: 1;
  min-width: 0;
}

.jc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.4rem;
}

.jc-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.15s;
}
.jc-breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.9);
}
.jc-breadcrumb__link svg {
  flex-shrink: 0;
}

.jc-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.jc-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: jcPulse 2s ease-in-out infinite;
}

@keyframes jcPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}
.jc-hero__title {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.1;
}

.jc-hero__sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.jc-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.jc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.jc-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.jc-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.jc-btn--primary {
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  color: #1d4ed8;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.jc-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.jc-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}
.jc-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.jc-btn--blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}
.jc-btn--blue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.48);
}
.jc-btn--blue:active:not(:disabled) {
  transform: translateY(0);
}
.jc-btn--blue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.jc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: jcSpin 0.7s linear infinite;
  flex-shrink: 0;
}
.jc-spinner--blue {
  border-color: rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
}

.jc-body {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: 1.5rem;
  padding: 1.75rem 2.25rem 3rem;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.jc-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.jc-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #dbeafe;
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  font-size: 0.83rem;
  color: #1d4ed8;
  animation: jcFadeIn 0.25s ease;
}

.jc-warn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.1rem;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  font-size: 0.82rem;
  color: #78350f;
}
.jc-warn svg {
  color: #d97706;
  flex-shrink: 0;
}

.jc-warn__retry {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid #d97706;
  color: #92400e;
  border-radius: 7px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.jc-warn__retry:hover {
  background: #fef3c7;
}

.jc-save-error {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.1rem;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  font-size: 0.82rem;
  color: #991b1b;
}
.jc-save-error svg {
  color: #dc2626;
  flex-shrink: 0;
}

.jc-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: jcFadeIn 0.3s ease;
  transition: box-shadow 0.22s;
}
.jc-section:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jc-section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(100deg, rgb(248, 250, 252) 0%, rgb(255, 255, 255) 100%);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
  position: relative;
}
.jc-section__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent, #2563eb), color-mix(in srgb, var(--accent, #2563eb) 60%, transparent));
  border-radius: 0 3px 3px 0;
}
.jc-section__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, transparent 100%);
  pointer-events: none;
}

.jc-section__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent, #2563eb), color-mix(in srgb, var(--accent, #2563eb) 75%, #000));
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent, #2563eb) 40%, transparent);
}

.jc-section__head-text {
  flex: 1;
  min-width: 0;
}

.jc-section__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.jc-section__icon--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}
.jc-section__icon--sky {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}
.jc-section__icon--green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #15803d;
}
.jc-section__icon--teal {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0f766e;
}
.jc-section__icon--amber {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  color: #a16207;
}
.jc-section__icon--gray {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
}

.jc-section__title {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.1rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jc-section__sub {
  font-size: 0.73rem;
  color: #9ca3af;
  margin: 0;
}

.jc-section__body {
  padding: 1.5rem 1.4rem;
  background: linear-gradient(180deg, #fdfdfe 0%, #fff 100%);
}

.jc-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  animation: jcPop 0.25s ease;
}

.jc-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 1rem;
  background: rgba(37, 99, 235, 0.09);
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.17s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  text-decoration: none;
}
.jc-add-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-1px);
}
.jc-add-btn:active {
  transform: scale(0.97) translateY(0);
}
.jc-add-btn--outline {
  background: transparent;
  border-color: #e5e7eb;
  color: #6b7280;
}
.jc-add-btn--outline:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}
.jc-add-btn--file {
  cursor: pointer;
}

.jc-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #6b7280;
}
.jc-icon-btn--blue:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
  transform: scale(1.12);
}
.jc-icon-btn--red:hover {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.3);
  color: #dc2626;
  transform: scale(1.12);
}

.jc-empty-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  color: #9ca3af;
  font-size: 0.83rem;
}
.jc-empty-section p {
  margin: 0;
}

.jc-empty-section__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.jc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.jc-form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.jc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.jc-field--grow {
  flex: 1;
}

.jc-label {
  font-size: 0.67rem;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jc-required {
  color: #ef4444;
}

.jc-optional {
  color: #9ca3af;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85em;
}

.jc-textarea, .jc-input, .jc-select {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}
.jc-textarea::placeholder, .jc-input::placeholder, .jc-select::placeholder {
  color: #d1d5db;
}
.jc-textarea:hover:not(:focus), .jc-input:hover:not(:focus), .jc-select:hover:not(:focus) {
  border-color: #cbd5e1;
  background: #fff;
}
.jc-textarea:focus, .jc-input:focus, .jc-select:focus {
  outline: none;
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.jc-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jc-select {
  padding: 0.7rem 2.1rem 0.7rem 2.4rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.jc-select--sm {
  padding: 0.58rem 2rem 0.58rem 0.8rem;
  font-size: 0.8rem;
}
.jc-select--inline {
  padding: 0.38rem 1.9rem 0.38rem 0.65rem;
  font-size: 0.76rem;
  border-radius: 7px;
}
.jc-select--no-icon {
  padding-left: 0.8rem;
}

.jc-field-icon {
  position: absolute;
  left: 0.85rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
}

.jc-chevron {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
}

.jc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jc-input {
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
}
.jc-input--plain {
  padding-left: 0.9rem;
}
.jc-input--num {
  padding-left: 0.9rem;
  text-align: right;
}
.jc-input--currency {
  padding-left: 3.6rem;
  text-align: right;
}
.jc-input--upper {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.jc-currency-prefix {
  position: absolute;
  left: 0.8rem;
  font-size: 0.71rem;
  font-weight: 700;
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.04em;
}

.jc-textarea {
  padding: 0.8rem 0.9rem;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.jc-flight-card {
  border-top: 1.5px solid #e5e7eb;
  padding: 1.3rem 1.4rem;
  transition: background 0.18s;
  animation: jcSlideIn 0.24s ease;
  position: relative;
}
.jc-flight-card--primary {
  background: rgba(37, 99, 235, 0.022);
}
.jc-flight-card--primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2563eb;
}
.jc-flight-card:hover {
  background: #fafbff;
}

.jc-flight-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.jc-flight-card__num {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.jc-flight-num-badge {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.jc-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.jc-flight-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jc-flight-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jc-route-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.jc-route-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 0.05rem;
}

.jc-route-arrow__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #c7d7fd 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.jc-line-card {
  border-top: 1.5px solid #e5e7eb;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  animation: jcSlideIn 0.24s ease;
  transition: background 0.18s;
}
.jc-line-card:hover {
  background: #fafbff;
}

.jc-line-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.jc-line-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1.5px solid #e5e7eb;
  font-size: 0.65rem;
  font-weight: 900;
  color: #6b7280;
  flex-shrink: 0;
}

.jc-line-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.8rem;
  align-items: end;
}

.jc-line-total {
  padding: 0.7rem 0.9rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid rgba(21, 128, 61, 0.18);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 900;
  color: #15803d;
  white-space: nowrap;
  font-family: "Outfit", "Inter", sans-serif;
  text-align: right;
}

.jc-line-remove {
  align-self: flex-end;
  margin-bottom: 0.02rem;
}

.jc-lines-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  border-top: 1.5px solid #e5e7eb;
  font-size: 0.83rem;
  color: #6b7280;
}
.jc-lines-total strong {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.jc-drop-zone {
  padding: 1rem 1.4rem 1.4rem;
}

.jc-drop-zone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.25rem 1.5rem;
  border: 2px dashed #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.jc-drop-zone__inner:hover {
  border-color: #2563eb;
  background: #f0f5ff;
  transform: translateY(-1px);
}

.jc-drop-zone__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 0.25rem;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.14);
}

.jc-drop-zone__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.jc-drop-zone__sub {
  font-size: 0.74rem;
  color: #9ca3af;
  margin: 0;
}

.jc-doc-list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.4rem 1.4rem;
  gap: 0.55rem;
}

.jc-doc-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.95rem;
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  transition: border-color 0.15s, box-shadow 0.15s;
  animation: jcSlideIn 0.22s ease;
}
.jc-doc-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jc-doc-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jc-doc-item__icon--pdf {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
}
.jc-doc-item__icon--img {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}
.jc-doc-item__icon--xls {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
}
.jc-doc-item__icon--doc {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.jc-doc-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.jc-doc-item__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jc-doc-item__size {
  font-size: 0.68rem;
  color: #9ca3af;
}

.jc-doc-item__type {
  flex-shrink: 0;
}

.jc-doc-add-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  transition: background 0.15s;
  align-self: flex-start;
}
.jc-doc-add-more:hover {
  background: rgba(37, 99, 235, 0.09);
}

.jc-cta-bar {
  position: sticky;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.jc-cta-bar__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.jc-cta-bar__pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.jc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid;
}
.jc-pill--flight {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}
.jc-pill--line {
  background: #d1fae5;
  border-color: rgba(21, 128, 61, 0.2);
  color: #15803d;
}
.jc-pill--doc {
  background: #fef9c3;
  border-color: rgba(161, 98, 7, 0.2);
  color: #a16207;
}

.jc-cta-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.jc-cta-bar .jc-btn--ghost {
  background: #f8fafc;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
}
.jc-cta-bar .jc-btn--ghost:hover {
  color: #111827;
  background: #f1f5f9;
}

.jc-sidebar {
  position: sticky;
  top: 5.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.jc-sidebar::-webkit-scrollbar {
  display: none;
}

.jc-customer-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 4px 24px rgba(29, 78, 216, 0.11), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: clip;
  animation: jcPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jc-customer-card__header {
  padding: 1.15rem 1.1rem 0.9rem;
  background: linear-gradient(145deg, #0c1a56 0%, #1e3a8a 30%, #1d4ed8 65%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.jc-customer-card__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.jc-customer-card__header::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.jc-customer-card__header-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
}

.jc-customer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  font-family: "Outfit", sans-serif;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.22);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.jc-customer-avatar--inactive {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.jc-customer-card__titles {
  flex: 1;
  min-width: 0;
}

.jc-customer-card__name {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.jc-customer-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.jc-customer-card__code {
  font-size: 0.7rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.05em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.jc-customer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.jc-customer-status--active {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.22);
}
.jc-customer-status--inactive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jc-customer-card__clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
  z-index: 1;
}
.jc-customer-card__clear:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: transparent;
  color: #fff;
}

.jc-customer-card__header-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.jc-hcredit__label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.jc-hcredit__val {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.jc-hcredit__ccy {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.2rem;
  font-family: "JetBrains Mono", monospace;
}

.jc-hcredit__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.jc-hcredit__util {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  margin-left: auto;
}
.jc-hcredit__util--low {
  color: #6ee7b7;
}
.jc-hcredit__util--medium {
  color: #fde68a;
}
.jc-hcredit__util--high {
  color: #fed7aa;
}
.jc-hcredit__util--critical {
  color: #fca5a5;
}

.jc-customer-card__body {
  padding: 0.8rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: jcFadeIn 0.22s ease;
}

.jc-customer-card__error {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
  color: #991b1b;
  padding: 0.75rem 1.1rem;
  background: #fef2f2;
}
.jc-customer-card__error svg {
  color: #dc2626;
  flex-shrink: 0;
}

.jc-cd-section {
  padding: 0.55rem 0;
}
.jc-cd-section--border {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.jc-cd-section--credit {
  padding-bottom: 0.8rem;
}

.jc-cd-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #374151;
  padding: 0.22rem 0;
}
.jc-cd-row svg {
  flex-shrink: 0;
  color: #9ca3af;
}

.jc-cd-link {
  color: #2563eb;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jc-cd-link:hover {
  text-decoration: underline;
}

.jc-cd-sub {
  color: #9ca3af;
  font-size: 0.71rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-iata-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.44rem;
  background: #dbeafe;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.jc-credit-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.jc-credit-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.jc-credit-status-badge--ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #86efac;
}
.jc-credit-status-badge--pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.jc-credit-status-badge--danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.jc-credit-status-badge--muted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.jc-credit-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jc-credit-status-badge--ok .jc-credit-status-dot {
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.6);
}
.jc-credit-status-badge--pending .jc-credit-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}
.jc-credit-status-badge--danger .jc-credit-status-dot {
  background: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}
.jc-credit-status-badge--muted .jc-credit-status-dot {
  background: #94a3b8;
}

.jc-credit-days {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  padding: 0.17rem 0.48rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.jc-credit-bar-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.jc-credit-pct {
  font-size: 0.82rem;
  font-weight: 900;
  font-family: "Outfit", "Inter", sans-serif;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.jc-credit-pct--low {
  color: #15803d;
}
.jc-credit-pct--medium {
  color: #b45309;
}
.jc-credit-pct--high {
  color: #c2410c;
}
.jc-credit-pct--critical {
  color: #dc2626;
}

.jc-credit-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.jc-credit-bar__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.jc-credit-bar__fill--low {
  background: linear-gradient(90deg, #34d399, #10b981);
}
.jc-credit-bar__fill--medium {
  background: linear-gradient(90deg, #fcd34d, #f59e0b);
}
.jc-credit-bar__fill--high {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}
.jc-credit-bar__fill--critical {
  background: linear-gradient(90deg, #f87171, #dc2626);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.jc-credit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: visible;
}

.jc-credit-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem 0.7rem;
}
.jc-credit-stat + .jc-credit-stat {
  border-left: 1px solid #e2e8f0;
}
.jc-credit-stat--avail .jc-credit-stat__val {
  color: #059669;
}

.jc-credit-stat__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.jc-credit-stat__val {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}
.jc-credit-stat__val--muted {
  color: #6b7280;
}

.jc-cd-shimmer {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9ecef 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: jcShimmer 1.4s infinite;
  margin: 0.3rem 0;
}
.jc-cd-shimmer--wide {
  width: 85%;
}
.jc-cd-shimmer--mid {
  width: 60%;
}
.jc-cd-shimmer--narrow {
  width: 45%;
}
.jc-cd-shimmer--bar {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  margin-top: 0.75rem;
}

.jc-summary-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: clip;
}

.jc-summary-card__header {
  padding: 1.15rem 1.2rem 1.1rem;
  background: linear-gradient(140deg, #0c1a56 0%, #1e3a8a 28%, #1d4ed8 62%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.jc-summary-card__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.jc-summary-card__header::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -35px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.jc-summary-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.jc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.jc-summary-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.1rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.jc-summary-card__sub {
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
  position: relative;
  z-index: 1;
}

.jc-summary-rows {
  padding: 0.75rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.jc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.042);
}
.jc-summary-row:last-child {
  border-bottom: none;
}

.jc-summary-row__label {
  font-size: 0.72rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.jc-summary-row__val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
  text-align: right;
  word-break: break-word;
}
.jc-summary-row__val--empty {
  color: #d1d5db;
  font-weight: 400;
  font-style: italic;
  font-size: 0.74rem;
}

.jc-summary-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid #e5e7eb;
  background: #f8fafc;
}

.jc-summary-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.9rem 0.4rem 0.9rem;
  position: relative;
  transition: background 0.15s;
  min-width: 0;
}
.jc-summary-count + .jc-summary-count {
  border-left: 1px solid #e5e7eb;
}
.jc-summary-count:hover {
  background: #eff6ff;
}
.jc-summary-count svg {
  color: #9ca3af;
  transition: color 0.15s;
  flex-shrink: 0;
}
.jc-summary-count--has svg {
  color: #2563eb;
}

.jc-summary-count__num {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #6b7280;
  letter-spacing: -0.04em;
  line-height: 1;
}
.jc-summary-count--has .jc-summary-count__num {
  color: #2563eb;
}

.jc-summary-count__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  white-space: nowrap;
}

.jc-summary-count__sub {
  font-size: 0.64rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 0.25rem;
  text-align: center;
}

.jc-required-note {
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: center;
  padding: 0.4rem 1.2rem 1rem;
  margin: 0;
}
.jc-required-note span {
  color: #ef4444;
}

.jc-field--error .jc-label {
  color: #dc2626;
}
.jc-field--error .jc-input, .jc-field--error .jc-select, .jc-field--error .jc-textarea {
  border-color: #fca5a5 !important;
  background: #fff8f8;
}
.jc-field--error .jc-input:focus, .jc-field--error .jc-select:focus, .jc-field--error .jc-textarea:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.12);
}

.jc-field-error-msg {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.69rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
  animation: jcFadeIn 0.18s ease;
}
.jc-field-error-msg svg {
  flex-shrink: 0;
}

.jc-tip {
  display: flex;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  font-size: 0.76rem;
  color: #0369a1;
  line-height: 1.55;
}
.jc-tip svg {
  color: #0ea5e9;
  flex-shrink: 0;
  margin-top: 0.06rem;
}
.jc-tip strong {
  font-weight: 700;
}

@media (max-width: 1120px) {
  .jc-body {
    grid-template-columns: 1fr;
    padding: 1.4rem 1.5rem;
  }
  .jc-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    order: -1;
  }
}
.jc-supplier-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.jc-supplier-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-bottom: 1px solid #bbf7d0;
}

.jc-supplier-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.jc-supplier-avatar--inactive {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.jc-supplier-card__titles {
  flex: 1;
  min-width: 0;
}

.jc-supplier-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jc-supplier-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.jc-supplier-card__code {
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  background: #d1fae5;
  color: #065f46;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

.jc-supplier-status {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}
.jc-supplier-status--active {
  background: #dcfce7;
  color: #166534;
}
.jc-supplier-status--inactive {
  background: #f1f5f9;
  color: #64748b;
}

.jc-supplier-card__body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.jc-supplier-card__body.jc-supplier-card__error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  font-size: 0.8rem;
  padding: 0.875rem 1rem;
}

.jc-supplier-expiry {
  color: #b45309;
  font-size: 0.8rem;
}

.jc-supplier-notes {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .jc-body {
    padding: 1rem;
  }
  .jc-hero {
    padding: 0.9rem 1.25rem 1rem;
  }
  .jc-hero__title {
    font-size: 1.3rem;
  }
  .jc-form-grid, .jc-form-grid--3 {
    grid-template-columns: 1fr;
  }
  .jc-line-pricing {
    grid-template-columns: 1fr 1fr;
  }
  .jc-route-row {
    flex-direction: column;
  }
  .jc-cta-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
  }
  .jc-credit-row {
    grid-template-columns: 1fr 1fr;
  }
  .jc-ops-contacts-grid {
    grid-template-columns: 1fr;
  }
}
.jc-ops-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.jc-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem 0.75rem 0.9rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.jc-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}
.jc-contact-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.jc-contact-card:hover::before {
  opacity: 1;
}
.jc-contact-card--selected-pic, .jc-contact-card--selected-ops {
  background: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.jc-contact-card--selected-pic::before, .jc-contact-card--selected-ops::before {
  opacity: 1;
}
.jc-contact-card--selected-pic {
  border-color: #2563eb;
}
.jc-contact-card--selected-pic .jc-contact-card__avatar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.jc-contact-card--selected-ops {
  border-color: #14b8a6;
}
.jc-contact-card--selected-ops .jc-contact-card__avatar {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}
.jc-contact-card--selected-pic.jc-contact-card--selected-ops {
  border-color: #2563eb;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(20, 184, 166, 0.04));
}

.jc-contact-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.jc-contact-card__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.jc-contact-card__roles {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 18px;
  position: relative;
  z-index: 1;
}

.jc-contact-role {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: jcPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jc-contact-role--pic {
  background: #dbeafe;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.jc-contact-role--ops {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.jc-ops-assign-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}


/* ===== generic list (customers) ===== */
/* ── Page ── */
.list-page {
  padding: 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header__left {
  flex: 1;
  min-width: 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.125rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.btn.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px var(--blue-glow);
}
.btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--blue-glow);
}

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: all var(--ease-fast);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi-card__accent {
  height: 3px;
  width: 100%;
}
.kpi-card__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.kpi-card__content {
  flex: 1;
  min-width: 0;
}
.kpi-card__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.375rem;
}
.kpi-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.kpi-card__change {
  font-size: 0.75rem;
  font-weight: 600;
}
.kpi-card__change--positive {
  color: #10b981;
}
.kpi-card__change--negative {
  color: #ef4444;
}
.kpi-card__change--neutral {
  color: var(--text-muted);
}
.kpi-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-card__icon-wrap--blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}
.kpi-card__icon-wrap--green {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}
.kpi-card__icon-wrap--amber {
  background: rgba(217, 119, 6, 0.08);
  color: var(--gold);
}
.kpi-card__icon-wrap--purple {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
}
.kpi-card__icon-wrap--red {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.kpi-blue .kpi-card__accent {
  background: var(--blue);
}

.kpi-green .kpi-card__accent {
  background: #10b981;
}

.kpi-amber .kpi-card__accent {
  background: var(--gold);
}

.kpi-purple .kpi-card__accent {
  background: #8b5cf6;
}

.kpi-red .kpi-card__accent {
  background: #ef4444;
}

/* ── Table Card ── */
.table-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── Toolbar ── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.search-box__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-box__input {
  width: 100%;
  padding: 0.5625rem 1rem 0.5625rem 2.375rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--ease-fast);
}
.search-box__input::placeholder {
  color: var(--text-muted);
}
.search-box__input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.filter-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--blue);
}

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.data-table thead tr {
  background: var(--bg-base);
  border-bottom: 2px solid var(--border-light);
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--ease-fast);
}
.data-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.025);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Cell Helpers ── */
.code-badge {
  display: inline-block;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.customer-cell__name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.customer-cell__loc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.text-strong {
  font-weight: 600;
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-danger {
  color: #ef4444;
  font-weight: 600;
}

.text-success {
  color: #10b981;
  font-weight: 600;
}

.email-link {
  color: var(--blue);
  text-decoration: none;
  font-size: var(--text-sm);
}
.email-link:hover {
  text-decoration: underline;
}

/* ── Risk Bar ── */
.risk-cell {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 130px;
}

.risk-bar {
  width: 60px;
  height: 5px;
  background: var(--bg-base);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.risk-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.risk-bar__fill--low {
  background: #10b981;
}
.risk-bar__fill--medium {
  background: #f59e0b;
}
.risk-bar__fill--high {
  background: #ef4444;
}

.risk-label {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.risk-label--low {
  color: #10b981;
}
.risk-label--medium {
  color: #f59e0b;
}
.risk-label--high {
  color: #ef4444;
}

/* ── Status Badge ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.status-badge--active .status-badge__dot {
  background: #10b981;
}
.status-badge--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.status-badge--warning .status-badge__dot {
  background: #f59e0b;
}
.status-badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.status-badge--success .status-badge__dot {
  background: #10b981;
}
.status-badge--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.status-badge--danger .status-badge__dot {
  background: #ef4444;
}
.status-badge--neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.status-badge--neutral .status-badge__dot {
  background: var(--text-muted);
}

/* ── Action Buttons ── */
.action-group {
  display: flex;
  gap: 0.375rem;
}

.action-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease-fast);
}
.action-btn:hover {
  background: var(--blue-bg);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--blue);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
}
.empty-state__icon {
  color: var(--text-muted);
  opacity: 0.4;
}
.empty-state__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Table Footer ── */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.table-footer__info {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

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

/* ── Breadcrumb ── */
.pl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.pl-breadcrumb__link {
  color: #9ca3af;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.pl-breadcrumb__link:hover {
  color: #374151;
}

/* ── Sticky table header ── */
.data-table thead tr {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-wrap: wrap;
  }
}


/* ===== customer create (generic form) ===== */
/* Customer Create — Premium Form */
.cf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f0f4ff;
}

.cf-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e40af 100%);
  padding: 2rem 2.5rem 2.25rem;
  overflow: hidden;
}
.cf-hero__glow-1 {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
  pointer-events: none;
}
.cf-hero__glow-2 {
  position: absolute;
  bottom: -50px;
  left: 28%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}
.cf-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cf-hero__content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.cf-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Inter", sans-serif;
}
.cf-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.cf-hero__breadcrumb a:hover {
  color: #fff;
}
.cf-hero__breadcrumb svg {
  opacity: 0.45;
}
.cf-hero__breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.cf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Inter", sans-serif;
}
.cf-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cf-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.cf-hero__sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-family: "Inter", sans-serif;
}
.cf-hero__actions {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.cf-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: "Inter", sans-serif;
}
.cf-hero-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.cf-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cf-hero-btn--save {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
.cf-hero-btn--save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.cf-hero-btn--save:disabled {
  opacity: 0.6;
  cursor: default;
}

.cf-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: cf-rotate 0.7s linear infinite;
  display: inline-block;
}

@keyframes cf-rotate {
  to {
    transform: rotate(360deg);
  }
}
.cf-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

.cf-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cf-section {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.cf-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cf-section__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cf-section__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.cf-section__icon--green {
  background: #d1fae5;
  color: #059669;
}

.cf-section__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.2rem;
}

.cf-section__sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}
.cf-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cf-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Inter", sans-serif;
}

.cf-req {
  color: #ef4444;
}

.cf-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.cf-input {
  width: 100%;
  padding: 0.6875rem 1rem;
  background: #f8fafc;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 0.625rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #111827;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.cf-input::placeholder {
  color: #9ca3af;
}
.cf-input:hover {
  border-color: rgba(0, 0, 0, 0.15);
}
.cf-input:focus {
  outline: none;
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.cf-input--readonly {
  background: #f1f5f9;
  color: #6b7280;
  pointer-events: none;
  border-color: transparent;
}
.cf-input--prefixed {
  padding-left: 1.875rem;
}

.cf-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cf-prefix {
  position: absolute;
  left: 0.875rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.cf-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 0.5rem;
  font-size: 0.78rem;
  color: #1d4ed8;
  font-family: "Inter", sans-serif;
}
.cf-info-box svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

@media (max-width: 900px) {
  .cf-hero {
    padding: 1.5rem 1.25rem;
  }
  .cf-body {
    padding: 1rem 1.25rem 2rem;
  }
  .cf-grid {
    grid-template-columns: 1fr;
  }
  .cf-hero__title {
    font-size: 1.5rem;
  }
  .cf-hero__row {
    flex-direction: column;
  }
  .cf-hero__actions {
    width: 100%;
  }
}


/* ===== customer details (generic detail) ===== */
/* Customer Details — Premium */
.cd-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.cd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cd-header__left {
  flex: 1;
  min-width: 0;
}

.cd-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.cd-breadcrumb svg {
  color: #d1d5db;
}

.cd-breadcrumb__link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}
.cd-breadcrumb__link:hover {
  color: #2563eb;
}

.cd-breadcrumb__current {
  color: #374151;
  font-weight: 600;
}

.cd-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cd-iata-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.cd-hero__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.cd-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  letter-spacing: -0.02em;
}

.cd-hero__sub {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cd-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.cd-status--active {
  background: #d1fae5;
  color: #065f46;
}
.cd-status--risk {
  background: #fef3c7;
  color: #92400e;
}
.cd-status--inactive {
  background: #f1f5f9;
  color: #475569;
}

.cd-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.cd-status--active .cd-status__dot {
  background: #10b981;
}
.cd-status--risk .cd-status__dot {
  background: #f59e0b;
}
.cd-status--inactive .cd-status__dot {
  background: #94a3b8;
}

/* Buttons */
.cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.125rem;
  border-radius: 0.625rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
}
.cd-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}
.cd-btn--ghost:hover {
  background: #f8fafc;
}
.cd-btn--outline {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
}
.cd-btn--outline:hover {
  background: #eff6ff;
}
.cd-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.cd-btn--primary:hover {
  transform: translateY(-1px);
}

/* KPI Strip */
.cd-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cd-kpi {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cd-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cd-kpi__bar {
  height: 4px;
}

.cd-kpi--blue .cd-kpi__bar {
  background: linear-gradient(90deg, #2563eb, #93c5fd);
}

.cd-kpi--amber .cd-kpi__bar {
  background: linear-gradient(90deg, #d97706, #fcd34d);
}

.cd-kpi--green .cd-kpi__bar {
  background: linear-gradient(90deg, #059669, #6ee7b7);
}

.cd-kpi--red .cd-kpi__bar {
  background: linear-gradient(90deg, #dc2626, #fca5a5);
}

.cd-kpi__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
}

.cd-kpi__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-kpi__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.cd-kpi__icon--amber {
  background: #fef3c7;
  color: #b45309;
}
.cd-kpi__icon--green {
  background: #d1fae5;
  color: #059669;
}
.cd-kpi__icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.cd-kpi__content {
  flex: 1;
  min-width: 0;
}

.cd-kpi__label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
  font-family: "Inter", sans-serif;
}

.cd-kpi__value {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cd-kpi__sub {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

/* Body layout */
.cd-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
}

.cd-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cards */
.cd-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1.375rem;
}

.cd-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cd-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-card__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.cd-card__icon--green {
  background: #d1fae5;
  color: #059669;
}
.cd-card__icon--purple {
  background: #ede9fe;
  color: #6d28d9;
}
.cd-card__icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.cd-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.15rem;
}

.cd-card__sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Info grid */
.cd-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

.cd-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cd-info-item--full {
  grid-column: 1/-1;
}

.cd-info-item__label {
  font-size: 0.67rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Inter", sans-serif;
}

.cd-info-item__value {
  font-size: 0.8125rem;
  color: #374151;
  font-family: "Inter", sans-serif;
}
.cd-info-item__value--strong {
  font-weight: 700;
  color: #111827;
}

.cd-code-badge {
  display: inline-flex;
  padding: 0.2rem 0.625rem;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  border-radius: 0.375rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cd-email-link {
  font-size: 0.8125rem;
  color: #2563eb;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}
.cd-email-link:hover {
  text-decoration: underline;
}

.cd-empty {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
  margin: 0;
}

/* Recent jobs table */
.cd-jobs-wrap {
  overflow-x: auto;
}

.cd-jobs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.cd-jobs-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}
.cd-jobs-table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Inter", sans-serif;
}
.cd-jobs-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.8125rem;
  color: #6b7280;
  vertical-align: middle;
  font-family: "Inter", sans-serif;
}
.cd-jobs-table tbody tr {
  transition: background 0.1s;
}
.cd-jobs-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.02);
}
.cd-jobs-table tbody tr:last-child td {
  border-bottom: none;
}

.cd-job-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.cd-job-link:hover {
  text-decoration: underline;
}

.cd-flight-chip {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
}

.cd-airport-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
}

.cd-date {
  color: #9ca3af;
  white-space: nowrap;
}

.cd-amount {
  font-weight: 700;
  color: #111827;
  font-family: "Outfit", sans-serif;
}

.cd-job-status {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.cd-job-status--open {
  background: #dbeafe;
  color: #1d4ed8;
}
.cd-job-status--pending {
  background: #fef9c3;
  color: #854d0e;
}
.cd-job-status--approved {
  background: #d1fae5;
  color: #065f46;
}
.cd-job-status--progress {
  background: #ede9fe;
  color: #5b21b6;
}
.cd-job-status--closed {
  background: #f1f5f9;
  color: #475569;
}
.cd-job-status--overdue {
  background: #fee2e2;
  color: #991b1b;
}

.cd-jobs-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.75rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}
.cd-jobs-foot__total {
  font-weight: 500;
}
.cd-jobs-foot__total strong {
  color: #111827;
  font-family: "Outfit", sans-serif;
}

/* Credit health */
.cd-util-display {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.cd-util-display__pct {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cd-util-display__pct--low {
  color: #059669;
}
.cd-util-display__pct--medium {
  color: #d97706;
}
.cd-util-display__pct--high {
  color: #dc2626;
}

.cd-util-display__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  font-family: "Inter", sans-serif;
}

.cd-util-bar-wrap {
  margin-bottom: 1.25rem;
}

.cd-util-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.cd-util-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cd-util-bar__fill--low {
  background: linear-gradient(90deg, #059669, #6ee7b7);
}
.cd-util-bar__fill--medium {
  background: linear-gradient(90deg, #d97706, #fcd34d);
}
.cd-util-bar__fill--high {
  background: linear-gradient(90deg, #dc2626, #fca5a5);
}

.cd-credit-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cd-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-credit-row__key {
  font-size: 0.8125rem;
  color: #6b7280;
  font-family: "Inter", sans-serif;
}

.cd-credit-row__val {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}
.cd-credit-row__val--used {
  color: #d97706;
}
.cd-credit-row__val--avail {
  color: #059669;
}

.cd-credit-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0.25rem 0;
}

/* Quick actions */
.cd-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cd-action-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: #f8fafc;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.cd-action-btn:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563eb;
}
.cd-action-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.cd-action-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}

/* Not found */
.cd-notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}
.cd-notfound h2 {
  font-family: "Outfit", sans-serif;
  color: #374151;
}

/* Responsive */
@media (max-width: 1280px) {
  .cd-body {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 1100px) {
  .cd-body {
    grid-template-columns: 1fr;
  }
  .cd-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .cd-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cd-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cd-info-grid {
    grid-template-columns: 1fr;
  }
  .cd-sidebar {
    grid-template-columns: 1fr;
  }
  .cd-header {
    flex-direction: column;
  }
}


/* ===== invoices list ===== */
@keyframes invRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes invSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes invSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}
@keyframes invPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}
@keyframes invShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes invBadgePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.inv-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.inv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0c1a56 0%, #1e3a8a 18%, #1d4ed8 52%, #2563eb 80%, #3b82f6 100%);
  border-radius: 16px;
  padding: 1.6rem 1.75rem 0;
  box-shadow: 0 12px 48px rgba(29, 78, 216, 0.35), 0 2px 10px rgba(0, 0, 0, 0.18);
}
.inv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.inv-hero__glow {
  position: absolute;
  top: -35%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.inv-hero__glow--right {
  top: -20%;
  right: 30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 179, 237, 0.12) 0%, transparent 65%);
}

.inv-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.inv-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
}

.inv-hero__create {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.inv-hero__create:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.inv-hero__create:active {
  transform: scale(0.97);
}

.inv-hero__body {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.inv-hero__title {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.1;
  font-family: "Outfit", "Inter", sans-serif;
}

.inv-hero__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.inv-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: 0 -1.75rem;
  padding: 0 1.75rem;
}

.inv-hero__stat {
  flex: 1;
  text-align: center;
  padding: 1rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.inv-hero__stat:hover {
  background: rgba(255, 255, 255, 0.06);
}
.inv-hero__stat--active {
  background: rgba(255, 255, 255, 0.1) !important;
}

.inv-hero__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.28rem;
  font-family: "Outfit", "Inter", sans-serif;
}

.inv-hero__lbl {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
}

.inv-hero__stat--blue .inv-hero__num {
  color: #93c5fd;
}

.inv-hero__stat--green .inv-hero__num {
  color: #6ee7b7;
}

.inv-hero__stat--red .inv-hero__num {
  color: #fca5a5;
}

.inv-hero__stat--slate .inv-hero__num {
  color: rgba(255, 255, 255, 0.5);
}

.inv-hero__sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0.6rem 0;
}

.inv-hero__shimmer {
  display: inline-block;
  width: 2.2rem;
  height: 1.8rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
  animation: invShimmer 1.4s infinite;
  vertical-align: middle;
}

.inv-hero__alert-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3);
  animation: invPulse 2s ease-in-out infinite;
}

.inv-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.inv-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 1rem;
  gap: 0.15rem;
}
.inv-tabs::-webkit-scrollbar {
  display: none;
}

.inv-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem 0.78rem;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.inv-tab:hover:not(.inv-tab--active) {
  color: #111827;
  background: rgba(0, 0, 0, 0.03);
}
.inv-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  font-weight: 700;
}

.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.inv-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}
.inv-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

.inv-select {
  height: 34px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  color: #111827;
  background: #f9fafb;
  cursor: pointer;
}
.inv-select:focus {
  outline: none;
  border-color: #2563eb;
}

.inv-date-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.inv-date {
  height: 34px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 0.65rem;
  font-size: 0.775rem;
  color: #111827;
  background: #f9fafb;
  width: 136px;
}
.inv-date:focus {
  outline: none;
  border-color: #2563eb;
}

.inv-date-sep {
  font-size: 0.75rem;
  color: #6b7280;
}

.inv-party-input {
  height: 34px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  color: #111827;
  background: #f9fafb;
  min-width: 160px;
}
.inv-party-input:focus {
  outline: none;
  border-color: #2563eb;
}

.inv-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}
.inv-clear-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.inv-result-count {
  font-size: 0.78rem;
  color: #6b7280;
  white-space: nowrap;
}
.inv-result-count strong {
  color: #111827;
  font-weight: 700;
}

.inv-refresh-bar {
  height: 3px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}
.inv-refresh-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  animation: invSlide 1s ease-in-out infinite;
}

.inv-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.inv-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #eef2f7;
  position: sticky;
  top: 0;
  z-index: 2;
}
.inv-table th {
  padding: 0.72rem 1rem;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9ca3af;
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
}
.inv-table .inv-th--r {
  text-align: right;
}
.inv-table .inv-th--actions {
  width: 160px;
}
.inv-table td {
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.inv-row {
  cursor: pointer;
  transition: background 0.1s;
  animation: invRowIn 0.22s ease both;
}
.inv-row td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #111827;
}
.inv-row:hover td {
  background: #f0f7ff;
}
.inv-row:last-child td {
  border-bottom: none;
}

.inv-num {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: 0.775rem;
  color: #2563eb;
  letter-spacing: -0.01em;
}

.inv-type {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.69rem;
  font-weight: 700;
}

.inv-party-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.inv-party-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-party-name {
  font-weight: 500;
  color: #111827;
  font-size: 0.8125rem;
}

.inv-job-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
}

.inv-date {
  font-size: 0.775rem;
  color: #6b7280;
  white-space: nowrap;
}

.inv-ccy {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
}

.inv-num-cell {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.775rem;
  color: #6b7280;
}

.inv-total-cell {
  color: #111827 !important;
  font-weight: 700 !important;
}

.inv-muted {
  color: #9ca3af;
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}
.inv-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.inv-badge--draft {
  background: #f9fafb;
  color: #6b7280;
}
.inv-badge--draft .inv-badge__dot {
  background: #9ca3af;
}
.inv-badge--issued {
  background: #eff6ff;
  color: #1e40af;
}
.inv-badge--issued .inv-badge__dot {
  background: #3b82f6;
}
.inv-badge--paid {
  background: #f0fdf4;
  color: #166534;
}
.inv-badge--paid .inv-badge__dot {
  background: #22c55e;
}
.inv-badge--partial {
  background: #fffbeb;
  color: #92400e;
}
.inv-badge--partial .inv-badge__dot {
  background: #f59e0b;
}
.inv-badge--overdue {
  background: #fef2f2;
  color: #991b1b;
}
.inv-badge--overdue .inv-badge__dot {
  background: #ef4444;
  animation: invBadgePulse 1.5s ease infinite;
}
.inv-badge--cancelled {
  background: #f9fafb;
  color: #9ca3af;
}
.inv-badge--cancelled .inv-badge__dot {
  background: #d1d5db;
}

.inv-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.inv-act-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.15s;
}
.inv-act-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}
.inv-act-btn--green:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}
.inv-act-btn--amber:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #d97706;
}

.inv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
}

.inv-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
}

.inv-empty__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.inv-empty__sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.inv-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.inv-new-btn:hover {
  background: #1d4ed8;
}

.inv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.inv-pagination__info {
  font-size: 0.78rem;
  color: #6b7280;
}
.inv-pagination__info strong {
  color: #111827;
  font-weight: 700;
}
.inv-pagination__btns {
  display: flex;
  gap: 3px;
}

.inv-pag-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.inv-pag-btn:hover:not(:disabled) {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}
.inv-pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.inv-pag-btn--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.inv-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.inv-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.inv-modal__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.inv-modal__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-modal__icon--green {
  background: #dcfce7;
  color: #16a34a;
}
.inv-modal__icon--blue {
  background: #dbeafe;
  color: #2563eb;
}
.inv-modal__icon--amber {
  background: #fef3c7;
  color: #d97706;
}
.inv-modal__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
  font-family: "Outfit", sans-serif;
}
.inv-modal__sub {
  font-size: 0.775rem;
  color: #6b7280;
  margin: 0;
}
.inv-modal__x {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inv-modal__x:hover {
  background: #fef2f2;
  color: #dc2626;
}
.inv-modal__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.inv-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.inv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
}

.inv-field {
  height: 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
}
.inv-field:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inv-suggestion {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: #1e3a8a;
  line-height: 1.6;
  white-space: pre-wrap;
}

.inv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5625rem 1.125rem;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.inv-btn--primary {
  background: #2563eb;
  color: #fff;
}
.inv-btn--primary:hover {
  background: #1d4ed8;
}
.inv-btn--green {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}
.inv-btn--green:hover {
  background: #15803d;
}
.inv-btn--green:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.inv-btn--ghost {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #111827;
}
.inv-btn--ghost:hover {
  background: #f9fafb;
}

.inv-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: invSpin 0.65s linear infinite;
}

.inv-sk {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: invShimmer 1.4s linear infinite;
  border-radius: 4px;
}
.inv-sk--avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.inv-sk--name {
  height: 13px;
  width: 100px;
}
.inv-sk--id {
  height: 13px;
  width: 80px;
}
.inv-sk--md {
  height: 13px;
  width: 80px;
}
.inv-sk--sm {
  height: 20px;
  width: 60px;
  border-radius: 999px;
}
.inv-sk--xs {
  height: 13px;
  width: 40px;
}
.inv-sk--num {
  height: 13px;
  width: 65px;
}
.inv-sk--badge {
  height: 20px;
  width: 68px;
  border-radius: 999px;
}

.inv-sk-party {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inv-num--copy {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.12s;
}
.inv-num--copy:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.inv-num--copied {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

.inv-copy-icon {
  opacity: 0;
  transition: opacity 0.12s;
}

.inv-num--copy:hover .inv-copy-icon {
  opacity: 1;
}

@media (max-width: 900px) {
  .inv-hero__stats {
    gap: 0;
    overflow-x: auto;
  }
}
@media (max-width: 768px) {
  .inv-hero__title {
    font-size: 1.5rem;
  }
  .inv-table th:nth-child(4),
  .inv-table td:nth-child(4),
  .inv-table th:nth-child(7),
  .inv-table td:nth-child(7),
  .inv-table th:nth-child(8),
  .inv-table td:nth-child(8) {
    display: none;
  }
}


/* ===== invoice details ===== */
/* ── Invoice Details — World Class ──────────────────────────────────────── */
/* ── Skeleton / Loading ───────────────────────────────────────────────── */
.id-loading {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
}

@keyframes id-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.id-body-skel, .id-hero-skel {
  border-radius: 16px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f1f5f9 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: id-shimmer 1.5s ease infinite;
}

.id-hero-skel {
  height: 220px;
}

.id-body-skel {
  height: 380px;
}

.id-error {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}
.id-error p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.id-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 2.25rem 2.5rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e40af 100%);
}
.id-hero--paid {
  background: linear-gradient(135deg, #052e16 0%, #14532d 55%, #15803d 100%);
}
.id-hero--overdue {
  background: linear-gradient(135deg, #3b0a0a 0%, #7f1d1d 55%, #b91c1c 100%);
}
.id-hero--draft {
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
}
.id-hero--partial {
  background: linear-gradient(135deg, #1c1003 0%, #78350f 55%, #92400e 100%);
}
.id-hero--cancelled {
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
}
.id-hero {
  /* Dot pattern */
}
.id-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.id-hero {
  /* Glow accent */
}
.id-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.id-hero__content {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.id-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.id-hero__back:hover {
  color: rgba(255, 255, 255, 0.85);
}
.id-hero__meta {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.id-hero__type, .id-hero__job {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.id-hero__job {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}
.id-hero__num {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.id-hero__customer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 400;
}
.id-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.875rem;
  padding-top: 0.25rem;
}
.id-hero__amount-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.1rem;
}
.id-hero__total {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.id-hero__dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.id-paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.72rem;
}
.id-paid-badge::before {
  content: "✓";
  font-weight: 900;
}

/* Status badge */
.id-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.id-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.id-status--draft {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}
.id-status--draft .id-status__dot {
  background: rgba(255, 255, 255, 0.4);
}
.id-status--issued {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
.id-status--issued .id-status__dot {
  background: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
}
.id-status--paid {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.id-status--paid .id-status__dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.id-status--partial {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.id-status--partial .id-status__dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}
.id-status--overdue {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.id-status--overdue .id-status__dot {
  background: #ef4444;
  animation: id-pulse 1.5s ease infinite;
  box-shadow: 0 0 6px #ef4444;
}
.id-status--cancelled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}
.id-status--cancelled .id-status__dot {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes id-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
/* ── Action Bar ───────────────────────────────────────────────────────── */
.id-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.875rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.id-action-bar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.id-action-bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.id-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.9375rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  transition: all 0.15s;
  white-space: nowrap;
}
.id-action-btn svg {
  flex-shrink: 0;
}
.id-action-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #d1d5db;
  color: #111827;
}
.id-action-btn:active:not(:disabled) {
  transform: scale(0.975);
}
.id-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.id-action-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.id-action-btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.id-action-btn--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.id-action-btn--green:hover:not(:disabled) {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.id-action-btn--amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.id-action-btn--amber:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #fcd34d;
}
.id-action-btn--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.id-action-btn--danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ── Inline Alerts ────────────────────────────────────────────────────── */
.id-toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.id-toast--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.id-toast--green::before {
  content: "✓";
  font-weight: 900;
  color: #16a34a;
}

.id-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem 1.125rem;
  font-size: 0.8125rem;
  color: #1e40af;
  line-height: 1.5;
}
.id-suggestion svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.id-suggestion span {
  flex: 1;
}

.id-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: #93c5fd;
  font-size: 0.9rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}
.id-dismiss:hover {
  color: #1d4ed8;
}

/* ── Two-column Body ──────────────────────────────────────────────────── */
.id-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
}

.id-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.id-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s;
}
.id-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.id-card__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}
.id-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}
.id-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.01em;
}
.id-card__badge {
  padding: 2px 9px;
  border-radius: 9999px;
  background: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
}
.id-card__body {
  padding: 1.375rem 1.5rem;
}

/* ── Detail Grid ──────────────────────────────────────────────────────── */
.id-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1rem;
}

.id-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.id-detail__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.id-detail__val {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
}
.id-detail__val--mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.775rem;
}
.id-detail__val--green {
  color: #16a34a;
  font-weight: 700;
}
.id-detail__val--link {
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}
.id-detail__val--link:hover {
  color: #1d4ed8;
}

.id-notes {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.id-notes__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.4rem;
}

.id-notes__text {
  font-size: 0.8125rem;
  color: #334155;
  margin: 0;
  line-height: 1.65;
}

/* ── Approvals ────────────────────────────────────────────────────────── */
.id-approval-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.id-approval {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1 1 160px;
  padding: 0.875rem 1.25rem;
  border-right: 1px solid #f1f5f9;
}
.id-approval:last-child {
  border-right: none;
}
.id-approval__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.id-approval__avatar--prep {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.id-approval__avatar--rev {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.id-approval__avatar--appr {
  background: linear-gradient(135deg, #10b981, #059669);
}
.id-approval__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.id-approval__role {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.id-approval__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

/* ── Lines Table ──────────────────────────────────────────────────────── */
.id-lines-wrap {
  overflow-x: auto;
}

.id-lines-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.id-lines-table {
  width: 100%;
  border-collapse: collapse;
}
.id-lines-table thead tr {
  background: #f8fafc;
}
.id-lines-table th {
  padding: 0.625rem 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #94a3b8;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.id-lines-table td {
  padding: 0.8125rem 1rem;
  font-size: 0.8rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background 0.1s;
}
.id-lines-table tbody tr:last-child td {
  border-bottom: none;
}
.id-lines-table tbody tr:hover td {
  background: #f8fafc;
}
.id-lines-table .id-th-r {
  text-align: right;
}

.id-ln-seq {
  color: #cbd5e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  width: 32px;
}

.id-ln-desc {
  font-weight: 600;
  color: #0f172a;
}

.id-ln-product {
  color: #94a3b8;
  font-size: 0.72rem;
}
.id-ln-product span {
  background: #f1f5f9;
  border-radius: 5px;
  padding: 2px 7px;
}

.id-num {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.775rem;
  color: #334155;
  white-space: nowrap;
}

.id-total {
  font-weight: 700;
  color: #0f172a !important;
}

.id-muted {
  color: #94a3b8 !important;
}

/* ── Lines Footer ─────────────────────────────────────────────────────── */
.id-lines-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.875rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  gap: 2.5rem;
}

.id-lines-foot-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.id-lines-foot-item__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.id-lines-foot-item__val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.id-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Financial Summary */
.id-sum-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
}
.id-sum-card__header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1e40af 100%);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.id-sum-card__header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
}
.id-sum-card__title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.5rem;
  position: relative;
}
.id-sum-card__amount {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
}
.id-sum-card__currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  vertical-align: super;
  margin-right: 4px;
  letter-spacing: 0.05em;
}
.id-sum-card__body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 0.875rem 1.25rem;
}

.id-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4375rem 0;
  gap: 0.5rem;
}
.id-sum-row--total {
  margin-top: 0.125rem;
  padding-top: 0.5625rem;
  border-top: 1px dashed #e2e8f0;
}
.id-sum-row--total .id-sum-label {
  font-weight: 700;
  color: #0f172a;
}
.id-sum-row--total .id-sum-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.id-sum-label {
  font-size: 0.75rem;
  color: #64748b;
}

.id-sum-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

/* Aging Card */
.id-aging-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.id-aging-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}
.id-aging-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: "Outfit", sans-serif;
}
.id-aging-card__party {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: auto;
}
.id-aging-card__body {
  padding: 0.75rem 1.25rem;
}

.id-aging-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3125rem 0;
  gap: 0.5rem;
}
.id-aging-row--total {
  margin-top: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}
.id-aging-row--total .id-aging-label {
  font-weight: 700;
  color: #0f172a;
}

.id-aging-label {
  font-size: 0.73rem;
  color: #64748b;
}

.id-aging-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  color: #334155;
}
.id-aging-val--warn {
  color: #b45309;
}
.id-aging-val--danger {
  color: #dc2626;
  font-weight: 700;
}

/* Meta */
.id-meta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.id-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.id-meta-label {
  font-size: 0.67rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.id-meta-val {
  font-size: 0.72rem;
  color: #64748b;
  font-family: "JetBrains Mono", monospace;
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.id-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.id-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08);
  animation: id-modal-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.id-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.id-modal__head h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: "Outfit", sans-serif;
}
.id-modal__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.id-modal__close:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.id-modal__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.id-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

@keyframes id-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.id-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
}

.id-field-input {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
  color: #0f172a;
  background: #fff;
  transition: all 0.15s;
}
.id-field-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.id-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5625rem 1.125rem;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.id-btn:active {
  transform: scale(0.975);
}
.id-btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}
.id-btn--primary:hover {
  background: #1d4ed8;
}
.id-btn--green {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}
.id-btn--green:hover {
  background: #15803d;
}
.id-btn--green:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.id-btn--ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #374151;
}
.id-btn--ghost:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}

.id-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: id-spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes id-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .id-body {
    grid-template-columns: 1fr 280px;
  }
}
@media (max-width: 1024px) {
  .id-body {
    grid-template-columns: 1fr 260px;
  }
  .id-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .id-body {
    grid-template-columns: 1fr;
  }
  .id-hero {
    padding: 1.75rem 1.5rem;
  }
  .id-hero__num {
    font-size: 1.75rem;
  }
  .id-hero__total {
    font-size: 1.75rem;
  }
}
@media (max-width: 640px) {
  .id-hero {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }
  .id-hero__num, .id-hero__total {
    font-size: 1.375rem;
  }
  .id-action-bar {
    padding: 0.625rem 0.875rem;
  }
  .id-action-btn {
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
  }
  .id-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .id-approval {
    flex-direction: column;
    align-items: flex-start;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
}


/* ===== payments list ===== */
.pay-page {
  min-height: 100vh;
  background: #f0f4ff;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pay-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 42%, #2563eb 100%);
  padding: 2.5rem 2rem 0;
  overflow: hidden;
}
.pay-hero__glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
  pointer-events: none;
}
.pay-hero__content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.pay-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pay-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.pay-hero__sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0;
}
.pay-hero__kpi {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
}

.pay-kpi {
  flex: 1;
  padding: 0.8rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.pay-kpi:last-child {
  border-right: none;
}
.pay-kpi__val {
  display: block;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.pay-kpi__lbl {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pay-kpi--rec .pay-kpi__val {
  color: #6ee7b7;
}
.pay-kpi--overdue .pay-kpi__val {
  color: #fca5a5;
}
.pay-kpi--pending .pay-kpi__val {
  color: #fde68a;
}
.pay-kpi--pay .pay-kpi__val {
  color: #93c5fd;
}

.pay-controls {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-main-tabs {
  display: flex;
  gap: 0.5rem;
}

.pay-main-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.pay-main-tab--active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.pay-main-tab:hover:not(.pay-main-tab--active) {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.pay-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
}
.pay-count-pill--amber {
  background: #fef3c7;
  color: #d97706;
}

.pay-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pay-status-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pay-status-tab {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: #6b7280;
  transition: all 0.12s;
}
.pay-status-tab--active {
  background: #2563eb;
  color: #fff;
}
.pay-status-tab:hover:not(.pay-status-tab--active) {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.pay-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-input {
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  font-size: 0.82rem;
  color: #111827;
}
.pay-input--date {
  width: 140px;
}
.pay-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pay-card {
  max-width: 1400px;
  margin: 1.25rem auto 2rem;
  padding: 0 2rem;
}

.pay-loading, .pay-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  color: #6b7280;
}
.pay-loading svg, .pay-empty svg {
  opacity: 0.35;
}
.pay-loading p, .pay-empty p {
  margin: 0;
}

.pay-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  animation: spin 0.75s linear infinite;
}

.pay-table-wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  position: relative;
}

.pay-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.pay-table thead tr {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}
.pay-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  white-space: nowrap;
}
.pay-table td {
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #111827;
  white-space: nowrap;
}
.pay-table tr:last-child td {
  border-bottom: none;
}

.pay-th--right, .pay-td--right {
  text-align: right;
}

.pay-th--center, .pay-td--center {
  text-align: center;
}

.pay-row {
  transition: background 0.12s;
  cursor: default;
}
.pay-row--open {
  border-left: 3px solid #2563eb;
}
.pay-row--partial {
  border-left: 3px solid #d97706;
}
.pay-row--paid {
  border-left: 3px solid #059669;
}
.pay-row--overdue {
  border-left: 3px solid #dc2626;
}
.pay-row--pending {
  border-left: 3px solid #6b7280;
}
.pay-row--approved {
  border-left: 3px solid #2563eb;
}
.pay-row--rejected {
  border-left: 3px solid #dc2626;
}
.pay-row:hover {
  background: #f8faff;
}

.pay-td--mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
}

.pay-td--bold {
  font-weight: 700;
}

.pay-td--muted {
  color: #6b7280;
}

.pay-td--danger {
  color: #dc2626;
}

.pay-td--green {
  color: #059669;
}

.pay-td--amber {
  color: #d97706;
}

.pay-td--date {
  font-size: 0.82rem;
}

.pay-currency {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
}

.pay-overdue-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.pay-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pay-badge--open {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.pay-badge--open .pay-badge__dot {
  background: #2563eb;
}
.pay-badge--partial {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}
.pay-badge--partial .pay-badge__dot {
  background: #d97706;
}
.pay-badge--paid {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.pay-badge--paid .pay-badge__dot {
  background: #059669;
}
.pay-badge--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.pay-badge--overdue .pay-badge__dot {
  background: #dc2626;
}
.pay-badge--pending {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
.pay-badge--pending .pay-badge__dot {
  background: #6b7280;
}
.pay-badge--approved {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.pay-badge--approved .pay-badge__dot {
  background: #2563eb;
}
.pay-badge--rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.pay-badge--rejected .pay-badge__dot {
  background: #dc2626;
}

.pay-totals-row td {
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-top: 2px solid rgba(0, 0, 0, 0.07);
  font-size: 0.8rem;
  font-weight: 700;
}

.pay-totals-lbl {
  color: #6b7280;
  font-weight: 600;
}

.pay-totals-lbl__inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pay-action {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.pay-action:hover {
  background: #eff6ff;
  color: #2563eb;
}
.pay-action--green:hover {
  background: #d1fae5;
  color: #059669;
}

.pay-paid-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #059669;
  opacity: 0.65;
}

.pay-req {
  color: #dc2626;
}

.pay-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-modal {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.pay-modal__hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e3a5f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #f8faff;
}
.pay-modal__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pay-modal__ref {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}
.pay-modal__ref strong {
  color: #1e3a5f;
}
.pay-modal__balance {
  font-size: 0.9rem;
  margin: 0;
}
.pay-modal__balance strong {
  color: #2563eb;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
}
.pay-modal__error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #991b1b;
  font-size: 0.83rem;
}
.pay-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pay-modal__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pay-modal__hint {
  font-size: 0.7rem;
  color: #6b7280;
}
.pay-modal__input {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #f8fafc;
  font-size: 0.85rem;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
}
.pay-modal__input--mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
}
.pay-modal__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}
.pay-modal__footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #f8faff;
}
.pay-modal__btn {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pay-modal__btn--cancel {
  background: #f3f4f6;
  color: #6b7280;
}
.pay-modal__btn--cancel:hover {
  background: #e5e7eb;
}
.pay-modal__btn--confirm {
  background: #059669;
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.pay-modal__btn--confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}
.pay-modal__btn--confirm:disabled {
  opacity: 0.6;
  cursor: default;
}

.pay-spinner--xs {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s;
}
.pay-btn--create {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pay-btn--create:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.pay-btn--sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.79rem;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
}
.pay-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.pay-btn--ghost:hover {
  background: #f3f4f6;
}

.pay-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.pay-page-btn {
  padding: 0.33rem 0.6rem;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  color: #111827;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.12s;
}
.pay-page-btn--active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.pay-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.pay-page-btn:hover:not(.pay-page-btn--active):not(:disabled) {
  background: #eff6ff;
  border-color: #2563eb;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pay-cr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pay-cr-modal {
  background: #f0f4ff;
  border-radius: 18px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.pay-cr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.pay-cr-header__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay-cr-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pay-cr-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pay-cr-alert {
  background: #fef2f2;
  border-bottom: 1px solid #fca5a5;
  padding: 0.7rem 1.25rem;
  color: #991b1b;
  font-size: 0.83rem;
  flex-shrink: 0;
}
.pay-cr-alert p {
  margin: 0;
}

.pay-cr-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.pay-cr-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-cr-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.pay-cr-card__hdr {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e3a5f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafbff;
}
.pay-cr-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-cr-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pay-cr-count {
  margin-left: auto;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
}

.pay-cr-sel {
  background: #d1fae5;
  color: #059669;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
}

.pay-cr-hint {
  font-size: 0.82rem;
  color: #6b7280;
  padding: 0.5rem 1rem;
}

.pay-cr-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.pay-cr-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pay-cr-input {
  padding: 0.48rem 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  font-size: 0.83rem;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
}
.pay-cr-input--mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
}
.pay-cr-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pay-cr-textarea {
  padding: 0.48rem 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  font-size: 0.83rem;
  color: #111827;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}
.pay-cr-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pay-cr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.pay-cr-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}

.pay-cr-inv-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.pay-cr-inv-empty {
  padding: 1.25rem 1.1rem;
  color: #6b7280;
  font-size: 0.82rem;
  text-align: center;
}

.pay-cr-inv-wrap {
  overflow-x: auto;
}

.pay-cr-inv-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.pay-cr-inv-table th {
  padding: 0.55rem 0.85rem;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #f8fafc;
  white-space: nowrap;
}
.pay-cr-inv-table td {
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}
.pay-cr-inv-table tr:last-child td {
  border-bottom: none;
}

.pay-cr-inv-th--chk {
  width: 36px;
}

.pay-cr-inv-th--right, .pay-cr-inv-td--right {
  text-align: right;
}

.pay-cr-inv-mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.8rem;
}

.pay-cr-inv-bold {
  font-weight: 700;
}

.pay-cr-inv-date {
  font-size: 0.8rem;
}

.pay-cr-inv-row {
  cursor: pointer;
  transition: background 0.1s;
}
.pay-cr-inv-row:hover {
  background: #f0f7ff;
}
.pay-cr-inv-row--sel {
  background: #eff6ff;
}
.pay-cr-inv-row input[type=checkbox] {
  cursor: pointer;
  accent-color: #2563eb;
  width: 14px;
  height: 14px;
}

.pay-cr-sidebar {
  position: sticky;
  top: 0;
}

.pay-cr-summary {
  background: linear-gradient(160deg, #1e3a5f 0%, #1e40af 100%);
  border-radius: 12px;
  padding: 1.1rem;
  color: #fff;
}
.pay-cr-summary__hdr {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  opacity: 0.75;
}
.pay-cr-summary__empty {
  font-size: 0.78rem;
  opacity: 0.55;
  text-align: center;
  margin: 0.5rem 0 0.85rem;
}
.pay-cr-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 0.45rem;
}
.pay-cr-summary__badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
}
.pay-cr-summary__inv-list {
  margin: 0.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 140px;
  overflow-y: auto;
}
.pay-cr-summary__inv {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.7;
  gap: 0.4rem;
}
.pay-cr-summary__inv-no {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.pay-cr-summary__inv-amt {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  flex-shrink: 0;
}
.pay-cr-summary__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.6rem 0;
}
.pay-cr-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 0.2rem;
}
.pay-cr-summary__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.1rem;
  font-weight: 800;
}
.pay-cr-summary__currency {
  text-align: right;
  font-size: 0.68rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.pay-cr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  transition: all 0.15s;
}
.pay-cr-btn--save {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  margin-bottom: 0.5rem;
}
.pay-cr-btn--save:hover:not(:disabled) {
  transform: translateY(-1px);
}
.pay-cr-btn--save:disabled {
  opacity: 0.6;
  cursor: default;
}
.pay-cr-btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.pay-cr-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.18);
}
.pay-cr-btn--print {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  gap: 0.35rem;
}
.pay-cr-btn--print:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.pay-cr-btn--print:disabled {
  opacity: 0.35;
  cursor: default;
}

.pay-cr-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}
.pay-cr-spinner--blue {
  border-color: rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
}

.pay-result-count {
  font-size: 0.78rem;
  color: #6b7280;
}
.pay-result-count strong {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 900px) {
  .pay-hero {
    padding: 1.75rem 1.25rem 0;
  }
  .pay-hero__kpi {
    flex-wrap: wrap;
  }
  .pay-kpi {
    flex: 0 0 25%;
  }
}
@media (max-width: 768px) {
  .pay-hero {
    padding: 1.25rem 1rem 0;
  }
  .pay-hero__title {
    font-size: 1.375rem;
  }
  .pay-kpi {
    flex: 0 0 50%;
  }
  .pay-controls {
    padding: 1rem 1rem 0;
  }
  .pay-main-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pay-main-tabs::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 480px) {
  .pay-kpi {
    flex: 0 0 100%;
  }
}


/* ===== credit exposure ===== */
.cex-page {
  min-height: 100vh;
  background: #f0f4ff;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cex-hero {
  position: relative;
  background: linear-gradient(135deg, #0f2044 0%, #1e3a5f 30%, #7c3aed 75%, #2563eb 100%);
  padding: 2.5rem 2rem 0;
  overflow: hidden;
}
.cex-hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.cex-hero__glow--1 {
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
}
.cex-hero__glow--2 {
  bottom: -60px;
  left: 25%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent 70%);
}
.cex-hero__content {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}
.cex-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cex-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.3rem;
}
.cex-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: -0.025em;
}
.cex-hero__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.cex-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cex-hero__kpis {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.cex-kpi {
  flex: 1;
  padding: 0.9rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.cex-kpi:last-child {
  border-right: none;
}
.cex-kpi__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.cex-kpi__lbl {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}
.cex-kpi--used .cex-kpi__val {
  color: #fca5a5;
}
.cex-kpi--avail .cex-kpi__val {
  color: #6ee7b7;
}
.cex-kpi--overdue .cex-kpi__val {
  color: #fdba74;
}
.cex-kpi--util .cex-kpi__val {
  color: #fde68a;
}
.cex-kpi--risk .cex-kpi__val {
  color: #fca5a5;
}

.cex-refresh-bar {
  height: 3px;
  background: rgba(37, 99, 235, 0.15);
}

.cex-refresh-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #a78bfa, #2563eb);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.cex-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cex-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #92400e;
  font-size: 0.85rem;
}
.cex-alert strong {
  color: #7c2d12;
}
.cex-alert svg {
  flex-shrink: 0;
  color: #d97706;
}

.cex-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cex-input {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  font-size: 0.83rem;
  color: #111827;
  min-width: 220px;
}
.cex-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cex-risk-tabs {
  display: flex;
  gap: 0.3rem;
}

.cex-risk-tab {
  padding: 0.32rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.12s;
}
.cex-risk-tab--active, .cex-risk-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.cex-risk-tab--active.cex-risk-tab--warning {
  border-color: #d97706;
  color: #d97706;
  background: #fef3c7;
}
.cex-risk-tab--active.cex-risk-tab--critical {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}
.cex-risk-tab--active.cex-risk-tab--ok {
  border-color: #059669;
  color: #059669;
  background: #d1fae5;
}

.cex-count {
  font-size: 0.78rem;
  color: #6b7280;
  margin-left: auto;
}

.cex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.15s;
}
.cex-btn--refresh {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cex-btn--refresh:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}
.cex-btn--refresh:disabled {
  opacity: 0.6;
  cursor: default;
}
.cex-btn--ghost {
  background: #f3f4f6;
  color: #6b7280;
}
.cex-btn--ghost:hover {
  background: #e5e7eb;
}

.cex-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cex-loading, .cex-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 3rem;
  color: #6b7280;
}
.cex-loading svg, .cex-empty svg {
  opacity: 0.35;
}
.cex-loading p, .cex-empty p {
  margin: 0;
}

.cex-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  animation: spin 0.75s linear infinite;
}

.cex-table-scroll {
  overflow-x: auto;
}

.cex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.cex-table th {
  padding: 0.65rem 1rem;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
  white-space: nowrap;
}
.cex-table td {
  padding: 0.68rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #111827;
}
.cex-table tr:last-child td {
  border-bottom: none;
}

.cex-th--right {
  text-align: right !important;
}

.cex-td--right {
  text-align: right !important;
}

.cex-td--name {
  font-weight: 500;
  line-height: 1.3;
}

.cex-td--code {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  margin-top: 1px;
}

.cex-currency {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-left: 3px;
}

.cex-td--mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
}

.cex-td--bold {
  font-weight: 700;
}

.cex-td--green {
  color: #059669;
  font-weight: 600;
}

.cex-td--red {
  color: #dc2626;
  font-weight: 600;
}

.cex-td--bar {
  min-width: 200px;
}

.cex-row {
  transition: background 0.1s;
}
.cex-row--critical {
  border-left: 3px solid #dc2626;
  background: rgba(220, 38, 38, 0.02);
}
.cex-row--warning {
  border-left: 3px solid #d97706;
}
.cex-row--ok {
  border-left: 3px solid transparent;
}
.cex-row:hover {
  background: #f8faff;
}

.cex-util-wrap {
  height: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

.cex-util-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.cex-util-bar--ok {
  background: #059669;
}
.cex-util-bar--warning {
  background: #d97706;
}
.cex-util-bar--critical {
  background: #dc2626;
}

.cex-td--bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cex-util-pct {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.cex-util-pct--ok {
  color: #059669;
}
.cex-util-pct--warning {
  color: #d97706;
}
.cex-util-pct--critical {
  color: #dc2626;
}

.cex-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.cex-risk-badge--ok {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.cex-risk-badge--ok .cex-risk-dot {
  background: #059669;
}
.cex-risk-badge--warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.cex-risk-badge--warning .cex-risk-dot {
  background: #d97706;
}
.cex-risk-badge--critical {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.cex-risk-badge--critical .cex-risk-dot {
  background: #dc2626;
}

.cex-risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cex-tfoot td {
  background: #f0f4ff;
  border-top: 2px solid #c7d2fe;
  font-size: 0.82rem;
}

.cex-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  color: #6b7280;
}
.cex-pagination__btns {
  display: flex;
  gap: 0.3rem;
}

.cex-pag-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.cex-pag-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.cex-pag-btn--active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.cex-pag-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cex-col-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
}

.cex-col-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  min-width: 200px;
}
.cex-col-menu__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}
.cex-col-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.25rem;
  font-size: 0.83rem;
  color: #374151;
  cursor: pointer;
  border-radius: 4px;
}
.cex-col-menu__item:hover {
  background: #f8fafc;
}
.cex-col-menu__item input[type=checkbox] {
  cursor: pointer;
  accent-color: #2563eb;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (max-width: 1100px) {
  .cex-table thead tr th:nth-child(6),
  .cex-table tbody tr td:nth-child(6),
  .cex-table tfoot tr td:nth-child(6),
  .cex-table thead tr th:nth-child(8),
  .cex-table tbody tr td:nth-child(8),
  .cex-table tfoot tr td:nth-child(8) {
    display: none;
  }
}
@media (max-width: 860px) {
  .cex-hero {
    padding: 1.75rem 1.25rem 0;
  }
  .cex-hero__title {
    font-size: 1.6rem;
  }
  .cex-hero__kpis {
    flex-wrap: wrap;
  }
  .cex-kpi {
    flex: 0 0 33.333%;
  }
  .cex-body {
    padding: 1.25rem 1.25rem 3rem;
  }
  .cex-filters {
    gap: 0.5rem;
  }
  .cex-input {
    min-width: 0;
    flex: 1;
  }
  .cex-table thead tr th:nth-child(5),
  .cex-table tbody tr td:nth-child(5),
  .cex-table tfoot tr td:nth-child(5) {
    display: none;
  }
}
@media (max-width: 640px) {
  .cex-hero {
    padding: 1.25rem 1rem 0;
  }
  .cex-hero__title {
    font-size: 1.4rem;
  }
  .cex-hero__sub {
    font-size: 0.78rem;
  }
  .cex-hero__top {
    margin-bottom: 1.25rem;
  }
  .cex-kpi {
    flex: 0 0 50%;
  }
  .cex-body {
    padding: 1rem 1rem 3rem;
  }
  .cex-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .cex-input {
    min-width: 100%;
  }
  .cex-risk-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cex-risk-tabs::-webkit-scrollbar {
    display: none;
  }
  .cex-table thead tr th:nth-child(4),
  .cex-table tbody tr td:nth-child(4),
  .cex-table tfoot tr td:nth-child(4) {
    display: none;
  }
}
@media (max-width: 480px) {
  .cex-kpi {
    flex: 0 0 50%;
    padding: 0.65rem 0.5rem;
  }
  .cex-table thead tr th:nth-child(2),
  .cex-table tbody tr td:nth-child(2),
  .cex-table tfoot tr td:nth-child(2) {
    display: none;
  }
}


/* ===== audit log ===== */
/* ============================================================
   Audit Log — World Class  (ViewEncapsulation.None, prefix: aud-)
   ============================================================ */
@keyframes audRowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes audSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes audPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
/* ── Page ── */
.aud-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Hero ── */
.aud-hero {
  position: relative;
  background: linear-gradient(135deg, #0c1428 0%, #0f172a 30%, #1a0f3c 65%, #0f172a 100%);
  border-radius: 1.375rem;
  overflow: hidden;
  padding: 2rem 2rem 0;
}

.aud-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.aud-hero__glow--1 {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
}
.aud-hero__glow--2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
}

.aud-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.aud-hero__content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.aud-hero__top {
  margin-bottom: 1.5rem;
}

.aud-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.6rem;
  font-family: "Inter", sans-serif;
}

.aud-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  animation: audPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
  flex-shrink: 0;
}

.aud-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.aud-hero__sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  font-family: "Inter", sans-serif;
  max-width: 480px;
}

/* ── Filter bar — glassmorphic on dark ── */
.aud-hero__filters {
  display: flex;
  align-items: flex-end;
  gap: 0.875rem;
  flex-wrap: wrap;
  padding: 1.125rem 2rem;
  margin: 0 -2rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.aud-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.aud-filter-group--grow {
  flex: 1;
  min-width: 160px;
}

.aud-filter-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Inter", sans-serif;
}

.aud-filter-input {
  padding: 0.5625rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  outline: none;
  min-width: 148px;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  color-scheme: dark;
}
.aud-filter-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.aud-filter-input:focus {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.aud-filter-btns {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.aud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.18s;
  white-space: nowrap;
  padding: 0.5625rem 1.125rem;
}

.aud-btn--apply {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}
.aud-btn--apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.aud-btn--clear {
  padding: 0.5625rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}
.aud-btn--clear:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.aud-btn--clear-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.aud-btn--clear-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── KPI strip ── */
.aud-hero__kpi-strip {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  margin-top: 0.125rem;
}

.aud-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0 1.5rem 0 0;
}

.aud-kpi__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.aud-kpi__val--amber {
  color: #fbbf24;
}

.aud-kpi__lbl {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Inter", sans-serif;
}

.aud-kpi-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 1.5rem 0 0;
  flex-shrink: 0;
}

/* ── Loading ── */
.aud-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 3rem 0;
  font-size: 0.875rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.aud-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #0891b2;
  border-radius: 50%;
  animation: audSpin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Error ── */
.aud-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.25rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.75rem;
  color: #991b1b;
  font-size: 0.8125rem;
  font-family: "Inter", sans-serif;
}

.aud-error__retry {
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.aud-error__retry:hover {
  background: #b91c1c;
}

/* ── Table Card ── */
.aud-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.aud-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #0c1428, #0f172a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aud-card__header-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aud-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.aud-card__count {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
}

.aud-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ── Table ── */
.aud-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.aud-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 2;
}
.aud-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.aud-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.aud-table tbody tr:last-child td {
  border-bottom: none;
}

.aud-row {
  animation: audRowIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  border-left: 3px solid transparent;
  transition: background 0.12s;
}
.aud-row--green {
  border-left-color: rgba(5, 150, 105, 0.35);
}
.aud-row--green:hover td {
  background: rgba(5, 150, 105, 0.03);
}
.aud-row--amber {
  border-left-color: rgba(217, 119, 6, 0.35);
}
.aud-row--amber:hover td {
  background: rgba(217, 119, 6, 0.03);
}
.aud-row--red {
  border-left-color: rgba(220, 38, 38, 0.35);
}
.aud-row--red:hover td {
  background: rgba(220, 38, 38, 0.03);
}
.aud-row--purple {
  border-left-color: rgba(124, 58, 237, 0.35);
}
.aud-row--purple:hover td {
  background: rgba(124, 58, 237, 0.03);
}
.aud-row--blue {
  border-left-color: rgba(37, 99, 235, 0.35);
}
.aud-row--blue:hover td {
  background: rgba(37, 99, 235, 0.03);
}

/* ── Date/Time ── */
.aud-td-date {
  white-space: nowrap;
  min-width: 130px;
}

.aud-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  font-family: "Inter", sans-serif;
}

.aud-time {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-weight: 500;
  margin-top: 1px;
}

/* ── User ── */
.aud-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.aud-user__av {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  font-family: "Outfit", sans-serif;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.28);
}

.aud-user__info {
  display: flex;
  flex-direction: column;
}

.aud-user__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  font-family: "Inter", sans-serif;
}

.aud-user__id {
  font-size: 0.7rem;
  color: #9ca3af;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  margin-top: 1px;
}

.aud-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  background: #f1f5f9;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  font-family: "Inter", sans-serif;
}

/* ── Action Badge ── */
.aud-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border: 1px solid transparent;
  white-space: nowrap;
}

.aud-action__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aud-action--green {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.aud-action--green .aud-action__dot {
  background: #059669;
}

.aud-action--amber {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.aud-action--amber .aud-action__dot {
  background: #d97706;
}

.aud-action--red {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.aud-action--red .aud-action__dot {
  background: #dc2626;
}

.aud-action--purple {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.2);
}
.aud-action--purple .aud-action__dot {
  background: #7c3aed;
}

.aud-action--blue {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}
.aud-action--blue .aud-action__dot {
  background: #2563eb;
}

.aud-action--teal {
  background: #ccfbf1;
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.2);
}
.aud-action--teal .aud-action__dot {
  background: #0d9488;
}

/* ── Entity ── */
.aud-entity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aud-entity__type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  font-family: "Inter", sans-serif;
}

.aud-entity__id {
  font-size: 0.68rem;
  color: #9ca3af;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Details ── */
.aud-td-details {
  max-width: 260px;
}

.aud-details {
  font-size: 0.8rem;
  color: #4b5563;
  font-family: "Inter", sans-serif;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  cursor: default;
}

/* ── IP ── */
.aud-ip {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.03em;
  background: #f1f5f9;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  border: 1px solid rgba(71, 85, 105, 0.12);
  white-space: nowrap;
}

.aud-muted {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ── Empty ── */
.aud-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
}

.aud-empty__icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.aud-empty__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.aud-empty__sub {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0;
  max-width: 340px;
}

/* ── Pagination ── */
.aud-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8fafc;
}

.aud-pagination__info {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}
.aud-pagination__info strong {
  color: #374151;
}

.aud-pagination__controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.aud-pagination__page {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0891b2;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
}

.aud-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.aud-page-btn:hover:not([disabled]) {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.3);
  color: #0891b2;
}
.aud-page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .aud-hero {
    padding: 1.75rem 1.5rem 0;
    border-radius: 1rem;
  }
  .aud-hero__title {
    font-size: 1.75rem;
  }
  .aud-hero__filters {
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem;
  }
  .aud-filter-input {
    min-width: 120px;
  }
}
@media (max-width: 768px) {
  .aud-hero {
    padding: 1.5rem 1.25rem 0;
    border-radius: 0.875rem;
  }
  .aud-hero__title {
    font-size: 1.5rem;
  }
  .aud-hero__filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem;
  }
  .aud-filter-group {
    width: 100%;
  }
  .aud-filter-group--grow {
    flex: none;
  }
  .aud-filter-input {
    min-width: 100%;
  }
  .aud-filter-btns {
    width: 100%;
  }
  .aud-btn--apply {
    flex: 1;
    justify-content: center;
  }
  .aud-hero__kpi-strip {
    flex-wrap: wrap;
  }
  .aud-table th:nth-child(5), .aud-table td:nth-child(5),
  .aud-table th:nth-child(6), .aud-table td:nth-child(6) {
    display: none;
  }
}
@media (max-width: 480px) {
  .aud-hero {
    padding: 1.25rem 1rem 0;
    border-radius: 0.75rem;
  }
  .aud-hero__title {
    font-size: 1.3rem;
  }
  .aud-hero__glow--1 {
    width: 200px;
    height: 200px;
  }
  .aud-table th:nth-child(4), .aud-table td:nth-child(4) {
    display: none;
  }
  .aud-pagination {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}


/* ===== settings ===== */
/* ============================================================
   Settings — World Class  (ViewEncapsulation.None, prefix: stg-)
   ============================================================ */
@keyframes stgSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stgRowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes stgPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
/* ── Page ── */
.stg-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Hero ── */
.stg-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #1e3a5f 100%);
  border-radius: 1.375rem;
  overflow: hidden;
  padding: 2rem 2rem 0;
}

.stg-hero__glow-1 {
  position: absolute;
  width: 380px;
  height: 380px;
  top: -100px;
  right: -60px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

.stg-hero__glow-2 {
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: 8%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%);
}

.stg-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.stg-hero__content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.stg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 0.625rem;
  font-family: "Inter", sans-serif;
}

.stg-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stg-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stg-hero__sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
  font-family: "Inter", sans-serif;
}

.stg-hero__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.stg-hero__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: stgPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.stg-hero__status-txt {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
}

/* ── Hero Tabs ── */
.stg-hero__tabs {
  display: flex;
  gap: 2px;
}

.stg-htab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem 0.75rem 0 0;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: 0;
  transition: all 0.16s;
}
.stg-htab:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}
.stg-htab.stg-htab--active {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #818cf8;
}
.stg-htab.stg-htab--active svg {
  color: #818cf8;
}

/* ── Body ── */
.stg-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Loading ── */
.stg-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 3rem 0;
  font-size: 0.875rem;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}

.stg-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: stgSpin 0.7s linear infinite;
  flex-shrink: 0;
  display: inline-block;
}

.stg-spinner--sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.stg-spinner--xs {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

/* ── Alerts ── */
.stg-alert {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  margin-bottom: 1rem;
}

.stg-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.stg-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ── Form Card ── */
.stg-form-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 820px;
}

.stg-form-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stg-form-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(129, 140, 248, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stg-form-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.stg-form-card__sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 2px;
  font-family: "Inter", sans-serif;
}

.stg-form-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stg-form-card__footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

/* ── Section Labels ── */
.stg-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Inter", sans-serif;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}

.stg-section-label__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Grid ── */
.stg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stg-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* ── Read-only info row ── */
.stg-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.12);
  margin-bottom: 0.5rem;
}
.stg-info-row__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.stg-info-row__val {
  font-size: 0.83rem;
  color: #374151;
}

/* ── Form Fields ── */
.stg-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.stg-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stg-required {
  color: #dc2626;
}

.stg-input {
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.625rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.stg-input::placeholder {
  color: #9ca3af;
}
.stg-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.stg-input--textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Save Button ── */
.stg-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.375rem;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.stg-save-btn:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.stg-save-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Number Series Card ── */
.stg-ns-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.stg-ns-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stg-ns-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(129, 140, 248, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stg-ns-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.stg-ns-card__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 2px;
  font-family: "Inter", sans-serif;
}

.stg-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Table ── */
.stg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.stg-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 2;
}
.stg-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.stg-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}
.stg-table tbody tr {
  transition: background 0.12s;
}
.stg-table tbody tr:last-child td {
  border-bottom: none;
}
.stg-table tbody tr:hover:not(.stg-row--editing) td {
  background: rgba(99, 102, 241, 0.025);
}

.stg-row {
  animation: stgRowIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.stg-row--editing {
  background: #f5f3ff !important;
  border-left: 3px solid #6366f1;
}

/* ── Name Cell ── */
.stg-td-name {
  min-width: 160px;
}

.stg-ns-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  font-family: "Inter", sans-serif;
}

.stg-ns-entity {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 2px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
}

/* ── Inline Inputs ── */
.stg-cell-input {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.stg-cell-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.stg-cell-select {
  padding: 0.4rem 1.75rem 0.4rem 0.6rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #111827;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}
.stg-cell-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

/* ── Toggle ── */
.stg-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.stg-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.stg-toggle input:checked ~ .stg-toggle__track {
  background: #6366f1;
}
.stg-toggle input:checked ~ .stg-toggle__thumb {
  transform: translateX(16px);
}

.stg-toggle__track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.2s;
}

.stg-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  pointer-events: none;
}

/* ── Data Cells ── */
.stg-mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.stg-muted {
  color: #9ca3af;
  font-size: 0.78rem;
}

.stg-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.stg-mode-badge.stg-mode-badge--manual {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}

.stg-bool {
  font-size: 0.8rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: #9ca3af;
}

.stg-bool--yes {
  color: #059669;
}

.stg-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
  letter-spacing: 0.03em;
}

/* ── Table Actions ── */
.stg-td-actions {
  text-align: right;
  white-space: nowrap;
}

.stg-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.stg-inline-error {
  font-size: 0.72rem;
  color: #dc2626;
  font-family: "Inter", sans-serif;
}

.stg-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s;
}
.stg-edit-btn:hover {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
}

.stg-save-small-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.stg-save-small-btn:hover:not([disabled]) {
  background: #4338ca;
}
.stg-save-small-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.stg-cancel-small-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.stg-cancel-small-btn:hover {
  background: #f1f5f9;
}

/* ── Empty ── */
.stg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.stg-empty__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.stg-empty__title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stg-hero {
    padding: 1.75rem 1.5rem 0;
    border-radius: 1rem;
  }
  .stg-hero__title {
    font-size: 1.75rem;
  }
}
@media (max-width: 768px) {
  .stg-hero {
    padding: 1.5rem 1.25rem 0;
    border-radius: 0.875rem;
  }
  .stg-hero__title {
    font-size: 1.5rem;
  }
  .stg-hero__row {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .stg-grid-2 {
    grid-template-columns: 1fr;
  }
  .stg-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .stg-form-card {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .stg-hero {
    padding: 1.25rem 1rem 0;
    border-radius: 0.75rem;
  }
  .stg-hero__title {
    font-size: 1.3rem;
  }
  .stg-hero__glow-1 {
    width: 200px;
    height: 200px;
  }
  .stg-grid-3 {
    grid-template-columns: 1fr;
  }
  .stg-htab {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
  .stg-form-card__body {
    padding: 1.125rem;
  }
}


/* ===== reports ===== */
.rpt-page {
  min-height: 100vh;
  background: #f0f4ff;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.rpt-hero {
  position: relative;
  background: linear-gradient(135deg, #0f2044 0%, #1e3a5f 28%, #1e40af 60%, #2563eb 100%);
  padding: 2.5rem 2rem 0;
  overflow: hidden;
}
.rpt-hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.rpt-hero__glow--1 {
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
}
.rpt-hero__glow--2 {
  bottom: -80px;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
}
.rpt-hero__content {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}
.rpt-hero__top {
  margin-bottom: 1.5rem;
}
.rpt-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.35rem;
}
.rpt-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: -0.025em;
}
.rpt-hero__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.01em;
}
.rpt-hero__kpi {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.rpt-mode-pills {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 3px;
}

.rpt-mode-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.rpt-mode-pill:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
}
.rpt-mode-pill--active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.rpt-range-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rpt-ctrl-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.rpt-ctrl-bar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rpt-ctrl-bar__sep {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.rpt-ctrl-bar__label {
  font-size: 0.63rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.rpt-ctrl-bar__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.rpt-mode-pills--light {
  background: #f1f5f9;
  border-radius: 9px;
  padding: 3px;
}

.rpt-mode-pill--light {
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.rpt-mode-pill--light:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.04);
}

.rpt-mode-pill--light-active {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rpt-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}
.rpt-ctrl-btn--primary {
  background: #2563eb;
  color: #fff;
}
.rpt-ctrl-btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
}
.rpt-ctrl-btn--primary:disabled {
  opacity: 0.55;
  cursor: default;
}
.rpt-ctrl-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.rpt-ctrl-btn--ghost:hover:not(:disabled) {
  background: #f1f5f9;
  color: #111827;
}
.rpt-ctrl-btn--ghost:disabled {
  opacity: 0.4;
  cursor: default;
}

.rpt-spinner--dark {
  border-color: rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
}

.rpt-kpi {
  flex: 1;
  padding: 0.95rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.rpt-kpi:last-child {
  border-right: none;
}
.rpt-kpi__label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}
.rpt-kpi__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.rpt-kpi__val--pct {
  font-size: 1.35rem;
}
.rpt-kpi__currency {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.6;
  margin-right: 1px;
  vertical-align: super;
}
.rpt-kpi__period {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.2rem;
}
.rpt-kpi--rev .rpt-kpi__val {
  color: #93c5fd;
}
.rpt-kpi--cogs .rpt-kpi__val {
  color: #fca5a5;
}
.rpt-kpi--gp .rpt-kpi__val {
  color: #6ee7b7;
}
.rpt-kpi--margin .rpt-kpi__val--pct {
  color: #fde68a;
}
.rpt-kpi--ar .rpt-kpi__val {
  color: #c4b5fd;
}
.rpt-kpi--ap .rpt-kpi__val {
  color: #fdba74;
}

.rpt-refresh-bar {
  height: 3px;
  background: rgba(37, 99, 235, 0.15);
}

.rpt-refresh-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #a78bfa, #2563eb);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.rpt-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rpt-row {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.rpt-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.rpt-row--2 {
  grid-template-columns: 1fr 1fr;
}

.rpt-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.rpt-card--full {
  width: 100%;
}
.rpt-card__hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e3a5f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #fafbff;
}
.rpt-card__hdr svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.rpt-card__hdr--aging {
  gap: 0.5rem 1rem;
}
.rpt-card__body {
  padding: 1.25rem;
}
.rpt-card__body--flush {
  padding: 0;
}
.rpt-card__body--pl {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rpt-hdr-badge {
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
}
.rpt-hdr-badge--danger {
  background: #fee2e2;
  color: #dc2626;
}

.rpt-pnl-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  height: 140px;
  padding: 0 1rem;
}

.rpt-pnl-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  height: 100%;
}

.rpt-pnl-bar {
  width: 100%;
  border-radius: 7px 7px 0 0;
  position: relative;
  min-height: 6px;
  transition: height 0.5s ease;
  align-self: flex-end;
}
.rpt-pnl-bar--sogs {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.rpt-pnl-bar--cogs {
  background: linear-gradient(180deg, #fca5a5, #dc2626);
}
.rpt-pnl-bar--gp {
  background: linear-gradient(180deg, #6ee7b7, #059669);
}
.rpt-pnl-bar--loss {
  background: linear-gradient(180deg, #fdba74, #d97706);
}
.rpt-pnl-bar__tip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

.rpt-pnl-arrow {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.2);
  align-self: center;
  padding-bottom: 1.5rem;
}

.rpt-pnl-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
}

.rpt-pnl-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rpt-pnl-divider {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  margin: 0.25rem 0;
}

.rpt-pnl-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.rpt-pnl-row--total {
  font-weight: 700;
  color: #1e3a5f;
}
.rpt-pnl-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rpt-pnl-row__dot--sogs {
  background: #2563eb;
}
.rpt-pnl-row__dot--cogs {
  background: #dc2626;
}
.rpt-pnl-row__dot--gp {
  background: #059669;
}
.rpt-pnl-row__lbl {
  flex: 1;
  color: #111827;
}
.rpt-pnl-row__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}
.rpt-pnl-row__pct {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.78rem;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: #f3f4f6;
  color: #6b7280;
  min-width: 44px;
  text-align: center;
}
.rpt-pnl-row__pct--margin {
  min-width: 54px;
}
.rpt-pnl-row__pct--high {
  background: #d1fae5;
  color: #065f46;
}
.rpt-pnl-row__pct--ok {
  background: #fef3c7;
  color: #92400e;
}
.rpt-pnl-row__pct--low {
  background: #fee2e2;
  color: #991b1b;
}

.rpt-scorecard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.rpt-score {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: #f8faff;
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.rpt-score__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rpt-score__val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a5f;
}
.rpt-score__val--blue {
  color: #2563eb;
}
.rpt-score__val--green {
  color: #059669;
}
.rpt-score__val--amber {
  color: #d97706;
}
.rpt-score__val--teal {
  color: #0d9488;
}
.rpt-score__val--muted {
  color: #6b7280;
}
.rpt-score__val--red {
  color: #dc2626;
}
.rpt-score__hint {
  font-size: 0.67rem;
  color: rgba(0, 0, 0, 0.35);
}

.rpt-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rpt-pipeline-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.83rem;
}

.rpt-pipeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rpt-pipeline-dot--blue {
  background: #2563eb;
}
.rpt-pipeline-dot--amber {
  background: #d97706;
}
.rpt-pipeline-dot--indigo {
  background: #4338ca;
}
.rpt-pipeline-dot--teal {
  background: #0d9488;
}
.rpt-pipeline-dot--purple {
  background: #7c3aed;
}
.rpt-pipeline-dot--green {
  background: #059669;
}
.rpt-pipeline-dot--red {
  background: #dc2626;
}
.rpt-pipeline-dot--gray {
  background: #6b7280;
}

.rpt-pipeline-lbl {
  width: 65px;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.rpt-pipeline-bar-wrap {
  flex: 1;
  height: 7px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.rpt-pipeline-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.rpt-pipeline-bar--blue {
  background: #2563eb;
}
.rpt-pipeline-bar--amber {
  background: #d97706;
}
.rpt-pipeline-bar--indigo {
  background: #4338ca;
}
.rpt-pipeline-bar--teal {
  background: #0d9488;
}
.rpt-pipeline-bar--purple {
  background: #7c3aed;
}
.rpt-pipeline-bar--green {
  background: #059669;
}
.rpt-pipeline-bar--red {
  background: #dc2626;
}
.rpt-pipeline-bar--gray {
  background: #6b7280;
}

.rpt-pipeline-val {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e3a5f;
  min-width: 24px;
  text-align: right;
}

.rpt-pipeline-total {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 0.5rem;
}

.rpt-pipeline-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
}
.rpt-pipeline-notice svg {
  flex-shrink: 0;
  color: #2563eb;
  opacity: 0.7;
}

.rpt-margin-bands {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.rpt-margin-band {
  flex: 1;
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  text-align: center;
  border: 1px solid transparent;
}
.rpt-margin-band__n {
  display: block;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 1.2rem;
  font-weight: 800;
}
.rpt-margin-band__l {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rpt-margin-band--high {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.rpt-margin-band--high .rpt-margin-band__n {
  color: #065f46;
}
.rpt-margin-band--high .rpt-margin-band__l {
  color: #059669;
}
.rpt-margin-band--ok {
  background: #fef9c3;
  border-color: #fde68a;
}
.rpt-margin-band--ok .rpt-margin-band__n {
  color: #92400e;
}
.rpt-margin-band--ok .rpt-margin-band__l {
  color: #d97706;
}
.rpt-margin-band--low {
  background: #fee2e2;
  border-color: #fca5a5;
}
.rpt-margin-band--low .rpt-margin-band__n {
  color: #991b1b;
}
.rpt-margin-band--low .rpt-margin-band__l {
  color: #dc2626;
}

.rpt-aging-buckets-hdr {
  display: flex;
  margin-left: auto;
  gap: 0.25rem;
}

.rpt-aging-hdr-cell {
  width: 90px;
  text-align: right;
  font-size: 0.67rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rpt-aging-hdr-cell--total {
  color: #1e3a5f;
  font-weight: 800;
}

.rpt-aging-totals {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: #f8faff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.rpt-aging-totals__lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3a5f;
  min-width: 180px;
}
.rpt-aging-totals__cells {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.rpt-aging-cell {
  width: 90px;
  text-align: right;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
}
.rpt-aging-cell--warn {
  color: #d97706;
}
.rpt-aging-cell--danger {
  color: #dc2626;
}
.rpt-aging-cell--total {
  font-weight: 800;
  color: #1e3a5f;
}

.rpt-table-scroll {
  overflow-x: auto;
}

.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.rpt-table th {
  padding: 0.65rem 1rem;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
  white-space: nowrap;
}
.rpt-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #111827;
}
.rpt-table tr:last-child td {
  border-bottom: none;
}
.rpt-table--sm th {
  font-size: 0.66rem;
  padding: 0.55rem 1rem;
}
.rpt-table--sm td {
  padding: 0.58rem 1rem;
  font-size: 0.82rem;
}

.rpt-th--right {
  text-align: right !important;
}

.rpt-td--right {
  text-align: right !important;
}

.rpt-td--name {
  font-weight: 500;
}

.rpt-td--mono {
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
}

.rpt-td--bold {
  font-weight: 700;
}

.rpt-td--muted {
  color: #6b7280;
}

.rpt-td--date {
  color: #6b7280;
  font-size: 0.8rem;
  white-space: nowrap;
}

.rpt-td--rank {
  color: #6b7280;
  font-weight: 700;
  font-size: 0.8rem;
  width: 30px;
}

.rpt-td--bar {
  width: 160px;
}

.rpt-td--green {
  color: #059669;
  font-weight: 600;
}

.rpt-td--red {
  color: #dc2626;
  font-weight: 600;
}

.rpt-td--warn {
  color: #d97706;
}

.rpt-td--danger {
  color: #dc2626;
  font-weight: 600;
}

.rpt-row--danger {
  background: rgba(220, 38, 38, 0.03);
}

.rpt-row--high {
  background: rgba(5, 150, 105, 0.03);
}

.rpt-row--low {
  background: rgba(220, 38, 38, 0.03);
}

.rpt-aging-row-bar {
  height: 6px;
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
}

.rpt-aging-bar-seg {
  height: 100%;
  transition: width 0.4s ease;
}
.rpt-aging-bar-seg--current {
  background: #93c5fd;
}
.rpt-aging-bar-seg--30 {
  background: #d97706;
}
.rpt-aging-bar-seg--60 {
  background: #f97316;
}
.rpt-aging-bar-seg--90 {
  background: #dc2626;
}
.rpt-aging-bar-seg--over {
  background: #7f1d1d;
}

.rpt-hbar-wrap {
  height: 7px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.rpt-hbar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.rpt-hbar--blue {
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}
.rpt-hbar--teal {
  background: linear-gradient(90deg, #5eead4, #0d9488);
}

.rpt-airport-code {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1e3a5f;
  letter-spacing: 0.03em;
}
.rpt-airport-code--sm {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
}

.rpt-margin-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", "Fira Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
}
.rpt-margin-pill--high {
  background: #d1fae5;
  color: #065f46;
}
.rpt-margin-pill--ok {
  background: #fef9c3;
  color: #92400e;
}
.rpt-margin-pill--low {
  background: #fee2e2;
  color: #991b1b;
}

.rpt-tfoot td {
  background: #f0f4ff;
  border-top: 2px solid #c7d2fe;
  font-weight: 700;
  font-size: 0.82rem;
}

.rpt-tfoot__lbl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b7280;
}

.rpt-empty {
  padding: 2.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
}

.rpt-spinner {
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.rpt-spinner--sm {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.rpt-cash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: 0.25rem 0;
}

.rpt-cash-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpt-cash-item__lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.rpt-cash-item__val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rpt-cash-item__val--blue {
  color: #2563eb;
}
.rpt-cash-item__val--amber {
  color: #d97706;
}
.rpt-cash-item__val--red {
  color: #dc2626;
}
.rpt-cash-item__val--green {
  color: #059669;
}
.rpt-cash-item__hint {
  font-size: 0.72rem;
  color: #9ca3af;
}

.rpt-card--net-pos .rpt-card__body--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpt-net-pos {
  text-align: center;
}
.rpt-net-pos__eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.rpt-net-pos__term {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rpt-net-pos__term--blue {
  color: #2563eb;
}
.rpt-net-pos__term--amber {
  color: #d97706;
}
.rpt-net-pos__op {
  font-size: 1.2rem;
  color: #9ca3af;
  font-weight: 400;
}
.rpt-net-pos__result {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rpt-net-pos__result--pos {
  color: #059669;
}
.rpt-net-pos__result--neg {
  color: #dc2626;
}
.rpt-net-pos__currency {
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 4px;
  opacity: 0.7;
}
.rpt-net-pos__labels {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 0.25rem;
}
.rpt-net-pos__lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rpt-net-pos__lbl--blue {
  color: #2563eb;
}
.rpt-net-pos__lbl--amber {
  color: #d97706;
}
.rpt-net-pos__status {
  margin-top: 0.75rem;
}

.rpt-net-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.rpt-net-badge--pos {
  background: #d1fae5;
  color: #065f46;
}
.rpt-net-badge--neg {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 1100px) {
  .rpt-row--3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .rpt-row--3, .rpt-row--2 {
    grid-template-columns: 1fr;
  }
  .rpt-hero__kpi {
    flex-wrap: wrap;
  }
  .rpt-kpi {
    flex: 0 0 33.33%;
  }
  .rpt-aging-buckets-hdr, .rpt-aging-totals__cells {
    display: none;
  }
  .rpt-aging-hdr-cell--total {
    display: block;
  }
}


/* ===== reconciliation (edi) ===== */
.rec-page {
  min-height: 100vh;
  background: #f0f4ff;
  background-image: radial-gradient(rgba(37, 99, 235, 0.04) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  font-family: "Inter", sans-serif;
  color: #111827;
}

.rec-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 40%, #2563eb 100%);
  overflow: hidden;
}
.rec-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.rec-hero__glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14) 0%, transparent 70%);
}
.rec-hero__top {
  position: relative;
  z-index: 1;
  padding: 2.25rem 2rem 1.75rem;
}
.rec-hero__left {
  flex: 1;
}
.rec-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}
.rec-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
}
.rec-hero__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 500px;
}
.rec-hero__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.25rem;
}

.rec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  transition: transform 0.15s, background 0.15s;
}
.rec-action-btn:hover {
  transform: translateY(-1px);
}
.rec-action-btn--csv {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
}
.rec-action-btn--csv:hover {
  background: rgba(52, 211, 153, 0.25);
}
.rec-action-btn--print {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.rec-action-btn--print:hover {
  background: rgba(255, 255, 255, 0.18);
}

.rec-ctrl-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.rec-ctrl-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 2rem;
}

.rec-ctrl-bar__sep {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.rec-ctrl-bar__label {
  font-size: 0.63rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.rec-ctrl-bar__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-ctrl-bar__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.rec-ctrl-bar__progress {
  height: 3px;
  background: rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

.rec-ctrl-bar__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #a78bfa, #2563eb);
  background-size: 200% 100%;
  animation: recSlide 1.4s linear infinite;
}

.rec-ctrl-pills {
  display: flex;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 9px;
  padding: 3px;
}

.rec-ctrl-pill {
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: #9ca3af;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.rec-ctrl-pill:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.04);
}
.rec-ctrl-pill--active {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rec-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.rec-ctrl-btn--primary {
  background: #2563eb;
  color: #fff;
}
.rec-ctrl-btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
}
.rec-ctrl-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.rec-ctrl-btn--ghost {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.rec-ctrl-btn--ghost:hover:not(:disabled) {
  background: #f1f5f9;
  color: #111827;
}
.rec-ctrl-btn--ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rec-spin--dark {
  border-color: rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
}

.rec-refresh-bar {
  position: relative;
  z-index: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.rec-refresh-bar::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: recSlide 1.2s ease-in-out infinite;
}

@keyframes recSlide {
  to {
    left: 140%;
  }
}
.rec-kpis {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-kpi {
  flex: 1;
  min-width: 130px;
  padding: 0.875rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.rec-kpi:last-child {
  border-right: none;
}
.rec-kpi__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.3rem;
}
.rec-kpi__val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.rec-kpi--blue .rec-kpi__val {
  color: #93c5fd;
}
.rec-kpi--amber .rec-kpi__val {
  color: #fcd34d;
}
.rec-kpi--green .rec-kpi__val {
  color: #6ee7b7;
}

.rec-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rec-shim {
  height: 1rem;
  border-radius: 6px;
  margin: 0.5rem 1.5rem;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 400% 100%;
  animation: recShimmer 1.6s ease infinite;
}
.rec-shim--head {
  height: 2.25rem;
}

@keyframes recShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.rec-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}
.rec-error__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
}
.rec-error p {
  font-size: 0.875rem;
  font-weight: 500;
  color: #991b1b;
  margin: 0 0 1rem;
}
.rec-error button {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: #dc2626;
  color: #fff;
  border: none;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
}
.rec-error button:hover {
  background: #b91c1c;
}

.rec-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.rec-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.rec-card__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}
.rec-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-card__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.rec-card__export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rec-card__export:hover {
  background: #dcfce7;
}

.rec-count {
  background: #dbeafe;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.rec-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #9ca3af;
}
.rec-empty svg {
  color: #d1d5db;
  margin-bottom: 0.75rem;
}
.rec-empty p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.3rem;
}
.rec-empty span {
  font-size: 0.78rem;
}

.rec-scroll {
  overflow-x: auto;
}

.rec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}
.rec-table thead tr {
  background: #f8fafc;
}
.rec-table th {
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  white-space: nowrap;
}
.rec-table .rec-th--num {
  text-align: right;
}
.rec-table .rec-th--job {
  padding-left: 1.25rem;
}

.rec-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.1s;
}
.rec-row:hover {
  background: #f8faff;
}
.rec-row:last-child {
  border-bottom: none;
}
.rec-row .rec-td--job {
  border-left: 3px solid transparent;
  padding-left: calc(1rem - 3px);
}
.rec-row--open .rec-td--job {
  border-color: #3b82f6;
}
.rec-row--pending .rec-td--job {
  border-color: #f59e0b;
}
.rec-row--approved .rec-td--job {
  border-color: #8b5cf6;
}
.rec-row--supplied .rec-td--job {
  border-color: #06b6d4;
}
.rec-row--invoiced .rec-td--job {
  border-color: #0ea5e9;
}
.rec-row--closed .rec-td--job {
  border-color: #10b981;
}
.rec-row--cancelled .rec-td--job {
  border-color: #d1d5db;
}
.rec-row--overdue .rec-td--job {
  border-color: #ef4444;
}
.rec-row--default .rec-td--job {
  border-color: #e5e7eb;
}
.rec-row td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

.rec-td--num {
  text-align: right;
}

.rec-td--date {
  color: #374151;
  font-size: 0.8rem;
  white-space: nowrap;
}

.rec-td--revenue {
  color: #1d4ed8;
  font-weight: 600;
}

.rec-td--cost {
  color: #374151;
}

.rec-td--margin {
  color: #166534;
  font-weight: 600;
}

.rec-null {
  color: #d1d5db;
}

.rec-job-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.825rem;
  font-weight: 700;
  color: #2563eb;
}
.rec-job-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.rec-inv {
  color: #6b7280;
  font-size: 0.8rem;
}

.rec-customer {
  font-weight: 500;
  color: #111827;
}

.rec-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
}

.rec-pct {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.rec-pct--high {
  background: #dcfce7;
  color: #166534;
}
.rec-pct--mid {
  background: #fef9c3;
  color: #92400e;
}
.rec-pct--low {
  background: #fee2e2;
  color: #991b1b;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rec-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.rec-badge--open {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}
.rec-badge--open .rec-badge__dot {
  background: #2563eb;
}
.rec-badge--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.2);
}
.rec-badge--pending .rec-badge__dot {
  background: #d97706;
}
.rec-badge--approved {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.2);
}
.rec-badge--approved .rec-badge__dot {
  background: #7c3aed;
}
.rec-badge--supplied {
  background: #ecfeff;
  color: #155e75;
  border-color: rgba(6, 182, 212, 0.2);
}
.rec-badge--supplied .rec-badge__dot {
  background: #06b6d4;
}
.rec-badge--invoiced {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: rgba(14, 165, 233, 0.2);
}
.rec-badge--invoiced .rec-badge__dot {
  background: #0ea5e9;
}
.rec-badge--closed {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.rec-badge--closed .rec-badge__dot {
  background: #059669;
}
.rec-badge--cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.2);
}
.rec-badge--cancelled .rec-badge__dot {
  background: #9ca3af;
}
.rec-badge--overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.rec-badge--overdue .rec-badge__dot {
  background: #dc2626;
}
.rec-badge--default {
  background: #f3f4f6;
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.15);
}
.rec-badge--default .rec-badge__dot {
  background: #d1d5db;
}
.rec-badge--inv-draft {
  background: #f3f4f6;
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.15);
}
.rec-badge--inv-draft .rec-badge__dot {
  background: #9ca3af;
}
.rec-badge--inv-sent {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: rgba(14, 165, 233, 0.2);
}
.rec-badge--inv-sent .rec-badge__dot {
  background: #0ea5e9;
}
.rec-badge--inv-paid {
  background: #d1fae5;
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.2);
}
.rec-badge--inv-paid .rec-badge__dot {
  background: #059669;
}
.rec-badge--inv-overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}
.rec-badge--inv-overdue .rec-badge__dot {
  background: #dc2626;
}
.rec-badge--inv-cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.2);
}
.rec-badge--inv-cancelled .rec-badge__dot {
  background: #9ca3af;
}
.rec-badge--inv-none {
  display: none;
}

.rec-totals {
  background: #f0f4ff;
  border-top: 2px solid rgba(37, 99, 235, 0.15);
}
.rec-totals td {
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.rec-totals .rec-td--num {
  text-align: right;
}
.rec-totals__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.rec-mono {
  font-family: "JetBrains Mono", monospace;
}

.rec-spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: recSpin 0.7s linear infinite;
}

@keyframes recSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .rec-ctrl-bar__inner {
    padding: 0.55rem 1.25rem;
  }
  .rec-body {
    padding: 1.25rem 1.25rem;
  }
  .rec-table thead tr th:nth-child(9), .rec-table tbody tr td:nth-child(9), .rec-table tfoot tr td:nth-child(9),
  .rec-table thead tr th:nth-child(11), .rec-table tbody tr td:nth-child(11), .rec-table tfoot tr td:nth-child(11) {
    display: none;
  }
}
@media (max-width: 640px) {
  .rec-ctrl-bar__inner {
    padding: 0.5rem 1rem;
    gap: 0.4rem;
  }
  .rec-ctrl-bar__actions {
    margin-left: 0;
  }
  .rec-body {
    padding: 1rem;
  }
  .rec-table thead tr th:nth-child(2), .rec-table tbody tr td:nth-child(2), .rec-table tfoot tr td:nth-child(2),
  .rec-table thead tr th:nth-child(4), .rec-table tbody tr td:nth-child(4), .rec-table tfoot tr td:nth-child(4) {
    display: none;
  }
}
@media (max-width: 480px) {
  .rec-kpi {
    min-width: 50%;
    flex: 0 0 50%;
    padding: 0.65rem 1rem;
  }
  .rec-table thead tr th:nth-child(5), .rec-table tbody tr td:nth-child(5), .rec-table tfoot tr td:nth-child(5),
  .rec-table thead tr th:nth-child(10), .rec-table tbody tr td:nth-child(10), .rec-table tfoot tr td:nth-child(10) {
    display: none;
  }
}
@media print {
  .rec-page {
    background: #fff !important;
    background-image: none !important;
  }
  .rec-hero {
    background: #1e40af !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding-bottom: 1rem;
  }
  .rec-hero__dots, .rec-hero__glow {
    display: none;
  }
  .rec-ctrl-bar {
    display: none !important;
  }
  .rec-kpis {
    background: rgba(0, 0, 0, 0.2) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rec-body {
    padding: 1rem;
  }
  .rec-card {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .rec-card__export {
    display: none !important;
  }
  .rec-table {
    font-size: 0.75rem;
  }
  .rec-table thead tr {
    background: #f3f4f6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rec-table tbody tr:nth-child(even) {
    background: #f9fafb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rec-table td, .rec-table th {
    padding: 0.4rem 0.6rem;
  }
  .rec-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rec-totals {
    background: #eff6ff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* ===== tasks ===== */
.tsk-page {
  padding: 1.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #111827;
}

.tsk-hero {
  position: relative;
  background: linear-gradient(140deg, #1e0a3c 0%, #3b0764 20%, #4c1d95 50%, #6d28d9 80%, #7c3aed 100%);
  border-radius: 16px;
  padding: 1.6rem 1.75rem 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(109, 40, 217, 0.32), 0 2px 10px rgba(0, 0, 0, 0.18);
}
.tsk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.tsk-hero .tsk-hero__glow {
  position: absolute;
  top: -30%;
  right: -6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.tsk-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
}

.tsk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.75);
}

.tsk-hero__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tsk-hero__controls .tsk-view-toggle {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 4px;
  gap: 3px;
  border-radius: 10px;
}

.tsk-hero__controls .tsk-view-btn {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.52rem 1.05rem;
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  border-radius: 7px;
}
.tsk-hero__controls .tsk-view-btn svg {
  opacity: 0.65;
  transition: opacity 0.15s;
}
.tsk-hero__controls .tsk-view-btn--active {
  background: rgba(255, 255, 255, 0.96);
  color: #5b21b6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
}
.tsk-hero__controls .tsk-view-btn--active svg {
  opacity: 1;
}
.tsk-hero__controls .tsk-view-btn:not(.tsk-view-btn--active):hover {
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
}
.tsk-hero__controls .tsk-view-btn:not(.tsk-view-btn--active):hover svg {
  opacity: 0.85;
}

.tsk-hero__create {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.tsk-hero__create:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
}
.tsk-hero__create:active {
  transform: scale(0.97);
}

.tsk-hero__body {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.tsk-hero__title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.1;
}

.tsk-hero__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 0.9rem;
  font-weight: 400;
}

.tsk-hero__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  max-width: 320px;
  margin-bottom: 0.4rem;
}

.tsk-hero__progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ee7b7, #34d399);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.5);
}

.tsk-hero__progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.tsk-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: 0 -1.75rem;
  padding: 0 1.75rem;
}

.tsk-hero__stat {
  flex: 1;
  text-align: center;
  padding: 0.95rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.tsk-hero__stat:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tsk-hero__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: "Outfit", "Inter", sans-serif;
}

.tsk-hero__lbl {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
}

.tsk-hero__stat--done .tsk-hero__num {
  color: #6ee7b7;
}

.tsk-hero__stat--overdue .tsk-hero__num {
  color: #fca5a5;
}

.tsk-hero__stat--urgent .tsk-hero__num {
  color: #fde68a;
}

.tsk-hero__sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0.6rem 0;
}

.tsk-hero__shimmer {
  display: inline-block;
  width: 2.2rem;
  height: 1.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  vertical-align: middle;
}

.tsk-hero__alert-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3);
}

.tsk-view-toggle {
  display: flex;
  background: #f1f3f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 4px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tsk-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.1s;
}
.tsk-view-btn svg {
  opacity: 0.7;
  transition: opacity 0.18s;
}
.tsk-view-btn--active {
  background: #ffffff;
  color: #7c3aed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tsk-view-btn--active svg {
  opacity: 1;
}
.tsk-view-btn:not(.tsk-view-btn--active):hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}
.tsk-view-btn:not(.tsk-view-btn--active):hover svg {
  opacity: 0.85;
}

.tsk-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #7c3aed;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.35);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.tsk-create-btn:hover {
  background: #6d28d9;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.4);
}
.tsk-create-btn:active {
  transform: scale(0.97);
}

.tsk-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.tsk-error__retry {
  margin-left: auto;
  background: none;
  border: 1px solid #fecdd3;
  border-radius: 5px;
  color: #be123c;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.tsk-inline-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #7c3aed;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  animation: tskSlideIn 0.18s ease-out;
  overflow: hidden;
}

@keyframes tskSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tsk-inline-form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

.tsk-inline-form__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
}

.tsk-inline-form__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tsk-inline-form__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.tsk-inline-form__body {
  padding: 1.25rem;
}

.tsk-inline-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.tsk-inline-form__error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: #fff1f2;
  border-radius: 6px;
  color: #be123c;
  font-size: 0.79rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

.tsk-inline-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.tsk-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.tsk-field:last-of-type {
  margin-bottom: 0;
}

.tsk-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tsk-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.tsk-required {
  color: #ef4444;
  margin-left: 1px;
}

.tsk-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.tsk-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.tsk-input::placeholder {
  color: #d1d5db;
}
.tsk-input--textarea {
  resize: vertical;
  min-height: 3.5rem;
}

.tsk-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2rem;
  cursor: pointer;
}
.tsk-select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.tsk-tabs {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
}

.tsk-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-bottom: -1px;
}
.tsk-tab--active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}
.tsk-tab:not(.tsk-tab--active):hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.025);
}
.tsk-tab--overdue.tsk-tab--active {
  color: #dc2626;
  border-bottom-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}
.tsk-tab--overdue:not(.tsk-tab--active) {
  color: #dc2626;
  opacity: 0.75;
}

.tsk-tab__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #f3f4f6;
  color: #6b7280;
  transition: background 0.15s, color 0.15s;
}
.tsk-tab__pill--active {
  background: #7c3aed;
  color: #fff;
}
.tsk-tab__pill--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.tsk-tab__pill--green {
  background: #d1fae5;
  color: #065f46;
}
.tsk-tab__pill--red {
  background: #fee2e2;
  color: #b91c1c;
}

.tsk-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 3rem 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.tsk-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@keyframes tskCardIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.tsk-row-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  animation: tskCardIn 0.22s ease-out both;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tsk-row-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  border-color: #d8b4fe;
  border-left-color: inherit;
  transform: translateY(-1px);
}
.tsk-row-card--done {
  background: #fafafa;
  border-color: #f0f0f0;
  border-left-color: #d1d5db;
  opacity: 0.82;
}
.tsk-row-card--p-low {
  border-left-color: #22c55e;
}
.tsk-row-card--p-low:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), -3px 0 16px rgba(34, 197, 94, 0.18);
}
.tsk-row-card--p-medium {
  border-left-color: #3b82f6;
}
.tsk-row-card--p-medium:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), -3px 0 16px rgba(59, 130, 246, 0.2);
}
.tsk-row-card--p-high {
  border-left-color: #f97316;
}
.tsk-row-card--p-high:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), -3px 0 16px rgba(249, 115, 22, 0.22);
}
.tsk-row-card--p-urgent {
  border-left-color: #f43f5e;
}
.tsk-row-card--p-urgent:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), -3px 0 16px rgba(244, 63, 94, 0.24);
}

.tsk-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tsk-check:hover {
  border-color: #7c3aed;
  transform: scale(1.12);
}
.tsk-check--done {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.tsk-row-card__body {
  flex: 1;
  min-width: 0;
}

.tsk-row-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.tsk-task-no {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 0.12rem 0.45rem;
}

.tsk-row-card__title {
  font-size: 0.97rem;
  font-weight: 750;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.tsk-row-card__title--done {
  text-decoration: line-through;
  color: #6b7280;
}

.tsk-row-card__desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tsk-row-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tsk-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  color: #6b7280;
}
.tsk-meta-item svg {
  opacity: 0.65;
  flex-shrink: 0;
}
.tsk-meta-item--overdue {
  color: #e11d48;
  font-weight: 600;
}
.tsk-meta-item--overdue svg {
  opacity: 1;
}

.tsk-assignee-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.tsk-row-card__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.tsk-btn-done, .tsk-btn-reopen {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.9rem;
  height: 34px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 7px;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  white-space: nowrap;
}
.tsk-btn-done:active, .tsk-btn-reopen:active {
  transform: scale(0.95);
}

.tsk-btn-done {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.tsk-btn-done:hover {
  background: #d1fae5;
  border-color: #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}

.tsk-btn-reopen {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #6b7280;
}
.tsk-btn-reopen:hover {
  background: #f3f4f6;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tsk-edit-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tsk-edit-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
  transform: scale(1.08);
}
.tsk-edit-btn:active {
  transform: scale(0.96);
}

.tsk-priority {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
}

.tsk-priority__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.tsk-priority--low {
  background: #f0fdf4;
  color: #15803d;
}
.tsk-priority--low .tsk-priority__dot {
  background: #22c55e;
}

.tsk-priority--medium {
  background: #eff6ff;
  color: #1d4ed8;
}
.tsk-priority--medium .tsk-priority__dot {
  background: #3b82f6;
}

.tsk-priority--high {
  background: #fff7ed;
  color: #c2410c;
}
.tsk-priority--high .tsk-priority__dot {
  background: #f97316;
}

.tsk-priority--urgent {
  background: #fff1f2;
  color: #be123c;
}
.tsk-priority--urgent .tsk-priority__dot {
  background: #f43f5e;
}

.tsk-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
}

.tsk-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.tsk-status--open {
  background: #ede9fe;
  color: #7c3aed;
}
.tsk-status--open .tsk-status__dot {
  background: #7c3aed;
}

.tsk-status--done {
  background: #ecfdf5;
  color: #065f46;
}
.tsk-status--done .tsk-status__dot {
  background: #22c55e;
}

.tsk-overdue-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.tsk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 0.5rem;
  text-align: center;
}

.tsk-empty__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.tsk-empty__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.tsk-empty__sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 1rem;
}

.tsk-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.tsk-pagination__info {
  font-size: 0.78rem;
  color: #6b7280;
}

.tsk-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tsk-page-indicator {
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: center;
  color: #111827;
}

.tsk-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tsk-page-btn:hover:not(:disabled) {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}
.tsk-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tsk-cal {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.tsk-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
}

.tsk-cal__nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tsk-cal__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  min-width: 170px;
  text-align: center;
}

.tsk-cal__nav-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tsk-cal__nav-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}

.tsk-cal__today-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tsk-cal__today-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}

.tsk-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.tsk-cal__weekdays > div {
  padding: 0.6rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
}

.tsk-cal__weekday--weekend {
  color: #c4b5fd;
}

.tsk-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #e5e7eb;
}

.tsk-cal__cell {
  min-height: 108px;
  padding: 0.55rem 0.6rem;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  transition: background 0.15s;
}
.tsk-cal__cell:hover:not(.tsk-cal__cell--empty) {
  background: rgba(124, 58, 237, 0.02);
}
.tsk-cal__cell--empty {
  background: #f9fafb;
}
.tsk-cal__cell--today {
  background: rgba(124, 58, 237, 0.04);
}
.tsk-cal__cell--today .tsk-cal__day-num {
  background: #7c3aed;
  color: #fff;
}
.tsk-cal__cell--has-tasks::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c3aed;
  opacity: 0.5;
}

.tsk-cal__day-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.1rem;
}

.tsk-cal__day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}
.tsk-cal__day-num--today {
  background: #7c3aed;
  color: #fff;
}

.tsk-cal__add-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  padding: 0 3px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.tsk-cal__cell:hover .tsk-cal__add-btn {
  opacity: 1;
}

.tsk-cal__chip {
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: filter 0.12s;
}
.tsk-cal__chip:hover {
  filter: brightness(0.92);
}
.tsk-cal__chip--low {
  background: #f0fdf4;
  color: #15803d;
  border-left: 2px solid #22c55e;
}
.tsk-cal__chip--medium {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 2px solid #3b82f6;
}
.tsk-cal__chip--high {
  background: #fff7ed;
  color: #c2410c;
  border-left: 2px solid #f97316;
}
.tsk-cal__chip--urgent {
  background: #fff1f2;
  color: #be123c;
  border-left: 2px solid #f43f5e;
}
.tsk-cal__chip--done {
  opacity: 0.55;
  text-decoration: line-through;
}

.tsk-cal__more {
  font-size: 0.63rem;
  font-weight: 700;
  color: #7c3aed;
  padding: 0.1rem 0 0.1rem 0.3rem;
  cursor: pointer;
}

.tsk-cal__legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tsk-cal__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
}

.tsk-cal__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.tsk-cal__legend-dot--low {
  background: #22c55e;
}
.tsk-cal__legend-dot--medium {
  background: #3b82f6;
}
.tsk-cal__legend-dot--high {
  background: #f97316;
}
.tsk-cal__legend-dot--urgent {
  background: #f43f5e;
}
.tsk-cal__legend-dot--done {
  background: #d1d5db;
}

.tsk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  animation: tskFadeIn 0.15s ease-out;
}

@keyframes tskFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tsk-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 540px;
  margin: 1.5rem;
  animation: tskModalIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes tskModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.tsk-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

.tsk-modal__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.2rem;
}

.tsk-modal__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.tsk-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tsk-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.tsk-modal__body {
  padding: 1.5rem;
}

.tsk-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tsk-modal__error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #fff1f2;
  border-radius: 8px;
  color: #be123c;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

.tsk-modal__cancel {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s;
}
.tsk-modal__cancel:hover {
  background: #f3f4f6;
  color: #111827;
}

.tsk-modal__save {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.35);
  transition: background 0.15s;
}
.tsk-modal__save:hover:not(:disabled) {
  background: #6d28d9;
}
.tsk-modal__save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tsk-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
.tsk-spinner--sm {
  width: 13px;
  height: 13px;
  border-width: 2px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .tsk-page {
    padding: 1rem;
  }
  .tsk-hero {
    padding: 1.25rem 1.1rem 0;
    border-radius: 12px;
  }
  .tsk-hero__title {
    font-size: 1.65rem;
  }
  .tsk-hero__top {
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
  }
  .tsk-hero__controls {
    width: 100%;
    justify-content: space-between;
  }
  .tsk-hero__stats {
    margin: 0 -1.1rem;
    padding: 0 0.5rem;
  }
  .tsk-hero__num {
    font-size: 1.4rem;
  }
  .tsk-hero__stat {
    padding: 0.75rem 0.4rem;
  }
  .tsk-hero__sep {
    margin: 0.45rem 0;
  }
  .tsk-hero__lbl {
    font-size: 0.58rem;
  }
  .tsk-cal__cell {
    min-height: 72px;
    padding: 0.3rem 0.3rem;
  }
  .tsk-cal__day-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }
  .tsk-cal__chip {
    font-size: 0.6rem;
    padding: 0.12rem 0.3rem;
  }
  .tsk-cal__title {
    font-size: 0.9rem;
    min-width: 130px;
  }
  .tsk-row-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .tsk-row-card__actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
  }
  .tsk-inline-form__row {
    grid-template-columns: 1fr;
  }
  .tsk-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .tsk-tabs::-webkit-scrollbar {
    display: none;
  }
  .tsk-tab {
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .tsk-hero {
    padding: 1rem 0.85rem 0;
    border-radius: 10px;
  }
  .tsk-hero__title {
    font-size: 1.4rem;
  }
  .tsk-hero__sub {
    font-size: 0.76rem;
  }
  .tsk-hero__create {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
  .tsk-hero__stats {
    flex-wrap: wrap;
    padding: 0;
  }
  .tsk-hero__stat {
    flex: 0 0 33.333%;
    padding: 0.6rem 0.3rem;
  }
  .tsk-hero__sep {
    display: none;
  }
  .tsk-cal__weekdays > div,
  .tsk-cal__weekday--weekend {
    font-size: 0.6rem;
    padding: 0.45rem 0;
  }
  .tsk-cal__cell {
    min-height: 54px;
  }
  .tsk-modal {
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .tsk-overlay {
    align-items: flex-end;
  }
  .tsk-field-row {
    grid-template-columns: 1fr;
  }
  .tsk-row-card__desc {
    display: none;
  }
}

