@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 */
