/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

a {
    color: var(--primary-color);
}

a:hover, a:focus, a:active {
    color: var(--primary-color-hover);
}

.inline-edit-select-300 {
    max-width: 300px !important;
    min-width: 300px !important;
}

form .input-group,
form .form-switch {
    margin-bottom: 1rem;
}

.modal-xxl {
    max-width: 95%;
}

.form-select {
    min-width: 60px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0;
    margin-left: 0px;
}

/* DataTables: felső vízszintes gördítősáv (DT1 + DT2, sync a scroll body-val) */
.dt-scroll > .dt-top-scroll,
.dataTables_scroll > .dt-top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    margin-bottom: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.dt-scroll > .dt-top-scroll .dt-top-scroll-inner,
.dataTables_scroll > .dt-top-scroll .dt-top-scroll-inner {
    height: 1px;
    pointer-events: none;
}

.dt-scroll > .dt-top-scroll.dt-top-scroll--hidden,
.dataTables_scroll > .dt-top-scroll.dt-top-scroll--hidden {
    display: none;
}

.select2-container--bootstrap-5 .select2-selection {
    padding: unset;
    font-size: .875rem;
}

.select2-container--bootstrap-5 {
    z-index: 1200;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    box-shadow: none;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    font-size: .875rem;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 5px 10px !important;
}

.select2-container--default.select2-container--disabled {
    background-color: #eee !important;
}

.sp-original-input-container {
    width: 100%;
}

.row .form-switch {
    padding-left: 3.5em;
}

.swal2-container {
    z-index: 1300;
}

#side-menu li a i.fas,
#side-menu li a i.far,
#side-menu li a i.fab,
#side-menu li a i.fa,
#side-menu li a i.fad,
#side-menu li a i.fal,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.fas,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.far,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.fab,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.fa,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.fad,
body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > a i.fal {
    font-size: 1rem;
}

.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    padding: 3px 10px;
}

.flatpickr-current-month {
    padding: 4.48px 0 0 0;
}

/* Év fel/le nyilak: a secondary színű fejlécen (pl. GF fekete) is láthatók legyenek */
.flatpickr-current-month .numInputWrapper span {
    opacity: 1;
    width: 16px;
    border-color: rgba(255, 255, 255, 0.35);
}

.flatpickr-current-month .numInputWrapper span:hover {
    background: rgba(255, 255, 255, 0.15);
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: rgba(255, 255, 255, 0.95);
    border-left-width: 5px;
    border-right-width: 5px;
    border-bottom-width: 5px;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: rgba(255, 255, 255, 0.95);
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 5px;
}

input[readonly],
select[readonly],
input[disabled],
select[disabled] {
    background-color: #eee !important;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection {
    background-color: #eee !important;
}

.sp-original-input-container .sp-add-on {
    min-width: 40px;
}
   
.dropify-wrapper .dropify-message span.file-icon p {
    font-size: 20px;
}

.ck.ck-editor {
    width: 100% !important;
}

#elfinderModal {
    z-index: 1060;
}

.pin-button {
    width: 4rem;
    height: 4rem;
}

.dataTables_length .form-select {
    display: unset;
    width: unset;
}

.tooltip, .popover {
    z-index: 1056;
}

.checkformtooltip ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.modal-content .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 15px;
}

.input-group-append .clear-sibling-input-value {
    border: 1px solid #ced4da;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.resp-w-50 {
    width: 50% !important;
}

.korabbi_meresek_modal {
    cursor: pointer;
}

.my-swal-container {
    z-index: 1300;
}

.clock-timepicker {
    width: 100%;
}

.cke {
    width: 100% !important;
}

.dt-column-order {
    right: unset;
    left: 12px;
}

.table {
    --bs-table-bg: #fff;
    --bs-table-accent-bg: #fff;
}

.dtfc-fixed-start{
    z-index: 1201 !important;
}

.ck.ck-balloon-panel.ck-balloon-panel_arrow_s.ck-balloon-panel_with-arrow.ck-toolbar-container.ck-balloon-panel_visible {
    z-index: 1057 !important;
}
td.dtr-control::before {
    display: none !important;
}
td.dtr-control-arrow > div {
    display: inline-block !important;
}
/* Vízszintes lap, alacsony képernyő: a receptúra tábla ne nyújtsa meg a sort. */
.production-receipt-inline-summary {
    display: none;
}
.production-receipt-cell--summary-only .production-receipt-inline-summary {
    display: inline;
    margin-left: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
}
@media (max-height: 900px) {
    .production-receipt-cell--horizontal .production-receipt-inline-details {
        display: none;
    }
    .production-receipt-cell--horizontal .production-receipt-inline-summary {
        display: inline;
        margin-left: 0.35rem;
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* #region Responsive code */

@media (max-width: 1400px) { /* xxl - Extra Extra Large */
	
}

@media (max-width: 1200px) { /* xl - Extra Large */
	

    .addform-container .row label,
    #anyagfelhasznalasokModal .col-lg-8 .row label {
        white-space: nowrap;
    }
}

@media (max-width: 992px) { /* lg - Large */
	.pin-button {
        width: 3rem;
        height: 3rem;
    }

    .resp-w-50 {
        width: 100% !important;
    }

    #page-topbar {
        position: absolute !important;
    }

    .row label {
        white-space: nowrap;
    }

    .modal-dialog-centered:not(.modal-fullscreen) {
        min-height: 100%;
        margin-top: 0.1rem;
        height: 100%;
    }

    .modal-dialog-centered:not(.modal-fullscreen) .modal-content {
        align-self: start;
    }
}

