.ost-entry {
    background: #fff;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.ost-form {
    background: #fff;
    border: 1px solid #d8dde3;
    box-sizing: border-box;
    display: flow-root;
    max-width: 100%;
    min-height: 0;
    padding: 8px;
    width: 100%;
}

.ost-form .ost-full {
    box-sizing: border-box;
    float: none !important;
    margin: 0;
    padding: 0;
    width: 100% !important;
}

.ost-form .ost-form-section {
    background: #fff;
    border: 1px solid #d8dde3;
    box-sizing: border-box;
    margin-bottom: 12px;
    max-width: 100%;
}

.ost-form .ost-main-title {
    align-items: center;
    background: #333 !important;
    border: 0 !important;
    border-radius: 0;
    color: #fff !important;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    margin: 0;
    min-height: 30px;
    padding: 0 10px;
}

.ost-form .ost-row {
    align-items: end;
    background: #fafafa;
    box-sizing: border-box;
    display: grid;
    gap: 10px 12px;
    margin: 0;
    max-width: 100%;
    padding: 9px 10px !important;
}

.ost-form .row.padding-10.ost-row::before,
.ost-form .row.padding-10.ost-row::after {
    content: none !important;
    display: none !important;
}

.ost-form .ost-row > section {
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
    min-width: 0;
    padding: 0;
    width: 100% !important;
}

.ost-order-row {
    grid-template-columns: .8fr .9fr 2fr 2fr;
}

.ost-carrier-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ost-vehicle-row,
.ost-schedule-row {
    grid-template-columns: 1fr 1fr 2fr;
}

.ost-section-heading {
    background: #e8eef4 !important;
    grid-template-columns: 1fr;
    padding: 0 !important;
}

.ost-form .ost-subtitle {
    background: #e8eef4 !important;
    border: 0 !important;
    border-left: 3px solid #3276b1 !important;
    border-radius: 0;
    box-sizing: border-box;
    color: #28557a !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 30px;
    margin: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 0 10px;
    width: 100%;
}

.ost-form .label {
    color: #333;
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    text-align: left !important;
}

.ost-form .input,
.ost-form .select,
.ost-form .textarea,
.ost-form .input input,
.ost-form .select select,
.ost-form .textarea textarea,
.ost-form .chosen-container,
.ost-form .chosen-single {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    width: 100% !important;
}

.ost-form .input input,
.ost-form .select select,
.ost-form .chosen-single {
    height: 34px !important;
}

.ost-form .chosen-single {
    line-height: 32px !important;
}

.ost-form .textarea textarea {
    box-sizing: border-box;
    min-height: 54px;
    resize: vertical;
}

.ost-form .ost-readonly,
.ost-form #txt_total[readonly] {
    background: #f3f3f3 !important;
    color: #555;
}

.ost-form .ost-detail-scroll {
    border: 1px solid #d8dde3;
    box-sizing: border-box;
    margin: 10px;
    max-width: calc(100% - 20px);
    overflow-x: visible;
    width: calc(100% - 20px);
}

.ost-form .ost-detail {
    margin: 0 !important;
    min-width: 0 !important;
    table-layout: fixed;
    width: 100% !important;
}

.ost-form .ost-detail th,
.ost-form .ost-detail td {
    border-color: #dfe3e6 !important;
    box-sizing: border-box;
    padding: 6px 5px !important;
    vertical-align: middle !important;
}

.ost-form .ost-detail thead th {
    background: #f1f3f5;
    color: #49545d;
    font-size: 11px;
    font-weight: 600;
}

.ost-form .ost-detail input {
    box-sizing: border-box;
    height: 32px !important;
    width: 100% !important;
}

.ost-form .ost-detail tfoot td {
    background: #fafafa;
}

.ost-col-item {
    width: 6%;
}

.ost-col-qty {
    width: 13%;
}

.ost-col-cost {
    width: 14%;
}

.ost-col-action {
    width: 6%;
}

.ost-form .ost-add-detail {
    padding: 0 10px 12px;
}

.ost-form .ost-add-detail > .btn {
    margin: 0;
}

.ost-form .ost-footer {
    align-items: center;
    background: #fafafa !important;
    border: 1px solid #d8dde3 !important;
    box-sizing: border-box;
    clear: both;
    display: grid !important;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    margin: 0;
    min-height: 54px;
    padding: 9px 10px !important;
}

.ost-form .ost-footer::before,
.ost-form .ost-footer::after {
    content: none !important;
    display: none !important;
}

.ost-form .ost-footer .lv-requided-require {
    float: none !important;
    grid-column: 1;
    margin: 0 !important;
}

.ost-form .ost-footer #foot_btns {
    float: none !important;
    grid-column: 3;
    justify-self: end;
    margin: 0 !important;
    text-align: right;
    width: auto !important;
}

.ost-form .ost-footer #foot_btns .btn {
    float: none !important;
    margin: 0 0 0 6px !important;
}

.ost-widget {
    border: 0;
    margin-bottom: 0;
}

.ost-state {
    display: inline-block;
    min-width: 66px;
    padding: 4px 7px;
    text-align: center;
}

.ost-state-emitted {
    background: #5cb85c;
}

.ost-state-cancelled {
    background: #d9534f;
}

.ost-pdf-dialog {
    width: 950px;
}

@media (max-width: 1100px) {
    .ost-order-row,
    .ost-vehicle-row,
    .ost-schedule-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ost-order-row,
    .ost-carrier-row,
    .ost-vehicle-row,
    .ost-schedule-row {
        grid-template-columns: 1fr;
    }

    .ost-form .input input,
    .ost-form .select select,
    .ost-form .chosen-single {
        height: 40px !important;
    }

    .ost-form .chosen-single {
        line-height: 38px !important;
    }

    .ost-form .ost-detail-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .ost-form .ost-detail {
        min-width: 720px !important;
        width: 720px !important;
    }

    .ost-form .ost-add-detail > .btn {
        box-sizing: border-box;
        min-height: 40px;
        width: 100%;
    }

    .ost-form .ost-footer {
        align-items: stretch;
        display: flex !important;
        flex-direction: column;
    }

    .ost-form .ost-footer #foot_btns {
        display: flex;
        gap: 8px;
        width: 100% !important;
    }

    .ost-form .ost-footer #foot_btns .btn {
        box-sizing: border-box;
        flex: 1 1 0;
        margin: 0 !important;
        min-height: 40px;
    }
}

@media (max-width: 991px) {
    .ost-pdf-dialog {
        width: auto;
    }
}
