.service-usage-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
}

.service-usage-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Increased from 8px */
    padding-bottom: 3px;
}

.service-usage-card {
    padding: 6px;
    border-top: 1px solid #c8c8c8;
    border-bottom: 1px solid #c8c8c8;
    border-right: 1px solid #c8c8c8;
    background: #fafafa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.service-usage-card-active {
    border-left: 4px solid #00a4e6;
}

.service-usage-card-not-active {
    border-left: 4px solid #d3d3d3;
}

.billing-card-main-content {
    cursor: pointer;
}

.billing-card-header {
    padding-top: 4px;
    padding-left: 4px;
    padding-right: 4px;
}

/* Title Row with Icon */
.billing-card-title-container {
    display: block; /* Normal block flow */
    flex: 1;
    margin-bottom: 6px;
    text-align: left; /* Align content to left */
}

.billing-card-icon {
    display: inline-block; /* Inline with text */
    width: 16px;
    height: 16px;
    vertical-align: text-top; /* Align with top of text */
    margin-right: 4px; /* Small gap after icon */
}

.billing-card-title {
    display: inline; /* Inline with icon */
    line-height: 1.4;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* NEW: Quantity + Status Row */
.quantity-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    margin-bottom: 6px;
}

.quantity-active {
    color: #007aab;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.quantity-not-active {
    color: #888;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
}

/* Notes Section */
.notes-section-simple {
    padding: 10px;
    margin-right: 8px;
}

.notes-section-full {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px;
}

.notes-section {
    background: #ffffff;
    border-radius: 3px;
    color: #555;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    text-align: left;
}

    /* Style HTML content in notes */
    .notes-section p {
        margin: 0 0 8px 0;
        text-align: left;
        line-height: 1;
    }

        .notes-section p:last-child {
            margin-bottom: 0;
        }

    .notes-section ul,
    .notes-section ol {
        margin: 4px 0;
        padding-left: 20px;
        text-align: left;
    }

    .notes-section li {
        margin: 2px 0;
        text-align: left;
    }

    .notes-section strong {
        font-weight: 600;
        color: #333;
    }

    .notes-section em {
        font-style: italic;
    }

    .notes-section a {
        color: #0066cc;
        text-decoration: underline;
    }

    .notes-section code {
        background: #f8f9fa;
        padding: 2px 4px;
        border-radius: 2px;
        font-family: 'Courier New', monospace;
        border: 1px solid #dee2e6;
    }

/* Footer */
.billing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.footer-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
}

.work-type {
    background: #ebebeb;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
}

.date {
    color: #888;
    font-size: 12px;
}

/* Delete Link (visible on hover) */
.delete-link {
    color: #bc4841;
    text-decoration: none;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.service-usage-card:hover .delete-link {
    opacity: 1;
    visibility: visible;
}

.delete-link:hover {
    text-decoration: underline;
}

/* Add Actions */
.icon-add {
    width: 16px;
    height: 16px;
    background-image: url("../images/Action_New.svg");
    margin: 0 4px 0 0;
}

.icon-delete {
    width: 16px;
    height: 16px;
    background-image: url("../images/Action_Delete.svg");
    margin: 0 4px 0 0;
}

.button-add {
    padding-left: 3px;
}

    .button-add:hover {
        color: var(--dxbl-btn-text-color);
    }

.button-delete {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.service-usage-card:hover .button-delete {
    opacity: 1;
    visibility: visible;
}

.add-action-row {
    margin-top: 1px;
    padding-bottom: 1px;
    text-align: left;
}


/* Empty Message */
.empty-message {
    color: #999;
    font-style: italic;
    font-size: 13px;
    padding: 16px;
    text-align: center;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    margin-bottom: 8px;
}
