/* ITN EasyPMS - Enterprise SaaS Design System (INTERTECHNEEDS) */
:root {
  --itn-navy: #0f1e3d;
  --itn-navy-deep: #091328;
  --itn-electric: #0066ff;
  --itn-cyan: #00c2ff;
  --itn-bg: #f4f7fb;
  --itn-surface: #ffffff;
  --itn-border: #e2e8f0;
  --itn-text: #0f172a;
  --itn-muted: #64748b;
}

body {
  background-color: var(--itn-bg);
  color: var(--itn-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.92rem;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 264px;
  min-width: 264px;
  background: linear-gradient(180deg, var(--itn-navy) 0%, var(--itn-navy-deep) 100%);
  color: #cbd5e1;
  transition: margin-left 0.2s ease, width 0.2s ease;
  z-index: 1030;
}

.app-sidebar.collapsed {
  margin-left: -264px;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: -264px;
  }
  .app-sidebar.mobile-open {
    margin-left: 0;
  }
}

.sidebar-brand {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  padding: 1rem 1.25rem 0.35rem;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-link.active {
  background: rgba(0, 102, 255, 0.18);
  color: #ffffff;
  border-left-color: var(--itn-cyan);
}

.sidebar-link i {
  color: var(--itn-cyan);
  font-size: 1rem;
  width: 1.15rem;
  text-align: center;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: var(--itn-surface);
  border-bottom: 1px solid var(--itn-border);
  padding: 0.65rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.card-enterprise {
  background: var(--itn-surface);
  border: 1px solid var(--itn-border);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(15, 30, 61, 0.04);
}

.kpi-card {
  border-left: 4px solid var(--itn-electric);
}

.kpi-card.cyan { border-left-color: var(--itn-cyan); }
.kpi-card.navy { border-left-color: var(--itn-navy); }
.kpi-card.emerald { border-left-color: #10b981; }
.kpi-card.amber { border-left-color: #f59e0b; }

.btn-primary {
  background-color: var(--itn-electric);
  border-color: var(--itn-electric);
}

.btn-primary:hover {
  background-color: #0052cc;
  border-color: #0052cc;
}

.table > thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--itn-muted);
  background-color: #f8fafc;
  border-bottom-width: 1px;
  font-weight: 700;
}

.global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid var(--itn-border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 24px rgba(15, 30, 61, 0.12);
  max-height: 360px;
  overflow-y: auto;
}

.timeline-list {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 0.25rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--itn-electric);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--itn-cyan);
}

@media print {
  .no-print, .app-sidebar, .app-topbar {
    display: none !important;
  }
  .app-main {
    margin: 0 !important;
    padding: 0 !important;
  }
}
