.accounting-subtitle {
    color: var(--app-gray-text-color);
    font-size: 12px;
}

.accounting-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.accounting-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
    border: 1px solid var(--app-border-color);
}

.accounting-card .amount {
    font-size: 21px;
    font-weight: 700;
    color: var(--app-content-text-color);
}

.accounting-card .amount.overdue {
    color: var(--app-color-amount-overdue);
}

.accounting-card .footer-text {
    font-size: 0.85rem;
    color: var(--app-gray-text-color);
    margin-top: auto;
}

.accounting-details-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.accounting-details-grid .divider-bottom {
    border-bottom: 1px solid var(--app-border-color);
}

.accounting-detail-card {
    flex: 1;
    min-width: 576px;
    height: 381px;
    border-radius: 5px;
    border: 1px solid var(--app-border-color);
}

.accounting-detail-card a {
    color: var(--app-gray-content-text-color);
}

.accounting-detail-card .badges-container .badge.unpaid {
    background-color: var(--app-color-gray);
    border: solid 1px var(--app-badge-mono-bg-border-color);
}

.accounting-detail-card .badges-container .badge.overdue {
    background-color: var(--app-badge-mono-bg-color);
    color: var(--app-gray-text-color);
}

.accounting-chart-wrapper {
    width: 260px;
    height: 260px;
    position: relative;
    overflow: hidden;

}

.accounting-chart-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.accounting-chart-label {
    font-size: 0.95rem;
    color: var(--app-gray-text-color);
    margin-bottom: 0.25rem;
}

.accounting-chart-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--app-content-text-color);
}

.accounting-legend-wrapper {
    width: 100%;
    max-width: 280px;
}

.accounting-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 10px;
}

.bg-paid {
    background-color: #c0ecc0;
}

.bg-unpaid-15 {
    background-color: #fff3b1;
}

.bg-unpaid-30 {
    background-color: #f5b1a5;
}

.bg-unpaid-total {
    background-color: #c8c8c8;
}

.accounting-legend-text {
    font-size: 0.8rem;
    color: var(--app-gray-text-color);
}

.accounting-legend-amount {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--app-content-text-color);
}

.accounting-card-header-title {
    color: var(--app-gray-text-color);
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.accounting-card-header-subtitle {
    font-size: 0.8rem;
    color: var(--app-gray-text-color);
}

.accounting-avatar {
    width: 44px;
    height: 44px;
    font-weight: 400;
    font-size: 14px;
    background-color: var(--app-color-black);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.accounting-queue-name {
    color: var(--app-content-text-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.accounting-queue-desc {
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--app-gray-text-color);
}

.accounting-queue-amount {
    color: var(--app-content-text-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.accounting-btn-suspend {
    font-size: 0.85rem;
    padding: 3px 10px;
    border: 1px solid var(--app-color-gray);
    color: var(--app-color-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--app-color-white);
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 100px;
}

.bi.bi-power {
    color: var(--app-color-gray);
    -webkit-text-stroke: 0.5px var(--app-color-gray);
}

.accounting-btn-suspend:hover,
.accounting-btn-suspend:active {
    background-color: #e2e6ea !important;
}

.accounting-btn-restore {
    font-size: 0.85rem;
    padding: 3px 10px;
    border: 1px solid var(--app-color-approved);
    color: var(--app-color-approved);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background-color: transparent;
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 100px;
}

.accounting-btn-restore:hover,
.accounting-btn-restore:active {
    background-color: var(--app-color-approved-subtle) !important;
    color: var(--app-color-approved) !important;
}

.accounting-btn-restore .bi.bi-power {
    color: var(--app-color-approved);
    -webkit-text-stroke: 0.5px var(--app-color-approved);
}

.accounting-action-badge {
    background-color: #fde8e8;
    color: var(--app-color-amount-overdue);
    padding: 0.30rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
    line-height: 1;
}

.accounting-action-badge.status-paid {
    background-color: var(--app-color-status-badge-approved-bg);
    color: var(--app-color-status-badge-approved-text);
}

.accounting-action-badge.status-unpaid,
.accounting-action-badge.status-overdue {
    background-color: #fde8e8;
    font-size: 13px;
    display: inline-block;
    line-height: 1;
}

.accounting-action-badge.status-paid {
    background-color: var(--app-color-status-badge-approved-bg);
    color: var(--app-color-status-badge-approved-text);
}

.accounting-action-badge.status-unpaid,
.accounting-action-badge.status-overdue {
    background-color: #fde8e8;
    color: var(--app-color-amount-overdue);
}

/* Fix for accounting dashboard table overflow */
.accounting-table-fit thead tr th:first-of-type,
.accounting-table-fit tbody tr td:first-of-type {
    padding-left: 1.5rem !important;
}

.accounting-table-fit thead tr th:last-of-type,
.accounting-table-fit tbody tr td:last-of-type {
    padding-right: 1.5rem !important;
}

.accounting-table-fit th,
.accounting-table-fit td {
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: normal !important;
}

.last-no-border:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* API key field: join the input and the copy button into one unit */
.api-key-input-wrapper {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.api-key-copy-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
