/* Client styles: shadowed declarations removed; cascade order retained. */
:root {
  --line: #e4ebf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0px;
  background: var(--bg);
  color: var(--ink);
  font: 14px / 1.6 "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  color: var(--ink);
}

button:hover {
  background: rgb(237, 245, 248);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.primary {
  background: var(--green);
  color: rgb(255, 255, 255);
  border-color: var(--green);
}

.primary:hover {
  background: rgb(72, 157, 87);
}

header {
  background: var(--nav);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
}

.brand img {
  object-fit: contain;
  background: rgb(255, 255, 255);
}

nav {
  display: flex;
  align-self: stretch;
}

nav button {
  background: transparent;
  border: 0px;
  border-radius: 0px;
  color: rgb(220, 230, 238);
}

nav button.active {
  background: rgb(255, 255, 255);
  color: var(--nav);
}

.account {
  margin-left: auto;
}

main {
  margin: auto;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0px;
}

h1 {
  font-size: 26px;
  margin: 4px 0px;
  font-weight: 600;
}

p {
  margin: 6px 0px;
  color: var(--muted);
}

.tabs {
  display: flex;
  margin-bottom: 20px;
}

.tabs button {
  border: 0px;
  background: transparent;
}

.tabs button.active {
  color: rgb(255, 255, 255);
}

.panel {
  background: white;
}

.search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search input {
  max-width: 440px;
  flex: 1 1 0%;
}

input, select, textarea {
  border: 1px solid rgb(216, 227, 235);
  background: rgb(255, 255, 255);
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 5px;
  min-width: 0px;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}

th {
  font-size: 12px;
  background: rgb(247, 250, 252);
}

td, th {
  padding: 15px 12px;
  border-bottom: 1px solid rgb(237, 241, 244);
}

td {
  font-size: 13px;
}

td button {
  border: 0px;
  color: var(--blue);
  padding: 0px;
  background: none;
}

.badge {
  background: rgb(234, 245, 238);
  color: rgb(67, 132, 83);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
}

.foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

dialog {
  position: fixed;
  inset: 0px 0px 0px auto;
  margin: 0px;
  height: 100dvh;
  max-height: 100dvh;
  border: 0px;
  padding: 0px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: rgba(21, 44, 67, 0.125) -12px 0px 40px;
}

dialog[open] {
  animation: 0.48s cubic-bezier(0.2, 0.7, 0.2, 1) 0s 1 normal none running slide;
}

dialog::backdrop {
  background: rgba(21, 44, 67, 0.333);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(255, 255, 255);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0px;
  z-index: 1;
}

.drawer-head h2 {
  margin: 0px;
}

.drawer-head button {
  border: 0px;
  font-size: 24px;
  padding: 0px 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.grid label {
  font-size: 13px;
}

.grid label span {
  display: block;
  margin-bottom: 5px;
}

.wide {
  grid-column: 1 / -1;
}

h3 {
  font-size: 15px;
  margin: 0px 0px 16px;
}

.form-section {
  margin-bottom: 20px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
}

.detail-grid .panel {
  margin-bottom: 18px;
}

dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 13px;
}

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

dd {
  margin: 0px;
  overflow-wrap: anywhere;
}

.timeline {
  border-left: 1px solid rgb(181, 214, 203);
}

.event {
  position: relative;
  padding-bottom: 24px;
}

.event::before {
  content: "";
  position: absolute;
  border: 2px solid var(--green);
  background: rgb(255, 255, 255);
  border-radius: 50%;
  top: 7px;
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav);
  color: rgb(255, 255, 255);
  padding: 12px 22px;
  border-radius: 8px;
  z-index: 10;
  display: none;
}

@keyframes slide { 
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: auto ease 0s 1 normal none running none;
  }
}

@media (max-width: 700px) {
  header {
    gap: 14px;
    padding: 0px 15px;
  }

  .brand span, .account {
    display: none;
  }

  .grid, .detail-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  #drawer-body {
    padding: 16px;
  }

  .heading {
    gap: 12px;
  }

  h1 {
    font-size: 23px;
  }

  .panel {
    padding: 14px;
  }
}

