body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.RaList-content {
    margin-top: 4px;
}

.RaFilterForm-filterFormInput .RaFilterFormInput-hideButton {
    margin-bottom: 2px !important;
}

.RaSimpleFormIterator-line {
    padding-top: 20px !important;
}

.RaSelectArrayInput-chip {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.MuiFormControl-root:not(.MuiTextField-root) .MuiFormLabel-root.MuiInputLabel-root.Mui-focused,
.MuiFormControl-root:not(.MuiTextField-root) .MuiFormLabel-root.MuiInputLabel-root.MuiFormLabel-filled {
    z-index: 3 !important;
    padding: 0 9px 0 4px !important;
    background: inherit;
    margin-left: -4px;
    margin-top: 1px;
    transform: translate(14px, -9px) scale(0.75);
}

.datetime-picker .MuiFormLabel-root.MuiInputLabel-root{
    z-index: 3 !important;
    padding: 0 9px 0 4px !important;
    background: white;
    margin-left: -4px;
    margin-top: 1px;
    transform: translate(14px, -9px) scale(0.75);
}

.MuiFormControl-root:not(.MuiTextField-root) .MuiFormLabel-root.MuiInputLabel-root {
    transform: translate(14px, 9px) scale(1);
}

.MuiStack-root .tox-tinymce {
    border-radius: 7.5px;
    border-color: #e6e8f0;
}

.MuiStack-root .tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) {
    border-color: #e6e8f0;
}

.MuiStack-root .tox .tox-toolbar__primary {
    background: none;
    border-bottom: 1px solid #e6e8f0;
}

.MuiFormControl-root {
    width: 100%;
}

.MuiFormControl-root label.MuiInputLabel-shrink {
    top: 0px !important;
}

.MuiSpeedDialAction-staticTooltipLabel {
    white-space: nowrap;
}

.MuiAutocomplete-root {
    width: 100%;
}

.ImportProcess-sheetContainer .MuiTableHead-root .MuiTableCell-root {
    text-transform: none !important;
    border-bottom: 1px solid #ffffff !important;
}

.ImportProcess-sheetContainer .MuiTableRow-root:last-child td {
    border-bottom: none !important;
}

.RaSimpleFormIterator-list .RaSimpleFormIterator-form.RaSimpleFormIterator-inline {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

input:-webkit-autofill {
    -webkit-background-clip: text;
}

input.RaSearchInput-input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.tox-tbtn {
    cursor: pointer !important;
}

.MuiImageListItem-root {
    min-height: 50px;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.SplitItemView {
    border-left: 1px solid #ebebeb;
    background-color: #ffffff;
}

div .removeButton {
    font-weight: 600;
    font-family: "Segoe UI",Helvetica,Arial,sans-serif,"Segoe UI Emoji";
    font-size: 0.8125rem;
    line-height: 1.75;
    color: #D14343;
    padding: 6px 16px;
    min-width: 64px;
    border-radius: 8px;
}
div .removeButton:hover {
    background-color: rgba(209, 67, 67, 0.04);
}

.fabric-detail-sheet__wrapper {
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
}

.fabric-detail-sheet__wrapper p {
    margin: 2px 2px 2px 0;
    font-size: 14px;
}

.fabric-detail-sheet__table {
    padding: 5px 20px;
    background: #fafafa;
}

.fabric-detail-sheet__table :first-child {
    border-top: none;
}

.fabric-detail-sheet__table :last-child {
    border-bottom: none;
}

.fabric-detail-sheet__table p {
    padding: 0;
    line-height: 1rem;
    margin: 5px 2px;
}

.fabric-detail-sheet__print-header {
    display: flex;
    align-items: baseline;
}

.fabric-detail-sheet__print-header h2 {
    font-weight: 300;
    padding: 0 0 5px;
}

.fabric-detail-sheet__print-header h5 {
    font-weight: 300;
}

.fabric-detail-sheet__print-logo {
    flex: 1;
    text-align: end;
}

.fabric-detail-sheet__table-row {
    padding-bottom: 2px;
    display: flex;
    border-bottom: 1px solid #eee;
}

.fabric-detail__row-title {
    font-weight: 700;
    width: 40%;
}

.fabric-detail-shteet__print-wrapper {
    max-width: 300px;
}

.fabric-detail-sheet__multiline-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
}

.fabric-detail-sheet__multiline-row-title {
    font-weight: 700;
    width: 100%
}

.fabric-detail-sheet__multiline-row-subtitle {
    width: 40%;
    display: flex;
    justify-content: right;
    margin-right: 10px;
}

.fabric-detail-sheet__multiline-table-row {
    display: flex;
}

.fabric-detail-sheet__title span {
    font-size: 16px;
}

.fabric-detail-sheet__notice {
    font-size: 16px;
    margin-top: 20px; 
    font-weight: 600; 
}

.RaDatagrid-table .MuiTableCell-root .MuiFormHelperText-root {
    display: none;
}

.MuiColorInput-TextField .MuiInputBase-colorPrimary {
    flex-direction: row-reverse;   
}

.editor-builder {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    border: 1px solid #E6E8F0;
    padding: 16px;
    border-radius: 8px;
    background-color: #fff;
}

.editor-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
}

