@font-face {
  font-family: "DM Sans";
  src: url("./DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./DMSans-Italic-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Stack;
  src: url("./StackSansNotch_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --navy: #003867;
  --blue: #27638b;
  --orange: #ed9a22;
  --ink: #123047;
  --muted: #607482;
  --line: #d9e3e7;
  --bg: #e9f0f4;
  --green: #2c7a5a;
  --radius: 9px;
  font-family: "DM Sans", Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--navy);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
h1,
h2,
h3,
.display,
.metric-value,
.brand {
  font-family: Stack, "DM Sans", sans-serif;
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  text-transform: uppercase;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--orange);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  top: 12px;
  left: 12px;
}
.brand-mark:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 8px;
  border-radius: 3px;
  right: -5px;
  top: 15px;
  background: var(--navy);
  transform: rotate(-35deg);
}
.brand-logo { display:block; width:240px; max-width:100%; height:auto; object-fit:contain; }
.brand-logo-monochrome, .brand-test-label { display:none; }
.auth-brand .brand-logo-primary, .sidebar .brand-logo-primary { display:none; }
.auth-brand .brand-logo-monochrome, .sidebar .brand-logo-monochrome { display:block; filter:brightness(0) invert(1); }
.auth-brand .brand-logo { width:300px; max-width:calc(100% - 56px); }
.sidebar .brand-logo { width:154px; }
.sidebar .brand.is-test .brand-logo { width:118px; }
.brand.is-test .brand-test-label { display:inline-flex; padding:4px 7px; border-radius:5px; font:700 11px/1 "DM Sans",sans-serif; letter-spacing:0.5px; background:#ffac19; color:#003867; flex-shrink:0; }
.brand-logo-primary { filter:brightness(0); }
.brand.is-test .brand-logo-primary { filter:none; }
.sidebar {
  width: 238px;
  background: var(--navy);
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 31px 19px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 11px;
}
.sidebar .subbrand {
  color: #a9c4d7;
  font-size: 10px;
  letter-spacing: 2.4px;
  padding: 10px 0 30px 58px;
}
.site-select {
  padding: 13px;
  background: #ffffff09;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 12px;
}
.site-select small {
  display: block;
  color: #a9c4d7;
  margin-top: 5px;
  font-size: 10px;
}
.nav-label {
  color: #8dadc6;
  padding: 0 13px;
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a, .nav-unavailable {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c7d9e5;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
}
.nav-unavailable { position:relative; color:#8795a1; cursor:not-allowed; }
.nav-unavailable .icon { opacity:0.65; }
.nav-development-tip { display:none; pointer-events:none; position:absolute; left:14px; top:100%; z-index:30; padding:8px 12px; border-radius:5px; background:#172b3b; color:#fff; font-size:13px; white-space:nowrap; box-shadow:0 3px 12px #0005; }
.nav-unavailable:hover .nav-development-tip, .nav-unavailable:focus .nav-development-tip { display:block; }
.nav-unavailable:focus-visible { outline:2px solid #ffac19; outline-offset:2px; }
.nav a:hover {
  background: #ffffff0c;
  color: white;
}
.nav a.active {
  background: #ffffff13;
  color: white;
  box-shadow: inset 3px 0 var(--orange);
}
.nav .badge {
  margin-left: auto;
  background: #ffffff16;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
}
.nav-separator {
  height: 27px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 12px 0;
}
.sidebar-bottom img {
  width: 126px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.sidebar-bottom p {
  color: #8dadc6;
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 0;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-shell {
  margin-left: 238px;
  min-height: 100vh;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 400;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.environment {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dceaf2;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
}
.profile small {
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 5px;
}
.icon-button:hover {
  background: var(--bg);
  color: var(--navy);
}
.content {
  max-width: 1600px;
  padding: 32px 38px 24px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.heading-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 10px 15px;
  min-height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.btn:hover {
  background: #f4f8fa;
  border-color: #b6c9d5;
}
.btn.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn.primary:hover {
  background: var(--blue);
}
.btn.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}
.btn.danger {
  color: #b6423d;
  border-color: #edd3d0;
}
.btn.small {
  padding: 6px 10px;
  min-height: 29px;
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 115px;
}
.filters label.date-filter {
  min-width: 125px;
  flex: 0.8;
}
.filters label span,
.field > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.filters input,
.filters select {
  width: 100%;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 11px;
  min-width: 0;
}
.filter-reset {
  background: transparent;
  border: 0;
  color: var(--blue);
  padding: 10px 3px;
  font-size: 11px;
}
.selection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: -8px 0 18px;
  gap: 15px;
}
.selection-note strong {
  color: var(--navy);
  font-weight: 600;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.metric.highlight {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.metric.highlight .metric-top,
.metric.highlight .metric-foot {
  color: #bed4e3;
}
.metric-top .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.metric.highlight .icon {
  color: var(--orange);
}
.metric-value {
  font-size: 34px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.metric-value span {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 5px;
  color: var(--muted);
}
.metric.highlight .metric-value span {
  color: #bed4e3;
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.metric-foot .positive {
  color: var(--green);
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 20px;
  margin-bottom: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 21px 22px 0;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.panel-head h2 {
  font-size: 19px;
}
.panel-body {
  padding: 22px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
.chart {
  padding: 20px 20px 10px;
  position: relative;
}
.chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}
.chart svg text {
  font:
    10px "DM Sans",
    sans-serif;
  fill: var(--muted);
}
.chart-note {
  padding: 0 22px 18px;
  font-size: 10px;
  color: var(--muted);
}
.donut-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 27px 22px 15px;
}
.donut {
  width: 137px;
  height: 137px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.donut:before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: white;
}
.donut-center {
  position: relative;
  text-align: center;
}
.donut-center strong {
  font-family: Stack, "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 27px;
  display: block;
}
.donut-center small {
  font-size: 10px;
}
.time-legend {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 11px;
  width: 100%;
}
.time-legend > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.time-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 7px;
}
.time-legend b {
  font-weight: 600;
}
.time-note {
  border-top: 1px solid var(--line);
  margin: 10px 22px 0;
  padding: 14px 0;
  font-size: 10px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--muted);
  background: #f6f8fa;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf1f4;
  font-size: 12px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #f9fbfc;
}
.table button.link {
  font-size: 12px;
}
.table .name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table .name-cell .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.table input[type="checkbox"] {
  accent-color: var(--navy);
  width: 15px;
  height: 15px;
}
.table-heading {
  padding-bottom: 20px;
}
.table-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  background: #eaf4ee;
  color: var(--green);
  font-weight: 600;
}
.pill.orange {
  background: #fff0da;
  color: #916018;
}
.pill.blue {
  background: #ebf3f7;
  color: var(--blue);
}
.pill.gray {
  background: #eef1f3;
  color: var(--muted);
}
.rig-tag {
  background: #edf3f7;
  color: var(--navy);
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.link {
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}
.progress {
  height: 5px;
  border-radius: 3px;
  background: #e9f0f4;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
}
.rig-row {
  display: grid;
  grid-template-columns: 45px 1fr 58px;
  gap: 14px;
  align-items: center;
  margin-bottom: 21px;
  font-size: 11px;
}
.rig-row:last-child {
  margin: 0;
}
.rig-row small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
.rig-row strong {
  text-align: right;
  font-weight: 600;
}
.notice {
  padding: 15px 18px;
  background: #fff4e3;
  border: 1px solid #f0d9b9;
  border-radius: 7px;
  color: #79531b;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice.info {
  background: #eef5f9;
  border-color: #d9e6ee;
  color: var(--blue);
}
.notice p {
  margin: 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  color: #85949f;
  font-size: 10px;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.empty .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.search {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: white;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 10px 0;
  min-width: 150px;
  color: var(--ink);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #dfe8ee;
  border-radius: 6px;
  padding: 4px;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 11px;
}
.tabs button.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 3px #1230470d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.entity-card {
  padding: 22px;
}
.entity-card[data-action] {
  cursor: pointer;
}
.entity-card[data-action]:hover {
  border-color: #a9c6d9;
}
.entity-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.entity-link:hover {
  color: var(--blue);
}
.hole-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 0;
}
.hole-stats dt {
  font-size: 11px;
  color: var(--muted);
}
.hole-stats dd {
  margin: 5px 0 0;
  font-size: 13px;
}
.hole-details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.hole-details p {
  font-size: 12px;
}
.hole-actions {
  margin-top: 12px;
}
.hole-actions .btn {
  width: auto;
  margin-top: 0;
}
.direction-error {
  color: #b6423d;
  background: #fff1ef;
  padding: 12px;
  border-radius: 6px;
}
.direction-ok {
  color: var(--green);
  padding: 12px;
  background: #eaf4ee;
  border-radius: 6px;
}
.entity-card .entity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entity-card h2 {
  margin: 16px 0 6px;
}
.entity-card .big {
  font-family: Stack;
  font-size: 30px;
  margin: 25px 0 8px;
}
.entity-card .facts {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 20px;
  font-size: 11px;
}
.entity-card .btn {
  width: 100%;
  margin-top: 20px;
}
.cards.active-hole-cards {
  grid-template-columns: minmax(0, 1fr);
}
.active-hole-cards .hole-stats {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.active-hole-cards .facts {
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.active-hole-cards .hole-actions .btn {
  width: auto;
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: block;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px;
  background: white;
  color: var(--ink);
  min-height: 39px;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.field small {
  display: block;
  line-height: 1.5;
  margin-top: 6px;
  font-size: 10px;
}
.span-2 {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}
.form-section {
  font-family: Stack;
  font-size: 19px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 4px;
  grid-column: 1/-1;
}
.form-error {
  color: #b6423d;
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
}
.form-error:not(:empty) {
  padding: 12px;
  background: #fff1ef;
  border-radius: 5px;
  margin-bottom: 12px;
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.formula {
  background: #f0f5f8;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 7px;
  margin: 24px 0;
  font-size: 12px;
  line-height: 1.8;
}
.formula strong {
  color: var(--navy);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 90px #001b3440;
}
dialog::backdrop {
  background: #001d38a6;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-head p {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 0;
}
.dialog-body {
  padding: 25px 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
}
.waiting-row {
  display: grid;
  grid-template-columns: 1fr 100px 32px;
  gap: 9px;
  margin-bottom: 9px;
}
.waiting-row input,
.waiting-row select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 100%;
  background: white;
  color: var(--ink);
}
.export-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  background: var(--navy);
  color: white;
  border-radius: 7px;
  padding: 14px 20px;
  box-shadow: 0 5px 25px #001b3420;
  max-width: min(420px, 90vw);
  font-size: 12px;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #a43b35;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Stack;
  font-size: 35px;
  gap: 20px;
}
.loading span {
  font-family: "DM Sans";
  font-size: 13px;
  color: var(--muted);
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr);
}
.auth-brand {
  background: var(--navy);
  color: white;
  padding: 50px clamp(30px, 4vw, 72px);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.auth-brand h1 {
  font-size: clamp(22px, 7.7cqw, 58px);
  line-height: 1.13;
  max-width: none;
}
.auth-brand h1 em {
  white-space: nowrap;
  font-style: normal;
  color: var(--orange);
}
.auth-brand p {
  color: #b8cfdf;
  max-width: 360px;
  font-size: 14px;
}
.auth-brand .strata {
  position: absolute;
  right: -80px;
  bottom: 0;
  width: 400px;
  height: 320px;
  opacity: 0.08;
  transform: rotate(-30deg);
  background: repeating-linear-gradient(
    0deg,
    transparent 0 26px,
    white 26px 28px
  );
  pointer-events: none;
}
.auth-brand .eyebrow {
  color: #8dadc6;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 370px;
}
.auth-form h2 {
  font-size: 29px;
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.auth-form .field {
  margin-bottom: 17px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}
.auth-form .fine {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 22px;
}
.auth.auth-centered {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  place-items:center;
  min-height:100dvh;
  padding:clamp(20px,4vw,48px);
  background:var(--navy);
  color:#fff;
}
.auth-centered .auth-card {
  width:min(100%,560px);
  padding:24px 0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.auth-centered .brand { justify-content:center; gap:10px; margin:0 auto 42px; }
.auth-centered .brand-logo-primary { display:none; }
.auth-centered .brand-logo-monochrome { display:block; filter:brightness(0) invert(1); width:520px; max-width:100%; }
.auth-centered .brand.is-test .brand-logo-monochrome { max-width:calc(100% - 54px); }
.auth-centered .brand.is-test .brand-test-label { display:inline-flex; }
.auth-centered .auth-form { width:100%; max-width:380px; margin:0 auto; }
.auth-centered .field > span { color:#e3edf4; font-size:16px; }
.auth-centered #auth-form .field > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.auth-centered input { background:#f7fafc; color:var(--navy); border-color:#ffffff80; font-size:18px; line-height:1.5; min-height:54px; padding:12px 16px; }
.auth-centered input::placeholder { color:#4c6274; opacity:1; }
.auth-centered input:focus-visible { outline:2px solid #ffac19; outline-offset:3px; }
.auth-centered .auth-form .btn.primary { background:#ffac19; color:var(--navy); border-color:#ffac19; font-size:18px; min-height:54px; }
.auth-centered .auth-form .btn.primary:hover { background:#ffc14d; border-color:#ffc14d; }
.auth-centered .form-error { color:#8b2520; font-size:16px; }
.auth-text-button { display:block; width:100%; margin-top:18px; padding:10px; border:0; background:transparent; color:#e3edf4; font:inherit; font-size:17px; min-height:44px; cursor:pointer; text-align:center; }
.auth-text-button:hover { color:#fff; text-decoration:underline; }
.auth-text-button:focus-visible { outline:2px solid #ffac19; outline-offset:2px; border-radius:4px; }
.auth-centered .auth-company-logo { display:block; width:150px; max-width:40%; height:auto; margin:34px auto 0; filter:brightness(0) invert(1); opacity:0.3; }
.auth-centered .auth-form .auth-reset-message { color:#e3edf4; font-size:17px; line-height:1.6; text-align:center; margin:0 0 22px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.menu-button {
  display: none;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.detail-facts > div {
  background: var(--bg);
  padding: 15px;
  border-radius: 6px;
}
.detail-facts strong {
  display: block;
  font-family: Stack;
  font-size: 22px;
  margin-top: 7px;
}
.audit-row {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row:last-child {
  border: 0;
}
.audit-row p {
  font-size: 12px;
  margin: 0;
}
.audit-row small {
  font-size: 10px;
}
.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 23px;
}
.cost-breakdown > div {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 7px;
}
.cost-breakdown small {
  font-size: 10px;
}
.cost-breakdown strong {
  display: block;
  font-family: Stack;
  font-size: 22px;
  margin-top: 9px;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 5px;
  margin: 7px 0;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 39px;
  }
  .metric {
    padding: 24px;
  }
  .metric-value {
    font-size: 40px;
  }
  .chart svg {
    height: 240px;
  }
  .donut-layout {
    padding-top: 35px;
    padding-bottom: 25px;
  }
  .donut {
    width: 155px;
    height: 155px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 210px;
  }
  .content {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 29px;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  }
  .donut-layout {
    gap: 16px;
    flex-direction: column;
  }
  .time-legend {
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .time-legend > div {
    gap: 5px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cost-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 10px 0 40px #001b3420;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .menu-button {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .environment {
    display: none;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .donut-layout {
    flex-direction: row;
  }
  .time-legend {
    flex-direction: column;
  }
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-brand {
    padding: 40px 30px;
    gap: 26px;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 22px 16px;
  }
  .topbar {
    padding: 0 12px;
  }
  .profile {
    padding-left: 0;
    border: 0;
  }
  .profile > div:not(.avatar) {
    display: none;
  }
  .topbar-right {
    gap: 4px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  h1 {
    font-size: 29px;
  }
  .heading-actions {
    width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-top {
    font-size: 10px;
    gap: 5px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .filters {
    padding: 13px;
    gap: 12px;
  }
  .filters label,
  .filters label.date-filter {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
  .selection-note {
    line-height: 1.5;
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .rates-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .form-section {
    grid-column: auto;
  }
  .panel-head {
    padding: 18px 16px 0;
  }
  .panel-body {
    padding: 18px 16px;
  }
  .table-heading {
    padding-bottom: 18px;
  }
  .table th,
  .table td {
    padding: 13px 15px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .legend {
    gap: 9px;
    font-size: 9px;
  }
  .chart {
    padding: 16px 10px 6px;
  }
  .footer {
    flex-direction: column;
    font-size: 9px;
  }
  .auth {
    display: block;
  }
  .auth-brand {
    padding: 25px;
  }
  .auth-brand h1 {
    margin: 30px 0 0;
  }
  .auth-brand p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .auth-brand .eyebrow {
    display: none;
  }
  .auth-form-wrap {
    padding: 30px 24px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .dialog-head {
    padding: 19px;
  }
  .dialog-body {
    padding: 19px;
  }
  .detail-facts {
    grid-template-columns: 1fr 1fr;
  }
  .cost-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .export-columns {
    grid-template-columns: 1fr;
  }
  .toolbar .search {
    width: 100%;
  }
  .toolbar .search input {
    width: 100%;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tabs button {
    padding: 8px 10px;
  }
  .selection-note > span:last-child {
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.sidebar-close {
  display: none;
}
.chart-tooltip {
  position: fixed;
  z-index: 200;
  max-width: min(310px, calc(100vw - 16px));
  padding: 12px 15px;
  border: 1px solid #ffffff30;
  border-radius: 7px;
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 24px #001b3430;
  font-size: 12px;
  line-height: 1.7;
}
.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}
.chart-tooltip strong {
  margin-bottom: 3px;
}
.chart-tooltip span {
  color: #d9e6ee;
}
[data-chart-tooltip] {
  cursor: help;
}
[data-chart-tooltip]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.progress[data-chart-tooltip] {
  position: relative;
  overflow: visible;
}
.progress[data-chart-tooltip]::after {
  content: "";
  position: absolute;
  inset: -9px 0;
}
.chart rect[data-chart-tooltip]:hover,
.donut-segment:hover {
  filter: brightness(1.15);
}
.donut::before {
  display: none;
}
.donut > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.donut-center {
  max-width: 70%;
}
.donut-segment {
  pointer-events: visibleStroke;
}
.recent-log {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 22px;
  border-top: 1px solid #edf1f4;
}
.recent-log-copy {
  flex: 1;
  min-width: 0;
}
.recent-log-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 6px;
}
.recent-log-copy p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.recent-log-copy small {
  font-size: 10px;
  font-weight: 400;
}
.recent-log-value {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}
.recent-log-value small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .sidebar {
    visibility: hidden;
    transition: none;
  }
  .sidebar.open {
    visibility: visible;
  }
  .sidebar-close {
    display: block;
    position: absolute;
    right: 9px;
    top: 7px;
    color: #c7d9e5;
  }
  .sidebar-close:hover {
    background: #ffffff15;
    color: white;
  }
}
@media (max-width: 600px) {
  .recent-log {
    padding: 17px 14px;
    gap: 9px;
  }
  .recent-log .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .recent-log-copy > div {
    font-size: 11px;
  }
  .recent-log-copy p {
    font-size: 10px;
  }
  .recent-log-copy small {
    font-size: 9px;
  }
  .recent-log .icon-button {
    padding: 3px;
  }
}
