.highlight-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: #007BFF;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}
.highlight-link:hover {
  background-color: #0056b3;
}
.badge-link {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #28a745;
  color: #28a745 !important;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.badge-link:hover {
  background-color: #28a745;
  color: white !important;
}
.order-box-link {
  display: inline-block;
  background: #f1f8ff;
  color: #0d6efd;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s;
}
.order-box-link:hover {
  background: #d6eaff;
}
.order-box-link i {
  margin-right: 8px;
}


.orderlist h6 {
	margin:0.4em 0 0.4em;
}
.orderlist p {
	margin-bottom:0.4em;
}
.orderlist label {
	font-weight:600;
}
.orderitem  td {
	padding:0.2em 0.4em;
}
.orderitem  .getmsgt {
	text-decoration:underline;
	color:#36c;
	cursor:pointer;
}
.orderitem  .getmsgt:hover {
	text-decoration:none;;
}

.orderitem  .items p {
	margin-top:0.6em;
	margin-bottom:0.2em;
}

.returned td {
	padding:0.2em 0.05em 0.2em 0;
	font-size:1em;
}
.rate1, .rate0{
	background:#2ECC40;
	color:#fff;
}
.rate2{
	background:#FFDC00;
}
.rate3{
	background:#FF851B;
}
.rate4, .rate5{
	background:#FF4136;
	color:#fff;
}

.vatwarning {
    background-color: #ffcc00; /* Sárga háttér */
    color: #000; /* Fekete szöveg */
    padding: 10px 15px;
    border-left: 5px solid #ff6600; /* Narancssárga kiemelés */
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    margin: 10px 0;
    border-radius: 5px;
}
#toggle-form::after {
  content: " ▼";
  font-size: 0.8em;
  color: #888;
}
#toggle-form.open::after {
  content: " ▲";
}

.brutto {
  font-size: 0.9em;
  color: #555;
  margin-top: 3px;
}

/* order modul UI */

.product-block {
  border: 1px solid #a1a1a1;
  margin-bottom: 8px;
  background: #fdfdfd;
}

.product-block.missing-stock {
  border: 2px solid #FF4136;
  background: #ffeaea;
}

.product-header {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
}

.product-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.product-code {
  color: #555;
  font-weight: normal;
}

.product-qty a {
  color: #0074D9;
  text-decoration: none;
}

.product-qty a:hover {
  text-decoration: underline;
}

.product-price {
  font-weight: bold;
  color: #111;
  cursor: help; /* jelezze, hogy van tooltip */
}


.stock-wrapper {
  display: flex;
  padding: 5px;
}

.stock-box {
  flex: 1;
  text-align: center;
  border-right: 1px solid #ddd;
  padding: 5px;
}

.stock-box:last-child {
  border-right: none;
}

.stock-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.stock-label {
  font-weight: bold;
}

.stock-value {
  font-size: 13px;
  color: #333;
}

.stock-icon {
  font-size: 13px;
}

.stock-icon.available {
  color: green;
}

.stock-icon.unavailable {
  color: red;
}


/* orders filter*/
.raktar-filters {
  border: 1px solid #ccc;
  padding: 3px 15px;
  margin-bottom: 3px;
  background: #f9f9f9;
  border-radius: 6px;
}

