/**
 * Hệ thống định dạng Giao diện Chi tiết Thông báo (Notification)
 * Đường dẫn: js/bardetail/notification/notification.css
 */
.notification-detail-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 16px;
    color: var(--text-primary);
    background-color: var(--theme-app-bg);
    box-sizing: border-box;
}

.notification-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-card-item {
    background: var(--theme-app-bg);
    border: 1px solid var(--border-divider);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.notification-card-item:hover { background: var(--bg-action-row); }

.notification-card-summary {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Mặc định rút gọn chữ bằng dấu (...) */
.notification-code {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Bung full toàn bộ chữ khi được nhấn mở */
.notification-card-item.active .notification-code {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.notification-date {
    font-size: 11.5px;
    color: var(--text-timestamp);
}

/* Cấu trúc Accordion chi tiết ẩn/hiện */
.notification-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    background: var(--bg-action-row);
}

.notification-details-content {
    padding: 0 14px 14px 14px;
    border-top: 1px dashed var(--border-divider);
    font-size: 12.5px;
}

.notification-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 0 0;
}

.detail-label { color: var(--text-timestamp); font-size: 11.5px; }
.detail-value { color: var(--text-primary); line-height: 1.4; overflow-wrap: anywhere; }
.detail-value.font-medium { font-weight: 500; }
.detail-value.font-bold { font-weight: 700; }
.detail-value .has-price { color: var(--text-primary); }
.detail-value .free { color: var(--text-secondary); font-weight: 500; }

/* Các nhãn Trạng thái thông báo */
.notification-badge {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-paid { background: #f0fdf4; color: #16a34a; }
.badge-pending { background: #fff7ed; color: #ea580c; }

/* Kích hoạt hiển thị chi tiết */
.notification-card-item.active {
    border-color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Cho phép mở rộng tối đa để chứa hàng số tiền và trạng thái mới thêm vào */
.notification-card-item.active .notification-card-details {
    max-height: 300px;
}

.notification-empty, .notification-loading, .notification-error {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-subtext {
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@media screen and (max-width: 768px) {
    .notification-detail-container { padding: 14px; }
    .notification-card-summary { padding: 12px 14px; }
}
