:root {
  --ink: #172b4d;
  --muted: #60718c;
  --blue: #3158d5;
  --teal: #138980;
  --navy: #102843;
  --line: #e4eaf1;
  --canvas: #f5f7fb;
  --white: #fff;
  --radius: 15px;
  --shadow: 0 5px 22px #17305108;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body.large-text {
  font-size: 19px;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #edb345;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
.button {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.2;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
.small,
small {
  font-size: 0.8em;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: var(--teal);
  margin-bottom: 12px;
}
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86em;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  background: #edf2ff;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 9px #3158d51a;
}
.button.primary:hover {
  background: #2448be;
}
.button.teal {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
}
.button.danger {
  color: #ac3549;
  background: #fff3f4;
}
.button.full {
  width: 100%;
}
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.3rem;
}
.icon-button:hover {
  background: #edf1fa;
}
.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #c3cede;
  color: #647b9a;
  background: #f7faff;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  margin-left: 5px;
}
.pill {
  display: inline-flex;
  padding: 6px 10px;
  background: #edf2ff;
  color: #3158d5;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}
.pill.tiny {
  font-size: 0.59rem;
  padding: 3px 6px;
}
.pill.green {
  color: #087267;
  background: #e4f5ef;
}
.pill.orange {
  color: #92560c;
  background: #fff1da;
}
.pill.red {
  color: #b2344c;
  background: #fdebf0;
}
.pill.gray {
  color: #68768b;
  background: #f0f3f7;
}
.online-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #2bb69c;
  margin-right: 6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -4px;
  color: white;
  position: relative;
}
.brand-mark > span {
  font-size: 19px;
  position: absolute;
  right: -2px;
  top: 0;
  color: #6ee5ce;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 23px;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 1.5px;
  color: #9eb1ca;
  margin-top: 5px;
}
.workspace-label {
  margin: 0 22px 22px;
  padding: 12px 0;
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
  color: #b9c8da;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 3px;
}
.workspace-label .pill {
  margin-left: auto;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--navy);
  color: white;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
