@charset "UTF-8";

/* Indicadores e destaques do recebimento. */
.dashboard-page {
  --agenda-confirmed: #217653;
  --agenda-delivered: #356ca5;
  --agenda-pending: #99671c;
  --agenda-cancelled: #b34453;
  min-width: 0;
}
.dashboard-page > .page-heading { margin-bottom: 25px; }
.dashboard-sync { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; color: #607968; font-size: 10px; line-height: 1.7; }
.sync-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #42815d; }
.dashboard-sync.is-stale { color: #8b652e; }
.dashboard-sync.is-stale .sync-dot { background: #a87c39; }
[data-dashboard-summary] { overflow-anchor: none; }
.summary-period { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 21px; }
.summary-period-field { display: grid; gap: 5px; }
.summary-period-field label { font-size: 11px; color: #647383; }
.summary-period-field input, .summary-period-field select { min-height: 38px; padding: 7px 11px; background: #fff; color: #455366; border: 1px solid #dfe5ec; border-radius: 7px; font-size: 12px; }
.summary-period > .btn { min-height: 38px; }
.summary-period > .text-link { min-height: 38px; display: inline-flex; align-items: center; font-size: 12px; }
.receiving-overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 20px; align-items: stretch; margin-bottom: 22px; }
.receiving-overview > * { min-width: 0; }
.overdue-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(235px, .7fr) minmax(0, 1.5fr); gap: 26px; padding: 24px; background: #fffbf2; border-color: #ead6b0; }
.overdue-heading { display: flex; align-items: center; gap: 11px; }
.overdue-symbol { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid #ead6b0; border-radius: 11px; background: #fff4da; color: #956016; }
.overdue-heading .eyebrow { margin-bottom: 5px; color: #916a30; font-size: 8px; letter-spacing: 1.2px; }
.overdue-heading h2 { color: #65491f; font-size: 16px; line-height: 1.4; }
.overdue-total { display: flex; align-items: center; gap: 12px; margin-top: 19px; }
.overdue-total > strong { color: #80551c; font-size: 44px; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.overdue-total > span { font-size: 11px; line-height: 1.6; color: #715c3b; }
.overdue-caption { margin-top: 12px; color: #7c6c53; font-size: 10px; line-height: 1.8; }
.overdue-all { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; margin-top: 8px; color: #795015; font-size: 11px; font-weight: 600; }
.overdue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; padding: 0; margin: 0; list-style: none; }
.overdue-list > li { min-width: 0; }
.overdue-list > li > a { display: grid; grid-template-columns: 76px minmax(0, 1fr) 15px; align-items: center; gap: 13px; height: 100%; min-height: 101px; padding: 15px 14px; border: 1px solid #ebdfc9; border-radius: 10px; background: #fff; transition: background 160ms ease, border-color 160ms ease; }
.overdue-list > li > a:hover { background: #fff9ea; border-color: #c6a773; }
.overdue-time { display: grid; gap: 5px; padding-right: 10px; border-right: 1px solid #eee3d0; }
.overdue-time strong { font-size: 19px; color: #80551c; line-height: 1.2; font-variant-numeric: tabular-nums; }
.overdue-time time { color: #7b6b51; font-size: 9px; font-variant-numeric: tabular-nums; }
.overdue-details { min-width: 0; }
.overdue-details h3 { font-size: 12px; color: #4e493e; line-height: 1.5; overflow-wrap: anywhere; }
.overdue-details p { margin-top: 3px; color: #716b60; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.overdue-details small { display: block; margin-top: 7px; color: #896020; font-size: 9px; line-height: 1.5; }
.overdue-details .overdue-age { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 5px; background: #fff5de; color: #80551c; font-size: 10px; font-weight: 650; }
.overdue-details .overdue-age + small { margin-top: 4px; }
.overdue-list > .is-older > a { border-left: 3px solid #ad7c35; background: #fffdf8; }
.overdue-list > .is-older .overdue-age { color: #6b4514; background: #f7e5bf; }
.overdue-list > li > a > svg { color: #9f845c; }
.overdue-empty { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 24px; border: 1px dashed #d9dfd9; border-radius: 10px; color: #51735e; }
.overdue-empty h3 { font-size: 13px; line-height: 1.6; color: #45644f; }
.overdue-empty p { max-width: 420px; margin-top: 5px; color: #6d7c72; font-size: 11px; line-height: 1.8; }
.overdue-panel.is-clear { background: #fafcfb; border-color: #dfe7e1; }
.overdue-panel.is-clear .overdue-symbol { background: #edf4ef; border-color: #dfe7e1; color: #51735e; }
.overdue-panel.is-clear .overdue-heading h2, .overdue-panel.is-clear .overdue-total > strong { color: #45644f; }
.overdue-list a:focus-visible, .overdue-all:focus-visible { outline: 3px solid #4367be; outline-offset: 3px; }
.period-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.period-caption > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; color: #4d5969; }
.period-caption > small { color: #727d8a; font-size: 10px; text-align: right; }

.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 25px; }
.dashboard-kpi {
  --kpi-color: #53617c;
  --kpi-tint: #f0f3f9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px 20px 17px;
  position: relative;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px #27384d03;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.dashboard-kpi::before { content: ''; position: absolute; left: 20px; top: -1px; height: 3px; width: 33px; border-radius: 0 0 3px 3px; background: var(--kpi-color); }
.kpi-confirmed { --kpi-color: #217653; --kpi-tint: #ecf6f0; }
.kpi-pending { --kpi-color: #99671c; --kpi-tint: #fff6e6; }
.kpi-delivered { --kpi-color: #356ca5; --kpi-tint: #edf3fa; }
.kpi-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-heading > span:first-child { color: #586474; font-size: 12px; font-weight: 550; }
.kpi-symbol { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 33px; height: 33px; border-radius: 9px; background: var(--kpi-tint); color: var(--kpi-color); }
.dashboard-kpi > strong { display: block; margin: 12px 0 15px; color: #253445; font-size: 34px; font-weight: 650; line-height: 1.1; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; }
.kpi-confirmed > strong { color: #236347; }
.kpi-pending > strong { color: #8b6020; }
.kpi-delivered > strong { color: #315f93; }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.kpi-foot small { font-size: 10px; line-height: 1.5; color: #73808c; }
.kpi-foot > svg { color: var(--kpi-color); }
.dashboard-kpi:hover { border-color: var(--kpi-color); box-shadow: 0 9px 22px #26394c0b; transform: translateY(-2px); }

.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, .45fr); gap: 20px; margin-bottom: 22px; align-items: start; }
.agenda-layout.is-week { grid-template-columns: minmax(0, 1fr); }
.agenda-layout.is-week .agenda-aside { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
.agenda-panel, .agenda-aside, .upcoming-panel { min-width: 0; }
.agenda-panel { border-color: #dfe5eb; box-shadow: 0 4px 16px #26394c03; }
.agenda-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 23px 24px 20px; }
.agenda-heading .eyebrow { color: #7a8591; font-size: 8px; letter-spacing: 1.2px; margin-bottom: 5px; }
.agenda-heading h2 { font-size: 17px; color: #293748; }
.view-switch { display: flex; flex-shrink: 0; align-items: center; gap: 3px; padding: 3px; background: #f1f3f6; border: 1px solid #e8ecf0; border-radius: 8px; }
.view-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 50px; padding: 6px 11px; color: #687383; font-size: 11px; border: 1px solid transparent; border-radius: 6px; transition: background 160ms ease, color 160ms ease; }
.view-switch a.selected { color: #245c45; background: #fff; border-color: #e0e5e9; box-shadow: 0 2px 4px #233f3120; font-weight: 600; }
.view-switch a:hover { color: #255f48; background: #fff; }
.agenda-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 24px; border-top: 1px solid #edf0f3; background: #fafbfd; }
.agenda-date-heading { min-width: 0; }
.agenda-date-heading h3 { font-size: 17px; color: #293748; font-weight: 650; letter-spacing: -.35px; overflow-wrap: anywhere; }
.agenda-date-heading p { font-size: 11px; color: #647383; margin-top: 4px; }
.agenda-date-heading p > span { color: #88929d; }
.agenda-nav { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.agenda-nav .icon-btn { width: 32px; min-height: 33px; border: 1px solid #e2e7ed; background: #fff; font-size: 23px; line-height: 1; color: #637386; }
.agenda-nav .icon-btn:hover { border-color: #9db9aa; color: #226448; background: #f1f7f3; }
.agenda-nav > .btn { min-height: 33px; font-size: 10px; padding: 6px 10px; color: #3a6651; }
.agenda-date-form { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 13px 24px; border-top: 1px solid #e9edf2; border-bottom: 1px solid #e9edf2; }
.agenda-date-form label { font-size: 11px; color: #738090; margin-right: 3px; }
.agenda-date-form input[type="date"] { min-width: 0; width: 148px; padding: 7px 9px; min-height: 34px; color: #455366; border: 1px solid #dfe5ec; border-radius: 6px; background: #fff; font-size: 11px; }
.agenda-date-form .btn { min-height: 34px; padding: 6px 10px; font-size: 10px; }
.day-agenda { display: grid; gap: 9px; padding: 17px 18px; }
.agenda-event { --event-color: var(--agenda-pending); --event-tint: #fffaf0; display: grid; grid-template-columns: 77px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 16px 15px 16px 13px; border: 1px solid #e6eaf0; border-left: 3px solid var(--event-color); border-radius: 9px; background: #fff; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.event-confirmed { --event-color: var(--agenda-confirmed); --event-tint: #f0f8f3; }
.event-delivered { --event-color: var(--agenda-delivered); --event-tint: #eff5fb; }
.event-pending { --event-color: var(--agenda-pending); --event-tint: #fff9ed; }
.event-cancelled { --event-color: var(--agenda-cancelled); --event-tint: #fcf1f3; }
.agenda-event:hover, .agenda-event:focus-visible { border-color: var(--event-color); background: var(--event-tint); box-shadow: 0 4px 11px #27374b05; }
.event-time { padding-right: 12px; border-right: 1px solid #e9edf1; }
.event-time time, .event-time > span { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.7px; color: #334357; font-variant-numeric: tabular-nums; }
.event-time > span { font-size: 13px; letter-spacing: -.2px; }
.event-time small { font-size: 9px; line-height: 1.5; color: #87919d; margin-top: 5px; }
.event-details { min-width: 0; }
.event-details h3 { font-size: 13px; line-height: 1.45; color: #354355; overflow-wrap: anywhere; }
.event-details p { font-size: 11px; color: #728091; margin-top: 3px; overflow-wrap: anywhere; }
.event-details > small { font-size: 10px; color: #89939e; margin-top: 6px; overflow-wrap: anywhere; }
.event-status { display: flex; align-items: center; gap: 10px; color: #92a0ae; }
.event-status .badge { max-width: 137px; white-space: normal; line-height: 1.4; }
.event-status .badge > span { flex-shrink: 0; }
.dashboard-page .agenda-event .badge.waiting { color: #99671c; background: #fff6e3; }
.agenda-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 210px; padding: 29px 16px; text-align: center; color: #9aa6b4; }
.agenda-empty h3 { margin-top: 14px; color: #566475; font-size: 14px; }
.agenda-empty p { font-size: 12px; color: #82909d; margin-top: 5px; }
.agenda-empty .text-link { margin-top: 18px; white-space: normal; font-size: 11px; }
.agenda-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px 5px; font-size: 11px; color: #3c6b53; text-align: center; }
.agenda-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.week-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #b8c8bf #f0f3f5; scrollbar-width: thin; }
.week-scroll:focus-visible { outline: 3px solid #4367be; outline-offset: -3px; }
.week-agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 875px; background: #fbfcfd; }
.week-day { min-width: 0; border-right: 1px solid #e9edf1; }
.week-day:last-child { border-right: 0; }
.week-day.is-today { background: #f3f9f5; }
.week-day-heading { display: flex; flex-direction: column; min-height: 109px; padding: 15px 12px 13px; border-bottom: 1px solid #e6ecf0; border-top: 3px solid transparent; }
.week-day-heading > span { text-transform: uppercase; letter-spacing: .7px; color: #778493; font-size: 9px; font-weight: 550; }
.week-day-heading > strong { display: block; margin: 3px 0 1px; color: #495a70; font-size: 25px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.week-day-heading > small { color: #929ca8; font-size: 10px; }
.week-day-heading:hover { background: #eef3f7; }
.is-today .week-day-heading { border-top-color: #3b8760; background: #edf6f0; }
.is-today .week-day-heading > span, .is-today .week-day-heading > strong { color: #2e6f4e; }
.week-events { display: grid; align-content: start; gap: 9px; padding: 11px 8px 17px; min-height: 245px; }
.week-event { display: block; min-width: 0; padding: 10px 9px; background: var(--event-tint); border: 1px solid #dfe7e3; border-left: 3px solid var(--event-color); border-radius: 6px; color: var(--event-color); transition: box-shadow 160ms ease, border-color 160ms ease; }
.week-event time { display: block; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.week-event strong { display: block; color: #475665; font-size: 11px; font-weight: 550; line-height: 1.45; margin-top: 5px; overflow-wrap: anywhere; }
.week-event small { color: var(--event-color); font-size: 9px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.week-event:hover { border-color: var(--event-color); box-shadow: 0 3px 10px #2a3a4d0c; }
.week-empty { display: block; padding: 9px 3px; color: #9da7b1; font-size: 10px; text-align: center; }
.week-more { color: #496b59; padding: 5px 3px; font-size: 10px; font-weight: 550; text-align: center; }
.week-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.agenda-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; padding: 14px 24px; border-top: 1px solid #eaf0f3; }
.agenda-legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #76818e; }
.agenda-legend > span::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--status-tone); }
.legend-confirmed { --status-tone: #217653; }
.legend-delivered { --status-tone: #356ca5; }
.legend-pending { --status-tone: #99671c; }
.legend-cancelled { --status-tone: #b34453; }
.agenda-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding: 14px 24px; background: #fafbfd; border-top: 1px solid #edf0f3; }
.agenda-footer > span { color: #8b95a1; font-size: 9px; }
.agenda-footer .text-link { color: #396c51; font-size: 10px; white-space: normal; }

.agenda-aside { display: grid; gap: 17px; }
.dashboard-page .today-compact { padding: 21px; overflow: hidden; border-radius: 12px; box-shadow: 0 5px 18px #174a3310; }
.today-compact .today-focus-heading { font-size: 8px; gap: 7px; }
.today-compact .today-focus-heading > span { letter-spacing: .5px; gap: 6px; }
.today-compact h2 { font-size: 17px; margin-top: 15px; }
.today-compact .today-focus-main { gap: 8px; min-height: 99px; }
.today-compact .today-focus-count { font-size: 43px; }
.today-compact .today-focus-main p { font-size: 10px; line-height: 1.4; max-width: 110px; }
.today-compact .today-focus-scene { width: 132px; flex: 0 0 132px; margin-right: -5px; }
.today-compact .today-focus-scene .delivery-scene { --truck-width: 96px; height: 100px; }
.today-compact .today-focus-link { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #ffffff1c; padding-top: 13px; margin-top: 7px; font-size: 10px; line-height: 1.5; }
.upcoming-panel { padding: 21px 20px 17px; border-color: #e0e7e4; }
.upcoming-heading { display: flex; align-items: center; gap: 8px; }
.upcoming-heading h2 { font-size: 13px; color: #3c5145; }
.live-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #3b9c6d; box-shadow: 0 0 0 3px #3b9c6d13; }
.upcoming-caption { margin-top: 5px; font-size: 9px; color: #8b968e; }
.upcoming-caption.upcoming-volume { margin-top: 6px; font-size: 10px; color: #738d7b; line-height: 1.6; }
.upcoming-list { list-style: none; padding: 0; margin: 14px 0 0; }
.upcoming-list > li { border-top: 1px solid #edf1ee; }
.upcoming-list > li > a { display: grid; grid-template-columns: 55px minmax(0, 1fr) 15px; align-items: center; gap: 11px; padding: 15px 0; border-radius: 6px; transition: background 160ms ease; }
.upcoming-list > li > a:hover { background: #f5f9f6; }
.upcoming-time { padding-right: 8px; border-right: 1px solid #e3eae5; }
.upcoming-time strong { color: #33604a; font-size: 15px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.upcoming-time small { color: #8a998e; font-size: 9px; margin-top: 1px; line-height: 1.5; }
.upcoming-list h3 { font-size: 11px; line-height: 1.5; font-weight: 600; color: #4d5e54; overflow-wrap: anywhere; }
.upcoming-list li p { margin-top: 3px; font-size: 10px; color: #8b968e; line-height: 1.5; overflow-wrap: anywhere; }
.upcoming-list > li > a > svg { color: #92a599; }
.upcoming-list > .upcoming-empty { padding: 24px 0 21px; text-align: center; color: #a3b5a9; }
.upcoming-empty p { max-width: 210px; margin: 10px auto 3px; color: #74897b; font-size: 11px; }
.upcoming-empty small { font-size: 10px; color: #98a49b; }
.upcoming-all { justify-content: space-between; border-top: 1px solid #edf1ee; padding-top: 14px; color: #3e7354; font-size: 10px; white-space: normal; }

.operation-insights { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 20px; margin-bottom: 24px; }
.operation-insights > .panel { min-width: 0; border-color: #e1e6ec; }
.volume-insight { display: flex; align-items: flex-start; gap: 17px; padding: 24px; }
.insight-icon { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; height: 44px; background: #f5f0e8; border: 1px solid #e9decd; color: #9d7840; border-radius: 11px; }
.volume-insight > div:last-child { min-width: 0; }
.volume-insight .eyebrow { font-size: 8px; letter-spacing: .8px; margin-bottom: 9px; color: #85909b; }
.insight-number { display: block; color: #344358; font-size: 29px; line-height: 1.15; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.volume-insight p:not(.eyebrow) { font-size: 11px; color: #738090; margin-top: 8px; }
.volume-insight small { font-size: 10px; line-height: 1.65; color: #939da7; margin-top: 6px; }
.status-insight { padding: 24px; }
.insight-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.insight-heading h2 { color: #455367; font-size: 13px; }
.insight-heading > span { color: #919ba6; font-size: 10px; }
.status-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 17px; margin-top: 21px; }
.breakdown-item { min-width: 0; border-radius: 4px; }
.breakdown-item > span { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #71808e; }
.breakdown-item strong { color: var(--status-tone); font-size: 12px; font-variant-numeric: tabular-nums; }
.breakdown-item meter { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; padding: 0; margin-top: 7px; background: #edf1f4; border: 0; border-radius: 8px; overflow: hidden; }
.breakdown-item meter::-webkit-meter-bar { height: 5px; background: #edf1f4; border: 0; border-radius: 8px; box-shadow: none; }
.breakdown-item meter::-webkit-meter-optimum-value { background: var(--status-tone); border-radius: 8px; }
.breakdown-item meter::-webkit-meter-suboptimum-value { background: var(--status-tone); border-radius: 8px; }
.breakdown-item meter::-webkit-meter-even-less-good-value { background: var(--status-tone); border-radius: 8px; }
.breakdown-item meter::-moz-meter-bar { background: var(--status-tone); border-radius: 8px; }
.breakdown-item:hover > span { color: #3f6952; }
.undated-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 2px; margin: -7px 0 21px; color: #8b7a57; font-size: 10px; line-height: 1.7; }
.undated-note a { display: inline-flex; align-items: center; gap: 5px; color: #7a633b; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.dashboard-page .confirmed-panel { border-color: #d9e5dd; }
.dashboard-page .confirmed-panel .panel-heading { padding-top: 23px; }
.dashboard-page .confirmed-panel .panel-heading h2 { font-size: 16px; }
.dashboard-page .confirmed-panel .panel-heading p { font-size: 11px; }
.dashboard-page .confirmed-panel .count-pill { font-size: 10px; }

/* Tabelas de consulta: informações de entrega ganham leitura mais rápida. */
.records-table { font-size: 12px; }
.records-table th { font-size: 10px; font-weight: 550; color: #7d8998; }
.records-table td { font-size: 12px; padding-top: 18px; padding-bottom: 18px; }
.records-table td strong { font-size: 12px; }
.records-table .record-link { font-size: 12px; }
.records-table td small { font-size: 10px; line-height: 1.6; }
.records-table .supplier-name { display: block; color: #35485b; font-size: 13px; line-height: 1.5; }
.records-table .delivery-cell { white-space: nowrap; }
.records-table .delivery-cell > strong { font-size: 11px; color: #7a8897; font-weight: 500; }
.records-table .delivery-cell .delivery-hour { display: block; margin-top: 4px; color: #314a60; font-size: 16px; line-height: 1.35; font-weight: 650; letter-spacing: -.35px; font-variant-numeric: tabular-nums; }
.records-table .confirmed-row .delivery-hour { color: #286748; }
.records-table .badge, .agenda-event .badge { font-size: 10px; padding: 5px 8px; gap: 6px; }
.records-table .truncate { font-size: 11px; }
.filter-context { padding: 0 24px 16px; margin: 0; font-size: 11px; line-height: 1.6; color: #738090; }

.dashboard-kpi:focus-visible, .agenda-event:focus-visible, .week-event:focus-visible,
.week-day-heading:focus-visible, .upcoming-list a:focus-visible, .breakdown-item:focus-visible { outline: 3px solid #4367be; outline-offset: 3px; }
.week-event:focus-visible, .week-day-heading:focus-visible { outline-offset: -3px; }
.motion-paused .dashboard-kpi:hover { transform: none; }

@media (min-width: 1100px) {
  .agenda-layout.is-week .upcoming-list, .receiving-overview .upcoming-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .agenda-layout.is-week .upcoming-empty, .receiving-overview .upcoming-empty { grid-column: 1 / -1; }
}
@media (min-width: 1500px) {
  .dashboard-kpi { padding: 22px 24px 20px; }
  .dashboard-kpi::before { left: 24px; }
  .dashboard-kpi > strong { font-size: 38px; }
  .agenda-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 23px; }
  .event-details h3 { font-size: 14px; }
  .event-details p { font-size: 12px; }
  .event-time time { font-size: 23px; }
  .records-table { font-size: 13px; }
  .records-table td { font-size: 13px; }
  .records-table .badge, .agenda-event .badge { font-size: 11px; }
}
@media (max-width: 1200px) {
  .dashboard-kpi { padding: 17px 16px; }
  .dashboard-kpi::before { left: 16px; }
  .kpi-heading > span:first-child { font-size: 11px; }
  .kpi-symbol { flex-basis: 29px; height: 29px; }
  .kpi-symbol svg { width: 17px; height: 17px; }
  .kpi-foot small { font-size: 9px; }
  .agenda-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 16px; }
  .agenda-heading, .agenda-toolbar { padding-left: 20px; padding-right: 20px; }
  .agenda-heading { gap: 12px; }
  .agenda-heading h2 { font-size: 16px; }
  .agenda-date-heading h3 { font-size: 16px; }
  .day-agenda { padding: 14px; }
  .agenda-event { grid-template-columns: 66px minmax(0, 1fr); gap: 10px 13px; padding: 13px 12px; }
  .event-time { grid-row: span 2; }
  .event-time time { font-size: 20px; }
  .event-status { grid-column: 2; justify-content: space-between; }
  .event-status .badge { max-width: none; }
  .operation-insights { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
  .volume-insight { gap: 13px; padding: 21px; }
  .insight-icon { flex-basis: 36px; height: 36px; }
  .status-insight { padding: 21px; }
}
@media (max-width: 1050px) {
  .overdue-panel { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .dashboard-kpis { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpi { padding: 19px; }
  .dashboard-kpi::before { left: 19px; }
  .kpi-heading > span:first-child { font-size: 12px; }
  .kpi-foot small { font-size: 10px; }
  .dashboard-kpi > strong { margin: 9px 0 13px; font-size: 32px; }
  .agenda-layout { grid-template-columns: minmax(0, 1fr); }
  .agenda-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 16px; }
  .agenda-event { grid-template-columns: 77px minmax(0, 1fr) auto; gap: 15px; padding: 16px 15px; }
  .event-time { grid-row: auto; }
  .event-status { grid-column: auto; gap: 9px; }
  .event-status .badge { max-width: 135px; }
  .dashboard-page .today-compact { padding: 21px; }
  .today-compact .today-focus-scene { width: 128px; flex-basis: 128px; }
  .today-compact .today-focus-scene .delivery-scene { --truck-width: 94px; }
  .upcoming-panel { padding: 21px; }
  .operation-insights { grid-template-columns: minmax(0, 1fr); }
  .volume-insight { align-items: center; }
  .status-breakdown { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 17px; }
  .period-caption { align-items: flex-start; }
  .period-caption > small { max-width: 160px; }
}
@media (max-width: 950px) {
  .receiving-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dashboard-page > .page-heading { align-items: flex-start; gap: 13px; }
  .dashboard-page > .page-heading > .btn { min-height: 37px; font-size: 10px; padding: 8px 10px; }
  .period-caption > span { font-size: 11px; }
  .agenda-heading { padding: 21px; }
  .agenda-toolbar { padding: 17px 21px; }
  .agenda-date-form { padding-left: 21px; padding-right: 21px; }
  .agenda-legend { padding-left: 21px; padding-right: 21px; }
  .agenda-footer { padding-left: 21px; padding-right: 21px; }
  .agenda-date-heading p > span { display: block; margin-top: 2px; }
  .agenda-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-compact .today-focus-scene { width: 106px; flex-basis: 106px; }
  .today-compact .today-focus-scene .delivery-scene { --truck-width: 80px; }
  .today-compact .today-focus-heading > span { font-size: 7px; letter-spacing: .2px; }
  .today-compact h2 { font-size: 16px; }
  .status-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .overdue-panel { padding: 21px; }
  .overdue-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .overdue-list > li > a { min-height: 96px; }
  .overdue-empty { align-items: flex-start; justify-content: flex-start; padding: 18px; }
  .overdue-empty > svg { flex: 0 0 25px; }
  .receiving-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary-period { gap: 10px; }
  .summary-period-field { flex: 1 1 140px; min-width: 0; }
  .summary-period-field input, .summary-period-field select { width: 100%; min-width: 0; }
  .dashboard-page > .page-heading { flex-wrap: wrap; margin-bottom: 23px; }
  .dashboard-page > .page-heading p:not(.eyebrow) { font-size: 11px; }
  .dashboard-page > .page-heading > .btn { font-size: 11px; }
  .period-caption { display: block; margin-bottom: 11px; }
  .period-caption > span { line-height: 1.6; }
  .period-caption > small { text-align: left; max-width: none; margin-top: 4px; font-size: 9px; }
  .dashboard-kpis { gap: 10px; margin-bottom: 20px; }
  .dashboard-kpi { padding: 16px; border-radius: 10px; }
  .dashboard-kpi::before { left: 16px; width: 27px; }
  .kpi-heading > span:first-child { font-size: 11px; }
  .kpi-symbol { flex-basis: 27px; height: 27px; border-radius: 7px; }
  .kpi-symbol svg { width: 15px; height: 15px; }
  .dashboard-kpi > strong { font-size: 30px; margin: 11px 0; }
  .kpi-foot { gap: 5px; align-items: flex-end; }
  .kpi-foot small { font-size: 9px; }
  .kpi-foot > svg { width: 13px; height: 13px; }
  .agenda-layout { gap: 16px; margin-bottom: 17px; }
  .agenda-heading { gap: 10px; padding: 19px 17px; }
  .agenda-heading .eyebrow { font-size: 7px; letter-spacing: .7px; }
  .agenda-heading h2 { font-size: 16px; }
  .view-switch { gap: 1px; padding: 2px; }
  .view-switch a { min-width: 41px; font-size: 10px; padding: 6px 8px; }
  .agenda-toolbar { gap: 8px; padding: 16px 17px; align-items: flex-start; }
  .agenda-date-heading h3 { font-size: 15px; line-height: 1.4; }
  .agenda-date-heading p { font-size: 10px; }
  .agenda-nav { gap: 2px; padding-top: 1px; }
  .agenda-nav .icon-btn { width: 28px; min-height: 31px; height: 31px; }
  .agenda-nav > .btn { min-height: 31px; padding: 5px 6px; font-size: 10px; }
  .agenda-date-form { padding: 12px 17px; gap: 8px; }
  .agenda-date-form label { flex: 1 0 100%; font-size: 10px; }
  .agenda-date-form input[type="date"] { flex: 1 1 130px; width: 130px; font-size: 12px; min-height: 37px; }
  .agenda-date-form .btn { min-height: 37px; padding-left: 9px; padding-right: 9px; }
  .day-agenda { padding: 13px 11px; gap: 9px; }
  .agenda-event { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 13px 11px; }
  .event-time { grid-row: span 2; padding-right: 10px; }
  .event-time time { font-size: 20px; }
  .event-time small { font-size: 8px; }
  .event-details h3 { font-size: 12px; }
  .event-details p { font-size: 10px; }
  .event-details > small { font-size: 9px; margin-top: 5px; }
  .event-status { grid-column: 2; justify-content: space-between; }
  .event-status .badge { max-width: none; font-size: 9px; padding: 4px 6px; }
  .agenda-empty { min-height: 195px; }
  .agenda-empty p { font-size: 11px; }
  .agenda-legend { padding: 13px 17px; gap: 8px 12px; }
  .agenda-legend > span { font-size: 9px; }
  .agenda-footer { padding: 13px 17px; }
  .agenda-footer > span { font-size: 8px; }
  .agenda-more { font-size: 10px; padding-left: 2px; padding-right: 2px; }
  .agenda-aside, .agenda-layout.is-week .agenda-aside { grid-template-columns: minmax(0, 1fr); }
  .dashboard-page .today-compact { padding: 22px; }
  .today-compact h2 { font-size: 18px; }
  .today-compact .today-focus-heading > span { font-size: 8px; letter-spacing: .6px; }
  .today-compact .today-focus-scene { width: 158px; flex-basis: 158px; }
  .today-compact .today-focus-scene .delivery-scene { --truck-width: 108px; height: 106px; }
  .today-compact .today-focus-count { font-size: 46px; }
  .today-compact .today-focus-main p { max-width: none; font-size: 11px; }
  .today-compact .today-focus-link { font-size: 11px; }
  .upcoming-panel { padding: 22px; }
  .upcoming-heading h2 { font-size: 14px; }
  .upcoming-list > li > a { grid-template-columns: 63px minmax(0, 1fr) 15px; gap: 14px; }
  .upcoming-list h3 { font-size: 12px; }
  .upcoming-list li p { font-size: 11px; }
  .upcoming-time strong { font-size: 17px; }
  .upcoming-all { font-size: 11px; }
  .operation-insights { gap: 16px; margin-bottom: 21px; }
  .volume-insight, .status-insight { padding: 21px; }
  .volume-insight .eyebrow { line-height: 1.65; font-size: 8px; }
  .insight-number { font-size: 29px; }
  .status-breakdown { gap: 17px 22px; }
  .breakdown-item > span { font-size: 10px; }
  .dashboard-page .confirmed-panel .panel-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .dashboard-page .confirmed-panel .panel-heading h2 { font-size: 15px; }
  .dashboard-page .confirmed-panel .panel-heading p { font-size: 10px; }
  .dashboard-page .confirmed-panel .panel-heading .text-link { min-height: 25px; }
  .filter-context { padding-left: 20px; padding-right: 20px; font-size: 10px; }
}
@media (max-width: 360px) {
  .dashboard-kpi { padding: 14px; }
  .kpi-heading > span:first-child { font-size: 10px; }
  .kpi-symbol { flex-basis: 23px; height: 23px; }
  .kpi-foot small { font-size: 8px; }
  .agenda-heading { flex-wrap: wrap; }
  .agenda-toolbar { flex-wrap: wrap; gap: 13px; }
  .agenda-nav { margin-left: auto; }
  .today-compact .today-focus-scene { width: 126px; flex-basis: 126px; }
  .today-compact .today-focus-scene .delivery-scene { --truck-width: 92px; }
  .volume-insight { gap: 12px; }
  .insight-icon { flex-basis: 31px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-kpi, .agenda-event, .week-event, .view-switch a, .upcoming-list > li > a, .overdue-list > li > a { transition: none; }
  .dashboard-kpi:hover { transform: none; }
}
@media (forced-colors: active) {
  .overdue-panel, .overdue-list > li > a, .overdue-empty { border: 1px solid CanvasText; }
  .agenda-event, .week-event { border-left-width: 3px; }
  .dashboard-kpi::before, .agenda-legend > span::before, .live-dot { background: CanvasText; }
  .view-switch a.selected, .is-today .week-day-heading { border-color: Highlight; }
  .breakdown-item meter { border: 1px solid CanvasText; }
}