:root {
  --nav: #2c4050;
  --ink: #5d7184;
  --muted: #8b9aa8;
  --green: #62b165;
  --blue: #087db8;
  --bg: #f5f8fc;
}

body {
  font-size: 13px;
}

header {
  height: 50px;
  padding: 0px 22px 0px 0px;
  gap: 0px;
}

.brand {
  width: 180px;
  justify-content: center;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  display: none;
}

nav {
  gap: 0px;
}

nav button {
  min-width: 110px;
  padding: 0px 25px;
  font-size: 13px;
}

.heading {
  background: rgb(255, 255, 255);
  box-shadow: rgba(39, 56, 73, 0.063) 0px 2px 7px;
  margin: 0px;
  padding: 6px 20px;
}

.heading h1 {
  margin: 0px;
  color: rgb(100, 123, 142);
}

.heading-location {
  font-size: 12px;
  color: rgb(130, 144, 157);
}

main {
  max-width: none;
}

button {
  padding: 5px 12px;
  border-radius: 4px;
}

.filter-panel {
  background: rgb(255, 255, 255);
}

.filter-grid {
  display: grid;
}

.filter-pair {
  display: flex;
  min-width: 0px;
}

.filter-pair > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.filter-pair input, .filter-pair select {
  padding: 0px 10px;
  font-size: 12px;
}

.filter-pair input::placeholder {
  color: rgb(175, 187, 198);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.filter-buttons button {
  flex: 1 1 0%;
}

.filter-buttons #reset {
  background: rgb(245, 246, 247);
}

.action-bar {
  display: flex;
}

.action-bar button {
  background: rgb(64, 88, 100);
  color: white;
  border: 0px;
}

.tabs {
  gap: 0px;
  margin: 0px;
  background: white;
  border-bottom: 3px solid rgb(237, 85, 79);
  flex-wrap: nowrap;
  overflow: auto;
}

.tabs button {
  border-radius: 0px;
  white-space: nowrap;
}

.tabs button.active {
  background: rgb(237, 85, 79);
}

.panel {
  border-radius: 9px;
  padding: 16px;
  box-shadow: none;
}

.list-panel {
  padding: 0px;
  border-radius: 0px 0px 8px 8px;
  overflow: hidden;
}

th, td {
  padding: 10px 8px;
  font-size: 12px;
}

th {
  color: rgb(93, 113, 132);
  font-weight: 500;
}

tbody tr:hover {
  background: rgb(239, 248, 251);
}

.sub {
  margin-top: 3px;
}

.note-cell {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination {
  text-align: right;
  background: var(--bg);
  padding: 15px 8px;
  margin: 0px;
}

.empty {
  padding: 46px 12px;
  font-size: 12px;
}

dialog {
  width: 85vw;
  max-width: 85vw;
}

.drawer-head {
  padding: 12px 18px;
  min-height: 50px;
}

.drawer-head h2 {
  font-size: 15px;
  font-weight: 400;
}

#drawer-body {
  padding: 16px;
}

.detail-grid {
  grid-template-columns: 3fr 1fr;
  gap: 14px;
}

.detail-grid h3, .form-section h3, #order-form > .panel h3 {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.grid {
  gap: 14px 26px;
}

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

.grid label span {
  width: 95px;
  flex: 0 0 auto;
  text-align: right;
  margin: 0px;
  font-size: 12px;
}

.grid input, .grid select {
  height: 32px;
  padding: 0px 9px;
  font-size: 12px;
}

.grid textarea {
  font-size: 12px;
}

.timeline {
  padding-left: 18px;
  margin: 18px 4px;
}

.event::before {
  left: -24px;
  width: 7px;
  height: 7px;
  border-color: var(--blue);
}

.event strong {
  font-weight: 400;
}

.event p {
  font-size: 12px;
}

