:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-soft: rgba(35, 135, 183, 0.12);
  --mh-text: #222;
  --mh-muted: #777;
  --mh-line: #edf1f1;
  --mh-soft: #edf6fb;
  --mh-danger: #e93939;
}

.font-theme {
  color: var(--mh-theme) !important;
}

.bg-theme-theme,
.btn-solid {
  background-color: var(--mh-theme) !important;
}

.border-theme,
.btn-solid {
  border-color: var(--mh-theme-soft) !important;
}

.btn-outline {
  border-color: var(--mh-theme) !important;
  color: var(--mh-theme) !important;
}

body.mh-driver-app,
body.mh-customer-app {
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mh-driver-app {
  background: #f3f5f6;
}

body.mh-customer-app {
  background: #fff;
}

.mh-header .logo-wrap {
  min-width: 0;
}

.mh-header {
  position: sticky;
}

.mh-home-header,
.mh-history-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 25;
  width: min(100%, 600px);
  transform: translateX(-50%);
  border-bottom: 1px solid var(--mh-line);
  background: #fff;
}

.mh-header .logo-wrap > div {
  min-width: 0;
}

.mh-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(190px, calc(100% - 150px));
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.mh-header .logo-wrap h1,
.mh-header .logo-wrap span {
  display: block;
}

.mh-header .logo-wrap h1 {
  line-height: 1.12;
}

.mh-header .logo-wrap span {
  margin-top: 0;
  line-height: 1.12;
}

.mh-header-title h1 {
  margin-top: 2px;
  line-height: 1.12;
}

.mh-header-title span {
  margin-top: 2px;
  line-height: 1.12;
}

.mh-header .avatar-wrap {
  min-width: max-content;
}

.mh-list-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  color: var(--mh-muted);
  font-weight: 800;
}

.mh-back-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--mh-text);
}

.mh-back-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mh-list-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mh-summary {
  padding-bottom: 15px;
}

.mh-summary-card {
  padding: 18px;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #effefc 0%, #fff9d8 100%);
}

.mh-summary-card h2 {
  margin: 8px 0;
  line-height: 1.2;
}

.mh-summary-card p {
  margin-bottom: 0;
}

.mh-home-page {
  display: grid;
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 72px 15px 34px;
  background: #f3f5f6;
}

.mh-history-page {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 72px 15px 34px;
  background: #f3f5f6;
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty {
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: #fff;
}

.mh-home-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-home-summary h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.mh-home-summary h2 strong {
  font-weight: 900;
}

.mh-home-header .mh-list-link,
.mh-history-header .mh-list-link {
  font-weight: 400;
}

.mh-history-search {
  padding: 14px 16px 12px !important;
}

.mh-history-search label {
  display: block;
  margin-bottom: 7px;
}

.mh-date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.mh-date-input-wrap input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #e3e9ea;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--mh-text);
  font-size: 16px;
  font-weight: 800;
}

.mh-date-input-wrap .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.mh-quick-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mh-quick-dates a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #e3e9ea;
  border-radius: 8px;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 700;
}

.mh-quick-dates a.active {
  border-color: rgba(35, 135, 183, 0.28);
  background: var(--mh-soft);
  color: var(--mh-theme);
}

.mh-history-summary {
  padding: 14px 16px 13px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-history-summary h2 {
  margin: 5px 0 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.mh-history-summary h2 strong {
  font-weight: 900;
}

.mh-history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mh-history-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(35, 135, 183, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--mh-muted);
  font-size: 12px;
  line-height: 1.1;
}

.mh-home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mh-home-stats div {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
  border: 1px solid rgba(35, 135, 183, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.mh-home-stats span {
  color: var(--mh-muted);
  font-size: 12px;
  line-height: 1.1;
}

.mh-home-stats strong {
  color: var(--mh-theme);
  font-size: 22px;
  line-height: 1;
}

.mh-next-card {
  padding: 16px !important;
}

.mh-next-label {
  margin-bottom: 10px;
  color: var(--mh-theme);
  font-size: 13px;
  font-weight: 800;
}

.mh-next-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mh-next-heading h2 {
  margin: 0;
  color: var(--mh-text);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.mh-next-heading .mh-status-chip {
  margin-top: 7px;
}

.mh-next-card > p {
  margin: 13px 0 0;
  padding: 12px;
  border: 1px solid #f0f2f3;
  border-radius: 8px;
  color: var(--mh-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-placement {
  margin-top: 10px;
  padding: 13px;
  border-radius: 8px;
  background: #fff8ed;
}

.mh-next-placement span {
  display: block;
  color: var(--mh-muted);
  font-size: 13px;
  line-height: 1.3;
}

.mh-next-placement strong {
  display: block;
  margin-top: 6px;
  color: #8a3d00;
  font-size: 18px;
  line-height: 1.35;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 900;
}

.mh-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.mh-section-title h3 {
  margin: 0;
  line-height: 1.25;
}

.mh-status-tabs {
  margin-bottom: 14px;
}

.delivery-stack {
  display: grid;
  gap: 12px;
}

.mh-home-delivery-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 13px !important;
  color: inherit;
}

.mh-home-delivery-card:hover {
  color: inherit;
}

.mh-home-delivery-card.is-next-delivery {
  border-color: var(--mh-theme);
  box-shadow: 0 0 0 1px rgba(35, 135, 183, 0.08);
}

.mh-home-delivery-body {
  min-width: 0;
}

.mh-home-delivery-body p {
  margin: 6px 0 10px;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-home-item-count {
  font-weight: 400;
}

.mh-home-item-count strong {
  font-weight: 900;
}

.mh-home-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.mh-home-delivery-card .mh-card-title h2 {
  font-size: 17px;
  font-weight: 800;
}

.mh-history-title {
  margin-top: 6px;
}

.mh-history-stack {
  display: grid;
  gap: 12px;
}

.mh-history-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px !important;
  color: inherit;
}

.mh-history-card:hover {
  color: inherit;
}

.mh-history-thumb {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.mh-history-thumb img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.mh-history-thumb.empty {
  border: 1px dashed #dfe5e7;
  background: #f8fafb;
  color: #9aa4aa;
}

.mh-history-thumb.empty i {
  margin-bottom: 4px;
  font-size: 24px;
}

.mh-history-thumb.empty span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.mh-history-card-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.mh-history-card-body .mh-card-title {
  margin-bottom: 0;
}

.mh-history-card-body .mh-card-title h2 {
  font-size: 17px;
  font-weight: 800;
}

.mh-history-card-body p {
  margin: 0;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-history-card-body > span {
  display: block;
  margin-top: 0;
}

.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #fafbfb;
}

.mh-history-card.status-completed .mh-home-item-count,
.mh-history-card.status-completed .mh-home-item-count strong,
.mh-history-card.status-manual_completed .mh-home-item-count,
.mh-history-card.status-manual_completed .mh-home-item-count strong {
  color: #737d84 !important;
}

.mh-history-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px 18px !important;
  text-align: center;
}

.mh-history-empty i {
  margin-bottom: 12px;
  color: var(--mh-theme);
  font-size: 34px;
}

.mh-history-empty h2 {
  margin-bottom: 6px;
  line-height: 1.3;
}

.mh-history-empty p {
  margin: 0;
  line-height: 1.45;
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card {
  border-color: #e1e5e7;
  background: #fafbfb;
  opacity: 1;
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #bfc7cc;
}

.mh-home-delivery-card.status-completed .mh-card-title h2,
.mh-home-delivery-card.status-completed .mh-home-item-count,
.mh-home-delivery-card.status-completed .mh-home-item-count strong,
.mh-home-delivery-card.status-completed .mh-home-card-foot span,
.mh-home-delivery-card.status-manual_completed .mh-card-title h2,
.mh-home-delivery-card.status-manual_completed .mh-home-item-count,
.mh-home-delivery-card.status-manual_completed .mh-home-item-count strong,
.mh-home-delivery-card.status-manual_completed .mh-home-card-foot span {
  color: #737d84 !important;
}

.mh-home-delivery-card.status-completed .mh-status-chip,
.mh-home-delivery-card.status-manual_completed .mh-status-chip {
  background: #e1e5e7;
  color: #667078;
}

.mh-order-box {
  display: block;
  color: inherit;
}

.mh-order-box:hover {
  color: inherit;
}

.mh-order-box .media {
  align-items: flex-start;
}

.mh-route-no {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-theme);
  color: #fff;
  font-weight: 800;
}

.mh-card-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 6px;
}

.mh-card-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.mh-order-box p {
  margin-bottom: 6px;
  line-height: 1.45;
}

.mh-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-completed .mh-status-chip,
.status-manual_completed .mh-status-chip {
  background: #ecfdf3;
  color: #067647;
}

.status-upload_failed .mh-status-chip,
.status-manual_sms_required .mh-status-chip {
  background: #fef3f2;
  color: var(--mh-danger);
}

.mh-feedback {
  padding: 13px 14px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #05603a;
  font-weight: 800;
  line-height: 1.45;
}

.mh-feedback.error {
  background: #fef3f2;
  color: var(--mh-danger);
}

.hidden,
.visually-hidden {
  display: none !important;
}

.mh-driver-action-space {
  padding-bottom: 204px;
}

.mh-delivery-detail {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 58px);
  padding: 14px 15px 204px;
  background: #f3f5f6;
}

.mh-delivery-detail section {
  padding-top: 0;
  padding-bottom: 0;
}

.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel {
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: #fff;
}

.mh-stop-card {
  padding: 16px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-stop-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.mh-route-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-theme);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.mh-stop-title {
  min-width: 0;
}

.mh-stop-title h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.mh-stop-title .mh-status-chip {
  margin-top: 7px;
}

/* Kept for older markup during hot reloads. */
.mh-stop-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.mh-address-callout {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px !important;
  border: 1px solid #f0f2f3;
  border-radius: 8px;
  background: #fff;
}

.mh-address-callout i {
  color: var(--mh-theme);
  font-size: 24px;
}

.mh-address-callout p {
  margin: 0;
  color: var(--mh-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mh-address-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e8eeee;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--mh-theme);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mh-placement-callout {
  padding: 14px 16px !important;
  border-color: #ffe3c7;
  background: #fff8ed;
}

.mh-placement-callout span,
.mh-work-steps p,
.mh-issue-title p {
  display: block;
  margin: 0;
  color: var(--mh-muted);
}

.mh-placement-callout span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.mh-placement-callout strong {
  display: block;
  margin-top: 7px;
  margin-bottom: 0;
  color: #8a3d00;
  font-size: 23px;
  line-height: 1.28;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  white-space: normal;
}

.mh-contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px !important;
}

.mh-contact-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.25;
}

.mh-contact-actions {
  display: flex;
  gap: 8px;
}

.mh-quick-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 56px;
  border-radius: 8px;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-size: 13px;
  font-weight: 900;
}

.mh-quick-button i {
  margin-bottom: 3px;
  font-size: 22px;
}

.mh-work-steps,
.mh-driver-items,
.mh-manual-panel {
  padding: 16px !important;
}

.mh-driver-items .item-wrap {
  padding: 0;
}

.mh-driver-items .item-wrap,
.mh-manual-panel form,
.mh-manual-actions {
  margin-top: 0;
}

.mh-work-steps h3,
.mh-driver-items h3,
.mh-manual-panel h3 {
  margin-bottom: 13px;
  line-height: 1.25;
}

.mh-work-steps ol {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mh-work-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: flex-start;
}

.mh-work-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-weight: 900;
}

