/* MAKE Executive Dashboard — formatted CSS. Cascade order preserved. */

/*Scoped to Executive view. Accountant and login retain their existing design.*/

.executive-mode {
    --exec-green: #153e33;
    --exec-gold: #b28b4c;
    --exec-ink: #203b31;
    --exec-muted: #75867b;
    background: #f2f4ef;
    min-height: 100vh;
}

.executive-mode .sales-header {
    background: #fffefb;
    padding: 18px 16px;
    border-bottom: 1px solid #e4e8df;
}

.executive-mode .sales-main {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 38px 16px !important;
}

.executive-mode>.sales-header .sales-brand img {
    max-height: 48px;
}

.executive-mode .sales-main>.stats {
    display: none;
}

.exec-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

.exec-heading h1 {
    font-size: clamp(34.34px,3.131vw,54.54px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin: 14px 0 18px;
    color: var(--exec-ink);
}

.exec-heading h1 span {
    font-family: Georgia,serif;
    font-style: italic;
    font-weight: 400;
    color: var(--exec-gold);
}

.exec-heading>div>p:last-child {
    font-size: 14.14px;
    color: var(--exec-muted);
    line-height: 1.7;
}

.exec-heading-right {
    text-align: right;
}

.exec-heading-right p {
    font-size: 11.11px;
    color: #849186;
    margin: 14px 0;
}

.exec-live {
    font-size: 9.09px;
    letter-spacing: 1.8px;
    color: #496552;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7ede3;
    padding: 10px 14px;
    border-radius: 30px;
}

.exec-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b815a;
}

.exec-refresh {
    background: #fffdf7;
    border-color: #d9e1d5;
    color: #224d37;
    font-size: 12.12px;
    padding: 11px 16px;
}

.exec-alert {
    padding: 14px 18px;
    border: 1px solid #ddc699;
    background: #fff5dc;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13.13px;
    line-height: 1.6;
}

.exec-kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.exec-kpi {
    background: #fffefb;
    border: 1px solid #e2e7dc;
    border-radius: 16px;
    padding: 24px 23px;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.exec-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12.12px;
    color: #5f7365;
}

.exec-kpi-top b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #eef1e8;
    color: #496851;
    border-radius: 9px;
    font-size: 21.21px;
    font-weight: 400;
}

.exec-kpi strong {
    display: block;
    font-size: clamp(20.2px,1.6665vw,29.29px);
    letter-spacing: -.8px;
    margin: 19px 0 10px;
    color: #234532;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.exec-kpi p {
    font-size: 11.11px;
    color: #7c897d;
    margin: 0 0 25px;
}

.exec-kpi-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.1px;
    color: #839080;
    padding-top: 14px;
    border-top: 1px solid #e8ece3;
}

.exec-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.exec-dot.green {
    background: #48815b;
}

.exec-dot.gold {
    background: #c3a366;
}

.exec-kpi-feature {
    background: linear-gradient(140deg,#224b3b,#102f28);
    border: 0;
    color: #ead9b8;
}

.exec-kpi-feature .exec-kpi-top,
.exec-kpi-feature p {
    color: #cad6c5;
}

.exec-kpi-feature .exec-kpi-top b {
    color: #e6cca0;
    background: #ffffff12;
}

.exec-kpi-feature strong {
    color: #fff8e9;
}

.exec-kpi-feature small {
    font-size: 8.08px;
    letter-spacing: 2px;
    color: #bfcfb8;
}

.exec-kpi-line {
    position: absolute;
    right: -10px;
    bottom: 8px;
    width: 145px;
    height: 55px;
    color: #c4a66b;
    opacity: .3;
}

.exec-kpi progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 0;
    margin-bottom: 10px;
    border: 0;
    border-radius: 6px;
    background: #e9eddf;
    overflow: hidden;
}

.exec-kpi progress::-webkit-progress-bar {
    background: #e9eddf;
}

.exec-kpi progress::-webkit-progress-value {
    background: #b79b5e;
}

.exec-kpi progress::-moz-progress-bar {
    background: #b79b5e;
}

