:root {
    /* Brand colors */
    --color-main: #035122;
    --color-main-light: #ecfdf5;
    --color-main-soft: #3a825b;
    --color-main-blue: #147cdf;
    --color-pop: #D74114;
    --color-secondary: #9d7d50;
    --color-accent: #ffde59;
    --color-brown: #9d7d50;

    --color-light-blue: #f0f9ff;
    --color-valutrek-pro-duplicate-row-highlight: #D74114;
    --color-valutrek-pro-duplicate-row-text-color: white;

    /* Typography */
    --font-base: 'Poppins', system-ui, sans-serif;
    --font-size-base: 12px;

    /* Valutrek Pro colors */
    /* MPSP (green / soft success tone) */
    --color-mpsp-card: #ecfdf5;
    --color-mpsp-card-light: #4abba7;
    --color-mpsp-text: black;
    --color-mpsp-text-muted: #333;

    /* Seller Hub (primary green) */
    --color-seller-hub-card: #ecfdf5;
    --color-seller-hub-card-light: #4abba7;
    --color-seller-hub-text: black;
    --color-seller-hub-text-muted: #333;

    /* CIM (primary blue) */
    --color-cim-card: #147cdf;
    --color-cim-card-light: #dbeafe;
    --color-cim-text: #1e3a8a;
    --color-cim-text-muted: #333;

    /* Buyer Hub (primary blue) */
    --color-buyer-hub-card: #147cdf;
    --color-buyer-hub-card-light: #dbeafe;
    --color-buyer-hub-text: #1e3a8a;
    --color-buyer-hub-text-muted: #333;

    /* Broker Hub / BLI (soft purple) */
    --color-bli-card: #e8e7fa;
    --color-bli-card-light: #8d77d9;
    --color-bli-text: black;
    --color-bli-text-muted: #333;
}

/* AG Grid: selected and hover row background */
.ag-theme-alpine .ag-row.ag-row-selected,
.ag-theme-alpine .ag-row.ag-row-hover,
.ag-theme-alpine .ag-row:hover {
    background-color: var(--color-main-light) !important;
}

.ag-theme-alpine .ag-row.ag-row-selected .ag-cell,
.ag-theme-alpine .ag-row.ag-row-hover .ag-cell,
.ag-theme-alpine .ag-row:hover .ag-cell {
    background-color: var(--color-main-light) !important;
}

.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row {
    --ag-font-size: 12px;
    /* ← change this value — default is ~13–14px */
    /* Optional companions for better proportions */
    --ag-header-font-size: 13px;
}

/* MPSP sidebar: unpinned + collapsed — hover overlay uses position fixed; .mpsp-sidebar--floating is set in JS */
.mpsp-sidebar.mpsp-sidebar--floating {
    z-index: 40;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.mpsp-sidebar-pin.is-pinned {
    color: var(--color-main);
}

/* MPSP sidebar: nav icons — brand color at all times */
.mpsp-sidebar .mpsp-nav-item-inner>i.mpsp-nav-icon {
    flex-shrink: 0;
    color: var(--color-main);
    font-size: 1.05rem;
    line-height: 1;
}

.mpsp-sidebar .mpsp-nav-item-label {
    min-width: 0;
}

.mpsp-sidebar .mpsp-sidebar-toggle .mpsp-sidebar-icon {
    color: var(--color-main);
    font-size: 1.05rem;
}

/* MPSP sidebar: unpinned + collapsed strip (not hover-expanded) */
.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) {
    max-height: calc(100vh - 140px);
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-header {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-label {
    text-align: center;
    line-height: 1.15;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-section-heading {
    display: none;
}

/* Scroll icon list; header (Menu + toggle column) under aside max 100vh - 140px */
.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav {
    max-height: calc(100vh - 200px);
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Flatten sections so vertical spacing is even between every icon (no “jump” at category breaks) */
.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav>div {
    display: contents;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav>div>nav {
    display: contents;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav>*+* {
    margin-top: 0 !important;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav>div>nav>*+* {
    margin-top: 0 !important;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-sidebar-nav button {
    justify-content: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-nav-item-label {
    display: none;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-nav-item-inner {
    justify-content: center;
    gap: 0;
}

.mpsp-sidebar.mpsp-sidebar--collapsed:not(.mpsp-sidebar--floating) .mpsp-nav-item-inner>i.mpsp-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--color-main);
}

/* Inputs always 12px */
input {
    font-size: 12px !important;
}

/* Name cells in income statement */
.is-name-cell,
.bs-name-cell {
    color: #333 !important;
    padding-left: 10px !important;
}

/* Name cells in forecasts worksheet */
.fw-name-cell {
    color: #333 !important;
    padding-left: 20px !important;
}

.fw-col-possible,
.fw-col-actual {
    color: #fff !important;
}

.editable-input:not(.editable-transparent) {
    width: 100%;
    border: none;
    outline: none;
    background-color: var(--color-light-blue, #f0f9ff);
    color: blue;
    padding: 0.15rem 6px;
    font-size: 13px;
    border-radius: 6px;
    text-align: right;
    font-weight: normal !important;
}

.fw-total-row .editable-input {
    background-color: var(--color-main-light) !important;
    color: #333 !important;
}

/* Section rows in income statement */
.is-section-row td {
    padding-top: 10px !important;
}

.shadow-result-box {
    background: var(--color-main);
    color: #fff;
    min-height: 0;
    padding: 0.5rem 1.1rem;
    border-radius: 0.45rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding: 1.6rem 2.3rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.25;
    margin-top: 2.2rem;
    box-shadow: -6px 10px 10px 0 rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
}