@charset "UTF-8";
@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";

/* src/styles.scss */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --primary: #2484C6;
  --primary-dark: #1B6FA8;
  --primary-light: #EBF5FB;
  --chart-valid: #38A2E4;
  --chart-invalid: #223666;
  --chart-bar-24: #38A2E4;
  --chart-bar-25: #223666;
  --text-primary: #1A1A2E;
  --text-secondary: #565454;
  --text-muted: #9EA5B2;
  --border: #E8EAED;
  --border-input: #D0D5DD;
  --bg-page: #F5F7FA;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --success: #12B76A;
  --error: #F04438;
  --primary-rgb:
    36,
    132,
    198;
  --sidebar-width: 220px;
  --header-height: 60px;
  --radius-card: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme=dark] {
  --text-primary: #E4E8F2;
  --text-secondary: #8A93A8;
  --text-muted: #565E78;
  --border: #2C3044;
  --border-input: #3A3E52;
  --bg-page: #0F1117;
  --bg-light: #181B24;
  --white: #1E2130;
  --primary-light: #162840;
}
[data-theme=dark] .sidebar {
  background: #1E2130;
}
[data-theme=dark] .nav-item svg {
  color: #6B7890;
}
html,
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.auth-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 48, 0.62);
  z-index: 1;
}
.auth-logo {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.auth-logo .auth-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}
.auth-logo .auth-logo-insights {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 3px;
  font-family: "Inter", sans-serif;
}
.auth-card {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: 16px;
  padding: 44px 48px 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}
