/* Argenta Design Tokens */
:root {
    --color-body: #27282A;
    --color-primary: #00A1BE;
    --color-secondary: #00CC78;
    --color-tertiary: #FF4A11;
    --color-rfv: #FF4A11;
    --color-icons: #FF4A11;
    --font-primary: muli, sans-serif;
    --font-secondary: circle-rounded, sans-serif;
    --font-headings: gotham, sans-serif;
    --font-subheadings: muli, sans-serif;
    --font-titles: gotham, sans-serif;
    --font-controls: normal 1em muli, sans-serif;
    --font-buttons: muli, sans-serif;
    --font-links: muli, sans-serif;
    --color-links: #FF4A11;
    --color-links-hover: #00CC78;
    --color-buttons: #00A1BE;
    --color-buttons-hover: #038CA5;
    --color-buttons-text: #FFF;
    --color-buttons-text-hover: #FFF;
}

/* Form labels — dark gray, overrides inline style="#6c757d" */
.form-label.fw-bold { color: #464646 !important; }

/* Buttons — always teal with white text (exclude specialized button classes) */
:not(.notification-window-footer) > .btn:not(.btn-link):not(.btn-date-range):not(.btn-date-clear):not(.btn-cancel):not(.btn-view-all):not(.btn-green) {
    background-color: var(--color-buttons) !important;
    border-color: var(--color-buttons) !important;
    color: var(--color-buttons-text) !important;
    font-family: var(--font-buttons);
    white-space: nowrap;
}

:not(.notification-window-footer) > .btn:not(.btn-link):not(.btn-date-range):not(.btn-date-clear):not(.btn-cancel):not(.btn-view-all):hover {
    background-color: var(--color-buttons-hover) !important;
    border-color: var(--color-buttons-hover) !important;
    color: var(--color-buttons-text-hover) !important;
}

/* btn-green — green action button */
.btn.btn-green { background-color: #00CC78 !important; border-color: #00CC78 !important; color: #FFF !important; }
.btn.btn-green:hover { background-color: #00b56b !important; border-color: #00b56b !important; }

/* btn-view-all — teal button for "View All" actions */
.btn.btn-view-all {
    background-color: #00A1BE !important;
    border-color: #00A1BE !important;
    color: #FFF !important;
}
.btn.btn-view-all:hover {
    background-color: #008da6 !important;
    border-color: #008da6 !important;
    color: #FFF !important;
}

/* btn-info — Argenta teal (used for all action buttons except bottom save/exit) */
.btn.btn-info {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}
.btn.btn-info:hover {
    background-color: var(--color-buttons-hover) !important;
    border-color: var(--color-buttons-hover) !important;
    color: #fff !important;
}
.btn-outline-info {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    background-color: transparent !important;
}
.btn-outline-info:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}

/* Date range preset buttons — orange with white text */
.btn-date-range {
    background-color: #FF4A11 !important;
    border: 1px solid #FF4A11 !important;
    color: #FFF !important;
    flex: 1;
}
.btn-date-range:hover {
    background-color: #E0400E !important;
    border-color: #E0400E !important;
    color: #fff !important;
}

/* Date filter clear button — #464646 background */
.btn.btn-date-clear {
    background-color: #464646 !important;
    border-color: #464646 !important;
    color: #fff !important;
}
.btn.btn-date-clear:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* Cancel/secondary buttons — dark gray with white text */
.btn.btn-cancel {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn.btn-cancel:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
    color: #fff !important;
}

.btn-xs {
    padding: .1rem .4rem;
    font-size: .75rem;
    line-height: 1.4;
}

.btn.btn-date-range {
    background-color: #FF4A11 !important;
    border-color: #FF4A11 !important;
    color: #FFF !important;
    padding: .1rem .4rem !important;
    font-size: .75rem !important;
    flex: 0 0 auto !important;
}

.btn.btn-date-range:hover {
    background-color: #E0400E !important;
    border-color: #E0400E !important;
    color: #FFF !important;
}

/* Connected date range — two pickers sharing one border */
.date-range-connected {
    display: flex;
    align-items: center;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    background: #fff;
}

.date-range-connected .dtp-wrapper {
    flex: 1;
    min-width: 0;
}

.date-range-connected .dtp-display {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.date-range-connected .dtp-display:focus {
    box-shadow: none !important;
    border: none !important;
}

.date-range-connected .dtp-wrapper:first-child .dtp-display {
    border-radius: .375rem 0 0 .375rem !important;
}

.date-range-connected .dtp-wrapper:last-child .dtp-display {
    border-radius: 0 .375rem .375rem 0 !important;
}

.date-range-sep {
    color: #00A1BE;
    font-size: .8rem;
    font-weight: 700;
    padding: 0 .25rem;
    flex-shrink: 0;
}

/* Card headers — always gray, never blue */
.card-header {
    background-color: #F8F9FA;
}

/* Base Typography */
html, body {
    font-family: var(--font-primary);
    color: var(--color-body);
    margin: 0;
    padding: 0;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-body);
}

a {
    color: var(--color-links);
    text-decoration: underline;
}

a:hover {
    color: var(--color-links-hover);
}

/* Form Controls — always white background */
.form-control,
.form-select,
textarea {
    background-color: #FFF !important;
}

/* Override browser autofill blue/yellow tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FFF inset !important;
    box-shadow: 0 0 0 1000px #FFF inset !important;
    background-color: #FFF !important;
}

/* Form Controls — Argenta teal focus */
.form-select:focus,
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(0,161,190,.15);
}


/* Form Switches — Argenta teal, no Bootstrap blue */
.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(0,161,190,.25);
}
.form-check-input:checked:focus {
    box-shadow: 0 0 0 .2rem rgba(0,161,190,.25);
}
.form-check-input:active {
    filter: none;
    background-color: rgba(0,161,190,.25);
    border-color: var(--color-primary);
}
.form-check-input:checked:active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.form-switch .form-check-input:focus:not(:checked) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280,161,190,0.5%29'/%3e%3c/svg%3e");
}

/* Custom Argenta Select Dropdown */
.argenta-select {
    position: relative;
}

.argenta-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .375rem .75rem;
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-body);
    cursor: pointer;
    transition: border-color 0.15s;
}

.argenta-select-btn:hover {
    border-color: var(--color-primary);
}

.argenta-select-btn:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(0,161,190,.15);
    outline: none;
}

.argenta-select-btn i,
.argenta-select-btn svg {
    font-size: .7rem;
    color: #999;
    margin-left: .5rem;
}

.argenta-select-btn {
    white-space: nowrap;
}

.argenta-select-list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    margin: .25rem 0 0;
    padding: .25rem 0;
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.1);
    list-style: none;
    white-space: nowrap;
    min-width: 100%;
    width: auto;
    max-height: 250px;
    overflow-y: auto;
}

.argenta-select-list li {
    padding: .4rem .75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-body);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.argenta-select-list li:hover {
    background: var(--color-primary);
    color: #FFF;
}

.argenta-select-list li.selected {
    background: rgba(0,161,190,.1);
    color: var(--color-primary);
    font-weight: 600;
}

.argenta-select-list li.selected:hover {
    background: var(--color-primary);
    color: #FFF;
}

.argenta-select-list li.argenta-select-separator {
    font-weight: 700;
    color: #6c757d;
    font-size: .85rem;
    padding: .5rem .75rem .25rem;
    cursor: default;
    border-top: 1px solid #DEE2E6;
    margin-top: .25rem;
}

.argenta-select-list li.argenta-select-separator:hover {
    background: transparent;
    color: #6c757d;
}

/* ClassCode dropdown — scrollable */
.classcode-list {
    max-height: 250px;
    overflow-y: auto;
}

/* Dropup variant — opens above the button */
.argenta-select-dropup .argenta-select-list {
    top: auto;
    bottom: 100%;
    margin-bottom: 2px;
}

/* Multi-select variant */
.argenta-select-multi .argenta-select-list {
    max-height: 250px;
    overflow-y: auto;
}

.argenta-select-multi .argenta-select-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    user-select: none;
}

.argenta-select-multi .argenta-select-list li .check-icon {
    width: 1rem;
    text-align: center;
    color: var(--color-primary);
    font-size: .8rem;
    flex-shrink: 0;
}

.argenta-select-multi .argenta-select-list li:hover .check-icon {
    color: #FFF;
}

.argenta-select-btn .filter-count {
    background: var(--color-primary);
    color: #FFF;
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 1rem;
    margin-left: .4rem;
}

/* Blazor Infrastructure */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ========== Dashboard Components ========== */

/* Info Box - KPI metric cards */
.info-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dee2e6;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.04);
    transition: box-shadow 0.15s;
}

.info-box:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08);
}

