@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans',sans-serif;
  color: #192b2a;
  background: #f6f8f7;
  font-size: 14px
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #f6f8f7
}

a {
  color: inherit;
  text-decoration: none
}

.app-shell {
  min-height: 100vh
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 26px 18px;
  background: #fff;
  border-right: 1px solid #e8eeeb;
  display: flex;
  flex-direction: column;
  z-index: 5
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 30px
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font: 800 14px Manrope;
  letter-spacing: -1px
}

.brand b {
  display: block;
  font: 800 15px Manrope
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #95a5a1;
  margin-top: 3px
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px
}

  .menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: 9px;
    color: #657571;
    font-weight: 600
  }

    .menu a:hover, .menu a:focus {
      color: #2563eb;
      background: #eff6ff
    }

    .menu a span {
      width: 20px;
      font-size: 17px;
      text-align: center
    }

  .menu i {
    margin-left: auto;
    font-style: normal;
    font-size: 9px;
    color: #2563eb;
    background: #dff3ee;
    border-radius: 20px;
    padding: 3px 7px
  }

.nav-label {
  font-size: 9px;
  color: #a0aeaa;
  letter-spacing: 1.2px;
  font-weight: 700;
  padding: 20px 12px 5px
}

.side-note {
  margin-top: auto;
  border-top: 1px solid #eef2f0;
  padding: 18px 6px 4px;
  color: #15a18c;
  font-size: 11px
}

  .side-note span {
    color: #8b9995;
    margin-left: 5px
  }

.main {
  margin-left: 252px
}

.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e8eeeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px
}

  .topbar .eyebrow {
    margin: 0 0 3px;
    font-size: 9px
  }

  .topbar b {
    font: 700 13px Manrope
  }

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #879792;
  margin: 0 0 9px
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 22px
}

.today {
  color: #71817c;
  font-size: 12px
}

.logout, .btn-light {
  border: 1px solid #e1e9e6;
  background: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  color: #53645f;
  font-weight: 600;
  cursor: pointer
}

.content {
  max-width: 1500px;
  padding: 34px 38px 60px;
  margin: auto
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px
}

  .page-heading h1 {
    font: 800 28px Manrope;
    letter-spacing: -1px;
    margin: 0 0 6px
  }

  .page-heading p {
    margin-bottom: 0
  }

.accent {
  color: #2563eb
}

.muted {
  color: #8b9995;
  font-size: 12px
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer
}

  .btn-primary:hover {
    background: #1d4ed8;
    color: #fff
  }

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 20px
}

.metric-card, .panel {
  background: #fff;
  border: 1px solid #e8eeeb;
  border-radius: 12px;
  box-shadow: 0 4px 18px #1b45320a
}

.metric-card {
  padding: 19px 20px
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71817c;
  font-size: 12px;
  font-weight: 600
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px
}

.green {
  background: #e5f6ef;
  color: #15946c
}

.blue {
  background: #e9f1fb;
  color: #5082c3
}

.purple {
  background: #f0eaff;
  color: #805dc0
}

.amber {
  background: #fff4df;
  color: #cb8a19
}

.metric-card strong {
  display: block;
  font: 800 24px Manrope;
  margin: 14px 0 6px;
  letter-spacing: -.5px
}

.metric-card small {
  font-size: 11px;
  color: #93a19d
}

.up {
  font-style: normal;
  color: #0eaa85;
  margin-right: 3px
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px
}

.panel {
  padding: 20px
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px
}

  .panel-head h2, .form-panel h2 {
    font: 700 15px Manrope;
    margin: 0 0 4px
  }

  .panel-head p {
    margin: 0
  }

  .panel-head > a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 700
  }

.chart {
  height: 245px;
  display: flex;
  padding-top: 14px
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #9ba8a4;
  font-size: 9px;
  padding-bottom: 24px;
  width: 44px
}

.bars {
  flex: 1;
  border-bottom: 1px solid #e8eeeb;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#edf1ef 49px,#edf1ef 50px);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 8px;
  gap: 10px
}

.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px
}

.bar {
  width: min(34px,65%);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg,#60a5fa,#2563eb);
  min-height: 8px
}

.bar-col small {
  position: absolute;
  transform: translateY(22px);
  font-size: 10px;
  color: #8b9995
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f0
}

  .quick-link:last-child {
    border: 0
  }

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center
}

.teal {
  background: #eaf2ff;
  color: #2563eb
}

.quick-link span:nth-child(2) {
  flex: 1
}

.quick-link b, .quick-link small {
  display: block
}

.quick-link b {
  font-size: 12px
}

.quick-link small {
  color: #98a5a1;
  font-size: 10px;
  margin-top: 4px
}

.quick-link > span:last-child {
  color: #97a6a1
}

.table-panel {
  padding: 20px 0 0;
  overflow: hidden
}

  .table-panel > .panel-head {
    padding: 0 20px
  }

.table-scroll {
  width: 100%;
  overflow: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px
}

th {
  text-align: left;
  color: #96a39f;
  letter-spacing: .8px;
  font-size: 9px;
  font-weight: 700;
  padding: 12px 15px;
  background: #fafcfb;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef
}

td {
  padding: 14px 15px;
  border-bottom: 1px solid #f0f3f2;
  color: #596964;
  font-size: 11px;
  white-space: nowrap
}

  td b {
    color: #334541
  }

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #e4f5ef;
  color: #178465
}

  .status.received {
    background: #edf3fd;
    color: #5881bb
  }

  .status.washing {
    background: #fff1dc;
    color: #c18520
  }

  .status.ready {
    background: #e4f5ef;
    color: #178465
  }

  .status.released {
    background: #f0edfb;
    color: #7c67b8
  }

  .status.cancelled {
    background: #fff0ed;
    color: #c56454
  }

.search, input, select {
  border: 1px solid #dfe8e4;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  font: inherit;
  color: #344743;
  outline: none
}

  input:focus, select:focus {
    border-color: #54b4a1;
    box-shadow: 0 0 0 3px #2563eb12
  }

.search {
  width: 230px;
  font-size: 11px
}

.text-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  font-size: 10px;
  cursor: pointer
}

.danger {
  color: #bd6858
}

.form-panel {
  margin: 0 0 18px
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 16px;
  margin: 16px 0
}

  .form-grid label, .login-card form > label:not(.remember) {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    color: #596964;
    font-weight: 700
  }

  .form-grid input, .form-grid select {
    width: 100%
  }

.span-2 {
  grid-column: span 2
}

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px
}

.loading {
  padding: 24px;
  color: #879792
}

.success {
  color: #2563eb;
  font-size: 12px
}

.alert {
  padding: 12px 14px;
  background: #fff0ed;
  color: #a34537;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 12px
}

.compact {
  grid-template-columns: repeat(3,1fr);
  margin-top: 18px
}

.receipt {
  width: 300px;
  margin: 25px auto;
  padding: 25px;
  background: white;
  border: 1px dashed #cbd6d1;
  text-align: center;
  font-family: 'DM Sans',sans-serif
}

.receipt-brand {
  font: 800 24px Manrope;
  color: #2563eb
}

  .receipt-brand small {
    display: block;
    font: 700 9px 'DM Sans';
    letter-spacing: 2px
  }

.receipt hr {
  border: 0;
  border-top: 1px dashed #cad5d0;
  margin: 17px 0
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 10px 0;
  text-align: left
}

  .receipt-line span {
    color: #7d8b86
  }

  .receipt-line.total {
    font-size: 16px;
    margin: 17px 0
  }

.center {
  text-align: center;
  line-height: 1.7;
  margin-top: 20px
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white
}

.login-card {
  width: min(390px,85%);
  margin: auto
}

  .login-card .brand {
    padding: 0 0 45px
  }

  .login-card .mt {
    margin-top: 5px
  }

  .login-card h1 {
    font: 800 32px/1.2 Manrope;
    letter-spacing: -1px;
    margin: 0 0 12px
  }

  .login-card .muted {
    line-height: 1.8;
    margin-bottom: 28px
  }

  .login-card form {
    display: flex;
    flex-direction: column;
    gap: 10px
  }

    .login-card form input:not([type=checkbox]) {
      width: 100%;
      margin: 0 0 8px
    }

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #76847f;
  font-size: 11px;
  margin: 3px 0 12px
}

.w-full {
  width: 100%;
  padding: 13px
}

  .w-full span {
    margin-left: auto
  }

.login-card > small {
  display: block;
  text-align: center;
  margin-top: 20px
}

.login-art {
  background: linear-gradient(145deg,#2563eb,#1e40af);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10% 12%;
  position: relative;
  overflow: hidden
}

  .login-art:before, .login-art:after {
    content: '';
    position: absolute;
    border: 1px solid #ffffff24;
    border-radius: 50%;
    width: 480px;
    height: 480px;
    right: -120px;
    top: -150px
  }

  .login-art:after {
    width: 340px;
    height: 340px;
    right: -40px;
    top: -80px
  }

.art-circle {
  position: absolute;
  right: 25%;
  top: 27%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #ffffff12;
  display: grid;
  place-items: center;
  font-size: 60px;
  color: #d4fff2
}

.login-art h2 {
  font: 800 36px/1.2 Manrope;
  position: relative
}

.login-art p {
  color: #c3e4dd;
  position: relative
}

.no-print {
  margin: 10px 0
}

@media(max-width:1050px) {
  .sidebar {
    width: 220px
  }

  .main {
    margin-left: 220px
  }

  .content {
    padding: 28px 24px
  }

  .metrics {
    grid-template-columns: repeat(2,1fr)
  }
}

@media(max-width:700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid #e8eeeb
  }

  .brand {
    padding: 0 5px 10px
  }

  .menu {
    flex-direction: row;
    overflow: auto;
    gap: 5px
  }

    .menu a {
      white-space: nowrap;
      padding: 9px 10px;
      font-size: 11px
    }

      .menu a span {
        display: none
      }

    .menu .nav-label, .menu i, .side-note {
      display: none
    }

  .main {
    margin: 0
  }

  .topbar {
    height: 58px;
    padding: 0 16px
  }

    .topbar .eyebrow, .today {
      display: none
    }

  .top-actions {
    gap: 0
  }

  .content {
    padding: 23px 14px
  }

  .page-heading {
    align-items: flex-start
  }

    .page-heading h1 {
      font-size: 24px
    }

    .page-heading .btn-primary {
      white-space: nowrap;
      padding: 10px;
      font-size: 11px
    }

  .metrics {
    gap: 9px
  }

  .metric-card {
    padding: 14px
  }

    .metric-card strong {
      font-size: 19px
    }

  .metric-icon {
    width: 29px;
    height: 29px
  }

  .dashboard-grid {
    grid-template-columns: 1fr
  }

  .panel {
    padding: 15px
  }

  .table-panel {
    padding: 16px 0 0
  }

    .table-panel > .panel-head {
      padding: 0 15px
    }

  .search {
    width: 150px
  }

  .form-grid {
    gap: 12px;
    grid-template-columns: 1fr
  }

  .span-2 {
    grid-column: auto
  }

  .compact {
    grid-template-columns: 1fr
  }

  .login-screen {
    grid-template-columns: 1fr
  }

  .login-art {
    display: none
  }

  .login-card {
    padding: 50px 0
  }

  .receipt {
    max-width: 100%
  }
}

