.nav-brand {
    font-size: 1.4rem;
    color: #222222;
    margin-left: .2rem;
    margin-bottom: -1px;
}

.nav-brand-logo {
    height: 33px;
    vertical-align: middle;
}

.nav-brand-container {
    margin-left: -.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #222222;
    margin-bottom: 0rem;
    text-align: center;
    font-size: 14px;
}

.nav-link:hover {
    color: #fff;
    background-color: #6810a391;
}

.nav-container {
    background-color: #eeeeee;
    height: 100vh;
    padding-right: 1rem;
    padding-left: .8rem;
    padding-top: 1.2rem;
    align-items: center;
    transition: width 0.3s ease;
    width: auto;
    min-width: fit-content;
    overflow: hidden;
}

.nav-container.collapsed {
    width: 20px;
    padding-right: 0;
    padding-left: 0;
    padding-top: 0.8rem;
}

.nav-container.collapsed .nav-brand-container,
.nav-container.collapsed #nav-links,
.nav-container.collapsed .nav-username {
    display: none;
}

.nav-container.collapsed .nav-hamburger-btn {
    display: block;
}

.nav-container:not(.collapsed) .nav-hamburger-btn {
    display: none;
}

.nav-hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #222222;
    font-size: 18px;
    cursor: pointer;
    padding: 0.5rem;
    margin-top: -0.8rem;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.nav-hamburger-btn:hover {
    background-color: #6810a391;
    color: #fff;
}

.nav-collapse-btn {
    background: none;
    border: none;
    color: #222222;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.nav-collapse-btn:hover {
    color: #fff;
    background-color: #6810a391;
}

.nav-hamburger-icon {
    display: inline-block;
}

/* Basic Elements */
.toolbelt-page-title {
    border-bottom: 1px solid #ccc;
    color: #2e2e2e;
    font-size: 18px;
    width: 100%;
    padding-top: .7rem;
    padding-bottom: .7rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.toolbelt-numbered-step {
    text-align: left;
    width: 100%;
    font-size: 14px;
    padding-left: 2rem;
    color: #2e2e2e;
    font-weight: 600;
}

.toolbelt-input {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 14px;
}

.toolbelt-button {
    border-radius: 10px;
    font-size: 14px;
    background-color: #36b1b9;
    border: none;
    color: #ffffff;
    padding-bottom: 6px;
    padding-top: 4px;
}

.toolbelt-button:hover {
    background-color: #3EBBC4;
    color: #fff;
}

.toolbelt-button:disabled {
    background-color: #999999;
    color: #ffffff;
}

.toolbelt-button:active {
    background-color: #349aa3 !important;
    color: #ffffff !important;
}

.toolbelt-edit-button {
    margin-left: 10px;
    padding: 2px 2px;
    display: inline-block;
    vertical-align: middle;
    background-color: #9a37db;
    border-color: #9a37db;
}

.toolbelt-edit-button:hover {
    background-color: #8e2ece;
    border-color: #8e2ece;
}

.toolbelt-edit-button:active {
    background-color: #8e2ece !important;
    border-color: #8e2ece !important;
}

.toolbelt-download-button {
    margin-left: 10px;
    padding: 2px 2px;
    display: inline-block;
    vertical-align: middle;
    background-color: #36b1b9;
    border-color: #36b1b9;
}

.toolbelt-download-button:hover {
    background-color: #239ca5;
    border-color: #239ca5;
}

.toolbelt-download-button:active {
    background-color: #239ca5 !important;
    border-color: #239ca5 !important;
}

.toolbelt-edit-notes-button {
    padding-top: 2px !important;
    padding-bottom: 3px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.toolbelt-copy-id-button {
    margin-left: 5px;
    padding: 0px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background-color: transparent;
    border: none;
}

.toolbelt-copy-id-button img {
    width: 20px;
    height: 20px;
}

.toolbelt-copy-id-button:hover {
    background-color: #e0e0e0;
    border: none;
}

.toolbelt-copy-id-button:active {
    background-color: #bdbdbd !important;
    border: none !important;
}

.toolbelt-calendar-icon {
    margin-left: 4px;
    padding: 3px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: default;
    opacity: 0.7;
}

.toolbelt-calendar-icon img {
    width: 18px;
    height: 18px;
}

/* Disabled date picker styling for inherited dates */
.ccp-modal-date-picker-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.ccp-modal-date-picker-disabled input {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

/* Reusable full height container for loading icons */
.full-height-container-for-loading {
    min-height: 100vh;
    height: 100vh;
}

/* Mission Control AG Grid container */
#mc-new-grid-container {
    margin-top: -17px;
    height: calc(100vh - 58px) !important; /* 120px - 16px margin = 104px */
}

#mc-new-grid-container .ag-root-wrapper {
    border-left: none;
}

/* Persistent cell focus - survives window blur/focus */
#mc-new-grid-container .mc-cell-persistent-focus {
    outline: 1px solid #2196f3 !important;
    outline-offset: -1px;
    background-color: rgba(33, 150, 243, 0.08) !important;
}

