/*
 * Sazeh project management UI
 * RTL-first, dependency-free and print friendly.
 */

:root {
  color-scheme: light;
  --font-sans: Tahoma, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif;
  --navy-950: #071727;
  --navy-900: #0b2137;
  --navy-800: #12324e;
  --navy-700: #194565;
  --navy-600: #245d7e;
  --teal-700: #087d7a;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --red-700: #b42318;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --violet-700: #6d28d9;
  --violet-100: #ede9fe;
  --gray-950: #111827;
  --gray-900: #17212b;
  --gray-800: #263442;
  --gray-700: #3d4b59;
  --gray-600: #596776;
  --gray-500: #778391;
  --gray-400: #9aa5b1;
  --gray-300: #ccd3da;
  --gray-200: #e3e8ed;
  --gray-100: #f1f4f6;
  --gray-50: #f7f9fa;
  --white: #fff;
  --page-bg: #f3f6f8;
  --surface: #fff;
  --surface-muted: #f7f9fa;
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: #dfe5ea;
  --primary: var(--teal-700);
  --primary-hover: #066966;
  --primary-soft: #e2f5f2;
  --focus: rgba(13, 148, 136, 0.22);
  --shadow-xs: 0 1px 2px rgba(7, 23, 39, 0.05);
  --shadow-sm: 0 4px 14px rgba(7, 23, 39, 0.07);
  --shadow-md: 0 12px 32px rgba(7, 23, 39, 0.12);
  --shadow-lg: 0 24px 64px rgba(7, 23, 39, 0.2);
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --sidebar-width: 272px;
  --sidebar-collapsed: 82px;
  --topbar-height: 70px;
  --mobile-nav-height: 66px;
  --content-max: 1680px;
  --ease: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  direction: rtl;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
input[type="submit"]:not(:disabled) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

hr {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: var(--border);
}

::selection {
  background: var(--teal-100);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  color: #fff;
  transform: translate(50%, -140%);
  transition: transform var(--ease);
}

.skip-link:focus {
  color: #fff;
  transform: translate(50%, 0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ltr,
[dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
}

.tabular-nums,
.amount,
.number,
time {
  font-variant-numeric: tabular-nums;
}

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--green-700) !important; }
.text-warning { color: var(--amber-700) !important; }
.text-danger { color: var(--red-700) !important; }
.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.fw-bold { font-weight: 700 !important; }
.nowrap { white-space: nowrap !important; }
.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.spacer { flex: 1 1 auto; }
.w-100 { width: 100% !important; }
.mt-0 { margin-block-start: 0 !important; }
.mb-0 { margin-block-end: 0 !important; }
.hidden,
[hidden] { display: none !important; }

/* Application shell */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 800;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 5%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.82);
  box-shadow: -8px 0 30px rgba(7, 23, 39, 0.12);
  transition: width var(--ease), transform var(--ease);
}

.sidebar__brand,
.sidebar-brand {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-block-end: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}

.sidebar__brand:hover,
.sidebar-brand:hover { color: #fff; }

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.brand-mark img { width: 100%; height: 100%; }
.brand-copy { min-width: 0; line-height: 1.35; }
.brand-copy strong { display: block; font-size: 15px; }
.brand-copy small { color: rgba(255, 255, 255, 0.56); font-size: 11px; }

.sidebar__body,
.sidebar-nav {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px 11px;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.nav-section { margin-block-end: 18px; }
.nav-section__title,
.nav-label {
  display: block;
  padding: 4px 13px 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.nav-item { min-width: 0; }
.nav-link {
  position: relative;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.11));
  color: #fff;
  font-weight: 700;
}

.nav-link.is-active::before,
.nav-link[aria-current="page"]::before {
  position: absolute;
  inset-block: 9px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--teal-500);
  content: "";
}

.nav-icon,
.icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  line-height: 1;
}