@media print {
  body {
    background: white
  }

  .sidebar, .topbar, .no-print, .page-heading {
    display: none !important
  }

  .main {
    margin: 0
  }

  .content {
    padding: 0
  }

  .receipt {
    border: 0;
    margin: 0 auto;
    box-shadow: none
  }

  .panel {
    border: 0
  }

  .table-panel table {
    min-width: 0
  }

  button {
    display: none !important
  }
}

.status-select {
  max-width: 100px;
  padding: 5px;
  font-size: 10px;
  margin-left: 5px
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(0,1.4fr);
  gap: 18px
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

  .profile-card h2 {
    font: 800 22px Manrope;
    margin: 0 0 10px
  }

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: #2563eb;
  font: 800 24px Manrope;
  margin-bottom: 18px
}

.profile-detail {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f8;
  font-size: 12px;
  color: #71817c
}

  .profile-detail:first-of-type {
    margin-top: 20px
  }

  .profile-detail b {
    color: #344743
  }

.profile-password-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-top: 18px
}

  .profile-password-form label {
    display: grid;
    gap: 7px;
    color: #596964;
    font-size: 11px;
    font-weight: 700
  }

  .profile-password-form button {
    justify-self: start
  }

.success-box {
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f7ef;
  color: #16734d;
  font-size: 12px
}

.access-denied {
  max-width: 640px;
  margin: 40px auto
}

  .access-denied h1 {
    font: 800 24px Manrope
  }

  .access-denied .btn-primary {
    margin-top: 8px
  }

.live-bars {
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  padding: 20px 10px 34px;
  border-bottom: 1px solid #e8eeeb;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#edf1f8 44px,#edf1f8 45px)
}

  .live-bars .bar-col {
    height: 100%;
    position: relative;
    justify-content: flex-end
  }

  .live-bars .bar {
    width: min(38px,70%);
    background: linear-gradient(180deg,#60a5fa,#2563eb)
  }

.refresh-note {
  margin-top: 14px;
  color: #8b9995;
  font-size: 10px
}

.dashboard-orders {
  margin-top: 18px
}

.empty-state {
  text-align: center;
  color: #8b9995;
  padding: 26px
}

@media(max-width:700px) {
  .profile-grid {
    grid-template-columns: 1fr
  }

  .profile-chip {
    padding: 7px 9px
  }

  .top-actions {
    gap: 8px
  }

  .profile-password-form button {
    width: 100%
  }

  .live-bars {
    height: 190px;
    padding-inline: 2px;
    gap: 3px
  }

    .live-bars .bar {
      width: min(28px,65%)
    }

  .dashboard-orders {
    margin-top: 12px
  }
}

.profile-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis
}

@media(max-width:700px) {
  .profile-chip {
    max-width: 112px
  }
}

.receipt-business {
  text-align: center;
  font-size: 9px;
  font-style: italic;
  line-height: 1.45;
  color: #42534f;
  margin: 4px 0 12px
}

.receipt-items-heading {
  border-bottom: 1px solid #263733;
  padding-bottom: 6px;
  font-size: 10px;
  font-weight: 700
}

.receipt-item {
  align-items: flex-start;
  border-bottom: 1px solid #d6dedb;
  padding: 6px 0;
  gap: 8px
}

  .receipt-item > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere
  }

    .receipt-item > span b, .receipt-item > span small {
      display: block
    }

    .receipt-item > span small {
      font-size: 9px;
      color: #64736f;
      margin-top: 2px
    }

  .receipt-item > b {
    white-space: nowrap
  }

.receipt-note {
  font-size: 10px;
  font-style: italic;
  text-align: right;
  margin: 4px 0
}

.receipt-terms-title {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  margin: 14px 0 4px
}

.receipt-signature {
  text-align: center;
  font-size: 10px;
  margin: 4px 0 0
}

.signature-line {
  height: 1px;
  width: 58%;
  background: #333;
  margin: 20px auto 0
}

.receipt {
  break-inside: avoid
}

  .receipt .muted.center {
    font-size: 10px;
    line-height: 1.35;
    margin: 5px 0
  }

@media print {
  .receipt {
    width: 76mm;
    max-width: 100%;
    padding: 2mm
  }

  .receipt-business {
    font-size: 8px
  }

  .receipt-line {
    font-size: 10px
  }

    .receipt-line.total {
      font-size: 13px
    }
}

.form-grid textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dfe8e4;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  font: inherit;
  color: #344743;
  outline: none
}

  .form-grid textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb12
  }

/* Unified blue palette and interaction layers */
:root {
  background: #f4f7ff;
  color: #15233b
}

body {
  background: #f4f7ff
}

.side-note {
  color: #2563eb
}

.menu i {
  background: #eaf2ff;
  color: #2563eb
}

.green, .teal {
  background: #eaf2ff !important;
  color: #2563eb !important
}

.status {
  background: #eaf2ff;
  color: #2563eb
}

  .status.ready {
    background: #eaf2ff;
    color: #2563eb
  }

.up {
  color: #2563eb
}

.success-box {
  background: #eaf2ff;
  color: #1d4ed8
}

input:focus, select:focus, .form-grid textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb18
}

.profile-change-button {
  margin-top: 22px
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(5px);
  animation: modal-fade-in .16s ease-out
}

.modal-window {
  width: min(650px,100%);
  max-height: min(90vh,850px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe6ff;
  border-radius: 18px;
  box-shadow: 0 28px 90px #0f172a45;
  animation: modal-rise-in .2s ease-out
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #edf2fc
}

.modal-eyebrow {
  display: block;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin-bottom: 5px
}

.modal-header h2 {
  margin: 0;
  color: #172944;
  font: 800 20px Manrope
}

.modal-close {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: #eff4ff;
  color: #345078;
  font-size: 24px;
  line-height: 1;
  cursor: pointer
}

  .modal-close:hover {
    background: #dce8ff;
    color: #1d4ed8
  }

.modal-content {
  padding: 22px 24px 24px
}

  .modal-content > .form-grid {
    margin-top: 0
  }

  .modal-content .form-actions {
    flex-wrap: wrap
  }

    .modal-content .form-actions button {
      min-height: 42px
    }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(241,246,255,.76);
  backdrop-filter: blur(4px);
  cursor: progress
}

  .loading-overlay.is-visible {
    display: grid;
    animation: loading-fade-in .12s ease-out
  }

.loading-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  padding: 17px 20px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px #1d4ed826;
  color: #213758
}

  .loading-card strong {
    font-size: 13px
  }

.loading-spinner {
  width: 25px;
  height: 25px;
  flex: none;
  border: 3px solid #d8e5ff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: loading-spin .75s linear infinite
}

.sales-chart-wrap {
  height: 270px;
  min-width: 0;
  padding: 4px 0
}

.sales-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible
}

.chart-grid-line {
  stroke: #e8eef9;
  stroke-width: 1
}

.chart-axis-label, .chart-date-label {
  fill: #8694a9;
  font: 10px 'DM Sans',sans-serif
}

.chart-date-label {
  font-size: 11px;
  font-weight: 600
}

.chart-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px #2563eb33)
}

.chart-point {
  fill: #fff;
  stroke: #2563eb;
  stroke-width: 3
}

  .chart-point:hover {
    r: 7;
    fill: #2563eb
  }

.empty-chart {
  height: 100%;
  display: grid;
  place-items: center;
  color: #8795aa;
  font-size: 12px
}

.cancelled-metric {
  border-color: #dbe7ff
}

  .cancelled-metric .metric-icon, .metric-icon.red {
    background: #eaf2ff;
    color: #2563eb
  }

.cancelled-orders-panel .panel-head > .status {
  white-space: nowrap
}

.service-hint {
  color: #657894
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes loading-fade-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes modal-fade-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes modal-rise-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.99)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@media(max-width:700px) {
  .modal-backdrop {
    align-items: end;
    padding: 0
  }

  .modal-window {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0
  }

  .modal-header {
    padding: 16px 18px
  }

  .modal-content {
    padding: 18px
  }

  .modal-window .form-grid {
    grid-template-columns: 1fr
  }

  .modal-window .span-2 {
    grid-column: auto
  }

  .sales-chart-wrap {
    height: 235px
  }

  .cancelled-orders-panel .panel-head {
    align-items: flex-start;
    flex-direction: column
  }

  .loading-card {
    min-width: 0;
    width: min(300px,100%)
  }
}

@media print {
  .loading-overlay {
    display: none !important
  }
}

.metrics:not(.compact) {
  grid-template-columns: repeat(4,minmax(0,1fr))
}

body:has(.modal-backdrop) {
  overflow: hidden
}

.sales-chart-wrap {
  height: 240px
}

.sales-chart-labels {
  display: flex;
  justify-content: space-between;
  margin: -3px 3% 0 8%;
  color: #7e8da4;
  font-size: 10px;
  font-weight: 600
}

  .sales-chart-labels span {
    min-width: 24px;
    text-align: center
  }

@media(max-width:1050px) {
  .metrics:not(.compact) {
    grid-template-columns: repeat(3,minmax(0,1fr))
  }
}

@media(max-width:700px) {
  .metrics:not(.compact) {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
}

@media(max-width:700px) {
  .sidebar {
    display: none
  }

  .main {
    margin: 0
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 64px;
    padding: 0 16px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 14px #1d4ed80c
  }

    .topbar .eyebrow, .today, .profile-chip {
      display: none
    }

    .topbar > div:first-child b {
      font: 800 15px Manrope;
      color: #172944
    }

  .top-actions {
    gap: 8px
  }

  .mobile-more-trigger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dce7fb;
    border-radius: 13px;
    background: #f3f7ff;
    color: #2563eb;
    font-size: 19px
  }

  .content {
    padding: 18px 14px calc(100px + env(safe-area-inset-bottom))
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px
  }

    .page-heading h1 {
      font-size: 25px
    }

    .page-heading .btn-primary, .entry-heading .btn-light {
      width: 100%;
      min-height: 46px;
      justify-content: center
    }

  .panel, .metric-card {
    border-radius: 16px
  }

  .panel {
    padding: 16px
  }

  .table-panel {
    padding: 15px 0 0
  }

    .table-panel > .panel-head {
      padding: 0 15px
    }

  .table-scroll {
    overscroll-behavior-x: contain
  }

  input, select, textarea, .form-grid input, .form-grid select, .form-grid textarea {
    min-height: 46px;
    font-size: 16px
  }

  .text-btn {
    min-height: 42px;
    padding: 8px
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    gap: 3px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #e4ebf8;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 28px #203b670f
  }

  .mobile-nav-item {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #71809a
  }

    .mobile-nav-item span {
      font-size: 19px;
      line-height: 1
    }

    .mobile-nav-item small {
      font-size: 10px;
      font-weight: 700;
      line-height: 1.2
    }

    .mobile-nav-item.active {
      background: #edf4ff;
      color: #2563eb
    }

      .mobile-nav-item.active span {
        transform: translateY(-1px)
      }

  .mobile-management-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
  }

    .mobile-management-links a {
      min-height: 84px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 9px;
      padding: 14px;
      border: 1px solid #e4ebf8;
      border-radius: 15px;
      background: #f8faff;
      color: #223656
    }

      .mobile-management-links a span {
        font-size: 20px;
        color: #2563eb
      }

      .mobile-management-links a b {
        font-size: 12px
      }

  .customer-actions, .order-actions {
    white-space: nowrap
  }

    .customer-actions .text-btn {
      margin-right: 4px
    }

  .manual-order-panel {
    padding: 18px 16px
  }

  .manual-order-intro {
    gap: 11px;
    align-items: flex-start
  }

    .manual-order-intro h2 {
      font-size: 17px
    }

  .manual-order-grid {
    grid-template-columns: 1fr
  }

    .manual-order-grid .span-2 {
      grid-column: auto
    }

  .selected-service-summary {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 15px
  }

  .order-estimate {
    border-top: 1px solid #dfe9fb;
    border-left: 0;
    padding: 14px 0 0
  }

  .manual-order-actions {
    display: grid;
    grid-template-columns: 1fr
  }

    .manual-order-actions button {
      width: 100%;
      min-height: 48px
    }

  .entry-success {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px
  }

    .entry-success .btn-primary {
      grid-column: 1/-1;
      width: 100%
    }
}

