@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --navy: #09234a;
  --deep: #061b38;
  --blue: #0668ff;
  --turq: #009b87;
  --muted: #78869b;
  --line: #e9edf4;
  --bg: #f5f7fb;
  --text: #14243f;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px 'DM Sans',
    system-ui,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
h1,
h2,
h3,
h4,
.brand {
  font-family: Manrope, system-ui, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #84b6ff;
  outline-offset: 3px;
}
input,
select,
textarea {
  padding: 11px 13px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  width: 100%;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a6ceff;
  border-color: #64a6ff;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #52617b;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 18px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #3c4f6e;
  padding: 10px 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px #0668ff17;
}
.btn.danger {
  color: #d74d60;
  border-color: #f5d3d8;
}
.btn.small {
  padding: 7px 11px;
  font-size: 12px;
  min-height: 32px;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: #52617b;
  display: grid;
  place-items: center;
  position: relative;
  padding: 8px;
  border-radius: 9px;
}
.icon-btn:hover {
  background: #eef4fe;
}
.icon-btn svg {
  width: 21px;
  height: 21px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand img {
  width: 32px;
  height: 34px;
}
.brand span {
  color: #04bfb2;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: linear-gradient(163deg, #0a294f, #061b38);
  color: #bdcbe0;
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding-left: 13px;
  color: white;
}
.workspace {
  margin: 29px 9px 16px;
  padding: 15px 0;
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace .square {
  width: 34px;
  height: 34px;
  background: #ffffff0c;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #67b1ff;
}
.workspace strong {
  color: #f2f6ff;
  font-size: 12px;
  display: block;
}
.workspace small {
  font-size: 10px;
  color: #819aba;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin: 15px 16px 10px;
  color: #6e88a9;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a8bbd5;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}
.nav button svg {
  width: 18px;
  height: 18px;
}
.nav button:hover {
  background: #ffffff07;
}
.nav button.active {
  background: #0966f2;
  color: #fff;
  box-shadow: 0 7px 18px #00000017;
}
.nav .count {
  margin-left: auto;
  background: #ffffff20;
  font-size: 10px;
  border-radius: 5px;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-foot {
  margin: 20px 13px 0;
  padding-top: 18px;
  border-top: 1px solid #ffffff12;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #eef4fc;
  color: #1d4c94;
  display: grid;
  place-items: center;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: #15375f;
  color: #c0d9ff;
}
.sidebar-foot strong {
  display: block;
  font-size: 12px;
  color: #f2f6ff;
}
.sidebar-foot small {
  font-size: 10px;
  color: #708cad;
}
.main {
  margin-left: 235px;
}
.topbar {
  height: 75px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 33px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.global-search {
  position: relative;
  max-width: 350px;
  flex: 1;
}
.global-search svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: #8290a7;
}
.global-search input {
  border: 1px solid #edf0f6;
  background: #f8faff;
  padding-left: 40px;
  font-size: 12px;
  min-height: 39px;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 17px;
}
.top-status {
  font-size: 10px;
  color: #96a2b3;
  display: flex;
  gap: 6px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  background: #0fb99c;
  border-radius: 50%;
  display: inline-block;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.top-user strong {
  font-size: 11px;
  display: block;
}
.top-user small {
  font-size: 9px;
  color: #8190a5;
}
.notification-dot {
  position: absolute;
  right: 7px;
  top: 4px;
  background: #fd6269;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border: 2px solid white;
  border-radius: 20px;
  color: white;
  font-size: 7px;
  display: grid;
  place-items: center;
}
.content {
  padding: 31px 33px 45px;
  max-width: 1700px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #7f90a9;
  font-weight: 600;
  margin-bottom: 8px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.85px;
  margin: 0 0 8px;
  font-weight: 800;
}
.subhead {
  font-size: 12px;
  color: #8592a6;
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: 0 3px 10px #17294a02;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.stat-label {
  font-size: 11px;
  color: #79889f;
  font-weight: 500;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: #edf4ff;
  color: #1378ff;
}
.stat-icon svg {
  width: 19px;
  height: 19px;
}
.stat.green .stat-icon {
  background: #e7f8f2;
  color: #049c83;
}
.stat.orange .stat-icon {
  background: #fff3e7;
  color: #f29837;
}
.stat.purple .stat-icon {
  background: #f2ecfe;
  color: #9460f6;
}
.stat-value {
  font:
    800 29px Manrope,
    sans-serif;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-foot {
  margin-top: 12px;
  display: flex;
  gap: 5px;
  font-size: 10px;
  color: #9aa5b6;
}
.stat-foot strong {
  font-weight: 500;
  color: #069a84;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 3px 10px #17294a02;
}
.panel-head {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head h2 {
  font-size: 14px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 800;
}
.panel-head p {
  font-size: 11px;
  color: #99a3b2;
  margin: 5px 0 0;
}
.panel-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.text-link {
  font-size: 11px;
  color: #1276f8;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.text-link svg {
  width: 14px;
  height: 14px;
}
.tabs {
  display: flex;
  gap: 24px;
  padding: 0 23px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  background: none;
  border: 0;
  padding: 12px 0 14px;
  white-space: nowrap;
  font-size: 11px;
  color: #8291a7;
  position: relative;
}
.tabs button.active {
  color: var(--blue);
  font-weight: 600;
}
.tabs button.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.tabs span {
  font-size: 9px;
  border-radius: 4px;
  background: #f0f4fa;
  padding: 2px 5px;
  margin-left: 4px;
  color: #8291a7;
}
.tabs button.active span {
  background: #eaf3ff;
  color: var(--blue);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #fafbfe;
}
th {
  font-size: 9px;
  font-weight: 600;
  color: #8c9bb0;
  letter-spacing: 0.2px;
  padding: 13px 22px;
  border-bottom: 1px solid #eef2f7;
}
td {
  font-size: 11px;
  padding: 17px 22px;
  border-bottom: 1px solid #f0f3f8;
  color: #52617a;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
.order-num {
  font-weight: 700;
  color: #154c96;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.customer {
  display: flex;
  align-items: center;
  gap: 9px;
}
.customer .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
  background: #edf4ff;
  color: #4775b4;
}
.customer strong {
  font-size: 11px;
  font-weight: 600;
  color: #2a3e5d;
  display: block;
}
.secondary {
  font-size: 9px;
  color: #9ca6b5;
  margin-top: 3px;
  display: block;
}
.service-summary {
  white-space: normal;
  font-size: 10px;
  line-height: 1.6;
  max-width: 180px;
  color: #6a7b94;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf3ff;
  color: #1973ea;
  text-transform: none;
}
.status:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.assigned {
  background: #e7f8f1;
  color: #05977f;
}
.status.en_route,
.status.arrived,
.status.out_for_delivery {
  background: #fff3e5;
  color: #e79124;
}
.status.collected,
.status.processing {
  background: #f1ebfe;
  color: #8759de;
}
.status.ready_for_delivery {
  background: #e7f7fa;
  color: #218a9f;
}
.status.delivered {
  background: #e8f8ee;
  color: #1e9f5d;
}
.status.cancelled {
  background: #fff0f1;
  color: #d46073;
}
.unassigned {
  color: #a8b0be;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #98a3b4;
  font-size: 10px;
}
.pagination .btn {
  min-height: 28px;
  font-size: 10px;
  padding: 4px 10px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.chart {
  height: 155px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding: 18px 25px 27px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.bar-col {
  flex: 1;
  display: flex;
  height: 110px;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.bar {
  width: min(30px, 70%);
  background: #408bff;
  border-radius: 5px 5px 0 0;
  min-height: 3px;
  position: relative;
}
.bar-col:nth-last-child(1) .bar {
  background: #0566ff;
}
.bar-col span {
  font-size: 9px;
  color: #9ca8ba;
}
.bar b {
  position: absolute;
  top: -17px;
  font-size: 9px;
  font-weight: 500;
  color: #6482a9;
  left: 50%;
  transform: translateX(-50%);
}
.chart-note {
  padding: 13px 23px;
  font-size: 10px;
  color: #91a0b4;
  display: flex;
  justify-content: space-between;
}
.workflow-mini {
  padding: 0 23px 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.workflow-mini div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.workflow-mini b {
  display: block;
  font:
    700 19px Manrope,
    sans-serif;
  margin-bottom: 5px;
}
.workflow-mini span {
  font-size: 10px;
  color: #8b99ae;
}
.filters {
  display: flex;
  gap: 12px;
  padding: 0 23px 20px;
  flex-wrap: wrap;
}
.filters input {
  max-width: 250px;
}
.filters select {
  max-width: 185px;
}
.filters input,
.filters select {
  font-size: 11px;
  min-height: 38px;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  color: #8a97ab;
  white-space: normal;
}
.empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  color: #a0badb;
}
.empty h3 {
  color: #465d7e;
  font-size: 14px;
  margin: 0 0 8px;
}
.empty p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.banner {
  padding: 11px 16px;
  border-radius: 9px;
  background: #eaf2ff;
  color: #4272aa;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.banner.warning {
  background: #fff5e6;
  color: #9f712c;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.service-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-card .service-icon {
  background: #edf4ff;
  color: #3689fa;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.service-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.service-card p {
  font-size: 12px;
  color: #8a97ab;
  line-height: 1.7;
  min-height: 40px;
}
.service-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.service-card .unit {
  font-size: 10px;
  color: #8996ab;
}
.loading {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #94a3b8;
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e3edff;
  border-top-color: #1679ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  max-height: 90vh;
  color: var(--text);
  box-shadow: 0 30px 90px #071b4933;
}
dialog::backdrop {
  background: #04162c75;
  backdrop-filter: blur(3px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: white;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal-head h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.5px;
}
.modal-body {
  padding: 24px 25px;
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: white;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-section {
  margin: 0 0 23px;
}
.detail-section h3 {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #96a1b2;
  margin: 0 0 11px;
}
.detail-section p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: #526984;
}
.detail-section strong {
  font-size: 13px;
  color: #2f4363;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  border-left: 1px solid #dce8f7;
  margin-left: 7px;
  padding: 0 0 18px 23px;
  position: relative;
  font-size: 12px;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #237bfa;
  outline: 4px solid #eef5ff;
}
.timeline li small {
  display: block;
  color: #94a1b3;
  font-size: 10px;
  margin-top: 5px;
}
.form-error {
  color: #bd4c61;
  background: #fff1f3;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 17px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #596c86;
}
.check-row input {
  width: 16px;
  min-height: 16px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: radial-gradient(ellipse at 15% 20%, #154775, #061a37 72%);
  padding: 50px 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.login-art .brand {
  font-size: 25px;
}
.login-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
}
.login-copy .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff26;
  padding: 8px 13px;
  border-radius: 25px;
  font-size: 10px;
  color: #b9d2ef;
  margin-bottom: 28px;
}
.login-copy h1 {
  font-size: 49px;
  line-height: 1.18;
  letter-spacing: -2px;
  max-width: 470px;
  margin-bottom: 23px;
}
.login-copy h1 em {
  font-style: normal;
  color: #54d6cc;
}
.login-copy p {
  font-size: 14px;
  line-height: 1.9;
  color: #9db4d2;
  max-width: 380px;
}
.login-art footer {
  font-size: 10px;
  color: #6f8bad;
}
.login-art:after {
  content: '';
  position: absolute;
  bottom: 40px;
  right: -140px;
  width: 440px;
  height: 440px;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  box-shadow:
    0 0 0 50px #ffffff03,
    0 0 0 110px #ffffff02;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 30px;
  background: #fff;
}
.login-inner {
  width: 355px;
}
.login-inner h2 {
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.8px;
}
.login-inner > p {
  font-size: 12px;
  color: #8c99ac;
  line-height: 1.7;
  margin-bottom: 30px;
}
.login-inner .btn.primary {
  width: 100%;
  margin-top: 7px;
}
.login-inner .demo-link {
  display: block;
  text-align: center;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: #5581ba;
  font-size: 11px;
  cursor: pointer;
}
.login-note {
  font-size: 10px;
  color: #9faabc;
  line-height: 1.7;
  margin-top: 25px;
  text-align: center;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  right: 28px;
  bottom: 25px;
  z-index: 100;
  background: #12365b;
  color: white;
  padding: 14px 19px;
  border-radius: 11px;
  font-size: 12px;
  box-shadow: 0 8px 30px #102c5530;
  max-width: 420px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
.mobile-shade {
  display: none;
}
.notifications-list .notice {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.notice h3 {
  margin: 0 0 6px;
  font-size: 13px;
}
.notice p {
  margin: 0;
  font-size: 12px;
  color: #7c8da5;
  line-height: 1.6;
}
.notice.unread h3:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 6px;
}
.settings {
  max-width: 650px;
  padding: 25px;
}
.settings p {
  font-size: 12px;
  color: #7b8ea7;
  line-height: 1.8;
}
.settings code {
  font-size: 11px;
  background: #eef3fb;
  padding: 3px 5px;
  border-radius: 4px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 38px;
  }
  .stat {
    padding: 24px;
  }
  td {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .top-status {
    display: none;
  }
  .stat {
    padding: 17px;
  }
  .stats {
    gap: 12px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #061b3866;
    z-index: 25;
  }
  .topbar {
    height: 65px;
  }
  .top-user strong,
  .top-user small {
    display: none;
  }
  .top-user {
    padding-left: 12px;
  }
  .top-right {
    gap: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px;
  }
  .login-copy h1 {
    font-size: 38px;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 22px 15px;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .global-search {
    max-width: none;
  }
  .top-right {
    gap: 2px;
  }
  .top-user {
    display: none;
  }
  h1 {
    font-size: 21px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-actions .btn {
    font-size: 0;
    width: 38px;
    padding: 9px;
  }
  .page-actions .btn svg {
    width: 18px;
    height: 18px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .tabs {
    gap: 20px;
    padding: 0 16px;
  }
  .panel-head {
    padding: 18px 16px;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .panel-actions .btn {
    font-size: 10px;
  }
  .filters {
    padding: 0 16px 15px;
    gap: 8px;
  }
  .filters input,
  .filters select {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 22px 26px;
    min-height: 180px;
  }
  .login-copy {
    margin-top: 25px;
  }
  .login-copy .pill,
  .login-copy p,
  .login-art footer {
    display: none;
  }
  .login-copy h1 {
    font-size: 27px;
    letter-spacing: -1px;
    margin: 0;
  }
  .login-form {
    padding: 32px 24px;
  }
  .login-inner {
    width: 100%;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head,
  .modal-footer {
    padding: 17px 20px;
  }
  .pagination {
    padding: 12px 15px;
  }
  .topbar .global-search input {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .page-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .page-actions .btn {
    font-size: 11px;
    width: auto;
    padding: 9px 12px;
  }
  .brand {
    white-space: nowrap;
  }
  .sidebar:not(.open) {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}

.profile-photo {object-fit: cover; flex-shrink: 0; background: #e6f5f3;}

.invoice-lines {width:100%;border-collapse:collapse;} .invoice-lines input {width:100%;min-width:55px;} .invoice-lines td,.invoice-lines th {padding:5px;} .payment-row {border-bottom:1px solid #dbe4ed;padding:10px 0;}

.delivery-assignment { background:#eef6ff; border:1px solid #c9dfff; border-radius:12px; padding:18px; margin:16px 0; }
