.info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.info-block > * {
    width: 90%;
}

.info-order-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    margin-bottom: 20px;
}

.info-order-right {
    display: flex;
    gap: 10px;
}

.info-order-right button {
    height: 42px;
    padding: 8px 14px;
    font-size: 15px;
}

.info-form {
    width: 90%;
    margin: 0 auto;
    display: grid;
    row-gap: 18px;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px 1fr;
    column-gap: 14px;
    align-items: center;
}

.info-row label {
    text-align: right;
    font-weight: bold;
}

.info-row input,
.info-row select {
    width: 100%;
    height: 36px;
    padding: 6px 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.info-selector {
    width: 100%;
    height: 36px;
    padding: 6px 8px;
    font-size: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.info-tabs {
    display: flex;
    gap: 10px;
    padding-left: 10px;
    margin-bottom: -5px;
    width: 90%;
}

.info-tab {
    padding: 10px 22px;
    background: #e6e6e6;
    border: 2px solid #555;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    color: #333;
}

.info-tab:hover:not(.active) {
    background: #dcdcdc;
}

.info-tab.active {
    background: #ffffff;
    z-index: 2;
}

.hus-tab {
    display: none;
}

.hus-tab-visible {
    display: block;
}

.hus-panel {
    display: none;
}

.hus-panel-visible {
    display: block;
}

.ti-subtitle {
    font-weight: bold;
    margin: 0 0 16px;
}

.ti-providers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ti-provider-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ti-provider-item input[type='checkbox'] {
    width: 18px;
    height: 18px;
}

.info-content > .info-panel {
    display: none;
}

.info-content > .info-panel.active {
    display: block;
}

.gasto-textarea-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px 1fr;
    column-gap: 14px;
    align-items: start;
}

.gasto-textarea-row label {
    padding-top: 9px;
    text-align: right;
    font-weight: bold;
}

.gasto-textarea-row textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px;
    box-sizing: border-box;
    resize: vertical;
}

.info-content {
    border: 2px solid #555;
    border-radius: 0 10px 10px 10px;
    padding: 20px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.info-panel {
    display: none;
}

.info-panel.active {
    display: block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.info-table th,
.info-table td {
    padding: 6px;
    text-align: center;
}

.info-table input {
    width: 100%;
    box-sizing: border-box;
    height: 34px;
    margin: 0;
}

.info-table th:nth-child(1),
.info-table td:nth-child(1) {
    width: 10%;
}

.info-table th:nth-child(2),
.info-table td:nth-child(2) {
    width: 30%;
}

.info-table th:nth-child(3),
.info-table td:nth-child(3) {
    width: 14%;
}

.info-table th:nth-child(4),
.info-table td:nth-child(4) {
    display: none;
    width: 12%;
}

#create_products_table.hus-mode th:nth-child(4),
#create_products_table.hus-mode td:nth-child(4),
#modify_products_table.hus-mode th:nth-child(4),
#modify_products_table.hus-mode td:nth-child(4) {
    display: table-cell;
}

.info-table th:nth-child(5),
.info-table td:nth-child(5) {
    width: 10%;
}

.info-table th:nth-child(6),
.info-table td:nth-child(6) {
    width: 10%;
}

.info-table th:nth-child(7),
.info-table td:nth-child(7) {
    width: 9%;
}

.info-table th:nth-child(8),
.info-table td:nth-child(8) {
    width: 5%;
}

.info-table td {
    overflow: hidden;
}

.info-ref-button,
.info-remove-button {
    width: 35px;
    height: 35px;
}

.info-add-row-container {
    text-align: center;
    margin-top: 15px;
}

.info-add-row-button {
    width: 40px;
    height: 40px;
    font-size: 22px;
}

button.info-button {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1.1;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

button.info-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input.lote {
    text-transform: uppercase;
    text-align: center;
}

input.cantidad {
    text-align: center;
    font-size: 17px;
}

@media (max-width: 1472px) {
    button.info-button {
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        font-size: 11px;
    }
}

@media (max-width: 500px) {
    button.info-button {
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        font-size: 11px;
    }
}

@media (max-width: 1150px) {
    .info-order-block {
        flex-direction: column;
        width: 90%;
        gap: 10px;
    }

    #create_block #order_center,
    #create_block #order_center button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 950px) {
    #create_block .info-order-right,
    #modify_block .info-order-right {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 850px) {
    .info-row,
    .gasto-textarea-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .info-row label,
    .gasto-textarea-row label {
        text-align: left;
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    .info-tabs {
        gap: 4px;
        padding-left: 4px;
    }

    .info-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 6px 6px;
        font-size: 0.72rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
