@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --surface-3: #f1f5f2;
  --ink: #10231f;
  --ink-2: #33473f;
  --muted: #6b7f77;
  --muted-2: #94a39d;
  --line: #e3e9e4;
  --line-strong: #d3ddd6;
  --brand: #0e7a6b;
  --brand-dark: #0a5c51;
  --brand-soft: #e8f5f1;
  --brand-ink: #0b4f46;
  --accent: #e9963e;
  --accent-dark: #b45309;
  --accent-soft: #fdf3e6;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --sidebar: #0a2621;
  --sidebar-2: #0c2f28;
  --sidebar-ink: #a9c3bb;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 35, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 35, 31, 0.16);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 11px;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 16px 16px;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: var(--sidebar-ink);
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 2px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #5fe3c8;
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f2fbf8;
}

.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(169, 195, 187, 0.7);
  margin-top: 3px;
}

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  color: #d9ebe5;
}

.workspace-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #37c7ac;
  flex: none;
}

.workspace-role {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(55, 199, 172, 0.16);
  color: #7ce7d1;
}

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

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169, 195, 187, 0.55);
  padding: 0 10px 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sidebar-ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.82;
}

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

.nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #37c7ac;
}

.nav-link.active .icon {
  color: #5fe3c8;
  opacity: 1;
}

.nav-link.is-disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: #d9ebe5;
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sidebar-card {
  margin-top: 2px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(233, 150, 62, 0.11);
  border: 1px solid rgba(233, 150, 62, 0.22);
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #f2d4b3;
}

.sidebar-card p {
  margin: 5px 0 9px;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(244, 215, 184, 0.82);
}

.sidebar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #f0b878;
}

.sidebar-card-link .icon {
  width: 12px;
  height: 12px;
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-text {
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f0f8f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 9.5px;
  color: rgba(169, 195, 187, 0.72);
}

.icon-btn-dark {
  color: rgba(221, 240, 233, 0.7);
}

.icon-btn-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(8, 26, 22, 0.5);
  backdrop-filter: blur(2px);
}

.main {
  margin-left: 256px;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.menu-btn {
  display: none;
}

.topbar-search {
  position: relative;
  flex: 0 1 420px;
}

.topbar-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 11.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar-search input::placeholder {
  color: var(--muted-2);
}

.topbar-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 122, 107, 0.1);
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-date .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.icon-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--red);
  border: 1.5px solid #fff;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.user-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-chip-name {
  font-size: 10.5px;
  font-weight: 700;
}

.user-chip-role {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted-2);
  margin-top: 1px;
}