/* Search Landscape - Main Container */
.search-landscape-container {
    min-height: 100vh;
    height: 100vh;
}

/* Search Landscape - Left Column */
.search-landscape-left-column {
    display: flex;
    flex-direction: column;
    padding-right: 0px; 
}

.search-landscape-project-name-input {
    width: 25rem;
    margin-top: .5rem;
    margin-left: 3rem;
    margin-bottom: 1.5rem;
}

.search-landscape-radio {
    width: 100%;
    margin-top: 5px;
    text-align: left;
    margin-left: 3rem;
    margin-bottom: 1.5rem;
}

.search-landscape-radio-label {
    display: block;
    color: #2e2e2e;
    margin-left: 7px;
    margin-bottom: 3px;
    margin-right: 13px;
    font-size: 14px;
}

.search-landscape-radio-dollar-icon {
    height: 25px;
    margin-left: -15px;
    margin-bottom: 1px;
    vertical-align: middle;
}

/* Competitor Section */
.search-landscape-competitor-container {
    display: none;
    margin-top: 0px;
    margin-left: 20px;
}

.search-landscape-competitor-label {
    font-size: 13px;
    width: 170px;
    text-align: center;
    color: #2e2e2e;
    margin-bottom: 1px;
}

.search-landscape-competitor-textarea {
    height: 75px;
    width: 170px;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 13px;
    vertical-align: middle;
}

.search-landscape-competitor-validation {
    margin-left: 10px;
    font-size: 12px;
    color: red;
    height: 100%;
    white-space: pre-line;
}

/* Keyword Upload Section */
.search-landscape-keyword-upload-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-left: 3rem;
}

.ai-categorizer-project-name-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 7px;
    margin-left: 3rem;
    margin-bottom: 1.5rem;
}

.search-landscape-upload-box {
    border-width: 2px;
    border-style: dashed;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 75px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 13px;
}

.search-landscape-upload-browse-link {
    color: #007bff;
    cursor: pointer;
}

.search-landscape-or-separator {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 15px;
    color: #6c757d;
}

.search-landscape-keyword-textarea {
    height: 30px;
    width: 150px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
    padding: 3px 7px;
}

.search-landscape-keyword-dropdown {
    width: 275px;
    font-size: 13px;
    border-radius: 10px;
}

.search-landscape-keywords-uploaded-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    margin-left: 3rem;
    margin-bottom: 1.5rem;
}

.search-landscape-keywords-uploaded {
    font-size: 14px;
    color: #2e2e2e;
}

.search-landscape-save-keyword-list-button {
    margin-bottom: -2px;
    margin-left: 10px;
}

/* Location Section */
.search-landscape-location-container {
    display: flex;
    flex-direction: row;
    margin-left: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-landscape-location-dropdown {
    width: 325px;
    border-radius: 10px;
    font-size: 13px;
}

.search-landscape-location-link {
    color: #007bff;
    text-decoration: underline;
}

.search-landscape-location-help-text {
    margin-bottom: 3px;
    font-size: 13px;
    color: #2e2e2e;
}

.search-landscape-custom-location-textarea {
    width: 375px;
    height: 100px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 13px;
}

.search-landscape-custom-location-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Advanced Settings */
.search-landscape-advanced-container {
    display: none;
    width: calc(100% - 3rem);
    margin-left: 3rem;
}

.search-landscape-advanced-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 15px;
    padding: 5px 0;
}

.search-landscape-advanced-dropdown-wrapper {
    margin-bottom: 1rem;
}

.search-landscape-language-dropdown,
.search-landscape-device-dropdown,
.search-landscape-search-engine-dropdown {
    width: 260px;
    border-radius: 10px;
    font-size: 13px;
}

