.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Định dạng nội dung chi tiết bên trong Modal phù hợp với nền tối và tông Cam năng động */
.modal-content h3 {
    font-weight: 700;
    color: #fb923c; /* Đổi sang màu cam sáng (orange-400) để nổi bật trên nền tối */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.modal-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}
.modal-content ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}
.modal-content li {
    margin-bottom: 0.35rem;
    color: #d4d4d8; /* Màu chữ sáng (zinc-300) dễ đọc trên nền tối */
}

/* Thanh cuộn danh mục chuẩn tông tối */
.category-scroll::-webkit-scrollbar {
    height: 4px;
}
.category-scroll::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 4px;
}
.category-scroll::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
.category-scroll::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

@media print {
    body * { visibility: hidden; }
    #printable-modal, #printable-modal * { visibility: visible; }
    #printable-modal { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}

/* --- BẮT ĐẦU GIAO DIỆN POPUP MENU CHUỘT PHẢI CHUYÊN NGHIỆP --- */
.context-menu {
    display: none;
    position: absolute;
    z-index: 99999;
    width: 340px; 
    background: #18181b; /* Nền đen than phù hợp với chủ đề App */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 6px;
    font-family: inherit;
    animation: fadeInMenu 0.15s ease-in-out;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    margin: 2px 0;
}

.context-menu ul li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #f4f4f5; /* Chữ sáng dễ đọc */
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

/* Định dạng SVG Icon hiển thị phía trước */
.context-menu ul li a svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    fill: #a1a1aa; /* Màu icon mặc định */
    transition: fill 0.2s ease, transform 0.2s ease;
}

/* Hiệu ứng khi rê chuột vào (Hover) chuyển sang màu Cam năng động chủ đạo */
.context-menu ul li a:hover {
    background: #ea580c; /* Nền cam chủ đạo */
    color: #ffffff;
}

.context-menu ul li a:hover svg {
    fill: #ffffff; /* Icon chuyển sang màu trắng khi hover */
    transform: scale(1.1);
}
/* --- KẾT THÚC GIAO DIỆN POPUP MENU CHUỘT PHẢI CHUYÊN NGHIỆP --- */