/* start of aa table -- using flexbox */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
}

.aa-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 10px;

    border-top: var(--form-border);
    border-left: var(--form-border);
    border-right: var(--form-border);
}

.aa-table .aa-th,
.aa-table .aa-td {
    padding: 4px 10px;
    border-bottom: var(--form-border);
    min-height: 30px;
}

.aa-table .aa-td.aa-inner-table {
    padding: 0px;
    border-bottom: 0px;
    border-right: 0px;
    border-left: var(--form-border);
}

.aa-table.no-border {
    border: 0;
}

.aa-table.compact {
    margin-bottom: 0;
}

.aa-table.compact .aa-th,
.aa-table.compact .aa-td {
    padding: 2px 10px;
}

.aa-table.compact .tf-label {
    padding-top: 4px;
}

.aa-table.compact .tf-text {
    padding-top: 4px;
}

.aa-table.compact .tf-control,
.aa-table.compact .tf-control.plaintext:disabled,
.aa-table.compact input[readonly].tf-control.plaintext {
    margin: 1px 0px;
    padding: 1px 0px;
}

/* less than lg(992px) */
@media only screen and (max-width: 991px) {
    .aa-table .aa-th,
    .aa-table .aa-td {
        width: 100%;
        border-top: 0px;
    }
}

/* end of form table */

/* start of form element */
.tf-block {
    display: block !important;
}

.tf-group {
    margin-bottom: 10px;
}

.tf-label {
    padding-top: 10px;
    background: var(--form-label-bgcolor);
    font-weight: bold;
    text-align: right;
}

.tf-label.required {
    color: inherit;
}

.tf-label.required:before {
    color: var(--tf-label-required-color);
    content: '*';
}

.tf-control {
    border: var(--tf-control-border);
    border-radius: 4px;
    padding: 3px 6px;
    display: block;
    width: auto;
    margin: 2px 0px;
    outline: 0px;
}

.input-icon > .tf-control {
    padding-left: 33px;
}

.input-icon.right > .tf-control {
    padding-right: 33px;
    padding-left: 6px;
}

input.tf-control {
    width: 100%;
}

select.tf-control {
    width: 100%;
    height: 35px;
}

textarea.tf-control {
    width: 100%;
    resize: vertical;
}

.tf-control:focus {
    border: 1px solid #3b82f6 !important;
    /*    box-shadow: 0 0 0 0.2rem #bfdbfe;*/
}

.tf-control:disabled {
    color: #000;
    background-color: #f6f6f6;
    box-shadow: none;
}

input[readonly].tf-control {
    background-color: #f6f6f6;
    border: 0px;
    box-shadow: none;
}

.tf-control.plaintext:disabled,
input[readonly].tf-control.plaintext {
    color: inherit;
    background-color: transparent;
    border: 0px;
    box-shadow: none;
    padding: 4px 0;
}

.tf-control.w-dm {
    width: 120px !important;
}

.tf-control.w-ssm {
    width: 72px !important;
}

.tf-control.w-sm {
    width: 100px !important;
}

.tf-control.w-md {
    width: 200px !important;
}

.tf-control.w-lg {
    width: 300px !important;
}

.tf-control.w-full {
    width: 100% !important;
}

/* less than lg(992px) */
@media only screen and (max-width: 991px) {
	.tf-label {
        text-align: left;
        background: inherit;
        padding-bottom: 0px;
        border-bottom: 0px;
    }

    input.tf-control,
    select.tf-control,
    textarea.tf-control {
        width: 100%;
    }
}

/* end of form element */

/* start of form text */
.tf-text {
    padding-top: 10px;
}

.tf-help {
    display: block;
    margin: 2px 0;
    color: var(--tf-help-color);
}

.tf-help-inline {
    display: inline-block;
    margin: 2px 0;
    color: var(--tf-help-color);
}

/* end of form text */

/* start of form action */
.input-group-inline {
    display: inline-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;
}

.mt-checkbox-single .mt-checkbox,
.mt-radio-single .mt-radio {
    padding-left: 18px;
}

.mt-checkbox,
.mt-radio {
    font-size: inherit;
    margin: 2px 0;
    padding-left: 25px;
}

.mt-checkbox input[type='checkbox'],
.mt-radio input[type='radio'] {
    position: static;
    width: 0;
}

.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.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: var(--tf-control-border);
    top: 3px;
    background: #fff;
}

/* override components.css*/
.mt-checkbox > span:after {
    left: 30%;
    top: 0%;
    width: 7px;
    height: 13px;
    border: 1px solid #0d6efd;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* override components.css*/
.mt-radio > span:after {
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50% !important;
    background: #0d6efd;
    transform: translate(-50%, -50%);
}

/* end of mt-checkbox, mt-radio */

/* start of calendar */
.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.aa-calendar-range {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-group-addon {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 2px 0;
    padding: 0px 10px;
    font-size: var(--font-size-icon);
    color: #555;
    background-color: #eee;
    border: var(--tf-control-border);
    border-radius: 4px;
}

.input-group.aa-calendar-d .tf-control,
.input-group.aa-calendar-t .tf-control {
    width: 110px;
}

.input-group.disabled .input-group-addon {
    display: none;
}

.input-group.disabled .tf-control {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

a {
    color: #0468f1;
    font-weight: bold;
}

a:hover {
    color: #f25702;
}

.tf-file-dl > a {
    text-decoration: none;
}

.tf-file-dl > a:hover {
    text-decoration: underline;
}

/* end of calendar */

/* start of aa-thead -------------------- */
.aa-table .aa-thead .tf-bhead,
.aa-table .aa-tbody .tf-bhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-base);
    font-weight: 700;
    padding: 4px 10px;
    min-height: 2.5em;
    background: var(--tf-bhead-bg);
    color: var(--tf-bhead-color);
    border-bottom: var(--form-border);
}

.aa-table .aa-thead .tf-bhead .caption,
.aa-table .aa-tbody .tf-bhead .caption {
    display: inline-flex;
    align-items: center;
}

.aa-table .aa-thead .tf-bhead .caption i,
.aa-table .aa-tbody .tf-bhead .caption i {
    margin-right: 6px;
}

.aa-table .aa-thead .tf-bhead .tools,
.aa-table .aa-tbody .tf-bhead .tools {
    white-space: nowrap;
}

.aa-table .aa-thead .tf-bhead .tools > a,
.aa-table .aa-tbody .tf-bhead .tools > a {
    display: inline-block;
    height: 16px;
    width: 14px;
    vertical-align: middle;
    margin-left: 5px;
}

.aa-table .aa-thead .tf-bhead .tools > a.collapse,
.aa-table .aa-tbody .tf-bhead .tools > a.collapse {
    background-image: url(/frontweb/skin/assets/global/img/portlet-collapse-icon-white-215fff02791c8a1c7315e6ffd20de7d9.png);
}

.aa-table .aa-thead .tf-bhead .tools > a.expand,
.aa-table .aa-tbody .tf-bhead .tools > a.expand {
    background-image: url(/frontweb/skin/assets/global/img/portlet-expand-icon-white-979e05ef18b6b7ad3c93bffa5f62028a.png);
}

.aa-table.tablebox .aa-thead {
    border-top: var(--form-border);
}

/* end of aa-thead -------------------- */

/* start of alert */
.alert-danger {
    --bs-alert-color: #ee2e08;
    --bs-alert-bg: #fff;
    --bs-alert-border-color: #ee2e08;
    --bs-alert-link-color: #ee2e08;
}

/* end of alert */