.info-box--teal  { border-left-color: #00A1BE; }
.info-box--green { border-left-color: #00CC78; }
.info-box--orange { border-left-color: #FF4A11; }
.info-box--blue  { border-left-color: #4682B4; }
.info-box--purple { border-left-color: #9370DB; }
.info-box--red   { border-left-color: #CD5C5C; }

.info-box-icon {
    font-size: 1.6rem;
    width: 2.5rem;
    text-align: center;
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.info-box--teal  .info-box-icon { color: #00A1BE; }
.info-box--green .info-box-icon { color: #00CC78; }
.info-box--orange .info-box-icon { color: #FF4A11; }
.info-box--blue  .info-box-icon { color: #4682B4; }
.info-box--purple .info-box-icon { color: #9370DB; }
.info-box--red   .info-box-icon { color: #CD5C5C; }

.info-box-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-box-label {
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-box-value {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-headings);
    color: var(--color-body);
}

.info-box--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1199.98px) {
    .info-box--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .info-box--grid {
        grid-template-columns: 1fr;
    }
}

/* WebForms-style info boxes (indicator bar + content + icon) */
.info-box-wf {
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
    border-radius: 0.25rem;
    background: #FFF;
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
}

.info-box-wf:hover {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.info-box-wf .indicator {
    width: 5px;
    height: 60px;
    margin-right: 10px;
    border-radius: 5px;
    flex-shrink: 0;
}

.info-box-wf .info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 120%;
    flex: 1;
    padding: 0 10px;
    color: #464646;
}

.info-box-wf .info-box-number {
    display: block;
    margin-top: .25rem;
    font-weight: 700;
    color: #464646;
    font-size: 120%;
}

.info-box-wf .info-box-icon {
    border-radius: 0.25rem;
    align-items: center;
    display: flex;
    font-size: 1.875rem;
    justify-content: center;
    text-align: center;
    width: 70px;
    flex-shrink: 0;
}

/* Event Workspace nav */
.event-ws-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .5rem;
    padding: .5rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}
.event-ws-nav-label {
    font-size: .7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .5rem;
    white-space: nowrap;
    align-self: center;
}
.event-ws-nav-item {
    text-decoration: none;
    color: #555;
    font-size: .85rem;
    padding: .2rem .5rem;
    white-space: nowrap;
    cursor: default;
}
a.event-ws-nav-item {
    cursor: pointer;
}
a.event-ws-nav-item:hover {
    color: var(--color-primary);
}
.event-ws-nav-item.active {
    border: 2px solid var(--color-primary);
    border-radius: .25rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Christine Panel info boxes */
.christine-quick-links a {
    text-decoration: none;
}

/* Dashboard title bar quick links */
.dashboard-ql {
    font-size: 1.15rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.dashboard-ql:hover {
    opacity: 1;
}

.dashboard-quick-links {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 0 12px;
}

.christine-panel .info-box {
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
    border-radius: 0.25rem;
    background: #fff;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
    border-left: none;
}

.christine-panel .info-box .info-box-icon {
    border-radius: 0.25rem;
    align-items: center;
    display: flex;
    font-size: 1.875rem;
    justify-content: center;
    text-align: center;
    width: 70px;
    min-height: 60px;
    margin-right: 0;
    padding: 10px;
}

.christine-panel .info-box .info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 120%;
    flex: 1;
    padding: 0 10px;
    color: #464646;
}

.christine-panel .info-box .info-box-number {
    display: block;
    margin-top: .25rem;
    font-weight: 700;
    color: #464646;
    font-size: inherit;
    font-family: inherit;
}

.christine-panel .info-box .info-box-text {
    font-size: inherit;
    color: #464646;
    text-transform: none;
    letter-spacing: normal;
}

.christine-panel .info-box:hover {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.fgc-dashboard .info-box {
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
    border-radius: 0.25rem;
    background: #fff;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
    border-left: none;
}

.fgc-dashboard .info-box .info-box-icon {
    border-radius: 0.25rem;
    align-items: center;
    display: flex;
    font-size: 1.875rem;
    justify-content: center;
    text-align: center;
    width: 70px;
    min-height: 60px;
    margin-right: 0;
    padding: 10px;
}

.fgc-dashboard .info-box .info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 120%;
    flex: 1;
    padding: 0 10px;
    color: #464646;
}

.fgc-dashboard .info-box .info-box-number {
    display: block;
    margin-top: .25rem;
    font-weight: 700;
    color: #464646;
    font-size: inherit;
}

.fgc-dashboard .info-box .info-box-text {
    font-size: inherit;
    color: #464646;
    text-transform: none;
    letter-spacing: normal;
}

.fgc-dashboard .info-box:hover {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.a-no-underline, .a-no-underline:hover {
    text-decoration: none;
    color: inherit;
}

.elevation-1 { box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24) !important; }

.white { color: #fff !important; }

/* Constituent count boxes */
.constituent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.constituent-box {
    text-align: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.85rem 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.04);
}

.constituent-count {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--color-primary);
}

.constituent-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

@media (max-width: 991.98px) {
    .constituent-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .constituent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Metrics section */
.metrics-section {
    background: transparent;
}

.metrics-title {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--color-body);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.metrics-title i {
    color: var(--color-primary);
    margin-right: 0.35rem;
}

/* Quick Tasks */
.quick-task-row {
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.quick-task-row:last-child {
    border-bottom: none;
}

.quick-task-row input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.completed-task {
    opacity: 0.6;
}

.quick-task-input {
    resize: none;
    overflow: hidden;
    min-height: 1.8rem;
    line-height: 1.4;
}

.no-counters + .ata-counters {
    display: none;
}

.ata-wrapper:has(.no-counters) .ata-counters {
    display: none;
}

/* Quick Notes */
.quick-notes-textarea {
    resize: vertical;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    min-height: 200px;
}

.quick-notes-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,161,190,0.15);
}

/* Message Cards */
.message-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #dee2e6;
}

.message-card .card-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.message-card .card-body {
    padding: 1rem;
}

.message-card--user { border-left-color: #00CC78; }
.message-card--devscape { border-left-color: #FF4A11; }
.message-card--team { border-left-color: #00CC78; }

/* Action Boxes - "What Would You Like To Do" */
.action-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--color-body);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.action-box:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0.125rem 0.5rem rgba(0,161,190,0.12);
}

.action-box i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.action-box span {
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 575.98px) {
    .action-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Page Title Bar — standard across all paywall pages */
.page-title {
    margin-top: 0rem;
    margin-bottom: 1rem;
    padding: 1rem;
    font-family: var(--font-headings);
    font-size: 140%;
    color: #27282A;
    background-color: #FFF;
    border: 1px solid #DEE2E6 !important;
    border-radius: .375em;
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
}

.page-title i {
    color: var(--color-primary);
    margin-right: .25em;
}

.page-title a {
    text-decoration: none !important;
}

.page-title a:last-of-type {
    margin-right: 0 !important;
}

/* ========== Paywall Layout (Header + Main) ========== */

.paywall-header {
    position: fixed;
    top: .25em;
    left: .5em;
    right: .5em;
    height: 6em;
    z-index: 5000;
    border: 1px solid #DEE2E6;
    border-radius: .375em;
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
    padding: .5em;
    background: #FFF;
    overflow: visible;
}

.paywall-header ul {
    font-family: var(--font-headings);
    color: #27282A;
    text-decoration: none;
}

.paywall-header a,
.header-link {
    font-family: var(--font-headings);
    color: #27282A;
    text-decoration: none;
    font-size: .9em;
}

.paywall-header a:hover,
.header-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

@media (max-width: 870px) {
    .paywall-header {
        height: auto;
        padding-bottom: .25em;
    }
    .paywall-header > .row {
        flex-wrap: wrap;
    }
    .paywall-header .header-links-row {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
        margin-top: .25em !important;
        margin-bottom: 0 !important;
    }
    .paywall-header .header-links-row .float-md-end {
        float: none !important;
    }
}

.teal {
    color: #00A1BE !important;
}

.paywall-main {
    position: fixed;
    top: calc(.25em + 6em + .75em);
    left: 19.5em;
    right: .5em;
    bottom: .25em;
    overflow-y: auto;
    padding-bottom: 500px;
    padding-right: 1rem;
    padding-left: .5rem;
    transition: left 0.2s ease;
    background: #FFF;
}

.paywall-main.modal-open {
    z-index: 999999;
}


.paywall-main.sidebar-collapsed {
    left: 5.5em;
}

.sidebar-mobile-toggle {
    cursor: pointer;
    position: fixed;
    top: 6.75em;
    left: .75em;
    z-index: 998;
    padding: .4em .6em;
    color: #464646;
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.08);
}

.sidebar-mobile-toggle:hover {
    color: #000;
    background: #F8F9FA;
}

@media (min-width: 1280px) {
    .sidebar-mobile-toggle {
        display: none !important;
    }
}

.settings-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .375em;
    box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
    padding: .5em 0;
    z-index: 6000;
    min-width: 220px;
}

.settings-dropdown .nav-item a {
    font-family: var(--font-headings);
    color: #27282A;
    text-decoration: none;
    display: block;
    padding: .4em 1em;
    font-size: .9em;
}

.settings-dropdown .nav-item a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.settings-dropdown .nav-item a i {
    color: #27282A;
}

@media (max-width: 1279.98px) {
    .paywall-main {
        position: absolute;
        top: 8em;
        left: 0;
        right: 0;
        width: auto;
        margin: 0 .25em;
        padding: 0 .5em;
        border: 1px solid #DEE2E6;
        border-radius: .375em;
        box-shadow: 0 .125rem .25em rgba(0,0,0,.075);
        background: #FFF;
        overflow-y: auto;
        transition: none;
    }
}

/* ========== Sidebar Navigation ========== */

.paywall-sidebar {
    width: 18em;
    background: #FFF;
    color: var(--color-body);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    overflow: hidden;
    position: fixed;
    top: calc(.25em + 6em + .75em);
    left: 0;
    bottom: .25em;
    z-index: 1000;
    border-right: 1px solid #DEE2E6;
    font-family: var(--font-primary);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.paywall-sidebar:hover {
    scrollbar-color: rgba(0,0,0,.2) transparent;
}

.paywall-sidebar::-webkit-scrollbar { width: 6px; }
.paywall-sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.paywall-sidebar:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); }
.paywall-sidebar::-webkit-scrollbar-track { background: transparent; }

.paywall-sidebar.collapsed { width: 4em; }

.paywall-sidebar.collapsed .brand-text,
.paywall-sidebar.collapsed .sidebar-search-wrap,
.paywall-sidebar.collapsed .nav-link span,
.paywall-sidebar.collapsed .nav-header span,
.paywall-sidebar.collapsed .nav-submenu,
.paywall-sidebar.collapsed .chevron {
    display: none;
}

.paywall-sidebar.collapsed .nav-link,
.paywall-sidebar.collapsed .nav-header {
    justify-content: center;
    padding: .6em 0;
}

.paywall-sidebar.collapsed .nav-link i:first-child,
.paywall-sidebar.collapsed .nav-header i:first-child {
    margin-right: 0;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75em 1em;
    border-top: 1px solid #EEE;
    color: #CCC;
    font-size: .85em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    gap: .5em;
}

.sidebar-toggle:hover {
    background: #F5F5F5;
    color: #00A1BE;
}

.paywall-sidebar.collapsed .sidebar-toggle .nav-text {
    display: none;
}

.paywall-sidebar.collapsed .sidebar-toggle {
    justify-content: center;
}

.sidebar-brand {
    display: none;
}

.sidebar-search-wrap {
    padding: .75em;
    border-bottom: 1px solid #EEE;
    flex-shrink: 0;
}

.sidebar-search {
    width: 100%;
    padding: .45em .75em .45em 2.25em;
    border: 1px solid #DEE2E6;
    border-radius: .375em;
    font-family: var(--font-primary);
    font-size: .85em;
    color: var(--color-body);
    background: #F5F5F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2327282A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat .75em center;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sidebar-search::placeholder {
    color: #CCC;
    font-weight: 400;
}

.sidebar-search:focus {
    border-color: var(--color-primary);
    background-color: #FFF;
    box-shadow: none;
}

.sidebar-menu {
    flex: 1 1 auto;
    padding: .5em 0;
    float: none;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-menu .nav-item {
    margin: 0;
    padding: 0;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .6em 1em;
    color: var(--color-body);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: .9em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu .nav-link:hover {
    background: #F5F5F5;
    color: var(--color-primary);
    text-decoration: none;
}

.sidebar-menu .nav-link.active {
    border-left: 3px solid var(--color-primary);
    background: rgba(0,161,190,.06);
    color: var(--color-primary);
    font-weight: 700;
}

.sidebar-menu .nav-link i:first-child {
    width: 1.5em;
    min-width: 1.5em;
    text-align: center;
    margin-right: .75em;
    font-size: 1em;
    color: #00A1BE;
    flex-shrink: 0;
}

.sidebar-menu .nav-link:hover i:first-child,
.sidebar-menu .nav-link.active i:first-child {
    color: var(--color-primary);
}

.nav-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .6em 1em;
    color: var(--color-body);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: .9em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    user-select: none;
}

.nav-header:hover {
    background: #F5F5F5;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-header:hover i:first-child {
    color: var(--color-primary);
}

.nav-header i:first-child {
    width: 1.5em;
    min-width: 1.5em;
    text-align: center;
    margin-right: .75em;
    font-size: 1em;
    color: #00A1BE;
    flex-shrink: 0;
}

.chevron {
    margin-left: auto;
    font-size: .7em;
    color: #CCC;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.chevron.expanded {
    transform: rotate(90deg);
}

.nav-submenu {
    list-style: none;
    padding: 0 0 .25em 0;
    margin: 0;
    display: none;
}

.nav-submenu.show {
    display: block;
}

.nav-submenu li a {
    display: block;
    width: 100%;
    padding: .4em 1em .4em 3.25em;
    color: #646464;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: .84em;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-submenu li a:hover {
    background: #F5F5F5;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-submenu li a.active {
    border-left: 3px solid var(--color-primary);
    background: rgba(0,161,190,.06);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-submenu .nav-section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    padding: .5rem 1rem .15rem 1rem;
    margin-top: .35rem;
    border-top: 1px solid #EEE;
    list-style: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
}

.sidebar-backdrop.active {
    display: block;
}

@media (max-width: 1279.98px) {
    .paywall-sidebar {
        position: fixed;
        top: 0;
        left: -18em;
        bottom: 0;
        width: 18em;
        z-index: 10000;
        border-right: 1px solid #DEE2E6;
        box-shadow: 2px 0 8px rgba(0,0,0,.15);
        transition: left 0.3s ease;
    }

    .paywall-sidebar.mobile-open {
        left: 0;
    }

    .sidebar-toggle {
        display: none;
    }
}

/* ========== Grid Utilities ========== */

.grid-title {
    display: block;
    margin: 0;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #27282A;
}

.grid-label {
    display: block;
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #27282A;
}

.font-120 { font-size: 120%; }
.font-90 { font-size: 90%; }
.green { color: #00CC78 !important; }
.orange { color: #FF4A11 !important; }
.red { color: #CC3333 !important; }
.pink { color: #D8237C !important; }
.gold { color: #FFCC33 !important; }
.purple { color: #9B659B !important; }
.gray { color: #646464 !important; }
.brown { color: #4A3C3B !important; }
.dark { color: #27282A; }

.a-no-underline { text-decoration: none !important; }
.a-no-underline:hover { text-decoration: none !important; }

.btn-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.border-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .5rem;
    gap: .5rem;
}

/* ========== Grid Search ========== */

.grid-search-wrap {
    position: relative;
    width: 350px;
}

.grid-search {
    width: 100%;
    padding: .5rem .75rem .5rem 2.25rem;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    font-family: var(--font-primary);
    font-size: .9rem;
    color: var(--color-body);
    background: #FFF;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grid-search::placeholder {
    color: #B0B0B0;
    font-weight: 400;
}

.grid-search:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(0,161,190,.12);
}

.grid-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #B0B0B0;
    font-size: .9rem;
    pointer-events: none;
}

.grid-search-clear {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: .15rem .35rem;
    cursor: pointer;
    color: #999;
    font-size: .9rem;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.grid-search-clear:hover {
    color: #D8237C;
    background: rgba(216,35,124,.08);
}

/* ========== FilteredGrid — Generic Reusable Grid ========== */

.filtered-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.filtered-grid thead {
    display: none;
}

.filtered-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.filtered-grid tbody tr {
    background: #FFF;
}

.filtered-grid a {
    color: #000;
    text-decoration: none;
}

.filtered-grid a:hover {
    color: var(--color-tertiary);
}

.filtered-grid .col-action {
    width: 60px;
}

/* ========== Grid Filter Panel ========== */

.grid-filter-panel {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    background: #FFF;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
}

.grid-filter-header {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    font-family: var(--font-headings);
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-body);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.grid-filter-header:hover {
    background: #F8F9FA;
}

.grid-filter-header i.fa-filter {
    color: var(--color-primary);
}

.grid-filter-chevron {
    font-size: 1.1rem;
    color: #FF4A11;
    font-weight: 900;
    margin-left: .75rem;
    transition: transform 0.2s ease;
}

.grid-filter-chevron.expanded {
    transform: rotate(180deg);
}

/* ── Saved Filter Dropdown (matches WebForms FilterControl) ── */

.saved-filter-wrap {
    position: relative;
}

.saved-filter-trigger {
    text-decoration: none !important;
    line-height: 1;
}

.saved-filter-trigger i {
    color: var(--color-primary) !important;
}

.saved-filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    min-width: max-content;
    background: #FFF;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    padding: .5rem 0;
    margin-top: .25rem;
}

.saved-filter-item {
    display: block;
    padding: .25rem 1rem;
    font-size: 1rem;
    color: #212529;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.saved-filter-item.save-new:hover,
.saved-filter-item.save-new:focus,
.saved-filter-item.save-new:active {
    background-color: transparent !important;
    color: inherit !important;
}

.saved-filter-item.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 12px;
}

.saved-filter-item.filter-item:hover,
.saved-filter-item.filter-item:focus {
    background-color: var(--color-primary) !important;
    color: white !important;
}

.saved-filter-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-filter-delete {
    color: #CC3333;
    cursor: pointer;
    margin-left: 20px;
    font-size: .85rem;
    transition: opacity 0.15s;
}

.saved-filter-item.filter-item:hover .saved-filter-delete {
    color: white;
}

.saved-filter-divider {
    height: 0;
    margin: .5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,.15);
}

.saved-filter-header {
    padding: .5rem 1rem .25rem;
    font-size: .75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .025em;
}

/* ── Save Filter Modal (Bootstrap-style) ───────────────────── */

.saved-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-filter-modal {
    background: #FFF;
    border-radius: .5rem;
    box-shadow: 0 .5rem 2rem rgba(0,0,0,.2);
    width: 500px;
    max-width: 90vw;
}

.saved-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #DEE2E6;
}

.saved-filter-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.saved-filter-modal-body {
    padding: 1rem;
}

.saved-filter-modal-footer {
    padding: .75rem 1rem;
    border-top: 1px solid #DEE2E6;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.grid-filter-body {
    display: none;
}

.grid-filter-body.show {
    display: block;
    padding: .75rem 1rem 1rem;
}

/* ========== Grid Filter Bar ========== */

.grid-filter-bar {
    /* Generic wrapper for status/sort bar — no specific styles needed beyond layout */
}

.grid-sort-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.grid-sort-label {
    font-size: .8rem;
    font-weight: 600;
    color: #6C757D;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.grid-sort-label i {
    color: #00A1BE !important;
    font-size: .8rem;
}

.grid-sort-dir {
    background: none;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .35rem .5rem;
    cursor: pointer;
    color: #6C757D;
    transition: all .15s ease;
    display: flex;
    align-items: center;
}

.grid-sort-dir:hover {
    border-color: #00A1BE;
    color: #00A1BE;
}

.grid-sort-dir i {
    font-size: .85rem;
}

.grid-paging-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid #DEE2E6;
    margin-top: .25rem;
}

.grid-paging-bar .btn {
    min-width: 2rem;
    padding: .25rem .5rem;
}

.grid-paging-info {
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0 .5rem;
}

.grid-top-btn {
    margin-left: 1rem;
}

.grid-export-btn {
    background: #FFF !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.grid-export-btn:hover:not(:disabled) {
    background: var(--color-primary) !important;
    color: #FFF !important;
}

.grid-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Constituent Grid Styles ========== */

.cst-name {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 600;
    color: #27282A;
    text-decoration: none;
    display: block;
}

.cst-name:hover {
    color: #00A1BE;
}

.cst-email {
    font-size: .85rem;
    color: #00A1BE;
    text-decoration: none;
}

.cst-email:hover {
    color: #00CC78;
}

.cst-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 1rem;
    font-size: .78rem;
    margin-right: .35rem;
    font-weight: 500;
}

.cst-badge-type {
    background: #00A1BE;
    color: #fff;
}

.cst-badge-role {
    background: #00CC78;
    color: #fff;
}

.cst-badge-donot {
    background: #FEF2F2;
    color: #B91C1C;
}

.cst-email-blocked {
    font-size: .85rem;
    color: #999;
}

.cst-email-blocked s {
    text-decoration: line-through;
    text-decoration-color: #B91C1C;
}

.grid-row-details {
    border-top: 1px solid #EEE;
    padding-top: .75rem;
}

.grid-row-toggle {
    text-decoration: none !important;
    cursor: pointer;
}

.grid-row-toggle:hover {
    color: var(--color-primary);
}

.grid-row-toggle .fa-chevron-right {
    transition: transform 0.2s ease;
}

.grid-row-toggle.expanded .fa-chevron-right {
    transform: rotate(90deg);
}

.grid-toggle-all {
    text-decoration: none !important;
    cursor: pointer;
}

.grid-toggle-all:hover {
    color: var(--color-primary);
}

.grid-toggle-all .fa-chevron-right {
    transition: transform 0.2s ease;
}

.grid-toggle-all.expanded .fa-chevron-right {
    transform: rotate(90deg);
}

/* ========== QuickGrid — Constituents ========== */

.constituents-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.constituents-grid thead {
    display: none;
}

.constituents-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.constituents-grid tbody tr {
    background: #FFF;
}

.constituents-grid a {
    color: #000;
    text-decoration: none;
}

.constituents-grid a:hover {
    color: var(--color-tertiary);
}

.constituents-grid .col-action {
    width: 60px;
}

/* ========== Participants Grid ========== */

.participants-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.participants-grid thead {
    display: none;
}

.participants-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.participants-grid tbody tr {
    background: #FFF;
}

.participants-grid a {
    color: #000;
    text-decoration: none;
}

.participants-grid a:hover {
    color: var(--color-tertiary);
}

/* ========== Tasks Grid ========== */

.tasks-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.tasks-grid thead {
    display: none;
}

.tasks-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.tasks-grid tbody tr {
    background: #FFF;
}

.tasks-grid a {
    color: #000;
    text-decoration: none;
}

.tasks-grid a:hover {
    color: var(--color-tertiary);
}

.tasks-grid .col-action {
    width: 60px;
}

.tasks-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Projects Grid ========== */

.projects-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.projects-grid thead {
    display: none;
}

.projects-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.projects-grid tbody tr {
    background: #FFF;
}

.projects-grid a {
    color: #000;
    text-decoration: none;
}

.projects-grid a:hover {
    color: var(--color-tertiary);
}

.projects-grid .col-action {
    width: 60px;
}

.projects-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Events Grid ========== */

.events-page .page-title i {
    color: #00A1BE !important;
}

.events-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.events-grid thead {
    display: none;
}

.events-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.events-grid tbody tr {
    background: #FFF;
}

.events-grid a {
    color: #000;
    text-decoration: none;
}

.events-grid a:hover {
    color: var(--color-tertiary);
}

.events-grid .col-action {
    width: 60px;
}

.events-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Constituent Groups Grid ========== */

.constituent-groups-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.constituent-groups-grid thead {
    display: none;
}

.constituent-groups-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.constituent-groups-grid tbody tr {
    background: #FFF;
}

.constituent-groups-grid a {
    color: #000;
    text-decoration: none;
}

.constituent-groups-grid a:hover {
    color: var(--color-tertiary);
}

.constituent-groups-grid .col-action {
    width: 60px;
}

.constituent-groups-grid .col-select {
    padding-right: 1rem !important;
}

.constituent-group-row-section {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
    background: #FFF;
}

/* ========== Expenses Grid ========== */

.expenses-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.expenses-grid thead {
    display: none;
}

.expenses-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.expenses-grid tbody tr {
    background: #FFF;
}

.expenses-grid a {
    color: #000;
    text-decoration: none;
}

.expenses-grid a:hover {
    color: var(--color-tertiary);
}

.expense-row-link {
    color: var(--color-primary) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1.1rem;
}

.expense-row-link:hover {
    color: var(--color-tertiary) !important;
}

.expenses-grid .col-action {
    width: 60px;
}

.expenses-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Deposits Grid ========== */

.timesheets-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.timesheets-grid thead {
    display: none;
}

.timesheets-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.timesheets-grid tbody tr {
    background: #FFF;
}

.timesheets-grid a {
    color: #000;
    text-decoration: none;
}

.timesheets-grid a:hover {
    color: var(--color-tertiary);
}

.timesheets-grid .col-select {
    padding-right: 1rem !important;
}

.timesheets-grid .ts-icon-col {
    width: 1%;
    white-space: nowrap;
}

.deposits-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.deposits-grid thead {
    display: none;
}

.deposits-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.deposits-grid tbody tr {
    background: #FFF;
}

.deposits-grid a {
    color: #000;
    text-decoration: none;
}

.deposits-grid a:hover {
    color: var(--color-tertiary);
}

.deposits-grid .col-select {
    padding-right: 1rem !important;
}

/* Section styling for deposit rows */
.deposit-row-section {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
}

/* ========== Withdrawals Grid ========== */

.withdrawls-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.withdrawls-grid thead {
    display: none;
}

.withdrawls-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: .6rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.withdrawls-grid tbody tr {
    background: #FFF;
}

.withdrawls-grid a {
    color: #000;
    text-decoration: none;
}

.withdrawls-grid a:hover {
    color: var(--color-tertiary);
}

.withdrawls-grid .col-action {
    width: 60px;
}

.withdrawls-grid .col-select {
    padding-right: 1rem !important;
}

.expenses-grid .expense-row-section,
.withdrawls-grid .withdrawl-row-section {
    padding: .25rem .5rem;
    margin-bottom: .25rem;
}

/* ========== Reconcile Page ========== */

/* Controls panel */
.reconcile-controls {
    border: 1px solid #DEE2E6;
    border-radius: .5rem;
    padding: 1.25rem 1.5rem;
    background: #FAFBFC;
}

.reconcile-controls-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.reconcile-control-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.reconcile-control-label {
    font-family: var(--font-primary);
    font-size: .8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.reconcile-optional-badge {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    background: #E9ECEF;
    border-radius: 3px;
    padding: .1rem .45rem;
}

.reconcile-date-pair {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.reconcile-date-pair > div,
.reconcile-date-pair > :first-child,
.reconcile-date-pair > :last-child {
    min-width: 135px;
}

.reconcile-date-sep {
    font-family: var(--font-primary);
    font-size: .8rem;
    font-weight: 700;
    color: #00A1BE;
    text-transform: uppercase;
    flex-shrink: 0;
}

.reconcile-go-btn {
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 1px;
}

.reconcile-subtext {
    font-family: var(--font-primary);
    font-size: .75rem;
    color: #999;
    margin-top: .15rem;
}

.reconcile-filter-active {
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 600;
    color: #00A1BE;
    margin-top: .25rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.reconcile-filter-error {
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 600;
    color: #D8237C;
    margin-top: .25rem;
}

/* Summary cards */
.reconcile-summary {
    display: flex;
    border: 1px solid #DEE2E6;
    border-radius: .5rem;
    margin-top: 1rem;
}

.reconcile-summary-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-right: 1px solid #DEE2E6;
}

.reconcile-summary-card-last {
    border-right: none;
}

.reconcile-summary-icon {
    font-size: 2.5em;
    flex-shrink: 0;
    line-height: 1;
}

.reconcile-summary-data {
    min-width: 0;
}

.reconcile-summary-label {
    font-family: var(--font-primary);
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
}

.reconcile-summary-value {
    font-family: var(--font-primary);
    font-size: 1.4em;
    font-weight: 700;
    color: #27282A;
    line-height: 1.2;
}

.reconcile-balanced {
    color: #00CC78 !important;
}

.reconcile-summary-hint {
    font-family: var(--font-primary);
    font-size: .7rem;
    color: #999;
    font-weight: 400;
    margin-top: .15rem;
}

@media (max-width: 767.98px) {
    .reconcile-controls-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .reconcile-date-pair {
        flex-direction: column;
        gap: .35rem;
        width: 100%;
    }

    .reconcile-date-pair > div,
    .reconcile-date-pair > :first-child,
    .reconcile-date-pair > :last-child {
        min-width: unset;
        width: 100%;
    }

    .reconcile-date-sep {
        display: none;
    }

    .reconcile-summary {
        flex-direction: column;
    }

    .reconcile-summary-card {
        border-right: none;
        border-bottom: 1px solid #DEE2E6;
    }

    .reconcile-summary-card-last {
        border-bottom: none;
    }
}

/* Grid */
.reconcile-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.reconcile-grid thead th {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    padding: .75rem;
    border-bottom: 2px solid #DEE2E6;
    background: #F8F9FA;
}

.reconcile-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.reconcile-grid tbody tr {
    background: #FFF;
}

.reconcile-grid a {
    color: #000;
    text-decoration: none;
}

.reconcile-grid a:hover {
    color: var(--color-tertiary);
}

/* ========== Account Statements Grid ========== */

.account-statements-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.account-statements-grid thead {
    display: none;
}

.account-statements-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: .5rem .75rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #DEE2E6;
}

.account-statements-grid tbody tr {
    background: #FFF;
}

.account-statements-grid a {
    color: #000;
    text-decoration: none;
}

.account-statements-grid a:hover {
    color: var(--color-tertiary);
}

.account-statements-grid .col-action {
    width: 90px;
}

/* ========== Board Members Grid ========== */

.board-members-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.board-members-grid thead {
    display: none;
}

.board-members-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.board-members-grid tbody tr {
    background: #FFF;
}

.board-members-grid a {
    color: #000;
    text-decoration: none;
}

.board-members-grid a:hover {
    color: var(--color-tertiary);
}

.board-members-grid .col-action {
    width: 60px;
}

.board-members-grid .col-select {
    padding-right: 1rem !important;
}

.board-members-grid .bm-name {
    font-family: var(--font-primary);
    font-size: 120%;
    font-weight: bold;
    color: #464646;
}

.board-members-grid .bm-email {
    color: var(--color-primary);
    font-size: 90%;
}

.board-members-grid .bm-email:hover {
    color: var(--color-tertiary);
}

/* ========== Divisions Grid ========== */

.divisions-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.divisions-grid thead {
    display: none;
}

.divisions-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.divisions-grid tbody tr {
    background: #FFF;
}

.divisions-grid a {
    color: #000;
    text-decoration: none;
}

.divisions-grid a:hover {
    color: var(--color-tertiary);
}

.divisions-grid .col-action {
    width: 60px;
}

.divisions-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Departments Grid ========== */

.departments-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.departments-grid thead {
    display: none;
}

.departments-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.departments-grid tbody tr {
    background: #FFF;
}

.departments-grid a {
    color: #000;
    text-decoration: none;
}

.departments-grid a:hover {
    color: var(--color-tertiary);
}

.departments-grid .col-action {
    width: 60px;
}

.departments-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Chapters Grid ========== */

.chapters-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.chapters-grid thead {
    display: none;
}

.chapters-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.chapters-grid tbody tr {
    background: #FFF;
}

.chapters-grid a {
    color: #000;
    text-decoration: none;
}

.chapters-grid a:hover {
    color: var(--color-tertiary);
}

.chapters-grid .col-action {
    width: 60px;
}

.chapters-grid .col-select {
    padding-right: 1rem !important;
}

/* ========== Event Sessions Grid ========== */

.event-sessions-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.event-sessions-grid thead {
    display: none;
}

.event-sessions-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.event-sessions-grid tbody tr {
    background: #FFF;
}

.event-sessions-grid a {
    color: #000;
    text-decoration: none;
}

.event-sessions-grid a:hover {
    color: var(--color-tertiary);
}

.event-sessions-grid .col-select {
    width: 60px;
    position: relative;
    padding-left: calc(12px + .75rem) !important;
}

.event-sessions-grid .col-action {
    width: 60px;
    position: relative;
    padding-left: calc(12px + .75rem) !important;
}

.session-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
}

.event-sessions-grid .col-action input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.event-sessions-grid .dtp-dropdown.open {
    left: 100%;
    top: 0;
    right: auto;
}

.session-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.session-event-name {
    font-size: .85rem;
    color: #6c757d;
}

/* ========== Session Time Tracking Grid ========== */

.session-tracking-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .5rem;
    border: none;
}

.session-tracking-grid thead {
    display: none;
}

.session-tracking-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border: 1px solid #CCC;
    border-radius: .375rem;
}

.session-tracking-grid tbody tr {
    background: #FFF;
}

.session-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: .25rem;
    font-size: .8rem;
    font-weight: 500;
}

.session-badge-public {
    background: #E0F5E0;
    color: #198754;
}

.session-badge-private {
    background: #F5E0E0;
    color: #6c757d;
}

/* ========== Promo Codes Grid ========== */

.promo-codes-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.promo-codes-grid thead {
    display: none;
}

.promo-codes-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.promo-codes-grid tbody tr {
    background: #FFF;
}

.promo-codes-grid a {
    color: #000;
    text-decoration: none;
}

.promo-codes-grid a:hover {
    color: var(--color-tertiary);
}

.promo-codes-grid .col-action {
    width: 60px;
}

.promo-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: .25rem;
    font-size: .8rem;
    font-weight: 500;
}

.promo-badge-active {
    background: #E0F5E0;
    color: #198754;
}

.promo-badge-expired {
    background: #F5E0E0;
    color: #DC3545;
}

.promo-badge-maxed {
    background: #FFF3CD;
    color: #856404;
}

.promo-badge-inactive {
    background: #E9ECEF;
    color: #6c757d;
}

/* ========== Bulk Actions & Selection ========== */

.col-select {
    width: 40px;
    accent-color: var(--color-primary);
}

.col-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bulk-all-banner {
    background: rgba(0,161,190,.08);
    border: 1px solid rgba(0,161,190,.25);
    border-radius: .375rem;
    padding: .6rem 1rem;
    font-family: var(--font-headings);
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

.bulk-all-banner i {
    color: var(--color-primary);
}

.bulk-action-separator {
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    cursor: default !important;
    padding: .5rem .75rem .25rem !important;
    pointer-events: none;
}

.bulk-action-separator:hover {
    background: transparent !important;
    color: #6c757d !important;
}

.bulk-actions-select {
    min-width: 320px;
}

.bulk-actions-select .argenta-select-list {
    min-width: 320px;
}

/* Support Page — Resource Boxes */
.support-box {
    display: block;
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    background: #FFF;
    text-align: center;
    text-decoration: none;
    color: var(--color-body);
    transition: box-shadow .2s, transform .2s;
}

.support-box:hover {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-body);
}

.support-box .icon {
    color: var(--color-primary);
}

.support-box-heading {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    margin-top: .75rem;
    margin-bottom: .5rem;
    color: var(--color-body);
}

.support-box-text {
    font-size: .85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* ========== Choose Constituent Type ========== */

.choose-type-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.choose-type-card {
    display: inline-block;
    width: 200px;
    padding: 1.5rem 0;
    border-radius: .5rem;
    cursor: pointer;
    color: #FFF;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.choose-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2);
}

.choose-type-circle {
    width: 150px;
    height: 150px;
    padding: 20px;
    border: 10px solid #FFF;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Staff Members Grid ========== */
.staff-members-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.staff-members-grid thead {
    display: none;
}

.staff-members-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #CCC;
}

.staff-members-grid tbody tr {
    background: #FFF;
}

.staff-members-grid a {
    color: #000;
    text-decoration: none;
}

.staff-members-grid a:hover {
    color: var(--color-tertiary);
}

.staff-members-grid .col-select {
    padding-right: 1rem !important;
}

.staff-members-grid .staff-row-section {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
    background: #FFF;
}

.staff-members-grid .staff-row-section:last-child {
    margin-bottom: 0;
    padding-bottom: .25rem;
}

.staff-members-grid .staff-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.staff-members-grid .staff-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A1BE, #00CC78);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* ========== Argenta Modal ========== */
.argenta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.argenta-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.argenta-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.2s ease;
}

.argenta-modal-overlay.show .argenta-modal {
    transform: scale(1) translateY(0);
}

.argenta-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #F8F9FA;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #6c757d;
}

.argenta-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.argenta-modal-close:hover {
    color: #333;
}

.argenta-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.argenta-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 576px) {
    .argenta-modal {
        width: 95%;
        margin: 10px;
    }
}

/* ========== Constituent Edit Page ========== */

.constituent-type-roles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .35rem;
}

.constituent-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: .375rem;
    font-family: var(--font-headings);
    font-size: .95rem;
    font-weight: 600;
    background: #E0F5F9;
    color: #00A1BE;
}

.constituent-type-badge i {
    color: #00A1BE;
}

.constituent-status-row {
    padding: .25rem 0;
}

/* Title Bar Link Buttons */
.cst-title-link,
.cst-title-link i {
    color: #FF4A11 !important;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: opacity 0.15s;
}

.cst-title-link:hover,
.cst-title-link:hover i {
    color: #FF4A11 !important;
    opacity: .75;
    text-decoration: none !important;
}

/* Workspace Icon Bar */
.cst-iconbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem;
    padding: .4rem .6rem;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: .375rem;
}

.cst-iconbar-menu-label {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-headings);
    font-weight: bold;
    font-size: .8em;
    color: #646464;
    padding: .15rem .5rem .15rem .25rem;
    border-right: 1px solid #DEE2E6;
    margin-right: .25rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.cst-iconbar-menu-label i {
    padding-top: .15em;
}

.cst-iconbar a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    font-size: .85em;
    color: #444;
    text-decoration: none;
    border-radius: .25rem;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}

.cst-iconbar a:hover {
    background: rgba(0,161,190,.08);
    color: #444;
    text-decoration: none;
}

.cst-iconbar a i {
    font-size: .85em;
    color: #00A1BE;
}

.cst-iconbar a:hover i {
    color: #00A1BE;
}

.cst-iconbar a.active,
.cst-iconbar a.active:hover {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(0,161,190,.1);
    border-bottom: 2px solid var(--color-primary);
}

.cst-iconbar a.active i {
    color: #00A1BE;
}

.cst-iconbar-name {
    font-weight: 600;
    font-size: .85rem;
    color: var(--color-primary);
    white-space: nowrap;
    padding: .25rem .5rem;
    text-decoration: none;
    border-radius: .25rem;
    transition: background 0.12s;
}

.cst-iconbar-name:hover {
    background: rgba(0,161,190,.08);
    text-decoration: none;
}

.cst-iconbar-name.active {
    background: rgba(0,161,190,.1);
    border-bottom: 2px solid var(--color-primary);
}

.cst-iconbar-sep {
    display: inline-block;
    width: 1px;
    height: .9rem;
    background: #DDD;
    margin: 0 .2rem;
    flex-shrink: 0;
}

/* ─── Workspace Mobile Responsive ─── */
@media (max-width: 767.98px) {
    .page-title {
        font-size: 110%;
        padding: .65rem .75rem;
    }

    .page-title .row {
        flex-direction: column;
        gap: .5rem;
    }

    .page-title .col-auto {
        justify-content: flex-start !important;
    }

    .cst-iconbar {
        gap: .1rem;
        padding: .3rem .4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .cst-iconbar a {
        font-size: .75em;
        padding: .2rem .4rem;
    }

    .cst-iconbar-menu-label {
        font-size: .7em;
    }

    .cst-title-link i {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 100%;
        padding: .5rem .65rem;
    }
}

/* Event Workspace — Inline Category Labels */
.event-ws-cat {
    display: inline-flex;
    align-items: center;
    font-size: .55rem;
    font-weight: 700;
    color: #fff;
    background: #00A1BE;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .15rem .45rem;
    border-radius: 2rem;
    white-space: nowrap;
    margin: .1rem .05rem;
    line-height: 1.3;
}

/* Record Audits */
/* Constituent Photo */
.cst-photo-frame {
    width: 130px;
    height: 130px;
    border-radius: .5rem;
    overflow: hidden;
    border: 2px solid #DEE2E6;
    flex-shrink: 0;
    background: #F8F9FA;
}

.cst-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cst-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 3.5rem;
}

.cst-photo-upload-btn {
    cursor: pointer;
}

.cst-record-audits {
    font-size: .75rem;
    color: #999;
    text-align: right;
    line-height: 1.5;
}

.cst-record-audits strong {
    color: #666;
    font-weight: 600;
}

.cst-audit-sep {
    display: inline-block;
    width: 1px;
    height: .7rem;
    background: #DDD;
    margin: 0 .75rem;
    vertical-align: middle;
}

/* ===== Constituent Files Upload ===== */
.cst-file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cst-file-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.cst-file-dropzone:hover,
.cst-file-dropzone.dragover {
    border-color: #00CC78;
    background: #f0fff4;
}

.cst-file-dropzone.dragover {
    transform: scale(1.01);
}

.cst-file-dropzone-icon {
    font-size: 3rem;
    color: #00A1BE;
    margin-bottom: 0.5rem;
}

.cst-file-dropzone-text {
    color: #666;
    margin-bottom: 0.5rem;
}

.cst-file-dropzone-subtext {
    color: #999;
    font-size: 0.85rem;
}

.cst-file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.cst-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.cst-file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cst-file-list-item:last-child {
    margin-bottom: 0;
}

.cst-file-list-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.cst-file-list-name i {
    color: #6c757d;
}

.cst-file-list-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cst-file-list-size {
    color: #999;
    font-size: 0.85rem;
    margin-right: 1rem;
}

.cst-file-list-remove {
    background: none;
    border: none;
    color: #CC3333;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s;
}

.cst-file-list-remove:hover {
    transform: scale(1.2);
}

.cst-file-count-badge {
    display: inline-block;
    background: #00CC78;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.cst-file-upload-progress {
    margin-top: 1rem;
    display: none;
}

.cst-file-upload-progress.active {
    display: block;
}

.cst-progress-bar-container {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.cst-progress-bar-fill {
    height: 100%;
    background: #00CC78;
    transition: width 0.3s ease;
    width: 0%;
}

.cst-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* ── Project Progress Meter ── */
.progress-meter { padding: 8px 0; }
.progress-meter-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.progress-meter-percent { font-family: var(--font-headings); font-size: 1.5rem; font-weight: 700; color: #27282A; }
.progress-meter-detail { font-size: .85rem; color: #6C757D; }
.progress-meter-track { width: 100%; height: 10px; background: #E9ECEF; border-radius: 5px; overflow: hidden; }
.progress-meter-bar { height: 100%; border-radius: 5px; transition: width .6s ease, background-color .4s ease; }

/* ── Booking Form Admin (Participant Workspace) ── */
.booking-form-admin { padding: 0; }
.wizard-steps-admin { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative; }
.wizard-step-admin { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.wizard-circle-admin { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #FFF; background: #CCC; }
.wizard-step-admin.completed .wizard-circle-admin { background: var(--color-primary); }
.wizard-label-admin { margin-top: .3rem; font-size: .7rem; color: var(--color-primary); font-weight: 600; }
.wizard-line-admin { position: absolute; top: 16px; left: 0; right: 0; height: 3px; background: #CCC; z-index: 0; }
.wizard-line-fill-admin { height: 3px; width: 100%; background: var(--color-primary); }

/* ===== Invoice Document ===== */
.invoice-document { background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 0; margin-top: 8px; font-family: 'Segoe UI', Arial, sans-serif; color: #464646; overflow: hidden; }
.invoice-header { display: flex; justify-content: space-between; align-items: center; padding: 32px 36px 24px; position: relative; }
.invoice-header-left h1 { font-size: 2rem; font-weight: 700; color: var(--color-primary); letter-spacing: .06em; margin: 0; text-transform: uppercase; }
.invoice-header-right { display: flex; align-items: center; gap: 16px; }
.invoice-logo-circle { width: 80px; height: 80px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: transparent; position: relative; z-index: 1; }
.invoice-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.invoice-logo-placeholder { font-size: .7rem; color: #999; text-transform: uppercase; letter-spacing: .08em; }
.invoice-header-right::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: var(--color-primary); opacity: .12; z-index: 0; }
.invoice-info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 36px 20px; gap: 24px; }
.invoice-to { font-size: .85rem; line-height: 1.5; }
.invoice-to-label { font-size: .78rem; color: #999; margin-bottom: 2px; }
.invoice-to .name { font-weight: 700; font-size: .95rem; color: #464646; text-transform: uppercase; }
.invoice-meta-card { text-align: right; font-size: .85rem; }
.invoice-meta-table { border-collapse: collapse; margin-left: auto; }
.invoice-meta-table td { padding: 2px 0; font-size: .82rem; white-space: nowrap; }
.invoice-meta-table .label { color: #999; text-align: left; padding-right: 16px; }
.invoice-meta-table .value { color: #464646; font-weight: 600; text-align: right; }
.invoice-table-wrap { padding: 0 36px; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.invoice-table thead tr { background: var(--color-primary); }
.invoice-table th { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; padding: 10px 12px; text-align: left; border: none; }
.invoice-table th:nth-child(2), .invoice-table th:nth-child(3), .invoice-table th:nth-child(4) { text-align: right; }
.invoice-table tbody tr { border-bottom: 1px solid #eee; }
.invoice-table tbody tr:last-child { border-bottom: 2px solid var(--color-primary); }
.invoice-table td { padding: 10px 12px; color: #464646; border: none; }
.invoice-table td:nth-child(2), .invoice-table td:nth-child(3), .invoice-table td:nth-child(4) { text-align: right; }
.invoice-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 36px 24px; gap: 24px; }
.invoice-payment-info { font-size: .78rem; color: #464646; line-height: 1.6; }
.invoice-payment-info .title { font-weight: 700; font-size: .82rem; margin-bottom: 4px; color: #464646; }
.invoice-summary-table { border-collapse: collapse; font-size: .82rem; min-width: 220px; }
.invoice-summary-table td { padding: 4px 0; }
.invoice-summary-table .label { color: #464646; padding-right: 24px; }
.invoice-summary-table .value { text-align: right; color: #464646; font-weight: 600; }
.invoice-total-bar { display: flex; justify-content: space-between; align-items: center; background: var(--color-primary); color: #fff; padding: 10px 16px; font-size: .9rem; font-weight: 700; border-radius: 4px; margin-top: 8px; min-width: 220px; }
.invoice-content { padding: 16px 36px; font-size: .82rem; color: #464646; line-height: 1.5; }
.invoice-addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 36px 16px; }
.invoice-addr-row .invoice-block-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #999; margin-bottom: 2px; }
.invoice-addr-row .name { font-weight: 600; color: #464646; }
.invoice-addr-row .invoice-block { font-size: .82rem; line-height: 1.5; }
@media print { .invoice-document { box-shadow: none; border: none; } }

/* ========== Financial Dashboard ========== */

.fin-dashboard { display: flex; flex-direction: column; gap: 1.25rem; }

/* Quick Access row */
.fin-quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fin-quick-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dee2e6;
    border-radius: 0.5rem;
    text-decoration: none !important;
    color: var(--color-body) !important;
    transition: box-shadow 0.15s, transform 0.15s;
}

.fin-quick-card i {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 1.75rem;
    text-align: center;
}

.fin-quick-card span {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
}

.fin-quick-card:hover { box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08); transform: translateY(-1px); }
.fin-quick-card:active { transform: translateY(0); }

.fin-quick-card--teal   { border-left-color: #00A1BE; }
.fin-quick-card--teal i { color: #00A1BE; }
.fin-quick-card--orange   { border-left-color: #FF4A11; }
.fin-quick-card--orange i { color: #FF4A11; }
.fin-quick-card--green   { border-left-color: #00CC78; }
.fin-quick-card--green i { color: #00CC78; }
.fin-quick-card--blue   { border-left-color: #4682B4; }
.fin-quick-card--blue i { color: #4682B4; }

/* Two-column layout */
.fin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.fin-col { display: flex; flex-direction: column; gap: 1.25rem; }

/* Section cards */
.fin-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.fin-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.fin-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fin-section-icon--teal   { background: rgba(0,161,190,0.1); color: #00A1BE; }
.fin-section-icon--green  { background: rgba(0,204,120,0.1); color: #00CC78; }
.fin-section-icon--orange { background: rgba(255,74,17,0.08); color: #FF4A11; }
.fin-section-icon--purple { background: rgba(147,112,219,0.1); color: #9370DB; }
.fin-section-icon--blue   { background: rgba(70,130,180,0.1); color: #4682B4; }

.fin-section-title {
    font-family: var(--font-headings);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-body);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* List items */
.fin-list { display: flex; flex-direction: column; }

.fin-list-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.15rem;
    text-decoration: none !important;
    color: #464646 !important;
    font-size: 0.88rem;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.12s, padding-left 0.12s;
}

.fin-list-item:last-child { border-bottom: none; }

.fin-list-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--color-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.fin-list-item:hover {
    background: #f4fafb;
    padding-left: 1.4rem;
}

@media (max-width: 991.98px) {
    .fin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .fin-quick-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .fin-quick-row { grid-template-columns: 1fr; }
}

/* Event Workspace action dropdowns */
.event-ws-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 340px;
    white-space: nowrap;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fff;
    border-radius: .375rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
    padding: 0 .75rem;
}

.event-ws-dropdown-right {
    left: auto;
    right: 0;
}

.event-ws-dropdown.show {
    max-height: 300px;
    padding: .75rem;
    border: 1px solid #DEE2E6;
}

.event-ws-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-ws-dropdown li {
    margin-bottom: .5rem;
}

.event-ws-dropdown li:last-child {
    margin-bottom: 0;
}

.event-ws-dropdown a {
    display: block;
    padding: .35rem .5rem;
    color: #464646;
    text-decoration: none;
    text-align: left;
    font-size: 1rem;
    border-radius: .25rem;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.event-ws-dropdown a:hover {
    background-color: #f0f9fb;
    color: var(--color-primary);
}

/* Switch toggle (ported from WebForms _paywall.css) */
.switch-sm{position:relative; top:.5em; display:inline-block; width:30px; height:17px}
.switch-sm input{opacity:0; width:0; height:0}
.slider-sm{position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background-color:#ccc; transition:.4s; border-radius:17px}
.slider-sm:before{position:absolute; content:""; height:13px; width:13px; left:2px; bottom:2px; background-color:white; transition:.4s; border-radius:50%}
.switch-sm input:checked + .slider-sm{background-color:var(--color-primary)}
.switch-sm input:focus + .slider-sm{box-shadow:0 0 1px #FFF}
.switch-sm input:checked + .slider-sm:before{transform:translateX(13px)}
.slider-sm-label{margin-top:0; margin-left:.25em; display:inline-flex; align-items:center; min-height:34px; font-size:1em}

/* GeneralJournalControl — placeholder fund styling */
.gjc-placeholder-fund .lookup-input { font-style: italic; color: #adb5bd !important; }

/* ========== QuickGrid — Bug Tracker ========== */

.bugs-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
}

.bugs-grid thead {
    display: none;
}

.bugs-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    background: #FFF;
    border-top: 1px solid #DEE2E6;
    border-bottom: 1px solid #DEE2E6;
}

.bugs-grid td:first-child {
    border-left: 1px solid #DEE2E6;
    border-radius: .375rem 0 0 .375rem;
}

.bugs-grid td:last-child {
    border-right: 1px solid #DEE2E6;
    border-radius: 0 .375rem .375rem 0;
}

.bugs-grid tbody tr {
    background: transparent;
}

.bugs-grid a {
    color: #000;
    text-decoration: none;
}

.bugs-grid a:hover {
    color: var(--color-tertiary);
}

/* ===== Credentials Grid ===== */
.credentials-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
}

.credentials-grid thead {
    display: none;
}

.credentials-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    background: #FFF;
    border-top: 1px solid #DEE2E6;
    border-bottom: 1px solid #DEE2E6;
}

.credentials-grid td:first-child {
    border-left: 1px solid #DEE2E6;
    border-radius: .375rem 0 0 .375rem;
}

.credentials-grid td:last-child {
    border-right: 1px solid #DEE2E6;
    border-radius: 0 .375rem .375rem 0;
}

.credentials-grid tbody tr {
    background: transparent;
}

.credentials-grid a {
    color: #000;
    text-decoration: none;
}

.credentials-grid a:hover {
    color: var(--color-tertiary);
}

/* ===== Fact Tables Grid ===== */
.fact-tables-grid { width: 100% !important; }
.fact-tables-grid thead { display: none; }
.fact-tables-grid tr { border: none !important; }
.fact-tables-grid td { padding: .35rem .5rem !important; border: none !important; background: transparent !important; width: 100% !important; }

.ft-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    background: #FFF;
    border: 1px solid #E8EAED;
    border-left: 4px solid #00A1BE;
    border-radius: .5rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.ft-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.ft-row-body { flex: 1; min-width: 0; }
.ft-row-title {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    color: #27282A;
    margin-bottom: .25rem;
}
.ft-row-meta {
    font-size: .85rem;
    color: #6C757D;
}
.ft-row-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.ft-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s ease, color .15s ease;
    text-decoration: none !important;
}
.ft-action-open { color: #FFF; background: #00CC78; }
.ft-action-open:hover { background: #00995A; color: #FFF; }
.ft-action-delete { color: #FFF; background: #D8237C; }
.ft-action-delete:hover { background: #B01A65; color: #FFF; }
.ft-action-save { color: #FFF; background: #FF4A11; }
.ft-action-save:hover { background: #E0400E; color: #FFF; }
.checklist-ta { resize: none; overflow: hidden; min-height: 38px; }

/* ===== Specification Lists Grid ===== */
.spec-lists-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
}

.spec-lists-grid thead {
    display: none;
}

.spec-lists-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 0 !important;
    vertical-align: middle;
    border: none !important;
}

.spec-lists-grid tbody tr {
    background: transparent;
}

.spec-list-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #DEE2E6;
    border-radius: .5rem;
    padding: .75rem;
    background: #FFF;
}

.spec-list-row textarea.form-control {
    flex: 1;
    resize: none;
}

.spec-lists-grid .grid-filter-bar {
    margin-bottom: 0 !important;
}

/* ===== Specification List Items ===== */
.sli-header {
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
}

.sli-title {
    font-family: var(--font-headings);
    color: #27282A;
    font-size: 1.25rem;
}

.sli-back-btn {
    color: #6c757d;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.sli-back-btn:hover {
    background: #F0F0F0;
    color: var(--color-primary);
}

.sli-stat {
    font-size: .8rem;
    color: #6c757d;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.sli-progress-track {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: #E9ECEF;
    border-radius: 3px;
    overflow: hidden;
}

.sli-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
    transition: width .4s ease;
}

.sli-card {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    overflow: hidden;
    box-shadow: 0 .0625rem .125rem rgba(0,0,0,.04);
}

.sli-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .625rem 1rem;
    border-bottom: 1px solid #F0F0F0;
    transition: background .15s ease;
}

.sli-item:last-child {
    border-bottom: none;
}

.sli-item:hover {
    background: #FAFBFC;
}

.sli-item-done {
    background: #F0FFF4 !important;
}

.sli-item-done:hover {
    background: #E6F9EC !important;
}

.sli-item-new {
    background: #FFFAF5 !important;
    border-left: 3px solid #FF4A11;
}

.sli-item-check {
    padding-top: .5rem;
    flex-shrink: 0;
}

.sli-item-text {
    flex: 1;
    min-width: 0;
}

.sli-textarea {
    border: 1px solid transparent !important;
    background: transparent !important;
    resize: none;
    overflow: hidden;
    min-height: 36px;
    font-family: var(--font-primary);
    font-size: .95rem;
    color: #27282A;
    padding: .375rem .5rem;
    border-radius: .25rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
    line-height: 1.5;
}

.sli-textarea:focus {
    border-color: var(--color-primary) !important;
    background: #FFF !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,161,190,.12);
}

.sli-done-text {
    text-decoration: line-through;
    color: #999 !important;
}

.sli-item-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding-top: .375rem;
    flex-shrink: 0;
    opacity: .3;
    transition: opacity .15s ease;
}

.sli-item:hover .sli-item-actions {
    opacity: 1;
}

.sli-item-new .sli-item-actions {
    opacity: 1;
}

.sli-check-all {
    width: 1.15rem;
    height: 1.15rem;
}

/* ===== Mission Control Back Link ===== */
.mission-control-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.25rem;
    font-family: 'Muli', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #00CC78 0%, #00A65F 100%);
    border-radius: 2rem;
    text-decoration: none;
    letter-spacing: .025em;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(0, 204, 120, .25);
}
.mission-control-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #1AD98A 0%, #00CC78 100%);
    box-shadow: 0 4px 14px rgba(0, 204, 120, .4);
    transform: translateY(-1px);
    text-decoration: none;
}
.mission-control-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 204, 120, .2);
}
.mission-control-link i {
    font-size: 1.1rem;
    color: #fff !important;
}

/* ===== Connections Panel Multi-Select Dropdown ===== */
.conn-multiselect {
    position: relative;
}

.conn-multiselect-btn {
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conn-multiselect-btn:hover {
    border-color: var(--color-primary);
}

.conn-multiselect-menu {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #DEE2E6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.conn-multiselect-item {
    padding: .4rem .75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: .9rem;
}

.conn-multiselect-item:hover {
    background: #E0F5F9;
}

.conn-multiselect-checkall {
    border-bottom: 1px solid #DEE2E6;
    background: #F8F9FA;
}

.conn-multiselect-checkall:hover {
    background: #E0F5F9;
}

.conn-multiselect-item .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.conn-section-header {
    cursor: pointer;
    user-select: none;
}

.conn-section-header:hover {
    background: #EDF0F2 !important;
}

.conn-section-chevron {
    font-size: .7rem;
    color: #6C757D;
}

.conn-section-header.card-header {
    border-radius: .375rem;
}

/* ========== Payroll Grid ========== */

.payroll-grid {
    width: 100%;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.payroll-grid thead {
    display: none;
}

.payroll-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-bottom: 1px solid #DEE2E6;
}

.payroll-grid tbody tr {
    background: #FFF;
}

.payroll-grid a {
    color: #000;
    text-decoration: none;
}

.payroll-grid a:hover {
    color: var(--color-tertiary);
}

.payroll-grid .col-select {
    padding-right: 1rem !important;
}

.payroll-grid .payroll-row-section {
    padding: .25rem .5rem;
    margin-bottom: .25rem;
}

/* ========== Staff Positions Grid ========== */
.staff-positions-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .5rem;
}

.staff-positions-grid thead {
    display: none;
}

.staff-positions-grid tbody tr {
    background: #FFF;
}

.staff-positions-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    border-top: 1px solid #DEE2E6;
    border-bottom: 1px solid #DEE2E6;
}

.staff-positions-grid td:first-child {
    border-left: 1px solid #DEE2E6;
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

.staff-positions-grid td:last-child {
    border-right: 1px solid #DEE2E6;
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

.staff-positions-grid a {
    color: #000;
    text-decoration: none;
}

.staff-positions-grid a:hover {
    color: var(--color-tertiary);
}

.staff-positions-grid .col-action {
    width: 60px;
}

/* ===== Mail Room Email - Action Hero Cards ===== */

.email-actions-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.email-action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #FFF;
    border: 1px solid #DEE2E6;
    border-radius: .5rem;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.email-action-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background .25s ease;
}

.email-action-card:hover {
    border-color: #CCC;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.email-action-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, #00A1BE, #00CC78);
}

.email-action-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, #FF4A11, #FF8A50);
}

.email-action-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 1.5rem;
    transition: transform .25s ease;
}

.email-action-card:hover .email-action-icon {
    transform: scale(1.08);
}

.email-action-body {
    flex: 1;
    min-width: 0;
}

.email-action-body h3 {
    margin: 0 0 .25rem;
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: #27282A;
}

.email-action-body p {
    margin: 0;
    font-size: .85rem;
    color: #6c757d;
    line-height: 1.4;
}

.email-action-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #CCC;
    transition: all .25s ease;
}

.email-action-card:hover .email-action-arrow {
    color: #00A1BE;
    transform: translateX(4px);
}

.email-action-card:nth-child(2):hover .email-action-arrow {
    color: #FF4A11;
}

@media (max-width: 767.98px) {
    .email-actions-hero {
        grid-template-columns: 1fr;
    }
}

/* Mission Control */
.mc-card {
    border: 1px solid #DEE2E6;
    transition: box-shadow 0.2s ease;
}
.mc-card:hover {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.1);
}
.mc-card .card-header {
    font-weight: 600;
    font-size: .95rem;
    color: #464646;
}
.mc-card .card-header i {
    font-size: 1.1rem;
}
.mc-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mc-link-list li {
    padding: .4rem 0;
    border-bottom: 1px solid #F0F0F0;
}
.mc-link-list li:last-child {
    border-bottom: none;
}
.mc-link-list li a {
    color: #464646;
    text-decoration: none;
    font-size: .88rem;
    font-family: var(--font-body);
    transition: color 0.15s;
    display: block;
    padding: .15rem .25rem;
    border-radius: .25rem;
}
.mc-link-list li a:hover {
    color: #00A1BE;
    background: #F8FDFE;
}
.mc-link-list li a i {
    color: #6c757d;
    width: 1.2rem;
    text-align: center;
    transition: color 0.15s;
}
.mc-link-list li a:hover i {
    color: #00A1BE;
}
.mc-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}
.mc-collapse-header:hover {
    background-color: #F0F0F0;
}
.mc-chevron {
    color: #6c757d;
    font-size: .85rem;
    transition: transform 0.2s;
}

/* Mission Control info-box on Christine dashboard */
.christine-info-row > a,
.christine-info-row > .legacy-link {
    min-width: 180px;
}
.mc-info-icon {
    background: linear-gradient(135deg, #00A1BE, #0082a0) !important;
}
.mc-info-box {
    border-left-color: #00A1BE;
}

/* ========== Dimension Tables Grid — row styling ========== */
.dimension-tables-grid { width: 100% !important; }
.dimension-tables-grid thead { display: none; }
.dimension-tables-grid tr { border: none !important; }
.dimension-tables-grid td { padding: .35rem .5rem !important; border: none !important; background: transparent !important; width: 100% !important; }

.dt-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    background: #FFF;
    border: 1px solid #E8EAED;
    border-left: 4px solid #00A1BE;
    border-radius: .5rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.dt-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.dt-row-body { flex: 1; min-width: 0; }
.dt-row-title {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    color: #27282A;
    margin-bottom: .25rem;
}
.dt-row-meta {
    font-size: .85rem;
    color: #6C757D;
}
.dt-row-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.dt-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s ease, color .15s ease;
    text-decoration: none !important;
}
.dt-action-open { color: #FFF; background: #00CC78; }
.dt-action-open:hover { background: #00995A; color: #FFF; }
.dt-action-cleanup { color: #FFF; background: #FF4A11; }
.dt-action-cleanup:hover { background: #E0400E; color: #FFF; }
.dt-action-delete { color: #FFF; background: #D8237C; }
.dt-action-delete:hover { background: #B01A65; color: #FFF; }

/* ========== Admin Grid — Rounded Row Borders (all migrated admin pages) ========== */
.password-resets-grid,
.sms-permissions-grid,
.persistent-filters-grid,
.blog-grid,
.kb-grid,
.whatsnew-grid,
.reports-grid,
.social-posts-grid,
.subscriptions-admin-grid,
.sub-payments-admin-grid,
.ava-training-grid,
.ava-log-grid,
.sign-in-log-grid,
.modifications-log-grid,
.activity-log-grid,
.interface-log-grid,
.stripe-txn-grid,
.stripe-payout-grid,
.recurring-donations-grid,
.recurring-payments-grid,
.ticket-sales-grid,
.events-current-grid,
.email-log-grid,
.email-batches-grid,
.spam-email-grid,
.customer-sub-grid,
.customer-sub-payments-grid,
.chat-mgmt-grid,
.past-due-grid,
.sub-record-counts-grid,
.trial-sub-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
}

.password-resets-grid thead,
.sms-permissions-grid thead,
.persistent-filters-grid thead,
.blog-grid thead,
.kb-grid thead,
.whatsnew-grid thead,
.reports-grid thead,
.social-posts-grid thead,
.subscriptions-admin-grid thead,
.sub-payments-admin-grid thead,
.ava-training-grid thead,
.ava-log-grid thead,
.sign-in-log-grid thead,
.modifications-log-grid thead,
.activity-log-grid thead,
.interface-log-grid thead,
.stripe-txn-grid thead,
.stripe-payout-grid thead,
.recurring-donations-grid thead,
.recurring-payments-grid thead,
.ticket-sales-grid thead,
.events-current-grid thead,
.email-log-grid thead,
.email-batches-grid thead,
.spam-email-grid thead,
.customer-sub-grid thead,
.customer-sub-payments-grid thead,
.chat-mgmt-grid thead,
.past-due-grid thead,
.sub-record-counts-grid thead,
.trial-sub-grid thead {
    display: none;
}

.password-resets-grid td,
.sms-permissions-grid td,
.persistent-filters-grid td,
.blog-grid td,
.kb-grid td,
.whatsnew-grid td,
.reports-grid td,
.social-posts-grid td,
.subscriptions-admin-grid td,
.sub-payments-admin-grid td,
.ava-training-grid td,
.ava-log-grid td,
.sign-in-log-grid td,
.modifications-log-grid td,
.activity-log-grid td,
.interface-log-grid td,
.stripe-txn-grid td,
.stripe-payout-grid td,
.recurring-donations-grid td,
.recurring-payments-grid td,
.ticket-sales-grid td,
.events-current-grid td,
.email-log-grid td,
.email-batches-grid td,
.spam-email-grid td,
.customer-sub-grid td,
.customer-sub-payments-grid td,
.chat-mgmt-grid td,
.past-due-grid td,
.sub-record-counts-grid td,
.trial-sub-grid td {
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 1.25rem .75rem !important;
    vertical-align: top;
    background: #FFF;
    border-top: 1px solid #DEE2E6;
    border-bottom: 1px solid #DEE2E6;
}

.password-resets-grid td:first-child,
.sms-permissions-grid td:first-child,
.persistent-filters-grid td:first-child,
.blog-grid td:first-child,
.kb-grid td:first-child,
.whatsnew-grid td:first-child,
.reports-grid td:first-child,
.social-posts-grid td:first-child,
.subscriptions-admin-grid td:first-child,
.sub-payments-admin-grid td:first-child,
.ava-training-grid td:first-child,
.ava-log-grid td:first-child,
.sign-in-log-grid td:first-child,
.modifications-log-grid td:first-child,
.activity-log-grid td:first-child,
.interface-log-grid td:first-child,
.stripe-txn-grid td:first-child,
.stripe-payout-grid td:first-child,
.recurring-donations-grid td:first-child,
.recurring-payments-grid td:first-child,
.ticket-sales-grid td:first-child,
.events-current-grid td:first-child,
.email-log-grid td:first-child,
.email-batches-grid td:first-child,
.spam-email-grid td:first-child,
.customer-sub-grid td:first-child,
.customer-sub-payments-grid td:first-child,
.chat-mgmt-grid td:first-child,
.past-due-grid td:first-child,
.sub-record-counts-grid td:first-child,
.trial-sub-grid td:first-child {
    border-left: 1px solid #DEE2E6;
    border-radius: .375rem 0 0 .375rem;
}

.password-resets-grid td:last-child,
.sms-permissions-grid td:last-child,
.persistent-filters-grid td:last-child,
.blog-grid td:last-child,
.kb-grid td:last-child,
.whatsnew-grid td:last-child,
.reports-grid td:last-child,
.social-posts-grid td:last-child,
.subscriptions-admin-grid td:last-child,
.sub-payments-admin-grid td:last-child,
.ava-training-grid td:last-child,
.ava-log-grid td:last-child,
.sign-in-log-grid td:last-child,
.modifications-log-grid td:last-child,
.activity-log-grid td:last-child,
.interface-log-grid td:last-child,
.stripe-txn-grid td:last-child,
.stripe-payout-grid td:last-child,
.recurring-donations-grid td:last-child,
.recurring-payments-grid td:last-child,
.ticket-sales-grid td:last-child,
.events-current-grid td:last-child,
.email-log-grid td:last-child,
.email-batches-grid td:last-child,
.spam-email-grid td:last-child,
.customer-sub-grid td:last-child,
.customer-sub-payments-grid td:last-child,
.chat-mgmt-grid td:last-child,
.past-due-grid td:last-child,
.sub-record-counts-grid td:last-child,
.trial-sub-grid td:last-child {
    border-right: 1px solid #DEE2E6;
    border-radius: 0 .375rem .375rem 0;
}

.password-resets-grid tbody tr,
.sms-permissions-grid tbody tr,
.persistent-filters-grid tbody tr,
.blog-grid tbody tr,
.kb-grid tbody tr,
.whatsnew-grid tbody tr,
.reports-grid tbody tr,
.social-posts-grid tbody tr,
.subscriptions-admin-grid tbody tr,
.sub-payments-admin-grid tbody tr,
.ava-training-grid tbody tr,
.ava-log-grid tbody tr,
.sign-in-log-grid tbody tr,
.modifications-log-grid tbody tr,
.activity-log-grid tbody tr,
.interface-log-grid tbody tr,
.stripe-txn-grid tbody tr,
.stripe-payout-grid tbody tr,
.recurring-donations-grid tbody tr,
.recurring-payments-grid tbody tr,
.ticket-sales-grid tbody tr,
.events-current-grid tbody tr,
.email-log-grid tbody tr,
.email-batches-grid tbody tr,
.spam-email-grid tbody tr,
.customer-sub-grid tbody tr,
.customer-sub-payments-grid tbody tr,
.chat-mgmt-grid tbody tr,
.past-due-grid tbody tr,
.sub-record-counts-grid tbody tr,
.trial-sub-grid tbody tr {
    background: transparent;
}

.password-resets-grid a,
.sms-permissions-grid a,
.persistent-filters-grid a,
.blog-grid a,
.kb-grid a,
.whatsnew-grid a,
.reports-grid a,
.social-posts-grid a,
.subscriptions-admin-grid a,
.sub-payments-admin-grid a,
.ava-training-grid a,
.ava-log-grid a,
.sign-in-log-grid a,
.modifications-log-grid a,
.activity-log-grid a,
.interface-log-grid a,
.stripe-txn-grid a,
.stripe-payout-grid a,
.recurring-donations-grid a,
.recurring-payments-grid a,
.ticket-sales-grid a,
.events-current-grid a,
.email-log-grid a,
.email-batches-grid a,
.spam-email-grid a,
.customer-sub-grid a,
.customer-sub-payments-grid a,
.chat-mgmt-grid a,
.past-due-grid a,
.sub-record-counts-grid a,
.trial-sub-grid a {
    color: #000;
    text-decoration: none;
}

.password-resets-grid a:hover,
.sms-permissions-grid a:hover,
.persistent-filters-grid a:hover,
.blog-grid a:hover,
.kb-grid a:hover,
.whatsnew-grid a:hover,
.reports-grid a:hover,
.social-posts-grid a:hover,
.subscriptions-admin-grid a:hover,
.sub-payments-admin-grid a:hover,
.ava-training-grid a:hover,
.ava-log-grid a:hover,
.sign-in-log-grid a:hover,
.modifications-log-grid a:hover,
.activity-log-grid a:hover,
.interface-log-grid a:hover,
.stripe-txn-grid a:hover,
.stripe-payout-grid a:hover,
.recurring-donations-grid a:hover,
.recurring-payments-grid a:hover,
.ticket-sales-grid a:hover,
.events-current-grid a:hover,
.email-log-grid a:hover,
.email-batches-grid a:hover,
.spam-email-grid a:hover,
.customer-sub-grid a:hover,
.customer-sub-payments-grid a:hover,
.chat-mgmt-grid a:hover,
.past-due-grid a:hover,
.sub-record-counts-grid a:hover,
.trial-sub-grid a:hover {
    color: var(--color-tertiary);
}

/* Stripe Transactions column widths */
.stripe-col-icon { width: 60px; }
.stripe-col-actions { width: 50px; }

/* Project Meeting Minutes grid */
.project-meeting-minutes-grid { width: 100%; }
.project-meeting-minutes-grid a { color: inherit; text-decoration: none; }
.project-meeting-minutes-grid a:hover { color: var(--color-tertiary); }

/* ── Event Financials ── */

.ef-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 991.98px) {
    .ef-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .ef-cards { grid-template-columns: 1fr; }
}

.ef-card {
    position: relative;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #E8EAED;
    border-left: 4px solid #E8EAED;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.ef-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.ef-card--active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-left-width: 5px;
    background: #FAFBFC;
    pointer-events: none;
}

.ef-card--orange { border-left-color: #FF4A11; }
.ef-card--pink   { border-left-color: #D8237C; }
.ef-card--teal   { border-left-color: #00A1BE; }
.ef-card--green  { border-left-color: #00CC78; }

.ef-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ef-card-icon--orange { background-color: #FF4A11; }
.ef-card-icon--pink   { background-color: #D8237C; }
.ef-card-icon--teal   { background-color: #00A1BE; }
.ef-card-icon--green  { background-color: #00CC78; }

.ef-card-title {
    font-weight: 700;
    color: #464646;
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.ef-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27282A;
    margin-bottom: 0.25rem;
}

.ef-card-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.ef-card-open {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.85rem;
    color: #999;
    transition: color .15s ease, transform .15s ease;
}
.ef-card:hover .ef-card-open { color: #666; transform: translateX(2px); }
.ef-card--active .ef-card-open { display: none; }

.ef-card-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
}

.ef-card--orange .ef-card-link { color: #FF4A11; }
.ef-card--pink   .ef-card-link { color: #D8237C; }
.ef-card--teal   .ef-card-link { color: #00A1BE; }
.ef-card--green  .ef-card-link { color: #00CC78; }

.ef-card--orange .ef-card-link:hover { color: #E0400E; }
.ef-card--pink   .ef-card-link:hover { color: #B81D68; }
.ef-card--teal   .ef-card-link:hover { color: #038CA5; }
.ef-card--green  .ef-card-link:hover { color: #00b56b; }

.ef-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.95rem;
    color: #464646;
}

.ef-summary-row:last-child {
    border-bottom: none;
}

.ef-summary-total {
    background: #F8F9FA;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
}

.ef-net-positive { color: #00CC78; }
.ef-net-negative { color: #D8237C; }

a.ef-id-link, a.ef-id-link:hover, a.ef-id-link:focus { color: #FF4A11 !important; text-decoration-color: #FF4A11 !important; }

/* ── Event Financials Summary Bar ── */
.ef-summary-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #FAFBFC 0%, #F4F6F8 100%);
    border: 1px solid #E8EAED;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.ef-summary-bar:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #00A1BE;
    text-decoration: none;
    color: inherit;
}
.ef-summary-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ef-summary-bar-icon {
    font-size: 1.25rem;
}
.ef-summary-bar-icon--green { color: #00CC78; }
.ef-summary-bar-icon--orange { color: #FF4A11; }
.ef-summary-bar-icon--pink { color: #D8237C; }
.ef-summary-bar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.ef-summary-bar-value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}
.ef-summary-bar-divider {
    width: 1px;
    height: 2rem;
    background: #DEE2E6;
    flex-shrink: 0;
}
.ef-summary-bar-action {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00A1BE;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.ef-summary-bar:hover .ef-summary-bar-action { color: #038CA5; }

@media (max-width: 767.98px) {
    .ef-summary-bar { flex-wrap: wrap; gap: 0.75rem; }
    .ef-summary-bar-divider { display: none; }
    .ef-summary-bar-action { flex-basis: 100%; justify-content: center; padding-top: 0.5rem; border-top: 1px solid #E8EAED; }
}

/* ── Event Financials Grid Action Circles ── */
.ef-action-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.ef-action-circle:hover { opacity: .85; transform: scale(1.08); }
.ef-action-circle--save { background: #FF4A11; }
.ef-action-circle--delete { background: #D8237C; }

