/* src/styles.css */
@layer material {
  .mdc-button {
    font-family: var(--font-family);
  }
  .mdc-text-field {
    font-family: var(--font-family);
  }
  .mat-mdc-form-field {
    font-family: var(--font-family);
  }
}
:root {
  --font-family:
    "Inter",
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef2f9;
  --surface-hover: #eef1f8;
  --border: #e2e7f0;
  --border-strong: #c9d2e2;
  --text: #141b2d;
  --text-2: #4b556b;
  --text-3: #8792ac;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-soft-2: rgba(37, 99, 235, 0.18);
  --accent-contrast: #ffffff;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.10);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --info: #0891b2;
  --info-soft: rgba(8, 145, 178, 0.10);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.12);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.16);
}
[data-theme=dark] {
  color-scheme: dark;
  --bg: #0d1119;
  --surface: #141b29;
  --surface-2: #1a2233;
  --surface-3: #202a3f;
  --surface-hover: #232f47;
  --border: #273349;
  --border-strong: #38465f;
  --text: #e7ebf5;
  --text-2: #b6c0d6;
  --text-3: #7d8aa6;
  --accent-soft: rgba(96, 142, 255, 0.14);
  --accent-soft-2: rgba(96, 142, 255, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}
[data-accent=blue] {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
}
[data-accent=green] {
  --accent: #059669;
  --accent-hover: #047857;
  --accent-active: #065f46;
}
[data-accent=purple] {
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-active: #5b21b6;
}
[data-accent=orange] {
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-active: #9a3412;
}
[data-accent=red] {
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-active: #991b1b;
}
[data-accent=blue] {
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-soft-2: rgba(37, 99, 235, 0.18);
}
[data-accent=green] {
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-soft-2: rgba(5, 150, 105, 0.20);
}
[data-accent=purple] {
  --accent-soft: rgba(124, 58, 237, 0.12);
  --accent-soft-2: rgba(124, 58, 237, 0.20);
}
[data-accent=orange] {
  --accent-soft: rgba(234, 88, 12, 0.12);
  --accent-soft-2: rgba(234, 88, 12, 0.20);
}
[data-accent=red] {
  --accent-soft: rgba(220, 38, 38, 0.10);
  --accent-soft-2: rgba(220, 38, 38, 0.18);
}
* {
  box-sizing: border-box;
}
body,
body *:not(.material-icons):not(.material-symbols-outlined):not(mat-icon):not(code):not(pre):not(.mono):not(.font-mono) {
  font-family: var(--font-family) !important;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.shell-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shell-main {
  flex: 1;
  padding: 24px 28px;
  overflow: auto;
}
.shell:has(app-users) .shell-main {
  overflow: hidden;
}
.shell:has(app-sales-view) {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.shell:has(app-sales-view) .shell-body {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.shell:has(app-sales-view) .shell-main {
  min-height: 0;
  overflow: hidden;
  padding: 10px 18px;
}
@media (max-width: 900px) {
  .shell:has(app-sales-view) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .shell:has(app-sales-view) .shell-body {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .shell:has(app-sales-view) .shell-main {
    min-height: auto;
    overflow: auto;
  }
}
.shell:has(app-purchase-entry) .topbar {
  display: none;
}
.shell:has(app-purchase-entry) .shell-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.shell:has(app-purchase-entry) app-purchase-entry {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.pe-side-toggle {
  display: none;
}
.shell:has(app-purchase-entry) .pe-side-toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.shell:has(app-purchase-entry) .pe-side-toggle:hover {
  background: var(--surface-3);
  color: var(--text);
}
.shell:has(app-purchase-entry) .sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}
.shell:has(app-purchase-entry) .sidebar-footer .pe-side-toggle {
  display: inline-flex;
  margin-left: auto;
}
.shell:has(app-purchase-entry) .sidebar.collapsed {
  width: 64px;
}
.shell:has(app-purchase-entry) .sidebar.collapsed .sidebar-brand {
  padding: 14px 12px;
  justify-content: center;
}
.shell:has(app-purchase-entry) .sidebar.collapsed .sidebar-footer {
  justify-content: center;
  padding: 12px 8px;
}
.shell:has(app-purchase-entry) .sidebar.collapsed .user-chip {
  gap: 0;
}
.shell:has(app-sales-entry) .topbar {
  display: none;
}
.shell:has(app-sales-entry) .shell-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.shell:has(app-sales-entry) app-sales-entry {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.se-side-toggle {
  display: none;
}
.shell:has(app-sales-entry) .se-side-toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.shell:has(app-sales-entry) .se-side-toggle:hover {
  background: var(--surface-3);
  color: var(--text);
}
.shell:has(app-sales-entry) .sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}
.shell:has(app-sales-entry) .sidebar-footer .se-side-toggle {
  display: inline-flex;
  margin-left: auto;
}
.shell:has(app-sales-entry) .sidebar.collapsed {
  width: 64px;
}
.shell:has(app-sales-entry) .sidebar.collapsed .sidebar-brand {
  padding: 14px 12px;
  justify-content: center;
}
.shell:has(app-sales-entry) .sidebar.collapsed .sidebar-footer {
  justify-content: center;
  padding: 12px 8px;
}
.shell:has(app-sales-entry) .sidebar.collapsed .user-chip {
  gap: 0;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar.collapsed {
  width: 68px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-active));
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand .brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.sidebar-brand .brand-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-3);
  padding: 14px 10px 6px;
  white-space: nowrap;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 13.5px;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-item i-lucide,
.nav-item .icon {
  flex-shrink: 0;
}
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.user-chip .user-meta {
  min-width: 0;
}
.user-chip .user-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip .user-role {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.topbar-spacer {
  flex: 1;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: 21px;
}
.page-header .page-sub {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 3px;
}
.page-header .page-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
}
.bc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-weight: 500;
}
.bc a:hover {
  color: var(--accent);
  text-decoration: none;
}
.bc-sep {
  display: inline-flex;
  color: var(--text-3);
  opacity: 0.55;
}
.bc-current {
  font-weight: 600;
  color: var(--text-2);
}
.skel {
  display: block;
  background:
    linear-gradient(
      90deg,
      var(--surface-3) 25%,
      var(--surface-hover) 50%,
      var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s ease-in-out infinite;
}
@keyframes skel-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad {
  padding: 20px;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-header h3 {
  font-size: 15px;
}
.card-header .card-sub {
  font-size: 12.5px;
  color: var(--text-3);
}
.card-header .card-actions {
  margin-left: auto;
}
.card-body {
  padding: 20px;
}
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.stat-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
}
.stat-card .stat-hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.stat-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.stat-icon.success {
  background: var(--success-soft);
  color: var(--success);
}
.stat-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.stat-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.stat-icon.info {
  background: var(--info-soft);
  color: var(--info);
}
.stat-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-soft-2);
  outline-offset: 1px;
}
.btn-sm {
  padding: 6px 11px;
  font-size: 12.5px;
}
.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}
.btn-icon {
  padding: 8px;
}
.btn-icon.btn-sm {
  padding: 5px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-primary:active:not(:disabled) {
  background: var(--accent-active);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover:not(:disabled) {
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--text);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}
.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-danger-soft:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.18);
}
.btn-block {
  width: 100%;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg {
  width: 34px;
  height: 34px;
  border-width: 3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.field-label .req {
  color: var(--danger, #e5484d);
  margin-left: 2px;
}
.field-hint {
  font-size: 11.5px;
  color: var(--text-3);
}
.field-error {
  font-size: 12px;
  color: var(--danger);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i-lucide.input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.input-wrap > i-lucide.input-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-3);
  cursor: pointer;
}
.input {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder {
  color: var(--text-3);
}
.input:disabled {
  background: var(--surface-3);
  color: var(--text-3);
  cursor: not-allowed;
}
.input.has-prefix {
  padding-left: 38px;
}
.input.has-suffix {
  padding-right: 38px;
}
.input.invalid {
  border-color: var(--danger);
}
.input.invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}
textarea.input {
  resize: vertical;
  min-height: 84px;
}
.ff {
  margin-bottom: 18px;
}
.ff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
@media (max-width: 560px) {
  .ff-grid {
    grid-template-columns: 1fr;
  }
}
.ff-wrap {
  position: relative;
}
.ff-wrap > .ff-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  z-index: 1;
  transition: color var(--transition);
}
.ff-wrap:focus-within > .ff-icon {
  color: var(--accent);
}
.ff-wrap.area > .ff-icon {
  top: 26px;
  transform: none;
}
.ff-control {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 22px 12px 8px;
  line-height: 1.35;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ff-control.has-icon {
  padding-left: 40px;
}
.ff-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ff-control.invalid {
  border-color: var(--danger);
}
.ff-control.invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.ff-control:disabled {
  background: var(--surface-3);
  color: var(--text-3);
  cursor: not-allowed;
}
select.ff-control {
  padding: 10px 36px 10px 12px;
  cursor: pointer;
}
textarea.ff-control {
  resize: vertical;
  min-height: 100px;
  padding: 24px 12px 10px;
}
.ff-label {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transform-origin: left top;
  max-width: calc(100% - 46px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition);
}
.ff-wrap.has-icon .ff-label {
  left: 40px;
}
.ff-wrap:focus-within .ff-label,
.ff-wrap.floated .ff-label,
.ff-control.filled ~ .ff-label {
  top: 0;
  left: 10px;
  transform: translateY(-50%) scale(0.78);
  color: var(--accent);
  font-weight: 600;
  background: var(--surface);
  padding: 0 5px;
  border-radius: 4px;
}
.ff-wrap.has-icon:focus-within .ff-label,
.ff-wrap.has-icon.floated .ff-label,
.ff-wrap.has-icon .ff-control.filled ~ .ff-label {
  left: 36px;
}
.ff-wrap.hide-empty:not(:focus-within):not(.floated) .ff-label {
  opacity: 0;
}
.ff-wrap.area .ff-label {
  top: 26px;
  transform: none;
}
.ff-wrap.area:focus-within .ff-label,
.ff-wrap.area.floated .ff-label {
  top: 0;
  transform: translateY(-50%) scale(0.78);
  background: var(--surface);
  padding: 0 5px;
  border-radius: 4px;
}
.ff-req {
  color: var(--danger);
  margin-left: 2px;
}
.ff-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  margin-top: 6px;
}
.ff-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 6px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table.btable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table-wrap table.btable {
  min-width: 580px;
}
.btable thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.btable tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.btable tbody tr:hover {
  background: var(--surface-2);
}
.btable tbody tr:last-child td {
  border-bottom: none;
}
.btable .cell-actions {
  text-align: right;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.success {
  background: var(--success-soft);
  color: var(--success);
}
.pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill.info {
  background: var(--info-soft);
  color: var(--info);
}
.pill.neutral {
  background: var(--surface-3);
  color: var(--text-3);
}
.pill.plain::before {
  display: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 16px;
  z-index: 100;
  animation: fadeIn var(--transition);
}
.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dialog.sm {
  max-width: 400px;
}
.dialog.lg {
  max-width: 760px;
}
.dialog-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dialog-header h3 {
  font-size: 16px;
}
.dialog-header .dialog-close {
  margin-left: auto;
}
.dialog-body {
  padding: 22px;
  overflow-y: auto;
}
.dialog-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.dialog-inner-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
}
.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 13px 15px;
  animation: slideIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.success {
  border-left-color: var(--success);
}
.toast.danger {
  border-left-color: var(--danger);
}
.toast.warning {
  border-left-color: var(--warning);
}
.toast .toast-icon {
  margin-top: 1px;
  flex-shrink: 0;
}
.toast .toast-title {
  font-weight: 700;
  font-size: 13.5px;
}
.toast .toast-msg {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 1px;
}
.toast .toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-3);
}
@keyframes slideIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
}
[data-theme=dark] .loader-overlay {
  background: rgba(13, 17, 25, 0.6);
}
.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 34px;
  box-shadow: var(--shadow-lg);
  color: var(--accent);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 16px;
  color: var(--text-3);
  text-align: center;
}
.empty-state .empty-icon {
  opacity: 0.6;
}
.empty-state .empty-title {
  font-weight: 600;
  color: var(--text-2);
  font-size: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 16px;
}
.pagination .page-info {
  margin-right: auto;
  color: var(--text-3);
  font-size: 12.5px;
}
.page-dots {
  color: var(--text-3);
}
.search-box {
  position: relative;
}
.search-box .search-input {
  padding-left: 36px;
  min-width: 240px;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 6px;
}
.mt-2 {
  margin-top: 12px;
}
.mt-3 {
  margin-top: 20px;
}
.mt-4 {
  margin-top: 28px;
}
.mb-1 {
  margin-bottom: 6px;
}
.mb-2 {
  margin-bottom: 12px;
}
.mb-3 {
  margin-bottom: 20px;
}
.flex {
  display: flex;
  align-items: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap-1 {
  gap: 6px;
}
.gap-2 {
  gap: 12px;
}
.gap-3 {
  gap: 20px;
}
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.text-muted {
  color: var(--text-3);
}
.text-right {
  text-align: right;
}
.currency {
  font-variant-numeric: tabular-nums;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.auth-side {
  flex: 1;
  background:
    linear-gradient(
      150deg,
      var(--accent) 0%,
      var(--accent-active) 70%);
  color: var(--accent-contrast);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}
@media (min-width: 960px) {
  .auth-side {
    display: flex;
  }
}
.auth-side .auth-quote {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 460px;
}
.auth-side .auth-quote-sub {
  opacity: 0.85;
  margin-top: 14px;
  font-size: 14px;
  max-width: 420px;
  line-height: 1.6;
}
.auth-side .auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 13.5px;
  opacity: 0.95;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-logo .auth-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-active));
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-logo .auth-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.auth-title {
  font-size: 24px;
  font-weight: 800;
}
.auth-sub {
  color: var(--text-3);
  margin-top: 6px;
  margin-bottom: 26px;
  font-size: 13.5px;
}
.auth-footer {
  margin-top: 22px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--surface);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}
