@charset "UTF-8";
/* =====================================================
   🎨 Kanian Design Tokens – Single Source of Truth
===================================================== */
:root {
  /* ===== Layout ===== */
  --header-h: clamp(56px, 7vh, 84px);
  /* ===== Core Colors ===== */
  --primary: #0055a5;
  --primary-dark: #003d80;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --surface-hover: #e9ecef;
  --text: #212529;
  --text-muted: #6c757d;
  --heading: var(--text);
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  /* ===== Header ===== */
  --header-bg: #123B6A;
  --header-text: #ffffff;
  --accent-color: #0e2e52;
  /* ===== States ===== */
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;
  /* ===== Radius ===== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  /* ===== Shadows ===== */
  --elevation-low: 0 2px 6px rgba(0,0,0,0.05);
  --elevation-medium: 0 6px 16px rgba(0,0,0,0.08);
  --elevation-high: 0 12px 24px rgba(0,0,0,0.12);
  /* ===== Typography ===== */
  --font-size-base: 0.95rem;
  --font-size-sm: 0.85rem;
  /* ===== Spacing ===== */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xxl: 48px;
  /* ===== Buttons ===== */
  --btn-primary-bg: var(--primary);
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #6c757d;
  --btn-secondary-hover: #5a6775;
}

/* =====================================================
   🧠 Semantic Tokens – Usage Layer
===================================================== */
:root {
  /* Surfaces */
  --surface-page: var(--bg);
  --surface-card: var(--card-bg);
  --surface-muted: var(--surface-alt);
  /* Text */
  --text-body: var(--text);
  --text-heading: var(--heading);
  --text-muted-semantic: var(--text-muted);
  /* Borders */
  --border-default: var(--card-border);
  /* Focus */
  --focus-ring: var(--primary);
  /* ===== Status Tokens ===== */
  --status-open-bg: var(--surface-muted);
  --status-open-text: var(--text-heading);
  --status-progress-bg: #fff8e1;
  --status-progress-text: #b26a00;
  --status-review-bg: #ede7f6;
  --status-review-text: #4527a0;
  --status-closed-bg: #e8f5e9;
  --status-closed-text: #2e7d32;
  --status-cancelled-bg: #ffebee;
  --status-cancelled-text: #c62828;
  --status-archived-bg: var(--surface-muted);
  --status-archived-text: var(--text-muted);
}

/* ======================================================
   CORE LAYOUT
   Platform Domain
====================================================== */
.core-app {
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.core-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

.core-cockpit-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ======================================================
   CORE HEADER
   Platform Navigation
   Isolated from Tenant/Admin UI
====================================================== */
.core-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  color: var(--header-text);
  padding: 12px 24px;
  border-bottom: 4px solid var(--accent-color);
}

/* --------------------------------------------------
   Logo
-------------------------------------------------- */
.core-logo img {
  height: 34px;
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */
.core-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.core-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
}

.core-nav a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Logout
-------------------------------------------------- */
.core-logout-form {
  margin: 0;
}

.core-logout-btn {
  border: none;
  background: transparent;
  color: var(--header-text);
  font-weight: 600;
  cursor: pointer;
}

/* ======================================================
   CORE COCKPIT
   Platform Dashboard
====================================================== */
.core-cockpit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.core-cockpit-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

.info-text {
  font-size: 0.9rem;
  color: #6c757d;
}

/* --------------------------------------------------
   KPI Row
-------------------------------------------------- */
.core-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.core-kpi {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 600;
}

/* --------------------------------------------------
   Panels
-------------------------------------------------- */
.core-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.core-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.core-panel header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.core-action {
  padding: 8px 10px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #1f3b63;
  text-decoration: none;
}

.core-action:hover {
  background: #e9edf3;
}

/* ======================================================
   CORE AUDIT LOG PAGE
   Platform Domain
====================================================== */
.core-audit-log-page {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */
.core-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.core-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* --------------------------------------------------
   Toolbar
-------------------------------------------------- */
.core-audit-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.core-audit-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.core-label {
  font-weight: 500;
}

/* --------------------------------------------------
   Table Container
-------------------------------------------------- */
.core-audit-table-container {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px;
  overflow-x: auto;
}

/* --------------------------------------------------
   Table
-------------------------------------------------- */
.core-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.core-table th {
  text-align: left;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.core-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------
   Hover
-------------------------------------------------- */
.core-table tbody tr:hover {
  background: #f7f9fc;
}

/* --------------------------------------------------
   Action Badge
-------------------------------------------------- */
.core-action-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: #1f3b63;
  font-weight: 500;
}

/* --------------------------------------------------
   Pagination
-------------------------------------------------- */
.core-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.core-page-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.core-page-btn.active {
  background: #1f3b63;
  color: white;
}

/*# sourceMappingURL=core.css.map */

/* =====================================================
   Core Enterprise UI – Tenant Center
===================================================== */

.core-page {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.core-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  color: #f8fafc;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.core-page-header h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.core-eyebrow {
  margin: 0;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.core-muted {
  color: #64748b;
}

.core-page-header .core-muted {
  color: #cbd5e1;
}

.core-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.core-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.core-stat-card,
.core-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.core-stat-card {
  padding: 1.2rem;
}

.core-stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.core-stat-label {
  color: #475569;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.core-stat-card small {
  color: #64748b;
}

.core-card {
  overflow: hidden;
}

.core-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #f8fafc;
}

.core-card-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.core-card-header p {
  margin: 0.25rem 0 0;
  color: #64748b;
}

.core-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.core-field {
  display: grid;
  gap: 0.45rem;
}

.core-field span {
  color: #334155;
  font-weight: 800;
  font-size: 0.86rem;
}

.core-field input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  outline: none;
}

.core-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.core-form-actions {
  display: flex;
  align-items: end;
}

.core-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.core-btn:hover {
  transform: translateY(-1px);
}

.core-btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.core-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.24);
}

.core-btn-success {
  background: #16a34a;
  color: #fff;
}

.core-btn-warning {
  background: #f59e0b;
  color: #111827;
}

.core-btn-small {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.core-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.core-table {
  width: 100%;
  border-collapse: collapse;
}

.core-table th {
  padding: 0.9rem 1rem;
  background: #f8fafc;
  color: #475569;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.core-table td {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #0f172a;
  vertical-align: middle;
}

.core-table tr:hover td {
  background: #f8fafc;
}

.core-table-actions {
  text-align: right;
  white-space: nowrap;
}

.core-inline-form {
  display: inline-flex;
}

.core-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.core-badge-success {
  background: #dcfce7;
  color: #166534;
}

.core-badge-muted {
  background: #e2e8f0;
  color: #334155;
}

.core-empty {
  padding: 2rem !important;
  color: #64748b !important;
  text-align: center;
}

.core-pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.core-pagination a {
  min-width: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.core-pagination a.active {
  background: #2563eb;
  color: #fff;
}

.d-block {
  display: block;
}

@media (max-width: 900px) {
  .core-page-header,
  .core-card-header {
    flex-direction: column;
  }

  .core-stats-grid,
  .core-form-grid {
    grid-template-columns: 1fr;
  }

  .core-page-actions {
    width: 100%;
  }

  .core-page-actions .core-btn {
    flex: 1;
  }
}
