html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
::-webkit-scrollbar {
  width: 1px;
  height: 10px;
  background-color:rgb(8, 8, 7);
}



html {
    position: relative;
    min-height: 100%;
}

.custom-border-bottom {
    border-bottom: 1px solid #ccc !important;
}

label {
    font-size: .8rem;
    color: var(--text-muted, var(--shell-muted, #5C5C58));
}

.custom-tooltip p > label {
    color: #fff;
}

.table-header {
    background-color: var(--brand, var(--tng-primary, var(--bacground-color)));
}

.sidenav li>a {
    color: var(--text-color, #F0F4F8) !important;
}

.tabs .indicator {
    background-color: var(--brand, var(--tng-primary, var(--bacground-color)));
}

.tabs .tab a {
    color: rgba(44, 44, 42, 0.7);
}

.tabs .tab a:hover,
.tabs .tab a.active {
    background-color: transparent;
    color: var(--brand, var(--tng-primary, var(--bacground-color)));
}

.hover:hover {
    opacity: .5;
    cursor: pointer;
}


.modal-confirm {
    width: 26rem !important;
}

.slide-up-enter-active,
.slide-up-leave-active {
    transition: all 0.4s ease;
}

.slide-up-enter-from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.slide-up-enter-to {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slide-up-leave-from {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slide-up-leave-to {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.toast-custom {
    font-size: 1.2rem;
    padding: 18px 24px;
    position: fixed;
    right: 10px;
    /* Đặt Toast cách mép phải một chút */
    z-index: 9999;
    height: fit-content;
}

/* Modal Confirm tùy biến đồng bộ hệ thống */
.tng-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tng-confirm-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.tng-confirm-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tng-confirm-backdrop.active .tng-confirm-card {
    transform: scale(1);
}

.tng-confirm-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem 0.75rem;
}

.tng-confirm-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tng-confirm-icon i {
    font-size: 1.5rem;
}

.tng-confirm-icon--warning {
    background: #fef3c7;
    color: #d97706;
}

.tng-confirm-icon--danger {
    background: #fee2e2;
    color: #dc2626;
}

.tng-confirm-icon--info {
    background: #e0f2fe;
    color: #0284c7;
}

.tng-confirm-icon--success {
    background: #dcfce7;
    color: #16a34a;
}

.tng-confirm-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tng-confirm-body {
    padding: 0 1.25rem 1.25rem 4.5rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
    white-space: pre-line;
    max-height: 60vh;
    overflow-y: auto;
}

.tng-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.tng-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tng-confirm-btn--cancel {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

.tng-confirm-btn--cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tng-confirm-btn--primary {
    background: #0284c7;
    color: #ffffff;
}

.tng-confirm-btn--primary:hover {
    background: #0369a1;
}

.tng-confirm-btn--warning {
    background: #d97706;
    color: #ffffff;
}

.tng-confirm-btn--warning:hover {
    background: #b45309;
}

.tng-confirm-btn--danger {
    background: #dc2626;
    color: #ffffff;
}

.tng-confirm-btn--danger:hover {
    background: #b91c1c;
}

.blue-header {
    background-color: var(--brand, var(--tng-primary, var(--bacground-color)));
    color: white;
    padding: 6px;
    text-align: center;
}

.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reactive {
    position: relative;
}

.fixed {
    position: fixed;
}

#backTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.done {
    background-color: rgba(125, 222, 146, 0.35) !important;
}

/* css/////////////////////////// */


.avatar-round,
.logo-nho,
.logo-vua,
.logo-lon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d2d3d4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.avatar-round {
    width: 35px;
    height: 35px;
}

.logo-vua {
    width: 8rem;
    height: 8rem;
}

.logo-lon {
    width: 10rem;
    height: 10rem;
}

.mobile-text {
    padding: 3px;
}

.logo-top {
    width: 25px;
    height: 40px;
}

.name-top {
    width: 69% !important;
}


.team-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 10px;
}

.score {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

/* card */
.card-event {
    border-left: 5px solid var(--tng-primary);
    padding-left: 15px;
    margin-bottom: 12px !important;
    background: var(--shell-surface, #fff);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-time {
    font-weight: bold;
    margin-right: 6px;
    color: var(--tng-primary);
}

.event-icon {
    font-size: 1.1rem;
    margin-right: 5px;
}

.highlight {
    font-weight: bold;
    color: var(--tng-ink, #2c3e50);
}

.input-diem-so {
    font-size: 3.1rem !important;
    text-align: center;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}


/* //////////////// */
.player-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.player-logo {
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.player-badge {
    min-width: 3rem;
    padding: 0 6px;
    text-align: center;
    font-size: .75rem;
    line-height: 22px;
    height: 22px;
    color: white;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 3.2rem;
    border-radius: 15px;
    padding: 0.2rem 0.4rem;
}

.team-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-badge {
    min-width: 3rem;
    padding: 0 6px;
    text-align: center;
    font-size: .75rem;
    line-height: 22px;
    height: 22px;
    color: white;
    border-radius: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 3.2rem;
    padding: 0.2rem 0.4rem;
}

.card .card-content {
    padding: 12px;
}

.card .card-action {
    padding: 6px;
}


.search-wrapper {
    color: #777;
    margin-top: -1px;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    -webkit-transition: margin .25s ease;
    transition: margin .25s ease;
    position: relative;
    max-width: 20rem;
}

.search-wrapper.focused .search-results:not(:empty) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.14)
}

.search-wrapper input#search {
    color: #777;
    display: block;
    font-size: 16px;
    font-weight: 300;
    width: 100%;
    height: 46px;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 45px 0 0px;
    border: 0
}

.search-wrapper input#search:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none
}

.search-wrapper i.material-icons {
    position: absolute;
    top: 14px;
    right: 10px;
    cursor: pointer
}

.search-results {
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    background-color: #fff
}

.upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: var(--tng-primary);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: var(--tng-primary-soft);
}

.upload-btn i {
    color: white;
    font-size: 2rem;
    vertical-align: middle;
}


.custom-link {
    color: var(--tng-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-link:hover {
    text-decoration: underline;
    cursor: pointer;
    color: var(--tng-primary-soft);
}


.scroll-container {
    height: 100%;
    overflow-y: auto;
}

/* Đặt flexbox cho phần tử cha */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    /* Cho phép các phần tử xuống dòng khi cần */
    /* Để các cột có margin đồng đều */
    flex-direction: row;
    /* Mặc định sắp xếp theo chiều dọc cho mobile */
    padding: 0px .5rem;
}

/* Đặt các phần tử con (cột) */
.flex-item {
    flex: 1;
    padding: 10px;
}

/* Cấu hình order cho cột */
.item-a {
    order: 2;
    /* Cột A sẽ ở dưới cùng trên mobile */
    flex-basis: 65%;
}

.item-b {
    order: 1;
    /* Cột B sẽ ở trên cùng trên mobile */
    flex-basis: 35%;
}

/* css grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.card-custom {
    padding: 12px;
    color: #fff;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.card-custom.double-height {
    grid-row: span 2;
    min-height: 270px;
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.card-custom.double-width {
    grid-column: span 2;
}

.bg-blue {
    background: var(--tng-primary);
}

.bg-yellow {
    background: var(--tng-win);
    color: var(--tng-ink);
}

.bg-purple {
    background: var(--fl-pending);
}

.bg-red {
    background: var(--tng-warn);
}

.bg-gray {
    background: #7a8490;
}

.bg-green {
    background: var(--fl-approved);
}

.bg-lightblue {
    background: var(--tng-primary-soft);
}

.card-custom img {
    max-height: 40px;
    width: 40px;
    margin: auto;
}

.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.equal-height>.col {
    display: flex;
    flex-direction: column;
}

.equal-height .table-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.label-cam-thi-dau {
    position: absolute;
    right: 10px;
    padding: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
}

.action-custom {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #dd2f2f;
}

.selector-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.selector-tabs {
    display: flex;
    background-color: #f5f5f5;
}

.selector-tab {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selector-tab.active {
    background-color: var(--brand, var(--tng-primary, var(--bacground-color)));
    color: white;
}

.week-days,
.month-weeks {
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
}

.day-card,
.week-card {
    text-align: center;
    padding: 3px;
    border-radius: 10px;
    width: 5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-card:hover,
.week-card:hover {
    background-color: rgba(0, 121, 218, 0.1);
}

.day-card.selected,
.week-card.selected {
    background-color: var(--brand, var(--tng-primary, var(--bacground-color)));
    color: white;
}

.day-card.today,
.week-card.today {
    border: 2px solid #ff5722;
    font-weight: bold;
}

.day-name {
    font-size: 0.7rem;
    opacity: 0.7;
}

.day-date,
.week-label {
    font-size: 0.8rem;
    font-weight:500;
}

.month-year-selector {
    display: flex;
    justify-content: space-between;
    background-color: #f5f5f5;
    align-items: center;
}

.month-year-selector select {
    width: 100%;
    border: none;
    background-color: white;
    padding: 5px;
    height: 2rem;
}

.btn-next {
    height: 2rem;
}

.btn-next>i.material-icons {
    line-height: 2rem;
}

.hidden {
    display: none;
}

.label-round {
    position: absolute;
}

.active-giai-dau {
    background-color: rgba(0, 121, 218, 0.18);
}

.badge-custom {
    min-width: 3rem;
    padding: 0 6px;
    text-align: center;
    font-size: 1rem;
    line-height: 22px;
    height: 22px;
    color: white;
    float: right;
    border-radius: 0px 15px 0px 0px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: var(--tng-primary);
    min-width: 9rem;
}

.delete-tranDau-icon {
    position: absolute;
    color: red;
    right: 0px;
    z-index: 999;
}

.delete-tranDau-icon:hover {
    cursor: pointer;
    opacity: .5;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
}

    .custom-tooltip {
      visibility: hidden;
      opacity: 0;
      width: max-content;
      background-color: #333;
      color: #fff;
      text-align: left;
      border-radius: 6px;
      padding: 10px;
      position: absolute;
      z-index: 9999;
      bottom: 125%;
      right: 0;
      transition: opacity 0.3s;
      white-space: normal;
      max-width: 500px;
    }

    .tooltip-wrapper:hover .custom-tooltip {
      visibility: visible;
      opacity: 1;
    }

    .playerCard {
      width: 100%;
      background: #fff;
      border-radius: 0px 0px 20px 20px ;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      border-top: 12px solid #131b4a;
      transition: transform 0.3s ease;
      border-radius: 18px;
      margin:auto;
    }

    .playerCard:hover {
      transform: translateY(-8px);
    }

    .player-card-avatar {
        width: 100%;
        height: 20rem;
        object-fit: cover;
    }

    .card-avatar {
        position: relative;
        height: 20rem;
    }

    .club-logo {
      position: absolute;
      bottom: 10px;
      left: 10px;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 3px solid #fff;
      background: #fff;
      object-fit: cover;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .player-card-info {
      padding: 14px;
      background: #f1f5f9;
      text-align: center;
    }

    .player-card-name {
      font-size: 16px;
      font-weight: 700;
      color: #2c2c2c;
      margin-bottom: 4px;
      text-shadow: 1px 1px 1px #ddd;
      text-transform: uppercase;
    }

    .player-card-position {
      font-size: 14px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .text-black{
        color: #2c2c2c;
    }
@media only screen and (max-width: 992px) {
    .logo-desktop {
        display: none !important;
    }

    .logo-nho {
        width: 35px;
        height: 35px;
    }

    .row .col {
        padding: 0 .3rem;
    }

    .mobile-text {
        font-size: 12px;
    }

    .mobile-ti-so {
        width: 18% !important;
    }

    .match-header {
        margin: 0.3rem .3rem 0 .3rem;
    }
    .card-event{
        padding: 6px 6px;
    }
    .card .card-content {
        padding: 6px;
    }
    .fontSize14{
        font-size: 14px !important;
    }
    .select-wrapper input.select-dropdown{
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .player-card-avatar,
    .card-avatar {
        height: 23rem;
    }
    .card-custom.double-width {
        grid-column: span 1 !important;
    }

    .card-custom.double-height {
        grid-row: span 1 !important;
        min-height: 135px !important;
    }

    .flex-container {
        flex-direction: column;
        /* Đặt lại hướng các cột theo hàng ngang */
    }

    .item-a {
        order: 1;
        /* Cột A sẽ ở trên cùng trên tablet và desktop */
    }

    .item-b {
        order: 2;
        /* Cột B sẽ ở dưới cùng trên tablet và desktop */
    }

    .selector-container {
        width: 95%;
        margin: 10px auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .day-card,
    .week-card {
        width: 62px;
        padding: 2px;
    }

    .day-name {
        font-size: 0.8rem;
    }

    .day-date,
    .week-label {
        font-size: 0.8rem;
        font-weight:500;
    }
    .container{
        width: 100%;
    }
}

/*start style tong quan */