@media(min-width:701px) {
  .mobile-bottom-nav, .mobile-more-trigger {
    display: none
  }
}

.manual-order-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px
}

.manual-order-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px
}

  .manual-order-intro h2 {
    margin: 0 0 5px;
    color: #172944;
    font: 800 18px Manrope
  }

  .manual-order-intro p {
    margin: 0
  }

.manual-order-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 23px
}

.required-marker {
  color: #2563eb
}

.selected-service-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 20px;
  align-items: center;
  margin: 12px 0 20px;
  padding: 18px 20px;
  border: 1px solid #dce8ff;
  border-radius: 15px;
  background: linear-gradient(120deg,#f7faff,#edf4ff)
}

  .selected-service-summary > div:first-child > b, .selected-service-summary > div:first-child > p, .selected-service-summary > div:first-child > small {
    display: block
  }

  .selected-service-summary > div:first-child > b {
    font-size: 14px;
    color: #172944
  }

    .selected-service-summary > div:first-child > b small {
      font-size: 11px;
      color: #627695
    }

  .selected-service-summary > div:first-child > p {
    margin: 7px 0;
    color: #657894;
    font-size: 12px
  }

.order-estimate {
  display: grid;
  gap: 5px;
  padding-left: 20px;
  border-left: 1px solid #d7e4fa
}

  .order-estimate span, .order-estimate small {
    color: #70809a;
    font-size: 10px
  }

  .order-estimate strong {
    color: #1d4ed8;
    font: 800 24px Manrope
  }

.manual-order-actions {
  justify-content: flex-end
}

.entry-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px
}

  .entry-success > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 18px
  }

  .entry-success > div {
    display: grid;
    gap: 4px;
    flex: 1
  }

  .entry-success small {
    color: #657894;
    font-size: 11px
  }

.customer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 130px
}

@media(max-width:700px) {
  .manual-order-panel {
    padding: 18px 16px
  }

  .manual-order-grid {
    grid-template-columns: 1fr
  }

    .manual-order-grid .span-2 {
      grid-column: auto
    }

  .selected-service-summary {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 15px
  }

  .order-estimate {
    border-top: 1px solid #dfe9fb;
    border-left: 0;
    padding: 14px 0 0
  }

  .manual-order-actions {
    display: grid;
    grid-template-columns: 1fr
  }

    .manual-order-actions button {
      width: 100%;
      min-height: 48px
    }

  .entry-success {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px
  }

    .entry-success .btn-primary {
      grid-column: 1/-1;
      width: 100%
    }
}

.receipt-shop-header h1 {
  margin: 0;
  color: #18263f;
  font: 800 19px Manrope
}

.receipt-shop-header .receipt-business {
  margin: 4px 0 2px;
  color: #233858;
  font-size: 9px
}

.receipt-number {
  margin: 7px 0 5px;
  text-align: right;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800
}

.receipt-customer-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  padding: 9px 0 11px;
  border-bottom: 1px solid #2f3d56;
  text-align: left
}

.receipt-field {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  font-size: 9px
}

  .receipt-field b {
    flex: none;
    color: #1f2937
  }

  .receipt-field span {
    flex: 1;
    min-width: 0;
    min-height: 13px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #7d8796;
    color: #26364f
  }

.receipt-details-section {
  margin-top: 7px;
  border-bottom: 1px solid #26364f
}

.receipt-table-head, .receipt-detail-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 82px;
  gap: 8px;
  align-items: stretch;
  text-align: center
}

.receipt-table-head {
  border-bottom: 1px solid #26364f;
  font-size: 9px
}

  .receipt-table-head b {
    padding: 5px 3px
  }

    .receipt-table-head b + b, .receipt-detail-row > b {
      border-left: 1px solid #607086
    }

.receipt-detail-row {
  min-height: 23px;
  border-bottom: 1px solid #718096;
  font-size: 9px
}

  .receipt-detail-row > div {
    padding: 4px 3px;
    overflow-wrap: anywhere
  }

    .receipt-detail-row > div b {
      display: block;
      font-weight: 500
    }

    .receipt-detail-row > div small {
      display: block;
      margin-top: 2px;
      color: #53657e;
      font-size: 7px
    }

  .receipt-detail-row > b {
    display: grid;
    place-items: center;
    white-space: nowrap;
    padding: 3px 2px;
    font-size: 9px
  }

.receipt-extra-row > div b {
  font-style: italic
}

.receipt-order-note {
  margin: 5px 3px;
  text-align: right;
  font-size: 8px;
  font-style: italic
}

.receipt-total-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 58px 82px;
  align-items: center;
  text-align: center;
  border-bottom: 2px solid #34445c
}

  .receipt-total-row > b, .receipt-total-row > strong {
    padding: 5px 3px;
    font-size: 10px
  }

  .receipt-total-row > b {
    border-left: 1px solid #607086
  }

  .receipt-total-row > strong {
    border-left: 1px solid #607086;
    white-space: nowrap
  }

.receipt-footer {
  padding-top: 4px;
  text-align: center
}

  .receipt-footer > b {
    display: block;
    font-size: 9px
  }

  .receipt-footer > p {
    margin: 4px 0 0;
    font-size: 9px;
    font-style: italic;
    line-height: 1.4
  }

  .receipt-footer .signature-line {
    margin: 17px auto 2px
  }

  .receipt-footer > span {
    font-size: 8px
  }

.receipt {
  padding: 18px 16px
}

  .receipt hr {
    margin: 5px 0
  }

@media print {
  .receipt {
    padding: 2mm
  }

  .receipt-shop-header h1 {
    font-size: 16px
  }

  .receipt-customer-header {
    gap: 4px 8px;
    padding: 6px 0 8px
  }

  .receipt-details-section {
    margin-top: 5px
  }

  .receipt-detail-row {
    min-height: 20px
  }
}

@media print {
  .receipt {
    padding: 2mm
  }
}

.header-fields {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5ecf7
}

.order-entry-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #e1e9f6;
  border-radius: 9px;
  background: #f8faff;
  color: #71809a;
  font-size: 10px
}

  .order-entry-date b {
    color: #263a5a;
    font-size: 12px
  }

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px
}

  .detail-section-heading .manual-order-intro {
    margin: 0
  }

.add-detail-button {
  min-height: 42px;
  white-space: nowrap
}

.order-detail-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  overscroll-behavior-x: contain
}

.order-detail-table {
  min-width: 880px;
  margin: 0
}

  .order-detail-table th {
    background: #f5f8ff;
    color: #526783
  }

  .order-detail-table td {
    vertical-align: middle;
    padding: 10px
  }

    .order-detail-table td select, .order-detail-table td input {
      width: 100%;
      min-width: 110px
    }

  .order-detail-table .detail-description {
    min-width: 180px;
    max-width: 230px;
    white-space: normal;
    color: #60728b
  }

.detail-description small {
  display: block;
  margin-top: 4px;
  color: #2563eb;
  font-size: 9px
}

.detail-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 21px;
  cursor: pointer
}

  .detail-remove:disabled {
    opacity: .35;
    cursor: not-allowed
  }

.order-total-bar {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 28px;
  margin-top: 18px;
  padding: 17px 19px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: linear-gradient(120deg,#f9fbff,#edf4ff)
}

.order-total-lines {
  min-width: 190px;
  display: grid;
  align-content: center;
  gap: 8px
}

  .order-total-lines div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #647590;
    font-size: 11px
  }

  .order-total-lines b {
    color: #2a3c59
  }

.grand-total {
  min-width: 190px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding-left: 22px;
  border-left: 1px solid #d4e1f5
}

  .grand-total span {
    color: #61728b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px
  }

  .grand-total strong {
    color: #1d4ed8;
    font: 800 25px Manrope
  }

@media(max-width:700px) {
  .detail-section-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .add-detail-button {
    width: 100%;
    min-height: 46px
  }

  .order-total-bar {
    flex-direction: column;
    gap: 14px;
    padding: 15px
  }

  .order-total-lines {
    min-width: 0
  }

  .grand-total {
    min-width: 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #d4e1f5
  }

  .order-entry-date {
    min-height: 46px
  }

  .order-detail-table {
    min-width: 880px
  }
}

.header-total-preview {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #f5f8ff
}

  .header-total-preview span {
    color: #667996;
    font-size: 10px;
    font-weight: 700
  }

  .header-total-preview strong {
    color: #1d4ed8;
    font: 800 18px Manrope
  }

  .header-total-preview small {
    color: #8997ad;
    font-size: 9px
  }

.discount-total-line {
  color: #2563eb !important
}

  .discount-total-line b {
    color: #1d4ed8 !important
  }

.receipt-summary {
  display: grid;
  gap: 4px;
  padding: 7px 2px;
  border-bottom: 1px solid #34445c;
  text-align: right
}

  .receipt-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px
  }

    .receipt-summary > div span {
      color: #53657e
    }

    .receipt-summary > div b {
      color: #26364f
    }

  .receipt-summary .receipt-discount span, .receipt-summary .receipt-discount b {
    color: #1d4ed8
  }

.receipt-total-row {
  border-bottom: 2px solid #34445c
}

/* Laundry rate groups use the exact names from the shop's service menu. */
.service-group-heading td {
  padding: 12px 15px;
  background: #edf4ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px
}

.service-code {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #edf4ff;
  color: #1d4ed8;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px
}

.service-description {
  display: block;
  max-width: 460px;
  margin-top: 4px;
  color: #71809a;
  font-size: 10px;
  white-space: normal
}