@media (max-width: 768px) { /* md - Medium */
    #page-topbar {
        position: absolute;
    }
}

@media (max-width: 600px) { /* sm - Small */ 
    .inline-edit-select-300 {
        max-width: 300px !important;
        min-width: 300px !important;
    }
}

@media (max-width: 576px) { /* Extra small */
	.inline-edit-select-300 {
        max-width: 300px !important;
        min-width: 300px !important;
    }
}
@media (max-width: 515px) { /* Extra small */
	.inline-edit-select-300 {
        max-width: 300px !important;
        min-width: 100px !important;
    }
}

/* #endregion */

/* Széles táblák: a fejléc és a vízszintes görgetősáv együtt marad a látható területen */
.table-scroll-viewport {
    max-height: 70vh;
    overflow: auto;
    width: 100%;
}
.table-scroll-viewport > table > thead > tr > th,
.table-scroll-viewport > table > thead > tr > td {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
}
.table-scroll-viewport > table > thead.thead-dark > tr > th,
.table-scroll-viewport > table.table-dark > thead > tr > th {
    background-color: #343a40;
    color: #fff;
}

/* Táblázat szövegszínét örökli; aláhúzás mindig látszik (Bootstrap a { text-decoration:none } ellen) */
a.qs-dt-edit-link,
a.qs-dt-edit-link:link,
a.qs-dt-edit-link:visited,
a.qs-dt-edit-link:hover,
a.qs-dt-edit-link:focus,
a.qs-dt-edit-link:active {
    color: inherit !important;
    text-decoration: underline !important;
    cursor: pointer;
}

/* A téma .dropdown-menu.show { top: 100% !important } felülírása (mint column-filter) */
body > .dropdown-menu.qs-dt-context-menu.show {
    position: fixed !important;
    top: var(--qs-dt-menu-top, 0) !important;
    left: var(--qs-dt-menu-left, 0) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1080 !important;
    display: block !important;
    min-width: 180px;
    margin: 0 !important;
    padding: 0.35rem 0;
    transform: none !important;
    animation: none !important;
}

