﻿.hidden {
    display: none !important;
}

.upper {
    text-transform: uppercase !important;
}

.none-border {
    border: none !important;
}

.color-red {
    color: red !important;
}

.error-text {
    color: red !important;
    font-size:13px;
    font-style:italic;
}

.cell-editable {
    border: none !important;
    background-color: #eee !important;
    text-align: center !important;
}

.loai-lenh {
    font-weight: bold;
    color: #FF9F00;
}

.text-hilight {
    font-weight: bold;
    color: #FF9F00;
}

.cell-hilight {
    font-weight: bold;
    color: #FF4F0F !important;
}

.input {
    border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    height:30px;
}

.bt-active {
    border-bottom: solid 3px #20c997;
}

.bt-disable {
    border-bottom: solid 3px #eee;
}

.form-select.select2.cell-editable {
    padding: 2px 4px;
    font-size: 14px;
    height: auto;
    min-width: 100px;
}

.w-20px {
    width: 20px !important;
}

.w-30px {
    width: 30px !important;
}

.w-40px {
    width: 40px !important;
}

.w-50px {
    width: 50px !important;
}

.w-60px {
    width: 60px !important;
}

.w-70px {
    width: 70px !important;
}

.w-80px {
    width: 80px !important;
}

.w-100px {
    width: 100px !important;
}

.w-150px {
    width: 150px !important;
}

.w-180px {
    width: 180px !important;
}

.w-200px {
    width: 200px !important;
}

.w-250px {
    width: 250px !important;
}

.w-300px {
    width: 300px !important;
}

.w-400px {
    width: 400px !important;
}

.w-30{
    width:30% !important;
}

.w-70 {
    width: 70% !important;
}

.h-20px {
    height: 20px !important;
}

.h-30px {
    height: 30px !important;
}

/*dùng để bỏ border-radius ở 1 số control*/
.none-round {
    border-radius: 0 !important;
}

.bg-red {
    background-color: #bb0011 !important;
    color: #fff !important;
}

.bg-yellow {
    background-color: #ffd800 !important;
}

.bg-blue {
    background-color: #007bff !important;
    color: #fff !important;
}

.bg-green {
    background-color: #28a745 !important;
    color: #fff !important;
}

.white {
    background-color: #28a745 !important;
    color: #fff !important;
}

.color-green {
    color: #28a745 !important;
}

.color-white {
    color: #fff !important;
}

/* Styles cho action buttons */
.btn-delete {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-delete:hover {
        background-color: #c82333;
    }

.btn-command {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-yellow {
    background-color: #ffc107;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-yellow:hover {
        background-color: yellow;
    }

.btn-copy {
    background-color: #17a2b8;
    border: none;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-copy:hover {
        background-color: #138496;
    }

.btn-detail {
    background-color: #6f42c1;
    border: none;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-detail:hover {
        background-color: #5a32a3;
    }

.btn-add-row {
    background-color: #ffc107;
    border: none;
    color: #212529;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 10px;
}

    .btn-add-row:hover {
        background-color: #e0a800;
    }

.btn-search-sm {
    height: 30px;
    background-color: #2a5298;
    color: #fff;
}

.row-deleted {
    background-color: #f8d7da !important;
    opacity: 0.6;
    text-decoration: line-through;
}

.command-created {
    background-color: #d1ecf1 !important;
}

.flex-item-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-item-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.font-10 {
    font-size: 10px !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-13 {
    font-size: 13px !important;
}

.font-14 {
    font-size: 14px !important;
}

.font-15 {
    font-size: 15px !important;
}

.a-btn-13 {
    font-size: 13px;
    text-decoration:none;
}

.a-btn-14 {
    font-size: 14px;
    text-decoration:none;
}

.a-btn-15 {
    font-size: 15px;
    text-decoration:none;
}

.bold-none {
    font-weight: normal !important;
}

.bold {
    font-weight: bold !important;
}

.edit-hint {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Áp dụng cho phần hiển thị của select2 (thường là div có class select2-selection) */
.select2-container--default .select2-selection--single {
    border: none;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    height: 30px;
    line-height: 30px;
}

    /* Điều chỉnh padding và chiều cao của text bên trong */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 8px;
        padding-right: 8px;
        line-height: 30px;
    }

    /* Bỏ viền focus (tùy chọn) */
    .select2-container--default .select2-selection--single:focus,
    .select2-container--default .select2-selection--single:active {
        outline: none;
        box-shadow: none;
    }

/* Áp dụng cho tất cả thẻ input và select */
input, select {
    border: none;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    height: 30px;
    padding: 4px 8px;
    box-sizing: border-box;
}

    /* Bỏ outline khi focus (tùy chọn) */
    input:focus, select:focus, textarea:focus {
        outline: none;
        box-shadow: none;
    }

/* Cho phần hiển thị của select2 */
.select2-container--default .select2-selection--single {
    border: none;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    height: 30px;
    line-height: 30px;
}

    /* Cho nội dung bên trong select2 */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 8px;
        padding-right: 8px;
        line-height: 30px;
    }

/* Cho select2 dạng multiple */
.select2-container--default .select2-selection--multiple {
    border: none;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    min-height: 30px;
    padding: 4px 8px;
}

    /* Bỏ viền khi focus */
    .select2-container--default .select2-selection--single:focus,
    .select2-container--default .select2-selection--multiple:focus {
        outline: none;
        box-shadow: none;
    }



/* Style cho textarea (không set height) */
textarea {
    border: none;
    border-bottom: solid 1px #94B4C1;
    background-color: #f8f9fa;
    border-radius: 0px;
    padding: 4px 8px;
    box-sizing: border-box;
    resize: vertical; /* Cho phép kéo dãn chiều cao nếu cần */
}

/* Áp dụng cho input, textarea, select */
input,
textarea,
select {
    font-size: 14px;
    color: #212121;
}

/* Áp dụng cho select2 (single) */
.select2-container--default .select2-selection--single {
    font-size: 14px;
    color: #212121;
}

    /* Áp dụng cho text hiển thị trong select2 (single) */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px;
        color: #212121;
    }

/* Áp dụng cho select2 (multiple) */
.select2-container--default .select2-selection--multiple {
    font-size: 14px;
    color: #212121;
}

    /* Text trong thẻ chọn nhiều */
    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
        font-size: 14px;
        color: #212121;
    }

.pointer {
    cursor: pointer !important;
}