.local-fiscal-info {
    display: none;
}

.local-list-name {
    color: #34495e;
    font-weight: 600;
}

.local-list-name small {
    display: block;
    margin-top: 2px;
    color: #8a98a5;
    font-size: 11px;
    font-weight: 400;
}

.local-product-count {
    display: inline-block;
    min-width: 28px;
    padding: 3px 7px;
    border-radius: 10px;
    background: #e7eff5;
    color: #476377;
    font-weight: 700;
    text-align: center;
}
.local-modal-body {
    padding: 24px 28px 12px;
}

.local-modal-body textarea {
    min-height: 76px;
    resize: vertical;
}

.local-modal-body .form-group {
    margin-bottom: 18px;
}

.local-modal-wide {
    width: 90%;
}

.local-modal-compact {
    width: 450px;
    max-width: calc(100% - 30px);
}

.product-modal-wide {
    width: 1080px;
    max-width: calc(100% - 30px);
}

.product-catalog-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.product-catalog-select {
    min-width: 0;
}

.product-catalog-select select,
.product-catalog-select .chosen-container {
    width: 100% !important;
    max-width: 100%;
}

.product-catalog-action {
    display: block;
    min-width: 0;
    padding-left: 0;
}

.product-catalog-action .btn {
    width: 100%;
    margin-left: 0 !important;
    padding: 6px 10px;
    border-radius: 3px !important;
    font-size: 12px;
    white-space: nowrap;
}

.product-laboratory-control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.product-laboratory-control .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.product-laboratory-control > .chosen-container {
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
}

.product-laboratory-add {
    display: block;
    min-width: 0;
    padding-left: 0;
}

.product-laboratory-add .btn {
    margin-left: 0 !important;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 3px !important;
    white-space: nowrap;
}

.product-laboratory-control > .form-control:first-child {
    border-radius: 3px;
}

.product-status-control {
    padding-top: 5px;
}