body > .dropdown-menu.qs-dt-context-menu.show .dropdown-item {
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Oszlopszűrő: a téma .dropdown-menu.show { top: 100% !important } szabályát írjuk felül */
body > .dropdown-menu.column-filter-menu.show {
    position: absolute !important;
    top: var(--column-filter-top, 0) !important;
    left: var(--column-filter-left, 0) !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    z-index: 1060 !important;
    min-width: 260px;
    margin: 0 !important;
    transform: none !important;
    animation: none !important;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .select2-dropdown.select2-dropdown--mobile-fix {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
        border-radius: 8px;
        overflow: hidden;
    }

    .select2-dropdown.select2-dropdown--mobile-fix .select2-results__options {
        -webkit-overflow-scrolling: touch;
    }

    .select2-container--open.select2-container--bootstrap-5 {
        z-index: 1300;
    }
}
/* Receptúra bemérés fullscreen */
#recipeWeighingModal .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #f3f5f8;
}
#recipeWeighingModal .modal-body {
    padding: 0;
    height: 100%;
    overflow: hidden;
}
.recipe-weighing {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    color: #1a2332;
}
.recipe-weighing__lot-select {
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 2.75rem;
}
.recipe-weighing__body {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.recipe-weighing__sidebar {
    background: #fff;
    border-right: 1px solid #d9dee7;
    padding: 0.75rem 1rem 1rem;
    overflow: auto;
}
.recipe-weighing__sidebar-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
    margin: 0.7rem 0 0.5rem;
    display: flex;
    justify-content: space-between;
}
.recipe-weighing__ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recipe-weighing__ingredient-list li {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #fafbfc;
}
.recipe-weighing__ingredient-list li.is-active {
    border-color: #22a06b;
    background: #e8f8ef;
}
.recipe-weighing__ingredient-list li.is-done {
    border-color: #22a06b;
    opacity: 0.9;
}
.recipe-weighing__ing-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.recipe-weighing__ing-status {
    flex: 0 0 auto;
    width: 1.35rem;
    text-align: center;
    color: #98a2b3;
    font-size: 1.1rem;
    line-height: 1;
}
.recipe-weighing__ingredient-list li.is-done .recipe-weighing__ing-status,
.recipe-weighing__ingredient-list li.is-active .recipe-weighing__ing-status {
    color: #22a06b;
}
.recipe-weighing__ing-body {
    flex: 1 1 auto;
    min-width: 0;
}
.recipe-weighing__ing-name {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
}
.recipe-weighing__ing-qty {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    color: #1a2332;
}
.recipe-weighing__ing-bar {
    height: 6px;
    background: #e4e7ec;
    border-radius: 999px;
    margin-top: 0.45rem;
    overflow: hidden;
}
.recipe-weighing__ing-bar > span {
    display: block;
    height: 100%;
    background: #22a06b;
}
.recipe-weighing__main {
    padding: 0.6rem 1.5rem 0.85rem;
    overflow: auto;
}
.recipe-weighing__current-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}
.recipe-weighing__current-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.recipe-weighing__close {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}
.recipe-weighing__close--done {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 2;
}
.recipe-weighing__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}
.recipe-weighing__card {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 0.4rem 0.75rem;
}
.recipe-weighing__card--remaining.is-ok {
    background: #e8f8ef;
    border-color: #22a06b;
}
.recipe-weighing__card--remaining.is-short {
    background: #fdeceb;
    border-color: #e5484d;
}
.recipe-weighing__card-label {
    font-size: 0.75rem;
    color: #667085;
    margin-bottom: 0.15rem;
}
.recipe-weighing__card-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.recipe-weighing__progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}
.recipe-weighing__progress {
    flex: 1;
    height: 12px;
    border-radius: 999px;
    background: #e4e7ec;
    overflow: hidden;
}
.recipe-weighing__progress.is-short .recipe-weighing__progress-fill {
    background: #e5484d;
}
.recipe-weighing__progress.is-ok .recipe-weighing__progress-fill {
    background: #22a06b;
}
.recipe-weighing__progress-fill {
    height: 100%;
    width: 0;
    transition: width 0.2s ease;
}
.recipe-weighing__progress-pct {
    min-width: 3rem;
    font-weight: 700;
}
.recipe-weighing__active-lot {
    text-align: center;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    background: #eef6ff;
    border: 1px solid #84b4f0;
}
.recipe-weighing__active-lot-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
    margin-bottom: 0.25rem;
}
.recipe-weighing__active-lot .recipe-weighing__lot-select {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
    text-align-last: center;
    font-size: 1.1rem;
    min-height: 2.4rem;
}
.recipe-weighing__panels {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.75rem;
}
.recipe-weighing__lot-panel,
.recipe-weighing__scale-panel {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}
.recipe-weighing__panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.recipe-weighing__lot-table {
    margin-bottom: 0;
}
.recipe-weighing__lot-table td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.recipe-weighing__scale-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.recipe-weighing__scale-input {
    font-size: 1.85rem !important;
    font-weight: 700;
    text-align: center;
    height: auto !important;
    padding: 0.45rem 0.75rem !important;
    line-height: 1.2 !important;
}
.recipe-weighing__scale-expected {
    margin-top: 0.4rem;
    color: #667085;
    text-align: center;
    font-size: 0.9rem;
}
.recipe-weighing__summary-card {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 0.65rem 0.8rem 0.6rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.recipe-weighing__summary-header {
    margin-bottom: 0.55rem;
}
.recipe-weighing__summary-name {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
}
.recipe-weighing__summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}
.recipe-weighing__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #667085;
}
.recipe-weighing__summary-row strong {
    color: #1a2332;
    font-weight: 700;
    white-space: nowrap;
}
.recipe-weighing__summary-row--remaining {
    font-weight: 700;
    color: #1a2332;
}
.recipe-weighing__summary-row--remaining strong {
    background: #e8f8ef;
    color: #147a4d;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}
.recipe-weighing__summary-row--remaining strong.is-ok {
    background: #e8f8ef;
}
.recipe-weighing__summary-progress {
    margin-top: 0.1rem;
}
.recipe-weighing__summary-bar {
    height: 8px;
    border-radius: 999px;
    background: #e4e7ec;
    overflow: hidden;
}
.recipe-weighing__summary-bar > span {
    display: block;
    height: 100%;
    background: #22a06b;
    transition: width 0.2s ease;
}
.recipe-weighing__summary-pct {
    margin-top: 0.25rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #667085;
}
.recipe-weighing__footer {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-top: 1px solid #d9dee7;
}
.recipe-weighing__btn-record {
    flex: 1;
}
.recipe-weighing__done {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(16, 24, 40, 0.48);
}
.recipe-weighing__done-inner {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #d9dee7;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}
.recipe-weighing__done-product {
    font-weight: 700;
    color: #1a2332;
}
@media (max-width: 900px) {
    .recipe-weighing__body {
        grid-template-columns: 1fr;
    }
    .recipe-weighing__sidebar {
        max-height: 280px;
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
    }
    .recipe-weighing__panels,
    .recipe-weighing__cards {
        grid-template-columns: 1fr;
    }
}