.exec-kpi:last-child .exec-kpi-foot {
    border: 0;
    padding-top: 5px;
}

.exec-chart-grid {
    display: grid;
    grid-template-columns: minmax(0,1.65fr) minmax(0,1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.exec-secondary {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.exec-panel {
    background: #fffefb;
    border: 1px solid #e0e6da;
    border-radius: 16px;
    padding: 25px 25px 20px;
    min-width: 0;
}

.exec-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.exec-overline {
    font-size: 8.08px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a7884c;
    margin: 0 0 10px;
}

.exec-panel h2,
.exec-records-intro h2 {
    font-size: 19.19px;
    font-weight: 600;
    letter-spacing: -.5px;
    color: #294637;
    margin: 0;
}

.exec-panel-heading div>p:last-child:not(.exec-overline) {
    font-size: 11.11px;
    line-height: 1.5;
    color: #8a9488;
    margin: 8px 0 0;
}

.exec-pill {
    background: #f0f2e9;
    border: 1px solid #e4e8dc;
    font-size: 9.09px;
    color: #748268;
    padding: 7px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.exec-chart {
    height: 280px;
    width: 100%;
}

.exec-health .exec-chart {
    height: 235px;
}

.exec-donut-wrap {
    position: relative;
}

.exec-donut-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    pointer-events: none;
}

.exec-donut-center strong {
    font-size: 32.32px;
    display: block;
    letter-spacing: -1px;
    color: #244331;
}

.exec-donut-center span {
    display: block;
    font-size: 8.08px;
    letter-spacing: 2px;
    color: #8b9688;
    margin-top: 6px;
}

.exec-status-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 10.1px;
    color: #788475;
    margin-top: 8px;
}

.exec-status-legend>span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.exec-status-legend b {
    color: #244331;
}

.exec-caption {
    font-size: 10.1px;
    color: #8a9486;
    line-height: 1.6;
    margin: 5px 0 0;
}

.exec-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.65fr);
    gap: 24px;
    margin-bottom: 35px;
}

.exec-method-row {
    margin: 18px 0;
}

.exec-method-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.11px;
    color: #5a705e;
    margin-bottom: 9px;
}

.exec-method-label b {
    font-weight: 600;
    color: #34553b;
}

.exec-method-row progress {
    width: 100%;
    height: 5px;
    border: 0;
    appearance: none;
    background: #edf0e6;
}

.exec-method-row progress::-webkit-progress-bar {
    background: #edf0e6;
    border-radius: 5px;
}

.exec-method-row progress::-webkit-progress-value {
    background: #a6b58f;
    border-radius: 5px;
}

.exec-method-row progress::-moz-progress-bar {
    background: #a6b58f;
}

.exec-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0e7;
}

.exec-recent-row:last-child {
    border-bottom: 0;
}

.exec-recent-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 38px;
    background: #f0f2e9;
    border-radius: 8px;
    color: #8f986e;
    flex-shrink: 0;
}

.exec-recent-info {
    flex: 1;
    min-width: 0;
}

.exec-recent-info button {
    font-size: 12.12px;
    color: #395539;
}

.exec-recent-info p {
    font-size: 10.1px;
    color: #839080;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.exec-recent-value {
    text-align: right;
    white-space: nowrap;
    font-size: 12.12px;
    color: #3c573b;
}

.exec-recent-value small {
    display: block;
    font-size: 9.09px;
    margin-top: 5px;
    color: #95a08e;
}

.exec-text-link {
    font-size: 10.1px;
    color: #7a895f;
    text-decoration: none;
    white-space: nowrap;
}

.exec-records-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    padding-top: 6px;
    margin-bottom: 20px;
    scroll-margin-top: 100px;
}

.exec-records-intro>span {
    font-size: 11.11px;
    color: #8b9685;
}

.executive-mode .records-panel {
    border-radius: 16px;
    background: #fffefb;
    border-color: #e0e6da;
    padding: 25px;
}

.executive-mode .records-panel .section-head {
    display: none;
}

.executive-mode .record-tabs button {
    font-size: 11.11px;
    border-radius: 8px;
    padding: 11px 18px;
}

.executive-mode .filters {
    gap: 12px;
}