.search-landscape-go-button-and-advanced-settings-toggle-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 3rem;
}

.search-landscape-advanced-toggle {
    font-size: 13px;
    margin-bottom: -6px;
    margin-left: 20px;
}

.search-landscape-cost-estimate {
    margin-top: 15px;
    margin-left: 3rem;
    font-size: 13px;
    color: #2e2e2e;
    font-weight: 500;
}

/* Search Landscape - Right Column */
.search-landscape-right-column {
    background-color: #f3f3f3;
    padding-left: 0px;
}

.search-landscape-right-column-projects-list {
    list-style-type: none;
    padding-left: 1.7rem;
}

/* Modal */
.search-landscape-modal-keyword-input {
    margin-bottom: 20px;
    width: 80%;
}

.search-landscape-modal-keyword-list {
    max-height: 200px;
    width: 100%;
}

/* Toast Messages */
.search-landscape-toast {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 350px;
    z-index: 9999;
}

/* Project List Items */
.search-landscape-project-link {
    display: inline-block;
    font-size: 15px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-landscape-project-date {
    font-size: 14px;
    margin-left: 5px;
}

.search-landscape-project-delete-icon {
    height: 14px;
    display: block;
}

.search-landscape-project-delete-button {
    margin-left: 10px;
    padding: 2px 2px;
    display: inline-block;
    vertical-align: middle;
}

.search-landscape-project-ai-dropdown {
    width: 200px;
    margin-bottom: 20px;
    margin-top: 4px;
    font-size: 12px;
}

.login-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Media Control Panel */
.ccp-inline-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.ccp-add-subgroup-row {
    display: flex;
    align-items: center;
}

.ccp-input-300 {
    display: inline-block;
    width: 300px;
}

.ccp-input-100 {
    display: inline-block;
    width: 70px;
}

.ccp-button-20 {
    display: inline-block;
    width: 20%;
}

.ccp-collapse-toggle {
    margin-right: 5px;
    text-decoration: none;
    margin-bottom: 5px;
    margin-left: 20px;
}

.ccp-shared-budget-toggle {
    margin-left: 0;
    margin-right: 8px;
    padding: 0;
    vertical-align: middle;
}

.ccp-shared-budget-toggle-inline {
    margin-left: 0;
    margin-top: 4px;
    margin-right: 15px;
    padding: 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.ccp-unassigned-shared-budget-row {
    padding-left: 27px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    width: fit-content;
}

.ccp-unassigned-nested-campaign-row {
    padding-left: 110px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    width: fit-content;
    height: 36px;
}

.ccp-triangle-icon {
    height: 14px;
    vertical-align: middle;
}

.ccp-inline-center {
    display: flex;
    align-items: center;
}

.ccp-float-right {
    float: right;
}

.ccp-mr-5 {
    margin-right: 5px;
}

.ccp-platform-logo {
    height: 20px;
    width: 20px;
}

.ccp-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccp-budget-pill {
    width: 200px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 10px;
    background-color: #f5f5f5;
    position: relative;
    margin: 10px 0;
    overflow: visible;
}

.ccp-budget-pill-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.ccp-budget-pill-bar {
    position: absolute;
    width: 1px;
    background-color: #808080;
}

/* Blended time bar for mixed flight dates - uses dashed pattern */
.ccp-budget-pill-bar-blended {
    position: absolute;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #808080 0px,
        #808080 2px,
        transparent 2px,
        transparent 4px
    );
}

.ccp-error {
    color: red;
}

.ccp-w-100 {
    width: 100%;
}

.ccp-trash-button {
    border-radius: 5px;
    background-color: red;
    border-color: red;
    color: white;
    font-size: 1.2rem;
}

/* Subgroup table-like styling */
.ccp-subgroup-row {
    border: none;
    margin: 0;
    padding: 0;
    background-color: white;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


.ccp-subgroup-header {
    background-color: inherit;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #dee2e6;
}

.ccp-subgroup-header .ccp-campaign-name-container {
    display: flex;
    align-items: center;
}

.ccp-customer-header {
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #dee2e6;
}

.ccp-subgroup-body {
    background-color: inherit;
    margin-left: 0;
    margin-right: 0;
}

/* Unassigned campaigns styling */
.ccp-unassigned-container {
    background-color: #ffe6e6;
    padding: 6px 12px;
}

.ccp-unassigned-title {
    font-weight: bold;
    color: #d63384;
    margin-bottom: 10px;
    font-size: 14px;
    margin-left: 65px;
}

.ccp-unassigned-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    width: fit-content;
    margin-left: 65px;
}

.ccp-spend-text {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.ccp-text {
    font-size: 14px;
    margin-right: 5px;
}

.ccp-add-toggle-button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #5e5e5e;
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
    text-decoration: none;
}

.ccp-add-toggle-button:hover {
    color: #5e5e5e;
    background: #cecece;
}

.ccp-plus-icon {
    height: 14px;
    display: block;
}

.ccp-add-customer-row {
    padding-left: 35px;
}

.campaign-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding: 3px 0;
    height: 43px;
}