/* Card-style tables keep every listing readable on narrow phone screens. */
@media(max-width:700px) {
  .table-scroll:has(.responsive-table) {
    overflow: visible
  }

  table.responsive-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent
  }

  .responsive-table thead {
    display: none
  }

  .responsive-table tbody {
    display: block
  }

    .responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 0 12px;
      margin: 0 10px 11px;
      padding: 7px 12px;
      border: 1px solid #e3eaf6;
      border-radius: 15px;
      background: #fff;
      box-shadow: 0 5px 16px #1d4ed80b
    }

    .responsive-table tbody td {
      display: flex;
      min-width: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      padding: 9px 3px;
      border-bottom: 1px solid #eef2f8;
      white-space: normal;
      overflow-wrap: anywhere;
      color: #334763;
      font-size: 12px
    }

      .responsive-table tbody td::before {
        content: attr(data-label);
        color: #8795aa;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .55px;
        text-transform: uppercase
      }

    .responsive-table tbody tr td:last-child {
      border-bottom: 0
    }

    .responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) td[data-label="Actions"] {
      grid-column: 1/-1;
      flex-direction: row;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-height: 45px;
      padding-top: 6px
    }

      .responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) td[data-label="Actions"]::before {
        margin-right: auto
      }

    .responsive-table tbody tr:has(td[colspan]) {
      display: block;
      margin: 0 10px 10px;
      border: 1px solid #e3eaf6;
      border-radius: 14px;
      background: #fff
    }

      .responsive-table tbody tr:has(td[colspan]) td {
        display: block;
        text-align: center;
        border: 0
      }

  .responsive-table .service-group-heading {
    display: block;
    margin: 12px 10px 8px;
    border-radius: 10px;
    overflow: hidden
  }

    .responsive-table .service-group-heading td {
      display: block;
      padding: 11px 12px;
      border: 0;
      border-radius: 10px
    }

  .responsive-table.services-responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) td[data-label="Service"] {
    grid-column: 1/-1
  }

  .responsive-table.services-responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) td[data-label="Actions"] {
    grid-column: 1/-1
  }

  .responsive-table .service-description {
    max-width: none
  }

  .responsive-table .customer-actions {
    min-width: 0
  }

  .responsive-table .order-actions {
    white-space: normal
  }

    .responsive-table .order-actions select {
      max-width: 130px
    }
}

/* Receipt card preview; printed output remains a compact thermal-paper slip. */
.receipt {
  width: min(420px,100%);
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #e4ebe8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px #173b3212;
  text-align: left;
  color: #253b36;
  font-family: 'DM Sans',sans-serif
}

.receipt-header {
  text-align: center;
  padding: 2px 0 14px;
  border-bottom: 1px dashed #d7e3df
}

.receipt-success-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e5f7ef;
  color: #08a56c;
  font-size: 21px;
  font-weight: 800
}

.receipt-brand {
  color: #123f36;
  font: 800 23px Manrope;
  letter-spacing: -.7px
}

  .receipt-brand span {
    display: block;
    margin-top: 2px;
    color: #6e7e98;
    font: 800 9px 'DM Sans',sans-serif;
    letter-spacing: 2px
  }

.receipt-business {
  margin: 9px 0 0;
  color: #73827d;
  font-size: 10px;
  line-height: 1.55
}

.receipt-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 13px 0 9px;
  color: #73827d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px
}

  .receipt-topline b {
    color: #087e58;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap
  }

.receipt-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f4f8f6
}

  .receipt-status span {
    color: #83918c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px
  }

  .receipt-status b {
    padding: 4px 9px;
    border-radius: 20px;
    background: #e2f6ed;
    color: #087e58;
    font-size: 9px
  }

.receipt-customer-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 11px 14px;
  padding: 13px;
  border: 1px solid #e5ece9;
  border-radius: 12px;
  background: #f8faf9
}

  .receipt-customer-card div {
    display: grid;
    min-width: 0;
    gap: 4px
  }

  .receipt-customer-card span {
    color: #899791;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase
  }

  .receipt-customer-card b {
    color: #263c36;
    font-size: 10px;
    overflow-wrap: anywhere
  }

.receipt-items {
  margin-top: 16px
}

.receipt-items-heading, .receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px
}

.receipt-items-heading {
  padding: 0 0 7px;
  border-bottom: 1px solid #e3ebe7;
  color: #899791;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px
}

  .receipt-items-heading b {
    min-width: 80px;
    text-align: right
  }

.receipt-item {
  padding: 10px 0;
  border-bottom: 1px solid #edf2ef;
  font-size: 10px
}

  .receipt-item > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere
  }

    .receipt-item > span b, .receipt-item > span small {
      display: block
    }

    .receipt-item > span b {
      color: #263c36;
      font-size: 10px
    }

    .receipt-item > span small {
      margin-top: 3px;
      color: #7b8983;
      font-size: 8px
    }

  .receipt-item > b {
    min-width: 80px;
    color: #263c36;
    text-align: right;
    white-space: nowrap
  }

.receipt-order-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f5f8f6;
  color: #63736d;
  font-size: 9px;
  overflow-wrap: anywhere
}

.receipt-summary {
  display: grid;
  gap: 7px;
  padding: 12px 0 10px;
  border: 0;
  text-align: left
}

  .receipt-summary > div {
    font-size: 9px
  }

    .receipt-summary > div span {
      color: #77857f
    }

    .receipt-summary > div b {
      color: #31463f
    }

.receipt-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 11px;
  background: #f0f8f4;
  color: #087e58
}

  .receipt-grand-total span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px
  }

  .receipt-grand-total strong {
    font: 800 18px Manrope;
    white-space: nowrap
  }

.receipt-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #d7e3df;
  text-align: center
}

  .receipt-footer > b {
    color: #697973;
    font-size: 8px;
    letter-spacing: .7px
  }

  .receipt-footer > p {
    margin: 6px 0 0;
    color: #5e7069;
    font-size: 9px;
    font-style: italic;
    line-height: 1.5
  }

  .receipt-footer .signature-line {
    width: 58%;
    height: 1px;
    margin: 22px auto 5px;
    background: #8a9892
  }

  .receipt-footer > span {
    color: #718079;
    font-size: 9px
  }

@media(max-width:700px) {
  .receipt {
    width: 100%;
    margin: 10px auto;
    padding: 18px;
    border-radius: 16px
  }
}

@media print {
  .receipt {
    width: 76mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 2mm;
    border: 0;
    border-radius: 0;
    box-shadow: none
  }

  .receipt-header {
    padding-bottom: 2mm
  }

  .receipt-brand {
    font-size: 16px
  }

  .receipt-success-mark {
    width: 24px;
    height: 24px;
    margin-bottom: 1mm;
    font-size: 15px
  }

  .receipt-business {
    margin-top: 1mm;
    font-size: 8px
  }

  .receipt-topline {
    padding: 2mm 0;
    font-size: 7px
  }

    .receipt-topline b {
      font-size: 10px
    }

  .receipt-status {
    margin-bottom: 2mm;
    padding: 1.5mm 2mm
  }

    .receipt-status span, .receipt-status b {
      font-size: 7px
    }

  .receipt-customer-card {
    gap: 2mm 3mm;
    padding: 2mm;
    border-radius: 0
  }

    .receipt-customer-card span {
      font-size: 7px
    }

    .receipt-customer-card b {
      font-size: 8px
    }

  .receipt-items {
    margin-top: 3mm
  }

  .receipt-items-heading {
    font-size: 7px
  }

  .receipt-item {
    padding: 1.5mm 0;
    font-size: 8px
  }

    .receipt-item > span b {
      font-size: 8px
    }

    .receipt-item > span small {
      font-size: 7px
    }

    .receipt-item > b {
      font-size: 8px
    }

  .receipt-order-note {
    font-size: 7px
  }

  .receipt-summary {
    gap: 1mm;
    padding: 2mm 0
  }

    .receipt-summary > div {
      font-size: 8px
    }

  .receipt-grand-total {
    padding: 2mm 3mm;
    border-radius: 0
  }

    .receipt-grand-total span {
      font-size: 8px
    }

    .receipt-grand-total strong {
      font-size: 13px
    }

  .receipt-footer {
    margin-top: 3mm;
    padding-top: 2mm
  }

    .receipt-footer .signature-line {
      margin-top: 5mm
    }
}

@media(max-width:700px) {
  .order-detail-table-wrap:has(.responsive-table) {
    overflow: visible;
    border: 0
  }

  .responsive-table.order-detail-table tbody tr:not(.service-group-heading):not(:has(td[colspan])) td.detail-description {
    grid-column: 1/-1;
    min-width: 0;
    max-width: none
  }

  .responsive-table.order-detail-table td input, .responsive-table.order-detail-table td select {
    min-width: 0;
    width: 100%
  }
}

/* Mobile order editor and shared page refinements. */
.mobile-order-details {
  display: none
}

.add-detail-mobile {
  display: none
}

.mobile-order-detail-card {
  padding: 15px;
  border: 1px solid #e1e9f6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 16px #1d4ed80b
}

.mobile-detail-card-top, .mobile-detail-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

  .mobile-detail-card-top span {
    color: #8795aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px
  }

  .mobile-detail-card-top > b {
    color: #1d4ed8;
    font-size: 14px
  }

.mobile-order-detail-card h3 {
  margin: 9px 0 4px;
  color: #263953;
  font: 700 15px Manrope;
  overflow-wrap: anywhere
}

.mobile-order-detail-card > p {
  margin: 0;
  color: #71809a;
  font-size: 11px;
  overflow-wrap: anywhere
}

.mobile-detail-card-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1f8;
  color: #7888a0;
  font-size: 11px
}

  .mobile-detail-card-meta b {
    color: #334763
  }

.mobile-detail-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px
}

.mobile-detail-editor {
  display: grid;
  gap: 14px
}

  .mobile-detail-editor > label {
    display: grid;
    gap: 7px;
    color: #536783;
    font-size: 11px;
    font-weight: 700
  }

  .mobile-detail-editor input, .mobile-detail-editor select {
    width: 100%;
    min-height: 48px
  }

.mobile-detail-service-hint {
  display: block;
  margin-top: 1px;
  color: #8090a7;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4
}

.mobile-detail-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dce8fb;
  border-radius: 12px;
  background: #f5f8ff;
  color: #657894;
  font-size: 12px
}

  .mobile-detail-amount b {
    color: #1d4ed8;
    font: 800 18px Manrope
  }

.mobile-detail-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr
}

  .mobile-detail-modal-actions button {
    min-height: 46px
  }