.editor-button.add-row {
    background-color: #1976d2;
    color: white;
}

.editor-button.add-row:hover {
    background-color: #00509f;
}

.editor-button.copy-json, .editor-button.import-json {
    background-color: #424242;
    color: white;
}

.editor-button.copy-json:hover, .editor-button.import-json:hover {
    background-color: #1c1c1c;
}

.editor-row-container {
    border: 1px solid #E6E8F0;
    padding: 16px;
    border-radius: 8px;
    background-color: #f8f8f9 !important;
    flex-shrink: 0 !important;
    width: 100%;
}

.editor-column {
    background-color: #ffffff;
    border: 1px solid #E6E8F0 !important;
    border-radius: 8px !important;
}

.editor-row-grid-select {
    float: right;
}

.editor-row-grid-select .MuiFormControl-root {
    width: 100px;
}

.editor-row-columns {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: nowrap !important;
}

.sortable-column {
    flex-shrink: 0;
    will-change: transform;
    flex-shrink: 1;
}

.sortable-column-draggable {
    cursor: grab;
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
}

.sortable-column-draggable:hover {
    box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
    -webkit-box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
    -moz-box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
    border-radius: 8px;
}

.sortable-row-draggable {
    cursor: grab;
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
}

.sortable-row-draggable:hover {
    border-radius: 8px;
    box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
    -webkit-box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
    -moz-box-shadow: 0px 0px 10px -5px rgba(56,56,56,0.5);
}

.editor-builder-controls {
    justify-content: space-between;
}

.editor-row-select {
    background-color: #fff; 
}
  
.editor-row-columns {
    margin-top: 8px;
}

.sortable-column:active {
    cursor: grabbing;
}

.sortable-row {
    display: flex;
    will-change: transform;
}

.sortable-row:active {
    cursor: grabbing;
}

.component-picker {
    padding-top: 8px;
}

.component-form {
    padding-top: 8px;
}

.sortable-price-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #E6E8F0;
    border-radius: 8px;
    background: white;
    transition: box-shadow 0.2s ease;
    width: 100%;
}
  
.sortable-price-row:hover {
    border-color: #121828;
}
  
.sortable-price-row-draggable {
    margin-right: 8px;
    cursor: grab;
    line-height: 0px;
}


.price-row-section-attribute {
    display: flex;
    gap: 5px;
    position: relative;
    align-items: end;
}

.price-row-section-attribute fieldset.MuiOutlinedInput-notchedOutline {
    border-color: #8080ff;
}

.price-row-section-operation{
    display: flex;
    gap: 5px;
    position: relative;
}

.price-row-section-operation fieldset.MuiOutlinedInput-notchedOutline {
    border-color: #8080ff;
}

.price-row-section-operation-final {
    display: flex;
    gap: 5px;
    position: relative;
}

.price-row-section-operation-final fieldset.MuiOutlinedInput-notchedOutline {
    border-color: #fc8080;
}

.price-row-section-operation-attribute {
    display: flex;
    gap: 5px;
    position: relative;
    align-items: end;
    flex-wrap: wrap;
}

.price-row-section-operation-attribute fieldset.MuiOutlinedInput-notchedOutline {
    border-color: #51a151;
}

.price-row-section-attribute-button-container {
    display: flex;
    flex-direction: column;
}

.price-row-section-operation:last-child::after {
    display: none;
}

.price-row-section-operation::after {
    content: "";
    position: relative;
    width: 10px;
    height: 10px;
    background: #E6E8F0;
    top: 50%;
    margin-top: -5px;
    margin-left: 5px;
    transform: rotate(45deg);
}

.price-row-section-operation::before {
    content: "";
    position: relative;
    width: 10px;
    height: 10px;
    background: #E6E8F0;
    top: 50%;
    margin-top: -5px;
    margin-right: 5px;
    transform: rotate(45deg);
}

.price-row-section-attribute-button {
    color: #383838;
    cursor: pointer;
}

.price-row-section-attribute-button:hover {
    color: #979797;
    cursor: pointer;
}

.price-controls {
    justify-content: space-between;   
    width: 100%;
}

.price-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
}

.price-button.add-row {
    background-color: #1976d2;
    color: white;
}

.price-button.add-row:hover {
    background-color: #00509f;
}

.price-button.copy-json, .price-button.import-json {
    background-color: #424242;
    color: white;
}

.price-button.copy-json:hover, .price-button.import-json:hover {
    background-color: #1c1c1c;
}

.external-image {
    border: 2px solid #00509f;
}