/*
 * Copyright (c) 2024. - PatrikMol Solutions Kft.
 */

:root {
    --input-float-label-color: #6b6b6b;
    --input-float-border: rgb(222, 226, 230);
    --input-float-label-bg: rgba(255, 255, 255, 0);
    --button-save: #13653f;
    --button-check: #6c757d;
    --bg-gray: #f7f7f7;
    --color-white: #ffffff;
    --color-navbar-background: #3c8dbc;
    --pagination-text-color: #6b6b6b;
    --pagination-text-color-active: #ffffff;
    --pagination-bg-color-active: #6b6b6b;
    --validation-wrong: red;
    --validation-good: green;
    --bs-green-200: #a3cfbb;
}

body {
    padding: 0;
    margin: 0;
}

.hidden {
    visibility: hidden;
    height: 0;
    display: none;
}

.display-none {
    display: none;
}

.shown {
    visibility: visible;
    height: auto;
}

.spinner-border-md {
    width: 1.3rem;
    height: 1.3rem;
}

.pagination .page-link {
    color: var(--pagination-text-color);
}

.pagination .active .page-link{
    background-color: var(--pagination-bg-color-active);
    border-color: var(--pagination-text-color);
    color: var(--pagination-text-color-active);
}

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: #d2f4ea;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: var(--bg-gray);
}

.nav-tabs .nav-link.active {
    background-color: var(--bg-gray);
}

.toggle {
    width: 100% !important;
}
.toggle .toggle-handle {
    background-color: white;
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.lh-tight {
    line-height: 1.25;
}

.upload_company_logo {
    position: absolute;
    right: 0;
    top: 50px;
    height: 45px;
    width: auto;
}

#action-result-content {
    border-radius: 0;
}

.carplate-delete-icon {
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 9999;
}

input:not(.form-check-input), 
label, 
textarea, 
select,
span.input-group-text,
button,
a.btn,
.toggle, .toggle-handle, .form-control, .form-select {
    border-radius: 0 !important;
}

.uniform-inputs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0;
}
.uniform-inputs .input-group-text {
    justify-self: end;
}

#top10CardsContainer {
    display: grid;
    gap: 0.5rem; /* megfelel g-2 bootstrap gapnek */

    /* Alapértelmezett: mobil */
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet */
@media (min-width: 768px) {
    #top10CardsContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Laptop */
@media (min-width: 992px) {
    #top10CardsContainer {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Nagy kijelző */
@media (min-width: 1200px) {
    #top10CardsContainer {
        grid-template-columns: repeat(5, 1fr);
    }
}

/*
.input-float {
    position: relative;
}

.input-float input,
.input-float select,
.input-float textarea {
    outline: none;
    padding: 12px 10px 12px 10px;
    font-size: .9rem !important;
}

.input-float label
{
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: .3s;
    background: none;
    border: none;
    color: var(--input-float-label-color);
    text-wrap: nowrap;
    width: calc(100% - 20px);
}

.input-float input:focus,
.input-float input:valid,
.input-float input:invalid,
.input-float input:read-only,
.input-float textarea:focus,
.input-float textarea:valid,
.input-float textarea:invalid,
.input-float textarea:read-only,
.input-float select:focus,
.input-float select:valid,
.input-float select:invalid,
.input-float select:read-only
{
    box-shadow: none;
    border-color: var(--input-float-border);
    padding: 22px 10px 2px 10px;
}

.input-float input ~ label,
.input-float textarea ~ label,
.input-float select ~ label
{
        top: 12px;
        padding: 0;
        margin: 0;
        background: var(--input-float-label-bg);
        color: var(--input-float-label-color);
        z-index: 100;
        font-size: .8rem !important;
        border-left: 0 solid var(--input-float-border);
        border-right: 0 solid var(--input-float-border);
}*/


.collapsing {
    transition: none !important;
}

.button-save {
    background-color: var(--button-save);
}

.button-check {
    background-color: var(--button-check);
}

.bg-gray{
    background-color: var(--bg-gray);
}

.fs-11pt, input, button {
    font-size: 11pt !important;
}

.form-check-input-style {
    width: 2em;
    height: 1.3em;
}

.font-size-13 {
    font-size: 1.3rem;
}

.width-80px {
    width: 80px;
}

.width-100px {
    width: 100px;
}

.width-120px {
    width: 120px;
}

.pre-line {
    white-space: pre-line;
}

.width-25 {
    width: 25%;
}

.width-30 {
    width: 30%;
}

.width-60 {
    width: 60%;
}

.width-85 {
    width: 85% !important;
}

.width-70 {
    width: 70% !important;
}

.width-15 {
    width: 15% !important;
}

.width-100 {
    width: 100%;
}

.minWidth330 {
    min-width: 330px;
}

.width-300min {
    width: 300px;
    min-width: 300px;
}

.max-width250 {
    max-width: 250px;
}

.max-width400 {
    max-width: 400px;
}

.max-width600 {
    max-width: 600px;
}

.height-100 {
    height: 100%;
}

.height-100dvh {
    height: 100dvh;
}


.vertical-center {
    min-height: 100%;
    align-items: center;
}

.border-radius-0 {
    border-radius: 0 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.navbar-background-color {
    color: var(--color-navbar-background);
}

.company-short-name-position {
    position: relative;
    top: -0.25rem;
}

.dropdown-custom {
    z-index: 1010;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: var(--validation-good);
    font-size: x-small;
}

.valid:before {
    position: relative;
    left: -0.5rem;
    margin-left: .7rem;
    content: "✔";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
    color: var(--validation-wrong);
    font-size: x-small;
}

.invalid:before {
    position: relative;
    left: -0.5rem;
    margin-left: .7rem;
    content: "✖";
}

/* Striped háttérszín */
.table-striped-bg {
    --bs-table-bg-state: rgba(0, 0, 0, 0.05);
    background-color: var(--bs-table-bg-state) !important;
}

/* Alapból távolítsuk el a Bootstrap striped színezést a termék sorokról */
.table-striped > tbody > tr[data-cikkszam]:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent;
}

/* táblázat alap beállítás */
#logTableWrapper table {
    table-layout: auto; /* az oszlopok a tartalomhoz igazodnak */
    width: 100%;
}