.nav-icon svg,
.icon svg { width: 100%; height: 100%; }
.nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-counter {
  min-width: 21px;
  margin-inline-start: auto;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.sidebar__footer {
  padding: 11px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-user__copy { min-width: 0; line-height: 1.45; }
.sidebar-user__copy strong { display: block; overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__copy small { display: block; overflow: hidden; color: rgba(255, 255, 255, 0.5); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-backdrop {
  position: fixed;
  z-index: 790;
  inset: 0;
  display: none;
  border: 0;
  background: rgba(7, 23, 39, 0.58);
  backdrop-filter: blur(2px);
}

.app-main {
  min-height: 100vh;
  margin-inline-start: var(--sidebar-width);
  transition: margin var(--ease);
}

.topbar {
  position: sticky;
  z-index: 600;
  inset-block-start: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px, 2.4vw, 32px);
  border-block-end: 1px solid rgba(223, 229, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(14px);
}

.topbar__start,
.topbar__end {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar__end { margin-inline-start: auto; }
.topbar__title { min-width: 0; }
.topbar__title h1 { margin: 0; font-size: 16px; line-height: 1.4; }
.topbar__title small { color: var(--text-muted); font-size: 11px; }

.content,
.page-content {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 32px);
}

.sidebar-toggle { display: inline-grid; }

body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .app-main { margin-inline-start: var(--sidebar-collapsed); }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .nav-counter,
body.sidebar-collapsed .sidebar-user__copy { display: none; }
body.sidebar-collapsed .sidebar__brand,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .nav-link { justify-content: center; }
body.sidebar-collapsed .nav-link { padding-inline: 9px; }

/* Avatar, dropdown and topbar controls */
.avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--border);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.avatar--sm { width: 30px; height: 30px; flex-basis: 30px; }
.avatar--lg { width: 54px; height: 54px; flex-basis: 54px; font-size: 16px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.icon-btn {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--gray-700);
  transition: border var(--ease), background var(--ease), color var(--ease), transform var(--ease);
}

.icon-btn:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  color: var(--primary);
}

.icon-btn:active { transform: translateY(1px); }
.notification-dot {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red-600);
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: max-content;
  min-width: 210px;
  max-width: min(330px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity var(--ease), transform var(--ease);
}

.dropdown.is-open > .dropdown-menu,
.dropdown-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header { padding: 8px 10px; border-block-end: 1px solid var(--border); }
.dropdown-item {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-700);
  text-align: start;
}

.dropdown-item:hover { background: var(--gray-50); color: var(--gray-950); }
.dropdown-item.is-danger { color: var(--red-700); }
.dropdown-divider { height: 1px; margin: 6px 0; background: var(--border); }

/* Page headings and action bars */
.page-header {
  display: flex;
  margin-block-end: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-header__copy { min-width: 0; }
.page-header h1,
.page-title { margin: 0; color: var(--navy-900); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; }
.page-header p,
.page-subtitle { max-width: 780px; margin: 5px 0 0; color: var(--text-muted); }
.page-header__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }

.breadcrumb {
  display: flex;
  margin: 0 0 8px;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  list-style: none;
}

.breadcrumb li + li::before { margin-inline: 2px 7px; color: var(--gray-400); content: "/"; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.toolbar,
.filter-bar {
  display: flex;
  margin-block-end: 16px;
  padding: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.search-box {
  position: relative;
  min-width: min(100%, 230px);
  flex: 1 1 280px;
}

.search-box .form-control,
.search-box input { padding-inline-start: 42px; }
.search-box__icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  pointer-events: none;
  transform: translateY(-50%);
}

/* Grid and cards */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-12 { grid-column: 1 / -1; }

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.card--flat { box-shadow: none; }
.card--interactive { transition: border var(--ease), box-shadow var(--ease), transform var(--ease); }
.card--interactive:hover { border-color: #cbd5dc; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card__header {
  display: flex;
  min-height: 61px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-block-end: 1px solid var(--border);
}

.card__title { min-width: 0; }
.card__title h2,
.card__title h3,
.card__header > h2,
.card__header > h3 { margin: 0; color: var(--navy-900); font-size: 15px; }
.card__title p { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; }
.card__body { padding: 18px; }
.card__footer { padding: 13px 18px; border-block-start: 1px solid var(--border); background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.stat-grid {
  display: grid;
  margin-block-end: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 125px;
  padding: 18px;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stat-card::after {
  position: absolute;
  width: 78px;
  height: 78px;
  inset-block-end: -34px;
  inset-inline-end: -26px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.045;
}

.stat-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--teal-700);
}

.stat-card__icon svg { width: 23px; height: 23px; }
.stat-card__content { min-width: 0; flex: 1; }
.stat-card__label { display: block; margin-block-end: 5px; color: var(--text-muted); font-size: 12px; }
.stat-card__value { display: block; color: var(--navy-900); font-size: clamp(21px, 2.2vw, 28px); font-weight: 800; line-height: 1.25; }
.stat-card__meta { display: flex; margin-block-start: 7px; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }
.stat-card--success .stat-card__icon { background: var(--green-50); color: var(--green-700); }
.stat-card--warning .stat-card__icon { background: var(--amber-50); color: var(--amber-700); }
.stat-card--danger .stat-card__icon { background: var(--red-50); color: var(--red-700); }
.stat-card--info .stat-card__icon { background: var(--blue-50); color: var(--blue-700); }

.trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}
.trend--up { color: var(--green-700); }
.trend--down { color: var(--red-700); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .icon,
.btn svg { width: 17px; height: 17px; }
.btn--primary,
.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 5px 13px rgba(8, 125, 122, 0.16); }
.btn--primary:hover,
.btn-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.btn--secondary,
.btn-secondary { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn--secondary:hover,
.btn-secondary:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.btn--outline,
.btn-outline { border-color: var(--gray-300); background: var(--surface); color: var(--gray-700); }
.btn--outline:hover,
.btn-outline:hover { border-color: var(--primary); background: var(--teal-50); color: var(--primary); }
.btn--soft { border-color: transparent; background: var(--primary-soft); color: var(--teal-700); }
.btn--soft:hover { background: var(--teal-100); color: var(--teal-700); }
.btn--danger { border-color: var(--red-600); background: var(--red-600); color: #fff; }
.btn--danger:hover { border-color: var(--red-700); background: var(--red-700); color: #fff; }
.btn--danger-soft { background: var(--red-50); color: var(--red-700); }
.btn--danger-soft:hover { background: var(--red-100); color: var(--red-700); }
.btn--ghost { color: var(--gray-700); }
.btn--ghost:hover { background: var(--gray-100); color: var(--gray-950); }
.btn--sm { min-height: 32px; padding: 5px 10px; border-radius: 7px; font-size: 11px; }
.btn--lg { min-height: 48px; padding: 11px 20px; font-size: 13px; }
.btn--block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-block-start-color: #fff;
  border-radius: 50%;
  content: "";
  animation: spin 0.7s linear infinite;
}

/* Badges and progress */
.badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.72;
}

.badge--plain::before { display: none; }
.badge--success { background: var(--green-50); color: var(--green-700); border-color: #bbefca; }
.badge--warning { background: var(--amber-50); color: var(--amber-700); border-color: #fde3a7; }
.badge--danger { background: var(--red-50); color: var(--red-700); border-color: #fecaca; }
.badge--info { background: var(--blue-50); color: var(--blue-700); border-color: #bfdbfe; }
.badge--primary { background: var(--teal-50); color: var(--teal-700); border-color: #a7eee5; }
.badge--purple { background: #f5f3ff; color: var(--violet-700); border-color: var(--violet-100); }
.badge--neutral { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }

.progress-wrap { display: flex; align-items: center; gap: 9px; }
.progress {
  position: relative;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-100);
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(to left, var(--teal-600) 0 var(--progress, 0%), var(--gray-100) var(--progress, 0%) 100%);
}

.progress-bar > i {
  display: block;
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  transition: width 500ms ease;
}

.progress__bar {
  position: relative;
  width: var(--progress, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  transition: width 500ms ease;
}

.progress-bar--warning > i,
.progress-bar.is-warning > i { background: linear-gradient(90deg, var(--amber-600), var(--amber-500)); }
.progress-bar--danger > i,
.progress-bar.is-danger > i { background: linear-gradient(90deg, var(--red-700), var(--red-600)); }
.progress-bar--success > i,
.progress-bar.is-success > i { background: linear-gradient(90deg, var(--green-700), var(--green-600)); }
.progress-value { min-width: 38px; color: var(--text-muted); font-size: 10px; font-weight: 700; text-align: end; }
.progress--lg { height: 13px; }

/* Tables */
.table-wrap,
.table-responsive {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--gray-300) transparent;
  scrollbar-width: thin;
}

.data-table,
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--gray-800);
  font-size: 12px;
}

.data-table th,
.data-table td,
.table th,
.table td {
  padding: 12px 14px;
  border-block-end: 1px solid var(--border);
  text-align: start;
  vertical-align: middle;
}

.data-table th,
.table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.data-table thead.is-sticky th,
.data-table--sticky thead th { position: sticky; z-index: 2; inset-block-start: 0; }
.data-table tbody tr:last-child td,
.table tbody tr:last-child td { border-block-end: 0; }
.data-table tbody tr,
.table tbody tr { transition: background var(--ease); }
.data-table tbody tr:hover,
.table tbody tr:hover { background: #fbfcfd; }
.data-table tbody tr.is-selected { background: var(--teal-50); }
.data-table a:not(.btn) { font-weight: 700; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.table-actions .icon-btn { width: 33px; height: 33px; border-radius: 8px; }
.table-empty { padding: 34px !important; color: var(--text-muted); text-align: center !important; }

.pagination {
  display: flex;
  margin: 16px 0 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  list-style: none;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--gray-700);
  font-size: 11px;
}

.pagination .is-active,
.pagination [aria-current="page"] { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.field,
.form-group { grid-column: span 6; min-width: 0; }
.field--full,
.form-group--full { grid-column: 1 / -1; }
.field--third { grid-column: span 4; }
.field--quarter { grid-column: span 3; }

.field label,
.form-label {
  display: inline-block;
  margin-block-end: 6px;
  color: var(--gray-800);
  font-size: 11px;
  font-weight: 700;
}

.required::after,
label.required::after { margin-inline-start: 3px; color: var(--red-600); content: "*"; }
.form-control,
.form-select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  outline: 0;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(7, 23, 39, 0.025);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.form-control:hover,
.form-select:hover,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.field select:hover,
.field textarea:hover { border-color: var(--gray-400); }
.form-control:focus,
.form-select:focus,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--focus); }
.form-control::placeholder,
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }
.form-control:disabled,
.form-select:disabled,
.field input:disabled,
.field select:disabled,
.field textarea:disabled { background: var(--gray-100); }
.form-control.is-invalid,
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--red-600); }
.form-control.is-invalid:focus,
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
textarea.form-control,
.field textarea { min-height: 110px; resize: vertical; }
select.form-select,
.field select {
  padding-inline-end: 34px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%), linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
  background-position: calc(14px) calc(50% - 2px), calc(9px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field-help,
.form-text { display: block; margin-block-start: 5px; color: var(--text-muted); font-size: 10px; }
.field-error,
.invalid-feedback { display: block; margin-block-start: 5px; color: var(--red-700); font-size: 10px; }
.input-group { display: flex; }
.input-group > * { border-radius: 0 !important; }
.input-group > :first-child { border-start-start-radius: 9px !important; border-end-start-radius: 9px !important; }
.input-group > :last-child { border-start-end-radius: 9px !important; border-end-end-radius: 9px !important; }
.input-addon { display: flex; padding: 0 12px; align-items: center; border: 1px solid var(--gray-300); background: var(--gray-50); color: var(--text-muted); white-space: nowrap; }

.check,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gray-700);
  font-size: 12px;
}

.check input,
.radio input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 17px;
  accent-color: var(--teal-700);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 39px;
  height: 23px;
  flex: 0 0 39px;
  border-radius: 999px;
  background: var(--gray-300);
  transition: background var(--ease);
}
.switch__track::after {
  position: absolute;
  width: 17px;
  height: 17px;
  inset-block-start: 3px;
  inset-inline-end: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(7, 23, 39, 0.22);
  content: "";
  transition: transform var(--ease);
}
.switch input:checked + .switch__track { background: var(--teal-600); }
.switch input:checked + .switch__track::after { transform: translateX(-16px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }

.file-upload {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 20px;
  place-items: center;
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--text-muted);
  text-align: center;
  transition: border var(--ease), background var(--ease);
}
.file-upload:hover,
.file-upload.is-dragover { border-color: var(--teal-600); background: var(--teal-50); }
.file-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-upload__icon { width: 34px; height: 34px; margin-block-end: 6px; color: var(--teal-700); }
.file-preview,
.file-preview-list { display: grid; margin-block-start: 12px; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; }
.file-preview__item {
  position: relative;
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}
.file-preview__item img { display: block; width: 100%; height: 78px; margin-block-end: 6px; border-radius: 6px; object-fit: cover; }
.file-preview__name { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-preview__size { color: var(--text-muted); font-size: 9px; }
.file-preview__remove { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(7, 23, 39, 0.76); color: #fff; }

.form-actions {
  display: flex;
  margin-block-start: 22px;
  padding-block-start: 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-block-start: 1px solid var(--border);
}

.repeater {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repeater__head,
.repeater__item,
[data-repeater-item] {
  display: grid;
  grid-template-columns: repeat(var(--repeater-columns, 3), minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.repeater__head {
  padding-inline: 11px 51px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.repeater__item,
[data-repeater-item] {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--gray-50);
  animation: fade-in 180ms ease;
}

.repeater__remove,
[data-repeater-remove] {
  align-self: end;
}

.repeater__actions {
  display: flex;
  padding-block-start: 2px;
  justify-content: flex-start;
}

/* Tabs */
.tabs { min-width: 0; }
.tab-list {
  display: flex;
  margin: 0 0 18px;
  padding: 0;
  overflow-x: auto;
  border-block-end: 1px solid var(--border);
  scrollbar-width: none;
  list-style: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab,
.tab-button {
  position: relative;
  display: inline-flex;
  min-height: 45px;
  padding: 10px 15px;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tab::after,
.tab-button::after { position: absolute; height: 2px; inset-block-end: -1px; inset-inline: 13px; border-radius: 2px; background: var(--teal-600); content: ""; opacity: 0; transform: scaleX(0.5); transition: opacity var(--ease), transform var(--ease); }
.tab:hover,
.tab-button:hover { color: var(--gray-900); }
.tab.is-active,
.tab[aria-selected="true"],
.tab-button.is-active,
.tab-button[aria-selected="true"] { color: var(--teal-700); }
.tab.is-active::after,
.tab[aria-selected="true"]::after,
.tab-button.is-active::after,
.tab-button[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }
.tab-panel { animation: fade-in 180ms ease; }

/* Alerts, empty/error states */
.alert {
  display: flex;
  margin-block-end: 15px;
  padding: 12px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 12px;
}
.alert__icon { width: 19px; height: 19px; flex: 0 0 19px; }
.alert__content { min-width: 0; flex: 1; }
.alert__title { display: block; margin-block-end: 2px; color: currentColor; font-weight: 800; }
.alert--success { border-color: #b7e8c5; background: var(--green-50); color: var(--green-700); }
.alert--warning { border-color: #f9dc92; background: var(--amber-50); color: var(--amber-700); }
.alert--danger { border-color: #fecaca; background: var(--red-50); color: var(--red-700); }
.alert--info { border-color: #bfdbfe; background: var(--blue-50); color: var(--blue-700); }

.empty-state,
.error-state {
  display: grid;
  min-height: 250px;
  padding: 32px 18px;
  place-items: center;
  align-content: center;
  color: var(--text-muted);
  text-align: center;
}
.empty-state__icon,
.error-state__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-block-end: 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
}
.empty-state__icon svg,
.error-state__icon svg { width: 31px; height: 31px; }
.error-state__icon { background: var(--red-50); color: var(--red-700); }
.empty-state h2,
.empty-state h3,
.error-state h2,
.error-state h3 { margin: 0 0 5px; color: var(--gray-900); font-size: 16px; }
.empty-state p,
.error-state p { max-width: 430px; margin: 0 0 16px; }

.skeleton {
  border-radius: 7px;
  background: linear-gradient(90deg, var(--gray-100) 25%, #fafbfc 38%, var(--gray-100) 62%);
  background-size: 400% 100%;
  color: transparent !important;
  animation: skeleton 1.3s ease infinite;
}

/* Modals and drawers */
.modal {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(7, 23, 39, 0.62);
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__dialog,
.modal-dialog {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(15px) scale(0.985);
  transition: opacity var(--ease), transform var(--ease);
}
.modal.is-open .modal__dialog,
.modal.is-open .modal-dialog { opacity: 1; transform: translateY(0) scale(1); }
.modal--sm .modal__dialog,
.modal--sm .modal-dialog { max-width: 420px; }
.modal--lg .modal__dialog,
.modal--lg .modal-dialog { max-width: 820px; }
.modal--xl .modal__dialog,
.modal--xl .modal-dialog { max-width: 1120px; }
.modal__header,
.modal-header { display: flex; min-height: 60px; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 12px; border-block-end: 1px solid var(--border); }
.modal__header h2,
.modal__header h3,
.modal-header h2,
.modal-header h3 { margin: 0; font-size: 16px; }
.modal__body,
.modal-body { padding: 19px; }
.modal__footer,
.modal-footer { display: flex; padding: 13px 18px; align-items: center; justify-content: flex-end; gap: 8px; border-block-start: 1px solid var(--border); background: var(--gray-50); }

.drawer {
  position: fixed;
  z-index: 1450;
  inset: 0;
  background: rgba(7, 23, 39, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  width: min(470px, 94vw);
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform var(--ease);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__header { display: flex; min-height: 66px; padding: 14px 18px; align-items: center; justify-content: space-between; border-block-end: 1px solid var(--border); }
.drawer__body { flex: 1; padding: 18px; overflow-y: auto; }
.drawer__footer { padding: 13px 18px; border-block-start: 1px solid var(--border); }

/* Toasts */
.toast-container {
  position: fixed;
  z-index: 2000;
  inset-block-start: calc(var(--topbar-height) + 14px);
  inset-inline-end: 18px;
  display: flex;
  width: min(370px, calc(100vw - 32px));
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  display: flex;
  min-height: 62px;
  padding: 12px 13px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(-18px);
  transition: opacity var(--ease), transform var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(0); }
.toast.is-leaving { opacity: 0; transform: translateX(-12px); }
.toast__icon { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.toast__content { min-width: 0; flex: 1; }
.toast__title { display: block; color: var(--gray-900); font-size: 12px; font-weight: 800; }
.toast__message { display: block; color: var(--text-muted); font-size: 10px; }
.toast__close { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--gray-500); }
.toast--success { border-inline-start-color: var(--green-600); }
.toast--success .toast__icon { background: var(--green-50); color: var(--green-700); }
.toast--warning { border-inline-start-color: var(--amber-500); }
.toast--warning .toast__icon { background: var(--amber-50); color: var(--amber-700); }
.toast--danger { border-inline-start-color: var(--red-600); }
.toast--danger .toast__icon { background: var(--red-50); color: var(--red-700); }
.toast--info { border-inline-start-color: var(--blue-700); }
.toast--info .toast__icon { background: var(--blue-50); color: var(--blue-700); }

/* Charts */
.chart {
  position: relative;
  width: 100%;
  min-height: 270px;
}
.chart canvas { display: block; width: 100%; height: 270px; }
.chart--sm,
.chart--sm canvas { min-height: 190px; height: 190px; }
.chart-legend { display: flex; margin-block-start: 12px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.chart-legend__item { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }
.chart-legend__color { width: 9px; height: 9px; border-radius: 3px; }

.chart-bars {
  display: flex;
  min-height: 230px;
  padding: 18px 10px 28px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  border-block-end: 1px solid var(--border);
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 44px, var(--gray-100) 45px);
}
.chart-bar {
  position: relative;
  width: min(34px, 8%);
  height: var(--value, 0%);
  min-height: 2px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  transition: height 450ms ease, filter var(--ease);
}
.chart-bar:hover { filter: brightness(0.92); }
.chart-bar::before { position: absolute; inset-block-start: -23px; inset-inline-start: 50%; color: var(--gray-700); content: attr(data-value); font-size: 9px; font-weight: 700; transform: translateX(50%); }
.chart-bar::after { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 50%; width: 64px; color: var(--text-muted); content: attr(data-label); font-size: 9px; text-align: center; transform: translateX(50%); }

.donut {
  --value: 0;
  --donut-color: var(--teal-600);
  position: relative;
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--donut-color) calc(var(--value) * 1%), var(--gray-100) 0);
}
.donut::before { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); content: ""; }
.donut__value { position: relative; z-index: 1; color: var(--navy-900); font-size: 23px; font-weight: 800; }

/* Project and activity components */
.project-card__image { position: relative; height: 145px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(135deg, var(--navy-800), var(--teal-700)); }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; }
.project-card__image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 23, 39, 0.56)); content: ""; }
.project-card__status { position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-start: 12px; }
.project-card__code { color: var(--text-muted); font-size: 10px; }
.project-card__title { margin: 3px 0 13px; color: var(--navy-900); font-size: 15px; }
.project-meta { display: grid; margin: 14px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-meta__item { min-width: 0; }
.project-meta__item small { display: block; color: var(--text-muted); font-size: 9px; }
.project-meta__item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.timeline { position: relative; margin: 0; padding: 4px 27px 4px 0; list-style: none; }
.timeline::before { position: absolute; width: 2px; inset-block: 12px; inset-inline-start: 8px; background: var(--gray-200); content: ""; }
.timeline__item { position: relative; padding-block-end: 19px; }
.timeline__item::before { position: absolute; width: 12px; height: 12px; inset-block-start: 5px; inset-inline-start: -25px; border: 3px solid var(--surface); border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600); content: ""; }
.timeline__item:last-child { padding-block-end: 0; }
.timeline__title { margin: 0; font-size: 12px; }
.timeline__meta { color: var(--text-muted); font-size: 9px; }

.approval-flow { display: flex; padding: 10px 0; align-items: flex-start; overflow-x: auto; }
.approval-step { position: relative; min-width: 125px; flex: 1; color: var(--text-muted); text-align: center; }
.approval-step:not(:last-child)::after { position: absolute; z-index: 0; height: 2px; inset-block-start: 16px; inset-inline: 52% -48%; background: var(--gray-200); content: ""; }
.approval-step__dot { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; margin: 0 auto 7px; place-items: center; border: 2px solid var(--gray-300); border-radius: 50%; background: var(--surface); color: var(--gray-500); font-size: 11px; font-weight: 800; }
.approval-step.is-complete .approval-step__dot { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.approval-step.is-complete:not(:last-child)::after { background: var(--green-600); }
.approval-step.is-current .approval-step__dot { border-color: var(--teal-600); color: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-100); }
.approval-step strong { display: block; color: var(--gray-800); font-size: 10px; }
.approval-step small { font-size: 9px; }

/* Gantt */
.gantt {
  --gantt-row-height: 44px;
  --gantt-label-width: 260px;
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: var(--gantt-label-width) minmax(720px, 1fr);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-color: var(--gray-300) transparent;
  scrollbar-width: thin;
  cursor: grab;
}
.gantt.is-dragging { cursor: grabbing; user-select: none; }
.gantt__labels { position: sticky; z-index: 4; inset-inline-start: 0; border-inline-end: 1px solid var(--border); background: var(--surface); box-shadow: -6px 0 10px rgba(7, 23, 39, 0.04); }
.gantt__header,
.gantt__label,
.gantt__row { min-height: var(--gantt-row-height); border-block-end: 1px solid var(--border); }
.gantt__header { position: sticky; z-index: 3; inset-block-start: 0; display: flex; align-items: center; background: var(--gray-50); color: var(--gray-600); font-size: 10px; font-weight: 800; }
.gantt__label { display: flex; padding: 8px 12px; align-items: center; gap: 7px; }
.gantt__label:last-child,
.gantt__row:last-child { border-block-end: 0; }
.gantt__label-title { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gantt__timeline { position: relative; min-width: 720px; background-image: repeating-linear-gradient(to left, transparent 0, transparent calc(var(--day-width, 38px) - 1px), var(--gray-100) var(--day-width, 38px)); }
.gantt__months { display: flex; width: 100%; }
.gantt__month { display: flex; height: var(--gantt-row-height); flex: var(--days, 30); align-items: center; justify-content: center; border-inline-end: 1px solid var(--border); }
.gantt__row { position: relative; }
.gantt__row.is-today::after { position: absolute; z-index: 1; width: 2px; inset-block: 0; inset-inline-start: var(--today, 50%); background: rgba(220, 38, 38, 0.34); content: ""; }
.gantt__bar {
  position: absolute;
  z-index: 2;
  height: 24px;
  inset-block-start: 10px;
  inset-inline-start: var(--start, 0%);
  width: var(--duration, 20%);
  min-width: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy-700);
  box-shadow: 0 2px 5px rgba(7, 23, 39, 0.15);
  color: #fff;
  font-size: 9px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}
.gantt__bar::before { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: var(--progress, 0%); background: var(--teal-500); content: ""; }
.gantt__bar--delayed { background: var(--red-700); }
.gantt__bar--delayed::before { background: var(--red-600); }
.gantt__bar--complete { background: var(--green-700); }
.gantt__bar--complete::before { background: var(--green-600); }
.gantt__bar--baseline { height: 5px; inset-block-start: 34px; border-radius: 2px; background: var(--gray-400); box-shadow: none; opacity: 0.8; }
.gantt__controls { display: flex; margin-block-end: 10px; align-items: center; justify-content: flex-end; gap: 6px; }

/* Login */
.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.45fr);
  background: var(--surface);
}
.auth-panel { display: flex; padding: clamp(28px, 5vw, 72px); align-items: center; justify-content: center; }
.auth-form { width: min(100%, 420px); }
.auth-brand { display: flex; margin-block-end: 38px; align-items: center; gap: 12px; color: var(--navy-900); }
.auth-title { margin: 0 0 8px; color: var(--navy-900); font-size: clamp(24px, 3vw, 33px); }
.auth-subtitle { margin: 0 0 28px; color: var(--text-muted); }
.auth-aside {
  position: relative;
  display: flex;
  padding: clamp(40px, 6vw, 86px);
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 23, 39, 0.14), rgba(7, 23, 39, 0.86)),
    linear-gradient(135deg, var(--navy-800), var(--teal-700));
  color: #fff;
}
.auth-aside::before,
.auth-aside::after { position: absolute; border: 1px solid rgba(255, 255, 255, 0.12); content: ""; transform: rotate(28deg); }
.auth-aside::before { width: 480px; height: 480px; inset-block-start: -190px; inset-inline-start: -80px; }
.auth-aside::after { width: 310px; height: 310px; inset-block-start: -90px; inset-inline-start: 30px; }
.auth-aside__content { position: relative; z-index: 1; max-width: 620px; }
.auth-aside h2 { margin: 0 0 11px; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.4; }
.auth-aside p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.password-field { position: relative; }
.password-field .form-control { padding-inline-end: 45px; }
.password-toggle { position: absolute; inset-block-start: 50%; inset-inline-end: 7px; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--gray-500); transform: translateY(-50%); }

/* KPI and detail lists */
.kpi-list,
.detail-list { margin: 0; padding: 0; list-style: none; }
.kpi-list__item,
.detail-list__item { display: flex; padding: 11px 0; align-items: center; justify-content: space-between; gap: 14px; border-block-end: 1px solid var(--border); }
.kpi-list__item:last-child,
.detail-list__item:last-child { border-block-end: 0; }
.detail-list__label { color: var(--text-muted); font-size: 11px; }
.detail-list__value { font-size: 11px; font-weight: 700; text-align: end; }

.mobile-nav { display: none; }

/* PHP template compatibility and domain-specific compositions */
.mobile-only,
.mobile-bottom-nav { display: none; }

.brand {
  display: flex;
  min-height: var(--topbar-height);
  padding: 12px 18px;
  align-items: center;
  gap: 12px;
  border-block-end: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}
.brand:hover { color: #fff; }
.brand > span:last-child { min-width: 0; line-height: 1.35; }
.brand strong,
.brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 15px; }
.brand small { color: rgba(255, 255, 255, 0.54); font-size: 10px; }

.sidebar-nav > .nav-item {
  position: relative;
  display: flex;
  min-height: 43px;
  margin-block-end: 4px;
  padding: 9px 12px;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: color var(--ease), background var(--ease);
}
.sidebar-nav > .nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sidebar-nav > .nav-item.is-active {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.1));
  color: #fff;
  font-weight: 700;
}
.sidebar-nav > .nav-item.is-active::before {
  position: absolute;
  width: 3px;
  inset-block: 9px;
  inset-inline-start: 0;
  border-radius: 3px;
  background: var(--teal-500);
  content: "";
}
.sidebar-foot {
  display: flex;
  margin: 11px;
  padding: 10px 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-foot > span:last-child { min-width: 0; line-height: 1.35; }
.sidebar-foot strong,
.sidebar-foot small { display: block; white-space: nowrap; }
.sidebar-foot strong { color: #fff; font-size: 10px; }
.sidebar-foot small { color: rgba(255, 255, 255, 0.45); font-size: 9px; }
.system-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
body.sidebar-collapsed .sidebar .brand > span:last-child,
body.sidebar-collapsed .sidebar-nav > .nav-label,
body.sidebar-collapsed .sidebar-nav > .nav-item > span:last-child,
body.sidebar-collapsed .sidebar-foot > span:last-child { display: none; }
body.sidebar-collapsed .sidebar .brand,
body.sidebar-collapsed .sidebar-nav > .nav-item,
body.sidebar-collapsed .sidebar-foot { justify-content: center; }
body.sidebar-collapsed .sidebar-nav > .nav-item { padding-inline: 9px; }

.project-switcher { display: flex; align-items: center; gap: 8px; }
.project-switcher label { color: var(--text-muted); font-size: 10px; font-weight: 700; }
.project-switcher select,
.toolbar select,
.toolbar input,
.field-inline select,
.field-inline input {
  min-height: 39px;
  padding: 7px 11px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
}
.project-switcher select:focus,
.toolbar select:focus,
.toolbar input:focus,
.field-inline select:focus,
.field-inline input:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--focus); }
.project-switcher select { width: min(29vw, 280px); }
.topbar-actions { display: flex; margin-inline-start: auto; align-items: center; gap: 9px; }
.notification-btn { font-size: 21px; }
.notification-count {
  position: absolute;
  min-width: 18px;
  height: 18px;
  inset-block-start: -5px;
  inset-inline-start: -6px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--red-600);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}