@media(max-width:700px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
  }

  .app-shell, .main, .content, .content > * {
    min-width: 0;
    max-width: 100%
  }

  .content {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px
  }

  .page-heading, .page-heading > div, .panel-head, .panel-head > div {
    min-width: 0
  }

    .page-heading .muted, .panel-head p {
      overflow-wrap: anywhere
    }

  .panel-head {
    flex-wrap: wrap;
    align-items: flex-start
  }

    .panel-head > * {
      max-width: 100%
    }

    .panel-head .search {
      width: min(100%,220px)
    }

  .form-grid, .form-grid label, .profile-grid, .dashboard-grid, .metrics {
    min-width: 0;
    max-width: 100%
  }

    .form-grid input, .form-grid select, .form-grid textarea, .modal-content input, .modal-content select, .modal-content textarea {
      width: 100%;
      max-width: 100%
    }

  .form-actions {
    flex-wrap: wrap
  }

    .form-actions > * {
      min-width: 0
    }

  .login-screen {
    width: 100%;
    min-height: 100dvh;
    padding: 20px 0
  }

  .login-card {
    width: min(420px,calc(100% - 36px));
    padding: 28px 0
  }

  .mobile-order-details {
    display: grid;
    gap: 10px
  }

  .desktop-order-details {
    display: none
  }

  .detail-section-heading {
    align-items: stretch
  }

  .order-detail-add-actions {
    width: 100%
  }

  .add-detail-desktop {
    display: none
  }

  .add-detail-mobile {
    display: inline-flex;
    width: 100%;
    min-height: 48px
  }

  .manual-order-panel {
    width: 100%;
    max-width: 100%;
    padding: 16px 13px
  }

  .order-total-bar, .entry-success, .access-denied {
    min-width: 0;
    max-width: 100%
  }

  .grand-total strong {
    font-size: 23px
  }

  .table-panel, .table-scroll {
    min-width: 0;
    max-width: 100%
  }

  .responsive-table tbody td {
    min-width: 0;
    overflow-wrap: anywhere
  }

  .responsive-table .order-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important
  }

    .responsive-table .order-actions select {
      width: 100%;
      max-width: 100%;
      min-height: 44px
    }

  .receipt {
    max-width: 100%;
    overflow-wrap: anywhere
  }

  .receipt-customer-card {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr)
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0
  }

  .modal-window {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom)
  }

  .modal-content {
    max-height: calc(92dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain
  }

  .mobile-detail-modal-actions {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: #fff
  }

  .mobile-bottom-nav {
    padding-bottom: calc(7px + env(safe-area-inset-bottom))
  }

  .content {
    padding-bottom: calc(108px + env(safe-area-inset-bottom))
  }
}

@media(max-width:380px) {
  .content {
    padding-left: 10px;
    padding-right: 10px
  }

  .metrics {
    gap: 7px
  }

  .metric-card {
    padding: 12px 10px
  }

    .metric-card strong {
      font-size: 17px
    }

  .mobile-nav-item small {
    font-size: 9px
  }

  .receipt-customer-card {
    grid-template-columns: 1fr
  }

  .mobile-detail-modal-actions {
    grid-template-columns: 1fr
  }
}

@media(min-width:701px) {
  .mobile-order-details, .add-detail-mobile {
    display: none
  }

  .desktop-order-details {
    display: block
  }
}

@media print {
  .mobile-order-details, .add-detail-mobile, .modal-backdrop {
    display: none !important
  }
}

/* Order details are entered only in a centered dialog. The saved draft list
   follows the receipt's description/amount layout while keeping pricing inputs visible. */
.order-preview {
  margin-top: 4px;
  border-top: 1px solid #e3ebe7
}

.order-preview-heading, .order-preview-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(84px,auto);
  gap: 8px 12px;
  align-items: start
}

.order-preview-heading {
  padding: 8px 2px;
  border-bottom: 1px solid #e3ebe7;
  color: #899791;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px
}

  .order-preview-heading > b {
    text-align: right
  }

.order-preview-item {
  padding: 12px 2px;
  border-bottom: 1px solid #edf2ef
}

.order-preview-description {
  display: grid;
  gap: 4px;
  min-width: 0
}

  .order-preview-description > b {
    color: #263c36;
    font-size: 13px;
    overflow-wrap: anywhere
  }

  .order-preview-description > small {
    color: #7b8983;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere
  }

.order-preview-amount {
  color: #263c36;
  text-align: right;
  white-space: nowrap;
  font-size: 13px
}

.order-preview-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 16px
}

.detail-section-heading {
  align-items: center
}

.order-detail-add-actions {
  flex: none
}

.add-detail-button {
  min-width: 150px
}

.modal-backdrop {
  align-items: center !important;
  justify-items: center !important;
  padding: 20px !important
}

.modal-window {
  width: min(560px,100%);
  max-height: min(90dvh,850px);
  border-radius: 18px !important;
  padding-bottom: 0 !important
}

.modal-content {
  max-height: calc(min(90dvh,850px) - 76px);
  overflow-y: auto;
  overscroll-behavior: contain
}

.mobile-detail-editor {
  display: grid;
  gap: 14px
}

.mobile-detail-editor {
  grid-template-columns: repeat(2,minmax(0,1fr))
}

  .mobile-detail-editor > .detail-field {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: #536783;
    font-size: 12px;
    font-weight: 700
  }

    .mobile-detail-editor > .detail-field > span {
      display: block;
      line-height: 1.4
    }

  .mobile-detail-editor .required-marker {
    font-style: normal
  }

  .mobile-detail-editor > .detail-description-field, .mobile-detail-amount {
    grid-column: auto
  }

  .mobile-detail-editor > .alert, .mobile-detail-modal-actions {
    grid-column: 1/-1
  }

  .mobile-detail-editor input, .mobile-detail-editor select {
    width: 100%;
    min-width: 0;
    min-height: 46px
  }

    .mobile-detail-editor input::placeholder {
      color: #9aa6b7
    }

.mobile-detail-amount {
  padding: 14px 16px;
  background: linear-gradient(135deg,#f7faff,#eff5ff);
  border-color: #dfe8f5;
  color: #60718d
}

  .mobile-detail-amount b {
    color: #2358ca;
    font-size: 19px
  }

.mobile-detail-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  padding-top: 4px
}

  .mobile-detail-modal-actions button {
    min-width: 124px;
    min-height: 46px
  }

.order-preview-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 27px 16px;
  border: 1px dashed #d8e2ed;
  border-radius: 12px;
  background: #fafcfe;
  text-align: center
}

.order-preview-empty-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf4ff;
  color: #2860d9;
  font-size: 21px
}

.order-preview-empty > b {
  color: #30445f;
  font-size: 13px
}

.order-preview-empty > small {
  color: #8290a3;
  font-size: 11px;
  line-height: 1.5
}

@media(max-width:700px) {
  .order-detail-add-actions {
    width: auto
  }

  .add-detail-button {
    width: auto;
    min-height: 46px
  }

  .mobile-detail-editor {
    grid-template-columns: minmax(0,1fr);
    gap: 12px
  }

    .mobile-detail-editor > .detail-field:nth-child(2), .mobile-detail-service-hint, .mobile-detail-amount, .mobile-detail-editor > .alert, .mobile-detail-modal-actions {
      grid-column: 1
    }

  .mobile-detail-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .order-preview-heading, .order-preview-item {
    grid-template-columns: minmax(0,1fr) minmax(72px,auto);
    gap: 8px
  }

  .order-preview-item {
    padding: 12px 0
  }

  .modal-backdrop {
    align-items: center !important;
    padding: 16px !important
  }

  .modal-window {
    width: min(520px,100%);
    max-height: calc(100dvh - 32px);
    border-radius: 18px !important
  }

  .modal-content {
    max-height: calc(100dvh - 112px);
    padding: 18px;
    overflow-y: auto
  }

  .mobile-detail-modal-actions {
    position: static;
    padding-top: 0
  }
}

/* A4 PDF page with the compact receipt placed at the top-left. */
@page {
  size: A4 portrait;
  margin: 4mm
}

@media print {
  html, body {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact
  }

  .sidebar, .topbar, .mobile-bottom-nav, .no-print, .loading-overlay, #blazor-error-ui {
    display: none !important
  }

  .app-shell, .main {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important
  }

  .content {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important
  }

  .receipt {
    zoom: 1.8 !important;
    width: 42mm !important;
    max-width: 42mm !important;
    margin: 0 !important;
    padding: 1mm !important;
    border: 1px dashed #cbd6d1 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid
  }

  .receipt-header {
    padding: 0 0 1mm !important
  }

  .receipt-success-mark {
    width: 5mm !important;
    height: 5mm !important;
    margin: 0 auto 1mm !important;
    font-size: 9px !important
  }

  .receipt-brand {
    font-size: 12px !important;
    line-height: 1.05 !important
  }

    .receipt-brand span {
      margin-top: 0 !important;
      font-size: 5px !important;
      letter-spacing: 1px !important
    }

  .receipt-business {
    margin: 1mm 0 0 !important;
    font-size: 5px !important;
    line-height: 1.2 !important
  }

  .receipt-topline {
    padding: 1mm 0 !important;
    font-size: 5px !important
  }

    .receipt-topline b {
      font-size: 7px !important
    }

  .receipt-status {
    margin: 0 0 1mm !important;
    padding: 1mm !important
  }

    .receipt-status span, .receipt-status b {
      font-size: 5px !important
    }

    .receipt-status b {
      padding: 1mm 2mm !important
    }

  .receipt-customer-card {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 1mm !important;
    padding: 1mm !important;
    border-radius: 0 !important
  }

    .receipt-customer-card span {
      font-size: 4px !important
    }

    .receipt-customer-card b {
      font-size: 5px !important;
      line-height: 1.15 !important
    }

  .receipt-items {
    margin-top: 1mm !important
  }

  .receipt-items-heading {
    padding-bottom: .5mm !important;
    font-size: 5px !important
  }

    .receipt-items-heading b, .receipt-item > b {
      min-width: 14mm !important
    }

  .receipt-item {
    gap: 1mm !important;
    padding: 1mm 0 !important;
    font-size: 5px !important
  }

    .receipt-item > span b {
      font-size: 5px !important;
      line-height: 1.15 !important
    }

    .receipt-item > b {
      font-size: 5px !important
    }

  .receipt-order-note {
    margin: 1mm 0 0 !important;
    padding: 1mm !important;
    font-size: 5px !important
  }

  .receipt-summary {
    gap: .5mm !important;
    padding: 1mm 0 !important
  }

    .receipt-summary > div {
      font-size: 5px !important
    }

  .receipt-grand-total {
    gap: 1mm !important;
    padding: 1mm !important;
    border-radius: 0 !important
  }

    .receipt-grand-total span {
      font-size: 5px !important
    }

    .receipt-grand-total strong {
      font-size: 9px !important
    }

  .receipt-footer {
    margin-top: 1mm !important;
    padding-top: 1mm !important
  }

    .receipt-footer > b, .receipt-footer > p, .receipt-footer > span {
      font-size: 5px !important;
      line-height: 1.15 !important
    }

    .receipt-footer > p {
      margin-top: .5mm !important
    }

    .receipt-footer .signature-line {
      margin: 3mm auto 1mm !important
    }
}

@media(max-width:380px) {
  .detail-section-heading {
    align-items: stretch
  }

  .order-detail-add-actions, .add-detail-button {
    width: 100%
  }

  .order-preview-heading, .order-preview-item {
    grid-template-columns: minmax(0,1fr) auto
  }

  .mobile-detail-modal-actions {
    grid-template-columns: 1fr 1fr
  }
}

