.tbnhapdiem {
    display: inline-table;
}

.tbnhapdiem th {
    border-top: 1px solid #ccc;
}

.tbnhapdiem .col1 {
    width: 5%;
}

.tbnhapdiem .col2 {
    width: 8%;
}

.tbnhapdiem .col3 {
    width: 20%;
}

.tbnhapdiem td.col3 {
    text-align: left;
}

.tbnhapdiem .col4 {
    width: 10%;
}

.tbnhapdiem .col5 {
    width: 18%;
}

/*.tbnhapdiem .col6 {*/
/*    width: 15%;*/
/*}*/

/*.tbnhapdiem .col7 {*/
/*    width: 15%;*/
/*}*/

/*.tbnhapdiem .col8 {*/
/*    width: 9%;*/
/*}*/

.tbnhapdiem .tdtop {
    border-right: 0;
}

.tbnhapdiem .col input[type="text"] {
    text-align: center;
}
.tbnhapdiem .tongDiemTP input[type="text"],
.tbnhapdiem .diemTong input[type="text"] {
    border: 0;
    font-weight: bold;
    color: #555;
    background: transparent;
}
.tbnhapdiem .tongDiemTP input[type="text"] {
    font-weight: normal;
}

.cuoiky {
    margin-left: 10px;
}
#component_grade_weighting {
    background: #f9fafb;
    text-align: center;
    cursor: not-allowed;
}
#final_grade_weighting {
    background: #f9fafb;
    text-align: center;
    cursor: not-allowed;
}

#component_grade_weighting {
    text-align: center;
}

.tbnhapdiemaction tbody {
    display: block;
    /*width: 92%;*/
    /*margin: 0 auto 10px auto;*/
    padding: 32px;
}

.tbnhapdiemaction td {
    padding-top: 6px;
    padding-bottom: 6px;
}

.tbnhapdiemaction label {
    /*	font-weight: bold;*/
}

.tbnhapdiemaction select {
    width: 200px;
}

.tbnhapdiemaction .col1 {
    width: 12%;
}

.tbnhapdiemaction .col2 {
    width: 20%;
}

.tbnhapdiemaction .col3 {
    width: 30%;
    padding-left: 5%;
}

.tbnhapdiemaction .col4 {
    width: 30%;
}

.errorconnect {
    text-align: center;
    color: red;
    font-size: 14px;
}

.ifile {
    display: none;           /* ẩn input file */
}

.itai {
    float: right;
}

td.btaction {
    padding-bottom: 10px;
    text-align: center;
    padding-top: 20px;
}

td.btaction input[type='submit'] {
    padding: 5px;
}

.tb4 {
    border: 1px solid #e5e5e5;
    background-color: #f1f1f1;
    padding: 20px;
    margin-top: 20px;
    width: 240px;
}

.tb4 .title {
    padding: 0 0 1.2em;
    font-size: 16px;
    line-height: 17px;
    height: 16px;
}

.tb4 .line {
    padding-bottom: 10px;
}

.tb4 .line label {
    font-weight: bold;
}

.tb4 input[type="text"],
.tb4 input[type="password"] {
    width: 200px;
    padding: 3px 2px;
}

.tb4 input[type="submit"] {
    padding: 5px;
}

.tb4 .error {
    color: red;
}

.tbstatistic {
    width: 100%;
    float: left;
    padding-top: 20px;
}

.tbstatistic .tdcontent input[type="text"] {
    width: 50px;
    border: 0;
    background: transparent;
}

.tdcontent {}

.tbstatistic td {
    vertical-align: top;
}

.statistic2 textarea {
    resize: none;
    border: 0;
    padding: 0;
    width: 100%;
    float: left;
    font-family: arial;
    font-size: 12px;
    height: 64px;
}

.tds1,
.tds2 {
    width: 50%;
    float: left;
}

.tbstatistic .tdtitle {
    background: #f3f3f3;
    line-height: 24px;
    height: 24px;
    font-weight: bold;
    padding: 0 0 0 10px;
    border-bottom: 1px dotted #aaa;
}

.statistic1,
.statistic2 {
    border: 1px solid #aaa;
    height: 100px;
    background-color: white;
}

.statistic2 textarea:focus {
    outline: none;
}

.statistic2 td {
    padding: 5px;
}

.statistic2 {
    width: 100%;
}

.statistic1 .tdlabel {
    padding: 5px;
    vertical-align: middle;
    font-weight: bold;
}

.statistic1 .tdcontent {
    padding: 5px;
    vertical-align: middle;
}