.actions {
  position: sticky;
  bottom: 0px;
  background: rgb(255, 255, 255);
  padding: 12px;
  border-top: 1px solid var(--line);
  justify-content: center;
}

.actions button {
  min-width: 150px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%238b9aa8' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 28px !important;
}

@media (max-width: 1000px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 700px) {
  header {
    padding-right: 12px;
  }

  .brand {
    width: 65px;
    flex: 0 0 auto;
  }

  nav button {
    min-width: 90px;
    padding: 0px 14px;
  }

  .heading {
    padding: 6px 12px;
  }

  .heading h1 {
    font-size: 21px;
  }

  .heading-location {
    display: none;
  }

  main {
    padding: 12px;
  }

  .filter-pair > span {
    width: 36%;
    font-size: 11px;
  }

  .filter-pair input, .filter-pair select {
    padding-left: 5px;
    font-size: 11px;
  }

  dialog {
    width: 100%;
    max-width: 100%;
  }

  .detail-grid, .grid {
    grid-template-columns: 1fr;
  }

  .grid label span {
    width: 85px;
  }

  .drawer-head h2 {
    overflow-wrap: anywhere;
  }

  .notice {
    padding: 4px 12px;
  }
}

.business-toolbar {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: white;
  padding: 20px 12px;
  margin-bottom: 14px;
  border-radius: 9px;
  text-align: center;
}

.summary-strip strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: rgb(82, 107, 126);
}

.summary-strip span {
  display: block;
  font-size: 12px;
  color: rgb(139, 154, 168);
  margin-top: 5px;
}

.basic-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 165px;
}

.basic-columns h4 {
  font-weight: 500;
  margin: 4px 0px 12px;
}

.basic-columns p {
  font-size: 12px;
  color: rgb(115, 133, 149);
  overflow-wrap: anywhere;
}

.business-section {
  margin-bottom: 14px;
}

.business-section h3, .business-bottom h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-weight: 500;
}

.business-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.upload-button {
  float: right;
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
}

.business-bottom button {
  margin: 8px 4px 0px 0px;
}

#ticket-form {
  padding-top: 15px;
}

#ticket-form textarea {
  margin-top: 7px;
}

.business-bottom .empty {
  padding: 24px;
}

.business-bottom td {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .summary-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .basic-columns, .business-bottom {
    grid-template-columns: 1fr;
  }

  .summary-strip strong {
    font-size: 15px;
  }
}

.nav-group {
  position: relative;
  display: flex;
}

.nav-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-trigger i {
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  margin-top: -3px;
}

.nav-group.open .nav-trigger {
  background: white;
  color: var(--nav);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0px;
  min-width: 190px;
  z-index: 15;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  border-radius: 0px 0px 9px 9px;
  box-shadow: rgba(35, 60, 80, 0.125) 0px 10px 24px;
  padding: 6px;
}

.nav-group.open .nav-menu {
  display: block;
}

.nav-menu button {
  display: block;
  text-align: left;
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  color: var(--ink);
  border-radius: 4px;
}

.nav-menu button:hover, .nav-menu button.active {
  background: rgb(237, 245, 248);
  color: var(--blue);
}

