.aws-billing-dashboard { max-width: 900px; margin: 0 auto; }

.billing-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.billing-header h1 { margin: 0; font-size: 1.5rem; }

.billing-card {
    background: #fff; border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1); margin-bottom: 20px;
}
.billing-card h3 { margin: 0 0 16px; font-size: 1rem; color: #374151; }

.total-card { text-align: center; padding: 32px; }
.total-label { font-size: 0.875rem; color: #6b7280; margin-bottom: 4px; }
.total-amount { font-size: 2.5rem; font-weight: 700; color: #111827; }
.total-month { font-size: 0.875rem; color: #9ca3af; margin-top: 4px; }

.month-selector {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.month-btn {
    background: #f3f4f6; border: 1px solid #e5e7eb; padding: 8px 16px;
    border-radius: 8px; cursor: pointer; font-size: 0.875rem; color: #374151;
}
.month-btn:hover { background: #e5e7eb; }
.month-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

.services-table { width: 100%; border-collapse: collapse; }
.services-table th {
    text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5e7eb;
    font-size: 0.8rem; color: #6b7280; font-weight: 600;
}
.services-table td {
    padding: 10px 12px; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem;
}
.services-table tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }

.pct-bar {
    display: inline-block; height: 8px; border-radius: 4px;
    background: #3b82f6; margin-right: 8px; vertical-align: middle;
}

.fetch-btn {
    background: #10b981; color: #fff; border: none; padding: 8px 20px;
    border-radius: 8px; cursor: pointer; font-size: 0.875rem;
}
.fetch-btn:hover { background: #059669; }

.last-updated { font-size: 0.8rem; color: #9ca3af; margin-left: 8px; }

.fetch-info { text-align: right; font-size: 0.8rem; color: #9ca3af; }

.alert-success {
    background: #d1fae5; color: #065f46; padding: 12px 16px;
    border-radius: 8px; margin-bottom: 16px; font-size: 0.875rem;
}