.executive-mode .filters input,
.executive-mode .filters select {
    background: #fffefb;
    font-size: 12.12px;
    padding: 12px;
    border-color: #dfe5d8;
}

.executive-mode .filters button {
    font-size: 12.12px;
}

.executive-mode th {
    background: #eef2e7;
    font-size: 9.09px;
    color: #6c7e64;
}

.executive-mode td {
    font-size: 11.11px;
    padding: 18px 15px;
}

.executive-mode tbody tr:hover {
    background: #f8faf3;
}

.executive-mode td button {
    font-size: 10.1px;
}

.executive-mode .badge {
    font-size: 9.09px;
}

.exec-fallback {
    height: 100%;
    overflow: auto;
    padding: 12px 0;
}

.exec-fallback table {
    white-space: normal;
}

.exec-fallback th,
.exec-fallback td {
    font-size: 11.11px;
    padding: 10px;
}

.exec-fallback-note {
    font-size: 11.11px;
    color: #7d886f;
    line-height: 1.7;
    margin: 0 0 12px;
}

.exec-empty {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 12.12px;
    color: #8a967d;
}

.exec-error-chart .exec-donut-center {
    display: none;
}

.executive-mode .highcharts-background {
    fill: transparent;
}

@media (min-width:1700px) {
    .exec-chart {
        height: 310px;
    }

    .exec-health .exec-chart {
        height: 265px;
    }
}

@media (max-width:1100px) {
    .exec-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .exec-chart-grid,
    .exec-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .exec-heading h1 {
        font-size: 40.4px;
    }

    .exec-panel {
        padding: 22px 18px;
    }

    .exec-kpi strong {
        font-size: 26.26px;
    }
}

@media (max-width:760px) {
    .executive-mode .sales-main {
        padding: 28px 10px !important;
    }

    .exec-heading {
        align-items: flex-start;
        gap: 18px;
    }

    .exec-heading h1 {
        font-size: 34.34px;
    }

    .exec-heading-right {
        max-width: 170px;
    }

    .exec-chart-grid,
    .exec-secondary,
    .exec-bottom-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .exec-kpis {
        gap: 12px;
    }

    .exec-kpi {
        padding: 18px 16px;
    }

    .exec-kpi strong {
        font-size: 21.21px;
    }

    .exec-kpi-top {
        font-size: 11.11px;
    }

    .exec-kpi-top b {
        width: 28px;
        height: 28px;
    }

    .exec-records-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .exec-chart {
        height: 270px;
    }

    .exec-health .exec-chart {
        height: 240px;
    }

    .exec-panel-heading h2 {
        font-size: 18.18px;
    }

    .executive-mode .records-panel {
        padding: 18px 14px;
    }

    .exec-live {
        font-size: 8.08px;
        letter-spacing: 1px;
        padding: 8px 10px;
    }
}

@media (max-width:480px) {
    .exec-heading {
        flex-direction: column;
    }

    .exec-heading-right {
        text-align: left;
        max-width: none;
    }

    .exec-heading-right p {
        display: inline-block;
        margin: 0 12px;
        font-size: 10.1px;
    }

    .exec-refresh {
        display: block;
        margin-top: 12px;
    }

    .exec-kpi strong {
        font-size: 18.18px;
    }

    .exec-kpi p {
        font-size: 10.1px;
    }

    .exec-kpi-foot {
        font-size: 9.09px;
    }

    .exec-kpi-top b {
        display: none;
    }

    .exec-panel-heading {
        align-items: flex-start;
    }

    .exec-pill {
        font-size: 8.08px;
        padding: 6px 8px;
    }

    .exec-recent-row {
        gap: 10px;
    }

    .exec-recent-value {
        font-size: 10.1px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .executive-mode * {
        scroll-behavior: auto;
    }
}

.exec-dot.sage {
    background: #d7dccb;
}

.executive-mode {
    font-size: 15.15px;
}

.executive-mode .sales-header button {
    font-size: 15.15px;
}

/*Larger register text for the Executive workspace.*/

.executive-mode .records-panel td {
    font-size: 15px;
    line-height: 1.55;
}

.executive-mode .records-panel th {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .5px;
}

.executive-mode .records-panel button,
.executive-mode .records-panel .button-link {
    font-size: 14px;
    line-height: 1.4;
}

.executive-mode .records-panel input,
.executive-mode .records-panel select {
    font-size: 15px;
}

.executive-mode .records-panel .badge {
    font-size: 12px;
}

.executive-mode .exec-records-intro p {
    font-size: 14px;
}

.executive-mode .exec-recent-info .link,
.executive-mode .exec-recent-value {
    font-size: 14px;
}

.executive-mode .exec-recent-info p,
.executive-mode .exec-recent-value small {
    font-size: 12px;
}

/*Period and private profit insight controls*/

.exec-kpi select {
    width: 100%;
    font-size: 14px;
    padding: 9px 12px;
    margin: 10px 0;
    border: 1px solid #dce3d8;
    border-radius: 8px;
    background: #fff;
    color: #173e32;
}

.exec-kpi-feature #exec-staff {
    max-height: 115px;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.exec-kpi-feature #exec-staff p {
    margin: 5px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.exec-kpi-feature #exec-invoices {
    font-size: 34px;
}

