*{
    margin: 0;
    box-sizing: border-box;
    font-size: 19px;
}
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    background-color:#1a202c;
    color:#bcd5e0;
}
.header h4{
    margin-top:15px;
}
.header .nav ul{
    display:flex;
    list-style-type:none;
    padding:10px 20px;
    margin:0;
}
.header .nav ul li{
    padding:10px 20px;
    cursor:pointer;
    margin-left: 20px;
    border-radius: 15px;
    font-weight: bold;
}
.header .nav ul li:hover{
    background-color: #2d3748;
}
/*Ticket*/
.ticket
{
    width:100%;
}
.ticket section
{
    width:100%;
    padding-right:20px;
}
.tb-ticket
{
    background-color: transparent;
    max-height: 530px;
    height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
}
.ticket section table {
    width: 100%;
    border-collapse: collapse;
}

.card :is(.info,.issue,.pic)
{
    margin-bottom: 20px;
    margin-left: 20px;
}
.ticket .card .card-header
{
    margin-top: 200px;
}
.ticket .nav button
{
    color: #bcd5e0;
    background-color:transparent;
    font-weight: bold;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
}
.ticket .nav button:hover
{
    background-color: #2d3748;
    cursor: pointer;
    border-radius: 10px;
}
/*footer*/
.footer
{
    display:flex;
    justify-content: center;
    align-items:center;
    padding:0 20px;
    background-color:#1a202c;
    color:#bcd5e0;   
}
/* =========================
   Responsive
=========================== */

/* Màn hình <1024px (tablet) */
@media (max-width: 1024px) {
    .header h4 {
        font-size: 18px;
        margin-top: 10px;
    }

    .header .nav ul {
        flex-wrap: wrap; /* vẫn nằm ngang nhưng xuống dòng nếu quá dài */
        padding: 5px 10px;
        justify-content: flex-start; /* căn trái */
    }

    .header .nav ul li {
        padding: 8px 12px;
        margin-left: 10px;
        font-size: 16px;
    }

    .ticket .card {
        padding: 15px;
    }

    .ticket section {
        padding-right: 10px;
    }

    .ticket section table {
        font-size: 16px;
    }
}

/* Màn hình <768px (mobile) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    /* Vẫn ngang nhưng xuống dòng nếu quá dài */
    .header .nav ul {
        flex-direction: row; /* bắt buộc ngang */
        flex-wrap: wrap;     /* xuống dòng khi quá dài */
        width: 100%;
        padding: 5px 0;
        justify-content: flex-start;
    }

    .header .nav ul li {
        margin-left: 10px;
        margin-bottom: 5px; /* nếu xuống dòng */
        text-align: center;
        padding: 6px 10px;
        font-size: 14px;
    }

    .ticket .card {
        height: auto;
    }

    .ticket section table {
        font-size: 14px;
    }
}

/* Màn hình <480px (mobi nhỏ) */
@media (max-width: 480px) {
    * {
        font-size: 16px;
    }

    .header h4 {
        font-size: 16px;
    }

    .header .nav ul li {
        padding: 6px 10px;
        font-size: 14px;
    }

    .ticket section table {
        font-size: 12px;
    }

    .ticket .nav button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Table styling mới */
.tb-ticket table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 8px !important; /* tách hàng ra cho đẹp */
}

.tb-ticket thead tr {
    background-color: #2d3748;
}

.tb-ticket th {
    padding: 14px 12px;
    color: #bcd5e0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.tb-ticket tbody tr {
    background: #1e293b;    /* nền hàng */
    transition: 0.25s ease;
}

.tb-ticket tbody tr:hover {
    background: #334155;    /* hover nhẹ */
}

.tb-ticket td {
    padding: 12px 12px;
    color: #cbd5e1;
    font-size: 15px;
}

/* Bo góc cho hàng */
.tb-ticket tbody tr td:first-child {
    border-radius: 10px 0 0 10px;
}
.tb-ticket tbody tr td:last-child {
    border-radius: 0 10px 10px 0;
}

/* Status badge */
.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

/* Màu theo trạng thái */
.status-new { background: rgba(59,130,246,0.2); color: orange; }
.status-processing { background: rgba(234,179,8,0.2); color: yellow; }
.status-received { background: rgba(6,182,212,0.2); color: #FFC50F; }
.status-done { background: rgba(16,185,129,0.2); color: rgb(86, 236, 86); }
.status-feedback { background: rgba(147,51,234,0.2); color: rgb(97, 166, 251); }

/* Action button */
.btn-act {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    color: #e2e8f0;
    background: #47695e;
    transition: 0.2s ease;
}

.btn-act:hover {
    background: #64748b;
}
/* Áp dụng cho tất cả scrollbars */
::-webkit-scrollbar {
  width: 6px;              /* Độ rộng thanh */
}

/* Track (nền) */
::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 10px;
}

/* Thanh kéo */
::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 10px;
}

/* Hover đẹp hơn */
::-webkit-scrollbar-thumb:hover {
  background: #999;
}