.related-orders {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.related-orders button {
  font-size: 12px;
  color: var(--blue);
}

@media (max-width: 700px) {
  .nav-menu {
    min-width: 155px;
  }
}

header > nav {
  flex: 1 1 0%;
}

header > nav > .nav-group:last-child .nav-menu {
  left: auto;
  right: 0px;
}

header > nav > .nav-group:last-child .nav-trigger {
  min-width: 140px;
}

@media (max-width: 700px) {
  header > nav > .nav-group:last-child .nav-trigger {
    min-width: 85px;
  }

  .nav-utility {
    margin-left: 0px;
  }

  .nav-trigger {
    min-width: 60px !important;
    padding: 0px 8px !important;
  }
}

body > header {
  height: 50px;
  background: rgb(46, 67, 82);
  padding: 0px 40px 0px 0px;
  position: relative;
  z-index: 20;
}

body > header .brand {
  width: 180px;
  flex: 0 0 180px;
}

body > header .brand img {
  width: 36px;
  height: 36px;
}

body > header nav {
  height: 50px;
}

body > header .nav-trigger {
  height: 50px;
  min-width: 120px;
  padding: 0px 28px;
  gap: 4px;
  font-size: 12px;
  color: rgb(255, 255, 255);
  white-space: nowrap;
}

body > header .client-nav-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

body > header .nav-trigger i {
  width: 5px;
  height: 5px;
  margin-left: 2px;
  margin-top: -3px;
}

body > header .nav-group.selected > .nav-trigger, body > header .nav-group.open > .nav-trigger {
  background: rgb(255, 255, 255);
  color: rgb(104, 121, 130);
}

body > header .nav-group:last-child .nav-trigger {
  min-width: 190px;
}

body > header .nav-menu {
  padding: 5px 0px;
  min-width: 180px;
  border-radius: 0px 0px 5px 5px;
}

body > header .nav-menu button {
  font-size: 12px;
  padding: 8px 18px;
  height: 36px;
  border-radius: 0px;
}

.heading {
  height: 50px;
}

.heading h1 {
  font-size: 24px;
  font-weight: 400;
}

.heading-location {
  display: none;
}

.notice {
  margin-top: 24px;
  text-align: center;
  background: rgb(237, 241, 245);
  color: rgb(123, 135, 145);
  font-size: 11px;
  padding: 8px 12px;
}

@media (max-width: 700px) {
  body > header {
    padding: 0px;
  }

  body > header .brand {
    width: 55px;
    flex-basis: 55px;
  }

  body > header .nav-trigger {
    min-width: 60px;
    padding: 0px 8px;
  }

  body > header .nav-group:last-child .nav-trigger {
    min-width: 85px;
  }

  body > header .client-nav-icon {
    width: 11px;
    height: 11px;
  }
}

main {
  padding: 18px 4px 40px;
}

.filter-panel {
  border-radius: 0px;
  box-shadow: none;
  padding: 8px;
  margin-bottom: 18px;
}

.filter-grid {
  grid-template-columns: repeat(5, minmax(0px, 1fr));
  gap: 8px 18px;
}

.filter-pair {
  height: 30px;
}

.filter-pair > span {
  width: 34%;
  background: rgb(238, 238, 238);
  border-radius: 0px;
}

.filter-pair input, .filter-pair select {
  height: 30px;
  border-radius: 0px;
  width: 66%;
}

.keyword-pair > select {
  width: 34%;
  background-color: rgb(238, 238, 238);
  border: 0px;
  color: var(--ink);
  font-size: 12px;
  padding-left: 25px;
}

.client-dates {
  width: 66%;
  display: flex;
  align-items: center;
  border: 1px solid rgb(216, 227, 235);
  background: rgb(255, 255, 255);
  min-width: 0px;
  padding: 0px 6px;
  gap: 3px;
}

.client-dates input {
  border: 0px !important;
  padding: 0px 2px !important;
  font-size: 11px !important;
}

.client-dates b {
  font-weight: 400;
  color: rgb(176, 184, 192);
}

.client-dates > span {
  color: rgb(176, 184, 192);
  font-size: 12px;
}

.filter-buttons button {
  height: 29px;
  border-radius: 0px;
  font-size: 12px;
  padding: 0px;
}

.action-bar {
  gap: 0px;
  margin-bottom: 8px;
}

.action-bar button {
  height: 26px;
  padding: 0px 8px;
  border-radius: 0px;
  font-size: 11px;
}

.tabs button {
  font-size: 11px;
  min-width: 79px;
  padding: 10px 12px;
}

.heading {
  padding-left: 4px;
}

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

@media (max-width: 700px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 8px;
  }

  .client-dates {
    padding: 0px 2px;
  }

  .client-dates > span {
    display: none;
  }

  .keyword-pair > select {
    padding-left: 5px;
  }

  .action-bar {
    flex-wrap: wrap;
  }
}

#drawer:has(.reference-order), #drawer:has(.client-import) {
  background: rgb(255, 255, 255);
}

