/* Grundlayout */
body {
    background-color: #f8f9fa;
    font-family: Arial, Helvetica, sans-serif;
}

body.loading {
  cursor: wait;
}

body.assist {
    background-color: #ffe6e6;
}
body.rep {
    background-color: #e6f0ff;
}
body.customer {
    background-color: bg-light;
}
body.admin {
		background-image:url('/images/admin4.jpg');
		background-attachment:fixed;
		background-size: cover;
    background-color: #ccccff;
}

/* Alerts automatisch ausblenden */
.fadeout {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.tooltip-inner {
    font-size: 0.75rem;
}
.lang-flag {
		text-decoration: none !important;
}
.lang-flag img {
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.lang-flag:hover img {
    transform: scale(1.15);
    opacity: 1;
}
.qty-input {
	 width: 80px;
}
/* CSS für zentriertes Overlay */
/*
#imageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#imageOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
*/
#imageOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  padding: 1rem;
}

#imageOverlay::before {
  content: '';
  position: absolute;
  width: min(90vw, 720px);
  height: min(90vh, 720px);         /* a square “card” */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Keep the image above the pseudo background */
#overlayImage {
  position: relative;
  z-index: 1;
  max-width: min(85vw, 680px);
  max-height: min(85vh, 680px);
  height: auto;
  width: auto;
  display: block;
}

/* Dunkles Overlay kommt von Bootstrap automatisch. Wir stylen die weiße Karte: */
.img-card{
  position: relative;
  background: #fff;            /* <- Das ist die solide Fläche hinter dem Bild */
  border-radius: 10px;
  padding: 16px;               /* etwas Innenabstand um das Bild */
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  max-width: min(90vw, 720px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bild an die Karte anpassen – auch bei sehr großen PNGs */
#modalImage{
  display: block;
  max-width: 100%;
  max-height: 80vh;            /* damit nichts abgeschnitten wird */
  height: auto;
  width: auto;
  background:#fff;             /* falls du lieber direkt dem IMG selbst den weißen BG gibst */
  border-radius: 6px;          /* leicht rund, optional */
}

/* Close-Button oben rechts über der Karte */
.close-abs{
  position: absolute;
  top: 8px;
  right: 8px;
  filter: invert(1) grayscale(100%); /* weiße Close-Grafik auf dunklem Shadow */
}

/* Light, readable yellow highlight for recently updated prices */
.recent-price {
    background-color: #fff3cd !important;  /* Bootstrap "warning" background tone */
}
td.bg-primary-subtle { cursor: pointer; }
td.bg-primary-subtle input[type="checkbox"] { cursor: pointer; }