.exec-kpi-feature .exec-kpi-line {
    display: none;
}

#exec-profit-coverage {
    font-size: 13px;
}

#exec-profit-details {
    font-size: 14px;
    width: 100%;
    padding: 9px;
}

/*MAKE executive visual refresh*/

.executive-mode {
    background: radial-gradient(ellipse at 90% 0%,#e8efe9 0,transparent 42%),#f5f7f5;
    color: #193c32;
}

.executive-mode .sales-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffffed;
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 22px #163b2910;
    padding: 16px 20px;
}

.executive-mode .sales-main {
    padding: 30px 16px !important;
}

.exec-heading {
    margin-bottom: 26px;
    align-items: flex-end;
}

.exec-heading h1 {
    font-size: clamp(32px,3vw,48px);
    line-height: 1.12;
    margin: 8px 0 12px;
    letter-spacing: -1.5px;
}

.exec-heading>div>p:last-child {
    font-size: 15px;
    margin-bottom: 0;
}

.exec-live {
    font-size: 10px;
    font-weight: 700;
}

.exec-refresh {
    font-size: 13px;
    border-radius: 12px;
    box-shadow: 0 3px 10px #153e3308;
}

.exec-kpis {
    gap: 18px;
    align-items: stretch;
    margin-bottom: 24px;
}

.exec-kpi {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 23px;
    border-radius: 22px;
    border-color: #e1e8e3;
    box-shadow: 0 8px 30px #143b2c08;
    transition: transform .2s,box-shadow .2s;
    background: linear-gradient(150deg,#fff,#fafcfb);
}

.exec-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px #143b2c13;
}

.exec-kpi-top {
    font-size: 14px;
    font-weight: 600;
    min-height: 38px;
    color: #526d62;
}

.exec-kpi-top b {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    background: #edf4ef;
    color: #2a6d50;
    font-size: 23px;
}

.exec-kpi strong {
    font-size: clamp(24px,1.8vw,34px);
    letter-spacing: -1px;
    margin: 22px 0 10px;
    line-height: 1.15;
}

.exec-kpi p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
    color: #6f8277;
}

.exec-kpi-foot {
    margin-top: auto;
    font-size: 12px;
    line-height: 1.5;
    padding-top: 16px;
    border-top: 1px solid #e5ebe6;
}

.exec-kpi-feature {
    background: radial-gradient(circle at 100% 0%,#36775d 0,transparent 60%),linear-gradient(145deg,#1c4d3d,#0c3028);
    box-shadow: 0 10px 28px #153e3326;
    border: 1px solid #255c46;
}

.exec-kpi-feature:after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid #ffffff0c;
    border-radius: 50%;
    right: -85px;
    bottom: -85px;
    pointer-events: none;
}

.exec-kpi-feature .exec-kpi-top {
    color: #e3eee7;
}

.exec-kpi-feature strong {
    color: #fff;
}

.exec-kpi-feature #exec-invoices {
    font-size: 40px;
    margin: 12px 0 5px;
}

