/* --- Örökölt alapszínek és tipográfia --- */
body
{
  font-family: Arial, Helvetica, Verdana;
  font-size: 10pt;
  color: #000000;
  background-color: #FCECC7; /* MEGTARTVA */
  margin: 0;
  min-height: 100vh;
}

a:link
{
  text-decoration: none;
  color: #A7001C; /* MEGTARTVA */
}
a:visited
{
  text-decoration: none;
  color: #A7001C; /* MEGTARTVA */
}
a:hover
{
  text-decoration: underline;
  color: #A7001C; /* MEGTARTVA */
}

/* Régi fejlécek – érintetlenül hagyjuk */
h1
{
  font-family: Garamond, "Times New Roman", Times;
  font-size: 18pt;
  color: #A7001C;
  font-weight: bold;
  text-align: center;
}
h2
{
  font-family: Garamond, "Times New Roman", Times;
  font-size: 14pt;
  color: #A7001C;
  font-weight: bold;
  text-align: center;
}
h3
{
  font-family: Garamond, "Times New Roman", Times;
  font-size: 12pt;
  color: #A7001C;
  font-weight: bold;
}
h4
{
  font-family: Arial, Helvetica, Verdana;
  font-size: 10pt;
  font-weight: bold;
}
.alap
{
  font-family: Arial, Helvetica, Verdana;
  font-size: 10pt;
}
.alapj
{
  font-family: Arial, Helvetica, Verdana;
  font-size: 10pt;
  text-align: Justify;
}
.alapc
{
  font-family: Arial, Helvetica, Verdana;
  font-size: 10pt;
  text-align: Center;
}

.inputbox
{
  font-size: 11px;
  font-family: arial, helvetica, verdana;
  color: #000000;
  border-right: #fcecc7 1px solid;
  border-top: #fcecc7 1px solid;
  border-left: #fcecc7 1px solid;
  border-bottom: #fcecc7 1px solid;
  text-align: center;       /* ‹ ez már középre igazít */
  width: 600px;
}
.inputboxch
{
  font-size: 11px;
  font-family: arial, helvetica, verdana;
  background-color: #f5f0d8;
  border-right: #fcecc7 1px solid;
  border-top: #fcecc7 1px solid;
  border-left: #fcecc7 1px solid;
  border-bottom: #fcecc7 1px solid;
  text-align: center;
  width: 600px;
}
.inputboxs
{
  font-size: 10px;
  text-align: center;
  width: 35px;
}
.inputboxl
{
  font-size: 9px;
  font-family: arial, helvetica, verdana;
  color: #000000;
  border-right: #fcecc7 1px solid;
  border-top: #fcecc7 1px solid;
  border-left: #fcecc7 1px solid;
  border-bottom: #fcecc7 1px solid;
  text-align: left;
  width: 100px;
}
.betu11
{
  font-size: 11px;
  font-family: arial, helvetica, verdana;
}
.betu10
{
  font-size: 10px;
  font-family: arial, helvetica, verdana;
}
/* --- ÚJ_VÁZ elrendezéshez --- */
.keret
{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;           /* fontos a függőleges helyigény számításhoz is */
  width: 100%;
}

.fejlec
{
  width: 95vw;         /* kérés szerinti 95% szélesség */
  max-width: 1600px;
  border-collapse: collapse;
  background: transparent;  /* nincs háttér */
  margin: 0 auto;           /* középre */
}

.fejlec td
{
  border: none;             /* nincs keret */
  padding: 4px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Oszlopszélességek: 15% / 70% / 15% */
.fw15 { width: 15%; }
.fw70 { width: 70%; }

/* Valódi igazítás a cellákon */
td.c1 { text-align: left; }
td.c2 { text-align: center; }
td.c3 { text-align: right; }

/* A 3. oszlopban a kis ikonlinkek és a Szerkesztés kapcsolók együtt élnek szépen */
.fejlec .actions
{
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Kép – dobozárnyék maradhat, oldal háttere pedig a régi sárgás */
#kep
{
  display: block;
  width: auto;
  height: auto;
  max-width: none;     /* JS kezeli */
  max-height: none;    /* JS kezeli */
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  background: #fff;
}

/* Bevitel blokk – csak edit módban látszik */
.bevitel-blokk
{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Új, letisztult input – a kérés szerint 600 px */
.bevitel-blokk input[type="text"]
{
  width: 600px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
}

/* Új, letisztult gomb */
.bevitel-blokk button
{
  padding: 8px 14px;
  border: 1px solid #2f6fed;
  background: #2f6fed;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.bevitel-blokk button:hover
{
  filter: brightness(0.95);
}

/* ===== LOGIN OVERLAY (modal) ===== */
.login-overlay
{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none; /* alapból rejtve */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-overlay.show
{
  display: flex;
}

.login-modal
{
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 18px 20px 16px 20px;
  position: relative;
  font-family: Arial, Helvetica, Verdana;
}

.login-modal h3
{
  margin: 0 0 12px 0;
  font-size: 16pt;
  color: #A7001C;
  text-align: center;
}

.login-modal .row
{
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.login-modal label
{
  font-weight: bold;
}

.login-modal input[type="text"],
.login-modal input[type="password"]
{
  padding: 8px 10px;
  border: 1px solid #fcecc7;
  font-size: 12pt;
  width: 100%;
  box-sizing: border-box;
}

.login-modal .actions
{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.login-modal button[type="submit"],
.login-modal button[type="button"]
{
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #f5f0d8;
  cursor: pointer;
}

.login-close
{
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
}