.campaign-spend-col {
    margin-left: -14px !important;
}

.campaign-assign-to-col {
    margin-left: -9px !important;
}

.campaign-notes-col {
    margin-left: -2px !important;
}

.ccp-campaign-name {
    margin-left: 15px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-campaign-spend {
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-campaign-cpc {
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-campaign-assign-to {
    width: 325px;
    font-size: 12px;
}

.ccp-modal-reassign-dropdown {
    width: 350px;
    font-size: 13px;
}

.ccp-modal-reassign-dropdown .Select-control {
    font-size: 13px;
}

.ccp-modal-reassign-dropdown .Select-input {
    font-size: 13px;
}

.ccp-modal-reassign-dropdown .Select-value {
    font-size: 13px;
}

.ccp-modal-reassign-dropdown .Select-menu-outer {
    font-size: 13px;
}

.ccp-modal-title {
    font-size: 20px;
    font-weight: 600;
}

.ccp-data-source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ccp-data-source-dropdown {
    width: 405px;
    font-size: 12px;
}

.ccp-data-source-delete-button {
    padding: 2px 2px;
    display: inline-block;
    vertical-align: middle;
}

.ccp-modal-data-source-dropdown {
    font-size: 12px;
    width: 200px;
}

.ccp-modal-body-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ccp-modal-dropdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Ensure toast notifications appear above all content */
.toast {
    z-index: 999999 !important;
}

.toast.show {
    z-index: 999999 !important;
}

.ccp-plus-text {
    display: block;
    margin-top: -2px
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.ccp-campaign-name-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Tags Modal */
.ccp-tag-key-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    width: 350px;
    padding-right: 10px;
}

.ccp-tag-add-key-row {
    display: flex;
    align-items: center;
    height: 50px;
    padding-left: 10px;
    padding-right: 10px;
    width: 350px;
    margin-bottom: 7px;
}

.ccp-tag-value-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    width: 350px;
    border-bottom: 1px solid #dee2e6;
    height: 40px;
    padding-left: 65px;
    padding-right: 10px;
}

.ccp-tag-add-value-row {
    display: flex;
    align-items: center;
    width: 350px;
    padding-left: 60px;
    border-bottom: 1px solid #dee2e6;
    height: 50px;
    padding-right: 10px;
}

.ccp-tag-modal-body-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ccp-tag-collapse-toggle {
    text-decoration: none;
    margin-bottom: 4px;
}

.modal-title {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modal-header {
    padding: 10px 20px;
}

.modal-body {
    padding-bottom: 0px;
    padding-top: 10px;
}

.edit-customer-modal-tags-dropdowns-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 220px;
    border-left: 1px solid #dee2e6;
    padding: 10px 0px;
    min-height: 100px;
}

.edit-customer-modal-tags-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 498px;
    justify-content: space-evenly;
}

.edit-customer-modal-tag-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ccp-modal-tags-dropdowns {
    width: 216px;
    font-size: 12px;
    padding-left: 30px;
}

.ccp-modal-tags-dropdown {
    width: 180px;
    font-size: 12px;
    margin-left: 5px;
}


.edit-customer-modal-add-tag-dropdown-div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-to-add-a-tag-text {
    font-size: 12px;
}

.ccp-modal-date-picker input {
    font-size: 12px !important;
    height: 28px !important;
    padding: 4px 8px !important;
    width: 100% !important;
}

.ccp-modal-date-picker .DateInput {
    width: 80px !important;
}

.ccp-modal-date-picker .DateInput__display-text {
    width: 100% !important;
}

.edit-customer-modal-tags-and-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manage-tags-text {
    width: 498px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    padding-bottom: 3px;
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ccp-modal-tags-dropdown-name {
    font-size: 11px;
    color: #2e2e2e;
}

.edit-customer-modal-delete-tag-button {
    margin-top: 15px !important;
}

.current-tags-text {
    width: 250px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
    margin-left: 30px;
}

/* Config Settings Styling */
.customer-modal-config-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.config-settings-content {
    display: flex;
    flex-direction: row;
    width: 498px;
    padding-top: 10px;
}

.config-settings-left-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.config-settings-right-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rollover-budgets-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.rollover-budgets-label {
    font-size: 12px;
}

.rollover-budgets-dropdown {
    font-size: 12px;
    width: 57px;
}

.rollover-proposed-spend-notes {
    margin-top: 10px;
    color: #666;
    font-size: 9px;
    white-space: pre-line;
}

.manage-platforms-text {
    width: 498px;
    text-align: center;
    padding-bottom: 3px;
    margin-top: 40px;
}

/* Monthly Budget Table Styling */
.monthly-budget-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.monthly-budget-table td {
    width: calc(100% / 12);
}

.monthly-budget-table td:not(:last-child) {
    border-right: 1px solid #dee2e6;
    padding-left: 3px;
    padding-right: 3px;
    height: 43px;
}

.budget-cell {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 100%;
}

.budget-cell-readonly {
    font-size: 14px;
    text-align: left;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.budget-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.budget-input-wrapper::before {
    content: '$';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #333;
    pointer-events: none;
    z-index: 1;
}

.budget-cell-input {
    font-size: 13px;
    width: 100%;
    padding-left: 13px !important;
    padding-right: 3px !important;
    text-align: center;
}

/* Year Selection Calendar Styles */
.year-selection-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    position: relative;
}

.calendar-month-td {
    position: relative;
    padding: 0;
    border: 1px solid #dee2e6;
    width: calc(100% / 36);
}

.calendar-month-cell {
    padding: 2px;
    text-align: center;
    font-size: 11px;
    transition: background-color 0.2s ease;
    background-color: #ffffff;
}

.calendar-year-cell {
    text-align: center;
    font-size: 12px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    margin-top: -1px;
}

.calendar-months-row {
    position: relative;
}

.calendar-container {
    position: relative;
    width: 950px;
}

.calendar-highlight-box {
    position: absolute;
    border: 2px solid #36b1b9;
    background-color: rgba(54, 177, 185, 0.1);
    pointer-events: auto;
    cursor: move;
    z-index: 10;
    border-radius: 4px;
    transition: all 0.1s ease;
    top: 0;
}

.calendar-and-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Segmented Buttons Styles */
/* Left button (Working) - Green when selected */
.segmented-button-left {
    background-color: #d4edda;
    color: #0d4e14;
    border: 1px solid #c3e6cb;
    border-radius: 20px 0 0 20px;
    padding: 4px 9px 4px 12px;
    font-size: 14px;
    font-weight: 500;
    border-right: none;
    cursor: pointer;
    box-shadow: inset 0 0 2px 1px rgba(13, 78, 20, 0.15);
    box-sizing: border-box;
}

.segmented-button-left:hover,
.segmented-button-left:active {
    background-color: #c3e6cb;
    color: #0a3d0f;
    border: 1px solid #c3e6cb;
    border-right: none;
}

.segmented-button-left.segmented-button-unselected {
    background-color: #f8f9fa;
    color: #adb5bd;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.segmented-button-left.segmented-button-unselected:hover,
.segmented-button-left.segmented-button-unselected:active {
    background-color: #e9ecef;
    color: #868e96;
    border: 1px solid #dee2e6;
    border-right: none;
}

/* Right button (Planned) - Gray when selected */
.segmented-button-right {
    background-color: #f8f9fa;
    color: #adb5bd;
    border: 1px solid #dee2e6;
    border-radius: 0 20px 20px 0;
    padding: 4px 12px 4px 9px;
    font-size: 14px;
    font-weight: 500;
    border-left: none;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
}

.segmented-button-right:hover,
.segmented-button-right:active {
    background-color: #e9ecef !important;
    color: #868e96 !important;
    border: 1px solid #dee2e6 !important;
    border-left: none !important;
}

.segmented-button-right.segmented-button-selected {
    background-color: #f5f5f5;
    color: #222222;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

.segmented-button-right.segmented-button-selected:hover,
.segmented-button-right.segmented-button-selected:active {
    background-color: #e9ecef !important;
    color: #222222 !important;
    border: 1px solid #dee2e6 !important;
    border-left: none !important;
}

.segmented-buttons-container {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 20px;
}

.refresh-budget-button {
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #ffffff;
    border-radius: 20px;
    padding: 4px 8px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.refresh-budget-button:hover,
.refresh-budget-button:active {
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6 !important;
}

/* ============================================
   AG Grid Customizations
   ============================================ */

/* Hide horizontal scroll buttons for pinned columns (left and right) */
.ag-pinned-left-horizontal-scroll,
.ag-pinned-right-horizontal-scroll,
.ag-horizontal-left-spacer,
.ag-horizontal-right-spacer {
    display: none !important;
}

/* Also hide the fake horizontal scroll containers for pinned areas */
.ag-body-horizontal-scroll .ag-horizontal-left-spacer,
.ag-body-horizontal-scroll .ag-horizontal-right-spacer {
    width: 0 !important;
    min-width: 0 !important;
}

/* Style year group headers */
.ag-header-group-cell {
    font-weight: 600 !important;
    font-size: 14px !important;
}

.ag-header-group-cell-label {
    justify-content: center !important;
}

/* Center all column headers (months, total) */
.ag-header-cell-label {
    justify-content: center !important;
}

/* Remove padding from header cell label container */
.ag-cell-label-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Center header text */
.ag-header-cell-text {
    text-align: center !important;
}

/* Hide default header cell resize separator */
.ag-header-cell-resize::after {
    display: none !important;
}

/* Add right border to month header cells to match budget cell separators */
.ag-header-cell[col-id*="_20"] {
    border-right: 1px solid #c0c0c0 !important;
}

/* Add right border to year group headers */
.ag-header-group-cell {
    border-right: 1px solid #c0c0c0 !important;
}

/* Add white right border to Total column header to hide */
.ag-header-cell[col-id="total"] {
    border-right: 1px solid #ffffff !important;
}

/* Add white right border to Actions column header to hide */
.ag-header-cell[col-id="actions"] {
    border-right: 1px solid #ffffff !important;
}

/* Highlight current month header with yellow background */
.ag-header-current-month {
    background-color: #fff3cd !important;
}

/* Editable cell hover effect */
.ag-cell[col-id]:not([col-id="ag-Grid-AutoColumn"]):not([col-id="total"]):hover {
    background-color: #e8f4f8 !important;
}

/* Cell being edited */
.ag-cell-inline-editing {
    background-color: #fff !important;
    border: 2px solid #36b1b9 !important;
    box-shadow: 0 0 5px rgba(54, 177, 185, 0.3) !important;
}

/* Input in edit mode */
.ag-cell-inline-editing input {
    text-align: center !important;
    font-size: 14px !important;
}

/* Action buttons container */
.ag-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

/* Action button base style */
.ag-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    padding: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ag-action-btn img {
    width: 14px;
    height: 14px;
    transition: all 0.15s ease;
}

/* Notes button - teal (matches toolbelt-download-button) */
.ag-notes-btn {
    background-color: #36b1b9;
}

.ag-notes-btn:hover {
    background-color: #239ca5;
}

/* Edit button - purple (matches toolbelt-edit-button) */
.ag-edit-btn {
    background-color: #9a37db;
}

.ag-edit-btn:hover {
    background-color: #8e2ece;
}

/* Delete button - red (Bootstrap danger) */
.ag-delete-btn {
    background-color: #dc3545;
}

.ag-delete-btn:hover {
    background-color: #bb2d3b;
}

/* Add Row Styles */
/* Fix vertical centering in AG Grid cells */
.ag-cell {
    display: flex !important;
    align-items: center !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Don't stretch cells that contain add row input - center vertically, remove padding */
.ag-cell:has(.ag-add-row-input-container) {
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Also remove padding from cell wrapper */
.ag-cell-wrapper:has(.ag-add-row-input-container) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Center budget cells (month columns) */
.ag-cell[col-id*="_20"] {
    justify-content: center !important;
    border-right: 1px solid #c0c0c0 !important;
    font-size: 13px !important;
}

/* Row dividers for budget cells - apply single border at row level only */
#mc-new-grid-container .ag-row {
    border-bottom: 1px solid #c0c0c0 !important;
    border-top: none !important;
}

/* Remove all borders and hide cells in add rows (Add SOW, Add Subgroup) - clean uninterrupted row */
#mc-new-grid-container .ag-row.ag-add-row .ag-cell {
    border: none !important;
    border-right: none !important;
    border-left: none !important;
}

#mc-new-grid-container .ag-row.ag-add-row .ag-cell[col-id*="_20"],
#mc-new-grid-container .ag-row.ag-add-row .ag-cell[col-id="total"],
#mc-new-grid-container .ag-row.ag-add-row .ag-cell[col-id="actions"] {
    visibility: hidden;
}

.ag-cell-wrapper {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

.ag-group-value {
    display: flex;
    align-items: center;
    margin-top: -1px;
}

.ag-add-row-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    margin-left: -28px;
    position: relative;
    z-index: 1;
}

/* Prevent add row text from being clipped */
.ag-row .ag-cell-wrapper {
    overflow: visible;
}

.ag-row .ag-group-value {
    overflow: visible;
}

/* Prevent cell from stretching add row input container and remove any blue styling */
.ag-cell .ag-add-row-input-container {
    align-self: center !important;
}

.ag-cell-wrapper .ag-add-row-input-container {
    align-self: center !important;
}

/* Remove any blue borders/shadows from cells containing add row input */
.ag-cell:has(.ag-add-row-input-container),
.ag-cell-wrapper:has(.ag-add-row-input-container),
.ag-cell .ag-add-row-input-container {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Prevent cell focus styling when it contains add row input */
.ag-cell:has(.ag-add-row-input-container).ag-cell-focus,
.ag-cell:has(.ag-add-row-input-container).mc-cell-persistent-focus,
.ag-cell .ag-add-row-input-container ~ * {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

/* More specific override for persistent focus on add row cells */
.ag-cell.mc-cell-persistent-focus:has(.ag-add-row-input-container) {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.ag-add-row-container:hover {
    background-color: #e8e8e8;
}

.ag-add-row-plus {
    color: #5e5e5e;
    font-size: 12px;
    line-height: 1;
    padding-bottom: 1px;
    margin-top: -2px;
}

.ag-add-row-label {
    color: #5e5e5e;
    font-size: 12px;
    line-height: 1;
}

/* Add row input container - override AG Grid cell stretching */
.ag-cell .ag-add-row-input-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: -10px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Add padding for subgroup inputs based on hierarchy level (28px per level) */
/* Level 2 = first subgroup under customer: 28px */
.ag-cell .ag-add-row-input-container[data-level="2"],
.ag-cell .ag-add-row-input-container.ag-add-row-level-2 {
    padding-left: 28px !important;
}

/* Level 3 = subgroup under level 2: 56px */
.ag-cell .ag-add-row-input-container[data-level="3"],
.ag-cell .ag-add-row-input-container.ag-add-row-level-3 {
    padding-left: 56px !important;
}

/* Level 4 = subgroup under level 3: 84px */
.ag-cell .ag-add-row-input-container[data-level="4"],
.ag-cell .ag-add-row-input-container.ag-add-row-level-4 {
    padding-left: 84px !important;
}

/* Level 5 = subgroup under level 4: 112px */
.ag-cell .ag-add-row-input-container[data-level="5"],
.ag-cell .ag-add-row-input-container.ag-add-row-level-5 {
    padding-left: 112px !important;
}

/* Level 6 = subgroup under level 5: 140px */
.ag-cell .ag-add-row-input-container[data-level="6"],
.ag-cell .ag-add-row-input-container.ag-add-row-level-6 {
    padding-left: 140px !important;
}

/* Add row input - gray border, smaller text, fixed height */
.ag-cell .ag-add-row-input-container .ag-add-row-input,
.ag-add-row-input-container .ag-add-row-input,
.ag-add-row-input {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    width: 200px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    line-height: 1.2 !important;
    outline: none !important;
    background-color: white !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.ag-cell .ag-add-row-input-container .ag-add-row-input:focus,
.ag-add-row-input-container .ag-add-row-input:focus,
.ag-add-row-input:focus {
    border-color: #bbb !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Add row submit button - small compact size */
.ag-cell .ag-add-row-input-container .ag-add-row-submit,
.ag-add-row-input-container .ag-add-row-submit,
.ag-add-row-submit {
    background: #36b1b9 !important;
    border: none !important;
    border-radius: 3px !important;
    color: white !important;
    padding: 0 !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    cursor: pointer !important;
    font-size: 10px !important;
    font-weight: bold !important;
    transition: background-color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ag-cell .ag-add-row-input-container .ag-add-row-submit:hover,
.ag-add-row-input-container .ag-add-row-submit:hover,
.ag-add-row-submit:hover {
    background: #239ca5 !important;
}

/* Total Cell Renderer Styles */
.ag-total-cell-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.ag-total-value {
    text-align: center;
}

/* Budget Mismatch Alert Icon */
.ag-mismatch-alert-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: help;
    margin-bottom: -1px;
}

/* Name column with icons */
.ag-name-with-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Rollover Icon */
.ag-rollover-icon {
    width: auto;
    height: 13px;
    flex-shrink: 0;
    margin-bottom: -1px;
}

/* Name with alerts container - ensures icons stay visible on the right */
.ag-name-with-alerts {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0; /* Allow text to shrink */
    overflow: hidden;
}

/* Name text - truncates when too long, leaves room for icons */
.ag-name-text {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    margin-top: -1px;
}

/* Icons container - stays on the right, never shrinks */
.ag-name-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: 6px;
    padding-right: 2px;
}

/* Alert icons (mismatch and actualization) */
.ag-alert-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: help;
    margin-bottom: -1px;
    margin-left: 2px;
}

/* Calendar icon for custom dates in AG Grid */
.ag-calendar-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: help;
    margin-bottom: -1px;
    margin-left: 2px;
    opacity: 0.7;
}

/* Last month cell - value with optional checkmark button */
.ag-last-month-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ag-last-month-value {
    white-space: nowrap;
}

.ag-actualize-check-btn {
    position: absolute;
    top: 0px;
    right: -16px;
    width: 10px;
    height: 11px;
    border: none;
    border-radius: 2px;
    background-color: #4caf50;
    color: white;
    font-size: 7px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background-color 0.15s ease;
    z-index: 1;
}

.ag-actualize-check-btn:hover {
    background-color: #388e3c;
}

/* Hide checkmark button when cell is actualized (class applied via cellClassRules) */
.ag-cell-last-month-actualized .ag-actualize-check-btn {
    display: none !important;
}

/* Hide alert icons in name column when no actualization issues (class applied via cellClassRules) */
.ag-name-no-actualization-issue .ag-alert-icon {
    display: none !important;
}

/* Hide rollover icon in name column when rollover is not enabled (class applied via cellClassRules) */
.ag-name-no-rollover .ag-rollover-icon {
    display: none !important;
}

/* Hide calendar icon in name column when no custom dates set (class applied via cellClassRules) */
.ag-name-no-custom-dates .ag-calendar-icon {
    display: none !important;
}

/* Name column actualization alert backgrounds */
.ag-name-actualization-yellow {
    background-color: #fffde7 !important; /* Very light yellow */
}

.ag-name-actualization-red {
    background-color: #ffebee !important; /* Light red */
}

/* Budget cell dynamic classes */
.ag-cell-actualized {
    background-color: #e3efe5 !important; /* Medium green for actualized cells */
}

.ag-cell-editable-budget {
    background-color: #f8f9fa !important;
}

/* Proposed spend yellow - must come after editable-budget to override it */
.ag-cell-proposed-spend {
    background-color: #fffde7 !important; /* Very light yellow for proposed spend */
}

/* Needs actualization red - applies to past months that haven't been actualized */
.ag-cell-needs-actualization {
    background-color: #ffebee !important; /* Light red matching name column actualization-red */
}

/* Proposed spend cell rendered as clickable button */
.ag-proposed-spend-cell-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.ag-proposed-spend-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background-color: transparent;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.ag-proposed-spend-cell:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darken the background on hover */
}

/* Disabled cells - before earliest planned month */
.ag-cell-disabled-before-earliest {
    background-color: #f5f5f5 !important;
    color: #999999 !important;
    cursor: not-allowed !important;
}

/* Dropdown options - ellipsis for long text (Dash dcc.Dropdown) */
.VirtualizedSelectOption,
.VirtualizedSelectFocusedOption,
div[class*="option"],
div[class*="-option"] {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
}

/* React-Select v2+ class names */
[class*="__option"] {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
}

[class*="__single-value"],
[class*="__placeholder"] {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Legacy Select class names */
.Select-menu-outer .Select-option,
.Select-value-label,
.Select-placeholder {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
