@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300&display=swap');

html,
body.ao-forest {
    height: 100%;
}

body.ao-forest {
    --primary-ocean: #1a4731;
    --secondary-teal: #265c42;
    --secondary-cyan: #2f6d4b;
    --accent-coral: #dcfce7;
    --accent-purple: #1a4731;
    --bg-ocean-gradient: linear-gradient(135deg, #1a4731 0%, #265c42 60%, #2f6d4b 100%);
    --section-gradient-transactions: var(--bg-ocean-gradient);
    --section-gradient-pending-validation: linear-gradient(135deg, #1a4731 0%, #2f6d4b 55%, #265c42 100%);
    --section-gradient-pending-approval: linear-gradient(135deg, #1a4731 0%, #265c42 55%, #2f6d4b 100%);
    --section-gradient-approved-income: linear-gradient(135deg, #1a4731 0%, #2f6d4b 55%, #265c42 100%);
    --section-gradient-approved-expenses: linear-gradient(135deg, #1a4731 0%, #265c42 55%, #2f6d4b 100%);
    --bg-pride-gradient: linear-gradient(135deg, #1a4731 0%, #265c42 60%, #e6f2ed 100%);
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f7f5;
    --text-primary: #1f2937;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --border: #e2e8f0;
    --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px rgba(26, 71, 49, 0.15);
    --shadow-xl: 0 20px 25px rgba(26, 71, 49, 0.18);
    --nav-bg-primary: #1a4731;
    --nav-bg-secondary: #265c42;
    --nav-text-primary: #ffffff;
    --nav-text-secondary: rgba(255, 255, 255, 0.7);
    --nav-primary-ocean: #dcfce7;
    --nav-ocean-accent: #dcfce7;
    --nav-bg-ocean-gradient: linear-gradient(135deg, #1a4731 0%, #265c42 100%);

    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.ao-forest h1,
body.ao-forest h2,
body.ao-forest h3,
body.ao-forest h4,
body.ao-forest .section-title,
body.ao-forest .card-title,
body.ao-forest .note-title,
body.ao-forest .note-version,
body.ao-forest .program-info h1,
body.ao-forest .header-content h1,
body.ao-forest .kpi-card h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1a4731;
    letter-spacing: -0.01em;
}

body.ao-forest label,
body.ao-forest .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

body.ao-forest .main-container,
body.ao-forest .content,
body.ao-forest .container {
    max-width: 72rem;
    margin: 0 auto;
}

body.ao-forest .page-header {
    background: #1a4731;
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

body.ao-forest .page-header--requests {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: transparent;
    color: #1a4731;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

body.ao-forest .page-header--requests .header-program {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 200px;
    align-items: flex-start;
}

body.ao-forest .page-header--requests .header-program label {
    color: #64748b;
}

body.ao-forest .page-header--requests .header-program select {
    height: 40px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    box-shadow: var(--shadow-md);
}

body.ao-forest .page-header--requests .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.ao-forest .page-header.page-header--requests h1 {
    color: #1a4731;
    font-size: 2rem;
    font-family: "Merriweather", serif;
    margin: 0;
}

body.ao-forest .page-header::after {
    background: none;
    opacity: 0;
}

body.ao-forest .page-header h1,
body.ao-forest .page-header h2,
body.ao-forest .page-header p,
body.ao-forest .page-header .header-links a,
body.ao-forest .page-header .version-badge {
    color: #ffffff;
}

body.ao-forest .page-header .header-links a {
    background: rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

body.ao-forest .page-header .header-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.ao-forest .header-content h1 {
    background: none;
    -webkit-text-fill-color: inherit;
}

body.ao-forest .card,
body.ao-forest .note-card,
body.ao-forest .program-summary-card,
body.ao-forest .kpi-card,
body.ao-forest .section,
body.ao-forest .modal-section-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

body.ao-forest .kpi-card {
    border-radius: 1.5rem;
    min-height: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.ao-forest .card-header,
body.ao-forest .section-header[data-section],
body.ao-forest .card.header {
    background: var(--bg-ocean-gradient);
    color: #ffffff;
    border: none;
}

body.ao-forest .card-header h2,
body.ao-forest .card-header p,
body.ao-forest .section-header .section-title,
body.ao-forest .section-header .section-title span {
    color: #ffffff;
    font-family: 'Merriweather', serif;
}

body.ao-forest .section-header[data-section] {
    background: #f8f9fa;
    color: #1a4731;
    border-bottom: 1px solid #e2e8f0;
}

body.ao-forest .section-header[data-section] .section-title,
body.ao-forest .section-header[data-section] .section-title span {
    color: #1a4731;
    font-family: 'Merriweather', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

body.ao-forest .section-header[data-section] .section-actions .btn,
body.ao-forest .section-header[data-section] .section-actions select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}

body.ao-forest .section-header[data-section] .section-actions .btn:hover,
body.ao-forest .section-header[data-section] .section-actions select:hover {
    background: #f8fafc;
}

body.ao-forest .section-header[data-section="whats-new"] {
    background: var(--section-gradient-transactions);
    color: #ffffff;
    border-bottom: none;
}

body.ao-forest .section-header[data-section="whats-new"] .section-title {
    color: #ffffff;
}

body.ao-forest .section-header[data-section="whats-new"] .section-actions .btn,
body.ao-forest .section-header[data-section="whats-new"] .section-actions .status-message {
    color: #ffffff;
}

body.ao-forest .section-header[data-section="whats-new"] .section-actions .btn {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

body.ao-forest .section-header[data-section="whats-new"] .section-actions .btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

body.ao-forest .whats-new-card .card-header {
    background: linear-gradient(135deg, #265c42 0%, #2f6d4b 100%);
}

body.ao-forest .note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

body.ao-forest .note-version {
    font-weight: 700;
    color: #1a4731;
    font-size: 1.05rem;
}

body.ao-forest .note-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.ao-forest .note-title {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.2rem;
}

body.ao-forest .note-summary {
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
}

body.ao-forest .note-section {
    margin-top: 0.75rem;
}

body.ao-forest .note-section h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: #1a4731;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

body.ao-forest .note-section ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

body.ao-forest .treasurer-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

body.ao-forest .section-header-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

body.ao-forest .section-header-band .section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #1a4731;
}

body.ao-forest .version-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

body.ao-forest .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.ao-forest .section-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

body.ao-forest .section-body.p-0 {
    padding: 0;
}

body.ao-forest .empty-state-container {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.9rem;
    background: #ffffff;
    color: var(--text-muted);
}

body.ao-forest .release-notes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
}

body.ao-forest .release-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.ao-forest .release-card.latest-release {
    border-left: 4px solid #1a4731;
}

body.ao-forest .release-card-header {
    margin-bottom: 1rem;
}

body.ao-forest .release-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.ao-forest .release-version {
    color: #1a4731;
}

body.ao-forest .badge-latest {
    background: #1a4731;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

body.ao-forest .release-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.25rem 0 0.75rem;
}

body.ao-forest .release-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.ao-forest .chip-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
}

body.ao-forest .chip-status.added { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
body.ao-forest .chip-status.changed { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
body.ao-forest .chip-status.fixed { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
body.ao-forest .chip-status.roadmap { background: #fdf2f7; color: #9d174d; border: 1px solid #fbcfe8; }

body.ao-forest .release-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

body.ao-forest .details-toggle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a4731;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

body.ao-forest .details-toggle::before {
    content: '→';
    transition: transform 0.2s ease;
}

body.ao-forest .release-details[open] .details-toggle::before {
    transform: rotate(90deg);
}

body.ao-forest .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 1.25rem;
}

body.ao-forest .change-group h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.25rem;
}

body.ao-forest .change-group ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

body.ao-forest .change-group li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

body.ao-forest .btn-action-outline {
    background: #ffffff;
    color: #1a4731;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

body.ao-forest .btn-action-outline:hover {
    background: #f8fafc;
    color: #143625;
}

@media (max-width: 768px) {
    body.ao-forest .section-header-band {
        flex-direction: column;
        align-items: flex-start;
    }
    body.ao-forest .version-label {
        margin-left: 0;
    }
}

body.ao-forest .whats-new-feed {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
    display: grid;
    gap: 1.25rem;
}

body.ao-forest .whats-new-card {
    position: relative;
    padding-left: 2rem;
}

body.ao-forest .whats-new-card::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 1.6rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #1a4731;
    box-shadow: 0 0 0 4px #e6f2ed;
}

body.ao-forest .whats-new-card.is-latest::before {
    background: #16a34a;
}

body.ao-forest .whats-new-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.ao-forest .whats-new-badge {
    background: #1a4731;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

body.ao-forest .whats-new-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

body.ao-forest .whats-new-chip {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
}

body.ao-forest .whats-new-chip.chip-added { background: #dcfce7; color: #166534; }
body.ao-forest .whats-new-chip.chip-changed { background: #e0f2fe; color: #075985; }
body.ao-forest .whats-new-chip.chip-fixed { background: #fee2e2; color: #991b1b; }
body.ao-forest .whats-new-chip.chip-roadmap { background: #fef3c7; color: #92400e; }

body.ao-forest .whats-new-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a4731;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

body.ao-forest .whats-new-details summary::-webkit-details-marker {
    display: none;
}

body.ao-forest .whats-new-details-body {
    padding-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

body.ao-forest .program-summary-card:hover,
body.ao-forest .card:hover,
body.ao-forest .note-card:hover {
    border-color: rgba(26, 71, 49, 0.3);
    box-shadow: 0 8px 16px rgba(26, 71, 49, 0.12);
    transform: translateY(-2px);
}

body.ao-forest .nav-link.active {
    background: #265c42;
    border-right-color: #dcfce7;
}

body.ao-forest .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.ao-forest .nav-section-title {
    color: rgba(255, 255, 255, 0.7);
}

body.ao-forest .btn,
body.ao-forest .btn-link,
body.ao-forest button {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

body.ao-forest .btn.primary,
body.ao-forest .btn-primary,
body.ao-forest .btn.btn-primary,
body.ao-forest .btn-link {
    background: #1a4731;
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 15px rgba(26, 71, 49, 0.15);
}

body.ao-forest .btn.primary:hover,
body.ao-forest .btn-primary:hover,
body.ao-forest .btn.btn-primary:hover,
body.ao-forest .btn-link:hover {
    background: #143625;
    transform: translateY(-1px);
}

body.ao-forest .btn.secondary,
body.ao-forest .btn-secondary,
body.ao-forest .btn-outline-primary,
body.ao-forest .btn-outline-danger,
body.ao-forest .btn-outline-warning,
body.ao-forest .btn-link.secondary {
    background: #ffffff;
    color: #1a4731;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

body.ao-forest .btn.secondary:hover,
body.ao-forest .btn-secondary:hover,
body.ao-forest .btn-outline-primary:hover,
body.ao-forest .btn-outline-danger:hover,
body.ao-forest .btn-outline-warning:hover,
body.ao-forest .btn-link.secondary:hover {
    background: #f8fafc;
    color: #143625;
}

body.ao-forest .btn-success,
body.ao-forest .btn-warning,
body.ao-forest .btn-danger {
    border-radius: 0.5rem;
}

body.ao-forest input,
body.ao-forest select,
body.ao-forest textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.ao-forest table {
    width: 100%;
    border-collapse: collapse;
}

body.ao-forest input:focus,
body.ao-forest select:focus,
body.ao-forest textarea:focus {
    outline: none;
    border-color: #1a4731;
    box-shadow: 0 0 0 2px rgba(26, 71, 49, 0.2);
}

body.ao-forest table thead th {
    background: #f8f9fa;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

body.ao-forest table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

body.ao-forest table tbody tr:hover {
    background: #f2f7f5;
}

body.ao-forest table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #0f172a;
}

body.ao-forest table .status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
}

body.ao-forest .amount-positive,
body.ao-forest .amount-negative {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

body.ao-forest .amount-positive {
    color: #166534;
}

body.ao-forest .amount-negative {
    color: #334155;
}

body.ao-forest .transaction-description {
    color: #475569;
}

body.ao-forest .transaction-description .short-description {
    font-weight: 600;
    color: #0f172a;
}

body.ao-forest .transaction-description .full-description {
    color: #64748b;
}

body.ao-forest .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

body.ao-forest .pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

body.ao-forest .pagination-pills {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.ao-forest .pagination-pill {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.4rem 0.7rem;
    min-width: 32px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.ao-forest .pagination-pill:hover:not(:disabled) {
    background: #f2f7f5;
    color: #1a4731;
}

body.ao-forest .pagination-pill.is-active {
    background: #1a4731;
    color: #ffffff;
}

body.ao-forest .pagination-pill:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.ao-forest .badge,
body.ao-forest .pill,
body.ao-forest .status-badge {
    background: #dcfce7;
    color: #1a4731;
    border: 1px solid #cce3d9;
}

body.ao-forest .treasurer-shell {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.ao-forest .treasurer-sidebar {
    width: 260px;
    background: #1a4731;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

body.ao-forest .sidebar-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

body.ao-forest .sidebar-badge {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.1rem;
}

body.ao-forest .sidebar-title {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

body.ao-forest .sidebar-title span {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(220, 252, 231, 0.7);
}

body.ao-forest .sidebar-title strong {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
}

body.ao-forest .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.ao-forest .sidebar-nav .tab-button {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

body.ao-forest .sidebar-nav .tab-button .tab-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

body.ao-forest .nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

body.ao-forest .nav-badge--danger {
    background: #dc2626;
}

body.ao-forest .nav-badge--purple {
    background: #7c3aed;
}

body.ao-forest .sidebar-nav .tab-button.is-active {
    background: #265c42;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body.ao-forest .sidebar-nav .tab-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.ao-forest .sidebar-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.ao-forest .sidebar-footer-name {
    font-weight: 600;
    font-size: 0.9rem;
}

body.ao-forest .sidebar-footer-role {
    font-size: 0.7rem;
    color: rgba(220, 252, 231, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.2rem;
}

body.ao-forest .sidebar-footer .sidebar-logout {
    display: inline-flex;
    margin-top: 0.35rem;
    color: rgba(220, 252, 231, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

body.ao-forest .sidebar-footer .sidebar-logout:hover {
    text-decoration: underline;
}

body.ao-forest .sidebar-footer .sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dcfce7;
    color: #1a4731;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Merriweather', serif;
}

body.ao-forest .treasurer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

body.ao-forest .treasurer-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(260px, auto) 1fr auto;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    z-index: 20;
}

body.ao-forest .treasurer-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

body.ao-forest .treasurer-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

body.ao-forest .header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.ao-forest .header-title h1 {
    font-size: 1.4rem;
    margin: 0;
}

body.ao-forest .header-title .header-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

body.ao-forest .header-logo {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    object-fit: contain;
    background: #f2f7f5;
    padding: 0.35rem;
    border: 1px solid #e6f2ed;
}

body.ao-forest .treasurer-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

body.ao-forest .treasurer-header-center {
    display: flex;
    justify-content: center;
}

body.ao-forest .treasurer-header-right .btn {
    height: 40px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.ao-forest .treasurer-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(420px, 100%);
}

body.ao-forest .treasurer-search i {
    position: absolute;
    left: 0.85rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

body.ao-forest .treasurer-search input {
    height: 40px;
    padding: 0 1rem 0 2.4rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.85rem;
    min-width: 230px;
    transition: all 0.2s ease;
}

body.ao-forest .treasurer-search input:focus {
    border-color: #1a4731;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(26, 71, 49, 0.15);
}

body.ao-forest .treasurer-search .search-drawer {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 60;
    overflow: hidden;
}

body.ao-forest .search-drawer-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

body.ao-forest .search-drawer-title {
    font-weight: 600;
    color: #1f2937;
}

body.ao-forest .search-drawer-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.ao-forest .search-drawer-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

body.ao-forest .search-result-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
}

body.ao-forest .search-result-item:hover {
    background: #f1f5f9;
}

body.ao-forest .search-result-title {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

body.ao-forest .search-result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.ao-forest .search-result-tag {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #334155;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

body.ao-forest .search-drawer-pagination {
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

body.ao-forest .transaction-highlight {
    background: #fef9c3;
    transition: background 0.6s ease;
}

body.ao-forest .notification-anchor {
    position: relative;
}

body.ao-forest .treasurer-content {
    flex: 1;
    padding: 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-y: auto;
}

body.ao-forest .treasurer-embed {
    width: 100%;
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    min-height: 70vh;
    box-shadow: var(--shadow-md);
}

body.ao-forest .treasurer-mobile-header {
    display: none;
    background: #1a4731;
    color: #ffffff;
    padding: 0.85rem 1rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

body.ao-forest .treasurer-mobile-header button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
}

body.ao-forest .tab-panel {
    display: block;
}

body.ao-forest .tab-panel.is-hidden {
    display: none;
}

body.ao-forest.tabs-loading .tab-panel {
    display: none;
}

body.ao-forest .request-tabs {
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

body.ao-forest .request-tab {
    border: none;
    background: transparent;
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

body.ao-forest .request-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

body.ao-forest .request-tab.is-active {
    background: #f2f7f5;
    color: #1a4731;
    box-shadow: inset 0 0 0 1px #cce3d9;
}

body.ao-forest .request-tab.is-active .tab-count {
    background: #d1e7df;
    color: #1a4731;
}

body.ao-forest .request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

body.ao-forest .request-tab-panel {
    margin-top: 1rem;
}

body.ao-forest .request-tab-panel:not(.is-active) {
    display: none;
}

body.ao-forest .program-logo-center {
    display: none !important;
    position: static;
    inset: auto;
}

body.ao-forest .request-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.25rem 1.1rem;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 0;
    transition: all 0.2s ease;
    width: 100%;
}

body.ao-forest .request-card:hover {
    border-color: rgba(26, 71, 49, 0.3);
    box-shadow: 0 8px 16px rgba(26, 71, 49, 0.12);
    transform: translateY(-2px);
}

body.ao-forest .request-card.request-card--new {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 0;
}

body.ao-forest .request-card--new::before {
    display: none;
}

body.ao-forest .request-card--new .request-card-plus {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1a4731;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
}

body.ao-forest .request-card--new .request-card-title {
    color: #1a4731;
}

body.ao-forest .request-card--new:hover {
    border-color: #1a4731;
    background: #f2f7f5;
}

body.ao-forest .request-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #1a4731;
}

body.ao-forest .request-card.status-draft::before { background: #2563eb; }
body.ao-forest .request-card.status-submitted::before { background: #1a4731; }
body.ao-forest .request-card.status-processing::before { background: #0f766e; }
body.ao-forest .request-card.status-needs_info::before { background: #d97706; }
body.ao-forest .request-card.status-approved::before { background: #475569; }
body.ao-forest .request-card.status-paid::before { background: #16a34a; }
body.ao-forest .request-card.status-reconciled::before { background: #15803d; }

body.ao-forest .request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.ao-forest .request-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

body.ao-forest .request-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

body.ao-forest .request-card-amount {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a4731;
    margin: 0.9rem 0 0.6rem;
}

body.ao-forest .request-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

body.ao-forest .request-card-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.ao-forest .request-form-card {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100%);
    margin: 0;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 80;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 2rem;
    visibility: hidden;
    pointer-events: none;
}

body.ao-forest .request-form-card.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

body.ao-forest .request-form-card form {
    flex: 1;
}

body.ao-forest .request-form-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 70;
}

body.ao-forest .request-form-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.ao-forest.request-drawer-open {
    overflow: hidden;
}

body.ao-forest .request-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body.ao-forest .request-drawer-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
}

body.ao-forest .request-drawer-title {
    font-size: 1.5rem;
    font-family: "Merriweather", serif;
    font-weight: 700;
    color: #1a4731;
}

body.ao-forest .request-drawer-close {
    border: none;
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.ao-forest .request-drawer-close:hover {
    background: #e2e8f0;
    color: #1a4731;
}

body.ao-forest .request-card-actions .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
}

body.ao-forest .status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(26, 71, 49, 0.15);
    background: #f2f7f5;
    color: #1a4731;
}

body.ao-forest .status-pill.status-draft { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.ao-forest .status-pill.status-submitted { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
body.ao-forest .status-pill.status-processing { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
body.ao-forest .status-pill.status-needs_info { background: #fef3c7; color: #b45309; border-color: #fde68a; }
body.ao-forest .status-pill.status-approved { background: #e2e8f0; color: #334155; border-color: #cbd5f5; }
body.ao-forest .status-pill.status-paid { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
body.ao-forest .status-pill.status-reconciled { background: #bbf7d0; color: #166534; border-color: #86efac; }

body.ao-forest .w9-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    border: 1px solid #fef3c7;
    background: #fffbeb;
    color: #b45309;
}

body.ao-forest .w9-pill.ok {
    border-color: #dcfce7;
    background: #f0fdf4;
    color: #166534;
}

body.ao-forest .settings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.ao-forest .settings-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

body.ao-forest .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

body.ao-forest .form-grid .full-width {
    grid-column: 1 / -1;
}

body.ao-forest .settings-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.ao-forest .settings-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f2f7f5;
}

body.ao-forest .settings-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

body.ao-forest .user-indicator-wrapper {
    position: static;
    z-index: auto;
}

body.ao-forest .user-indicator {
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
}

body.ao-forest .notification-bell {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1a4731;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.ao-forest .notification-bell:hover {
    background: #f8fafc;
    color: #1a4731;
}

body.ao-forest .notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

body.ao-forest .notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    width: 320px;
    max-height: 420px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    box-shadow: 0 18px 24px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    z-index: 100;
}

body.ao-forest .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a4731;
    margin-bottom: 0.5rem;
}

body.ao-forest .notification-panel .btn-outline {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    box-shadow: none;
}

body.ao-forest .notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

body.ao-forest .notification-item {
    font-size: 0.8rem;
    color: #475569;
    padding: 0.55rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
}

body.ao-forest .notification-item.unread {
    background: #f2f7f5;
    border-color: #cce3d9;
    color: #1a4731;
}

body.ao-forest .status-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.ao-forest .status-message.success {
    color: #16a34a;
}

body.ao-forest .status-message.error {
    color: #dc2626;
}

body.ao-forest .embedded .page-header,
body.ao-forest.embedded .page-header {
    margin-top: 0;
}

body.ao-forest.embedded .main-container {
    padding: 1.5rem;
    max-width: none;
}

body.ao-forest.embedded .request-form-card {
    display: none;
}

body.ao-forest.embedded .request-form-card.is-open {
    display: flex;
}

body.ao-forest.embedded .page-header--requests .header-program {
    display: none;
}

@media (max-width: 1024px) {
    body.ao-forest .treasurer-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -280px;
        width: 260px;
        display: flex;
        transition: left 0.25s ease;
        z-index: 40;
    }
    body.ao-forest .treasurer-sidebar.is-open {
        left: 0;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
    }
    body.ao-forest .treasurer-mobile-header {
        display: flex;
    }
    body.ao-forest .treasurer-header {
        position: static;
        padding: 1.25rem;
        grid-template-columns: 1fr;
    }

    body.ao-forest .treasurer-header-left {
        width: 100%;
    }

    body.ao-forest .treasurer-header-center {
        order: 2;
    }

    body.ao-forest .treasurer-search {
        width: 100%;
        justify-self: stretch;
    }

    body.ao-forest .treasurer-header-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    body.ao-forest .page-header--requests {
        flex-direction: column;
        align-items: flex-start;
    }

    body.ao-forest .page-header--requests .header-program {
        width: 100%;
    }

    body.ao-forest .page-header--requests .header-program select {
        width: 100%;
    }
}

body.ao-forest .pullback-requests-panel {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: hidden;
}

body.ao-forest .pullback-requests-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

body.ao-forest .pullback-requests-inline {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
    background: #f8fafc;
}

body.ao-forest .pullback-requests-inline-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

body.ao-forest .pullback-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.ao-forest .pullback-request-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

body.ao-forest .pullback-request-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.ao-forest .pullback-request-reason {
    font-size: 0.85rem;
    color: var(--text-primary);
}

body.ao-forest .pullback-request-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
