You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
571 lines
14 KiB
CSS
571 lines
14 KiB
CSS
/* Unified administrator billing views. Kept page-scoped to avoid changing legacy tables. */
|
|
.admin-billing,
|
|
.billing-dialog {
|
|
--billing-ink: #172033;
|
|
--billing-muted: #667085;
|
|
--billing-line: #e4eaf1;
|
|
--billing-soft: #f6f8fb;
|
|
--billing-brand: #147d68;
|
|
--billing-brand-soft: #e9f7f2;
|
|
--billing-warning: #9a6700;
|
|
--billing-warning-soft: #fff6d8;
|
|
--billing-danger: #b42318;
|
|
--billing-danger-soft: #fff0ee;
|
|
--billing-info: #175cd3;
|
|
--billing-info-soft: #eef4ff;
|
|
}
|
|
.admin-billing {
|
|
max-width: 1540px;
|
|
margin: 0 auto;
|
|
padding: 22px 0 32px;
|
|
color: var(--billing-ink);
|
|
}
|
|
|
|
.admin-billing *,
|
|
.admin-billing *::before,
|
|
.admin-billing *::after,
|
|
.billing-dialog *,
|
|
.billing-dialog *::before,
|
|
.billing-dialog *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.billing-page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.billing-page-header > div { min-width: 0; }
|
|
.billing-page-header h1 {
|
|
margin: 0 0 6px;
|
|
color: #00081a;
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
line-height: 1.3;
|
|
}
|
|
.billing-page-header p:last-child {
|
|
max-width: 820px;
|
|
margin: 0;
|
|
color: var(--billing-muted);
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.billing-refresh,
|
|
.billing-filter-actions .btn,
|
|
.billing-pagination .btn {
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
white-space: nowrap;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.billing-notice {
|
|
min-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 14px;
|
|
padding: 10px 14px;
|
|
border: 1px solid #bfd2f8;
|
|
border-radius: 9px;
|
|
color: #1849a9;
|
|
background: var(--billing-info-soft);
|
|
font-weight: 700;
|
|
line-height: 1.45;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.billing-notice.is-success { border-color: #a6e0d0; color: #08785b; background: var(--billing-brand-soft); }
|
|
.billing-notice.is-error { border-color: #f5b8b2; color: var(--billing-danger); background: var(--billing-danger-soft); }
|
|
|
|
.billing-tabs {
|
|
display: flex;
|
|
gap: 6px;
|
|
max-width: 100%;
|
|
margin-bottom: 18px;
|
|
padding: 5px;
|
|
border: 1px solid var(--billing-line);
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
|
|
}
|
|
.billing-tabs a {
|
|
min-height: 44px;
|
|
min-width: 0;
|
|
flex: 1 1 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 9px 16px;
|
|
border-radius: 7px;
|
|
color: #475467;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
touch-action: manipulation;
|
|
transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
|
|
}
|
|
.billing-tabs a:hover { color: var(--billing-brand); background: #f2faf7; }
|
|
.billing-tabs a[aria-disabled="true"] { cursor: wait; opacity: .68; }
|
|
.billing-tabs a[aria-current="page"] {
|
|
color: #075f4c;
|
|
background: var(--billing-brand-soft);
|
|
box-shadow: inset 0 0 0 1px #bee8dc;
|
|
}
|
|
|
|
.billing-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.billing-summary article {
|
|
min-width: 0;
|
|
padding: 15px 17px;
|
|
border: 1px solid var(--billing-line);
|
|
border-left: 3px solid #9bb7b0;
|
|
border-radius: 9px;
|
|
background: #fff;
|
|
box-shadow: 0 7px 22px rgba(15, 23, 42, .035);
|
|
}
|
|
.billing-summary span {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: var(--billing-muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
letter-spacing: .02em;
|
|
}
|
|
.billing-summary strong {
|
|
display: block;
|
|
color: var(--billing-ink);
|
|
font-size: 20px;
|
|
line-height: 1.3;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.admin-billing .card {
|
|
border: 1px solid var(--billing-line);
|
|
border-radius: 10px;
|
|
box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
|
|
}
|
|
.admin-billing .card-body { padding: 20px; }
|
|
.billing-filter-card { margin-bottom: 18px; }
|
|
|
|
.billing-section-heading {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.billing-section-heading > div { min-width: 0; }
|
|
.billing-section-heading h2 {
|
|
margin: 0 0 4px;
|
|
color: var(--billing-ink);
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
}
|
|
.billing-section-heading p {
|
|
margin: 0;
|
|
color: var(--billing-muted);
|
|
line-height: 1.55;
|
|
}
|
|
.billing-result-count {
|
|
min-height: 32px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
padding: 5px 10px;
|
|
border-radius: 999px;
|
|
color: #475467;
|
|
background: var(--billing-soft);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.billing-filter-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(128px, 1fr));
|
|
gap: 14px;
|
|
align-items: end;
|
|
}
|
|
.billing-field {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 7px;
|
|
margin: 0;
|
|
}
|
|
.billing-field-wide { grid-column: span 2; }
|
|
.billing-field[hidden] { display: none; }
|
|
.billing-field > span {
|
|
color: #344054;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
.billing-field .form-control,
|
|
.billing-field .form-select {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
color: var(--billing-ink);
|
|
border-color: #cfd8e3;
|
|
border-radius: 8px;
|
|
background-color: #fff;
|
|
}
|
|
.billing-field .form-control::placeholder { color: #667085; }
|
|
.billing-filter-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
.billing-filter-actions .btn { flex: 1 1 auto; }
|
|
|
|
.billing-table-card { overflow: hidden; }
|
|
.billing-table-wrap {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
border: 1px solid var(--billing-line);
|
|
border-radius: 9px;
|
|
}
|
|
.billing-table {
|
|
width: 100%;
|
|
min-width: 1000px;
|
|
margin: 0;
|
|
color: var(--billing-ink);
|
|
}
|
|
.billing-table thead th {
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid #dbe3ec;
|
|
color: #475467;
|
|
background: var(--billing-soft);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
letter-spacing: .035em;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
.billing-table tbody td {
|
|
padding: 13px 12px;
|
|
border-color: #edf1f5;
|
|
vertical-align: middle;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.billing-table tbody tr:last-child td { border-bottom: 0; }
|
|
.billing-table tbody tr:hover td { background: #fbfcfd; }
|
|
.billing-cell-stack { display: grid; gap: 3px; }
|
|
.billing-cell-stack strong { color: #182230; font-weight: 800; }
|
|
.billing-cell-stack small { color: var(--billing-muted); font-size: 11px; }
|
|
.billing-cell-mono { font-variant-numeric: tabular-nums; }
|
|
.billing-row-action {
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 12px;
|
|
border: 1px solid #b8d9d0;
|
|
border-radius: 7px;
|
|
color: #086c56;
|
|
background: #f3fbf8;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
.billing-row-action:hover { color: #064e3b; background: #e5f7f1; }
|
|
.billing-row-action:active { background: #d9f1e9; }
|
|
|
|
.billing-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
max-width: 100%;
|
|
padding: 6px 9px;
|
|
border: 1px solid transparent;
|
|
border-radius: 999px;
|
|
color: #475467;
|
|
background: #f2f4f7;
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
line-height: 1.3;
|
|
white-space: nowrap;
|
|
}
|
|
.billing-status::before {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 auto;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
content: "";
|
|
}
|
|
.billing-status.is-success { color: #08785b; border-color: #b7e4d8; background: var(--billing-brand-soft); }
|
|
.billing-status.is-warning { color: var(--billing-warning); border-color: #f0d588; background: var(--billing-warning-soft); }
|
|
.billing-status.is-danger { color: var(--billing-danger); border-color: #f3c1bc; background: var(--billing-danger-soft); }
|
|
.billing-status.is-info { color: var(--billing-info); border-color: #c7d7fe; background: var(--billing-info-soft); }
|
|
|
|
.billing-state-row td {
|
|
height: 116px;
|
|
color: var(--billing-muted);
|
|
text-align: center;
|
|
}
|
|
.billing-state-content {
|
|
max-width: 540px;
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: 9px;
|
|
margin: 0 auto;
|
|
padding: 12px;
|
|
}
|
|
.billing-state-content strong { color: var(--billing-ink); }
|
|
.billing-state-content .btn { min-height: 44px; }
|
|
.billing-loader {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid #d8e4e1;
|
|
border-top-color: var(--billing-brand);
|
|
border-radius: 50%;
|
|
animation: billing-spin .75s linear infinite;
|
|
}
|
|
@keyframes billing-spin { to { transform: rotate(360deg); } }
|
|
|
|
.billing-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
.billing-pagination[hidden] { display: none; }
|
|
.billing-pagination > span {
|
|
min-width: 190px;
|
|
color: var(--billing-muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
}
|
|
.billing-pagination button:disabled { cursor: not-allowed; opacity: .55; }
|
|
|
|
.admin-billing :where(a, button, input, select):focus-visible,
|
|
.billing-dialog :where(button, a):focus-visible {
|
|
outline: 2px solid #176fbd;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.billing-dialog {
|
|
width: min(680px, calc(100vw - 24px));
|
|
max-width: none;
|
|
height: 100dvh;
|
|
max-height: 100dvh;
|
|
margin: 0 0 0 auto;
|
|
padding: 0;
|
|
border: 0;
|
|
color: var(--billing-ink, #172033);
|
|
background: #fff;
|
|
box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
|
|
}
|
|
body.billing-detail-open { overflow: hidden; }
|
|
.billing-dialog:not([open]) { display: none; }
|
|
.billing-dialog::backdrop { background: rgba(15, 23, 42, .56); }
|
|
.billing-dialog-shell {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.billing-dialog header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 20px 22px;
|
|
border-bottom: 1px solid #e4eaf1;
|
|
}
|
|
.billing-dialog header h2 { margin: 0; color: #101828; font-size: 20px; font-weight: 850; }
|
|
.billing-dialog-close {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
padding: 0;
|
|
border: 1px solid #d5dce5;
|
|
border-radius: 8px;
|
|
color: #344054;
|
|
background: #fff;
|
|
font-size: 23px;
|
|
}
|
|
.billing-dialog-close:hover { background: #f4f6f8; }
|
|
.billing-detail-state {
|
|
margin: 14px 22px 0;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
color: #1849a9;
|
|
background: #eef4ff;
|
|
font-weight: 750;
|
|
}
|
|
.billing-detail-state.is-error { color: #b42318; background: #fff0ee; }
|
|
.billing-detail-state[hidden] { display: none; }
|
|
.billing-detail-body {
|
|
min-height: 0;
|
|
flex: 1 1 auto;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
padding: 18px 22px 34px;
|
|
}
|
|
.billing-detail-section {
|
|
margin-bottom: 16px;
|
|
padding: 16px;
|
|
border: 1px solid #e4eaf1;
|
|
border-radius: 9px;
|
|
background: #fff;
|
|
}
|
|
.billing-detail-section h3 {
|
|
margin: 0 0 13px;
|
|
color: #344054;
|
|
font-size: 13px;
|
|
font-weight: 900;
|
|
letter-spacing: .025em;
|
|
}
|
|
.billing-detail-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 13px 18px;
|
|
margin: 0;
|
|
}
|
|
.billing-detail-grid > div { min-width: 0; }
|
|
.billing-detail-grid dt {
|
|
margin: 0 0 3px;
|
|
color: #667085;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
}
|
|
.billing-detail-grid dd {
|
|
margin: 0;
|
|
color: #182230;
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
line-height: 1.45;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.billing-attempt-list { display: grid; gap: 9px; }
|
|
.billing-attempt-note {
|
|
margin: 0;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
color: #475467;
|
|
background: #f2f4f7;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
.billing-attempt {
|
|
padding: 12px;
|
|
border: 1px solid #e4eaf1;
|
|
border-radius: 8px;
|
|
background: #f8fafc;
|
|
}
|
|
.billing-attempt strong { display: block; margin-bottom: 4px; color: #182230; }
|
|
.billing-attempt span { display: block; color: #667085; font-size: 12px; line-height: 1.5; }
|
|
|
|
@media (max-width: 1199px) {
|
|
.billing-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.billing-filter-actions { grid-column: span 2; }
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.admin-billing { padding-top: 16px; }
|
|
.billing-page-header { flex-direction: column; gap: 14px; }
|
|
.billing-refresh { width: 100%; }
|
|
.billing-tabs { flex-direction: column; padding: 4px; }
|
|
.billing-tabs a { width: 100%; flex-basis: auto; justify-content: flex-start; }
|
|
.billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.admin-billing .card-body { padding: 16px; }
|
|
.billing-section-heading { flex-direction: column; gap: 10px; }
|
|
.billing-result-count { align-self: flex-start; }
|
|
.billing-filter-grid { grid-template-columns: minmax(0, 1fr); }
|
|
.billing-field-wide,
|
|
.billing-filter-actions { grid-column: auto; }
|
|
.billing-field .form-control,
|
|
.billing-field .form-select { font-size: 16px; }
|
|
.billing-filter-actions { flex-direction: column; }
|
|
.billing-filter-actions .btn { width: 100%; }
|
|
|
|
.billing-table-wrap { overflow: visible; border: 0; }
|
|
.billing-table { min-width: 0; display: block; }
|
|
.billing-table thead {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
.billing-table tbody { display: grid; gap: 12px; }
|
|
.billing-table tbody tr {
|
|
min-width: 0;
|
|
display: block;
|
|
overflow: hidden;
|
|
border: 1px solid #dde5ed;
|
|
border-radius: 9px;
|
|
background: #fff;
|
|
}
|
|
.billing-table tbody tr:hover td { background: transparent; }
|
|
.billing-table tbody td {
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(88px, .7fr) minmax(0, 1.3fr);
|
|
gap: 12px;
|
|
align-items: start;
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid #edf1f5;
|
|
text-align: left;
|
|
}
|
|
.billing-table tbody td::before {
|
|
color: #667085;
|
|
content: attr(data-label);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
line-height: 1.45;
|
|
}
|
|
.billing-table tbody td:last-child { border-bottom: 0; }
|
|
.billing-table tbody td > * { min-width: 0; }
|
|
.billing-table .billing-state-row td {
|
|
min-height: 126px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.billing-table .billing-state-row td::before { content: none; }
|
|
.billing-row-action { width: 100%; }
|
|
.billing-status { white-space: normal; }
|
|
.billing-pagination { justify-content: space-between; gap: 7px; }
|
|
.billing-pagination > span { min-width: 0; flex: 1 1 auto; }
|
|
.billing-pagination .btn { min-width: 44px; padding-inline: 10px; }
|
|
.billing-pagination .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
|
|
|
|
.billing-dialog { width: 100vw; max-width: 100vw; }
|
|
.billing-dialog header { padding: 16px; }
|
|
.billing-detail-state { margin: 12px 16px 0; }
|
|
.billing-detail-body { padding: 14px 16px 28px; }
|
|
.billing-detail-grid { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 390px) {
|
|
.billing-summary { grid-template-columns: minmax(0, 1fr); }
|
|
.billing-table tbody td { grid-template-columns: minmax(78px, .65fr) minmax(0, 1.35fr); gap: 8px; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.billing-tabs a { transition: none; }
|
|
.billing-loader { animation: none; opacity: .72; }
|
|
}
|