/* start of aa table -- using flexbox */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
}

.form-wrapper .aa-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: var(--font-size-base);
    line-height: 1.5;
    border-top: var(--form-border);
    border-left: var(--form-border);
}

.form-wrapper .aa-table .aa-th,
.form-wrapper .aa-table .aa-td {
    padding: 4px 10px;
    border-right: var(--form-border);
    border-bottom: var(--form-border);
    min-height: 30px;
}

.form-wrapper .aa-table .tf-bhead {
    font-size: var(--font-size-lg);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.form-wrapper .aa-table .tf-label {
    padding-top: 10px;
    background: var(--form-label-bgcolor);
    font-weight: bold;
}

.form-wrapper .aa-table .tf-label.required {
    color: #dc3545;
}

.form-wrapper .aa-table .tf-label.required:after {
    color: #dc3545;
    content: '*';
}

.form-wrapper .aa-table .aa-td.inner-box {
    padding: 0px;
    border-bottom: 0px;
    border-right: 0px;
}

.form-wrapper .aa-table.inner {
    margin: 0px;
    border-top: 0px;
    border-left: 0px;
}

/* less than lg(992px) */
@media only screen and (max-width: 991px) {
    .form-wrapper .aa-table .aa-th,
    .form-wrapper .aa-table .aa-td {
        width: 100%;
        border-top: 0px;
    }

    .form-wrapper .aa-table .tf-label {
        text-align: left;
        background: inherit;
        padding-bottom: 0px;
        border-bottom: 0px;
    }
}
/* end of form table */

/* start of form element */
.form-wrapper .aa-table .tf-control,
.table-responsive .table .tf-control {
    border: 1px solid #c2cad8;
    border-radius: 4px;
    padding: 3px 6px;
    display: inline-block;
    width: auto;
    margin: 2px 0px;
    outline: 0px;
}

.form-wrapper .aa-table input.tf-control,
.table-responsive .table input.tf-control {
    width: 100%;
}

.form-wrapper .aa-table select.tf-control,
.table-responsive .table select.tf-control {
    width: 100%;
    height: 35px;
}

.form-wrapper .aa-table textarea.tf-control,
.table-responsive .table textarea.tf-control {
    width: 100%;
    resize: vertical;
}

.form-wrapper .aa-table .tf-control:focus,
.table-responsive .table .tf-control:focus {
    border-color: #3b82f6;
    /*    box-shadow: 0 0 0 0.2rem #bfdbfe;*/
}

.form-wrapper .aa-table .tf-control:disabled {
    color: #999898;
    background-color: #f4f3f0;
    border: 0px;
    box-shadow: none;
}

.form-wrapper .aa-table input[readonly].tf-control {
    background-color: #f4f3f0;
    border: 0px;
    box-shadow: none;
}

.form-wrapper .aa-table .tf-control.plaintext:disabled,
.form-wrapper .aa-table input[readonly].tf-control.plaintext {
    color: inherit;
    background-color: transparent;
    border: 0px;
    box-shadow: none;
    padding: 4px 0;
}

.form-wrapper .aa-table .tf-control.w-sm {
    width: 100px !important;
}

.form-wrapper .aa-table .tf-control.w-md {
    width: 200px !important;
}

.form-wrapper .aa-table .tf-control.w-lg {
    width: 300px !important;
}

.form-wrapper .aa-table .tf-control.w-full {
    width: 100% !important;
}

/* less than xl(1200) */
@media only screen and (max-width: 1199px) {
    .form-wrapper .aa-table input.tf-control,
    .form-wrapper .aa-table select.tf-control,
    .form-wrapper .aa-table textarea.tf-control,
    .table-responsive .table input.tf-control,
    .table-responsive .table select.tf-control,
    .table-responsive .table textarea.tf-control {
        width: 100%;
    }
}
/* end of form element */

/* start of form text */
.form-wrapper .aa-table .tf-text {
    padding-top: 10px;
}

.form-wrapper .aa-table .tf-help {
    display: block;
    padding: 3px;
    color: #d896a7;
}

.form-wrapper .aa-table .tf-help-inline {
    display: inline-block;
    padding: 3px;
    color: #d896a7;
}
/* end of form text */

/* start of form action */
.input-group-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.left {
    text-align: left !important;
}

.center {
    text-align: center !important;
}

.right {
    text-align: right !important;
}
/* end of form action */

/* start of mt-checkbox, mt-radio*/
.mt-checkbox-list,
.mt-checkbox-inline,
.mt-radio-list,
.mt-radio-inline {
    padding: 0px;
}

/* override components.css*/
.mt-checkbox.mt-checkbox-outline:hover > input:not([disabled]):checked ~ span,
.mt-checkbox.mt-checkbox-outline:hover > input:not([disabled]) ~ span,
.mt-checkbox.mt-checkbox-outline > input:checked ~ span,
.mt-checkbox.mt-checkbox-outline > input:focus ~ span,
.mt-checkbox.mt-checkbox-outline > span,
.mt-checkbox.mt-radio-outline:hover > input:not([disabled]):checked ~ span,
.mt-checkbox.mt-radio-outline:hover > input:not([disabled]) ~ span,
.mt-checkbox.mt-radio-outline > input:checked ~ span,
.mt-checkbox.mt-radio-outline > input:focus ~ span,
.mt-checkbox.mt-radio-outline > span,
.mt-radio.mt-checkbox-outline:hover > input:not([disabled]):checked ~ span,
.mt-radio.mt-checkbox-outline:hover > input:not([disabled]) ~ span,
.mt-radio.mt-checkbox-outline > input:checked ~ span,
.mt-radio.mt-checkbox-outline > input:focus ~ span,
.mt-radio.mt-checkbox-outline > span,
.mt-radio.mt-radio-outline:hover > input:not([disabled]):checked ~ span,
.mt-radio.mt-radio-outline:hover > input:not([disabled]) ~ span,
.mt-radio.mt-radio-outline > input:checked ~ span,
.mt-radio.mt-radio-outline > input:focus ~ span,
.mt-radio.mt-radio-outline > span {
    border: 1px solid #c2cad8;
}

.mt-checkbox-list .mt-checkbox,
.mt-radio-list .mt-radio {
    display: inline-block;
    width: 100%;
}

.mt-checkbox,
.mt-radio {
    font-size: inherit;
    padding-left: 25px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.mt-checkbox.mt-checkbox-undetermined > span:after {
    left: 2px;
    top: 2px;
    border: solid #ccc;
    border-width: 6px;
    transform: rotate(0deg);
}

/* override components.css*/
.mt-checkbox > span:after {
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #5471bf;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* override components.css*/
.mt-radio > span:after {
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #5471bf;
}

.dataTable .mt-checkbox.mt-checkbox-single,
.dataTable .mt-radio.mt-radio-single {
    display: inline;
}

td .mt-checkbox.mt-checkbox-single,
td .mt-radio.mt-radio-single,
th .mt-checkbox.mt-checkbox-single,
th .mt-radio.mt-radio-single {
    right: -5px;
}
/* end of mt-checkbox, mt-radio */

/* start of dt */
.input-group {
    display: flex;
}

.input-group-addon {
    display: flex;
    align-items: center;
    width: auto;
    margin: 2px 0;
    padding: 6px 10px;
    font-size: var(--font-size-icon);
    color: #555;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-wrapper .aa-table .input-group .tf-control,
.table-responsive .table .input-group.tf-control {
    width: 120px;
    border-radius: 4px 0px 0px 4px;
}

.form-wrapper .aa-table .input-group.disabled .input-group-addon,
.table-responsive .table .input-group.disabled .input-group-addon {
    display: none;
}

.form-wrapper .aa-table .input-group.disabled input.tf-control,
.table-responsive .table .input-group.disabled input.tf-control {
    border-radius: 4px;
}

.input-group-addon > i {
    color: #000000;
}
/* end of dt */