/* Dedicated visual treatment for the add/edit order detail dialog. */
.modal-window.order-detail-modal {
  display: flex;
  flex-direction: column;
  width: min(620px,100%);
  max-height: min(88dvh,760px);
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 22px !important;
  background: #fff;
  box-shadow: 0 32px 100px #101d3540
}

.order-detail-modal .modal-header {
  position: relative;
  flex: none;
  padding: 25px 30px 22px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(135deg,#fbfdff 0%,#f4f7ff 100%)
}

.order-detail-modal .modal-eyebrow {
  width: max-content;
  margin: 0 0 9px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #e8efff;
  color: #2858c7;
  font-size: 9px;
  letter-spacing: 1.25px
}

.order-detail-modal .modal-header h2 {
  color: #182944;
  font: 800 23px/1.2 Manrope,sans-serif;
  letter-spacing: -.5px
}

.order-detail-modal .modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #fff;
  color: #60708a;
  font-size: 25px;
  transition: background .16s ease,color .16s ease,transform .16s ease
}

  .order-detail-modal .modal-close:hover {
    transform: rotate(90deg);
    background: #eaf0ff;
    color: #2455c4
  }

.order-detail-modal .modal-content {
  width: 100%;
  max-height: none;
  overflow: auto;
  padding: 25px 30px 27px;
  background: #fff
}

.order-detail-modal .mobile-detail-editor {
  gap: 19px 18px
}

  .order-detail-modal .mobile-detail-editor > .detail-field {
    gap: 8px;
    color: #465a75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15px
  }

    .order-detail-modal .mobile-detail-editor > .detail-field > span {
      padding-left: 2px
    }

.order-detail-modal .required-marker {
  color: #e14b5a
}

.order-detail-modal .mobile-detail-editor input, .order-detail-modal .mobile-detail-editor select {
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #dce4ef;
  border-radius: 11px;
  background-color: #fbfcfe;
  color: #253752;
  font-size: 13px;
  transition: border-color .16s ease,box-shadow .16s ease,background .16s ease
}

  .order-detail-modal .mobile-detail-editor input:hover, .order-detail-modal .mobile-detail-editor select:hover {
    border-color: #b8c8df;
    background: #fff
  }

  .order-detail-modal .mobile-detail-editor input:focus, .order-detail-modal .mobile-detail-editor select:focus {
    border-color: #4778e6;
    background: #fff;
    box-shadow: 0 0 0 4px #4778e61a;
    outline: 0
  }

  .order-detail-modal .mobile-detail-editor input::placeholder {
    color: #a0acbd
  }

.order-detail-modal .mobile-detail-editor > .detail-field .mobile-detail-service-hint {
  grid-column: 1/-1;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7888a0;
  font-size: 10px;
  line-height: 1.4
}

.order-detail-modal .mobile-detail-amount {
  position: relative;
  grid-column: auto;
  min-height: 76px;
  padding: 15px 17px;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  background: linear-gradient(115deg,#f4f8ff 0%,#edf3ff 100%);
  color: #60718d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase
}

  .order-detail-modal .mobile-detail-amount b {
    color: #2457c7;
    font: 800 23px/1 Manrope,sans-serif;
    letter-spacing: -.4px
  }

.order-detail-modal .mobile-detail-modal-actions {
  grid-column: 1/-1;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #edf1f7
}

  .order-detail-modal .mobile-detail-modal-actions button {
    min-width: 128px;
    min-height: 46px;
    margin-top: 10px;
    border-radius: 10px;
    font-size: 12px;
    transition: transform .15s ease,box-shadow .15s ease,background .15s ease
  }

  .order-detail-modal .mobile-detail-modal-actions .btn-primary {
    background: linear-gradient(135deg,#3474f1,#2459cf);
    box-shadow: 0 6px 14px #285dd52c
  }

    .order-detail-modal .mobile-detail-modal-actions .btn-primary:hover {
      transform: translateY(-1px);
      background: linear-gradient(135deg,#2867e4,#1d4db7);
      box-shadow: 0 9px 18px #285dd538
    }

  .order-detail-modal .mobile-detail-modal-actions .btn-light {
    border-color: #dce4ef;
    background: #fff;
    color: #566982
  }

    .order-detail-modal .mobile-detail-modal-actions .btn-light:hover {
      background: #f5f7fb
    }

.order-detail-modal .mobile-detail-editor > .alert {
  grid-column: 1/-1;
  margin: 0;
  border: 1px solid #f6d1ca;
  border-radius: 10px;
  line-height: 1.5
}

@media(max-width:700px) {
  .modal-window.order-detail-modal {
    width: min(540px,100%);
    max-height: calc(100dvh - 32px);
    border-radius: 20px !important
  }

  .order-detail-modal .modal-header {
    padding: 20px 20px 17px
  }

    .order-detail-modal .modal-header h2 {
      font-size: 20px
    }

  .order-detail-modal .modal-content {
    padding: 20px
  }

  .order-detail-modal .mobile-detail-editor {
    gap: 15px
  }

  .order-detail-modal .mobile-detail-amount {
    grid-column: 1
  }

  .order-detail-modal .mobile-detail-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px
  }

    .order-detail-modal .mobile-detail-modal-actions button {
      width: 100%;
      min-width: 0;
      margin-top: 9px
    }
}

@media(max-width:380px) {
  .modal-window.order-detail-modal {
    width: 100%;
    max-height: calc(100dvh - 20px)
  }

  .order-detail-modal .modal-header {
    padding: 17px 16px 15px
  }

  .order-detail-modal .modal-content {
    padding: 17px 16px 18px
  }

  .order-detail-modal .mobile-detail-editor {
    gap: 13px
  }

  .order-detail-modal .mobile-detail-modal-actions {
    grid-template-columns: 1fr
  }

    .order-detail-modal .mobile-detail-modal-actions button {
      margin-top: 2px
    }
}

.dashboard-analytics-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch
}

  .dashboard-analytics-grid > .panel {
    min-width: 0;
    overflow: hidden
  }

  .dashboard-analytics-grid .panel-head {
    align-items: flex-start
  }

.chart-filter {
  display: grid;
  gap: 5px;
  min-width: 132px;
  color: #8390a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase
}

  .chart-filter input, .chart-filter select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 6px 9px;
    border-color: #dfe7f2;
    border-radius: 9px;
    color: #354761;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none
  }

.dashboard-bar-list {
  display: grid;
  gap: 13px;
  min-height: 210px;
  align-content: center;
  padding: 5px 2px
}

.dashboard-bar-row {
  display: grid;
  gap: 6px;
  min-width: 0
}

.dashboard-bar-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #71809a;
  font-size: 10px
}

  .dashboard-bar-caption > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .dashboard-bar-caption > b {
    flex: none;
    color: #2b3f5c;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums
  }

.dashboard-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #edf2f9
}

  .dashboard-bar-track > span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,#72a2ff,#2864df);
    transition: width .35s ease
  }

.dashboard-analytics-grid > section:nth-child(2) .dashboard-bar-track > span {
  background: linear-gradient(90deg,#a78bfa,#7045ce)
}

.dashboard-analytics-grid > section:nth-child(3) .dashboard-bar-track > span {
  background: linear-gradient(90deg,#f5c66a,#dc8d26)
}

.dashboard-chart-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 18px;
  color: #8996a9;
  font-size: 11px;
  text-align: center
}

@media(max-width:900px) {
  .dashboard-analytics-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

    .dashboard-analytics-grid .panel-head {
      align-items: flex-start;
      flex-wrap: wrap
    }

      .dashboard-analytics-grid .panel-head > div {
        flex: 1 1 100%
      }

  .chart-filter {
    width: 100%;
    max-width: 220px
  }

  .dashboard-bar-list, .dashboard-chart-empty {
    min-height: 185px
  }
}

.report-heading-actions {
  align-items: center;
  margin: 0
}

.report-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #f5f7fb;
  scrollbar-width: thin
}

  .report-tabs button {
    flex: none;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #708099;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease,color .15s ease,box-shadow .15s ease
  }

    .report-tabs button:hover {
      color: #2459c9;
      background: #edf2ff
    }

    .report-tabs button.active {
      background: #fff;
      color: #2459c9;
      box-shadow: 0 2px 8px #243b5c12
    }

.report-summary {
  margin: 0 0 18px
}

.report-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: linear-gradient(110deg,#fff,#f7f9fd);
  color: #718099;
  font-size: 11px
}

  .report-summary-strip > b {
    color: #344763
  }

  .report-summary-strip > strong {
    margin-left: auto;
    color: #2459c9;
    font-size: 12px
  }

.report-notice {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
  padding: 13px 16px;
  border: 1px solid #f4dfad;
  border-radius: 11px;
  background: #fffaf0;
  color: #755b21;
  font-size: 11px;
  line-height: 1.5
}

  .report-notice > b {
    font-size: 12px
  }

.report-loading {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #8390a3;
  font-size: 12px
}

.report-table-panel {
  margin-bottom: 18px
}

.report-description-cell {
  min-width: 200px;
  max-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere
}

@media(max-width:700px) {
  .report-heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr
  }

    .report-heading-actions button {
      min-width: 0;
      white-space: nowrap
    }

  .report-tabs {
    margin-right: -4px;
    margin-left: -4px
  }

  .report-summary-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 13px
  }

    .report-summary-strip > strong {
      margin-left: 0
    }
}

.dashboard-analytics-grid {
  grid-template-columns: minmax(0,1fr)
}

.dashboard-line-chart-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd7e8 transparent
}

.dashboard-line-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
  aspect-ratio: 920/330;
  overflow: visible
}

.line-chart-grid {
  stroke: #e8eef6;
  stroke-width: 1;
  stroke-dasharray: 3 5
}

.line-chart-axis-label {
  fill: #8794a8;
  font: 10px 'DM Sans',sans-serif;
  font-variant-numeric: tabular-nums
}

.line-chart-category-label {
  fill: #6f7d93;
  font: 600 10px 'DM Sans',sans-serif
}

.line-chart-value-label {
  fill: #2a4d91;
  font: 800 10px 'DM Sans',sans-serif;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round
}

.dashboard-line-stroke {
  fill: none;
  stroke: #3474ed;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 4px #3474ed24)
}

.dashboard-line-point {
  fill: #fff;
  stroke: #3474ed;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition: r .15s ease,fill .15s ease
}

  .dashboard-line-point:hover {
    r: 7;
    fill: #dce8ff
  }

.outstanding-chart-panel {
  margin: 0 0 18px;
  min-width: 0;
  overflow: hidden
}

  .outstanding-chart-panel .dashboard-line-chart {
    min-width: 760px
  }

.dashboard-line-chart-scroll {
  padding: 4px 0 0
}

.dashboard-line-chart {
  min-width: 700px;
  aspect-ratio: 920/330
}

