.btn-trangthai-custom {
    min-width: 110px;
    border-width: 2px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.dtr-control {
    box-shadow: none !important;
}

/* Ticket Card Styles */

.ticket-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 24px;
    position: relative;
    border-bottom: 4px solid #e0e0e0;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
    /* Force remove hover shadow */
}

/* Border Color Variants */
.ticket-card.status-active {
    border-bottom-color: #58926f;
}

.ticket-card.status-warning {
    border-bottom-color: #ffa502;
}

.ticket-card.status-draft {
    border-bottom-color: #a4b0be;
}

/* Expired Animation - Red Glow */
@keyframes expiredGlow {
    0% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 4px 20px rgba(235, 77, 75, 0.5);
    }

    /* Soft Red Glow */
    100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

.ticket-card.status-expired {
    border-bottom-color: #eb9c9c;
    animation: expiredGlow 3s infinite ease-in-out;
}

/* Card Header */
.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tc-id {
    font-weight: 700;
    font-size: 1.1rem;
    color: #747d8c;
}

.tc-status {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tc-status.active {
    color: #58926f;
}

.tc-status.expired {
    color: #eb9c9c;
}

.tc-status.warning {
    color: #ffa502;
}

/* Card Body */
.tc-body {
    margin-bottom: 24px;
    flex: 1;
    /* Push footer down */
}

.tc-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2f3542;
    margin-bottom: 8px;
    line-height: 1.4;
    /* display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical; */
    overflow: hidden;
}

.tc-info {
    font-size: 0.9rem;
    color: #57606f;
}

/* Product List Expansion */
.tc-products-wrapper {
    margin-top: 12px;
    font-size: 0.85rem;
    position: relative;
    background: #fdfdfd;
    padding: 8px 12px;
    border-radius: 6px;
}

.tc-products-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.4;
    color: #2f3542;
}

.tc-products-content.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.tc-products-btn {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #3498db;
    cursor: pointer;
    font-weight: 500;
    text-align: right;
    user-select: none;
}

.tc-products-btn:hover {
    text-decoration: underline;
}

/* Timeline */
.tc-timeline {
    margin-bottom: 24px;
}

.tc-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a4b0be;
    margin-bottom: 8px;
}

.tc-progress-bar {
    height: 4px;
    background: #f1f2f6;
    border-radius: 2px;
    position: relative;
}

/* Progress Bar Animation */
@keyframes expandWidth {
    0% {
        max-width: 0;
    }

    100% {
        max-width: 100%;
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.tc-progress {
    height: 100%;
    background: #2f3542;
    border-radius: 2px;
    width: 0%;
    /* Fallback */
    position: relative;
    overflow: hidden;

    /* Animation: Expand width on load */
    animation: expandWidth 1.5s ease-out forwards;
}

/* Shimmer Overlay */
.tc-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brighter shimmer for visibility */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmerEffect 2.5s infinite linear;
    display: block;
}

.tc-dot-start,
.tc-dot-end {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #dfe4ea;
    /* Default dot color */
    background: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.tc-dot-start {
    left: 0;
    border-color: #dfe4ea;
    z-index: 10;
}

.tc-dot-end {
    right: 0;
    border-color: #dfe4ea;
    z-index: 10;
}

/* Status-specific progress colors */
.ticket-card.status-active .tc-progress {
    background: #2f3542;
}

.ticket-card.status-expired .tc-progress {
    background: #eb9c9c;
}

.ticket-card.status-expired .tc-dot-start {
    border-color: #eb9c9c;
}

.ticket-card.status-expired .tc-dot-end {
    border-color: #eb9c9c;
}


/* Card Footer */
.tc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f2f6;
    padding-top: 16px;
}

.tc-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dfe4ea;
    color: #57606f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.tc-avatar.active {
    background: #dff9fb;
    color: #22a6b3;
}

.tc-avatar.expired {
    background: #ffeaa7;
    color: #fdcb6e;
}

.tc-meta {
    display: flex;
    flex-direction: column;
}

.tc-owner-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2f3542;
}

.tc-via {
    font-size: 0.8rem;
    color: #747d8c;
}

.tc-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.tc-action-btn:hover {
    background: #444;
    color: #fff;
    transform: scale(1.1);
}

/* Hide DataTables Header for Card View */
#giayphepATTPTable thead,
#tucongbosanphamTable thead,
#dangkycbspTable thead,
#quangcaoTable thead {
    display: none;
}