.reference-order .order-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  padding: 0px 10% 30px 1.5%;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
}

.order-row > span {
  width: 135px;
  flex: 0 0 auto;
  text-align: right;
}

.order-row em {
  font-style: normal;
  color: rgb(243, 90, 88);
}

.order-row > input, .order-row > select {
  height: 32px;
  border-radius: 0px;
  flex: 1 1 0%;
}

.order-row > div, .order-row > textarea {
  flex: 1 1 0%;
  min-width: 0px;
}

.order-columns h3 {
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid rgb(214, 218, 221);
  padding: 4px 0px;
  margin: 25px 0px;
}

.address-triple {
  display: flex;
}

.address-triple input {
  width: 33.333%;
  padding: 6px;
  border-radius: 0px;
  font-size: 12px;
}

.flags-row {
  align-items: flex-start;
}

.flags-row label {
  display: block;
  line-height: 21px;
}

.flags-row input, .insurance input {
  width: auto;
}

.insurance {
  display: flex;
  gap: 0px;
}

.insurance label {
  border: 1px solid var(--line);
  padding: 6px 20px;
}

.order-row textarea {
  min-height: 60px;
  border-radius: 0px;
}

.client-cargo {
  margin: 0px 30px 30px;
}

.client-cargo summary {
  cursor: pointer;
  margin-bottom: 15px;
}

.reference-order .actions {
  margin: 0px -16px -16px;
  gap: 16px;
}

.reference-order .actions button {
  width: 26%;
  border-radius: 0px;
}

.client-dates input {
  flex: 1 1 0%;
  min-width: 0px;
  width: 0px !important;
}

.client-dates {
  overflow: hidden;
}

.nav-utility {
  margin-left: auto !important;
}

@media (max-width: 900px) {
  .reference-order .order-columns {
    padding: 0px;
    gap: 25px;
  }

  .order-row > span {
    width: 95px;
  }
}

@media (max-width: 700px) {
  .reference-order .order-columns {
    grid-template-columns: 1fr;
  }

  .order-row {
    margin-bottom: 16px;
  }
}

.client-import {
  display: flex;
  gap: 12px;
  max-width: 780px;
  margin: 0px auto;
  min-height: calc(100dvh - 180px);
  padding-top: 6px;
  font-size: 12px;
}

.client-import > span {
  padding-top: 9px;
  min-width: 85px;
  text-align: right;
}

.template-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.template-links button {
  border: 0px;
  color: rgb(8, 125, 184);
  padding: 7px 0px;
  background: none;
  font-size: 12px;
}

.import-upload {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px dashed rgb(215, 215, 215);
  background: rgb(250, 250, 250);
  color: rgb(204, 204, 204);
  font-size: 54px;
  position: relative;
  cursor: pointer;
}

.import-upload input {
  position: absolute;
  inset: 0px;
  opacity: 0;
  cursor: pointer;
}

.client-import + .actions button {
  width: 26%;
}

.actions button:disabled {
  background: rgb(185, 197, 185);
  color: rgb(255, 255, 255);
  cursor: not-allowed;
}

.client-import p {
  max-width: 580px;
  overflow-wrap: anywhere;
}

body > header > nav {
  min-width: 0px;
}

body > header > nav > .nav-group {
  flex-shrink: 0;
}

body > header > nav > .nav-group > .nav-menu {
  max-width: calc(-16px + 100vw);
}

@media (max-width: 480px) {
  body > header .client-nav-icon {
    display: none;
  }

  body > header .nav-utility > .nav-menu {
    left: auto;
    right: 0px;
  }
}