.user-menu { position: relative; }
.user-trigger {
  display: flex;
  min-height: 45px;
  padding: 4px 7px 4px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.user-copy { min-width: 95px; line-height: 1.35; text-align: start; }
.user-copy strong,
.user-copy small { display: block; overflow: hidden; max-width: 140px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 10px; }
.user-copy small { color: var(--text-muted); font-size: 9px; }
.user-menu .dropdown-menu > a,
.user-menu .dropdown-menu form button {
  display: flex;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-700);
  font-size: 11px;
  text-align: start;
}
.user-menu .dropdown-menu > a:hover,
.user-menu .dropdown-menu form button:hover { background: var(--gray-50); color: var(--gray-950); }

.page-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: block; margin-block-end: 5px; color: var(--teal-700); font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }
.back-link { display: inline-flex; margin-block-end: 7px; color: var(--text-muted); font-size: 10px; }
.back-link:hover { color: var(--primary); }
.title-with-badge { display: flex; align-items: center; gap: 10px; }
.title-with-badge h1 { margin: 0; }

.card-header {
  display: flex;
  min-height: 61px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-block-end: 1px solid var(--border);
}
.card-header h2,
.card-header h3 { margin: 0; color: var(--navy-900); font-size: 14px; }
.card-header p { margin: 2px 0 0; color: var(--text-muted); font-size: 10px; }
.card-header > a:not(.btn) { font-size: 10px; font-weight: 700; }

