/* ===== ALAP OLDAL ===== */

html, body{
  height: 100%;
  margin: 0;
}

body{
  background:#9b9b9b;
  font-family:"Times New Roman", Georgia, serif;
}

.page{
  width: min(1200px, 96vw);
  margin: 20px auto;
  background:#e9f0ef;
  border:1px solid #6c7a78;

  /* FONTOS: a page legyen “rugalmas” doboz, hogy a lábléc legalul maradjon */
  min-height: calc(100vh - 40px);
  display:flex;
  flex-direction:column;
}

/* ===== FELSŐ SÁV (régi login layout) ===== */

.top{
  background:#c7d2d0;
  padding:20px;
  border-bottom:2px solid #2d7b57;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.left-top{
  display:flex;
  align-items:center;
  gap:20px;
}

/* LOGÓ */
.logo{
  height:62px;          /* +25% */
  width:auto;
  display:block;
}

/* ÉLŐ ÓRA */
.clock{
  font-size:22px;
  font-weight:700;
  color:#1f2b2a;
  white-space:nowrap;
}

/* ===== KÖZÉPSŐ RÉSZ ===== */

.middle{
  flex:1;
  padding:30px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== BELÉPÉSI ABLAK ===== */

.login-box{
  width:360px;
  background:#e9f0ef;
  border:1px solid #6c7a78;
  box-shadow:0 8px 22px rgba(0,0,0,0.18);
  padding:26px 28px 24px;
}

.login-title{
  font-size:22px;
  font-weight:700;
  text-align:center;
  margin-bottom:22px;
  color:#1f2b2a;
  border-bottom:2px solid #2d7b57;
  padding-bottom:6px;
}

.login-row{
  display:flex;
  flex-direction:column;
  margin-bottom:14px;
}

.login-row label{
  font-size:15px;
  margin-bottom:4px;
  color:#1f2b2a;
}

.login-row input{
  height:34px;
  font-size:16px;
  padding:4px 8px;
  border:1px solid #6c7a78;
  background:#f7faf9;
  color:#1f2b2a;
}

.login-row input:focus{
  outline:none;
  border-color:#2d7b57;
}

.login-btn{
  margin-top:18px;
  width:140px;
  height:34px;
  font-size:15px;
  font-weight:700;
  border:1px solid #2d7b57;
  background:linear-gradient(#3a8f6a,#2d7b57);
  color:#fff;
  cursor:pointer;
}

.login-btn:hover{
  background:linear-gradient(#34966e,#276c4d);
}

.login-btn:active{
  transform:translateY(1px);
}

/* ===== ALSÓ SÁV ===== */

.bottom{
  background:#c7d2d0;
  padding:15px;
  border-top:1px solid #6c7a78;
  text-align:center;
  font-size:16px;

  /* LÁBLÉC: mindig legalul */
  margin-top:auto;
}

/* =========================================================
   Fortis CRM header (v2 – finomított, kisebb betűk)
   Csak a headeren belül használ Arial-t, nem bántja a body-t.
   ========================================================= */

.ff-topbar{
  padding:6px 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.ff-topbar__inner{
  background:#dfe7e3;
  border:1px solid #b8c7c0;
  border-radius:6px;
  padding:6px 10px;
  display:flex;
  align-items:center;
  gap:12px;
}

/* Bal oldal – cím */
.ff-brand{
  flex:1;
  font-size:15px;
  font-weight:600;
  color:#1f2a26;
}

/* Közép/jobb – dátum + inaktivitás */
.ff-status{
  text-align:right;
  line-height:1.1;
}

.ff-status__time{
  font-size:12px;
  font-weight:600;
  color:#1f2a26;
}

.ff-status__sub{
  font-size:10px;
  color:#4b5a55;
  margin-top:2px;
}

/* Jobb oldal – user blokk */
.ff-user{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.4);
  border:1px solid #b8c7c0;
  border-radius:6px;
  padding:4px 8px;
}

.ff-user__text{
  line-height:1.1;
}

.ff-user__label{
  font-size:10px;
  color:#4b5a55;
}

.ff-user__value{
  font-size:11px;
  font-weight:600;
  color:#1f2a26;
}

/* Kilépés – diszkrét link (nem gomb) */
.ff-logout{
  background:none;
  padding:0;
  border-radius:0;
  text-decoration:underline;
  color:#2f6d56;
  font-size:11px;
  font-weight:600;
  display:inline;
}

.ff-logout:hover{
  color:#1f4a3a;
}

@media (max-width: 980px){
  .ff-topbar__inner{
    flex-wrap:wrap;
  }
  .ff-status{
    width:100%;
    text-align:left;
  }
}

/* ===== CRM oldal törzs kitöltése (app.php-hez) =====
   Ha van .crm-shell az oldalon, akkor töltse ki a maradék helyet,
   hogy a lábléc biztosan legalul maradjon.
*/
.page .crm-shell{
  flex: 1 0 auto;
}