.exec-kpi-feature #exec-sales {
    color: #d5e6dc;
    font-size: 14px;
}

.exec-kpi select {
    height: 42px;
    padding: 8px 12px;
    border-radius: 11px;
    margin: 12px 0 10px;
    box-shadow: none;
    font-size: 13px;
    cursor: pointer;
}

.exec-kpi-feature select {
    background: #ffffff12;
    color: #fff;
    border-color: #ffffff30;
}

.exec-kpi-feature select option {
    color: #173e32;
    background: #fff;
}

.exec-kpi-feature #exec-staff {
    margin: 6px 0 12px;
    max-height: 85px;
}

.exec-kpi-feature #exec-staff p {
    padding: 8px 0;
    border-top: 1px solid #ffffff1b;
    color: #dfebe3;
    font-size: 13px;
    margin: 0;
}

.exec-kpi-feature small {
    margin-top: auto;
    font-size: 9px;
    letter-spacing: 2px;
}

#exec-profit-coverage {
    font-size: 12px;
    margin-bottom: 10px;
}

#exec-profit-details {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 11px;
    background: #183f32;
    color: #fff;
    border-color: #183f32;
    margin: 0 0 12px;
}

#exec-profit-details:hover {
    background: #286044;
}

.exec-kpi:last-child .exec-kpi-foot {
    font-size: 11px;
    padding-top: 8px;
}

#exec-rate {
    color: #287a51;
}

#exec-profit-amount {
    font-size: 13px;
    color: #436e57;
}

.exec-panel {
    border-radius: 22px;
    padding: 26px;
    background: linear-gradient(160deg,#fff,#fcfdfc);
    border: 1px solid #e2e9e3;
    box-shadow: 0 7px 28px #143b2c07;
}

.exec-panel-heading {
    margin-bottom: 20px;
}

.exec-panel h2 {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -.6px;
}

.exec-overline {
    font-size: 10px;
    letter-spacing: 2px;
    color: #a38143;
}

.exec-panel-heading div>p:last-child:not(.exec-overline) {
    font-size: 13px;
    color: #73877a;
}

.exec-pill {
    font-size: 11px;
    background: #edf4ef;
    border-color: #e0ebe2;
    color: #48725a;
}

.exec-chart {
    height: 320px;
}

.exec-health .exec-chart {
    height: 260px;
}

.exec-donut-center strong {
    font-size: 39px;
}

.exec-donut-center span {
    font-size: 10px;
}

.exec-status-legend {
    font-size: 13px;
    gap: 20px;
}

.exec-caption {
    font-size: 12px;
    margin-top: 14px;
    line-height: 1.6;
}

.exec-method-label {
    font-size: 14px;
}

.exec-method-row progress {
    height: 8px;
    border-radius: 8px;
}

.exec-recent-icon {
    background: #e9f2ec;
    color: #397854;
    border-radius: 12px;
    height: 42px;
    width: 38px;
}

.exec-recent-row {
    padding: 18px 0;
}

.executive-mode .records-panel {
    border-radius: 22px;
    box-shadow: 0 8px 30px #143b2c08;
}

.exec-records-intro h2 {
    font-size: 24px;
}

.exec-kpi select:focus-visible,
.exec-refresh:focus-visible,
#exec-profit-details:focus-visible {
    outline: 3px solid #b89c5c;
    outline-offset: 3px;
}

@media (max-width:1200px) {
    .exec-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .exec-kpi strong {
        font-size: 30px;
    }

    .exec-kpi {
        min-height: 300px;
    }
}

@media (max-width:760px) {
    .executive-mode .sales-main {
        padding: 22px 10px !important;
    }

    .exec-heading {
        align-items: flex-start;
    }

    .exec-heading h1 {
        font-size: 34px;
    }

    .exec-panel {
        padding: 20px 16px;
    }

    .exec-kpi {
        padding: 20px 16px;
        min-height: 300px;
    }

    .exec-kpi-top {
        font-size: 13px;
    }

    .exec-kpi strong {
        font-size: 25px;
    }

    .exec-chart {
        height: 280px;
    }

    .exec-panel h2 {
        font-size: 20px;
    }

    .exec-heading-right p {
        font-size: 11px;
    }
}

