/* 配送端首页：新版 C02 紧凑工作台，仅调整展示层。 */
.admin-layout--delivery:has(.delivery-home-page) .admin-content { padding: 0; overflow: auto; background: #F2F3EE; }
.delivery-home-page { width: min(1160px, calc(100% - 64px)); max-width: none; margin: 0 auto; padding: 42px 0 56px; color: #353535; }
.delivery-home-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.delivery-home-kpi { position: relative; min-width: 0; min-height: 132px; padding: 20px 22px; border: 1px solid #E1E5DE; border-radius: 18px; background: #fff; color: #353535; font: inherit; text-align: left; cursor: pointer; box-shadow: none; animation: delivery-card-in 200ms ease both; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.delivery-home-kpi:nth-child(2) { animation-delay: 25ms; }
.delivery-home-kpi:nth-child(3) { animation-delay: 50ms; }
.delivery-home-kpi:nth-child(4) { animation-delay: 75ms; }
.delivery-home-kpi:hover:not(:disabled) { background: #EEF2E2; border-color: #D8DFD0; }
.delivery-home-kpi:disabled { cursor: not-allowed; opacity: .58; }
.delivery-home-kpi-title { display: block; padding-right: 30px; font-size: 15px; font-weight: 650; line-height: 1.4; }
.delivery-home-kpi-value { display: block; margin: 10px 0 8px; color: #353535; font-size: 34px; font-weight: 550; line-height: 1; font-variant-numeric: tabular-nums; }
.delivery-home-kpi-note { display: block; color: #818781; font-size: 12px; line-height: 1.4; }
.delivery-home-kpi-arrow { position: absolute; top: 20px; right: 20px; display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; border: 1px solid #4A4A48; border-radius: 50%; font-size: 12px; line-height: 1; }
.delivery-home-page .c-card { margin-bottom: 18px; border-color: #E1E5DE; border-radius: 18px; box-shadow: none; animation: delivery-card-in 200ms ease both; }
.delivery-purchase-reminder { padding: 18px 22px; }
.delivery-purchase-reminder-head { margin-bottom: 10px; }
.delivery-purchase-reminder-head h2,
.delivery-today-head h2 { margin: 0; color: #353535; font-size: 16px; font-weight: 650; }
.delivery-purchase-reminder-head .c-btn,
.delivery-home-refresh { min-height: 34px; padding: 7px 12px; border-radius: 8px; background: #fff; font-size: 12px; }
.delivery-purchase-reminder-head .c-btn:hover,
.delivery-home-refresh:hover { background: #EEF2E2; }
.delivery-purchase-reminder-counts { margin-top: 8px; }
.delivery-purchase-reminder-counts > div { padding-top: 8px; padding-bottom: 8px; }
.delivery-purchase-reminder-counts span { color: #666F68; font-size: 13px; }
.delivery-purchase-reminder-counts strong { color: #353535; font-size: 24px; font-weight: 600; }
.delivery-purchase-reminder-counts small { color: #858C86; }
.delivery-today-card { padding: 18px 22px 20px; }
.delivery-today-head { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ECEEEA; }
.delivery-today-card .delivery-order-list { min-width: 0; }
.delivery-today-empty { margin: 0; padding: 12px 0 2px; font-size: 13px; }
.delivery-today-card .order-card:last-child { margin-bottom: 0; }
.delivery-view-toolbar { display: flex; align-items: center; gap: 10px; }
.delivery-view-refresh { margin-left: auto; }
.delivery-task-page .orders-list-area { gap: 24px; }
:is(.delivery-task-page, .delivery-home-page).admin-orders-container .order-card--compact {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
:is(.delivery-task-page, .delivery-home-page).admin-orders-container .order-card--compact:hover {
  background-color: #FFFFFF;
  border-color: #C9CDC5;
  box-shadow: 0 3px 10px rgba(33, 77, 76, 0.07);
}
.admin-orders-container:is(.delivery-task-page, .delivery-home-page) .order-card--compact .oc-header { background: #FFFAE6; }
.admin-orders-container:is(.delivery-task-page, .delivery-home-page) .order-card--compact .oc-header:not(.oc-header--read):not(.oc-header--done) { background: #FFED8B; }
:is(.delivery-task-page, .delivery-home-page) .delivery-date-badge,
:is(.delivery-task-page, .delivery-home-page) .delivery-task-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 22px; padding: 2px 8px; border-radius: 999px; box-sizing: border-box; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.delivery-task-page .delivery-date-badge { margin-left: 8px; vertical-align: middle; }
.delivery-task-page .delivery-date-badge.is-today { background: #E9F2FA; color: #416982; }
.delivery-task-page .delivery-date-badge.is-overdue,
.delivery-task-page .delivery-task-status.is-overdue { background: #FDECEC; color: #B54C4C; }
:is(.delivery-task-page, .delivery-home-page) .delivery-task-status { background: #F0F2EE; color: #58625B; }
:is(.delivery-task-page, .delivery-home-page) .oc-action-area .delivery-task-status { width: 120px; max-width: 100%; min-height: 28px; height: 28px; padding: 0 10px; border-radius: 8px; box-sizing: border-box; flex-shrink: 0; font-size: 11.5px; }
.delivery-home-page .oc-action-area .delivery-order-status { display: inline-flex; align-items: center; justify-content: center; width: 120px; max-width: 100%; min-height: 28px; height: 28px; padding: 0 10px; border: 1px solid #EED3A1; border-radius: 8px; background: #FFFFFF; color: #58625B; box-sizing: border-box; flex-shrink: 0; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
#rolePageContainer .admin-orders-container:is(.delivery-task-page, .delivery-home-page) .order-card--compact .oc-header .oc-header-print { grid-column: 6 / 8; justify-self: center; width: 120px; transform: translateX(-3px); }
:is(.delivery-task-page, .delivery-home-page) .oc-btn-delivery:not(:disabled) { border-color: #214D4C; background: #214D4C; color: #fff; }
:is(.delivery-task-page, .delivery-home-page) .oc-btn-delivery:disabled { background: #FFFFFF; cursor: not-allowed; }
:is(.delivery-task-page, .delivery-home-page) .oc-notes .oc-note-value { color: #FF7E5F; }
@keyframes delivery-card-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .delivery-home-page { width: min(100% - 36px, 1160px); padding-top: 30px; }
  .delivery-home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .delivery-home-page { width: 100%; padding: 16px 14px 32px; box-sizing: border-box; }
  .delivery-task-page .oc-action-area .delivery-task-status { width: 100%; }
  .delivery-home-kpis { gap: 10px; margin-bottom: 12px; }
  .delivery-home-kpi { min-height: 116px; padding: 16px; border-radius: 14px; }
  .delivery-home-kpi-arrow { top: 15px; right: 15px; }
  .delivery-home-kpi-value { font-size: 30px; }
  .delivery-home-page .c-card { margin-bottom: 12px; border-radius: 14px; }
  .delivery-purchase-reminder,
  .delivery-today-card { padding: 16px; }
  .admin-layout--delivery .delivery-home-page .delivery-purchase-reminder-counts { grid-template-columns: 1fr; }
  .delivery-purchase-reminder-counts > div { padding: 9px 0; border-top: 1px solid #E6E9E3; border-left: 0; }
  .delivery-purchase-reminder-counts > div:first-child { border-top: 0; }
  .delivery-purchase-reminder-counts small { flex-basis: auto; }
  .delivery-today-card .order-card { max-width: 100%; overflow: hidden; }
  .delivery-view-toolbar { flex-wrap: wrap; }
  .delivery-view-refresh { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .delivery-home-kpi,
  .delivery-home-page .c-card { animation: none; transition: none; }
}