.list {
  display: flex;
  flex-direction: column;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border-bottom: none;
}
.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 16px;
  border-radius: var(--radius);
}
.badge-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.stat-sm {
  font-size: 16px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  max-height: 180px;
  overflow: auto;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.check-item input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.perm-group {
  margin-top: 12px;
}
.perm-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.perm-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (max-width: 1024px) {
  .shell-main {
    padding: 20px 18px;
  }
}
@media (max-width: 720px) {
  .shell-main {
    padding: 16px 14px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header .page-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .search-box {
    flex: 1 1 100%;
  }
  .search-box .search-input {
    min-width: 0;
    width: 100%;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar-title {
    font-size: 14px;
  }
  .card-header,
  .card-body,
  .card-pad {
    padding: 16px;
  }
  .card-header {
    flex-wrap: wrap;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination .page-info {
    flex-basis: 100%;
    text-align: center;
    margin-right: 0;
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
  .dialog-overlay {
    padding: 12px;
    align-items: center;
  }
  .dialog {
    max-height: 92vh;
  }
  .dialog-footer {
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .dialog-footer .btn {
    flex: 1;
  }
  .auth-main {
    padding: 24px 16px;
  }
  .auth-box {
    max-width: 100%;
  }
  .stat-card {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .shell-main {
    padding: 14px 10px;
  }
  .topbar .btn {
    padding: 8px;
  }
  .dialog-overlay {
    padding: 10px;
    align-items: flex-end;
  }
  .dialog {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .dialog-footer {
    flex-direction: column-reverse;
  }
  .dialog-footer .btn {
    width: 100%;
  }
  .stat-card {
    padding: 14px 16px;
  }
  .page-header h1 {
    font-size: 19px;
  }
}
@media (min-width: 721px) {
  .page-header .page-actions .search-box {
    width: auto;
  }
}
@media (min-width: 901px) {
  .shell:has(app-pos) .shell-main {
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
}

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