@media (max-width:540px) {
    .exec-kpis {
        grid-template-columns: 1fr;
    }

    .exec-kpi {
        min-height: 260px;
    }

    .exec-kpi strong {
        font-size: 32px;
    }

    .exec-heading {
        flex-direction: column;
        gap: 14px;
    }

    .exec-heading-right {
        text-align: left;
    }

    .exec-heading-right p {
        margin: 8px 0;
    }

    .exec-refresh {
        margin-top: 8px;
    }

    .exec-kpi-top b {
        display: grid;
    }

    .exec-kpi-feature #exec-invoices {
        font-size: 44px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .exec-kpi {
        transition: none;
    }

    .exec-kpi:hover {
        transform: none;
    }
}

/*Compact KPIs with an external date toolbar.*/

.exec-date-toolbar {
    padding: 17px 20px;
    margin: 0 0 20px;
    background: #ffffffcf;
    border: 1px solid #e0e9e2;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.exec-date-toolbar h2 {
    font-size: 18px;
    color: #24523b;
    margin: 0 0 5px;
    font-weight: 750;
}

.exec-date-toolbar p {
    font-size: 13px;
    color: #748578;
    margin: 0;
    line-height: 1.4;
}

.exec-period-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.exec-period-pills button {
    border: 1px solid #dce8df;
    border-radius: 30px;
    background: #fff;
    padding: 10px 16px;
    color: #345648;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s,border-color .15s;
}

.exec-period-pills button:hover {
    background: #edf7ef;
    border-color: #81c99c;
}

.exec-period-pills button.is-active {
    background: #c9f4d6;
    color: #175932;
    border-color: #78dfa0;
    box-shadow: 0 3px 10px #66b77e15;
}

.exec-period-pills button:focus-visible {
    outline: 3px solid #b89c5c;
    outline-offset: 3px;
}

.exec-date-toolbar select[hidden] {
    display: none !important;
}

.exec-kpi {
    min-height: 0;
    padding: 18px 20px;
    border-radius: 18px;
}

.exec-kpi-top {
    min-height: 30px;
    font-size: 13px;
}

.exec-kpi-top b {
    height: 30px;
    width: 30px;
    font-size: 20px;
    border-radius: 9px;
}

.exec-kpi strong {
    font-size: clamp(24px,1.8vw,32px);
    margin: 13px 0 7px;
}

.exec-kpi p {
    margin: 0 0 9px;
    font-size: 12px;
    line-height: 1.4;
}

.exec-kpi-foot {
    padding-top: 10px;
    margin-top: auto;
    font-size: 11px;
}

.exec-kpi-feature #exec-invoices {
    font-size: 36px;
    margin: 12px 0 5px;
}

.exec-kpi-feature #exec-sales {
    font-size: 13px;
}

.exec-kpi-feature #exec-staff {
    max-height: 62px;
    margin: 5px 0 10px;
}

.exec-kpi-feature #exec-staff p {
    font-size: 12px;
    padding: 6px 0;
}

.exec-kpi-feature small {
    padding-top: 7px;
}

#exec-profit-mode {
    height: 34px;
    margin: 3px 0 7px;
    padding: 5px 10px;
    font-size: 12px;
}

#exec-profit-coverage {
    font-size: 11px;
    margin: 0 0 7px;
}

#exec-profit-amount {
    font-size: 12px;
    margin-bottom: 6px;
}

#exec-profit-details {
    padding: 7px 10px;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.exec-kpi:last-child .exec-kpi-foot {
    font-size: 10px;
    padding-top: 5px;
}

@media (max-width:1200px) {
    .exec-kpi {
        min-height: 0;
    }

    .exec-kpi strong {
        font-size: 28px;
    }
}

@media (max-width:760px) {
    .exec-date-toolbar {
        padding: 15px;
        gap: 12px;
    }

    .exec-period-pills {
        gap: 7px;
    }

    .exec-period-pills button {
        font-size: 12px;
        padding: 9px 13px;
    }

    .exec-kpi {
        min-height: 0;
        padding: 17px;
    }

    .exec-kpi strong {
        font-size: 25px;
    }
}