nav .nav-group {
  color: #7f99b6;
  font-size: 0.61rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin: 21px 26px 9px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bdcce0;
  padding: 12px 16px;
  margin: 3px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  min-height: 43px;
}
nav a:hover {
  background: #ffffff0a;
  color: #fff;
}
nav a.active {
  color: #fff;
  background: #ffffff13;
  box-shadow: inset 3px 0 #58d6bc;
}
nav svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  flex: none;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 20px 20px;
}
.support-card {
  display: block;
  background: #ffffff0a;
  border: 1px solid #ffffff0d;
  border-radius: 10px;
  padding: 14px;
  color: #dfe9f5;
}
.support-card span {
  font-size: 0.8rem;
  font-weight: 650;
}
.support-card small {
  display: block;
  font-size: 0.7rem;
  color: #a6bad2;
  margin: 7px 0 14px;
}
.support-card b {
  font-size: 0.7rem;
  color: #71dac8;
}
.erp-link {
  display: block;
  color: #a9bfd8;
  text-align: center;
  font-size: 0.75rem;
  padding-top: 20px;
}
.app-shell {
  margin-left: 244px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 83px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #bac4d2;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 8px;
  font-size: 0.75rem;
}
.user-block small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  max-width: 130px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 50%;
  background: #e8ecfb;
  color: #4b60ab;
  font-weight: 700;
}
.avatar.lg {
  width: 62px;
  height: 62px;
  font-size: 1.6rem;
  border-radius: 16px;
}
.larger {
  font-size: 1.3em;
}
#main {
  padding: 32px 36px;
  flex: 1;
  max-width: 1900px;
  width: 100%;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head p {
  color: var(--muted);
  font-size: 0.88em;
  margin-bottom: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  font-size: 0.67rem;
  color: #7b8ba2;
}
.app-footer b {
  font-weight: 400;
  margin-left: 10px;
}
.hero {
  background: linear-gradient(110deg, #153d58, #1c5260);
  padding: 27px 30px;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 45px solid #ffffff04;
  border-radius: 50%;
  right: 80px;
  top: -140px;
  pointer-events: none;
}
.hero p {
  color: #c8dce4;
  font-size: 0.88em;
  max-width: 640px;
  margin-bottom: 0;
}
.hero h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.hero .eyebrow {
  color: #83dccd;
}
.hero .button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.metric-label {
  color: var(--muted);
  font-size: 0.78em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 15px 0 8px;
}
.metric-foot {
  font-size: 0.7em;
  color: var(--muted);
}
.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: var(--blue);
}
.metric-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 10px;
}
.card-head h2 {
  font-size: 1rem;
  margin: 0;
}
.card-head p {
  font-size: 0.74em;
  color: var(--muted);
  margin: 6px 0 0;
}
.card-head a {
  font-size: 0.75em;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  border-bottom: 1px solid var(--line);
  padding: 5px 12px 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 49px,
    #edf1f6 49px,
    #edf1f6 50px
  );
}
.chart-col {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.chart-col b {
  font-size: 0.75rem;
  margin-bottom: 5px;
  color: #536783;
}
.chart-col .bar {
  background: linear-gradient(#6382e8, #4467db);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  max-width: 55px;
  width: 100%;
  margin: 0 auto;
}
.chart-labels {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.65rem;
  text-align: center;
  color: var(--muted);
}
.chart-labels span {
  flex: 1;
  overflow-wrap: anywhere;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 210px;
}
.donut {
  width: 160px;
  flex: none;
  position: relative;
}
.donut svg {
  width: 100%;
  transform: rotate(-90deg);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}
.donut-center small {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
}
.legend {
  font-size: 0.75em;
  line-height: 2.6;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 8px;
}
.legend b {
  margin-left: 20px;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86em;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eff4fa;
  color: #8fa4bf;
  margin: 0 auto 15px;
}
.empty-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 9px;
}
.empty p {
  max-width: 480px;
  margin: 0 auto 18px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
}
.filters label {
  font-size: 0.7em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filters input,
.filters select {
  min-height: 40px;
  font-size: 0.9em;
}
.searchbox {
  flex: 1;
  min-width: 180px;
}
.searchbox input {
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #ced8e5;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #5372dc;
  box-shadow: 0 0 0 3px #5372dc13;
}
input:disabled,
select:disabled {
  background: #f1f4f9;
  color: #68798f;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
  text-align: left;
}
th {
  font-size: 0.75em;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--muted);
  padding: 14px 12px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fafcff;
}
.table-client {
  display: flex;
  align-items: center;
  gap: 11px;
}
.table-client small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.table-client b {
  font-weight: 600;
}
.table-client .avatar {
  font-size: 0.8rem;
  width: 34px;
  height: 34px;
}
.table-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 1em;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 7px;
}
.table-action:hover {
  background: #eaf0ff;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(205px, 1fr));
  gap: 15px;
  overflow: auto;
  padding-bottom: 15px;
  min-height: 450px;
}
.kanban-col {
  background: #eef2f8;
  padding: 14px;
  border-radius: 12px;
  min-height: 400px;
}
.kanban-title {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
}
.kanban-title b {
  margin-left: auto;
  color: #637593;
  font-size: 0.7rem;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
}
.kanban-item {
  background: white;
  padding: 17px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 3px 7px #142b4505;
  cursor: pointer;
}
.kanban-item h3 {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 9px;
}
.kanban-item p {
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 13px;
}
.kanban-item strong {
  font-size: 0.95rem;
}
.kanban-item .kanban-meta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
}
.col-add {
  border: 1px dashed #b7c5d8;
  border-radius: 8px;
  min-height: 42px;
  width: 100%;
  background: transparent;
  color: #667e9b;
  font-size: 0.75rem;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
  overflow: auto;
}
.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 15px 18px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.82em;
}
.tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 650;
}
.client-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}
.client-hero h1 {
  font-size: 1.6rem;
}
.client-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8em;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.detail-field span {
  font-size: 0.69em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.detail-field b {
  font-size: 0.87em;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.timeline-item {
  display: flex;
  gap: 13px;
  border-left: 2px solid #e6edf6;
  padding: 0 0 22px 20px;
  margin-left: 7px;
  position: relative;
}
.timeline-item:before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: -6px;
  top: 5px;
  background: #6d8ce2;
  border: 3px solid white;
  border-radius: 50%;
  box-sizing: content-box;
}
.timeline-item h3 {
  font-size: 0.84em;
  margin-bottom: 5px;
}
.timeline-item p {
  font-size: 0.75em;
  color: var(--muted);
  margin: 0;
}
.timeline-item time {
  font-size: 0.65em;
  color: #8191a8;
}
.notice {
  padding: 17px 19px;
  background: #eef6fb;
  border: 1px solid #dceaf5;
  border-radius: 10px;
  font-size: 0.8em;
  line-height: 1.6;
  margin: 16px 0;
  color: #355777;
}
.notice p {
  margin: 7px 0 0;
}
.notice.warning {
  background: #fff8eb;
  border-color: #f2e4c5;
  color: #826324;
}
.notice.success {
  background: #eaf7f2;
  border-color: #d0ebdf;
  color: #276e58;
}
.notice.error {
  background: #fff0f2;
  border-color: #f1cdd5;
  color: #a12f49;
}
.record-list .record-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.record-row .record-text {
  flex: 1;
}
.record-row h3 {
  font-size: 0.85em;
  margin: 0 0 6px;
}
.record-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74em;
}
.record-date {
  background: #f1f5fc;
  border-radius: 9px;
  width: 46px;
  min-width: 46px;
  text-align: center;
  padding: 8px;
  color: var(--blue);
  font-size: 0.7rem;
}
.record-date b {
  display: block;
  font-size: 1.25rem;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.calendar-toolbar h2 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: capitalize;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.calendar-dayname {
  text-align: center;
  padding: 13px 4px;
  background: #f7f9fd;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 650;
}
.calendar-cell {
  min-height: 130px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 9px;
  background: #fff;
  overflow: hidden;
}
.calendar-cell:nth-child(7n) {
  border-right: 0;
}
.calendar-cell.outside {
  background: #fafbfe;
  color: #a9b5c6;
}
.day-number {
  display: inline-flex;
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: inherit;
}
.day-number.today {
  background: var(--blue);
  color: white;
}
.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid #5176db;
  border-radius: 4px;
  background: #eaf0ff;
  color: #3456a8;
  padding: 6px;
  margin: 5px 0;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event.task {
  background: #e6f5ee;
  color: #26765e;
  border-color: #52a88a;
}
.calendar-event.done {
  opacity: 0.5;
  text-decoration: line-through;
}
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.calendar-week > div {
  min-height: 400px;
  padding: 12px;
  border-right: 1px solid var(--line);
}
.calendar-week h3 {
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  background: #f4f7fc;
  border-radius: 6px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.report-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  text-align: left;
  color: var(--ink);
}
.report-tile:hover {
  border-color: #91a6e7;
  box-shadow: var(--shadow);
}
.report-tile .report-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #edf2ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
}
.report-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.report-tile h3 {
  margin-bottom: 8px;
}
.report-tile p {
  color: var(--muted);
  font-size: 0.76em;
  margin-bottom: 15px;
}
.report-tile small {
  color: var(--blue);
  font-weight: 600;
}
.horizontal-bar {
  display: grid;
  grid-template-columns: 140px 1fr 55px;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.75em;
}
.horizontal-bar .track {
  height: 10px;
  background: #eff3f8;
  border-radius: 7px;
  overflow: hidden;
}
.horizontal-bar .fill {
  background: #6281dc;
  height: 100%;
  border-radius: 7px;
}
.horizontal-bar b {
  text-align: right;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.guide-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
}
.guide-step .step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: #edf3ff;
  color: #4e6bcc;
  font-weight: 700;
  margin-bottom: 16px;
}
.guide-step p {
  font-size: 0.85em;
  color: var(--muted);
}
details {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 12px;
  background: #fff;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  min-height: 27px;
}
details p,
details li {
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.8;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 30px);
  max-height: 92vh;
  box-shadow: 0 25px 100px #10284333;
  color: var(--ink);
}
dialog::backdrop {
  background: #10284380;
  backdrop-filter: blur(3px);
}
.modal-header {
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}
.modal-header h2 {
  margin: 0;
}
.modal-header .eyebrow {
  font-size: 0.58rem;
  display: block;
  margin-bottom: 7px;
}
#modal-content {
  padding: 24px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field label {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field small {
  display: block;
  color: var(--muted);
  font-size: 0.7em;
  margin-top: 6px;
  line-height: 1.5;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-section {
  grid-column: 1/-1;
  border-bottom: 1px solid var(--line);
  padding: 13px 0 10px;
  font-size: 0.9em;
  color: var(--teal);
  font-weight: 650;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.form-error {
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.loading-panel {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e3eaf7;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: white;
  padding: 15px 23px;
  border-radius: 10px;
  box-shadow: 0 10px 35px #162d4d33;
  z-index: 100;
  font-size: 0.85em;
  max-width: 90vw;
  transition: transform 0.2s;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
#tooltip {
  position: fixed;
  max-width: 300px;
  background: #142b46;
  color: white;
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px #142b4625;
  z-index: 150;
  pointer-events: none;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 10px;
  background: white;
  color: var(--blue);
  padding: 14px;
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
.mobile-only {
  display: none;
}
.login-page {
  background: #fff;
}
.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}
.login-story {
  padding: 65px 10%;
  background: linear-gradient(135deg, #0d2843, #124b58);
  color: white;
  position: relative;
  overflow: hidden;
}
.login-story .brand-mark {
  margin-bottom: 75px;
}
.login-story .eyebrow {
  color: #76d8c7;
}
.login-story h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  line-height: 1.15;
  margin: 22px 0 27px;
  position: relative;
  z-index: 1;
}
.login-story em {
  font-style: normal;
  color: #72d5c3;
}
.login-story > p {
  color: #bed0e1;
  max-width: 470px;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}
.login-points {
  margin-top: 55px;
  position: relative;
  z-index: 1;
}
.login-points > div {
  display: flex;
  gap: 19px;
  margin: 25px 0;
}
.login-points b {
  color: #76d8c7;
  font-size: 0.8rem;
  padding-top: 3px;
}
.login-points span {
  font-size: 0.92rem;
}
.login-points small {
  display: block;
  color: #99b4cb;
  margin-top: 7px;
  font-size: 0.76rem;
}
.orbit {
  position: absolute;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  width: 650px;
  height: 650px;
  right: -380px;
  bottom: -230px;
}
.orbit-b {
  width: 450px;
  height: 450px;
  right: -280px;
  bottom: -130px;
  border: 45px solid #ffffff03;
}
.login-card {
  align-self: center;
  justify-self: center;
  max-width: 450px;
  padding: 35px;
}
.login-logo {
  display: block;
  width: 190px;
  margin-bottom: 25px;
}
.login-card > .pill {
  margin-bottom: 24px;
}
.login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.login-card > p {
  color: var(--muted);
  font-size: 0.92rem;
}
.login-card > .button {
  margin: 14px 0 12px;
  justify-content: space-between;
}
.login-card .text-link {
  display: block;
  text-align: center;
  margin-top: 25px;
  font-size: 0.8rem;
}
.large-text .nav-group,
.large-text nav a,
.large-text .card-head h2,
.large-text .calendar-event,
.large-text th,
.large-text td {
  font-size: 1em;
}
.large-text .topbar {
  height: auto;
  min-height: 90px;
}
.large-text .calendar-cell {
  min-height: 155px;
}
.large-text .user-block {
  font-size: 0.85em;
}
@media (min-width: 1600px) {
  #main {
    padding: 38px 48px;
  }
  .metrics {
    gap: 23px;
  }
  .metric {
    padding: 26px;
  }
}
@media (max-width: 1250px) {
  #sidebar {
    width: 215px;
  }
  .app-shell {
    margin-left: 215px;
  }
  #main {
    padding: 25px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-block > span:last-child {
    display: none;
  }
  .grid-2 {
    grid-template-columns: 1.3fr 1fr;
  }
  .donut-wrap {
    gap: 10px;
  }
  .donut {
    width: 135px;
  }
  .legend b {
    margin-left: 8px;
  }
}
@media (max-width: 900px) {
  #sidebar {
    transform: translateX(-100%);
    width: 244px;
    transition: transform 0.2s;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    height: 70px;
    padding: 0 15px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    gap: 3px;
  }
  #main {
    padding: 20px;
  }
  .grid-2,
  .grid-equal {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 24px;
  }
  .calendar-cell {
    min-height: 100px;
    padding: 4px;
  }
  .calendar-event {
    font-size: 0.6rem;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .login-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-card {
    padding: 32px;
    max-width: 500px;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 1.6rem;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 1.6rem;
  }
  .metric-label {
    font-size: 0.72rem;
  }
  .metric-icon {
    display: none;
  }
  .hero {
    display: block;
  }
  .hero .button {
    margin-top: 18px;
  }
  .report-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full,
  .form-section {
    grid-column: auto;
  }
  .card {
    padding: 18px;
  }
  .top-actions #help-page {
    font-size: 0;
  }
  .top-actions #help-page:after {
    content: "?";
    font-size: 20px;
  }
  .calendar-cell {
    min-height: 85px;
  }
  .calendar-event {
    padding: 4px 2px;
    min-height: 27px;
  }
  .calendar-dayname {
    font-size: 0.6rem;
  }
  .calendar-toolbar {
    gap: 10px;
  }
  .horizontal-bar {
    grid-template-columns: 90px 1fr 45px;
  }
  .user-block {
    padding-left: 8px;
    margin-left: 3px;
  }
  .modal-header,
  #modal-content {
    padding: 20px;
  }
  .client-hero {
    align-items: flex-start;
  }
  .client-hero h1 {
    font-size: 1.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  #sidebar,
  .topbar,
  .app-footer,
  .actions,
  .filters,
  dialog,
  #toast {
    display: none !important;
  }
  .app-shell {
    margin: 0;
  }
  #main {
    padding: 0;
  }
  .card,
  .metric {
    box-shadow: none;
    break-inside: avoid;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  body {
    background: white;
  }
  .grid-2,
  .grid-equal {
    display: block;
  }
  .card {
    margin-bottom: 20px;
  }
}