.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.btn-secondary { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn-secondary:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.btn-success { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.btn-success:hover { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.btn-danger { border-color: var(--red-600); background: var(--red-600); color: #fff; }
.btn-danger:hover { border-color: var(--red-700); background: var(--red-700); color: #fff; }
.btn-ghost { color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-950); }
.btn-sm { min-height: 32px; padding: 5px 10px; border-radius: 7px; font-size: 10px; }
.btn-lg { min-height: 48px; padding: 11px 20px; font-size: 13px; }
.btn-block { width: 100%; }

.badge-success { border-color: #bbefca; background: var(--green-50); color: var(--green-700); }
.badge-warning { border-color: #fde3a7; background: var(--amber-50); color: var(--amber-700); }
.badge-danger,
.badge-error { border-color: #fecaca; background: var(--red-50); color: var(--red-700); }
.badge-info { border-color: #bfdbfe; background: var(--blue-50); color: var(--blue-700); }
.badge-primary { border-color: #a7eee5; background: var(--teal-50); color: var(--teal-700); }
.alert-error { border-color: #fecaca; background: var(--red-50); color: var(--red-700); }
.alert-success { border-color: #b7e8c5; background: var(--green-50); color: var(--green-700); }
.alert-warning { border-color: #f9dc92; background: var(--amber-50); color: var(--amber-700); }
.alert > [data-dismiss] { width: 25px; height: 25px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 6px; background: transparent; color: currentColor; }

.stats-grid { display: grid; margin-block-end: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { color: var(--gray-800); }
.stat-card:hover { color: var(--gray-800); border-color: #cbd5dc; box-shadow: var(--shadow-sm); }
.stat-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 20px;
}
.stat-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.stat-copy > small { margin-block-end: 3px; color: var(--text-muted); font-size: 10px; }
.stat-copy > strong { color: var(--navy-900); font-size: clamp(21px, 2.2vw, 28px); font-weight: 800; line-height: 1.25; }
.stat-copy > strong em { margin-inline-start: 5px; color: var(--text-muted); font-size: 9px; font-style: normal; font-weight: 500; }
.stat-note { margin-block-start: 6px; color: var(--text-muted); font-size: 9px; }
.stat-accent-teal { border-block-start: 3px solid var(--teal-500); }
.stat-accent-teal .stat-icon { background: var(--teal-50); color: var(--teal-700); }
.stat-accent-amber { border-block-start: 3px solid var(--amber-500); }
.stat-accent-amber .stat-icon { background: var(--amber-50); color: var(--amber-700); }
.stat-accent-red { border-block-start: 3px solid var(--red-600); }
.stat-accent-red .stat-icon { background: var(--red-50); color: var(--red-700); }
.stat-accent-blue { border-block-start: 3px solid var(--blue-700); }
.mini-progress { width: 100%; height: 6px; margin-block-start: 9px; overflow: hidden; border-radius: 99px; background: var(--gray-100); }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal-600); }

.dashboard-main-grid { grid-template-columns: minmax(0, 2fr) minmax(270px, 0.8fr); margin-block-end: 18px; }
.dashboard-attention-grid,
.project-overview-grid,
.project-lists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-end: 18px; }
.project-health-list,
.attention-list,
.compact-list { display: flex; flex-direction: column; }
.project-health-row {
  display: grid;
  min-height: 69px;
  padding: 10px 16px;
  grid-template-columns: 76px minmax(155px, 1fr) minmax(105px, 0.65fr) minmax(105px, 0.65fr) auto;
  align-items: center;
  gap: 12px;
  border-block-end: 1px solid var(--border);
  color: var(--gray-800);
}
.project-health-row:last-child { border-block-end: 0; }
.project-health-row:hover { background: var(--gray-50); color: var(--gray-900); }
.project-code,
.request-code { color: var(--teal-700); font-size: 9px; font-weight: 800; }
.project-main { min-width: 0; }
.project-main strong,
.project-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-main strong { font-size: 11px; }
.project-main small { color: var(--text-muted); font-size: 9px; }
.health-metric small,
.health-metric strong { display: block; }
.health-metric small { color: var(--text-muted); font-size: 8px; }
.health-metric strong { margin-block-end: 4px; font-size: 10px; }

.budget-card { padding-block-end: 14px; }
.budget-ring {
  position: relative;
  display: grid;
  width: 154px;
  margin: 23px auto 15px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--amber-500) calc(var(--value) * 1%), var(--gray-100) 0);
}
.budget-ring::before { position: absolute; width: 73%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); content: ""; }
.budget-ring > div { position: relative; z-index: 1; text-align: center; }
.budget-ring strong,
.budget-ring span { display: block; }
.budget-ring strong { color: var(--navy-900); font-size: 22px; }
.budget-ring span { color: var(--text-muted); font-size: 9px; }
.budget-values { margin: 0; padding: 0 18px; }
.budget-values > div { display: flex; padding: 8px 0; justify-content: space-between; gap: 10px; border-block-end: 1px dashed var(--border); }
.budget-values > div:last-child { border: 0; }
.budget-values dt { color: var(--text-muted); font-size: 9px; }
.budget-values dd { margin: 0; font-size: 10px; font-weight: 700; }
.counter-chip { display: grid; min-width: 27px; height: 27px; padding: 0 7px; place-items: center; border-radius: 99px; background: var(--amber-100); color: var(--amber-700); font-size: 10px; font-weight: 800; }
.attention-list > a,
.compact-list > a {
  display: flex;
  min-height: 65px;
  padding: 11px 16px;
  align-items: center;
  gap: 10px;
  border-block-end: 1px solid var(--border);
  color: var(--gray-800);
}
.attention-list > a:last-child,
.compact-list > a:last-child { border-block-end: 0; }
.attention-list > a:hover,
.compact-list > a:hover { background: var(--gray-50); color: var(--gray-900); }
.attention-list > a > span:not(.attention-icon):not(.badge),
.compact-list > a > span:not(.attention-icon):not(.badge):first-child { min-width: 0; flex: 1; }
.attention-list strong,
.attention-list small,
.compact-list strong,
.compact-list small { display: block; }
.attention-list strong,
.compact-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-list small,
.compact-list small { color: var(--text-muted); font-size: 9px; }
.attention-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 9px; background: var(--amber-50); color: var(--amber-700); }
.attention-icon.is-danger { background: var(--red-50); color: var(--red-700); }
.attention-icon.is-warning { background: var(--amber-50); color: var(--amber-700); }
.mini-empty { padding: 28px 16px; color: var(--text-muted); font-size: 10px; text-align: center; }
.delayed-card { margin-block-start: 18px; }
.table-sub { display: block; color: var(--text-muted); font-size: 9px; }
.compact-progress { display: grid; min-width: 82px; grid-template-columns: minmax(45px, 1fr) auto; align-items: center; gap: 5px; }
.compact-progress > i { height: 6px; overflow: hidden; border-radius: 99px; background: var(--teal-600); }
.compact-progress > i::before { display: block; width: calc(100% - 100%); height: 100%; content: ""; }
.compact-progress > b { color: var(--text-muted); font-size: 8px; }
.row-action { padding: 5px 8px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.row-action:hover { background: var(--teal-50); }

.filter-pills,
.section-tabs {
  display: flex;
  margin-block-end: 15px;
  padding: 4px;
  overflow-x: auto;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar,
.section-tabs::-webkit-scrollbar { display: none; }
.filter-pills a,
.section-tabs a { display: inline-flex; min-height: 35px; padding: 7px 12px; align-items: center; gap: 6px; border-radius: 7px; color: var(--text-muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.filter-pills a:hover,
.section-tabs a:hover { background: var(--gray-50); color: var(--gray-900); }
.filter-pills a.is-active,
.section-tabs a.is-active { background: var(--navy-800); color: #fff; }
.filter-pills b { display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 99px; background: rgba(255, 255, 255, 0.15); font-size: 8px; }
.toolbar-spacer { flex: 1 1 auto; }
.field-inline { display: flex; align-items: center; gap: 7px; }
.field-inline label { color: var(--text-muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.toolbar .search-box > span { position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-start: 13px; color: var(--gray-500); transform: translateY(-50%); }
.toolbar .search-box input { width: 100%; padding-inline-start: 38px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-height: 340px; padding: 17px; flex-direction: column; }
.project-card-top { display: flex; align-items: center; gap: 10px; }
.project-card-top > div:nth-child(2) { min-width: 0; flex: 1; }
.project-card-top > div:nth-child(2) small { display: block; margin-block-start: 3px; color: var(--text-muted); font-size: 9px; }
.project-monogram { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, var(--navy-700), var(--teal-700)); color: #fff; font-size: 18px; font-weight: 800; }
.project-monogram-lg { width: 64px; height: 64px; flex-basis: 64px; border-radius: 16px; font-size: 25px; }
.project-card-title { display: block; margin-block: 15px 12px; color: var(--gray-800); }
.project-card-title:hover { color: var(--gray-800); }
.project-card-title h2 { margin: 0 0 4px; color: var(--navy-900); font-size: 15px; }
.project-card-title p { display: -webkit-box; min-height: 38px; margin: 0; overflow: hidden; color: var(--text-muted); font-size: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-progress-head { display: flex; margin-block-end: 5px; justify-content: space-between; color: var(--text-muted); font-size: 9px; }
.project-progress-head strong { color: var(--gray-800); }
.progress-lg { height: 11px; }
.project-card-metrics { display: grid; margin-block: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.project-card-metrics > div { min-width: 0; padding: 8px; border-radius: 8px; background: var(--gray-50); }
.project-card-metrics small,
.project-card-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-metrics small { color: var(--text-muted); font-size: 8px; }
.project-card-metrics strong { margin-block-start: 2px; font-size: 9px; }
.project-card-alerts { display: flex; margin-block-end: 13px; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 9px; }
.project-card-footer { display: flex; margin: auto -17px -17px; padding: 12px 17px; align-items: center; gap: 13px; border-block-start: 1px solid var(--border); background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.project-card-footer a { color: var(--text-muted); font-size: 9px; }
.project-card-footer .primary-link { margin-inline-start: auto; color: var(--teal-700); font-weight: 800; }

.project-hero { display: flex; margin-block-end: 14px; padding: 22px; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; background: linear-gradient(115deg, #fff 66%, var(--teal-50)); }
.project-hero-main { display: flex; min-width: 0; align-items: center; gap: 15px; }
.project-kicker { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 9px; }
.project-hero h1 { margin: 5px 0 2px; color: var(--navy-900); font-size: clamp(20px, 2.3vw, 28px); }
.project-hero p { margin: 0; color: var(--text-muted); font-size: 11px; }
.project-stats { margin-block-end: 18px; }
.date-strong { margin-block: 6px 3px; font-size: 16px !important; }
.overview-bars { padding: 18px 18px 4px; }
.overview-bars > div { margin-block-end: 15px; }
.overview-bars > div > span { display: flex; margin-block-end: 6px; justify-content: space-between; font-size: 10px; }
.overview-bars em { color: var(--text-muted); font-style: normal; }
.info-grid { display: grid; margin: 0; padding: 10px 18px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.info-grid > div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.info-grid dt { color: var(--text-muted); font-size: 8px; }
.info-grid dd { margin: 3px 0 0; font-size: 10px; font-weight: 700; }
.member-list { padding: 7px 18px 14px; }
.member-list > div { display: flex; padding: 9px 0; align-items: center; gap: 9px; border-block-end: 1px solid var(--border); }
.member-list > div:last-child { border: 0; }
.member-list strong,
.member-list small { display: block; }
.member-list strong { font-size: 10px; }
.member-list small { color: var(--text-muted); font-size: 8px; }
.danger-zone { display: flex; margin-block-start: 18px; padding: 17px 18px; align-items: center; justify-content: space-between; gap: 18px; border-color: #fecaca; background: var(--red-50); }
.danger-zone h2 { margin: 0 0 3px; color: var(--red-700); font-size: 13px; }
.danger-zone p { margin: 0; color: #8b3c35; font-size: 10px; }

.form-section { margin-block-end: 15px; padding: 18px; }
.section-heading { display: flex; margin: -3px 0 18px; padding-block-end: 13px; align-items: center; gap: 11px; border-block-end: 1px solid var(--border); }
.section-heading > span:first-child { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--teal-700); font-size: 11px; font-weight: 800; }
.section-heading > div { min-width: 0; flex: 1; }
.section-heading h2 { margin: 0; color: var(--navy-900); font-size: 14px; }
.section-heading p { margin: 1px 0 0; color: var(--text-muted); font-size: 9px; }
.form-grid > .col-2 { grid-column: span 2; }
.form-grid > .col-3 { grid-column: span 3; }
.form-grid > .col-4 { grid-column: span 4; }
.form-grid > .col-5 { grid-column: span 5; }
.form-grid > .col-6 { grid-column: span 6; }
.form-grid > .col-7 { grid-column: span 7; }
.form-grid > .col-8 { grid-column: span 8; }
.form-grid > .col-12 { grid-column: 1 / -1; }
.field { position: relative; }
.field > small { display: block; margin-block-start: 4px; color: var(--text-muted); font-size: 9px; }
.input-suffix { position: absolute; inset-block-end: 11px; inset-inline-start: 12px; color: var(--text-muted); font-size: 10px; pointer-events: none; }
.field:has(.input-suffix) input { padding-inline-start: 32px !important; }
.entity-form { max-width: 1180px; margin-inline: auto; }
.form-actions-sticky { position: sticky; z-index: 30; inset-block-end: 0; display: flex; margin-block-start: 16px; padding: 12px 15px; align-items: center; justify-content: flex-end; gap: 8px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, 0.94); box-shadow: 0 -8px 24px rgba(7, 23, 39, 0.08); backdrop-filter: blur(12px); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.narrow-form { max-width: 560px; padding: 18px; }
.team-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.team-option { display: grid; padding: 10px; grid-template-columns: auto auto minmax(0, 1fr) minmax(105px, 0.65fr); align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--gray-50); }
.team-option > input { width: 16px; height: 16px; accent-color: var(--teal-700); }
.team-option strong,
.team-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-option strong { font-size: 10px; }
.team-option small { color: var(--text-muted); font-size: 8px; }
.team-option select { min-width: 0; min-height: 36px; border: 1px solid var(--gray-300); border-radius: 7px; background: #fff; font-size: 9px; }

.file-drop {
  position: relative;
  display: grid;
  min-height: 155px;
  padding: 22px;
  place-items: center;
  border: 1.5px dashed var(--gray-300);
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--text-muted);
  text-align: center;
  transition: border var(--ease), background var(--ease);
}
.file-drop:hover,
.file-drop.is-dragover { border-color: var(--teal-600); background: var(--teal-50); }
.file-drop > input[type="file"] { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-icon { display: grid; width: 42px; height: 42px; margin-block-end: 5px; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--teal-700); font-size: 20px; }
.file-drop > strong { color: var(--gray-800); font-size: 11px; }
.file-drop > small { font-size: 9px; }
[data-file-preview] { position: relative; z-index: 2; display: grid; width: 100%; margin-block-start: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; text-align: start; }
.repeater-row.form-grid,
[data-repeater-item].repeater-row.form-grid { display: grid; padding: 11px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--gray-50); }
.repeater-row .repeater-remove { grid-column: span 1; width: 38px; height: 42px; padding: 0; align-self: end; border: 1px solid #fecaca; border-radius: 8px; background: var(--red-50); color: var(--red-700); font-size: 19px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 9px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.dot-success { background: var(--green-600); }
.dot-warning { background: var(--amber-500); }
.dot-danger { background: var(--red-600); }
.dot-blue { background: var(--blue-700); }
.wbs-title-col { min-width: 280px; }
.wbs-title { display: flex; padding-inline-start: calc(var(--depth, 0) * 18px); align-items: center; gap: 8px; }
.wbs-title::before { width: 9px; height: 1px; flex: 0 0 9px; background: var(--gray-300); content: ""; }
.wbs-code { display: inline-flex; min-width: 46px; padding: 3px 6px; justify-content: center; border-radius: 5px; background: var(--gray-100); color: var(--teal-700); font-size: 8px; font-weight: 800; }
.wbs-title a strong,
.wbs-title a small { display: block; }
.wbs-title a strong { color: var(--gray-900); font-size: 10px; }
.wbs-title a small { color: var(--text-muted); font-size: 8px; }
.date-range { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.date-range b { font-size: 9px; font-weight: 600; }
.date-range i { color: var(--gray-400); font-style: normal; }
.empty-state.compact { min-height: 190px; padding: 18px; }

.gantt-card { overflow: hidden; }
.gantt-summary { display: grid; padding: 14px 17px; grid-template-columns: minmax(190px, 1fr) repeat(3, auto); align-items: center; gap: 22px; border-block-end: 1px solid var(--border); }
.gantt-summary > div:first-child strong,
.gantt-summary > div:first-child span { display: block; }
.gantt-summary > div:first-child strong { font-size: 12px; }
.gantt-summary > div:first-child span,
.gantt-summary > div:not(:first-child) span { color: var(--text-muted); font-size: 8px; }
.gantt-summary > div:not(:first-child) { min-width: 65px; text-align: center; }
.gantt-summary b { display: block; color: var(--navy-900); font-size: 15px; }
.gantt[data-gantt] {
  --gantt-row-height: 54px;
  display: grid;
  width: 100%;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  cursor: default;
}
.gantt-fixed { position: relative; z-index: 4; border-inline-end: 1px solid var(--border); background: #fff; box-shadow: -6px 0 12px rgba(7, 23, 39, 0.04); }
.gantt-fixed-head { display: flex; height: 52px; padding: 10px 14px; align-items: center; border-block-end: 1px solid var(--border); background: var(--gray-50); color: var(--gray-600); font-size: 9px; font-weight: 800; }
.gantt-label { display: flex; height: var(--gantt-row-height); padding: 7px 12px; align-items: center; justify-content: space-between; gap: 8px; border-block-end: 1px solid var(--border); color: var(--gray-800); }
.gantt-label:hover { background: var(--gray-50); color: var(--gray-900); }
.gantt-label > span { min-width: 0; }
.gantt-label b,
.gantt-label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-label b { color: var(--teal-700); font-size: 8px; }
.gantt-label strong { max-width: 165px; font-size: 9px; }
.gantt-label small { max-width: 75px; overflow: hidden; color: var(--text-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.gantt-scroll { overflow-x: auto; cursor: grab; scrollbar-color: var(--gray-300) transparent; scrollbar-width: thin; }
.gantt-scroll.is-dragging { cursor: grabbing; user-select: none; }
.gantt-timeline { position: relative; width: max(100%, calc(var(--weeks) * 112px)); min-width: 720px; background-image: repeating-linear-gradient(to left, transparent 0, transparent calc(100% / var(--days) - 1px), rgba(227, 232, 237, 0.7) calc(100% / var(--days))); }
.gantt-week-heads { display: grid; height: 52px; grid-template-columns: repeat(var(--weeks), minmax(112px, 1fr)); border-block-end: 1px solid var(--border); background: var(--gray-50); }
.gantt-week-heads > div { display: grid; padding: 6px; place-content: center; border-inline-end: 1px solid var(--border); text-align: center; }
.gantt-week-heads strong,
.gantt-week-heads small { display: block; }
.gantt-week-heads strong { color: var(--gray-700); font-size: 8px; }
.gantt-week-heads small { color: var(--text-muted); font-size: 7px; }
.gantt[data-gantt] .gantt-row { position: relative; height: var(--gantt-row-height); min-height: 0; border-block-end: 1px solid var(--border); }
.gantt[data-gantt] .gantt-bar { position: absolute; z-index: 2; height: 27px; inset-block-start: 13px; overflow: hidden; border-radius: 6px; background: var(--blue-700); box-shadow: 0 2px 5px rgba(7, 23, 39, 0.12); color: #fff; font-size: 8px; line-height: 27px; text-align: center; }
.gantt[data-gantt] .gantt-bar > i { position: absolute; z-index: -1; height: 100%; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: var(--teal-500); }
.gantt[data-gantt] .gantt-bar.is-late { background: var(--red-700); }
.gantt[data-gantt] .gantt-bar.is-late > i { background: var(--red-600); }
.gantt[data-gantt] .gantt-bar.is-complete { background: var(--green-700); }
.gantt[data-gantt] .gantt-bar.is-complete > i { background: var(--green-600); }
.today-line { position: absolute; z-index: 1; width: 2px; height: 100%; inset-block: 0; inset-inline-start: var(--today); background: rgba(220, 38, 38, 0.38); }
.gantt-dependencies { display: flex; padding: 12px 17px; flex-wrap: wrap; align-items: center; gap: 7px; border-block-start: 1px solid var(--border); background: var(--gray-50); color: var(--text-muted); font-size: 8px; }
.gantt-dependencies strong { color: var(--gray-700); }
.gantt-dependencies > span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

.progress-requests { display: grid; gap: 12px; }
.progress-request { padding: 17px; }
.request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.request-head h2 { margin: 5px 0 2px; color: var(--navy-900); font-size: 15px; }
.request-head p { margin: 0; color: var(--text-muted); font-size: 9px; }
.progress-change { display: flex; min-width: 210px; align-items: center; justify-content: flex-end; gap: 9px; }
.progress-change span { color: var(--text-muted); font-size: 15px; text-decoration: line-through; }
.progress-change i { color: var(--gray-400); font-style: normal; }
.progress-change strong { color: var(--teal-700); font-size: 24px; }
.progress-change small { padding: 3px 7px; border-radius: 99px; background: var(--green-50); color: var(--green-700); font-size: 8px; font-weight: 800; }
.request-details { display: grid; margin-block: 14px; padding: 11px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-radius: 9px; background: var(--gray-50); }
.request-details small,
.request-details strong { display: block; }
.request-details small { color: var(--text-muted); font-size: 8px; }
.request-details strong { margin-block-start: 2px; font-size: 10px; }
.request-description { margin: 0 0 12px; color: var(--gray-700); font-size: 10px; }
.attachment-list { display: grid; margin-block-end: 12px; gap: 7px; color: var(--gray-700); font-size: 9px; }
.attachment-list > div { display: flex; flex-wrap: wrap; gap: 7px; }
.attachment-list a { display: inline-flex; min-width: 0; padding: 7px 9px; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--gray-50); color: var(--navy-800); }
.attachment-list a:hover { border-color: var(--teal-300); background: var(--teal-50); color: var(--teal-800); }
.attachment-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list a small { flex: 0 0 auto; color: var(--text-muted); }
.review-note { padding: 9px 11px; border-radius: 8px; background: var(--gray-50); color: var(--gray-700); font-size: 9px; }
.review-note.is-approved { background: var(--green-50); color: var(--green-700); }
.review-note.is-rejected { background: var(--red-50); color: var(--red-700); }
.request-actions { display: flex; margin: 14px -17px -17px; padding: 11px 17px; align-items: center; gap: 8px; border-block-start: 1px solid var(--border); background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.reject-form { display: flex; min-width: 260px; flex: 1; gap: 7px; }
.reject-form input { min-width: 0; min-height: 38px; flex: 1; border: 1px solid var(--gray-300); border-radius: 8px; padding: 7px 10px; }

.daily-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.daily-report-grid > .empty-state { grid-column: 1 / -1; }
.daily-report-card { display: grid; min-height: 180px; padding: 17px; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: stretch; gap: 14px; color: var(--gray-800); }
.daily-report-card:hover { color: var(--gray-800); border-color: #cbd5dc; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.report-date-block { display: flex; padding: 10px 5px; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; text-align: center; }
.report-date-block strong { font-size: 28px; line-height: 1.2; }
.report-date-block span { color: rgba(255,255,255,.66); font-size: 8px; }
.report-card-main { min-width: 0; }
.report-card-main > div:first-child { display: flex; align-items: center; gap: 7px; }
.report-card-main > div:first-child small { color: var(--text-muted); font-size: 8px; }
.report-card-main h2 { margin: 8px 0 3px; overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.report-card-main > p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-muted); font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.report-meta { display: flex; margin-block-start: 10px; flex-wrap: wrap; gap: 8px; color: var(--gray-600); font-size: 8px; }
.reporter { display: block; margin-block-start: 7px; color: var(--text-muted); font-size: 8px; }
.card-arrow { align-self: center; color: var(--teal-700); font-size: 17px; }

.report-cover { display: grid; margin-block-end: 16px; padding: 17px; grid-template-columns: 150px minmax(180px, 1fr) minmax(260px, auto); align-items: center; gap: 18px; background: linear-gradient(115deg, var(--navy-900), var(--navy-800)); color: #fff; }
.report-day { display: flex; padding-inline-end: 18px; flex-direction: column; border-inline-end: 1px solid rgba(255,255,255,.15); }
.report-day strong { font-size: 34px; line-height: 1.1; }
.report-day span { font-size: 10px; }
.report-day small { color: rgba(255,255,255,.58); font-size: 8px; }
.report-weather { display: flex; align-items: center; gap: 12px; }
.report-weather > span { font-size: 35px; }
.report-weather small,
.report-weather strong,
.report-weather em { display: block; }
.report-weather small { color: rgba(255,255,255,.56); font-size: 8px; }
.report-weather strong { font-size: 13px; }
.report-weather em { color: rgba(255,255,255,.72); font-size: 9px; font-style: normal; }
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(72px, 1fr)); gap: 7px; }
.report-kpis > div { padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: rgba(255,255,255,.06); text-align: center; }
.report-kpis strong,
.report-kpis small { display: block; }
.report-kpis strong { font-size: 18px; }
.report-kpis small { color: rgba(255,255,255,.6); font-size: 8px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 16px; }
.report-main { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
.report-section { padding: 18px; }
.report-section > h2,
.report-side .card > h2 { margin: 0 0 12px; color: var(--navy-900); font-size: 14px; }
.prose { color: var(--gray-700); font-size: 11px; line-height: 1.9; }
.callout { margin-block-start: 13px; padding: 11px 13px; border-inline-start: 3px solid var(--teal-600); border-radius: 8px; background: var(--teal-50); }
.callout strong { color: var(--teal-700); font-size: 9px; }
.callout p { margin: 2px 0 0; font-size: 10px; }
.activity-chips { display: flex; margin-block-start: 12px; flex-wrap: wrap; gap: 7px; }
.activity-chips span { display: inline-flex; padding: 5px 8px; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 7px; background: var(--gray-50); font-size: 9px; }
.activity-chips b { color: var(--teal-700); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-grid a { position: relative; display: block; overflow: hidden; border-radius: 9px; background: var(--gray-100); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--ease); }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid span { position: absolute; inset-block-end: 0; inset-inline: 0; padding: 18px 8px 6px; overflow: hidden; background: linear-gradient(transparent, rgba(7,23,39,.75)); color: #fff; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.material-flow > div { display: flex; padding: 10px 0; align-items: center; gap: 9px; border-block-end: 1px solid var(--border); }
.material-flow > div:last-child { border: 0; }
.material-flow > div > span:nth-child(2) { min-width: 0; flex: 1; }
.material-flow strong,
.material-flow small { display: block; }
.material-flow strong { font-size: 10px; }
.material-flow small { color: var(--text-muted); font-size: 8px; }
.material-flow b { font-size: 10px; }
.material-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.material-icon.is-out { background: var(--amber-50); color: var(--amber-700); }
.report-side { position: sticky; inset-block-start: calc(var(--topbar-height) + 15px); display: flex; flex-direction: column; gap: 15px; }
.report-side .card { padding: 17px; }
.side-details { margin: 0; }
.side-details > div { padding: 10px 0; border-block-end: 1px solid var(--border); }
.side-details > div:last-child { border: 0; }
.side-details dt { color: var(--text-muted); font-size: 8px; }
.side-details dd { margin: 3px 0 0; color: var(--gray-700); font-size: 10px; }
.approval-card form + form { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--border); }
.approval-card textarea { width: 100%; min-height: 85px; padding: 9px 10px; border: 1px solid var(--gray-300); border-radius: 8px; resize: vertical; }

.notification-list { overflow: hidden; }
.notification-item { display: flex; min-height: 82px; padding: 14px 17px; align-items: center; gap: 12px; border-block-end: 1px solid var(--border); }
.notification-item:last-child { border: 0; }
.notification-item.is-unread { background: var(--teal-50); }
.notification-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: var(--gray-100); color: var(--gray-600); }
.notification-item > div { min-width: 0; flex: 1; }
.notification-item h3 { margin: 0 0 2px; font-size: 11px; }
.notification-item p { margin: 0; color: var(--gray-700); font-size: 10px; }
.notification-item small { color: var(--text-muted); font-size: 8px; }
.two-column-layout { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 16px; }
.profile-card { padding: 25px; text-align: center; }
.avatar-xl { width: 76px; height: 76px; margin-inline: auto; font-size: 23px; }
.profile-card h2 { margin: 12px 0 2px; font-size: 17px; }
.profile-card > p { margin: 0 0 18px; color: var(--text-muted); }
.profile-card dl { margin: 0; text-align: start; }
.profile-card dl > div { display: flex; padding: 9px 0; justify-content: space-between; gap: 10px; border-block-end: 1px solid var(--border); }
.profile-card dt { color: var(--text-muted); font-size: 9px; }
.profile-card dd { margin: 0; font-size: 9px; font-weight: 700; }

.login-page { background: var(--navy-950); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr); }
.login-showcase { position: relative; display: flex; min-height: 100vh; padding: clamp(36px, 5.5vw, 82px); flex-direction: column; justify-content: space-between; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(20,184,166,.22), transparent 30%), linear-gradient(145deg, var(--navy-800), var(--navy-950)); color: #fff; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.login-brand strong,
.login-brand small { display: block; }
.login-brand strong { font-size: 14px; }
.login-brand small { color: rgba(255,255,255,.53); font-size: 9px; }
.showcase-copy { position: relative; z-index: 2; max-width: 600px; }
.showcase-copy .eyebrow { color: var(--teal-500); }
.showcase-copy h1 { margin: 8px 0 16px; font-size: clamp(35px, 5vw, 62px); line-height: 1.35; }
.showcase-copy h1 em { color: var(--amber-500); font-style: normal; }
.showcase-copy p { max-width: 540px; margin: 0; color: rgba(255,255,255,.66); font-size: 13px; }
.showcase-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.showcase-metrics > div { padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); }
.showcase-metrics strong,
.showcase-metrics span { display: block; }
.showcase-metrics strong { color: var(--teal-500); font-size: 17px; }
.showcase-metrics span { color: rgba(255,255,255,.55); font-size: 8px; }
.blueprint-grid { position: absolute; inset: 0; overflow: hidden; opacity: .12; pointer-events: none; }
.blueprint-grid::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(120deg, transparent 15%, #000 90%); }
.blueprint-grid span { position: absolute; border: 1px solid #fff; transform: rotate(28deg); }
.blueprint-grid span:nth-child(1) { width: 340px; height: 340px; inset-block-start: 14%; inset-inline-end: -60px; }
.blueprint-grid span:nth-child(2) { width: 220px; height: 220px; inset-block-start: 28%; inset-inline-end: 45px; }
.blueprint-grid span:nth-child(3) { width: 140px; height: 140px; inset-block-start: 40%; inset-inline-end: 120px; }
.login-panel { display: grid; min-height: 100vh; padding: clamp(26px, 5vw, 65px); place-items: center; background: var(--gray-50); }
.login-card { width: min(100%, 430px); padding: clamp(24px, 4vw, 38px); border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.login-heading { margin-block-end: 25px; }
.login-heading h2 { margin: 0 0 4px; color: var(--navy-900); font-size: 24px; }
.login-heading p { margin: 0; color: var(--text-muted); font-size: 10px; }
.mobile-brand-mark { display: none; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muted { color: var(--text-muted); font-size: 8px; }
.input-with-icon { position: relative; }
.input-with-icon > span { position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-start: 13px; color: var(--gray-400); font-size: 10px; transform: translateY(-50%); pointer-events: none; }
.input-with-icon > input { padding-inline-start: 42px !important; }
.input-with-icon .password-toggle { inset-inline-start: auto; inset-inline-end: 7px; }
.input-with-icon:has(.password-toggle) > input { padding-inline-start: 42px !important; padding-inline-end: 45px !important; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--gray-700); font-size: 10px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--teal-700); }
.demo-credentials { display: flex; margin-block-start: 22px; padding: 10px; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 8px; background: var(--gray-50); }
.demo-credentials > span { width: 100%; color: var(--text-muted); font-size: 8px; }
.demo-credentials code { padding: 3px 6px; border-radius: 5px; background: #fff; color: var(--navy-800); font-size: 9px; direction: ltr; }
.login-help { margin: 14px 0 0; color: var(--text-muted); font-size: 8px; text-align: center; }

.report-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-export-card { display: grid; min-height: 145px; padding: 17px; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.report-export-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--teal-700); font-size: 21px; }
.report-export-card h2 { margin: 1px 0 4px; color: var(--navy-900); font-size: 14px; }
.report-export-card p { margin: 0; color: var(--text-muted); font-size: 9px; }
.report-export-actions { display: flex; grid-column: 1 / -1; align-self: end; justify-content: flex-end; gap: 7px; }
.export-guide { display: flex; margin-block-start: 15px; padding: 15px 17px; align-items: center; gap: 11px; border-color: #bfdbfe; background: var(--blue-50); }
.export-guide > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #fff; color: var(--blue-700); }
.export-guide h2 { margin: 0 0 2px; color: var(--blue-700); font-size: 11px; }
.export-guide p { margin: 0; color: #365c91; font-size: 9px; }

.print-toolbar { display: flex; width: min(100%, 980px); margin: 0 auto 14px; align-items: center; justify-content: space-between; gap: 10px; }
.print-report { width: min(100%, 980px); margin-inline: auto; padding: clamp(22px, 4vw, 48px); }
.print-report-header { display: flex; padding-block-end: 18px; align-items: center; justify-content: space-between; gap: 18px; border-block-end: 2px solid var(--navy-800); }
.brand.print-brand { min-height: 0; padding: 0; border: 0; color: var(--navy-900); }
.brand.print-brand:hover { color: var(--navy-900); }
.brand.print-brand small { color: var(--text-muted); }
.print-report-header > div:last-child { text-align: end; }
.print-report-header > div:last-child span,
.print-report-header > div:last-child strong { display: block; }
.print-report-header > div:last-child span { color: var(--text-muted); font-size: 8px; }
.print-report-header > div:last-child strong { font-size: 10px; }
.print-project-title { padding: 24px 0 18px; text-align: center; }
.print-project-title h1 { margin: 8px 0 4px; color: var(--navy-900); font-size: 26px; }
.print-project-title p { margin: 0; color: var(--text-muted); font-size: 10px; }
.print-kpis { display: grid; margin-block-end: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.print-kpis > div { padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--gray-50); text-align: center; }
.print-kpis small,
.print-kpis strong { display: block; }
.print-kpis small { color: var(--text-muted); font-size: 8px; }
.print-kpis strong { margin-block-start: 3px; color: var(--navy-900); font-size: 17px; }
.print-section { margin-block-start: 21px; break-inside: avoid-page; }
.print-section > h2 { margin: 0 0 10px; padding-block-end: 7px; border-block-end: 1px solid var(--border); color: var(--navy-900); font-size: 13px; }
.print-section .info-grid { padding: 0; }
.print-report-footer { margin-block-start: 28px; padding-block-start: 10px; border-block-start: 1px solid var(--border); color: var(--text-muted); font-size: 8px; text-align: center; }

.user-admin-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: start; gap: 16px; }
.user-list { max-height: 720px; overflow-y: auto; scrollbar-color: var(--gray-300) transparent; scrollbar-width: thin; }
.user-list-row { display: grid; min-height: 69px; padding: 10px 15px; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border-block-end: 1px solid var(--border); color: var(--gray-800); }
.user-list-row:last-child { border: 0; }
.user-list-row:hover { background: var(--gray-50); color: var(--gray-900); }
.user-list-row.is-selected { background: var(--teal-50); box-shadow: inset -3px 0 var(--teal-600); }
.avatar.is-disabled { filter: grayscale(1); opacity: .55; }
.user-list-main { min-width: 0; }
.user-list-main strong,
.user-list-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-list-main strong { font-size: 10px; }
.user-list-main small { color: var(--text-muted); font-size: 8px; }
.user-project-count { color: var(--text-muted); font-size: 8px; white-space: nowrap; }
.user-form-card { position: sticky; inset-block-start: calc(var(--topbar-height) + 15px); }
.user-form-card > form { padding: 17px; }
.switch-row { display: flex; padding: 11px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--gray-50); }
.switch-row strong,
.switch-row small { display: block; }
.switch-row strong { font-size: 10px; }
.switch-row small { color: var(--text-muted); font-size: 8px; }
.switch-row > input {
  position: relative;
  width: 40px;
  height: 23px;
  flex: 0 0 40px;
  appearance: none;
  border-radius: 99px;
  background: var(--gray-300);
  transition: background var(--ease);
}
.switch-row > input::after { position: absolute; width: 17px; height: 17px; inset-block-start: 3px; inset-inline-end: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(7,23,39,.22); content: ""; transition: transform var(--ease); }
.switch-row > input:checked { background: var(--teal-600); }
.switch-row > input:checked::after { transform: translateX(-17px); }
.user-access-note { margin: 0 17px 17px; padding: 11px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.user-access-note strong { font-size: 9px; }
.user-access-note p { margin: 2px 0 0; font-size: 8px; }

/* Responsive */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-xl-12 { grid-column: 1 / -1; }
  .col-span-3 { grid-column: span 4; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --sidebar-width: 262px; }
  .sidebar { transform: translateX(105%); }
  .app-main,
  body.sidebar-collapsed .app-main { margin-inline-start: 0; }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-width); }
  body.sidebar-collapsed .brand-copy,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .nav-text,
  body.sidebar-collapsed .nav-counter,
  body.sidebar-collapsed .sidebar-user__copy { display: initial; }
  body.sidebar-collapsed .sidebar__brand,
  body.sidebar-collapsed .sidebar-user,
  body.sidebar-collapsed .nav-link { justify-content: flex-start; }
  body.sidebar-collapsed .sidebar .brand > span:last-child,
  body.sidebar-collapsed .sidebar-nav > .nav-item > span:last-child,
  body.sidebar-collapsed .sidebar-foot > span:last-child { display: initial; }
  body.sidebar-collapsed .sidebar-nav > .nav-label { display: block; }
  body.sidebar-collapsed .sidebar .brand,
  body.sidebar-collapsed .sidebar-nav > .nav-item,
  body.sidebar-collapsed .sidebar-foot { justify-content: flex-start; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .dashboard-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .col-span-3,
  .col-span-4 { grid-column: span 4; }
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-12 { grid-column: 1 / -1; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { grid-template-columns: minmax(350px, 0.9fr) minmax(380px, 1fr); }
  .auth-aside { padding: 46px; }
  .dashboard-main-grid,
  .dashboard-attention-grid,
  .project-overview-grid,
  .project-lists-grid { grid-template-columns: 1fr; }
  .project-health-row { grid-template-columns: 65px minmax(130px, 1fr) minmax(92px, .5fr) minmax(92px, .5fr) auto; gap: 8px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-layout { grid-template-columns: minmax(0, 1fr) 275px; }
  .login-shell { grid-template-columns: minmax(350px, .9fr) minmax(360px, .75fr); }
  .user-admin-layout { grid-template-columns: 1fr; }
  .user-form-card { position: static; }
}

@media (max-width: 767px) {
  :root { --topbar-height: 62px; }
  body.has-mobile-nav { padding-block-end: var(--mobile-nav-height); }
  .mobile-only { display: inline-grid !important; }
  .topbar { padding-inline: 13px; }
  .topbar__title small,
  .topbar .desktop-only { display: none !important; }
  .content,
  .page-content { padding: 16px 13px 22px; }
  .page-header { margin-block-end: 17px; flex-direction: column; gap: 12px; }
  .page-header__actions { width: 100%; }
  .page-header__actions .btn { flex: 1; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .stat-grid,
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 13px; }
  .dashboard-grid > *,
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-12 { grid-column: 1 / -1; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 104px; padding: 14px; align-items: center; }
  .stat-card__icon { width: 41px; height: 41px; flex-basis: 41px; }
  .stat-card__value { font-size: 22px; }
  .card__header { min-height: 56px; padding: 12px 14px; }
  .card__body { padding: 14px; }
  .toolbar,
  .filter-bar { align-items: stretch; }
  .toolbar > *,
  .filter-bar > * { flex: 1 1 145px; }
  .toolbar .search-box,
  .filter-bar .search-box { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .field,
  .form-group,
  .field--full,
  .form-group--full,
  .field--third,
  .field--quarter { grid-column: 1; }
  .form-grid > .col-2,
  .form-grid > .col-3,
  .form-grid > .col-4,
  .form-grid > .col-5,
  .form-grid > .col-6,
  .form-grid > .col-7,
  .form-grid > .col-8,
  .form-grid > .col-12 { grid-column: 1 / -1; }
  .form-actions { position: sticky; z-index: 20; inset-block-end: var(--mobile-nav-height, 0); margin-inline: -14px; margin-block-end: -14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 -5px 16px rgba(7, 23, 39, 0.07); backdrop-filter: blur(10px); }
  .repeater__head { display: none; }
  .repeater__item,
  [data-repeater-item] { grid-template-columns: 1fr 1fr; align-items: end; }
  .repeater__remove,
  [data-repeater-remove] { grid-column: 1 / -1; justify-self: end; }
  .modal { padding: 0; place-items: end center; }
  .modal__dialog,
  .modal-dialog { width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); }
  .modal__footer,
  .modal-footer { position: sticky; inset-block-end: 0; }
  .toast-container { inset-block-start: 10px; inset-inline: 12px; width: auto; }
  .table-wrap--cards,
  .table-responsive--cards { overflow: visible; }
  .table-wrap--cards .data-table,
  .table-responsive--cards .data-table,
  .data-table.is-card-list { display: block; }
  .table-wrap--cards thead,
  .table-responsive--cards thead,
  .data-table.is-card-list thead { display: none; }
  .table-wrap--cards tbody,
  .table-responsive--cards tbody,
  .data-table.is-card-list tbody { display: grid; gap: 10px; }
  .table-wrap--cards tr,
  .table-responsive--cards tr,
  .data-table.is-card-list tr { display: block; padding: 8px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-xs); }
  .table-wrap--cards td,
  .table-responsive--cards td,
  .data-table.is-card-list td { display: flex; min-height: 38px; padding: 8px 0; align-items: center; justify-content: space-between; gap: 16px; border-block-end: 1px dashed var(--border); text-align: end; }
  .table-wrap--cards td::before,
  .table-responsive--cards td::before,
  .data-table.is-card-list td::before { color: var(--text-muted); content: attr(data-label); font-size: 10px; font-weight: 700; text-align: start; }
  .table-wrap--cards td:last-child,
  .table-responsive--cards td:last-child,
  .data-table.is-card-list td:last-child { border-block-end: 0; }
  .table-actions { justify-content: flex-start; }
  .gantt { --gantt-label-width: 185px; --gantt-row-height: 42px; }
  .gantt__label-title { font-size: 10px; }
  .auth-page { display: block; min-height: 100vh; }
  .auth-panel { min-height: 100vh; padding: 28px 20px; }
  .auth-aside { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 700;
    inset-block-end: 0;
    inset-inline: 0;
    display: grid;
    min-height: var(--mobile-nav-height);
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-block-start: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(7, 23, 39, 0.08);
    backdrop-filter: blur(14px);
  }
  .mobile-nav__link { position: relative; display: flex; min-width: 0; padding: 4px 3px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 9px; color: var(--gray-500); font-size: 9px; }
  .mobile-nav__link .icon { width: 20px; height: 20px; }
  .mobile-nav__link.is-active,
  .mobile-nav__link[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); font-weight: 700; }
  .desktop-only { display: none !important; }
  .project-switcher label,
  .user-copy { display: none; }
  .project-switcher { min-width: 0; flex: 1; }
  .project-switcher select { width: 100%; max-width: 230px; }
  .topbar-actions { margin-inline-start: 0; }
  .user-trigger { min-height: 39px; padding: 2px 5px; }
  .user-trigger > span:last-child { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project-health-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .project-health-row .health-metric { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-hero { padding: 17px; flex-direction: column; align-items: stretch; }
  .project-hero .page-actions { width: 100%; }
  .project-monogram-lg { width: 53px; height: 53px; flex-basis: 53px; }
  .team-picker { grid-template-columns: 1fr; }
  .team-option { grid-template-columns: auto auto minmax(0, 1fr); }
  .team-option select { grid-column: 2 / -1; }
  .repeater-row.form-grid,
  [data-repeater-item].repeater-row.form-grid { grid-template-columns: 1fr 1fr; }
  .repeater-row.form-grid > .field,
  [data-repeater-item].repeater-row.form-grid > .field { grid-column: span 1; }
  .repeater-row .repeater-remove { grid-column: 1 / -1; justify-self: end; }
  .form-actions-sticky { inset-block-end: var(--mobile-nav-height); margin-inline: -13px; margin-block-end: -22px; padding: 11px 13px; border-inline: 0; }
  .filter-pills,
  .section-tabs { margin-inline: -2px; }
  .field-inline { min-width: 135px; flex: 1; flex-direction: column; align-items: stretch; gap: 3px; }
  .toolbar-spacer,
  .toolbar .legend { display: none; }
  .gantt-summary { grid-template-columns: minmax(150px, 1fr) repeat(2, auto); gap: 10px; }
  .gantt-summary > div:last-child { display: none; }
  .gantt[data-gantt] { grid-template-columns: 185px minmax(0, 1fr); }
  .gantt-label strong { max-width: 115px; }
  .gantt-label small { display: none; }
  .request-head { flex-direction: column; }
  .progress-change { width: 100%; min-width: 0; justify-content: flex-start; }
  .request-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-actions { align-items: stretch; flex-direction: column; }
  .reject-form { min-width: 0; }
  .daily-report-grid { grid-template-columns: 1fr; }
  .report-card-grid { grid-template-columns: 1fr; }
  .daily-report-card { min-height: 160px; grid-template-columns: 64px minmax(0, 1fr) auto; }
  .report-meta span:nth-child(n + 3) { display: none; }
  .report-cover { grid-template-columns: 95px minmax(0, 1fr); }
  .report-kpis { grid-column: 1 / -1; }
  .report-layout { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column-layout { grid-template-columns: 1fr; }
  .print-report { padding: 18px 14px; }
  .print-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-list-row { padding-inline: 11px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .user-project-count { display: none; }
  .login-shell { display: block; }
  .login-showcase { display: none; }
  .login-panel { min-height: 100vh; padding: 22px 16px; }
  .login-card { box-shadow: var(--shadow-sm); }
  .mobile-brand-mark { display: grid; width: 44px; height: 44px; margin-block-end: 17px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, var(--teal-500), var(--teal-700)); color: #fff; font-size: 17px; font-weight: 800; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 700;
    inset-block-end: 0;
    inset-inline: 0;
    display: grid;
    min-height: var(--mobile-nav-height);
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    grid-template-columns: repeat(5, 1fr);
    border-block-start: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(7, 23, 39, 0.08);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav > a { display: flex; min-width: 0; padding: 3px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 8px; color: var(--gray-500); font-size: 8px; }
  .mobile-bottom-nav > a > span { font-size: 18px; line-height: 1.1; }
  .mobile-bottom-nav > a.is-active { color: var(--teal-700); font-weight: 800; }
  .mobile-bottom-nav > .mobile-fab { width: 49px; height: 49px; margin: -18px auto 0; align-self: start; border: 5px solid var(--page-bg); border-radius: 50%; background: var(--teal-700); box-shadow: 0 6px 15px rgba(8,125,122,.25); color: #fff; font-size: 24px; line-height: 1; }
}

@media (max-width: 420px) {
  .page-header__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .page-header__actions .btn:first-child:last-child { grid-column: 1 / -1; }
  .topbar__end { gap: 5px; }
  .topbar .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .topbar .icon-btn { width: 37px; height: 37px; }
  .form-actions .btn { flex: 1; }
  .stats-grid { grid-template-columns: 1fr; }
  .project-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-metrics > div:last-child { grid-column: 1 / -1; }
  .project-health-row { padding-inline: 10px; grid-template-columns: 48px minmax(0, 1fr); }
  .project-health-row > .badge { display: none; }
  .repeater-row.form-grid,
  [data-repeater-item].repeater-row.form-grid { grid-template-columns: 1fr; }
  .daily-report-card { grid-template-columns: 54px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .daily-report-card .card-arrow { display: none; }
  .report-cover { grid-template-columns: 78px minmax(0, 1fr); padding: 13px; gap: 11px; }
  .report-kpis { gap: 4px; }
  .report-kpis > div { min-width: 0; padding: 7px 3px; }
  .form-actions-sticky .btn { flex: 1; padding-inline: 8px; }
  .print-toolbar { align-items: stretch; flex-direction: column; }
  .print-report-header { align-items: flex-start; }
  .print-project-title h1 { font-size: 21px; }
  .user-list-row > .badge { display: none; }
}

/* Print and exports */
@media print {
  @page { size: A4; margin: 14mm; }
  :root { --page-bg: #fff; --text: #111; --border: #c7c7c7; }
  html,
  body { width: 100%; min-width: 0; background: #fff !important; color: #111; font-size: 10pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sidebar,
  .topbar,
  .mobile-nav,
  .mobile-bottom-nav,
  .sidebar-backdrop,
  .page-header__actions,
  .page-actions,
  .toolbar,
  .filter-bar,
  .btn,
  .icon-btn,
  .pagination,
  .toast-container,
  .form-actions-sticky,
  .print-toolbar,
  .no-print { display: none !important; }
  .app-main { margin: 0 !important; }
  .content,
  .page-content { width: 100%; max-width: none; padding: 0; }
  .page-header { margin-block-end: 10mm; }
  .card,
  .stat-card { break-inside: avoid; border-color: #bbb; box-shadow: none; }
  .card__body { padding: 10px; }
  .dashboard-grid,
  .grid,
  .stat-grid { gap: 7mm; }
  .table-wrap,
  .table-responsive { overflow: visible; }
  .data-table,
  .table { font-size: 8pt; }
  .data-table th,
  .data-table td,
  .table th,
  .table td { padding: 5px 6px; }
  .data-table thead { display: table-header-group; }
  .data-table tr { break-inside: avoid; }
  .gantt { overflow: visible; transform-origin: top right; }
  .print-report { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .print-report-header { padding-block-end: 8mm; }
  .print-project-title { padding-block: 8mm 5mm; }
  .print-kpis { margin-block-end: 7mm; gap: 3mm; }
  .print-kpis > div { padding: 4mm 2mm; }
  .print-section { margin-block-start: 7mm; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  :root { --border: #a8b0b8; --text-muted: #45515d; }
  .btn,
  .form-control,
  .form-select,
  .card,
  .stat-card { border-width: 2px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