.client-home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.client-home-stat {
  position: relative;
  background: rgb(255, 255, 255);
  border: 0px;
  border-radius: 0px;
  height: 84px;
  padding: 14px 24px 23px;
  text-align: left;
  color: rgb(122, 122, 122);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-home-stat strong {
  font: 600 20px / 25px Arial, sans-serif;
}

.client-home-stat span {
  font-size: 12px;
}

.client-home-stat b {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  height: 9px;
  background: rgb(93, 181, 90);
}

.client-home-stat:nth-child(2) b {
  background: rgb(86, 189, 216);
}

.client-home-stat svg {
  position: absolute;
  right: 15px;
  top: 18px;
  width: 35px;
  height: 40px;
  fill: rgb(124, 124, 124);
}

.client-home-flow {
  background: rgb(255, 255, 255);
  min-height: 212px;
}

.client-home-flow h2 {
  font-size: 17px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  background: rgb(73, 142, 112);
  padding: 4px 14px;
  margin: 0px;
  height: 32px;
}

.client-flow-steps {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 180px;
  min-width: 660px;
  padding: 0px 14px;
}

.client-flow-steps::before {
  content: "";
  position: absolute;
  height: 1px;
  background: rgb(100, 189, 98);
  left: 14px;
  right: 14px;
  top: 92px;
}

.client-flow-steps button {
  position: relative;
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: 0px;
  border-radius: 0px;
  color: rgb(123, 135, 144);
  padding: 0px;
}

.client-flow-steps button > span {
  font-size: 15px;
}

.client-flow-steps i {
  font-style: normal;
  font-size: 16px;
  width: 31px;
  height: 31px;
  line-height: 28px;
  border: 2px solid rgb(101, 189, 105);
  border-radius: 50%;
  background: white;
  color: rgb(101, 189, 105);
}

.client-flow-steps small {
  font-size: 12px;
}

.client-flow-steps button:hover i {
  background: rgb(239, 249, 238);
}

.client-flow-scroll {
  overflow: auto;
}

body:has(.client-home-stats) main {
  padding: 18px 24px 40px;
  background: rgb(239, 242, 245);
}

@media (max-width: 700px) {
  .client-home-stats {
    gap: 10px;
  }

  .client-home-stat {
    padding-left: 14px;
  }

  .client-home-stat svg {
    width: 25px;
  }

  .client-home-stat strong {
    font-size: 19px;
  }

  body:has(.client-home-stats) main {
    padding: 14px 12px;
  }
}

.finance-stats {
  grid-template-columns: repeat(4, minmax(0px, 1fr));
}

.finance-stats .client-home-stat:nth-child(3) b {
  background: rgb(221, 177, 91);
}

.finance-stats .client-home-stat:nth-child(4) b {
  background: rgb(154, 133, 186);
}

.client-dashboard-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 14px;
  min-width: 0px;
}

.client-dashboard-bottom > section {
  min-width: 0px;
}

.business-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.business-toolbar h3 {
  margin: 0px auto 0px 0px;
}

.list-panel input[type="checkbox"] {
  width: auto;
}

.finance-stats + .foot {
  margin: 0px 0px 14px;
}

@media (max-width: 900px) {
  body > header .brand {
    flex-basis: 65px;
    width: 65px;
  }

  body > header .nav-trigger {
    min-width: 70px;
    padding: 0px 10px;
  }

  body > header .nav-group:last-child .nav-trigger {
    min-width: 100px;
  }

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

  .client-dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body > header {
    height: auto;
    flex-wrap: wrap;
  }

  body > header .brand {
    display: none;
  }

  body > header > nav {
    width: 100%;
    height: 50px;
  }

  body > header > nav > .nav-group {
    flex: 1 1 0%;
  }

  body > header .nav-trigger {
    width: 100%;
    font-size: 12px;
    min-width: 0px !important;
    padding: 0px 3px !important;
  }

  body > header > nav > .nav-group:last-child > .nav-trigger {
    min-width: 0px !important;
  }

  .nav-group:nth-child(3) .nav-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}

body::after, #drawer::after {
  content: "";
  position: fixed;
  inset: 50px 0px 0px;
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  background-image: var(--client-watermark,none);
  background-repeat: repeat;
  background-size: 280px 190px;
}

#drawer::after {
  inset: 0px;
}

@media print {
  body::after, #drawer::after {
    display: none;
  }
}