.line-chart-grid {
  stroke: #e8eef8;
  stroke-width: 1;
  stroke-dasharray: none
}

.line-chart-category-label {
  fill: #697991;
  font: 600 10px 'DM Sans',sans-serif
}

.line-chart-value-label {
  fill: #2563eb;
  font: 800 11px 'DM Sans',sans-serif;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round
}

.dashboard-line-stroke {
  fill: none;
  stroke: #2563eb;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: none
}

.dashboard-line-point {
  fill: #fff;
  stroke: #2563eb;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  transition: r .15s ease,fill .15s ease
}

  .dashboard-line-point:hover {
    r: 7;
    fill: #dce8ff
  }

@media(max-width:700px) {
  .dashboard-analytics-grid {
    grid-template-columns: minmax(0,1fr)
  }

  .dashboard-line-chart {
    min-width: 720px
  }

  .outstanding-chart-panel .dashboard-line-chart {
    min-width: 760px
  }
}

.dashboard-analytics-grid > .panel, .outstanding-chart-panel {
  position: relative;
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%,#edf4ff 0,transparent 34%),linear-gradient(145deg,#fff 0%,#fbfcff 100%);
  box-shadow: 0 12px 30px #1d3d6810,0 2px 6px #1d3d6808;
  isolation: isolate
}

.dashboard-analytics-grid > .panel {
  padding: 23px 24px 20px
}

  .dashboard-analytics-grid > .panel::before, .outstanding-chart-panel::before {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg,#245fd8,#6fa2ff 60%,#dce9ff);
    content: "";
    opacity: .9
  }

.dashboard-analytics-grid .panel-head, .outstanding-chart-panel .panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 15px
}

  .dashboard-analytics-grid .panel-head h2, .outstanding-chart-panel .panel-head h2 {
    color: #1c3151;
    font: 800 16px Manrope,sans-serif;
    letter-spacing: -.2px
  }

  .dashboard-analytics-grid .panel-head .muted, .outstanding-chart-panel .panel-head .muted {
    color: #8090a8;
    font-size: 11px;
    line-height: 1.5
  }

.dashboard-analytics-grid .chart-filter {
  min-width: 145px;
  padding: 9px 10px;
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px #233d6509
}

  .dashboard-analytics-grid .chart-filter input, .dashboard-analytics-grid .chart-filter select {
    height: 34px;
    border-color: #e2e9f2;
    border-radius: 8px;
    background: #f9fbfe;
    font-weight: 700
  }

    .dashboard-analytics-grid .chart-filter input:focus, .dashboard-analytics-grid .chart-filter select:focus {
      border-color: #74a0ee;
      background: #fff;
      box-shadow: 0 0 0 3px #3874e517
    }

.dashboard-line-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e6edf7;
  border-radius: 15px;
  background: linear-gradient(180deg,#f8faff 0%,#fff 92%)
}

.line-chart-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 9px;
  color: #8391a5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px
}

  .line-chart-overline > span {
    display: flex;
    align-items: center;
    gap: 7px
  }

  .line-chart-overline > b {
    padding: 4px 8px;
    border: 1px solid #dce7fb;
    border-radius: 20px;
    background: #f1f6ff;
    color: #3970d4;
    font-size: 8px;
    letter-spacing: .8px
  }

.line-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3773e5;
  box-shadow: 0 0 0 4px #3773e51a
}

.dashboard-line-chart-scroll {
  border: 1px solid #edf1f7;
  border-radius: 11px;
  background: linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  box-shadow: inset 0 1px 4px #263e5b06
}

.dashboard-line-chart {
  min-width: 700px;
  aspect-ratio: 920/330
}

.line-chart-grid {
  stroke: #e9eff8;
  stroke-width: 1;
  stroke-dasharray: none
}

.line-chart-guide {
  stroke: #dce7f7;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: .8
}

.dashboard-line-area {
  pointer-events: none
}

.dashboard-line-stroke {
  fill: none;
  stroke: #2f6cdd;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 4px #3973df30)
}

.dashboard-line-point-halo {
  fill: #3474ed;
  opacity: .11;
  transition: r .18s ease,opacity .18s ease
}

.dashboard-line-point {
  fill: #fff;
  stroke: #2f6cdd;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px #2863d533);
  transition: r .18s ease,fill .18s ease
}

.line-chart-point-group:hover .dashboard-line-point-halo {
  r: 13;
  opacity: .2
}

.line-chart-point-group:hover .dashboard-line-point {
  r: 7;
  fill: #eaf1ff
}

