2025-11-10 15:46:40 +01:00
|
|
|
.billing-dashboard {
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
max-width: 1400px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.billing-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2025-11-12 04:48:43 +01:00
|
|
|
margin-bottom: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subscription-badge {
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subscription-badge.active {
|
|
|
|
|
background: #10b981;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subscription-badge.inactive {
|
|
|
|
|
background: #ef4444;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.billing-cards {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
2025-11-12 04:48:43 +01:00
|
|
|
gap: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
margin-bottom: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.billing-card {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
box-shadow: 0 1px 3px var(--shadow-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.billing-card h3 {
|
|
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
|
color: #1f2937;
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-details {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-label {
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-value {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
color: #1f2937;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-progress {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 8px;
|
|
|
|
|
background: #e5e7eb;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-progress-bar {
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: linear-gradient(90deg, #3b82f6, #2563eb);
|
|
|
|
|
transition: width 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.usage-info {
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.estimated-cost {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #1f2937;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cost-breakdown {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
border-top: 1px solid #e5e7eb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cost-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-details {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
|
border-bottom: 1px solid #f3f4f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-item:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-section {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
margin-bottom: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table {
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table th,
|
|
|
|
|
.invoices-table td {
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
text-align: left;
|
|
|
|
|
border-bottom: 1px solid #e5e7eb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table th {
|
|
|
|
|
background: #f9fafb;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #374151;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-status {
|
|
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-status.paid {
|
|
|
|
|
background: #d1fae5;
|
|
|
|
|
color: #065f46;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-status.open {
|
|
|
|
|
background: #fef3c7;
|
|
|
|
|
color: #92400e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-status.draft {
|
|
|
|
|
background: #e5e7eb;
|
|
|
|
|
color: #374151;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.no-invoices {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 2rem;
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.payment-methods-section {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.modal {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2025-11-12 04:48:43 +01:00
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
2025-11-10 15:46:40 +01:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-11-12 04:48:43 +01:00
|
|
|
justify-content: center;
|
2025-11-10 15:46:40 +01:00
|
|
|
z-index: 1000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-content {
|
2025-11-12 04:48:43 +01:00
|
|
|
background-color: var(--accent-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
max-width: 800px;
|
2025-11-12 04:48:43 +01:00
|
|
|
width: 90%;
|
|
|
|
|
max-height: 85vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: 0 4px 20px var(--shadow-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.close-button {
|
|
|
|
|
align-self: flex-end;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: var(--text-color-light);
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin-bottom: var(--spacing-unit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.close-button:hover {
|
|
|
|
|
color: var(--secondary-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-total {
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
border-top: 2px solid #1f2937;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.admin-billing {
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
max-width: 1400px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-cards {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
2025-11-12 04:48:43 +01:00
|
|
|
gap: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
margin-bottom: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
box-shadow: 0 1px 3px var(--shadow-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card h3 {
|
|
|
|
|
margin: 0 0 0.5rem 0;
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-value {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #1f2937;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-config-section {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
|
|
|
|
margin-bottom: calc(var(--spacing-unit) * 3);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-table th,
|
|
|
|
|
.pricing-table td {
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
text-align: left;
|
|
|
|
|
border-bottom: 1px solid #e5e7eb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pricing-table th {
|
|
|
|
|
background: #f9fafb;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #374151;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-edit {
|
|
|
|
|
background: #3b82f6;
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-edit:hover {
|
|
|
|
|
background: #2563eb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-generation-section {
|
2025-11-12 04:48:43 +01:00
|
|
|
background: var(--accent-color);
|
|
|
|
|
border: 1px solid var(--border-color);
|
2025-11-10 15:46:40 +01:00
|
|
|
border-radius: 8px;
|
2025-11-12 04:48:43 +01:00
|
|
|
padding: calc(var(--spacing-unit) * 2.25);
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-gen-form {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
align-items: end;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-gen-form label {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #374151;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-gen-form input {
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
border: 1px solid #e5e7eb;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
}
|
2025-11-11 01:05:13 +01:00
|
|
|
|
|
|
|
|
.loading {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 3rem;
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.error-message {
|
|
|
|
|
background: #fee2e2;
|
|
|
|
|
border: 1px solid #ef4444;
|
|
|
|
|
color: #991b1b;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#payment-element {
|
|
|
|
|
margin: 1.5rem 0;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
border: 1px solid #e5e7eb;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|