/* az ID, Időpont, Típus és IP oszlopok: ne törjön sort */
#logTableWrapper td:nth-child(1),
#logTableWrapper td:nth-child(2),
#logTableWrapper td:nth-child(3),
#logTableWrapper td:nth-child(4) {
    white-space: nowrap;
    width: 1%;
}

/* az Üzenet oszlop: törjön több sorba */
#logTableWrapper td:nth-child(6) {
    white-space: normal;       /* engedélyezi a sortörést */
    word-wrap: break-word;     /* régi kompatibilitás */
    word-break: break-all;     /* nagyon hosszú stringek törése */
    overflow-wrap: break-word; /* modern szabvány */
}

#exportCsv {
    white-space: nowrap;  /* ne törje több sorba */
}

/*
 * Árlista
 */

/* A wrapper csak balra igazít, ne növelje a szélességet */
.arlista-wrapper { text-align: left; }

/* Erősebb specifikusság: wrapper + class */
.arlista-wrapper .arlista-table {
    width: max-content !important;   /* a tartalom szélessége legyen a mérvadó */
    display: table !important;       /* inline-table helyett sima table, stabilabb */
    table-layout: auto !important;   /* ne próbáljon fix szélességet */
    white-space: nowrap !important;  /* ne törje a cellák szövegét */
    margin: 0;                       /* ne legyen extra margó */
}

/* Cellák is kövessék */
.arlista-wrapper .arlista-table th,
.arlista-wrapper .arlista-table td {
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
}

/* ID-vel biztosan felülírjuk a bootstrapet */
#arlista-table {
    width: max-content !important;
    table-layout: auto !important;
    white-space: nowrap !important;
    margin: 0;
}

#arlista-table th,
#arlista-table td {
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
}

/*
 * Megrendelő
 */

.sticky-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    padding: 0 0 .5rem 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto;
}

/* bal oldali 1–3 sor */
.sticky-left {
    grid-column: 1;
    grid-row: 1 / span 3;
}

/* jobb oldali gomb, első 3 sorral egyező magasságban */
.sticky-right {
    grid-column: 2;
    grid-row: 1 / span 3;
}

/* figyelmeztetés, teljes szélesség */
.sticky-warning {
    grid-column: 1 / span 2;
    grid-row: 4;
}

.order-table thead {
    position: sticky;
    z-index: 6;
    background-color: #6b6b6b;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.order-table thead th {
    background-color: inherit;
}

.product-img {
    max-width: 100px;
    max-height: 100px;
    min-width: 50px;
    min-height: 50px;
}

.qty-input {
    width: 70px !important;
    text-align: right;
}

.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #dee2e6; /* gray-300 */
    color: black;
    font-size: 1.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 999;
}

/* Termékfajta vizuális kiemelés */
.order-table .product-type {
    padding-left: 2rem;
}
.price-cell {
    transition: background-color 3s ease;
}

.order-table .product-thumb {
    max-width: 100px;
    max-height: 100px;
    cursor: pointer;
}

.deliveryDate,
.deliveryTime{
    width: 120px;
}

.ui-datepicker {
    z-index: 2001 !important;
}

.order-table .imgheader {
    width: 100px;
}

.input-highlight {
    background-color: var(--bs-green-200) !important;
}

.row-highlight {
    font-weight: bold;
}

/* MODIFIED */
.submit-wrapper {
    grid-row: span 2; /* ha grid-el szervezed */
}
#orderSubmitBtn {
    white-space: nowrap; /* ne törje a felső sort */
    text-align: center;
}


/* Nondelivery dates oldalhoz */
.nondelivery-container {
    padding: 1rem 0;
}

.nondelivery-table td,
.nondelivery-table th {
    white-space: nowrap;
}

.nondelivery-msg {
    min-height: 1.5rem;
}

.nondelivery-date-input,
.nondelivery-note-input {
    max-width: 200px;
}


.horizontal-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #fff;
    line-height: 0.1em;
    margin: 2rem 0 1rem;
}

.horizontal-divider span {
    background: var(--bs-offcanvas-bg);
    padding:0 10px;
}

.deliveryLabel {
    width: 200px !important;
}


/* Gomb */
#saveWebuserBtn {
    min-width: 180px;
    font-weight: 600;
    padding: .6rem 1.2rem;
    border-radius: .5rem;
    transition: background-color .25s ease;
}

#saveWebuserBtn:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
}



/* Mobil nézet */
@media (max-width: 768px) {
    #saveWebuserBtn {
        width: 100%;
    }
}




@media screen and (max-width: 767px) {
    .card-logo {
        display: none;
    }

    .hide-md {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .hide-sm {
        display: none;
    }
}

@media screen and (max-width: 895px) {
    .hide-lg {
        display: none;
    }
}

@media screen and (max-width: 1060px) {
    .hide-xl {
        display: none;
    }
}