.line-chart-value-badge rect {
  fill: #fff;
  stroke: #d9e5f6;
  stroke-width: 1;
  filter: drop-shadow(0 3px 6px #1e3a5e18)
}

.line-chart-value-badge text {
  fill: #2459bc;
  font: 800 10px 'DM Sans',sans-serif;
  font-variant-numeric: tabular-nums
}

.line-chart-category-label {
  fill: #718099;
  font: 700 10px 'DM Sans',sans-serif
}

.dashboard-chart-empty {
  min-height: 210px;
  border: 1px dashed #d9e4f2;
  border-radius: 13px;
  background: linear-gradient(145deg,#f9fbff,#fff);
  color: #8392a8
}

.outstanding-chart-panel {
  padding: 23px 24px 20px
}

  .outstanding-chart-panel .dashboard-line-card {
    margin-top: 8px
  }

@media(max-width:700px) {
  .dashboard-analytics-grid > .panel, .outstanding-chart-panel {
    padding: 19px 15px 16px;
    border-radius: 15px
  }

    .dashboard-analytics-grid > .panel::before, .outstanding-chart-panel::before {
      left: 15px;
      right: 15px
    }

  .dashboard-analytics-grid .panel-head {
    gap: 12px
  }

  .dashboard-analytics-grid .chart-filter {
    max-width: none;
    min-width: 0;
    width: 100%;
    padding: 8px 9px
  }

  .dashboard-line-card {
    padding: 9px;
    border-radius: 12px
  }

  .line-chart-overline {
    padding-bottom: 8px
  }

  .dashboard-line-chart {
    min-width: 700px
  }

  .outstanding-chart-panel .dashboard-line-chart {
    min-width: 760px
  }
}

/* Persistent light/dark theme for the full application shell and pages. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dce5f4;
  border-radius: 10px;
  background: #f7f9fe;
  color: #405575;
  font: 700 11px 'DM Sans',sans-serif;
  white-space: nowrap;
  cursor: pointer
}

  .theme-toggle:hover {
    border-color: #a9c2f2;
    background: #edf3ff;
    color: #2459bc
  }

.login-screen {
  position: relative
}

@media(max-width:700px) {
  .theme-toggle {
    min-height: 33px;
    padding: 6px 9px;
    font-size: 10px
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  background: #101827;
  color: #e6edf8
}

  html[data-theme="dark"] body {
    background: #101827;
    color: #e6edf8
  }

  html[data-theme="dark"] .sidebar, html[data-theme="dark"] .topbar {
    background: #151f30;
    border-color: #29364b
  }

    html[data-theme="dark"] .brand b, html[data-theme="dark"] .topbar b, html[data-theme="dark"] .page-heading h1, html[data-theme="dark"] .panel-head h2, html[data-theme="dark"] .form-panel h2 {
      color: #edf3ff
    }

  html[data-theme="dark"] .brand small, html[data-theme="dark"] .muted, html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .today, html[data-theme="dark"] .side-note span {
    color: #9aa9c0
  }

  html[data-theme="dark"] .menu a {
    color: #aebbd0
  }

    html[data-theme="dark"] .menu a:hover, html[data-theme="dark"] .menu a:focus, html[data-theme="dark"] .menu a.active {
      background: #202e45;
      color: #8bb4ff
    }

  html[data-theme="dark"] .side-note {
    border-color: #29364b
  }

  html[data-theme="dark"] .metric-card, html[data-theme="dark"] .panel, html[data-theme="dark"] .report-summary-strip, html[data-theme="dark"] .report-notice, html[data-theme="dark"] .order-preview-empty {
    background: #172235;
    border-color: #2a3951;
    box-shadow: 0 8px 24px #060b1426
  }

    html[data-theme="dark"] .metric-top, html[data-theme="dark"] .metric-card small, html[data-theme="dark"] .profile-detail {
      color: #a9b7cb
    }

    html[data-theme="dark"] .metric-card strong, html[data-theme="dark"] .metric-card b, html[data-theme="dark"] .report-summary-strip strong {
      color: #f2f6ff
    }

  html[data-theme="dark"] .net-profit-metric {
    background: linear-gradient(145deg,#172b30,#18263a);
    border-color: #276b66
  }

    html[data-theme="dark"] .net-profit-metric .metric-icon {
      background: #1d4947;
      color: #69e0bd
    }

  html[data-theme="dark"] .quick-link {
    border-color: #2a3951
  }

    html[data-theme="dark"] .quick-link b, html[data-theme="dark"] .order-preview-description > b, html[data-theme="dark"] .order-preview-amount, html[data-theme="dark"] .profile-detail b {
      color: #edf3ff
    }

    html[data-theme="dark"] .quick-link small, html[data-theme="dark"] .order-preview-description > small {
      color: #9aa9c0
    }

  html[data-theme="dark"] th {
    background: #1c293d;
    color: #a8b6ca;
    border-color: #2b3a51
  }

  html[data-theme="dark"] td {
    color: #c0ccdd;
    border-color: #29374d
  }

    html[data-theme="dark"] td b {
      color: #f0f4fb
    }

  html[data-theme="dark"] .table-panel {
    background: #172235
  }

  html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    color-scheme: dark
  }

  html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .search {
    background: #111b2a;
    border-color: #34435a;
    color: #e3ebf7
  }

    html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder {
      color: #8292aa
    }

  html[data-theme="dark"] .form-grid label, html[data-theme="dark"] .profile-password-form label {
    color: #bac7d9
  }

  html[data-theme="dark"] .btn-light, html[data-theme="dark"] .logout {
    background: #1b2940;
    border-color: #34445d;
    color: #d2dced
  }

    html[data-theme="dark"] .btn-light:hover, html[data-theme="dark"] .logout:hover {
      background: #263752
    }

  html[data-theme="dark"] .theme-toggle {
    background: #202e45;
    border-color: #384b67;
    color: #dce8fa
  }

    html[data-theme="dark"] .theme-toggle:hover {
      background: #293d5b;
      color: #fff
    }

  html[data-theme="dark"] .profile-chip {
    background: #202f49;
    color: #a9c7ff
  }

  html[data-theme="dark"] .profile-detail, html[data-theme="dark"] .profile-grid .panel {
    border-color: #2a3951
  }

  html[data-theme="dark"] .modal-window, html[data-theme="dark"] .modal-header {
    background: #172235;
    border-color: #34435a
  }

  html[data-theme="dark"] .modal-header {
    border-bottom-color: #2a3951
  }

    html[data-theme="dark"] .modal-header h2 {
      color: #edf3ff
    }

  html[data-theme="dark"] .modal-close {
    background: #263752;
    color: #dbe7fa
  }

  html[data-theme="dark"] .mobile-management-links a {
    background: #1d2b40;
    border-color: #34435a;
    color: #e6edf8
  }

  html[data-theme="dark"] .mobile-bottom-nav {
    background: #151f30;
    border-color: #29364b
  }

  html[data-theme="dark"] .mobile-nav-item {
    color: #aebbd0
  }

    html[data-theme="dark"] .mobile-nav-item.active {
      color: #a9c7ff
    }

  html[data-theme="dark"] .report-tabs {
    background: #151f30;
    border-color: #2a3951
  }

    html[data-theme="dark"] .report-tabs button {
      color: #afbdd1
    }

      html[data-theme="dark"] .report-tabs button.active {
        background: #263752;
        color: #b9d0ff
      }

  html[data-theme="dark"] .login-card {
    color: #e6edf8
  }

    html[data-theme="dark"] .login-card h1, html[data-theme="dark"] .login-card label {
      color: #e6edf8
    }

  html[data-theme="dark"] .login-screen {
    background: #101827
  }

  html[data-theme="dark"] .loading-card {
    background: #172235;
    border-color: #34435a;
    color: #e6edf8
  }

  html[data-theme="dark"] .loading-overlay {
    background: rgba(8,13,23,.78)
  }

  html[data-theme="dark"] .loading-spinner {
    border-color: #33435c;
    border-top-color: #6b9cff
  }

  html[data-theme="dark"] .line-chart-grid {
    stroke: #33435c
  }

  html[data-theme="dark"] .line-chart-guide {
    stroke: #2c3d57
  }

  html[data-theme="dark"] .dashboard-line-card, html[data-theme="dark"] .dashboard-line-chart-scroll {
    background: #121d2d;
    border-color: #2b3a51
  }

  html[data-theme="dark"] .line-chart-category-label {
    fill: #a9b8cf
  }

  html[data-theme="dark"] .line-chart-value-badge rect {
    fill: #1d2b40;
    stroke: #405371
  }

  html[data-theme="dark"] .line-chart-value-badge text {
    fill: #b9d0ff
  }

  html[data-theme="dark"] .order-preview-empty {
    color: #b9c7dc
  }

  html[data-theme="dark"] .order-preview-heading, html[data-theme="dark"] .order-preview-item {
    border-color: #2c3b52
  }

  html[data-theme="dark"] .alert {
    background: #482d37;
    color: #ffc3c7
  }

  html[data-theme="dark"] .success-box {
    background: #173e3a;
    color: #9cebd5
  }

  html[data-theme="dark"] .receipt {
    background: #fff;
    color: #253b36
  }

html[data-theme="dark"] {
  --bs-body-color: #e6edf8;
  --bs-body-bg: #101827;
  --bs-emphasis-color: #f2f6ff;
  --bs-secondary-color: #a9b7cb;
  --bs-tertiary-color: #8292aa;
  --bs-border-color: #2a3951;
  --bs-secondary-bg: #172235;
  --bs-tertiary-bg: #1c293d;
  --bs-link-color: #8bb4ff;
  --bs-link-hover-color: #b9d0ff
}

  html[data-theme="dark"] .sidebar {
    background-image: none !important
  }

  html[data-theme="dark"] .login-screen {
    background: #101827 !important
  }

  html[data-theme="dark"] .mobile-order-detail-card {
    background: #172235;
    border-color: #2a3951;
    box-shadow: 0 8px 24px #060b1426
  }

    html[data-theme="dark"] .mobile-order-detail-card h3, html[data-theme="dark"] .mobile-detail-card-meta b {
      color: #edf3ff
    }

    html[data-theme="dark"] .mobile-order-detail-card > p, html[data-theme="dark"] .mobile-detail-card-meta, html[data-theme="dark"] .mobile-detail-card-top span {
      color: #a9b7cb
    }

  html[data-theme="dark"] .mobile-detail-amount, html[data-theme="dark"] .header-total-preview, html[data-theme="dark"] .order-entry-date {
    background: #1c2a40;
    border-color: #34445d;
    color: #c3d0e3
  }

    html[data-theme="dark"] .mobile-detail-amount b, html[data-theme="dark"] .header-total-preview strong, html[data-theme="dark"] .order-entry-date b {
      color: #b9d0ff
    }

  html[data-theme="dark"] .mobile-detail-modal-actions {
    background: #172235
  }

  html[data-theme="dark"] .order-detail-modal .modal-content {
    background: #172235
  }

  html[data-theme="dark"] .order-detail-modal .modal-close {
    background: #263752;
    border-color: #3b4d68;
    color: #dce8fa
  }

  html[data-theme="dark"] .order-detail-modal .mobile-detail-editor > label {
    color: #c0cde0
  }

  html[data-theme="dark"] .order-detail-modal .mobile-detail-editor input:hover, html[data-theme="dark"] .order-detail-modal .mobile-detail-editor select:hover, html[data-theme="dark"] .order-detail-modal .mobile-detail-editor input:focus, html[data-theme="dark"] .order-detail-modal .mobile-detail-editor select:focus {
    background: #111b2a
  }

  html[data-theme="dark"] .order-detail-modal .mobile-detail-modal-actions .btn-light {
    background: #1b2940;
    border-color: #34445d;
    color: #d2dced
  }

    html[data-theme="dark"] .order-detail-modal .mobile-detail-modal-actions .btn-light:hover {
      background: #263752
    }

  html[data-theme="dark"] .metric-icon.green, html[data-theme="dark"] .metric-icon.blue, html[data-theme="dark"] .metric-icon.purple, html[data-theme="dark"] .metric-icon.amber, html[data-theme="dark"] .metric-icon.red, html[data-theme="dark"] .quick-icon, html[data-theme="dark"] .profile-avatar, html[data-theme="dark"] .order-preview-empty-icon {
    background: #24334a !important;
    color: #b9d0ff !important
  }

  html[data-theme="dark"] .service-hint, html[data-theme="dark"] .loading, html[data-theme="dark"] .success {
    color: #a9b8cf
  }

  html[data-theme="dark"] .receipt-success-mark {
    background: #173e3a;
    color: #8fe3ce
  }

  html[data-theme="dark"] .line-chart-legend-dot {
    background: #69a0ff
  }

  html[data-theme="dark"] .receipt-summary > div b {
    color: #e8eef7
  }

  html[data-theme="dark"] .responsive-table tbody tr:not(.service-group-heading):not(:has(td[colspan])), html[data-theme="dark"] .responsive-table tbody tr:has(td[colspan]) {
    background: #172235;
    border-color: #2a3951;
    box-shadow: 0 8px 24px #060b1426
  }

  html[data-theme="dark"] .responsive-table tbody td {
    border-color: #29374d
  }

  html[data-theme="dark"] .dashboard-analytics-grid .chart-filter {
    background: #172235;
    border-color: #2a3951
  }

    html[data-theme="dark"] .dashboard-analytics-grid .chart-filter input, html[data-theme="dark"] .dashboard-analytics-grid .chart-filter select {
      background: #111b2a;
      border-color: #34435a;
      color: #e3ebf7
    }

      html[data-theme="dark"] .dashboard-analytics-grid .chart-filter input:focus, html[data-theme="dark"] .dashboard-analytics-grid .chart-filter select:focus {
        background: #111b2a
      }

  html[data-theme="dark"] .line-chart-overline > b {
    background: #202f49;
    border-color: #3b4d68;
    color: #b9d0ff
  }

  html[data-theme="dark"] .dashboard-chart-empty {
    background: #121d2d;
    border-color: #33435c;
    color: #a9b8cf
  }

  html[data-theme="dark"] .receipt {
    background: #172235;
    color: #e8eef7;
    border-color: #40516a
  }

  html[data-theme="dark"] .receipt-header, html[data-theme="dark"] .receipt-items-heading, html[data-theme="dark"] .receipt-item, html[data-theme="dark"] .receipt-footer {
    border-color: #40516a
  }

    html[data-theme="dark"] .receipt-brand, html[data-theme="dark"] .receipt-item > span b, html[data-theme="dark"] .receipt-item > b, html[data-theme="dark"] .receipt-grand-total strong, html[data-theme="dark"] .receipt-customer-card b {
      color: #f2f6ff
    }

      html[data-theme="dark"] .receipt-brand span, html[data-theme="dark"] .receipt-business, html[data-theme="dark"] .receipt-topline, html[data-theme="dark"] .receipt-customer-card span, html[data-theme="dark"] .receipt-item > span small, html[data-theme="dark"] .receipt-summary > div span, html[data-theme="dark"] .receipt-footer > p, html[data-theme="dark"] .receipt-footer > span {
        color: #a9b7cb
      }

  html[data-theme="dark"] .receipt-status, html[data-theme="dark"] .receipt-customer-card, html[data-theme="dark"] .receipt-order-note {
    background: #1c293d;
    border-color: #34445d;
    color: #c3d0e3
  }

  html[data-theme="dark"] .receipt-grand-total {
    background: #173a39;
    color: #8fe3ce
  }

  html[data-theme="dark"] #components-reconnect-modal {
    background: #172235;
    color: #e6edf8;
    border: 1px solid #34435a
  }

    html[data-theme="dark"] #components-reconnect-modal p {
      color: #e6edf8
    }

  html[data-theme="dark"] .status, html[data-theme="dark"] .status.ready {
    background: #163b38;
    color: #8ce0ca
  }

    html[data-theme="dark"] .status.received {
      background: #1d3150;
      color: #a9c7ff
    }

    html[data-theme="dark"] .status.washing {
      background: #49391d;
      color: #f4cd78
    }

    html[data-theme="dark"] .status.released {
      background: #352b50;
      color: #d0b8ff
    }

    html[data-theme="dark"] .status.cancelled {
      background: #4a2a32;
      color: #ffb4bd
    }

@media print {
  html[data-theme="dark"], html[data-theme="dark"] body {
    background: #fff !important;
    color: #000 !important
  }

    html[data-theme="dark"] .receipt, html[data-theme="dark"] .receipt-status, html[data-theme="dark"] .receipt-customer-card, html[data-theme="dark"] .receipt-order-note {
      background: #fff !important;
      color: #253b36 !important
    }

    html[data-theme="dark"] .receipt-grand-total {
      background: #f0f8f4 !important;
      color: #087e58 !important
    }

      html[data-theme="dark"] .receipt-brand, html[data-theme="dark"] .receipt-item > span b, html[data-theme="dark"] .receipt-item > b, html[data-theme="dark"] .receipt-grand-total strong, html[data-theme="dark"] .receipt-customer-card b {
        color: #253b36 !important
      }

        html[data-theme="dark"] .receipt-brand span, html[data-theme="dark"] .receipt-business, html[data-theme="dark"] .receipt-topline, html[data-theme="dark"] .receipt-customer-card span, html[data-theme="dark"] .receipt-item > span small, html[data-theme="dark"] .receipt-summary > div span, html[data-theme="dark"] .receipt-footer > p, html[data-theme="dark"] .receipt-footer > span {
          color: #73827d !important
        }
}
