/* Sales to bank and Payment plan: Restaurant pilot, EN/PT. */
.g-pilot-cash-card, .g-pilot-plan-card {
  display: grid; width: 100%; gap: 12px; padding: 16px; color: inherit;
  text-align: start; font: inherit; background: white; border: 1px solid #dce2ed;
  border-radius: 14px; cursor: pointer;
}
.g-pilot-cash-card:focus-visible, .g-pilot-plan-card:focus-visible { outline: 2px solid #5145c8; outline-offset: 2px; }
.g-pilot-card-title, .g-pilot-chart-dates { display: flex; justify-content: space-between; gap: 8px; }
.g-pilot-card-title, .g-pilot-card-note, .g-pilot-chart-dates, .g-pilot-scale { color: #47556a; }
.g-pilot-chart { display: grid; gap: 4px; min-width: 0; }
.g-pilot-scale, .g-pilot-chart-dates { font-size: 0.75rem; color: #535f72; }
.g-pilot-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.g-pilot-total strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.g-pilot-bars {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end;
  gap: clamp(3px, 1vw, 8px); height: 72px; padding-inline: 4px;
  border-bottom: 1px solid #dce2ed; background: repeating-linear-gradient(to top, transparent 0 23px, #edf1f6 23px 24px);
}
.g-pilot-bar-slot { display: grid; grid-template: 1fr / 1fr; height: 100%; width: 100%; align-items: end; }
.g-pilot-bar-slot meter { grid-area: 1 / 1; width: 100%; height: 100%; writing-mode: vertical-lr; direction: rtl; }
.g-pilot-bar-slot meter::-webkit-meter-bar { background: transparent; border: 0; border-radius: 3px; }
.g-pilot-bar-total::-webkit-meter-optimum-value { background: #c2e5e5; }
.g-pilot-bar-in::-webkit-meter-optimum-value { background: #109f9f; }
.g-pilot-cash-panel, .g-pilot-plan { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 20px; }
.g-pilot-cash-panel p, .g-pilot-plan p, .g-pilot-cash-panel h3, .g-pilot-plan h3 { margin: 0; }
.g-pilot-cash-panel h3, .g-pilot-plan header { color: #47556a; }
.g-pilot-plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-pilot-plan header strong { color: #182234; font-size: 1.35rem; }
.g-pilot-channels { list-style: none; margin: 0; padding: 0; }
.g-pilot-channel {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(35px,1fr) max-content;
  gap: 8px; align-items: center; width: 100%; text-align: start; font: inherit; color: inherit;
  padding: 8px 2px; min-height: 44px; border: 0; border-bottom: 1px solid #e5eaf1; background: transparent;
}
button.g-pilot-channel, .g-pilot-link, .g-pilot-days summary { cursor: pointer; }
.g-pilot-channel small { display: block; color: #535f72; }
.g-pilot-channel meter { width: 100%; }
.g-pilot-channel meter::-webkit-meter-optimum-value { background: #109f9f; }
.g-pilot-late meter::-webkit-meter-optimum-value { background: #a95d00; }
.g-pilot-risk { color: #965200; }
.g-pilot-link { color: #1d365a; font: inherit; border: 0; text-decoration: underline; background: transparent; padding: 4px; }
.g-pilot-days summary { color: #1d365a; font-weight: 650; padding-block: 8px; }
.g-pilot-table-wrap { overflow-x: auto; max-width: 100%; }
.g-pilot-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.g-pilot-table th, .g-pilot-table td { text-align: start; padding: 9px 6px; border-bottom: 1px solid #e6ebf1; vertical-align: top; }
.g-pilot-table thead th { color: #47556a; }
.g-pilot-table th:first-child, .g-pilot-table th:nth-last-child(2), .g-pilot-table th:last-child, .g-pilot-table td:nth-last-child(2), .g-pilot-table td:last-child { white-space: nowrap; }
.g-pilot-table th:nth-last-child(2), .g-pilot-table th:last-child, .g-pilot-table td:nth-last-child(2), .g-pilot-table td:last-child { text-align: end; }
.g-pilot-kind { font-size: 0.81rem; font-weight: 700; text-transform: uppercase; }
.g-pilot-due { color: #965200; }
.g-pilot-review, .g-pilot-negative { color: #b42324; }
.g-pilot-arrival { color: #076e71; background: #f0f8f8; }
.g-pilot-suggested, .g-pilot-decision { border: 1px solid #c3d1eb; border-radius: 10px; padding: 12px; background: #f5f7fc; }
.g-pilot-suggested strong { color: #493bb9; }
.g-pilot-suggested ol { padding-inline-start: 22px; margin-bottom: 0; }
.g-pilot-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-pilot-plan-actions button { min-height: 44px; }
@media (max-width: 600px) {
  .g-pilot-cash-panel, .g-pilot-plan { padding: 12px; }
  .g-pilot-table { min-width: 440px; }
  .g-pilot-table-wrap { overscroll-behavior-inline: contain; }
}

.g-pilot-bank-layer.lv-slideover { width: min(560px, 100vw); }
.g-pilot-bank-layer--left.lv-slideover { right: auto; left: 0; animation: none; }
#lv-layer:has(.g-pilot-bank-layer) > [data-lv-sheet-overlay] { background: transparent; }
.vr-card.g-pilot-bank-slot { min-width: 0; padding: 0; border: 0; background: transparent; }
.g-pilot-bank-slot > .g-pilot-cash-card { height: 100%; min-width: 0; }

.g-pilot-plan-cash { margin: 12px 0; }
.g-pilot-shortfall { margin: 14px 0; }
.g-pilot-shortfall-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.g-pilot-shortfall-controls label { display: grid; gap: 4px; }
.g-pilot-shortfall button, .g-pilot-shortfall-controls input { min-height: 44px; }
.g-pilot-shortfall [role="status"]:empty { display: none; }
@media (max-width: 600px) {
  .g-pilot-shortfall-controls [data-plan-mark="funds"] { flex-basis: 100%; }
}