.xuatfileexcel {
    background-image: url('/assets/css/images/export_excel.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
}

.xuatmavach {
    background-image: url('/assets/css/images/barcode.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
}

.luulai {
    background-image: url('/assets/css/images/store_server.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
}
.exportStatistic {
    background-image: url('/assets/css/images/export_statistic.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
}

.luulai,
.xuatfileexcel,
.xuatmavach,
.exportStatistic {
    height: 32px;
    padding: 8px 20px 8px 44px !important;
    margin-left: 4px;
    margin-right: 4px;
    color: white;
    background-color: #AB2523;
    border: 0;
    border-radius: 0.25rem;
}

.xuatfileexcel:hover,
.luulai:hover,
.xuatmavach:hover {
    cursor: pointer;
}

/* ==== File upload styles ==== */
.fileUpload {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 32px;
    float: left;

    display: flex;
    align-items: center;

    width: calc(100% - 120px);
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
}

.fileUpload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;              /* vẫn ẩn input thật */
}

/* ===== Restore Choose File button style ===== */
.fileUpload label.chonfile {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 14px 0 32px;

    background-color: #AB2523;
    background-image: url('/assets/css/images/folder.svg');
    background-repeat: no-repeat;
    background-position: 8px center;

    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 4px 0 0 4px;
}

.fileUpload label.chonfile:hover {
    background-color: #991b1b;
}

.fileUpload label.chonfile.disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.8;
}

.file-name,
#tenfile,
#fileNameDisplay {
    flex: 1 1 auto;
    min-width: 0;                 /* QUAN TRỌNG: ngăn flex giãn khung */
    padding-left: 8px;
    padding-right: 8px;
    line-height: 30px;
    font-style: italic;
    color: #333;
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.itai {
    background: #AB2523 url('/assets/css/images/upload.svg') no-repeat 8px center;
    height: 32px;
    border: 1px solid #bbb;
    padding-left: 32px !important;
    margin-left: 0;
    margin-right: 0;
    color: white;
}

.itai:hover
{
    cursor: pointer;
}

.btupload {
    float: left;
}
.subformlogin table {
    display: table;
}

.tbuser {
    max-height: 500px;
    overflow-y: scroll;
}

.tbuser tbody {
    width: 100%;
    display: table;
}

.tbuser td.col2,
.tbuser td.col3 {
    text-align: left;
}

input[type="text"][readonly="readonly"] {
    background: #F5F5F5;
}

.readonly {
    background: #F5F5F5;
}

.unreadonly {
    background: #fff;
}

.tbshow td.loop {
    background: #FFF8AB;
}
.formSummary .z-\[99\]{
    z-index: 99;
}
.formSummary .w-full {
    width: 100%;
}
.formSummary .h-full {
    height: 100%;
}
.formSummary .bg-\[\#8080804a\] {
    background-color: #8080804a;
}
.formSummary .fixed {
    position: fixed;
}
.formSummary .top-0 {
    top: 0px;
}
.formSummary .left-0 {
    left: 0px;
}
.formSummary .hidden {
    display: none;
}

.formSummary .left-2\/4 {
    left: 50%;
}
.formSummary .top-2\/4 {
    top: 50%;
}
.formSummary .absolute {
    position: absolute;
}
.formSummary .z-\[100\]{
    z-index: 100;
}
.formSummary .w-12 {
    width: 3rem;
}
.formSummary .h-12 {
    height: 3rem;
}
.formSummary .text-gray-200 {
    --tw-text-opacity: 1;
    color: rgb(229 231 235 / var(--tw-text-opacity));
}
.formSummary .animate-spin {
    animation: spin 1s linear infinite;
}

.formSummary .fill-blue-600 {
    fill: #2563eb;
}

.exportStatistic:hover {
    cursor: pointer;
}

@keyframes spin {
    0%  {transform: rotate(0deg);}
    100%{transform: rotate(360deg);}
}

.text-box {
    width: 192.38px !important;
    text-align: center;
    border: 1px solid #aaaaaa;
    display: block;
    background: #f9fafb;
    padding: 8px 0;
    cursor: not-allowed;
}

/* ===== Override disabled style: giống thanhphan.php ===== */

/* Button submit / export / save */
.tbnhapdiemaction input[type="submit"][disabled],
.tbnhapdiemaction button[disabled] {
    opacity: 0.5 !important;          /* không bị mờ */
    filter: none !important;
    cursor: not-allowed !important;
}

/* Upload file */
.tbnhapdiemaction input[type="file"][disabled] {
    /*opacity:  !important;*/
    cursor: not-allowed !important;
}
.tbnhapdiemaction #chonfile.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Tránh trình duyệt set not-allowed khi hover */
.tbnhapdiemaction input[type="submit"][disabled]:hover,
.tbnhapdiemaction button[disabled]:hover {
    opacity: 0.5 !important;
}

.text-red-600 {
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}