@media (max-width:540px) {
    .exec-kpi {
        min-height: 0;
    }

    .exec-kpi strong {
        font-size: 28px;
    }

    .exec-kpi-feature #exec-invoices {
        font-size: 36px;
    }

    .exec-kpi-foot {
        margin-top: 12px;
    }
}

/*Compact single-line executive heading on wider screens.*/

.exec-heading {
    align-items: center;
    margin-bottom: 18px;
    gap: 20px;
}

.exec-heading h1 {
    font-size: clamp(28px,2.6vw,44px);
    line-height: 1.15;
    margin: 7px 0 9px;
}

.exec-heading h1 span {
    display: inline;
}

.exec-heading-right p {
    margin: 8px 0;
}

.exec-heading>div>p:last-child {
    margin-top: 0;
}

@media (min-width:900px) {
    .exec-heading h1 {
        white-space: nowrap;
    }
}

@media (max-width:899px) {
    .exec-heading h1 {
        font-size: clamp(26px,4vw,34px);
        white-space: normal;
    }
}

.exec-person-filter {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #345648;
    min-width: 190px;
}

.exec-person-filter select {
    margin-top: 5px;
    height: 39px;
    padding: 7px 12px;
    border-radius: 11px;
    background: #fff;
    border-color: #dce8df;
    font-size: 13px;
    color: #244c37;
}

.exec-invoice-scope {
    font-size: 12px !important;
    color: #cbdfd1 !important;
    margin-top: 5px !important;
}

.exec-date-toolbar {
    gap: 14px;
}

.exec-period-pills {
    margin-left: auto;
}

@media (max-width:760px) {
    .exec-person-filter {
        width: 100%;
    }

    .exec-period-pills {
        margin-left: 0;
    }
}

/*Person selector belongs to the fourth infographic.*/

.exec-kpi .exec-person-filter {
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.3;
    color: #526d62;
}

.exec-kpi .exec-person-filter select {
    width: 100%;
    height: 33px;
    margin: 4px 0 0;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.exec-kpi .exec-person-filter+strong {
    margin-top: 10px;
}

.exec-kpi #exec-profit-mode {
    height: 31px;
    margin: 2px 0 5px;
}

.exec-kpi #exec-profit-coverage {
    margin-bottom: 5px;
}

.exec-kpi #exec-profit-details {
    margin-bottom: 4px;
}

/*Sales executive selector in the first Sales invoices infographic.*/

.exec-kpi-feature .exec-person-filter {
    color: #dcece2;
    margin: 9px 0 0;
}

.exec-kpi-feature .exec-person-filter select {
    background: #ffffff14;
    color: #fff;
    border: 1px solid #ffffff35;
    height: 34px;
    margin-top: 4px;
}

.exec-kpi-feature .exec-person-filter select option {
    background: #fff;
    color: #173e32;
}

.exec-kpi-feature .exec-person-filter+strong {
    margin-top: 10px !important;
}

.dashboard-record-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #d8e2dc;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21,66,53,.07);
}

.dashboard-record-tabs button {
    min-height: 44px;
    border: 1px solid #d6e0da;
    background: #fff;
    color: #173f34;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.dashboard-record-tabs button:hover {
    border-color: #b68a3d;
    color: #8b6528;
    transform: translateY(-1px);
}

.dashboard-record-tabs button.active {
    background: #124c3d;
    border-color: #124c3d;
    color: #fff;
    box-shadow: 0 7px 16px rgba(18,76,61,.18);
}

.accountant-record-tabs {
    margin: 18px 0 4px;
}

@media (max-width:760px) {
    .dashboard-record-tabs {
        padding: 10px;
        gap: 8px;
    }

    .dashboard-record-tabs button {
        flex: 1 1 165px;
        padding: 10px 12px;
    }
}

#exec-records-slot {
    margin-bottom: 28px;
}

#exec-records-slot .records-panel {
    box-shadow: 0 12px 34px rgba(21,66,53,.06);
}