.mh-work-steps strong {
  display: block;
  color: var(--mh-text);
  font-size: 15px;
  line-height: 1.35;
}

.mh-work-steps p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.42;
}

.mh-item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px dashed #d9e0de;
}

.mh-item-line:last-child {
  border-bottom: 0;
}

.mh-item-name {
  color: var(--mh-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mh-item-qty {
  color: var(--mh-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.mh-photo-preview img,
.customer-photo {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin: 12px 0;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.mh-manual-panel .input-box {
  margin: 12px 0 10px;
}

.mh-issue-title h3 {
  margin-bottom: 6px;
  line-height: 1.25;
}

.mh-issue-title p {
  font-size: 13px;
  line-height: 1.45;
}

.mh-manual-panel,
.mh-manual-panel h3,
.mh-manual-panel p {
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-manual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mh-sms-link,
.mh-manual-complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.mh-manual-complete-form {
  margin: 0;
}

.mh-manual-complete-button {
  border: 1px solid var(--mh-theme);
  color: #fff;
}

.mh-sms-link i {
  font-size: 20px;
}

.mh-detail-footer {
  background: #fff;
  border: 1px solid var(--mh-line);
  box-shadow: 0 -8px 26px rgba(34, 34, 34, 0.08);
}

.mh-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mh-footer-actions .btn-outline,
.mh-footer-actions .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.mh-footer-actions button {
  font: inherit;
}

.mh-driver-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 600px);
  padding: 11px 15px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--mh-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(34, 34, 34, 0.12);
  backdrop-filter: blur(12px);
}

.mh-big-action {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.mh-big-action i {
  font-size: 25px;
  text-align: center;
}

.mh-big-action span {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.mh-big-action small {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.8;
}

.mh-copy-action {
  border: 1px solid var(--mh-theme);
  background: #fff;
  color: var(--mh-theme);
}

.mh-camera-action {
  border: 1px solid var(--mh-theme);
  background: var(--mh-theme);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 176px;
  z-index: 30;
  transform: translateX(-50%) translateY(20px);
  width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mh-customer-photo {
  min-height: 100vh;
  padding-top: 24px;
}

.mh-customer-photo h1 {
  margin: 8px 0 18px;
  line-height: 1.25;
}

.empty-photo {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed var(--mh-line);
  border-radius: 8px;
  color: var(--mh-muted);
  font-weight: 800;
}

@media (max-width: 390px) {
  .mh-stop-card h2 {
    font-size: 23px;
    line-height: 1.28;
  }

  .mh-placement-callout strong {
    font-size: 22px;
  }

  .mh-address-callout p {
    font-size: 15px;
  }

  .mh-contact-strip {
    grid-template-columns: 1fr;
  }

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

  .mh-footer-actions {
    gap: 8px;
  }

  .mh-footer-actions .btn-outline,
  .mh-footer-actions .btn-solid {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .mh-delivery-detail .order-summary li span:last-child,
  .mh-delivery-detail .order-summary li a {
    max-width: 58%;
  }

  .mh-big-action {
    min-height: 68px;
    grid-template-columns: 34px 1fr;
  }

  .mh-big-action span {
    font-size: 16px;
  }
}

/* Design refinement pass: driver mobile */
:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-dark: #176f9c;
  --mh-theme-soft: rgba(35, 135, 183, 0.11);
  --mh-bg: #eef2f4;
  --mh-card: #ffffff;
  --mh-text: #171d23;
  --mh-muted: #66737d;
  --mh-line: #dfe7eb;
  --mh-soft: #edf7fc;
  --mh-warning-bg: #fff7e8;
  --mh-warning-text: #7a3d00;
  --mh-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04);
}

body.mh-driver-app {
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

.mh-header {
  min-height: 58px;
  padding: 9px 15px;
  border-bottom-color: rgba(32, 47, 58, 0.08);
  box-shadow: 0 1px 0 rgba(32, 47, 58, 0.02);
}

.mh-header .logo-wrap h1,
.mh-header-title h1 {
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: 0;
}

.mh-header .logo-wrap span,
.mh-header-title span {
  color: var(--mh-muted) !important;
  font-size: 12px !important;
  font-weight: 400;
}

.mh-list-link {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--mh-line);
  background: #fff;
  color: var(--mh-muted);
  font-size: 12px !important;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.mh-home-page,
.mh-history-page {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 13px;
  padding: 72px 14px 32px;
  background: var(--mh-bg);
}

.mh-delivery-detail {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 13px;
  padding: 14px 14px 204px;
  background: var(--mh-bg);
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty,
.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel,
.mh-photo-preview {
  border-color: var(--mh-line);
  border-radius: 8px;
  background-color: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-home-summary,
.mh-history-summary,
.mh-stop-card {
  background: linear-gradient(135deg, #e7f6fd 0%, #f6fbfe 58%, #ffffff 100%);
}

.mh-home-summary {
  min-height: 112px;
  padding: 15px !important;
}

.mh-home-summary h2,
.mh-history-summary h2 {
  color: var(--mh-text);
  font-weight: 400;
  letter-spacing: 0;
}

.mh-home-summary h2 strong,
.mh-history-summary h2 strong {
  color: var(--mh-text);
  font-weight: 800;
}

.mh-home-stats div,
.mh-history-stats span {
  border-color: rgba(35, 135, 183, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.mh-home-stats strong {
  color: var(--mh-theme-dark);
  font-weight: 800;
}

.mh-next-card {
  padding: 15px !important;
}

.mh-next-label,
.mh-driver-items h3,
.mh-work-steps h3 {
  color: var(--mh-theme-dark) !important;
  font-weight: 700;
}

.mh-next-heading h2,
.mh-stop-title h2 {
  color: var(--mh-text);
  font-weight: 800;
  letter-spacing: 0;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-card > p,
.mh-address-callout {
  border-color: var(--mh-line);
  background: #fff;
}

.mh-next-card > p,
.mh-address-callout p {
  color: var(--mh-text);
  font-weight: 650;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-placement,
.mh-placement-callout {
  border-color: #f6ddb8;
  background: var(--mh-warning-bg);
}

.mh-next-placement strong,
.mh-placement-callout strong {
  color: var(--mh-warning-text);
  font-weight: 750;
  letter-spacing: 0;
}

.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button {
  background: var(--mh-theme) !important;
  border-color: var(--mh-theme) !important;
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(35, 135, 183, 0.16);
}

.mh-section-title {
  margin: 18px 0 2px;
}

.mh-section-title h3 {
  color: var(--mh-text) !important;
  font-size: 17px !important;
  font-weight: 750;
}

.delivery-stack,
.mh-history-stack {
  gap: 10px;
}

.mh-home-delivery-card {
  min-height: 116px;
  padding: 13px !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.mh-home-delivery-card.is-next-delivery {
  background: #fbfdff;
  border-color: rgba(35, 135, 183, 0.72);
  box-shadow: 0 0 0 1px rgba(35, 135, 183, 0.08), var(--mh-shadow);
}

.mh-home-delivery-card .mh-card-title h2,
.mh-history-card-body .mh-card-title h2 {
  color: var(--mh-text) !important;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-home-delivery-body p,
.mh-history-card-body p,
.mh-home-card-foot span {
  color: var(--mh-muted) !important;
  font-weight: 400;
}

.mh-home-item-count {
  color: var(--mh-theme-dark) !important;
}

.mh-route-no,
.mh-route-badge {
  background: linear-gradient(180deg, #2c96c7 0%, var(--mh-theme-dark) 100%);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(35, 135, 183, 0.18);
}

.mh-status-chip {
  min-height: 25px;
  border: 1px solid rgba(35, 135, 183, 0.12);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
  font-weight: 600;
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card,
.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #f8fafb;
  border-color: #e4e9ec;
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #c4ccd2;
  box-shadow: none;
}

.mh-history-search,
.mh-history-summary,
.mh-history-card {
  padding: 14px !important;
}

.mh-date-input-wrap input,
.mh-quick-dates a {
  border-color: var(--mh-line);
  color: var(--mh-text);
  font-weight: 650;
}

.mh-quick-dates a {
  background: #fff;
}

.mh-quick-dates a.active {
  border-color: rgba(35, 135, 183, 0.28);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
}

.mh-history-thumb {
  background: #17202a;
}

.mh-history-empty {
  min-height: 260px;
}

.mh-address-copy,
.mh-quick-button,
.mh-sms-link {
  border: 1px solid rgba(35, 135, 183, 0.16);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
  font-weight: 700;
}

.mh-driver-items .item-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.mh-item-line {
  min-height: 48px;
  padding: 11px 0;
  border-bottom-color: var(--mh-line);
}

.mh-item-name {
  font-weight: 650;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-item-qty {
  font-size: 24px;
  font-weight: 800;
}

.mh-work-steps li > span {
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
}

.mh-work-steps strong {
  font-weight: 700;
}

.mh-driver-action-bar {
  border-top-color: rgba(32, 47, 58, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.13);
}

.mh-big-action {
  min-height: 74px;
  border-radius: 8px;
  font-weight: 700;
}

.mh-big-action span {
  font-weight: 800;
}

.mh-copy-action {
  background: #fff;
  color: var(--mh-theme-dark);
}

.mh-camera-action {
  background: linear-gradient(180deg, #2c96c7 0%, var(--mh-theme-dark) 100%);
}

.toast {
  border-radius: 8px;
  background: rgba(23, 29, 35, 0.94);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.18);
}

/* NobleUI convergence layer */
:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-dark: #176f9c;
  --mh-theme-soft: rgba(35, 135, 183, 0.12);
  --bs-primary: rgb(35, 135, 183);
  --bs-primary-rgb: 35, 135, 183;
  --bs-link-color: rgb(35, 135, 183);
  --bs-link-hover-color: #176f9c;
  --mh-bg: #f9fafb;
  --mh-card: #ffffff;
  --mh-text: #060c17;
  --mh-muted: #7987a1;
  --mh-line: #f2f4f9;
  --mh-soft: rgba(35, 135, 183, 0.12);
  --mh-warning-bg: rgba(251, 188, 6, 0.12);
  --mh-warning-text: #8a6500;
  --mh-shadow: 0 0 10px 0 rgba(183, 192, 206, 0.2);
}

body.mh-driver-app,
body.mh-customer-app {
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: "Roboto", "Noto Sans KR", Helvetica, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
}

body.mh-driver-app,
body.mh-customer-app {
  overflow-x: hidden;
}

.mh-header,
.mh-home-header,
.mh-history-header {
  min-height: 60px;
  border-bottom: 1px solid var(--bs-border-color, #e9ecef);
  background: var(--mh-card);
  box-shadow: none;
}

body.mh-driver-app > .mh-header:not(.mh-home-header):not(.mh-history-header) {
  width: min(100%, 600px);
  margin-right: auto;
  margin-left: auto;
}

.mh-header .logo-wrap h1,
.mh-header-title h1 {
  color: var(--mh-text) !important;
  font-size: 1rem !important;
  font-weight: 500;
}

.mh-header .logo-wrap span,
.mh-header-title span {
  color: var(--mh-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 400;
}

.mh-home-page,
.mh-history-page,
.mh-delivery-detail {
  box-sizing: border-box;
  width: min(100%, 600px) !important;
  max-width: 600px;
  margin-right: auto !important;
  margin-left: auto !important;
  background: var(--mh-bg);
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty,
.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel,
.mh-photo-preview {
  border: 1px solid var(--mh-line);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-home-summary,
.mh-history-summary,
.mh-stop-card {
  background: var(--mh-card);
}

.mh-home-summary h2,
.mh-history-summary h2,
.mh-next-heading h2,
.mh-stop-title h2,
.mh-home-delivery-card .mh-card-title h2,
.mh-history-card-body .mh-card-title h2 {
  color: var(--mh-text) !important;
  font-weight: 500;
}

.mh-home-summary h2 strong,
.mh-history-summary h2 strong,
.mh-home-item-count strong,
.mh-item-qty {
  font-weight: 700;
}

.mh-list-link,
.mh-address-copy,
.mh-quick-button,
.mh-sms-link,
.mh-copy-action,
.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button,
.mh-camera-action {
  border-radius: 0.25rem;
  font-weight: 500;
}

.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button,
.mh-camera-action {
  border-color: var(--mh-theme) !important;
  background: var(--mh-theme) !important;
  color: #fff !important;
  box-shadow: none;
}

.mh-copy-action,
.mh-address-copy,
.mh-quick-button,
.mh-sms-link {
  border-color: var(--mh-theme) !important;
  background: rgba(35, 135, 183, 0.12) !important;
  color: var(--mh-theme) !important;
  box-shadow: none;
}

.mh-home-stats div,
.mh-history-stats span,
.mh-date-input-wrap input,
.mh-quick-dates a,
.mh-address-callout,
.mh-next-card > p,
.mh-file-like-box {
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: none;
}

.mh-date-input-wrap input {
  color: var(--mh-text);
  font-size: 0.875rem;
  font-weight: 400;
}

.mh-quick-dates a.active {
  border-color: var(--mh-theme);
  background: rgba(35, 135, 183, 0.12);
  color: var(--mh-theme);
}

.mh-route-no,
.mh-route-badge,
.mh-work-steps li > span {
  border-radius: 0.25rem;
  background: var(--mh-theme);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

.mh-status-chip {
  min-height: auto;
  padding: 0.35em 0.65em;
  border: 0;
  border-radius: 0.25rem;
  background: rgba(35, 135, 183, 0.12);
  color: var(--mh-theme);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
}

.status-completed .mh-status-chip,
.status-manual_completed .mh-status-chip {
  background: rgba(5, 163, 74, 0.12);
  color: #05a34a;
}

.status-upload_failed .mh-status-chip,
.status-manual_sms_required .mh-status-chip {
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
}

.mh-next-placement,
.mh-placement-callout {
  border: 1px solid rgba(251, 188, 6, 0.3);
  border-radius: 0.25rem;
  background: var(--mh-warning-bg);
}

.mh-next-placement strong,
.mh-placement-callout strong {
  color: var(--mh-warning-text);
  font-weight: 500;
}

.mh-reference-callout {
  padding: 14px 16px !important;
  border: 1px solid rgba(35, 135, 183, 0.18);
  border-radius: 0.25rem;
  background: rgba(35, 135, 183, 0.08);
  box-shadow: var(--mh-shadow);
}

.mh-reference-callout span {
  display: block;
  margin: 0;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.mh-reference-callout strong {
  display: block;
  margin-top: 7px;
  color: var(--mh-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.mh-section-title h3,
.mh-next-label,
.mh-driver-items h3,
.mh-work-steps h3,
.mh-manual-panel h3 {
  color: var(--mh-text) !important;
  font-size: 1rem !important;
  font-weight: 500;
}

.mh-home-delivery-card.is-next-delivery {
  border-color: var(--mh-theme);
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card,
.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #fff;
  border-color: var(--mh-line);
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #7987a1;
}

.mh-home-delivery-body p,
.mh-history-card-body p,
.mh-home-card-foot span,
.mh-work-steps p,
.mh-issue-title p,
.mh-next-placement span,
.mh-placement-callout span {
  color: var(--mh-muted) !important;
  font-weight: 400;
}

.mh-home-item-count,
.mh-driver-items h3,
.mh-work-steps h3 {
  color: var(--mh-theme) !important;
}

.mh-item-line {
  border-bottom: 1px solid var(--mh-line);
}

.mh-item-name {
  color: var(--mh-text);
  font-weight: 500;
}

.mh-driver-action-bar {
  border-top: 1px solid var(--bs-border-color, #e9ecef);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -0.5rem 1rem rgba(183, 192, 206, 0.2);
}

.mh-big-action span {
  font-weight: 500;
}

.mh-big-action small {
  font-weight: 400;
}

.toast {
  border-radius: 0.25rem;
  background: #060c17;
  box-shadow: var(--mh-shadow);
  font-weight: 400;
}

.mh-customer-photo {
  box-sizing: border-box;
  width: min(100%, 600px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-right: auto;
  margin-left: auto;
  padding: 1.5rem 15px;
  background: var(--mh-bg);
}

.mh-customer-photo section {
  padding: 1.5rem !important;
  border: 1px solid var(--mh-line);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-customer-photo .font-theme {
  color: var(--mh-theme) !important;
  font-weight: 500 !important;
}

.mh-customer-photo h1 {
  color: var(--mh-text) !important;
  font-size: 1.25rem !important;
  font-weight: 500;
}

.customer-photo {
  border-radius: 0.25rem;
}

.empty-photo {
  border-color: var(--bs-border-color, #e9ecef);
  border-radius: 0.25rem;
  background: var(--mh-bg);
  color: var(--mh-muted);
  font-weight: 400;
}

/* ===== 로그인 화면 (배송기사) ===== */
.mh-login-app { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: #f4f6f8; }
.mh-login-page { width: 100%; max-width: 420px; padding: 24px; }
.mh-login-card { background: #fff; border-radius: 18px; padding: 32px 24px; box-shadow: 0 12px 32px rgba(15, 35, 60, 0.10); }
.mh-login-brand { text-align: center; margin-bottom: 24px; }
.mh-login-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.mh-login-form { display: flex; flex-direction: column; gap: 16px; }
.mh-login-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #4b5563; }
.mh-login-label input { height: 48px; padding: 0 14px; border: 1px solid #d7dde5; border-radius: 12px; font-size: 16px; }
.mh-login-label input:focus { outline: none; border-color: #2387b7; box-shadow: 0 0 0 3px rgba(35, 135, 183, 0.15); }
.mh-login-submit { height: 50px; border: 0; border-radius: 12px; background: #2387b7; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.mh-login-submit:active { background: #1d769f; }
.mh-login-error { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #c0392b; font-size: 13px; }

/* 로그인 분실 링크 + 모달 */
.mh-login-help { margin-top: 22px; text-align: center; }
.mh-login-help a { color: #6b7280; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.mh-login-help a:hover { color: #2387b7; }
.mh-login-modal { border: 0; border-radius: 16px; }
.mh-login-modal .modal-body { padding: 28px 24px 8px; text-align: center; }
.mh-login-modal-text { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.mh-login-modal .modal-footer { border-top: 0; justify-content: center; padding: 8px 24px 22px; }
.mh-login-modal-btn { min-width: 120px; height: 44px; border: 0; border-radius: 10px; background: #2387b7; color: #fff; font-weight: 600; }
.mh-login-modal-btn:hover { background: #1d769f; color: #fff; }

/* ============================================================
   디자인 시스템 v1 (기사/고객 모바일) — Pretendard + 타이포 정제
   ============================================================ */
body.mh-driver-app, body.mh-customer-app, body.mh-login-app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
/* 아이콘 폰트(iconly/icli)와 feather는 제외하고 서체 적용 */
.mh-driver-app *:not(i):not([class*="iconly"]):not([class*="icli"]),
.mh-customer-app *:not(i):not([class*="iconly"]):not([class*="icli"]),
.mh-login-app *:not(i):not([class*="iconly"]):not([class*="icli"]) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui,
               'Apple SD Gothic Neo', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
}
/* 제목/숫자 위계 정리 */
.mh-driver-app .title-color { color: #0f172a; letter-spacing: -0.02em; }
.mh-driver-app .content-color { color: #64748b; }
.mh-driver-app .mh-home-summary h2 strong,
.mh-driver-app .mh-home-stats strong { font-weight: 800; letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.mh-driver-app .font-lg { letter-spacing: -0.02em; }
/* 로그인 카드 미세 정제 */
.mh-login-card { box-shadow: 0 8px 28px rgba(15,35,60,.10), 0 2px 8px rgba(15,35,60,.04); }
.mh-login-card .title-color { letter-spacing: -0.03em; }

/* ============================================================
   기사 모바일 디자인 v2 — 통합 리디자인 (전문가 톤)
   ============================================================ */
.mh-driver-app {
  --d-brand:#2387b7; --d-brand-d:#1b6f97;
  --d-grad:linear-gradient(135deg,#2e9bce 0%,#1b6c95 100%);
  --d-ink:#0f1b2a; --d-muted:#5b6b7d; --d-faint:#94a3b4;
  --d-line:#e9eef3; --d-bg:#eef2f6; --d-surface:#fff;
  --d-ok:#1f9d57; --d-okbg:#e7f6ee; --d-blue:#2871c9; --d-bluebg:#e9f1fc;
  --d-warn:#c9820f; --d-warnbg:#fdf2df; --d-danger:#d8443a; --d-dangerbg:#fdeceb;
  --d-card:0 1px 2px rgba(16,32,52,.05), 0 10px 26px rgba(16,32,52,.06);
  background:var(--d-bg) !important; color:var(--d-ink);
}
.mh-driver-app .mh-header,
.mh-driver-app .main-wrap { max-width:480px; margin-left:auto; margin-right:auto; }

/* ---- 헤더 ---- */
.mh-driver-app .mh-header {
  position:sticky; top:0; left:auto; right:auto; transform:none; width:100%; z-index:20; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 18px; min-height:62px;
  background:rgba(255,255,255,.92); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--d-line);
}
.mh-driver-app .mh-header .logo-wrap { display:flex; align-items:center; gap:11px; }
.mh-driver-app .mh-header .logo-wrap > .icli {
  display:flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:11px; background:var(--d-grad); color:#fff; font-size:19px;
  box-shadow:0 4px 12px rgba(35,135,183,.32);
}
.mh-driver-app .mh-header h1 { font-size:17px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); margin:0; }
.mh-driver-app .mh-header .logo-wrap span { font-size:12px; color:var(--d-faint); font-weight:500; }
.mh-driver-app .mh-header-title { text-align:center; }
.mh-driver-app .mh-header-title h1 { font-size:16px; font-weight:800; }
.mh-driver-app .mh-list-link {
  display:inline-flex; align-items:center; gap:5px; padding:8px 13px; border-radius:999px;
  background:#eef4f8; color:var(--d-brand-d); font-size:12.5px; font-weight:700; text-decoration:none;
}
.mh-driver-app .mh-list-link:active { background:#e2edf3; }
.mh-driver-app .mh-list-icon { width:14px; height:14px; fill:currentColor; }
.mh-driver-app .mh-back-link {
  display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px;
  background:#eef4f8; color:var(--d-brand-d);
}
.mh-driver-app .mh-back-icon { width:17px; height:17px; fill:currentColor; }

/* ---- 본문 컨테이너 ---- */
.mh-driver-app .main-wrap { padding:16px 18px 28px; display:flex; flex-direction:column; gap:14px; }
.mh-driver-app .mh-driver-action-space { padding-bottom:150px; }

/* ---- 요약 히어로 ---- */
.mh-driver-app .mh-home-summary {
  background:var(--d-grad); color:#fff; border-radius:18px; padding:20px;
  box-shadow:0 12px 30px rgba(27,108,149,.30); display:block;
}
.mh-driver-app .mh-home-summary > div:first-child span { color:rgba(255,255,255,.82); font-size:13px; font-weight:600; }
.mh-driver-app .mh-home-summary h2 { color:#fff; font-size:26px; font-weight:800; letter-spacing:-.03em; margin:2px 0 0; }
.mh-driver-app .mh-home-summary h2 strong { font-weight:800; }
.mh-driver-app .mh-home-progress { height:7px; border-radius:99px; background:rgba(255,255,255,.28); margin:16px 0 14px; overflow:hidden; }
.mh-driver-app .mh-home-progress > span { display:block; height:100%; border-radius:99px; background:#fff; transition:width .4s ease; }
.mh-driver-app .mh-home-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mh-driver-app .mh-home-stats > div {
  background:rgba(255,255,255,.16); border-radius:12px; padding:10px 14px; display:flex;
  align-items:center; justify-content:space-between;
}
.mh-driver-app .mh-home-stats span { color:rgba(255,255,255,.85); font-size:12.5px; font-weight:600; }
.mh-driver-app .mh-home-stats strong { color:#fff; font-size:20px; font-weight:800; font-feature-settings:"tnum"; }

/* ---- 다음 배송지 카드 ---- */
.mh-driver-app .mh-next-card {
  background:var(--d-surface); border:1px solid var(--d-line); border-radius:18px; padding:18px;
  box-shadow:var(--d-card); position:relative;
}
.mh-driver-app .mh-next-label { font-size:12px; font-weight:800; letter-spacing:.02em; color:var(--d-brand); text-transform:uppercase; margin-bottom:12px; }
.mh-driver-app .mh-next-heading { display:flex; align-items:center; gap:12px; }
.mh-driver-app .mh-route-badge {
  display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px;
  border-radius:13px; background:var(--d-grad); color:#fff; font-size:19px; font-weight:800;
  box-shadow:0 6px 14px rgba(35,135,183,.30);
}
.mh-driver-app .mh-next-heading h2 { font-size:18px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); margin:0; }
.mh-driver-app .mh-next-card > p { margin:14px 0 0; color:var(--d-muted); font-size:14px; line-height:1.5; }
.mh-driver-app .mh-next-placement {
  margin-top:14px; padding:12px 14px; border-radius:12px; background:#f3f7fa; display:flex;
  flex-direction:column; gap:3px;
}
.mh-driver-app .mh-next-placement span { font-size:11.5px; font-weight:700; color:var(--d-faint); }
.mh-driver-app .mh-next-placement strong { font-size:14.5px; font-weight:700; color:var(--d-ink); }
.mh-driver-app .mh-next-link {
  display:flex; align-items:center; justify-content:center; margin-top:16px; height:48px; border-radius:13px;
  background:var(--d-grad); color:#fff; font-size:15px; font-weight:700; text-decoration:none;
  box-shadow:0 8px 18px rgba(27,108,149,.28);
}
/* 빈/완료 상태 카드 */
.mh-driver-app .mh-next-card > h2 { font-size:17px; font-weight:700; color:var(--d-ink); margin:6px 0 0; }

/* ---- 섹션 타이틀 ---- */
.mh-driver-app .mh-section-title { margin:4px 2px 0; }
.mh-driver-app .mh-section-title h3 { font-size:14px; font-weight:800; letter-spacing:-.01em; color:var(--d-ink); }

/* ---- 배송 목록 카드 ---- */
.mh-driver-app .delivery-stack { display:flex; flex-direction:column; gap:10px; }
.mh-driver-app .mh-home-delivery-card {
  display:flex; align-items:stretch; gap:13px; background:var(--d-surface); border:1px solid var(--d-line);
  border-radius:15px; padding:14px; box-shadow:0 1px 2px rgba(16,32,52,.04); text-decoration:none;
  position:relative; overflow:hidden; transition:transform .12s ease, box-shadow .12s ease;
}
.mh-driver-app .mh-home-delivery-card:active { transform:scale(.99); }
.mh-driver-app .mh-home-delivery-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--d-faint); }
.mh-driver-app .mh-home-delivery-card.status-pending::before { background:#c3ccd6; }
.mh-driver-app .mh-home-delivery-card.status-started::before,
.mh-driver-app .mh-home-delivery-card.status-photo_pending::before,
.mh-driver-app .mh-home-delivery-card.status-uploading::before { background:var(--d-blue); }
.mh-driver-app .mh-home-delivery-card.status-completed::before,
.mh-driver-app .mh-home-delivery-card.status-manual_completed::before,
.mh-driver-app .mh-home-delivery-card.status-uploaded::before { background:var(--d-ok); }
.mh-driver-app .mh-home-delivery-card.status-manual_sms_required::before,
.mh-driver-app .mh-home-delivery-card.status-upload_failed::before { background:var(--d-danger); }
.mh-driver-app .mh-home-delivery-card.is-next-delivery { border-color:rgba(35,135,183,.4); box-shadow:0 0 0 3px rgba(35,135,183,.10), var(--d-card); }
.mh-driver-app .mh-route-no {
  display:flex; align-items:center; justify-content:center; flex:0 0 38px; width:38px; height:38px;
  border-radius:11px; background:#eef4f8; color:var(--d-brand-d); font-size:16px; font-weight:800;
}
.mh-driver-app .mh-home-delivery-body { flex:1; min-width:0; }
.mh-driver-app .mh-card-title { display:flex; align-items:center; gap:8px; }
.mh-driver-app .mh-card-title h2 { font-size:15.5px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); margin:0; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-driver-app .mh-home-item-count { margin:5px 0 0; color:var(--d-brand-d) !important; font-size:12px; }
.mh-driver-app .mh-home-card-foot { margin-top:6px; }
.mh-driver-app .mh-home-card-foot span { color:var(--d-muted) !important; font-size:12.5px; line-height:1.45; }

/* ---- 상태 칩 ---- */
.mh-driver-app .mh-status-chip {
  display:inline-flex; align-items:center; flex-shrink:0; height:22px; padding:0 9px; border-radius:99px;
  background:#eef2f6; color:var(--d-muted); font-size:11px; font-weight:800; letter-spacing:-.01em; white-space:nowrap;
}
.mh-driver-app .status-started .mh-status-chip,
.mh-driver-app .status-photo_pending .mh-status-chip { background:var(--d-bluebg); color:var(--d-blue); }
.mh-driver-app .status-completed .mh-status-chip,
.mh-driver-app .status-manual_completed .mh-status-chip { background:var(--d-okbg); color:var(--d-ok); }
.mh-driver-app .status-manual_sms_required .mh-status-chip,
.mh-driver-app .status-upload_failed .mh-status-chip { background:var(--d-dangerbg); color:var(--d-danger); }

/* ---- 상세: 스톱/주소/적치/참조 ---- */
.mh-driver-app .mh-stop-card,
.mh-driver-app .mh-placement-callout,
.mh-driver-app .mh-reference-callout,
.mh-driver-app .mh-contact-strip,
.mh-driver-app .mh-work-steps,
.mh-driver-app .mh-manual-panel,
.mh-driver-app .mh-photo-preview,
.mh-driver-app .mh-driver-items {
  background:var(--d-surface); border:1px solid var(--d-line); border-radius:16px; padding:16px; box-shadow:0 1px 2px rgba(16,32,52,.04);
}
.mh-driver-app .mh-stop-heading { display:flex; align-items:center; gap:12px; }
.mh-driver-app .mh-stop-title h2 { font-size:18px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); margin:0 0 4px; }
.mh-driver-app .mh-address-callout {
  display:flex; align-items:flex-start; gap:10px; margin-top:14px; padding:13px 14px;
  border-radius:13px; background:#f3f7fa; border:1px solid #e4edf3;
}
.mh-driver-app .mh-address-callout .icli { color:var(--d-brand); font-size:18px; margin-top:1px; }
.mh-driver-app .mh-address-callout p { flex:1; margin:0; font-size:14px; line-height:1.5; color:var(--d-ink); font-weight:500; }
.mh-driver-app .mh-address-copy {
  flex-shrink:0; align-self:flex-start; padding:7px 13px; border:0; border-radius:9px;
  background:var(--d-brand); color:#fff; font-size:12.5px; font-weight:700;
}
.mh-driver-app .mh-placement-callout span,
.mh-driver-app .mh-reference-callout span { display:block; font-size:12px; font-weight:700; color:var(--d-faint); margin-bottom:4px; }
.mh-driver-app .mh-placement-callout strong,
.mh-driver-app .mh-reference-callout strong { font-size:15px; font-weight:700; color:var(--d-ink); }
.mh-driver-app .mh-placement-callout { border-left:3px solid var(--d-brand); }

/* ---- 상품 정보 ---- */
.mh-driver-app .mh-driver-items h3,
.mh-driver-app .mh-work-steps h3,
.mh-driver-app .mh-photo-preview h3 { font-size:14px; font-weight:800; color:var(--d-ink); margin:0 0 12px; }
.mh-driver-app .mh-item-line { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-top:1px solid #f0f4f7; }
.mh-driver-app .mh-item-line:first-child { border-top:0; }
.mh-driver-app .mh-item-name { font-size:14px; color:var(--d-ink); font-weight:500; }
.mh-driver-app .mh-item-qty { font-size:15px; font-weight:800; color:var(--d-brand-d); }

/* ---- 수신자 연락 ---- */
.mh-driver-app .mh-contact-strip { display:flex; align-items:center; justify-content:space-between; }
.mh-driver-app .mh-contact-strip > div:first-child span { font-size:12px; color:var(--d-faint); font-weight:600; display:block; }
.mh-driver-app .mh-contact-strip > div:first-child strong { font-size:16px; font-weight:800; color:var(--d-ink); }
.mh-driver-app .mh-contact-actions { display:flex; gap:8px; }
.mh-driver-app .mh-quick-button {
  display:inline-flex; align-items:center; gap:5px; padding:9px 14px; border-radius:11px;
  background:#eef4f8; color:var(--d-brand-d); font-size:13px; font-weight:700; text-decoration:none;
}

/* ---- 할 일 단계 ---- */
.mh-driver-app .mh-work-steps ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.mh-driver-app .mh-work-steps li { display:flex; gap:12px; }
.mh-driver-app .mh-work-steps li > span {
  flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:#eef4f8; color:var(--d-brand-d);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800;
}
.mh-driver-app .mh-work-steps li strong { display:block; font-size:14px; font-weight:700; color:var(--d-ink); }
.mh-driver-app .mh-work-steps li p { margin:2px 0 0; font-size:12.5px; color:var(--d-muted); line-height:1.45; }

/* ---- 사진/수동 패널 ---- */
.mh-driver-app .mh-photo-preview img { width:100%; border-radius:12px; margin:0 0 10px; }
.mh-driver-app .mh-manual-panel .mh-issue-title h3 { font-size:14px; font-weight:800; margin:0 0 4px; }
.mh-driver-app .mh-manual-actions { display:flex; gap:10px; margin-top:14px; }
.mh-driver-app .mh-sms-link, .mh-driver-app .mh-manual-complete-button {
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px; height:46px; border-radius:12px;
  font-size:14px; font-weight:700; text-decoration:none; border:0;
}
.mh-driver-app .mh-sms-link { background:#eef2f6; color:var(--d-ink); }
.mh-driver-app .mh-manual-complete-form { flex:1; margin:0; }
.mh-driver-app .mh-manual-complete-button { width:100%; background:var(--d-ink); color:#fff; }

/* ---- 하단 액션바 ---- */
.mh-driver-app .mh-driver-action-bar {
  position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:480px; z-index:30;
  display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 18px calc(14px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.94); backdrop-filter:blur(12px); border-top:1px solid var(--d-line);
}
.mh-driver-app .mh-big-action {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; height:62px;
  border-radius:15px; border:0; cursor:pointer; text-decoration:none; box-shadow:0 8px 18px rgba(16,32,52,.12);
}
.mh-driver-app .mh-big-action .icli { font-size:20px; margin-bottom:1px; }
.mh-driver-app .mh-big-action span { font-size:14px; font-weight:800; letter-spacing:-.02em; }
.mh-driver-app .mh-big-action small { font-size:10.5px; opacity:.85; font-weight:600; }
.mh-driver-app .mh-copy-action { background:var(--d-grad); color:#fff; }
.mh-driver-app .mh-camera-action { background:#0f1b2a; color:#fff; }

/* ---- 토스트/피드백 ---- */
.mh-driver-app .mh-feedback { border-radius:13px; padding:14px 16px; font-size:13.5px; font-weight:600; background:var(--d-bluebg); color:var(--d-blue); border:1px solid #d4e4f7; }
.mh-driver-app .mh-feedback.error { background:var(--d-dangerbg); color:var(--d-danger); border-color:#f5d3d0; }
.mh-driver-app #toast.toast {
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(10px); z-index:60;
  max-width:340px; padding:12px 18px; border-radius:12px; background:rgba(15,27,42,.95); color:#fff;
  font-size:13.5px; font-weight:600; opacity:0; pointer-events:none; transition:all .25s ease; box-shadow:0 10px 30px rgba(0,0,0,.3);
}
.mh-driver-app #toast.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ============================================================
   기사 모바일 보정 — 그림자 제거 + 각진 5px + 순번 배지 가시성
   ============================================================ */
/* 1) 보더 카드: 그림자 제거 + 5px */
.mh-driver-app .mh-home-summary,
.mh-driver-app .mh-next-card,
.mh-driver-app .mh-home-delivery-card,
.mh-driver-app .mh-stop-card,
.mh-driver-app .mh-placement-callout,
.mh-driver-app .mh-reference-callout,
.mh-driver-app .mh-contact-strip,
.mh-driver-app .mh-work-steps,
.mh-driver-app .mh-manual-panel,
.mh-driver-app .mh-photo-preview,
.mh-driver-app .mh-driver-items,
.mh-driver-app .mh-feedback,
.mh-driver-app .mh-address-callout,
.mh-driver-app .mh-next-placement,
.mh-driver-app .mh-photo-preview img {
  box-shadow: none !important;
  border-radius: 5px !important;
}
/* 2) 배지·버튼·칩·아이콘박스: 5px + 그림자 제거 */
.mh-driver-app .mh-route-badge,
.mh-driver-app .mh-route-no,
.mh-driver-app .mh-status-chip,
.mh-driver-app .mh-next-link,
.mh-driver-app .mh-big-action,
.mh-driver-app .mh-quick-button,
.mh-driver-app .mh-address-copy,
.mh-driver-app .mh-list-link,
.mh-driver-app .mh-back-link,
.mh-driver-app .mh-sms-link,
.mh-driver-app .mh-manual-complete-button,
.mh-driver-app .mh-header .logo-wrap > .icli,
.mh-driver-app .mh-quick-button,
.mh-driver-app .mh-feedback {
  border-radius: 5px !important;
  box-shadow: none !important;
}
/* 3) '오늘 배송 순서' 순번 배지: 흰 배경 + 보더 + 파란 글자 */
.mh-driver-app .mh-route-no {
  background: #fff !important;
  border: 1px solid var(--d-brand) !important;
  color: var(--d-brand) !important;
}
/* 진행률 바 라운드도 살짝 각지게 */
.mh-driver-app .mh-home-progress,
.mh-driver-app .mh-home-progress > span,
.mh-driver-app .mh-home-stats > div { border-radius: 5px !important; }

/* 요약 히어로: '오늘 배정'과 '배송 N건'을 같은 라인 좌/우 배치 */
.mh-driver-app .mh-home-summary > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mh-driver-app .mh-home-summary > div:first-child h2 { margin: 0; }

/* 요약 히어로 '배송 N건': 진한 글자 + 흰색 그림자로 파란 배경에서 또렷하게 */
.mh-driver-app .mh-home-summary > div:first-child h2 {
  text-shadow: 0 0 2px rgba(255,255,255,.95), 0 1px 10px rgba(255,255,255,.7);
}

/* 요약 히어로 완료/남음 박스: 보더라인 제거 */
.mh-driver-app .mh-home-stats > div { border: 0 !important; }

/* 요약 보정: 완료/남음 라벨 볼드 + '배송 N건' 흰색 글자(그림자 제거) */
.mh-driver-app .mh-home-stats span { font-weight: 800 !important; }
.mh-driver-app .mh-home-summary > div:first-child h2 {
  color: #fff !important;
  text-shadow: none !important;
}

/* ============================================================
   배송 아이템 (다음 배송지 / 오늘 배송 순서) — Metronic Shipment 구조
   ============================================================ */
.mh-driver-app .mh-ship-list { background:#fff; border:1px solid var(--d-line); border-radius:5px; padding:16px; }
.mh-driver-app .mh-ship-item { display:block; text-decoration:none; }
.mh-driver-app a.mh-ship-item:active { opacity:.85; }
.mh-driver-app .mh-ship-sep { border-top:1px dashed #e2e8ee; margin:16px 0; }

/* 헤더: 심볼 + 제목 + 배지 */
.mh-driver-app .mh-ship-head { display:flex; align-items:center; gap:14px; }
.mh-driver-app .mh-ship-symbol {
  flex:0 0 46px; width:46px; height:46px; border-radius:5px; display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:800; color:#fff; background:#9aa6b2;
}
.mh-driver-app .mh-ship-symbol.status-started,
.mh-driver-app .mh-ship-symbol.status-photo_pending,
.mh-driver-app .mh-ship-symbol.status-uploading { background:var(--d-blue); }
.mh-driver-app .mh-ship-symbol.status-completed,
.mh-driver-app .mh-ship-symbol.status-manual_completed,
.mh-driver-app .mh-ship-symbol.status-uploaded { background:var(--d-ok); }
.mh-driver-app .mh-ship-symbol.status-manual_sms_required,
.mh-driver-app .mh-ship-symbol.status-upload_failed { background:var(--d-danger); }
.mh-driver-app .mh-ship-titles { flex:1; min-width:0; }
.mh-driver-app .mh-ship-titles .label { display:block; font-size:13px; color:var(--d-faint); font-weight:600; }
.mh-driver-app .mh-ship-titles .name { display:block; font-size:17px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 타임라인: 상품 / 완료시간 */
.mh-driver-app .mh-timeline { margin-top:14px; padding-left:3px; }
.mh-driver-app .mh-tl-item { position:relative; display:flex; align-items:center; gap:12px; }
.mh-driver-app .mh-tl-item.is-first { margin-bottom:12px; }
.mh-driver-app .mh-tl-icon {
  position:relative; z-index:1; flex:0 0 38px; width:38px; height:38px; border-radius:50%;
  border:1.5px solid var(--d-line); background:#fff; display:flex; align-items:center; justify-content:center;
}
.mh-driver-app .mh-tl-icon svg { width:17px; height:17px; }
.mh-driver-app .mh-tl-icon.is-product svg { color:#e0457b; }
.mh-driver-app .mh-tl-icon.is-time svg { color:#7a5af5; }
/* 두 포인트 연결선 */
.mh-driver-app .mh-tl-item.is-first .mh-tl-icon::after {
  content:""; position:absolute; left:50%; top:100%; transform:translateX(-50%);
  width:2px; height:24px; background:var(--d-line);
}
.mh-driver-app .mh-tl-content { min-width:0; }
.mh-driver-app .mh-tl-content .label { display:block; font-size:13px; color:var(--d-faint); font-weight:600; }
.mh-driver-app .mh-tl-content .value { display:block; font-size:15px; font-weight:800; letter-spacing:-.01em; color:var(--d-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 다음 배송지 카드 내부 */
.mh-driver-app .mh-next-card .mh-ship-item { margin-bottom:4px; }

/* '배송 37건': 배송·건은 일반체 흰색, 숫자만 볼드 노란색 */
.mh-driver-app .mh-home-summary > div:first-child h2 {
  font-weight: 600 !important;
  color: #fff !important;
  text-shadow: none !important;
}
.mh-driver-app .mh-home-summary > div:first-child h2 strong {
  font-weight: 800 !important;
  color: #ffd43b !important;
}

/* ============================================================
   배송 상세 — Invoice 카드 스타일 + 접이식 섹션
   ============================================================ */
.mh-driver-app .mh-invoice-card { background:#fff; border:1px solid var(--d-line); border-radius:5px; padding:20px; }
.mh-driver-app .mh-inv-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:20px; }
.mh-driver-app .mh-inv-eyebrow { font-size:12.5px; font-weight:700; color:var(--d-brand); }
.mh-driver-app .mh-inv-title { font-size:20px; font-weight:800; letter-spacing:-.02em; color:var(--d-ink); margin:3px 0 0; line-height:1.3; }
.mh-driver-app .mh-inv-head .mh-status-chip { flex-shrink:0; margin-top:2px; }

.mh-driver-app .mh-inv-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-bottom:18px; margin-bottom:16px; border-bottom:1px solid var(--d-line); }
.mh-driver-app .mh-inv-field.is-full { grid-column:1 / -1; }
.mh-driver-app .mh-inv-label { font-size:12.5px; font-weight:600; color:var(--d-faint); margin-bottom:5px; }
.mh-driver-app .mh-inv-value { font-size:14.5px; font-weight:700; color:var(--d-ink); line-height:1.45; }
.mh-driver-app .mh-inv-address { display:flex; align-items:flex-start; gap:10px; }
.mh-driver-app .mh-inv-address span { flex:1; }
.mh-driver-app .mh-inv-recipient { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mh-driver-app .mh-inv-contact { display:flex; gap:6px; flex-shrink:0; }
.mh-driver-app .mh-inv-contact a { display:flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:5px; background:#eef4f8; color:var(--d-brand-d); }

.mh-driver-app .mh-inv-thead { display:flex; align-items:center; justify-content:space-between; padding-bottom:10px; border-bottom:1px solid var(--d-line); font-size:12.5px; font-weight:700; color:var(--d-faint); }
.mh-driver-app .mh-inv-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid #f0f4f7; }
.mh-driver-app .mh-inv-row:last-child { border-bottom:0; }
.mh-driver-app .mh-inv-prod { display:flex; align-items:center; gap:10px; font-size:14.5px; font-weight:700; color:var(--d-ink); min-width:0; }
.mh-driver-app .mh-inv-bullet { width:9px; height:9px; border-radius:50%; flex:0 0 9px; }
.mh-driver-app .mh-inv-bullet.b0 { background:#e0457b; }
.mh-driver-app .mh-inv-bullet.b1 { background:var(--d-ok); }
.mh-driver-app .mh-inv-bullet.b2 { background:var(--d-blue); }
.mh-driver-app .mh-inv-bullet.b3 { background:#7a5af5; }
.mh-driver-app .mh-inv-qty { font-size:15px; font-weight:800; color:var(--d-ink); flex-shrink:0; }

/* 접이식 섹션 */
.mh-driver-app .mh-collapse { background:#fff; border:1px solid var(--d-line); border-radius:5px; overflow:hidden; }
.mh-driver-app .mh-collapse > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; padding:15px 16px; cursor:pointer; font-size:14px; font-weight:800; color:var(--d-ink); -webkit-tap-highlight-color:transparent; }
.mh-driver-app .mh-collapse > summary::-webkit-details-marker { display:none; }
.mh-driver-app .mh-collapse-label { display:flex; align-items:center; gap:8px; }
.mh-driver-app .mh-collapse-label svg { width:17px; height:17px; color:var(--d-muted); }
.mh-driver-app .mh-collapse-arrow { width:18px; height:18px; color:var(--d-faint); transition:transform .2s ease; flex-shrink:0; }
.mh-driver-app .mh-collapse[open] .mh-collapse-arrow { transform:rotate(180deg); }
.mh-driver-app .mh-collapse-danger .mh-collapse-label svg { color:var(--d-danger); }
.mh-driver-app .mh-work-list { list-style:none; margin:0; padding:2px 16px 16px; display:flex; flex-direction:column; gap:14px; }
.mh-driver-app .mh-work-list li { display:flex; gap:12px; }
.mh-driver-app .mh-work-list li > span { flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:#eef4f8; color:var(--d-brand-d); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; }
.mh-driver-app .mh-work-list li strong { display:block; font-size:14px; font-weight:700; color:var(--d-ink); }
.mh-driver-app .mh-work-list li p { margin:2px 0 0; font-size:12.5px; color:var(--d-muted); line-height:1.45; }
.mh-driver-app .mh-collapse-body { padding:2px 16px 16px; }
.mh-driver-app .mh-collapse-desc { font-size:13px; color:var(--d-muted); margin:0 0 12px; line-height:1.5; }

/* 배송 상세 필드: 단일 열(상하 배치) + 배송 주소 위·아래 점선 */
.mh-driver-app .mh-inv-grid { grid-template-columns: 1fr !important; gap: 14px; }
.mh-driver-app .mh-inv-field.is-address {
  border-top: 1px dashed #d4dde6;
  padding: 14px 0 0;
}

/* 물품 놓을 위치: 적치 시점 핵심 정보 → 앰버 배경으로 강조 */
.mh-driver-app .mh-inv-field.is-placement {
  background: #fff6e2;
  border: 1px solid #f3e2b3;
  border-left: 4px solid #f0b429;
  border-radius: 5px;
  padding: 12px 14px;
}
.mh-driver-app .mh-inv-field.is-placement .mh-inv-label { color: #a9760a; font-weight: 700; margin-bottom: 4px; }
.mh-driver-app .mh-inv-field.is-placement .mh-inv-value { color: #1f2a37; font-size: 16px; font-weight: 800; }

/* 물품 놓을 위치 — dashed 콜아웃 (아이콘 + 라벨/값), 적치 핵심정보 강조 */
.mh-driver-app .mh-place-callout {
  display:flex; align-items:center; gap:14px; margin-top:10px;
  background:#fffdf4; border:1.5px dashed #f0d795; border-radius:8px; padding:14px 16px;
}
.mh-driver-app .mh-place-icon { flex:0 0 26px; width:26px; height:26px; color:#dca200; }
.mh-driver-app .mh-place-text { min-width:0; }
.mh-driver-app .mh-place-text .t { display:block; font-size:12.5px; font-weight:700; color:#a9760a; }
.mh-driver-app .mh-place-text .v { display:block; font-size:16px; font-weight:800; color:#1f2a37; margin-top:2px; line-height:1.4; }

/* 상품 테이블: 상단 보더라인 제거 + 상단 여백 추가 */
.mh-driver-app .mh-inv-grid { border-bottom: 0 !important; }
.mh-driver-app .mh-inv-table { margin-top: 12px; }

/* 참조 사항: 연한 회색 배경 */
.mh-driver-app .mh-inv-field.is-reference {
  background: #f3f5f8;
  border-radius: 5px;
  padding: 12px 14px;
}
.mh-driver-app .mh-inv-field.is-reference .mh-inv-value { font-weight: 600; color: var(--d-ink-2, #334155); }

/* 배송 기록 화면: 모든 그림자 제거 */
.mh-history-app * { box-shadow: none !important; }

/* ============================================================
   배송 기록 탭바 + 새로고침 (Metronic Shipment History 탭 참조)
   ============================================================ */
.mh-history-app .mh-history-tabbar {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--d-line); margin:0 0 16px;
}
.mh-history-app .mh-tabs { display:flex; gap:2px; }
.mh-history-app .mh-tab {
  background:none; border:0; padding:10px 13px; margin-bottom:-1px;
  font-size:14px; font-weight:700; color:var(--d-faint); cursor:pointer;
  border-bottom:3px solid transparent; -webkit-tap-highlight-color:transparent;
}
.mh-history-app .mh-tab.is-active { color:var(--d-ink); border-bottom-color:#22c55e; }
.mh-history-app .mh-tab-refresh {
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  width:36px; height:36px; border:1px solid var(--d-line); border-radius:5px;
  background:#fff; color:var(--d-brand-d); cursor:pointer; margin-bottom:4px;
}
.mh-history-app .mh-tab-refresh svg { width:17px; height:17px; }
.mh-history-app .mh-tab-refresh:active { background:#eef4f8; }
.mh-history-app .mh-tab-refresh.is-spinning svg { animation: mh-spin .7s linear infinite; }
@keyframes mh-spin { to { transform: rotate(360deg); } }
.mh-history-app .mh-history-filter-empty {
  padding:30px 16px; text-align:center; color:var(--d-faint); font-size:14px; font-weight:600;
  background:#fff; border:1px solid var(--d-line); border-radius:8px;
}

/* 배송 기록 통계: 라벨 일반체 + 숫자만 볼드 */
.mh-history-app .mh-history-stats > span { font-weight: 500; }
.mh-history-app .mh-history-stats > span strong { font-weight: 800; color: var(--d-ink); margin-left: 4px; }

/* 탭바 ↔ 목록 사이 여백 축소 */
.mh-history-app .mh-history-tabbar { margin-bottom: 6px; }
.mh-history-app .mh-history-stack { padding-top: 0 !important; }

/* 빈 상태 카드: 가운데 정렬 + 안내문구 일반체 */
.mh-driver-app .mh-empty-card { text-align: center; padding: 26px 18px; }
.mh-driver-app .mh-empty-card > h2 { font-weight: 500 !important; font-size: 16px; color: var(--d-muted); margin-top: 6px; }

/* 배송 순서 — 차수(회차) 헤더 */
.mh-driver-app .mh-round-header { display:flex; align-items:center; margin:0 0 12px; }
.mh-driver-app .mh-round-header:not(:first-child) { margin-top:16px; padding-top:16px; border-top:1px dashed #e2e8ee; }
.mh-driver-app .mh-round-header span {
  font-size:12.5px; font-weight:800; color:var(--d-brand-d);
  background:#eef4f8; padding:5px 12px; border-radius:5px; letter-spacing:-.01em;
}

/* ============================================================
   기사 상세 — 전송된 사진 카드(p-0로 깨지던 레이아웃 교체)
   ============================================================ */
.mh-driver-app .mh-photo-card { background:var(--d-surface); border:1px solid var(--d-line); border-radius:5px; padding:16px; }
.mh-driver-app .mh-photo-card-title { font-size:14px; font-weight:800; color:var(--d-ink); margin:0 0 12px; }
.mh-driver-app .mh-photo-card-img { display:block; width:100%; height:auto; border-radius:5px; margin:0; }
.mh-driver-app .mh-photo-card-link {
  display:flex; align-items:center; justify-content:center; gap:6px; margin-top:12px; height:44px;
  border:1px solid var(--d-line); border-radius:5px; background:#fff;
  color:var(--d-brand-d); font-size:14px; font-weight:700; text-decoration:none;
}
.mh-driver-app .mh-photo-card-link svg { width:16px; height:16px; }
.mh-driver-app .mh-photo-card-link:active { background:#f3f7fa; }

/* 전송된 사진 — 썸네일(최근 N장) + 촬영 버튼 잠금 */
.mh-driver-app .mh-photo-card-count { font-size:12px; font-weight:700; color:var(--d-brand-d); background:#eef4f8; padding:2px 8px; border-radius:999px; margin-left:4px; }
.mh-driver-app .mh-photo-thumbs { display:flex; gap:8px; margin-top:10px; }
.mh-driver-app .mh-photo-thumb { padding:0; border:2px solid transparent; border-radius:6px; overflow:hidden; background:none; cursor:pointer; width:64px; height:64px; flex:0 0 auto; }
.mh-driver-app .mh-photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-driver-app .mh-photo-thumb.is-active { border-color:var(--d-brand); }
.mh-driver-app .mh-camera-action.is-uploading { opacity:.55; pointer-events:none; }

/* 고객 사진 조회 — 안내(없음/만료) 페이지 */
.mh-customer-app .mh-customer-empty { text-align:center; padding:48px 24px; }
.mh-customer-app .mh-customer-empty-icon { width:64px; height:64px; margin:0 auto 18px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#eef2f6; color:#94a3b4; }
.mh-customer-app .mh-customer-empty-icon svg { width:28px; height:28px; }
.mh-customer-app .mh-customer-empty h1 { margin:0 0 10px; }
.mh-customer-app .mh-customer-empty p { margin:0; line-height:1.55; }

/* 오늘 배송 순서 — 하단(상품/시간) 우측에 마지막 사진 썸네일 (head 풀폭 유지) */
.mh-driver-app .mh-ship-lower { display:flex; align-items:center; gap:12px; }
.mh-driver-app .mh-ship-lower .mh-timeline { flex:1 1 auto; min-width:0; }
.mh-driver-app .mh-ship-thumb { flex:0 0 auto; width:54px; height:54px; border-radius:8px; overflow:hidden; border:1px solid var(--d-line); background:#eef2f6; }
.mh-driver-app .mh-ship-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* 배송기사 메모(고객·관리자 전달, 최대 300자) */
.mh-driver-app .mh-memo-card { background:var(--d-surface); border:1px solid var(--d-line); border-radius:5px; padding:16px; }
.mh-driver-app .mh-memo-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.mh-driver-app .mh-memo-title { display:flex; align-items:center; gap:7px; font-size:14px; font-weight:800; color:var(--d-ink); }
.mh-driver-app .mh-memo-title svg { width:17px; height:17px; color:var(--d-brand); }
.mh-driver-app .mh-memo-hint { font-size:12px; color:var(--d-faint); font-weight:600; white-space:nowrap; }
.mh-driver-app .mh-memo-input { width:100%; border:1px solid var(--d-line); border-radius:8px; padding:11px 12px; font-size:14px; line-height:1.5; color:var(--d-ink); resize:vertical; box-sizing:border-box; font-family:inherit; background:#fff; }
.mh-driver-app .mh-memo-input:focus { outline:none; border-color:var(--d-brand); }
.mh-driver-app .mh-memo-foot { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.mh-driver-app .mh-memo-count { font-size:12.5px; color:var(--d-faint); font-feature-settings:"tnum"; }
.mh-driver-app .mh-memo-count b { color:var(--d-muted); font-weight:800; }
.mh-driver-app .mh-memo-save { padding:9px 22px; border:0; border-radius:8px; background:var(--d-brand); color:#fff; font-size:14px; font-weight:700; cursor:pointer; }
.mh-driver-app .mh-memo-save:disabled { opacity:.6; }
.mh-driver-app .mh-memo-feedback { margin-top:10px; padding:9px 12px; border-radius:8px; background:#ecfdf3; color:#05603a; font-size:13px; font-weight:700; }
.mh-driver-app .mh-memo-feedback.error { background:#fef3f2; color:var(--d-danger); }
.mh-driver-app .mh-memo-feedback.hidden { display:none; }

/* 고객 조회 — 배송기사 메모 */
.mh-customer-app .customer-memo { margin-top:16px; padding:14px 16px; border-radius:10px; background:#f6f8fb; border:1px solid #e7edf3; }
.mh-customer-app .customer-memo-label { display:block; font-size:12px; font-weight:700; color:#8a97a8; margin-bottom:5px; }
.mh-customer-app .customer-memo p { margin:0; font-size:15px; color:#1b2735; line-height:1.55; white-space:pre-wrap; }
