﻿body{    
}

h1, h2, h3, h4, h5, h6 {
    color: #000000;
    font-weight: bold;
}

#custom-alert {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff200; /* Màu đỏ */
    color: #000000;
    padding: 16px 24px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    font-size: 20px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-weight: bold;
}

.header-form{    
    opacity:0.7;
    font-size:20px !important;
    font-weight:bold !important;
    text-align:left !important;
}

.row {
    padding-bottom: 0px;
    padding-top: 0px;    
}
.preserve-space {
    white-space: pre; /* hoặc white-space: pre-wrap; nếu bạn muốn xuống dòng khi quá dài */
    font-family: monospace; /* tuỳ chọn nếu bạn muốn dễ nhìn */
}

.bad-row {
    background-color: pink !important;
}

.red-text {
    color: red !important;
}

.highlight-red {
    background-color: #ffa070;
    color: red;
}

.btn {
    padding-left: 8px;
    padding-right: 8px;
}

a {
    cursor: pointer;
}

label {
    color: #000000;
    font-weight: bold;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.KhungOverflow {        
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow45 {    
    height: 45vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow80 {
    min-height: 80vh;
    height: 80vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow10 {
    min-height: 10vh;
    height: 10vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}

.KhungOverflow60 {
    min-height: 60vh;
    height: 60vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow40 {
    min-height: 40vh;
    height: 40vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}

.KhungOverflow30 {
    min-height: 30vh;
    height: 30vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow35 {
    min-height: 35vh;
    height: 35vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}

.KhungOverflow20 {
    min-height: 20vh;
    height: 20vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow50 {
    min-height: 50vh;
    height: 50vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow55 {
    min-height: 55vh;
    height: 55vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow70 {
    min-height: 70vh;
    height: 70vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow25 {
    min-height: 25vh;
    height: 25vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}
.KhungOverflow35 {
    min-height: 35vh;
    height: 35vh;
    width: 100%;
    overflow: auto;
    border-bottom: 1px #000000 solid;
}

.mat-header-row,
.cdk-header-row {
    background-color: #e4e4e4;
}

/* Thiết lập chung cho bảng */
table {
    width: 100%;
    border-collapse: collapse; /* Loại bỏ khoảng cách giữa các ô */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Tạo hiệu ứng bóng */
    color: black;
}

    /* Định dạng tiêu đề và chân bảng */
    table thead, table tfoot {
        background-color: #00a1ff;
    }

        table thead th, table tfoot th {
            color: #000000;
            font-weight: bolder;
            font-size: 16px;
            text-transform: uppercase;
            white-space: nowrap;
            padding: 10px;
            min-height: 25px;
            height: auto !important;
            border-right: 0px solid #000;
            cursor: pointer;
            text-align: center; /* Căn giữa nội dung */
            vertical-align: middle; /* Căn giữa theo chiều dọc */
        }

    /* Định dạng nội dung hàng */
    table tbody tr {
        background-color: transparent;
        cursor: pointer;
    }

        table tbody tr:nth-child(even) {
            background-color: #e6e6e6;
        }

        /* Định dạng ô nội dung */
        table tbody tr td {
            white-space: nowrap;
            text-align: center; /* Căn giữa nội dung */
            vertical-align: middle; /* Căn giữa theo chiều dọc */
            padding: 2px;
            font-size: 14px !important;
        }

/* Tạo đường viền đẹp mắt */
table, th, td {
    border: 1px solid #ccc; /* Viền mềm mại */   
}

    /* Hiệu ứng hover */
    table tbody tr:hover {
        background-color: #d1d1d1;
    }
    /* Màu cho dòng đã chọn */
    table tbody tr.selected {
        background-color: #67e6fc !important; /* Màu xanh dương */
        color: blue !important;
        font-weight: bold;
    }

#Table2_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dt-nowrap {
    white-space: nowrap;
}

/* Tối ưu hiển thị trên di động */
@media (max-width: 768px) {
    table {
        font-size: 14px;
        padding: 0px !important;
    }

        table thead th, table tfoot th {
            font-size: 14px;
        }
}

input[type="number"],
input[type="date"] {
    text-align: right;
}

input[type="text"],
input[type="number"],
label,
span,
select,
option {
    font-size: 16px;
}

input[type="password"],
input[type="date"],
select {
    color: green;
    font-size: 16px;
    background-color: #ffffff !important;
}

input[type="checkbox"] {
    width: 5px !important;
    height: 5px !important;
}

option,
.form-select,
.form-control {
    color: green;
    font-size: 16px;
    font-weight: bold;
    background-color: #ffffff !important;
}

option,
.form-select {
    height: 28px !important;
}

.form-control {
    height: 28px !important;
    min-width: 100px !important;
}

.form-label {
    font-weight: bolder;
}

.breadcrumbs-title,
.card-title {
    font-size: 16px !important;
}

#breadcrumbs-wrapper {
    padding: 0px;
    margin: 0px;
    margin-top: -30px;
}

.card-content {
    padding: 5px !important;
}

.card-default {
    margin: 5px;
}

mat-select div,
mat-option div {
    font-size: 12px;
}
/*===========Button===============*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 6px;
    font-size: 14px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    border-radius: 6px;
/*    background-color: #007bff;*/
    color: white;
    cursor: pointer;
    margin-top:2px;
    margin-bottom:5px;
}

    .btn i {
        font-size: 22px;
        line-height: 1;
    }

.tabs {
    display: flex;
    gap: 2px; /*khoảng cách giữa các tab */
    height: 36px;
    list-style: none;
    padding: 5px;
    margin: 5px;
    border-bottom: 1px solid #ccc;
    justify-content: space-between; /* canh đều nếu không dùng flex:1 */
}

    .tabs .tab {
        flex: 1; /* tab chia đều chiều rộng */
        text-align: center; /* căn giữa chữ */
        padding: 0 10px;
        margin: 0px;
        height: 35px; /* chiều cao cố định cho toàn bộ tab */
        line-height: 30px; /* giúp chữ nằm giữa theo chiều dọc */
        white-space: nowrap;
    }

        .tabs .tab a {
            background-color: rgba(0, 123, 255, 0.5);
            color: black;
            display: inline-block;
            padding: 0 10px; /* chỉ padding ngang, không padding trên dưới */
            height: 100%;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            font-size: 13px;
            font-weight: normal;
            transition: background-color 0.3s ease;
            text-align: center;
            line-height: 35px; /* căn giữa chữ */
        }

            /* Hover */
            .tabs .tab a:hover {
                background-color: rgba(0, 123, 255, 0.80);
                color: black;
            }

            /* Active */
            .tabs .tab a.active {
                background-color: rgba(0, 123, 255, 1);
                font-weight: bold;
                color: black;
                font-size: 16px;
            }

            /* Gỡ border mặc định của Materialize */
            .tabs .tab a,
            .tabs .tab a.active {
                border: none;
            }


/* Áp dụng cho tất cả input và textarea */
input[type="text"], textarea {
    border: 2px solid #ccc; /* Viền mặc định xám nhạt */
    border-radius: 4px; /* Bo góc nhẹ */
    padding: 6px 10px;
    transition: border-color 0.3s; /* Hiệu ứng mượt khi đổi màu */
    background-color: #ffffff !important; /* nen mau trang */
}

    /* Khi được chọn (focus) */
    input[type="text"]:focus, textarea:focus {
        border-color: green; /* Viền màu xanh lục */
        outline: none; /* Loại bỏ viền mặc định của trình duyệt */
    }

input[readonly] {
    background-color: #b6b6b6 !important; /* Màu xám nhạt */
    border-color: #ccc !important;
}
input[disabled] {
    background-color: #b6b6b6 !important; /* Màu xám nhạt */
    border-color: #ccc !important;
}


/* Mặc định: viền xám nhẹ, bo góc */
input.form-control {
    border: 2px solid #ccc !important;
    height: 25px !important;
    padding: 0 4px !important;
    font-size: 16px;
    margin: 2px;
}

    input.form-control:focus {
        border-color: green !important;
        box-shadow: none !important;
    }


select.form-select {
    border: 2px solid #ccc !important;
    height: 28px !important;
    padding: 0 2px !important;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff !important;
    margin-bottom: 8px;
}

    select.form-select:focus {
        border-color: green !important;
        box-shadow: none !important;
    }

.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
}


nav {
    width: 100%; /* Đảm bảo menu chiếm toàn bộ chiều rộng */
    font-size: 12px;
    justify-content: flex-start; /* Căn giữa nội dung theo hàng ngang */
    padding: 4px 0; /* Khoảng cách giữa nội dung và mép */
}

/* Vị trí Toast container */
#toast-container {
    top: auto !important;
    right: auto !important;
    bottom: 30px !important;
    left: 50px !important;
    position: fixed !important;
    z-index: 9999 !important;
}

    /* Giao diện nội dung Toast */
    #toast-container .toast {
        font-size: 18px !important;
        font-weight: bold !important;
        font-family: Arial, sans-serif !important; /* thêm nếu bạn muốn chỉ định font cụ thể */
    }


.sortable {
    cursor: pointer;
}

    .sortable:hover {
        background-color: #f5f5f5;
    }

    .sortable .sort-icon::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 5px;
        vertical-align: middle;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
    }

    .sortable.asc .sort-icon::after {
        content: '↑';
    }

    .sortable.desc .sort-icon::after {
        content: '↓';
    }


.hidden-column {
    display: none;
}