.content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 26px 28px 52px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span:last-child {
  color: var(--muted);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(14, 122, 107, 0.22);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-danger {
  background: var(--red);
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-amber {
  background: var(--accent-soft);
  border-color: #f3d9b7;
  color: var(--accent-dark);
}

.btn-amber:hover {
  background: #fbead4;
}

.btn-sm {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.btn-sm .icon {
  width: 14px;
  height: 14px;
}

.btn-lg {
  height: 44px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.link:hover {
  color: var(--brand-dark);
}

.link .icon {
  width: 13px;
  height: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.kpi-icon .icon {
  width: 17px;
  height: 17px;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.kpi-trend .icon {
  width: 11px;
  height: 11px;
}

.trend-up {
  color: var(--green);
}

.trend-down {
  color: var(--red);
}

.trend-flat {
  color: var(--muted-2);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: -4px;
}

.kpi-foot {
  font-size: 10.5px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.tone-teal {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.tone-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tone-green {
  background: var(--green-soft);
  color: var(--green);
}

.tone-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.tone-red {
  background: var(--red-soft);
  color: var(--red);
}

.tone-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid-2 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.grid-2-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-start {
  align-items: start;
}

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

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px 0;
}

.card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card-desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-body.flush {
  padding: 0;
}

.card-body.tight {
  padding: 12px 20px 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 10.5px;
  color: var(--muted);
}

.card-tabs {
  padding: 0 20px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab .count {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--muted);
}

.tab.active .count {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.tab-panels {
  padding-top: 18px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
}

.search-field .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 36px;
  padding: 0 11px 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 11.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 122, 107, 0.1);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  height: 36px;
  min-width: 140px;
  appearance: none;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  outline: none;
  cursor: pointer;
}

.select-wrap select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 122, 107, 0.1);
}

.select-wrap .chev {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  pointer-events: none;
}

.toolbar-note {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.chip .icon {
  width: 12px;
  height: 12px;
}

.chip.active {
  background: var(--brand-soft);
  border-color: #bfe6dc;
  color: var(--brand-ink);
}

.table-wrap {
  overflow-x: auto;
}

table.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

table.table.compact {
  min-width: 560px;
}

.table thead th {
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #fbfcfb;
}

.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .strong {
  font-weight: 700;
  color: var(--ink);
}

.table .sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

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

.entity-text {
  min-width: 0;
}

.entity-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.entity-name:hover {
  color: var(--brand);
}

.entity-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.avatar .icon {
  width: 18px;
  height: 18px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.avatar-sm .icon {
  width: 15px;
  height: 15px;
}

.avatar-xs {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.avatar-xs .icon {
  width: 13px;
  height: 13px;
}

.avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.avatar-lg .icon {
  width: 27px;
  height: 27px;
}

.role-teal {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.role-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.role-green {
  background: var(--green-soft);
  color: var(--green);
}

.role-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.role-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.role-red {
  background: var(--red-soft);
  color: var(--red);
}

.avatar-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #d9ebe5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.badge .icon {
  width: 11px;
  height: 11px;
}

.badge-success {
  background: var(--green-soft);
  color: var(--green);
}

.badge-warning {
  background: var(--amber-soft);
  color: var(--accent-dark);
}

.badge-danger {
  background: var(--red-soft);
  color: var(--red);
}

.badge-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge-brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.badge-neutral {
  background: var(--surface-3);
  color: var(--muted);
}

.badge-outline {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 10.5px;
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
}

.page-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-btn .icon {
  width: 13px;
  height: 13px;
}

.progress {
  height: 7px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  min-width: 80px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}

.progress.blue span {
  background: var(--blue);
}

.progress.green span {
  background: var(--green);
}

.progress.amber span {
  background: var(--accent);
}

.progress.red span {
  background: var(--red);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-row .progress {
  flex: 1;
}

.progress-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:first-child {
  padding-top: 0;
}

.list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.list-title a:hover {
  color: var(--brand);
}

.list-sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.4;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.list-meta .icon {
  width: 11px;
  height: 11px;
}

.reminder-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.reminder-row:first-child {
  padding-top: 0;
}

.reminder-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.reminder-check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  flex: none;
}

.reminder-check .icon {
  width: 11px;
  height: 11px;
}

.reminder-check.is-checked {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.reminder-main {
  flex: 1;
  min-width: 0;
}

.reminder-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

.reminder-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.reminder-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.reminder-meta .icon {
  width: 11px;
  height: 11px;
}

.request-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.request-row:first-child {
  padding-top: 0;
}

.request-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.request-main {
  flex: 1;
  min-width: 0;
}

.request-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.request-title a:hover {
  color: var(--brand);
}

.request-sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.request-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.request-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bar-chart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 168px;
  padding-top: 4px;
}

.bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.bar-value {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar-area {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar {
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 3px 3px;
  background: var(--brand);
  opacity: 0.86;
}

.bar.soft {
  background: var(--brand-soft);
  border: 1px solid #cdece4;
}

.bar.blue {
  background: var(--blue);
}

.bar.amber {
  background: var(--accent);
}

.bar-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.donut {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--brand) 0 69%, var(--blue) 69% 100%);
}

.donut::after {
  content: '';
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--surface);
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.donut-label {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-top: 2px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--ink-2);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.legend-value {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.mono-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mono-stat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mono-stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.insight-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.5;
}

.insight-banner .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

.insight-banner strong {
  font-weight: 800;
}

.insight-banner .link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.step {
  position: relative;
  padding-top: 30px;
  min-width: 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 30px;
  right: 2px;
  height: 2px;
  background: var(--line);
}

.step.done:not(:last-child)::after {
  background: #a9e5d7;
}

.step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  z-index: 1;
}

.step-dot .icon {
  width: 12px;
  height: 12px;
}

.step.done .step-dot {
  background: var(--green-soft);
  border-color: #b7ebc9;
  color: var(--green);
}

.step.active .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step-label {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
}

.step.active .step-label {
  color: var(--brand);
}

.step-sub {
  font-size: 9px;
  color: var(--muted-2);
  margin-top: 1px;
}

.calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 5px;
}

.calendar-head span {
  padding: 3px 0;
  text-align: center;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-day {
  position: relative;
  min-height: 42px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.cal-day.muted {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--muted-2);
}

.cal-day.today {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.cal-num {
  font-variant-numeric: tabular-nums;
}

.cal-marks {
  position: absolute;
  left: 5px;
  bottom: 4px;
  display: flex;
  gap: 2px;
}

.cal-marks i {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--brand);
}

.cal-marks i.blue {
  background: var(--blue);
}

.cal-marks i.amber {
  background: var(--accent);
}

.cal-marks i.red {
  background: var(--red);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 9.5px;
  color: var(--muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calendar-legend i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--brand);
}

.calendar-legend i.blue {
  background: var(--blue);
}

.calendar-legend i.amber {
  background: var(--accent);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.profile-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.info-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.info-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1.45;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}

.section-title .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.summary-list {
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.summary-row:first-child {
  padding-top: 0;
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-label {
  color: var(--muted);
}

.summary-value {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--brand-soft);
  border: 1px solid #bfe6dc;
  color: var(--brand);
}

.timeline-dot .icon {
  width: 9px;
  height: 9px;
}

.timeline-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-meta {
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 1px;
}

.timeline-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7f77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.field textarea {
  min-height: 92px;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 122, 107, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

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

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

.field-span-2 {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.45;
}

.check-row input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
}

.file-drop .icon {
  width: 20px;
  height: 20px;
  color: var(--muted-2);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 34px 20px;
  text-align: center;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted-2);
}

.empty-icon .icon {
  width: 24px;
  height: 24px;
}

.empty-title {
  font-size: 13px;
  font-weight: 800;
}

.empty-desc {
  font-size: 11px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 26, 22, 0.52);
  backdrop-filter: blur(3px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.18s ease;
}

.modal-lg {
  max-width: 680px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.modal-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 16px 16px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .icon {
  color: #5fe3c8;
  width: 16px;
  height: 16px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.phone-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.phone-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
  text-align: center;
}

.phone-label span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted-2);
  margin-top: 1px;
}

.phone {
  padding: 9px;
  background: #10231f;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
  border-radius: 23px;
  background: var(--bg);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 2px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-2);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-status-icons .icon {
  width: 10px;
  height: 10px;
}

.phone-head {
  padding: 7px 16px 11px;
}

.phone-eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.phone-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 2px;
}

.phone-sub {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}

.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: none;
}

.phone-body::-webkit-scrollbar {
  display: none;
}

.phone .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.phone-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.phone-card.is-brand {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
}

.phone-card-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-card.is-brand .phone-card-title {
  color: #fff;
}

.phone-card-sub {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 2px;
}

.phone-card.is-brand .phone-card-sub {
  color: rgba(255, 255, 255, 0.7);
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
}

.phone-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.phone-row:first-child {
  padding-top: 0;
}

.phone-row-label {
  color: var(--muted);
}

.phone-row-value {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.phone-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
}

.phone-action .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.phone-list-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.phone-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.phone-list-item:first-child {
  padding-top: 0;
}

.phone-list-main {
  flex: 1;
  min-width: 0;
}

.phone-list-title {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.phone-list-sub {
  font-size: 8px;
  color: var(--muted);
  margin-top: 1px;
}

.phone-badge {
  padding: 2px 6px;
  border-radius: 99px;
  font-size: 7.5px;
  font-weight: 700;
  white-space: nowrap;
}

.phone-bottom {
  display: flex;
  align-items: stretch;
  padding: 7px 5px 9px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.pnav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.pnav .icon {
  width: 16px;
  height: 16px;
}

.pnav.active {
  color: var(--brand);
}

.phone-clock {
  text-align: center;
  padding: 6px 0 2px;
}

.phone-clock-time {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.phone-clock-label {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 3px;
}

.phone-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}

.phone-clock-badge .icon {
  width: 9px;
  height: 9px;
}

.phone-big-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.phone-slip-total {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.phone-note {
  font-size: 8px;
  line-height: 1.45;
  color: var(--muted);
}

.legend-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}

.legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-inline i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--brand);
}

.legend-inline i.blue {
  background: var(--blue);
}

.legend-inline i.green {
  background: var(--green);
}

.legend-inline i.amber {
  background: var(--accent);
}

.legend-inline i.red {
  background: var(--red);
}

.legend-inline i.purple {
  background: var(--purple);
}

.legend-inline i.muted {
  background: var(--muted-2);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .topbar-date {
    display: none;
  }

  .grid-2,
  .grid-2-equal {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .step:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .menu-btn {
    display: grid;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 22px 18px 44px;
  }

  .topbar {
    padding: 12px 18px;
  }

  .topbar-search {
    flex: 1 1 auto;
    max-width: 420px;
  }

  .info-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions {
    width: 100%;
  }

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

  .page-title {
    font-size: 22px;
  }

  .form-grid,
  .form-grid-3,
  .info-grid,
  .info-grid.cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .btn {
    flex: 1;
  }

  .phone-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(3n)::after {
    display: block;
  }

  .step:nth-child(2n)::after {
    display: none;
  }

  .user-chip-text {
    display: none;
  }

  .user-chip {
    padding: 4px;
    border: 0;
    background: transparent;
  }

  .topbar {
    gap: 8px;
  }

  .donut-wrap {
    gap: 16px;
  }

  .bar-chart {
    gap: 8px;
  }

  .request-row {
    flex-wrap: wrap;
  }

  .request-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 41px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 18px 12px 36px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi-grid.cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi-value {
    font-size: 24px;
  }

  .card-head,
  .card-body,
  .card-tabs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card-foot,
  .pager-row,
  .table-toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }

  .modal {
    max-height: 94vh;
    border-radius: 16px 16px 10px 10px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .phone-screen {
    height: 600px;
  }

  .profile-main {
    align-items: flex-start;
  }

  .profile-name {
    font-size: 17px;
  }

  .toolbar-note {
    display: none;
  }

  .select-wrap {
    flex: 1;
  }

  .select-wrap select {
    width: 100%;
  }

  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-actions,
  .sidebar-backdrop,
  .toast,
  .modal-backdrop {
    display: none !important;
  }

  .main {
    margin-left: 0;
  }

  .content {
    padding: 0;
  }

  body {
    background: #fff;
  }

  .card {
    box-shadow: none;
  }
}
