/* src/styles/tokens.css */
:root {
  --color-primary-from: #0ea5e9;
  --color-primary-to: #6366f1;
  --color-primary: #4f46e5;
  --color-secondary-bg: #f9fafb;
  --color-secondary-border: #e5e7eb;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-danger-hover: #fee2e2;
  --color-success: #0a7a33;
  --color-success-bg: #dcfce7;
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-input: #d1d5db;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-text-label: #374151;
  --color-sidebar-bg: #0f172a;
  --color-sidebar-bg-end: #1e293b;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: 6px;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 8px;
  --radius-pill: 9999px;
  --font-sans:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.07);
  --shadow-focus: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* src/styles.css */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
}
.page-header-zone {
  width: 100%;
  margin-bottom: 0;
}
.content-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}
.content-fit-form {
  position: relative;
  width: fit-content;
  min-width: 400px;
  min-height: 400px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.content-fit-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tenants-content,
.users-content,
.user-groups-content,
.branches-content,
.page-content,
.roles-content,
.search-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
}
.search-card {
  margin-bottom: var(--space-6);
}
.search-card h2 {
  margin-top: 0;
}
.primary-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: none;
  background:
    linear-gradient(
      to right,
      var(--color-primary-from),
      var(--color-primary-to));
  color: #fff;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-size: var(--text-base);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    opacity 0.08s ease;
}
.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.primary-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-surface), var(--shadow-focus);
}
.primary-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.secondary-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-secondary-border);
  background: var(--color-secondary-bg);
  color: var(--color-text-label);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}
.secondary-btn:hover:not(:disabled) {
  background: var(--color-border);
}
.secondary-btn:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.secondary-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.danger-btn {
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.danger-btn:hover:not(:disabled) {
  background: var(--color-danger-hover);
}
.danger-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px rgba(185, 28, 28, 0.25);
}
.table-wrap {
  overflow-x: auto;
  margin-top: var(--space-2);
}
.tenants-table,
.users-table,
.user-groups-table,
.branches-table,
.rates-table,
.results-table,
.roles-table,
.user-groups-roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.tenants-table th,
.tenants-table td,
.users-table th,
.users-table td,
.user-groups-table th,
.user-groups-table td,
.branches-table th,
.branches-table td,
.rates-table th,
.rates-table td,
.results-table th,
.results-table td,
.roles-table th,
.roles-table td,
.user-groups-roles-table th,
.user-groups-roles-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.tenants-table th,
.users-table th,
.user-groups-table th,
.branches-table th,
.rates-table th,
.results-table th,
.roles-table thead th,
.user-groups-roles-table thead th {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-label);
  background: var(--color-secondary-bg);
}
.tenants-table tr:last-child td,
.users-table tr:last-child td,
.user-groups-table tr:last-child td,
.branches-table tr:last-child td,
.results-table tbody tr:hover {
  background: transparent;
}
.results-table tbody tr:hover {
  background: var(--color-secondary-bg);
}
.tenants-table tr:last-child td,
.users-table tr:last-child td,
.user-groups-table tr:last-child td,
.branches-table tr:last-child td {
  border-bottom: none;
}
.roles-table tbody tr:last-child td,
.user-groups-roles-table tbody tr:last-child td {
  border-bottom: none;
}
.actions-col {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.actions-col button {
  margin-left: var(--space-1);
  padding: var(--space-1) 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-secondary-border);
  background: var(--color-secondary-bg);
  font-size: var(--text-xs);
  cursor: pointer;
}
.actions-col button:hover:not(:disabled) {
  background: var(--color-border);
}
.actions-col button:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.actions-col button.danger-btn {
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.actions-col button.danger-btn:hover:not(:disabled) {
  background: var(--color-danger-hover);
}
.actions-col button.danger-btn:focus-visible {
  border-color: var(--color-danger-border);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px rgba(185, 28, 28, 0.25);
}
.status-col {
  width: 1%;
  white-space: nowrap;
}
.input-wide {
  width: 100%;
  min-width: 18rem;
  box-sizing: border-box;
}
label span em {
  color: var(--color-danger);
  font-style: normal;
}
input[required],
select[required],
textarea[required] {
  border-color: var(--color-danger-border);
}
input,
select,
textarea {
  margin: 4px 0;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}
.form-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label,
.tenant-form label:not(.checkbox-row),
.user-form label:not(.checkbox-row),
.user-group-form label:not(.checkbox-row),
.branch-form label:not(.checkbox-row),
.rate-form label:not(.checkbox-row) {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.85rem;
  color: var(--color-text-label);
}
.tenant-form,
.user-form,
.user-group-form,
.branch-form,
.rate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 520px;
  flex: 1;
}
.tenant-form input,
.user-form input[type=text],
.user-form input[type=password],
.user-form select,
.user-group-form input[type=text],
.rate-form input[type=text],
.rate-form input[type=number],
.rate-form select,
.rate-form textarea {
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-family: inherit;
}
.rate-form textarea {
  resize: vertical;
  min-height: 3em;
}
.tenant-form .form-actions,
.user-form .form-actions,
.user-group-form .form-actions,
.branch-form .form-actions,
.rate-form .form-actions {
  margin-top: auto;
}
.content-fit-form .wizard-roles {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.content-fit-form .wizard-roles .form-actions {
  margin-top: auto;
}
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--color-text-label);
  font-weight: var(--font-weight-medium);
  min-height: 2rem;
}
.checkbox-row input[type=checkbox] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.checkbox-row input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 2px;
}
.checkbox-hint {
  margin: 0 0 0 calc(1.25rem + var(--space-3));
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: normal;
  line-height: 1.4;
}
.search-hint {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.search-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
}
.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.search-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}
.search-error {
  margin: var(--space-3) 0 0;
  color: var(--color-danger);
  font-size: var(--text-base);
}
.search-results {
  margin-top: var(--space-4);
}
.search-loading,
.search-empty {
  margin: 0;
  color: var(--color-text-muted);
}
.search-loading {
  font-weight: var(--font-weight-medium);
}
.search-empty {
  font-style: italic;
}
.error-banner {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
  font-size: 0.85rem;
}
.empty-text {
  margin: var(--space-1) 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.pager-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.nav {
  background: var(--color-sidebar-bg);
  color: white;
  padding: 12px 16px;
}
.nav a {
  color: white;
  margin-right: 12px;
  text-decoration: none;
}
.nav a.active {
  text-decoration: underline;
}
.container {
  padding: 16px;
}
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 12px;
  margin-bottom: 12px;
}
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.login-card {
  max-width: 420px;
}
.login-card label {
  display: block;
  margin-top: 8px;
}
.login-card input,
.login-card select {
  width: 100%;
  box-sizing: border-box;
}
.success {
  color: var(--color-success);
}
.error {
  color: var(--color-danger);
}

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