﻿/* Sales home inside the shared program frame. */
.billing-program-screen { position: relative; display: grid; grid-template-rows: 2.8em 3.4em minmax(0,1fr); min-width: 0; min-height: 0; background: #fff; color: #344155; }
.billing-program-tabs { display: flex; align-items: stretch; border-bottom: 1px solid #cbd4df; background: #f4f5f7; }
.billing-program-tabs > span { display: flex; align-items: center; padding: 0 .8em; border-right: 1px solid #dce3eb; color: #526071; font-size: .95em; }
.billing-program-tabs .is-active { margin-bottom: -1px; border-top: 2px solid #328efa; background: #fff; color: #237ee0; font-weight: 600; }
.billing-program-controls { display: flex; align-items: center; gap: .55em; overflow: hidden; padding: .45em .7em; border-bottom: 1px solid #cbd4df; background: #fafbfc; white-space: nowrap; }
.billing-program-controls > strong, .billing-program-controls > span, .billing-program-controls > b { padding: .35em .6em; border: 1px solid #c6d0dd; border-radius: 2px; background: #fff; color: #526071; font-size: .9em; line-height: 1.2; font-weight: 400; }
.billing-program-controls .billing-program-arrows { color: #328efa; }
.billing-program-controls > b { border-color: #3e72a4; background: #315d85; color: #e0edfa; }
.billing-program-controls > b.is-active { border-color: #4a95e0; background: #5aa5ed; color: #fff; }
.billing-program-body { display: grid; grid-template-columns: 34% minmax(0,1fr); min-width: 0; min-height: 0; }
.billing-program-stats { display: grid; grid-template-rows: 34% 34% 32%; min-width: 0; min-height: 0; border-right: 1px solid #bfcbd8; }
.billing-program-chart { display: grid; grid-template-rows: 1.9em minmax(0,1fr) 1.6em; min-height: 0; padding: .7em 1em .4em; border-bottom: .5em solid #f1f3f6; }
.billing-program-chart h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; margin: 0; color: #344155; font-size: 1em; line-height: 1.5; font-weight: 600; }
.billing-program-chart h3 > span { color: #7b8899; font-size: .75em; font-weight: 400; white-space: nowrap; }
.billing-program-bars { display: flex; align-items: flex-end; gap: .25em; min-height: 0; padding: 0 .3em; border-left: 1px solid #b6c0cd; border-bottom: 1px solid #b6c0cd; background: repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0f4 calc(25% - 1px),#edf0f4 25%); }
.billing-program-bars > span { flex: 1; min-width: 0; border-radius: 1px 1px 0 0; background: #8bbff6; }
.billing-program-bars.is-monthly { gap: .65em; }
.billing-program-bars.is-monthly > span { background: #8bd18d; }
.billing-program-bars.is-monthly > .is-current { background: #49b96c; }
.billing-program-axis { display: flex; align-items: end; justify-content: space-between; padding-left: .4em; color: #7b8899; font-size: .7em; }
.billing-program-donuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8em; padding: .6em .8em; }
.billing-program-donuts > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.billing-program-donuts h3 { align-self: flex-start; margin: 0 0 .35em; font-size: 1em; font-weight: 600; }
.billing-program-ring { display: grid; place-items: center; width: 5.7em; max-width: 100%; aspect-ratio: 1; border-radius: 50%; }
.billing-program-ring.is-group { background: conic-gradient(#8ccbb4 0 43.48%,#a5c7ed 43.48% 78.26%,#6f98cb 78.26% 100%); }
.billing-program-ring.is-age { background: conic-gradient(#a0d2c1 0 60.87%,#9abbe9 60.87% 86.96%,#cfb8e4 86.96% 100%); }
.billing-program-ring > div { display: flex; align-items: center; justify-content: center; gap: .1em; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.billing-program-ring strong { color: #526071; font-size: 1.1em; font-weight: 600; }
.billing-program-ring span { color: #8a96a7; font-size: .7em; }
.billing-program-donuts p { margin: .45em 0 0; color: #7b8899; font-size: .65em; line-height: 1.4; text-align: center; white-space: nowrap; }
.billing-program-calendar { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.billing-program-calendar th { height: 1.9em; padding: .1em; border: 1px solid #dce2e9; background: #fff; color: #344155; font-size: .8em; font-weight: 600; }
.billing-program-calendar td { position: relative; padding: .2em .3em; border: 1px solid #dce2e9; vertical-align: top; }
.billing-program-date { color: #344155; font-size: .75em; line-height: 1.3; }
.billing-program-calendar tr > :first-child, .billing-program-calendar tr > :first-child .billing-program-date { color: #f06a4f; }
.billing-program-calendar tr > :last-child, .billing-program-calendar tr > :last-child .billing-program-date { color: #328efa; }
.billing-program-day-total { position: absolute; inset: 1.5em 0 .3em; display: flex; align-items: center; justify-content: center; gap: .12em; color: #6aa7e8; }
.billing-program-day-total strong { font-size: 1.6em; font-weight: 600; line-height: 1; }
.billing-program-day-total > span { font-size: 1em; }
.billing-program-calendar .is-empty .billing-program-day-total { color: #b8c1ce; }
.billing-program-calendar .is-selected { background: #328efa; }
.billing-program-calendar .is-selected .billing-program-date, .billing-program-calendar .is-selected .billing-program-day-total { color: #fff; }
.billing-program-calendar .is-next-month { background: #f4f5f7; }
.billing-program-calendar .is-next-month .billing-program-date { color: #9aa5b4; }

/* Billing sections: reusable layout with image areas reserved for supplied assets. */
.billing-section-soft { background: var(--bg-soft); }
.billing-feature-layout-reverse .ep-section-copy { grid-column: 2; grid-row: 1; }
.billing-feature-layout-reverse .billing-feature-image { grid-column: 1; grid-row: 1; }
.billing-feature-image { width: 100%; min-width: 0; }
.billing-feature-image img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
 .billing-feature-layout-reverse .ep-section-copy, .billing-feature-layout-reverse .billing-feature-image { grid-column: auto; grid-row: auto; }
 .billing-feature-image { max-width: 580px; justify-self: center; }
}