.product-form-body .product-status-control {
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-form-body .product-status-item,
.product-form-body .product-stock-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.product-form-body .product-stock-label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.product-form-body select.chosen,
.product-form-body select.chosen + .chosen-container {
    width: 100% !important;
    max-width: 100%;
}

.product-commercial-row {
    margin-top: 2px;
}

.product-form-body .product-pricing-separator {
    margin: 4px 0 12px;
}

.product-form-body {
    padding-top: 18px;
}

.product-form-edit-body {
    padding-bottom: 8px;
}

.product-form-tab-content-edit [data-product-panel="general"] > .row.product-stock-fields .form-group,
.product-form-tab-content-edit [data-product-panel="general"] > .row.product-stock-fields .help-block:last-child {
    margin-bottom: 0;
}

.product-form-tabs {
    display: flex;
    gap: 3px;
    margin: 0 0 22px;
    padding: 0;
    border-bottom: 1px solid #d6dce1;
}

.product-form-tab {
    position: relative;
    margin: 0 0 -1px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-bottom-color: #d6dce1;
    border-radius: 3px 3px 0 0;
    background: #f4f6f7;
    color: #52616b;
    font-weight: 600;
    outline: 0;
}

.product-form-tab:hover,
.product-form-tab:focus {
    background: #fff;
    color: #2c3e50;
}

.product-form-tab.active {
    border-color: #d6dce1 #d6dce1 #fff;
    background: #fff;
    color: #1678b8;
}

.product-form-tab i {
    margin-right: 5px;
}

.product-form-panel[hidden],
.product-lot-fields[hidden] {
    display: none !important;
}

.product-form-panel.active {
    display: block;
}

.product-form-tab-content {
    min-height: 326px;
}

.product-service-mode-note {
    background: #eef7fd;
    border: 1px solid #b9d9ee;
    border-left: 4px solid #3276b1;
    color: #285675;
    font-size: 12px;
    margin: -10px 0 16px;
    padding: 9px 12px;
}

.product-service-mode-note .fa {
    margin-right: 6px;
}

.product-service-mode-note[hidden],
.product-service-na[hidden] {
    display: none !important;
}

.product-service-disabled .form-control,
.product-service-disabled .chosen-container .chosen-single,
.product-service-disabled .chosen-container .chosen-choices {
    background: #f1f3f5 !important;
    color: #777 !important;
    cursor: not-allowed !important;
}

.product-service-disabled .chosen-container,
.product-service-disabled .product-catalog-action,
.product-service-disabled .product-laboratory-add {
    pointer-events: none;
}

.product-service-disabled .product-catalog-action,
.product-service-disabled .product-laboratory-add {
    opacity: .55;
}

.product-service-na {
    color: #7b8790;
    display: block;
    font-size: 11px;
    font-style: italic;
    margin: 5px 0 0;
}

.product-service-mode .product-lot-fields {
    display: none !important;
}

.product-lot-fields {
    padding-top: 4px;
}

.product-branch-label {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 3px 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-branch-list,
.product-branch-price-list,
.product-branch-stock-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-branch-row,
.product-branch-price-row,
.product-branch-stock-row {
    display: flex;
    align-items: center;
    min-height: 27px;
}

.product-branch-price-row,
.product-branch-stock-row {
    justify-content: flex-end;
    font-weight: 600;
    white-space: nowrap;
}

.product-branch-stock-row {
    min-width: 74px;
    padding: 3px 7px;
    border-radius: 3px;
}

.product-branch-stock-row.is-low-stock {
    border: 1px solid #e6a6ac;
    background-color: #f8d7da;
    color: #842029;
    font-weight: 700;
}

.product-branch-stock-row.is-negative-stock {
    border-color: #8f1421;
    background-color: #b02a37;
    color: #fff;
}

.product-description-cell {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.product-catalog-view table > thead > tr > th,
.product-catalog-view table > tbody > tr > td {
    font-size: 12px;
}

.product-catalog-view tr.catalog-stock-warning-row > td {
    background-color: #b02a37 !important;
    color: #fff !important;
}

.product-catalog-view tr.catalog-negative-stock-row > td {
    background-color: #842029 !important;
    color: #fff !important;
}

.product-catalog-view tr.catalog-stock-warning-row .product-description-cell {
    color: #fff;
}

.product-catalog-view tr.catalog-stock-warning-row
    .product-branch-stock-row.is-low-stock {
    border-color: transparent;
    background-color: transparent;
    color: inherit;
}

.product-catalog-title {
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 8px;
    padding: 0 10px;
}

.product-catalog-title .fa {
    margin-right: 5px;
}

.product-catalog-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.product-catalog-filter-field {
    flex: 1.25 1 280px;
    min-width: 0;
    width: auto;
}

.product-catalog-filter-field--stock {
    flex: 1 1 240px;
    width: auto;
}

.product-catalog-filter-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.product-catalog-pdf-action,
.product-catalog-export-action {
    display: inline-flex;
}

@media (max-width: 600px) {
    .product-catalog-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .product-catalog-filter-field {
        flex: 0 0 auto;
    }

    .product-catalog-filter-field,
    .product-catalog-filters .btn,
    .product-catalog-pdf-action,
    .product-catalog-pdf-action .btn,
    .product-catalog-export-action,
    .product-catalog-export-action .btn {
        width: 100%;
    }
}

.product-local-grid-view table > thead > tr > th,
.product-local-grid-view table > tbody > tr > td {
    font-size: 12px;
}

.product-local-section-tabs {
    display: flex;
    gap: 3px;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 1px solid #d6dce1;
}

.product-local-section-tab {
    margin: 0 0 -1px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-bottom-color: #d6dce1;
    border-radius: 3px 3px 0 0;
    background: #f4f6f7;
    color: #52616b;
    font-size: 12px;
    font-weight: 600;
    outline: 0;
}

.product-local-section-tab:hover,
.product-local-section-tab:focus {
    background: #fff;
    color: #2c3e50;
}

.product-local-section-tab.active {
    border-color: #d6dce1 #d6dce1 #fff;
    background: #fff;
    color: #1678b8;
}

.product-local-section-tab .fa {
    margin-right: 5px;
}

.product-local-section-tab[hidden],
.product-local-section-panel[hidden] {
    display: none !important;
}

.product-local-title {
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 8px;
    padding: 0 10px;
}

.product-local-title .fa {
    margin-right: 5px;
}

.product-local-filters {
    align-items: flex-end;
    background: #fafafa;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px;
}

.product-local-filter-field {
    min-width: 0;
}

.product-local-filter-product {
    flex: 1.25 1 320px;
}

.product-local-filter-stock {
    flex: 1 1 250px;
}

.product-local-pack-search {
    flex: 1.4 1 360px;
}

.product-local-pack-state {
    flex: 1 1 220px;
}

.product-local-service-search {
    flex: 1.4 1 360px;
}

.product-local-service-state {
    flex: 1 1 220px;
}

.product-local-filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-local-pdf-action,
.product-local-excel-action {
    display: inline-flex;
}

.product-local-pack-search-action,
.product-local-service-search-action {
    display: inline-flex;
}

@media (max-width: 600px) {
    .product-local-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .product-local-filter-field,
    .product-local-filters .btn,
    .product-local-pdf-action,
    .product-local-pdf-action .btn,
    .product-local-excel-action,
    .product-local-excel-action .btn,
    .product-local-pack-search-action,
    .product-local-pack-search-action .btn,
    .product-local-service-search-action,
    .product-local-service-search-action .btn {
        flex: none;
        width: 100%;
    }

    .product-local-section-tabs {
        align-items: stretch;
        flex-direction: column;
        border-bottom: 0;
    }

    .product-local-section-tab {
        width: 100%;
        margin: 0;
        border: 1px solid #d6dce1;
        border-radius: 3px;
        text-align: left;
    }
}

.local-stock-critical {
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: inherit;
}

.product-local-grid-view tr.local-stock-warning-row > td {
    background-color: #b02a37 !important;
    color: #fff !important;
}

.product-local-grid-view tr.local-stock-warning-row .product-description-cell {
    color: #fff;
}

@media (max-width: 767px) {
    .local-modal-body {
        padding: 18px 15px 8px;
    }

    .local-modal-wide,
    .local-modal-compact,
    .product-modal-wide {
        width: auto;
        max-width: none;
        margin: 10px;
    }

    .product-form-body {
        padding: 15px;
    }

    .product-form-body .product-status-control {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .product-form-tabs {
        margin-bottom: 18px;
    }

    .product-form-tab {
        flex: 1;
        padding: 9px 10px;
    }

    .product-form-tab-content {
        min-height: 0;
    }

    .product-service-mode-note {
        margin-top: -7px;
    }

    .product-laboratory-control {
        display: block !important;
    }

    .product-laboratory-control .form-control,
    .product-laboratory-control > .chosen-container,
    .product-laboratory-add {
        display: block;
        width: 100%;
    }

    .product-laboratory-control > .chosen-container {
        width: 100% !important;
    }

    .product-laboratory-add {
        padding-top: 8px;
        padding-left: 0;
    }

    .product-laboratory-add .btn {
        width: 100%;
    }

    .product-catalog-control {
        display: block;
    }

    .product-catalog-select,
    .product-catalog-action {
        display: block;
        width: 100%;
    }

    .product-catalog-action {
        padding-top: 8px;
        padding-left: 0;
    }
}

.product-local-readonly {
    pointer-events: none;
    background-color: #f5f5f5;
}

.product-presentations-guide {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-presentations-help {
    color: #00897b;
    margin: 0;
}

.product-presentations-help .fa {
    color: inherit;
    margin-right: 5px;
}

.product-presentations-guide-open {
    flex: 0 0 auto;
    white-space: nowrap;
}

.product-presentations-guide-modal {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0 !important;
    z-index: 1070;
}

.product-presentations-guide-backdrop {
    z-index: 1060;
}

.product-presentations-guide-modal .modal-dialog {
    max-width: 680px;
}

.product-presentations-guide-modal .modal-title .fa {
    color: #00897b;
    margin-right: 5px;
}

.product-presentations-guide-content {
    color: #3d4852;
    font-size: 14px;
    line-height: 1.5;
}

.product-presentations-guide-lead {
    margin-bottom: 14px;
}

.product-presentations-guide-example {
    background: #f7fafc;
    border: 1px solid #dce4ea;
    border-radius: 4px;
    margin-bottom: 14px;
    padding: 12px 15px;
}

.product-presentations-guide-example h5 {
    color: #2f4050;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.product-presentations-guide-steps {
    margin: 0;
    padding-left: 20px;
}

.product-presentations-guide-steps li + li {
    margin-top: 7px;
}

.product-presentations-guide-stock {
    border-left: 4px solid #00897b;
    margin-bottom: 14px;
    padding: 4px 0 4px 12px;
}

.product-presentations-guide-stock strong,
.product-presentations-guide-stock span {
    display: block;
}

.product-presentations-guide-stock span {
    margin-top: 3px;
}

.product-presentations-guide-cost,
.product-presentations-guide-warning {
    margin-bottom: 10px;
}

.product-presentations-guide-modal .modal-footer .btn-primary,
.product-presentations-guide-modal .modal-footer .btn-primary:hover,
.product-presentations-guide-modal .modal-footer .btn-primary:focus,
.product-presentations-guide-modal .modal-footer .btn-primary .fa {
    color: #fff !important;
}

.product-presentations-table-wrap {
    max-width: 100%;
    overflow: visible;
}

.product-presentations-table {
    margin-bottom: 10px;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.product-presentations-table th {
    background: #f4f6f8;
    font-size: 12px;
    padding: 6px 9px !important;
    vertical-align: middle !important;
}

.product-presentations-factor-heading {
    color: #00897b;
}

.product-presentations-required {
    color: inherit;
    margin-left: 3px;
}

.product-presentations-table td {
    padding: 5px 9px !important;
    vertical-align: middle !important;
}

.product-presentations-table .chosen-container {
    max-width: 100%;
    width: 100% !important;
}

.product-presentations-table .chosen-container.chosen-with-drop {
    position: relative;
    z-index: 1051;
}

.product-presentations-table .chosen-container .chosen-results {
    max-height: 150px;
}

.product-presentations-table .chosen-container .chosen-results li {
    line-height: 16px;
    padding: 4px 6px;
}

.product-presentations-table .chosen-container .chosen-single {
    height: 30px;
    line-height: 28px;
}

.product-presentations-table .chosen-container .chosen-single div b {
    background-position-y: 5px;
}

.product-presentations-table th:nth-child(1) { width: 23%; }
.product-presentations-table th:nth-child(2) { width: 28%; }
.product-presentations-table th:nth-child(3) { width: 12%; }
.product-presentations-table th:nth-child(4) { width: 18%; }
.product-presentations-table th:nth-child(5) { width: 9%; }
.product-presentations-table th:nth-child(6) { width: 10%; }

.product-presentations-actions {
    margin-bottom: 12px;
}

.product-presentations-permission {
    margin: 8px 0 0;
}

@media (max-width: 767px) {
    .product-presentations-guide {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .product-presentations-guide-open {
        width: 100%;
    }

    .product-presentations-guide-modal .modal-dialog {
        margin: 10px;
    }

    .product-presentations-guide-content {
        font-size: 13px;
    }

    .product-presentations-table-wrap {
        overflow: visible;
    }

    .product-presentations-table,
    .product-presentations-table tbody,
    .product-presentations-table tr,
    .product-presentations-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .product-presentations-table thead {
        display: none;
    }

    .product-presentations-table tr {
        background: #fff;
        border: 1px solid #d6dce1;
        border-radius: 4px;
        margin-bottom: 12px;
        padding: 8px 10px;
    }

    .product-presentations-table td {
        border: 0 !important;
        padding: 5px 0 !important;
        text-align: left !important;
    }

    .product-presentations-table td::before {
        color: #4b5965;
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .product-presentations-table td .btn,
    .product-presentations-actions .btn {
        width: 100%;
    }

    .product-presentations-table .chosen-container {
        width: 100% !important;
    }
}