.raktar-filters legend {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.raktar-group {
  margin-bottom: 5px;
  line-height: 1.3;
}

.raktar-group label strong {
  display: block;
  margin-bottom: 3px;
  color: #222;
}

.raktar-buttons {
  margin-top: 5px;
}

.btn-apply {
  background: #0074D9;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}

.btn-apply:hover {
  background: #005fa3;
}

.btn-reset {
  margin-left: 10px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.btn-reset:hover {
  text-decoration: underline;
}

/* Alap filterblokkok */
.filter-section {
  border: 1px solid #ccc;
  padding: 0px 10px;
  margin-bottom: 0px;
  background: #f9f9f9;
  border-radius: 5px;
  margin-top:2px;
}

.filter-section legend {
  font-weight: bold;
  font-size: 13px;
  color: #333;
  margin-bottom: 2px;
}

/* Rugalmas, sűrűbb grid */
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px; /* vertical + horizontal spacing */
}

.filter-grid.compact {
  gap: 2px 8px; /* még sűrűbb verzió */
}

/* Címke – mint gomb */
.filter-grid label {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.12s ease-in-out;
  line-height: 1.1;
}

.filter-grid label:hover {
  background: #eef6ff;
  border-color: #0074D9;
}

/* Jelölőnégyzet */
.filter-grid input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

/* ✅ Aktív állapot (checked) – kék kiemelés */
.filter-grid input[type="checkbox"]:checked + span,
.filter-grid input[type="checkbox"]:checked ~ span,
.filter-grid label:has(input[type="checkbox"]:checked) {
  background: #0074D9;
  color: #fff;
  border-color: #005fa3;
}

.filter-grid label:has(input[type="checkbox"]:checked):hover {
  background: #005fa3;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: flex-end;
  margin-bottom: 5px;
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.filter-control label {
  font-weight: 600;
  color: #333;
}

.filter-select,
.filter-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  height: 28px;
  background: #fff;
  transition: border-color 0.15s ease-in-out;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #0074D9;
  box-shadow: 0 0 0 1px rgba(0,116,217,0.2);
}

.filter-search {
  flex: 1 1 250px;
}
.filter-input {
  min-width:250px;
}

.filter-input-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-tooltip {
  color: #666;
  text-decoration: none;
  font-size: 15px;
}

.filter-tooltip:hover {
  color: #0074D9;
}


.select2-container .select2-selection--multiple {
  min-height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 3px;
}

/* teszt rendelések jelzese*/
.order-flag.test-order {
  background: #ff4136;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  display:block;
}

/* orderemail tores*/
.email-text {
  word-break: break-all;          /* enged törést, ha muszáj */
  word-wrap: break-word;          /* régebbi böngészők miatt */
  overflow-wrap: anywhere;        /* modern megoldás */
  max-width: 100%;                /* gridhez igazodjon */
  display: inline-block;
}
/*
.email-text {
  word-break: break-word;
  overflow-wrap: break-word;
}
*/
.email-text a {
  white-space: nowrap;            /* a link maradjon egy sorban */
}

.msg {
  position: relative;
  padding: 12px 40px 12px 14px;
  margin: 10px 0 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.msg-success {
  background-color: #e6f8e9;
  border-left: 6px solid #3c9742;
  color: #1b4d22;
}

.msg-error {
  background-color: #ffeaea;
  border-left: 6px solid #c9302c;
  color: #7a1c1c;
}

/* bezáró gomb */
.msg .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  color: #555;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.msg .close-btn:hover {
  opacity: 1;
}

/* animált eltűnés */
.msg.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.checkall-wrapper {
  margin: 4px 0 10px;
  padding: 4px 8px;
  background: #f6f6f6;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}

/* inline stilusok kivaltasa */
/* Visszatérő vásárló táblázat */
table.returned {
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
  width: auto;
}

table.returned td {
  padding: 2px 6px;
  vertical-align: top;
}

table.returned td.value-cell {
  width: 30px;
  text-align: right;
}

/* Arány színezés */
.rate1 {
  color: #2e7d32; /* jó arány */
  font-weight: bold;
}
.rate2 {
  color: #f9a825; /* közepes arány */
  font-weight: bold;
}
.rate3 {
  color: #c62828; /* rossz arány */
  font-weight: bold;
}

/* Admin komment / banki lekérdezés blokk */
.admin-comment-div {
  width: 250px;
  margin-top: 4px;
}

/* A sikeres üzenet megjelenése */
.success-message {
  width: 100%;
  display: none;
  background: #90ee90;       /* lightgreen */
  color: #000;
  padding: 5px;
  line-height: 1.5em;
  font-size: 1em;
  border: 1px solid green;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Kiemelhető link jellegű elem (pl. "Banki adat lekérdezése") */
.getmsgt {
  cursor: pointer;
  color: #0074D9;
  text-decoration: underline;
}
.getmsgt:hover {
  color: #005fa3;
}
/* Szállítás blokk */
.ship-info {
  display: inline-block;
  padding: 0 20px 0 5px;
  color: #fff;
  border-radius: 3px;
  font-weight: bold;
  line-height: 1.4em;
}

/* Állapotok */
.ship-info.pending {
  background: #d9534f; /* piros: nincs dátum */
}

.ship-info.confirmed {
  background: #28a745; /* zöld: van dátum */
}

/* Raktárnév és email formázás */
.ship-info br + br {
  margin-top: 3px;
}

.ship-info small {
  font-weight: normal;
  opacity: 0.9;
}

/* Általános stílus a feladható raktár-címkékre */
.shipable-label {
  display: block;
  padding: 4px 6px;
  margin-bottom: 4px;
  border-radius: 3px;
  color: #000;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
}

/* Raktár specifikus színek */
.shipable-nyh {
  background-color: #7FDBFF; /* világoskék */
}

.shipable-hc {
  background-color: #01FF70; /* zöld */
}

.shipable-up {
  background-color: #AAFF70; /* világoszöld */
}

.shipable-mixed {
  background-color: #FFD166; /* sárgás, kiemelt vegyes */
}
/* Üzenet textarea blokk */
.order-message-area {
  width: 180px;
  height: 80px;
  resize: vertical;
  padding: 4px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* Mentés gomb */
.btn-save {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 12px;
  background-color: #eee;
  border: 1px solid #bbb;
  border-radius: 3px;
  cursor: pointer;
}

.btn-save:hover {
  background-color: #ddd;
}

/* Proforma szöveg gomb */
.btn-proforma {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 12px;
  background-color: #7FDBFF;
  border: 1px solid #5bc0de;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-proforma:hover {
  background-color: #39CCCC;
  color: #fff;
}

.font09 {
 font-size:0.9em;
}
/* Dátum mező */
.input-date {
  width: 140px;
  padding: 3px 5px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}

/* Mentés gomb (dátumhoz) */
.btn-date {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 12px;
  background-color: #f8f9fa;
  border: 1px solid #bbb;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-date:hover {
  background-color: #e0e0e0;
}

.orderitem {
	padding:6px 0px;
}
.highlightitem {
background:#00FF00!important;
}
.mtop10 {
margin-top:10px;
}

/*
.orderitem, .span-28, .span-23 { contain: layout paint; }
.orderitem { will-change: contents; }
.orderitem * { box-sizing: border-box; }

.items { display: flow-root; contain: layout; }
.product-block { contain: layout; }

*/
.info-row {
  display: block;
  margin: 0;
  padding: 2px 0;
  line-height: 1.3;
}

.returned {
  display: flex;
  flex-direction: column;
  gap: 2px; /* kis függőleges térköz */
  border-collapse: collapse; /* ha valahol átváltasz gridre */
  margin: 4px 0;
}

/* általános sor */
.returned .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9em;
}

.returned .row:last-child {
  border-bottom: none;
}

/* érték oszlop */
.returned .value {
  font-weight: bold;
  min-width: 50px;
  text-align: right;
}

/* --- rate státuszszínek --- */
.returned .rate0 {
  background-color: #d4edda; /* világoszöld */
  color: #155724;            /* sötétzöld szöveg */
  border-left: 3px solid #67b26f;
}

.returned .rate1 {
  background-color: #fff3cd; /* világossárga */
  color: #856404;            /* sötétbarna */
  border-left: 3px solid #ffce3a;
}

.returned .rate2 {
  background-color: #f8d7da; /* halványpiros */
  color: #721c24;            /* bordószöveg */
  border-left: 3px solid #d9534f;
}

.order-codes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background-color: #fafafa;
}

.order-codes .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9em;
}

.order-codes .row:last-child {
  border-bottom: none;
}

.order-codes .label {
  font-weight: 600;
  color: #333;
}

.order-codes .value {
  text-align: right;
  font-family: monospace;
  color: #000;
}



.block { display:block; }

