body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
}
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}
h1 {
    font-size: 28px;
}
.tools-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.tool-card {
    background-color: #ffffff;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.tool-card a {
    color: #2563eb;
    text-decoration: none;
}

.tool-card a:hover {
    text-decoration: underline;
}

.tool-card p {
    margin-bottom: 0;
    color: #6b7280;
}
.tool-card:hover {
    border-color: #2563eb;
}
.login-form {
    max-width: 400px;
}
.login-form label {
    display: block;
    margin-bottom: 6px;
}

.login-form input:not([type="hidden"]) {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font: inherit;
}

.login-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.login-form .errorlist {
    color: #b91c1c;
}
.login-form button:hover {
    background-color: #1d4ed8;
}
.login-form input:focus {
    border-color: #2563eb;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.login-form button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.report-card {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 16px;
}
.report-status-running strong {
    color: #92400e;
}
.report-status-created strong {
    color: #4b5563;
}
.report-status-done strong {
    color: #166534;
}
.report-status-failed strong {
    color: #b91c1c;
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    width: calc(100vw - 64px);
    margin-left: calc(50% - 50vw + 32px);
}

.chart-card {
    min-width: 0;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.chart-card h2 {
    margin-top: 0;
    font-size: 20px;
}

.chart-container {
    position: relative;
    height: 460px;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.summary-card {
    min-width: 0;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.summary-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #4b5563;
}

.summary-value {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.summary-card p:last-child {
    margin-bottom: 0;
}
.table-container {
    overflow-x: auto;
    margin: 16px 0;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.cost-table th,
.cost-table td {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    text-align: left;
}

.cost-table th {
    background-color: #e5e7eb;
    font-weight: bold;
}

.cost-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.cost-table tbody tr:hover {
    background-color: #eff6ff;
}

.cost-table th:nth-child(4),
.cost-table td:nth-child(4) {
    text-align: right;
}

.cost-table td:nth-child(3),
.cost-table td:nth-child(4),
.cost-table td:nth-child(5) {
    white-space: nowrap;
}

.form-error {
    color: #b91c1c;
    padding: 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.finance-sync-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background-color: #ffffff;
}

.finance-sync-table th,
.finance-sync-table td {
    padding: 12px;
    border: 1px solid #d1d5db;
    text-align: left;
    vertical-align: top;
}

.finance-sync-table th {
    background-color: #e5e7eb;
}

.finance-sync-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.finance-sync-table tbody tr:hover {
    background-color: #eff6ff;
}
