body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fc;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tracker-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracker-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #1a237e; /* Dark Blue */
}

.status-indicator {
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: center;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4caf50; /* Green */
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.last-updated {
    margin-left: 15px;
    color: #777;
    font-style: italic;
}

.summary-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-box {
    background-color: #e8eaf6; /* Light Indigo */
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #c5cae9;
}

.summary-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #3f51b5; /* Indigo */
    font-weight: 600;
}

.summary-box p {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #1a237e;
}

.summary-box span {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
}

.summary-box.variance-positive p {
    color: #388e3c; /* Green */
}
.summary-box.variance-positive span {
    color: #388e3c;
}

.summary-box.pending-approval p {
    color: #f57c00; /* Orange */
}
.summary-box.pending-approval span {
    color: #f57c00;
}


.filter-controls {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-controls label {
    font-weight: 600;
    margin-right: 5px;
}

.filter-controls select,
.filter-controls button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-controls button {
    background-color: #3f51b5; /* Indigo */
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-controls button:hover {
    background-color: #303f9f; /* Darker Indigo */
}

.capex-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.capex-table th,
.capex-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}

.capex-table th {
    background-color: #3f51b5; /* Indigo */
    color: white;
    font-weight: 600;
}

.capex-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.capex-table tbody tr:hover {
    background-color: #e8eaf6; /* Light Indigo on hover */
}

.capex-table td:nth-child(5),
.capex-table td:nth-child(6),
.capex-table td:nth-child(7) {
    text-align: right;
    font-family: 'Courier New', Courier, monospace; /* Monospaced for numbers */
}

/* Status specific styling */
.capex-table .status-on-track td:nth-child(8) {
    color: #388e3c; /* Green */
    font-weight: bold;
}

.capex-table .status-over-budget td:nth-child(8) {
    color: #d32f2f; /* Red */
    font-weight: bold;
}
.capex-table .status-over-budget td:nth-child(7) {
    color: #d32f2f;
    font-weight: bold;
}

.capex-table .status-under-budget td:nth-child(8) {
    color: #388e3c; /* Green */
}
.capex-table .status-under-budget td:nth-child(7) {
    color: #388e3c;
}

.capex-table .status-pending td:nth-child(8) {
    color: #f57c00; /* Orange */
    font-style: italic;
}

.capex-table .status-completed td:nth-child(8) {
    color: #757575; /* Grey */
}

/* Formatting for Variance Column */
.capex-table td:nth-child(7) {
    font-weight: bold;
}

/* --- Media Queries --- */

@media (max-width: 768px) {
    .tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .tracker-header h1 {
        font-size: 1.5em;
    }
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-controls select,
    .filter-controls button {
        width: 100%;
    }
    .capex-table {
        font-size: 0.8em;
    }
    .capex-table th,
    .capex-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }
    .tracker-header h1 {
        font-size: 1.3em;
    }
    .summary-boxes {
        grid-template-columns: 1fr; /* Stack boxes */
    }
    .summary-box p {
        font-size: 1.3em;
    }
    /* Consider more drastic table changes here if needed (e.g., display: block) */
}

#ezPrivacyCenter {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    background-color: #5fa624 !important;
    color: white !important;
    border-radius: 5px !important;
    z-index: 2147483647 !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
} 