body {
    font-family: "Nunito", serif;
    color: #333;
    background: #f5f5f5;
    font-size: 14px;
}

body.page-id-121 header,
body.page-id-123 header,
body.page-id-12 header,
body.page-id-10 header {
    display: none;
}

.handsontable .htAutocompleteArrow {
    display: none;
}

[type="radio"] + label,
[type="checkbox"] + label
{
    cursor: pointer;
}

.icon-cell {
    display: flex;
    width: 22px;
    margin: 2px auto;
}

.handsontable span.colHeader.columnSorting:before {
    right: 0;
}

.custom-radio {
    appearance: none;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #333; /* Gray border */
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}
.custom-radio:checked {
    border-color: #ef4444; /* Red border */
    background-color: #ef4444; /* Red fill */
}
.custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-file-upload {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.upload-label {
    display: inline-block;
    cursor: pointer;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.upload-label:hover {
    background-color: #f3f4f6;
    border-color: #60a5fa;
}

.upload-label:after {
    content: none !important;
}

.upload-container {
    display: flex;
    gap: 0 10px;
    align-items: center;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #6b7280;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
}

.upload-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

.hidden-input {
    display: none;
}

form.form div:not(.radio-block)>label:not(.not-required):after {
    content: ' *';
    color: #ef4444;
}

form div.error input {
    --tw-ring-color: red;
}
form div.error .upload-label {
    border-color: red;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-right: 20px !important;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-button:hover,
.tab-button.active {
    background-color: #4CAF50;
    color: white;
}

.handsontable th {
    white-space: wrap
}

.handsontable th,
.handsontable td {
    height: 28px !important;
    vertical-align: middle;
    color: #222;

}

.handsontableInput {
    line-height: 28px;
}

.handsontable .htDimmed {
    color: #222;
}

.handsontable td.highlight-moto {
    background: rgba(147, 222, 147, 0.66);
}

.handsontable td.highlight-electro {
    background: rgba(252, 137, 0, 0.37);
}

.handsontable td.highlight-benzsc {
    background: rgba(0, 206, 252, 0.37);
}

.handsontable td.highlight-kvadro {
    background: rgba(241, 53, 53, 0.37);
}

.handsontable td.highlight-traktor {
    background: rgba(222, 220, 220, 0.37);
}

.handsontable td.highlight-yellow2,
.handsontable td.highlight-yellow {
    background: yellow !important;
}

.handsontable td.highlight-documents {
    background: rgb(255,255,255) !important;
}

.handsontable td.highlight-documents-part {
    background: rgb(255,103,8) !important;
}

.handsontable tr.selected-row td {
    background: rgba(140, 106, 196, 0.42) !important;
}



.handsontable td {
    white-space: nowrap;
}

@supports (-moz-appearance: none) {
   body:not(.home) .handsontable.htHasScrollX > .ht_master > .wtHolder {
        padding-bottom: 20px;
    }
}

.home .handsontable td {
    max-width: 125px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*.home .handsontable td.short > *,*/
/*.handsontable th.short > *,*/
.home .handsontable td.short,
.handsontable th.short {
    width: 40px !important;
    max-width: 40px !important;
}

/*.home .handsontable td.short2 > *,*/
/*.handsontable th.short2 > *,*/
.home .handsontable td.short2,
.handsontable th.short2 {
    width: 80px !important;
    max-width: 80px !important;
}

/*.home .handsontable td.full > *,*/
/*.handsontable th.full > *,*/
.home .handsontable td.full,
.handsontable th.full {
    width: unset !important;
    max-width: unset !important;
    min-width: 140px !important;
}

.htHasScrollX {
    max-width: 100%;
}

.htCore thead th:not(.with-filter) .changeType {
    display: none;
}

.handsontable:not(.htDropdownMenu) table.htCore > tbody > tr > td > .htCheckboxRendererInput {
    margin: 4px auto !important;
    width: 12px;
    height: 12px !important;
    display: block !important;
    cursor: pointer !important;
}


.handsontable .htCheckboxRendererInput.noValue {
    opacity: 1;
}

.home .handsontable span.colHeader {
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

.handsontable-container {
    overflow: hidden; /* Обмеження для скролу */
}

.handsontable-container .wtHolder {
    overflow: visible; /* Дозволяє відобразити скрол */
}

.modal {
    z-index: 999;
}

.buttons-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-zip {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.modal img {
    /*pointer-events: none;*/
}

#contextMenu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
}
#contextMenu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
#contextMenu a:hover {
    background-color: #4CAF50;
    color: #fff;
}
#contextMenu a:nth-child(n+3):hover {
    background-color: #c92323;
    color: #fff;
}

.pickr button,
#colorPicker2,
#colorPicker {
    position: absolute;
    display: none;
}

body.home .page__wrap .tab-pane {
    height: calc(100vh - 350px);
    padding-bottom: 50px;
}

canvas {
    /*max-height: calc(100vh - 470px);*/
    /*width: 100%;*/
    /*height: 100%;*/
    max-height: 550px;
}

.table-wrapper {
}
.tab-pane {
    transition: opacity .3s ease-in-out;
}

.tab-pane.loading {
    pointer-events: none;
    opacity: .5;
}

.handsontable .changeType {
    margin: 0 5px 0 0;
}

@media (max-width: 1450px) {
    .tabs-nav {
        flex-flow: row wrap;
    }

    .tabs-nav__actions {
        width: 100%;
        justify-content: flex-end;
        display: flex;
    }
}