.auth-heading {
  text-align: center;
  margin-bottom: 32px;
}
.auth-heading h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}
.auth-heading p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.55;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}
.input-wrapper {
  position: relative;
}
.input-wrapper input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 13px;
  border: 1.5px solid var(--border-input);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrapper input::placeholder {
  color: var(--text-muted);
}
.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 132, 198, 0.15);
}
.input-wrapper .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  padding: 2px;
}
.input-wrapper .toggle-pw:hover {
  color: var(--text-primary);
}
.forgot-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}
.btn-primary {
  width: 100%;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.link-btn:hover {
  text-decoration: underline;
}
.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pw-requirements {
  margin-top: 8px;
  font-size: 12px;
}
.pw-requirements .req-title {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 3px;
}
.pw-requirements ul {
  list-style: none;
  padding: 0;
}
.pw-requirements li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  color: var(--text-muted);
  transition: color 0.15s;
}
.pw-requirements li.valid {
  color: var(--success);
}
.pw-requirements li svg {
  flex-shrink: 0;
}
.auth-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #B91C1C;
}
.auth-error-banner svg {
  flex-shrink: 0;
  color: #EF4444;
}
.input-wrapper.input-error input {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
}
.remember-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 16px;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
}
.checkbox-label input[type=checkbox] {
  display: none;
}
.checkbox-label .checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-input);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-label .checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.1s;
}
.checkbox-label input[type=checkbox]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input[type=checkbox]:checked + .checkbox-custom::after {
  opacity: 1;
}
.ci-card {
  text-align: center;
}
.ci-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ci-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}
.ci-message strong {
  color: var(--text-primary);
}
.ci-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.ci-hint strong {
  color: var(--text-secondary);
}
.ci-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0;
}
.rp-success-card {
  text-align: center;
}
.rp-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #065F46;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.rp-redirect-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}
.rp-redirect-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: rp-drain 3s linear forwards;
}
@keyframes rp-drain {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
.rp-readonly-wrap input {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: default;
  padding-right: 38px !important;
}
.rp-lock-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.spin-icon {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-page);
}
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.22s, min-width 0.22s;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar.hidden {
  width: 0;
  min-width: 0;
  border-right: none;
  overflow: hidden;
}
.sidebar.collapsed {
  width: 56px;
  min-width: 56px;
  overflow: visible;
}
.sidebar.collapsed .sidebar-logo-insights,
.sidebar.collapsed .nav-section-title {
  display: none;
}
.sidebar.collapsed .sidebar-nav {
  overflow: visible;
}
.sidebar.collapsed .nav-item {
  padding: 11px 0;
  margin: 2px 0;
  border-radius: 0;
  justify-content: center;
  position: relative;
}
.sidebar.collapsed .nav-item .nav-label {
  display: block;
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: opacity 0.1s;
}
.sidebar.collapsed .nav-item:hover .nav-label {
  opacity: 1;
}
.sidebar-header {
  height: var(--header-height);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-header .sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 5px;
  border-radius: 5px;
  display: flex;
  flex-shrink: 0;
  transition: background 0.12s;
}
.sidebar-header .sidebar-toggle:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}
.sidebar-nav {
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 14px 16px 5px;
}
.nav-section-title-campaign {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  padding: 12px 16px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  margin: 8px 8px;
  border-radius: 8px;
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.nav-item svg {
  flex-shrink: 0;
  color: #8A9BB0;
}
.nav-item .nav-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-item:hover svg {
  color: var(--primary);
}
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active svg {
  color: var(--primary);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}
.nav-no-reports {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px 16px;
  text-align: center;
  color: var(--text-muted);
}
.nav-no-reports .nnr-title {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  color: var(--text-secondary);
}
.nav-no-reports .nnr-sub {
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
}
.dash-header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  flex-shrink: 0;
}
.dash-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.page-container {
  padding: 22px 24px;
  flex: 1;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 240ms;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scale-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  60% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
.anim-fade-in {
  animation: fade-in var(--dur-base) var(--ease-out) both;
}
.anim-scale-fade-in {
  animation: scale-fade-in var(--dur-base) var(--ease-out) both;
}
.anim-slide-up-fade {
  animation: slide-up-fade var(--dur-slow) var(--ease-out) both;
}
.anim-pop-in {
  animation: pop-in var(--dur-slow) var(--ease-spring) both;
}
.ucm-overlay,
.cp-overlay,
.cd-modal-overlay,
.cd-ra-modal-overlay,
.cfg-modal-overlay,
.cu-modal-overlay {
  animation: fade-in var(--dur-fast) var(--ease-out) both;
}
.ucm-modal,
.cp-modal,
.cd-modal-card,
.cd-ra-modal,
.cfg-modal,
.cu-modal-card {
  animation: scale-fade-in var(--dur-base) var(--ease-out) both;
}
.hdr-dropdown,
.user-dropdown,
.cl-drop-panel,
.al-drop-panel,
.cfg-drop-panel,
.dd-dropdown {
  transform-origin: top right;
  animation: scale-fade-in var(--dur-fast) var(--ease-out) both;
}
.cd-toast {
  animation: slide-up-fade var(--dur-slow) var(--ease-out) both;
}
.sidebar-nav .nav-item {
  animation: slide-up-fade var(--dur-slow) var(--ease-out) both;
}
.sidebar-nav .nav-item:nth-child(1) {
  animation-delay: 0ms;
}
.sidebar-nav .nav-item:nth-child(2) {
  animation-delay: 30ms;
}
.sidebar-nav .nav-item:nth-child(3) {
  animation-delay: 60ms;
}
.sidebar-nav .nav-item:nth-child(4) {
  animation-delay: 90ms;
}
.sidebar-nav .nav-item:nth-child(5) {
  animation-delay: 120ms;
}
.sidebar-nav .nav-item:nth-child(6) {
  animation-delay: 150ms;
}
.sidebar-nav .nav-item:nth-child(7) {
  animation-delay: 180ms;
}
.sidebar-nav .nav-item:nth-child(n+8) {
  animation-delay: 210ms;
}
.nav-item::after {
  transition: opacity var(--dur-fast) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
[appCopyOnClick] {
  position: relative;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
[appCopyOnClick]:hover {
  background: rgba(36, 132, 198, 0.1);
  color: var(--primary);
}
[appCopyOnClick][data-copy-state=copied]::after {
  content: "Copied";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
[appCopyOnClick][data-copy-state=error]::after {
  content: "Copy failed";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #b91c1c;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.cd-section,
.cd-info-card,
.cfg-bundle-section,
.cfg-workspace-panel,
.cfg-ws-report-panel,
.cfg-client-panel,
.cfg-assignment-panel,
.rm-section,
.ar-section,
.au-section,
.rb-cfg-section,
.al-table-wrap,
.al-detail-panel,
.cl-table-wrap,
.cu-card,
.rl-table-wrap,
.um-summary-strip,
.um-card,
.pm-summary-bar,
.pm-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.cd-info-card:hover,
.pm-summary-stat:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}
.cd-add-btn,
.cl-btn-add,
.rl-btn-add,
.um-btn-add,
.cu-add-btn,
.hdr-apply-btn,
.cd-ra-manage-btn,
.ucm-done-btn,
.cd-pbi-save-btn,
.btn-primary,
.cp-btn-primary {
  transition:
    background var(--dur-fast) ease-out,
    transform 100ms ease-out,
    box-shadow var(--dur-fast) ease-out;
}
.cd-add-btn:active:not(:disabled),
.cl-btn-add:active:not(:disabled),
.rl-btn-add:active:not(:disabled),
.um-btn-add:active:not(:disabled),
.cu-add-btn:active:not(:disabled),
.hdr-apply-btn:active:not(:disabled),
.cd-ra-manage-btn:active:not(:disabled),
.ucm-done-btn:active:not(:disabled),
.cd-pbi-save-btn:active:not(:disabled),
.btn-primary:active:not(:disabled),
.cp-btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.page-header .page-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-banner {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.overview-banner .overview-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.overview-banner .overview-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.overview-banner a {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.overview-banner a:hover {
  text-decoration: underline;
}
.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.date-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border-input);
  border-radius: 7px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.date-filter-btn svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.date-filter-btn:hover,
.date-filter-btn.open {
  border-color: var(--primary);
}
.date-filter-btn .dd-caret {
  transition: transform 0.18s;
}
.date-filter-btn.open .dd-caret {
  transform: rotate(180deg);
}
.tabs-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.receipt-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.receipt-tabs::-webkit-scrollbar {
  display: none;
}
.rtab {
  padding: 6px 14px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}
.rtab:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: var(--primary);
}
.rtab.active {
  background: var(--chart-invalid);
  color: #fff;
  font-weight: 600;
  border-color: var(--chart-invalid);
}
.rtab.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}
.rtab.info-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.rtab.info-btn svg {
  flex-shrink: 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 20px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s;
  cursor: default;
}
.kpi-card:hover {
  border-color: #93C5DA;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}
.kpi-card:hover > .kpi-hover-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.kpi-card .kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #E3F2FA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.kpi-card .kpi-icon svg {
  width: 55%;
  height: 55%;
}
.kpi-card .kpi-body {
  flex: 1;
  min-width: 0;
}
.kpi-card .kpi-body .kpi-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}
.kpi-card .kpi-body .kpi-label {
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.kpi-card .kpi-body .kpi-pct {
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 600;
  color: var(--text-muted);
}
.kpi-card .kpi-body .kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.kpi-card .kpi-body .kpi-value {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1px;
}
.kpi-card .kpi-body .kpi-change {
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kpi-card .kpi-body .kpi-change.up {
  color: var(--success);
}
.kpi-card .kpi-body .kpi-change.down {
  color: var(--error);
}
.kpi-hover-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  max-width: 280px;
  background: #1C2C4A;
  color: #DDE6F5;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
  z-index: 300;
  pointer-events: none;
  white-space: normal;
  text-align: left;
}
.kpi-hover-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #1C2C4A;
}
.charts-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 16px;
  position: relative;
}
.chart-card:hover > .kpi-hover-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.chart-card .chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.chart-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.chart-card .chart-legend-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}
.chart-card .chart-legend-inline span {
  display: flex;
  align-items: center;
}
.chart-card .chart-legend-inline .leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  flex-shrink: 0;
}
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.donut-wrap .donut-svg-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
}
.donut-wrap .donut-svg-container svg {
  display: block;
}
.donut-wrap .donut-svg-container .donut-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-wrap .donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-size: 12.5px;
}
.donut-wrap .donut-legend .leg-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.donut-wrap .donut-legend .leg-row .leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-wrap .donut-legend .leg-row .leg-label {
  color: var(--text-secondary);
  flex: 1;
}
.donut-wrap .donut-legend .leg-row .leg-val {
  font-weight: 700;
  color: var(--text-primary);
}
.bar-chart-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 16px;
  position: relative;
}
.bar-chart-card:hover > .kpi-hover-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.bar-chart-card .chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.bar-chart-card .chart-title-row h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.bar-chart-card .chart-title-row .chart-legend-inline {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}
.bar-chart-card .chart-title-row .chart-legend-inline span {
  display: flex;
  align-items: center;
}
.bar-chart-card .chart-title-row .chart-legend-inline .leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.chart-tooltip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  min-width: 180px;
}
.chart-tooltip .tt-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.chart-tooltip .tt-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.chart-tooltip .tt-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 8px;
}
.chart-tooltip .tt-action {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px 0;
  font-size: 12.5px;
}
.chart-tooltip .tt-action:hover {
  color: var(--primary);
}
.chart-tooltip .tt-action.primary-action {
  color: var(--primary);
  font-weight: 500;
}
.custom-dropdown {
  position: relative;
}
.custom-dropdown .dd-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.12s, background 0.12s;
  min-width: 160px;
}
.custom-dropdown .dd-trigger:hover,
.custom-dropdown .dd-trigger.open {
  border-color: var(--primary);
}
.custom-dropdown .dd-trigger.has-selection {
  border-color: var(--primary);
  background: var(--primary-light);
}
.custom-dropdown .dd-trigger .dd-label {
  flex: 1;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown .dd-trigger .dd-caret {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.18s;
}
.custom-dropdown .dd-trigger.open .dd-caret {
  transform: rotate(180deg);
}
.custom-dropdown .dd-trigger .badge {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.custom-dropdown .dd-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  max-height: 260px;
  overflow-y: auto;
}
.custom-dropdown .dd-menu .dd-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.1s;
}
.custom-dropdown .dd-menu .dd-option:hover {
  background: var(--bg-light);
}
.custom-dropdown .dd-menu .dd-option.selected {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 500;
}
.date-picker-dropdown {
  position: relative;
}
.date-picker-dropdown.open-right .date-menu {
  right: auto;
  left: 0;
}
.date-picker-dropdown .date-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.12s;
  min-width: 190px;
}
.date-picker-dropdown .date-trigger:hover,
.date-picker-dropdown .date-trigger.open {
  border-color: var(--primary);
}
.date-picker-dropdown .date-trigger .cal-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.date-picker-dropdown .date-trigger .dt-label {
  flex: 1;
}
.date-picker-dropdown .date-trigger .dd-caret {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.18s;
}
.date-picker-dropdown .date-trigger.open .dd-caret {
  transform: rotate(180deg);
}
.date-picker-dropdown .date-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  min-width: 180px;
  overflow: hidden;
}
.date-picker-dropdown .date-menu .date-preset {
  display: block;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.1s;
}
.date-picker-dropdown .date-menu .date-preset:hover {
  background: var(--bg-light);
}
.date-picker-dropdown .date-menu .date-preset.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}
.calendar-widget {
  padding: 12px 14px 14px;
}
.calendar-widget .cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border-radius: 7px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.calendar-widget .cal-header .cal-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 5px;
  font-family: inherit;
  transition: background 0.1s;
}
.calendar-widget .cal-header .cal-title:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
}
.calendar-widget .cal-header .cal-title:disabled {
  cursor: default;
}
.calendar-widget .cal-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}
.calendar-widget .cal-header button:hover {
  background: rgba(0, 0, 0, 0.05);
}
.calendar-widget .cal-months-grid,
.calendar-widget .cal-years-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.calendar-widget .cal-months-grid button,
.calendar-widget .cal-years-grid button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-primary);
  font-family: inherit;
  transition: background 0.1s, color 0.1s;
}
.calendar-widget .cal-months-grid button:hover,
.calendar-widget .cal-years-grid button:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.calendar-widget .cal-months-grid button.selected,
.calendar-widget .cal-years-grid button.selected {
  background: var(--primary);
  color: #fff;
}
.calendar-widget .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  text-align: center;
}
.calendar-widget .cal-grid .cal-day-header {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 0 7px;
}
.calendar-widget .cal-grid .cal-day {
  padding: 5px 2px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.1s;
  line-height: 1;
}
.calendar-widget .cal-grid .cal-day.other-month {
  color: var(--text-muted);
}
.calendar-widget .cal-grid .cal-day:hover:not(.other-month) {
  background: var(--primary-light);
  color: var(--primary);
}
.calendar-widget .cal-grid .cal-day.selected {
  background: var(--primary);
  color: #fff !important;
}
.calendar-widget .cal-grid .cal-day.in-range {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 0;
}
.calendar-widget .cal-grid .cal-day.range-start {
  background: var(--primary);
  color: #fff;
  border-radius: 5px 0 0 5px;
}
.calendar-widget .cal-grid .cal-day.range-end {
  background: var(--primary);
  color: #fff;
  border-radius: 0 5px 5px 0;
}
@keyframes metric-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 132, 198, 0.8);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(36, 132, 198, 0.4);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(36, 132, 198, 0.5);
  }
}
.kpi-card.metric-focus,
.chart-card.metric-focus {
  border: 2.5px solid #2484C6 !important;
  box-shadow: 0 0 0 6px rgba(36, 132, 198, 0.5) !important;
  background: rgba(36, 132, 198, 0.1) !important;
  animation: metric-pulse 0.6s ease forwards;
}
.slide-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 400;
  display: flex;
  justify-content: flex-end;
}
.slide-panel {
  width: 400px;
  max-width: 90vw;
  background: var(--white);
  height: 100%;
  overflow-y: auto;
  padding: 24px 28px;
}
.slide-panel .sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.slide-panel .sp-header h2 {
  font-size: 17px;
  font-weight: 700;
}
.slide-panel .sp-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  font-size: 18px;
}
.slide-panel .sp-header button:hover {
  color: var(--text-primary);
}
.slide-panel .sp-section,
.slide-panel .sp-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 18px 0 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.slide-panel .sp-item {
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.slide-panel .sp-item:hover {
  background: var(--bg-light);
}
.slide-panel .sp-item.sp-active {
  background: rgba(36, 132, 198, 0.1);
  border-left-color: var(--primary);
}
.slide-panel .sp-item.sp-active .sp-item-title {
  color: var(--primary);
}
.slide-panel .sp-item .sp-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.slide-panel .sp-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.um-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.um-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.um-table-header .table-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.um-table-header .table-title .count-badge {
  background: #D1FAE5;
  color: #065F46;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}
.um-table-header .search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  padding: 6px 11px;
}
.um-table-header .search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.um-table-header .search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 170px;
  font-family: inherit;
  color: var(--text-primary);
}
.um-table-header .search-box input::placeholder {
  color: var(--text-muted);
}
.um-table {
  width: 100%;
  border-collapse: collapse;
}
.um-table th {
  padding: 10px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
  white-space: nowrap;
}
.um-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.um-table tr:last-child td {
  border-bottom: none;
}
.um-table tbody tr:hover td {
  background: var(--bg-light);
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-cell .u-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E0E7FF;
  color: #4338CA;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.status-badge.active {
  background: #D1FAE5;
  color: #065F46;
}
.status-badge.inactive {
  background: #FEE2E2;
  color: #991B1B;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.action-btns {
  display: flex;
  gap: 4px;
}
.action-btns button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  transition: background 0.1s;
}
.action-btns button.del {
  color: #EF4444;
}
.action-btns button.del:hover {
  background: #FEE2E2;
}
.action-btns button.edit {
  color: var(--text-muted);
}
.action-btns button.edit:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  text-align: center;
}
.empty-state .empty-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border-input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-input);
  margin-bottom: 14px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.add-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.add-user-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  padding: 4px;
  border-radius: 4px;
}
.add-user-header button:hover {
  color: var(--text-primary);
  background: var(--bg-light);
}
.add-user-header h1 {
  font-size: 20px;
  font-weight: 700;
}
.add-user-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.form-field label .req {
  color: var(--error);
  margin-left: 2px;
}
.form-field input,
.form-field select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  font-size: 13.5px;
  outline: none;
  background: var(--white);
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 132, 198, 0.15);
}
.form-field .input-pw-wrapper {
  position: relative;
}
.form-field .input-pw-wrapper input {
  padding-right: 42px;
}
.form-field .input-pw-wrapper button {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
}
.form-field .input-pw-wrapper button:hover {
  color: var(--text-primary);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.form-actions .btn-cancel {
  height: 42px;
  padding: 0 22px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
}
.form-actions .btn-cancel:hover {
  background: var(--bg-light);
}
.form-actions .btn-create {
  height: 42px;
  padding: 0 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.form-actions .btn-create:hover {
  background: var(--primary-dark);
}
.btn-gen-pw {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid var(--border-input);
  border-radius: 6px;
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.12s;
}
.btn-gen-pw:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.page-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.page-action-btn:hover {
  background: var(--primary-dark);
}
.setup-card {
  max-width: 460px;
  padding: 40px 44px 36px;
}
.um-summary-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 24px;
  margin-bottom: 14px;
  width: fit-content;
}
.um-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px;
}
.um-stat .um-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.um-stat .um-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.um-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}
.page-subhead {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.role-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.role-badge.role-admin {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #B3D9F2;
}
.status-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-muted);
  transition: all 0.15s;
}
.status-toggle-btn .st-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-toggle-btn.active {
  background: #D1FAE5;
  color: #065F46;
}
.status-toggle-btn:hover {
  opacity: 0.8;
}
.um-no-results {
  text-align: center;
  padding: 32px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.input-error-border {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 20px;
}
.modal-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal-icon.modal-icon-danger {
  background: #FEE2E2;
  color: #DC2626;
}
.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close-btn:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-body {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.modal-btn-cancel {
  height: 38px;
  padding: 0 18px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
}
.modal-btn-cancel:hover {
  background: var(--bg-light);
}
.modal-btn-danger {
  height: 38px;
  padding: 0 18px;
  background: #DC2626;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.modal-btn-danger:hover {
  background: #B91C1C;
}
.modal-btn-primary {
  height: 38px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.modal-btn-primary:hover {
  background: var(--primary-dark);
}
.modal-field {
  margin-bottom: 16px;
}
.modal-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.modal-field label .req {
  color: var(--error);
  margin-left: 2px;
}
.modal-field label .modal-readonly-note {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.modal-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  font-size: 13.5px;
  outline: none;
  background: var(--white);
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.modal-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 132, 198, 0.15);
}
.modal-field .input-readonly {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: default;
}
.modal-role-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.role-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--border-input);
  border-radius: 7px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  transition: all 0.15s;
}
.role-option-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.role-option-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.um-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1E293B;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  z-index: 700;
  white-space: nowrap;
  animation: toast-in 0.22s ease;
}
.um-toast svg {
  color: #4ADE80;
  flex-shrink: 0;
}
.um-toast.um-toast-error svg {
  color: #F87171;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.au-success-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  max-width: 480px;
  text-align: center;
}
.au-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #065F46;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.au-success-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.au-success-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.au-success-hint {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 6px;
}
.au-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
  .kpi-card {
    padding: 16px 16px 14px;
    gap: 12px;
  }
  .kpi-card .kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }
}
@media (max-width: 768px) {
  .kpi-card {
    padding: 14px 14px 12px;
    gap: 10px;
  }
  .kpi-card .kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
  .kpi-hover-tip {
    min-width: 180px;
    max-width: 240px;
    font-size: 11.5px;
  }
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card {
    padding: 12px;
    gap: 10px;
  }
  .kpi-card .kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}

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