@charset "UTF-8";

/* =========================================================
   0) BASE
   ========================================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f9f7;
    color: #333;
}

/* =========================================================
   1) TOPBAR
   ========================================================= */
.topbar{
    display:flex;
    align-items:center;
    height:60px;
    background:#fff;
    padding:0 15px;
    border-bottom:1px solid #ddd;
    box-shadow:0 1px 2px rgba(0,0,0,0.05);
}

/* Logo */
.logo-img{
    max-height:40px;
    width:auto;
    display:block;
}

/* Hamburger */
.menu-toggle{
    display:none;
    flex-direction:column;
    justify-content:space-between;
    width:30px;
    height:22px;
    background:none;
    border:none;
    cursor:pointer;
    margin-right:10px;
    padding:0;
}
.menu-toggle span{
    display:block;
    height:3px;
    width:100%;
    background:#2fa866;
    border-radius:2px;
}

/* User info (topbar jobb oldal) */
.user-info{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
    min-width:0; /* flex ellipsis miatt */
}
.user-details{
    display:flex;
    flex-direction:column;
    text-align:right;
    min-width:0;
}
.username{
    font-weight:600;
    color:#2fa866;
}
.user-company{
    font-size:0.85em;
    color:#555;
}

/* Logout ikon (topbar) */
.logout-btn{
    background:none;
    border:none;
    cursor:pointer;
    padding:5px;
    flex-shrink:0;
}
.logout-btn img.logout-icon{
    width:20px;
    height:20px;
    transition:filter 0.3s ease;
}
.logout-btn:hover img.logout-icon{
    filter:brightness(0.7);
}

/* =========================================================
   2) LAYOUT
   ========================================================= */
.layout{
    display:flex;
    min-height:calc(100vh - 60px);
}
.content{
    flex:1;
    padding:30px;
    background:#fff;
}

/* =========================================================
   3) SIDEBAR (desktop)
   ========================================================= */
.sidebar{
    background:#fff;
    border-right:1px solid #ddd;
    padding:20px;
    width:auto;
    min-width:200px;
}

.sidebar ul{
    list-style:none;
    padding:0;
    margin:0;
}
.sidebar li{ margin-bottom:10px; }

.sidebar a{
    display:block;
    text-decoration:none;
    color:#2fa866;
    font-weight:600;
    padding:10px 20px;
    border-radius:5px;
    transition:all 0.3s ease;
}
.sidebar a:hover{
    background:#2fa866;
    color:#fff;
}
.sidebar a.active{
    background:#238f59;
    color:#fff;
}

/* Sidebar nyelvválasztó */
.sidebar-lang{
    display:flex;
    justify-content:center;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid #ddd;
}
.sidebar-lang a img{
    width:30px;
    height:20px;
    cursor:pointer;
    border:2px solid transparent;
    border-radius:4px;
}
.sidebar-lang a.active-lang img{
    border-color:#2fa866;
}

/* Mobil sidebar user blokk (desktopon rejtve) */
.sidebar-user{ display:none; }

/* Menü szekció cím */
.menu-section-title{
    font-size: 12px;
    font-weight: 800;
    padding: 10px 14px 6px 14px;
    margin: 10px 6px 4px 6px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #ccc;
}

/* =========================================================
   4) TABLES / DOCUMENT CENTER (mainoldal)
   ========================================================= */
.tabla_mainoldal_wrapper{
    width:100%;
    overflow-x:auto;
    margin:20px 0 40px 0;
}
.tabla_mainoldal{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    font-size:14px;
}
.tabla_mainoldal th{
    background:#2c3e50;
    color:#fff;
    padding:10px;
    text-align:left;
}
.tabla_mainoldal td{
    padding:10px;
    border-bottom:1px solid #eee;
}
/*
.tabla_mainoldal tr:hover{
    background:#f5f9ff;
    transition:0.2s;
}*/
.tabla_mainoldal tr:not(.just-downloaded):hover > td{
    background:#f5f9ff;
    transition:0.2s;
}

.link_mainoldal{
    color:#2980b9;
    text-decoration:none;
    font-weight:500;
}
.link_mainoldal:hover{ text-decoration:underline; }

.status_ok_mainoldal{
    color:green;
    font-size:18px;
    font-weight:bold;
}
.status_no_mainoldal{
    color:red;
    font-size:18px;
    font-weight:bold;
}

/* Szűrő panel */
.filter_mainoldal{
    margin-bottom:15px;
    display:flex;
    flex-wrap:wrap;
    gap:0.5rem;
    align-items:center;
}
.filter_mainoldal label{ font-weight:500; }
.filter_mainoldal select{
    padding:5px 8px;
    border-radius:4px;
    border:1px solid #ccc;
    background:#fff;
    transition:all 0.2s;
}
.filter_mainoldal select:hover{ border-color:#28a745; }
.filter_mainoldal button{
    padding:5px 10px;
    background:#28a745;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
    transition:all 0.2s;
}
.filter_mainoldal button:hover{ background:#218838; }

/* Lapozás */
.pagination_mainoldal{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    margin:1rem 0;
    gap:0.25rem;
    font-family:Arial, sans-serif;
}
.pagination_mainoldal .page_link_mainoldal{
    padding:0.3rem 0.6rem;
    border:1px solid #28a745;
    border-radius:4px;
    text-decoration:none;
    color:#28a745;
    transition:all 0.2s;
}
.pagination_mainoldal .page_link_mainoldal:hover{
    background:#28a745;
    color:#fff;
    border-color:#28a745;
}
.pagination_mainoldal .active_page_mainoldal{
    background:#28a745;
    color:#fff;
    border-color:#28a745;
    pointer-events:none;
}
.pagination_mainoldal .dots_mainoldal{
    padding:0.3rem 0.6rem;
    color:#555;
}

/* Kiemelt cég */
.highlight-company{
    font-weight:bold;
    color:#2a9d8f;
    background:#e0f7f4;
    padding:2px 4px;
    border-radius:4px;
}

/* =========================================================
   5) ICONS (listákban, táblákban)
   ========================================================= */
.icon_link{ display:inline-block; }
.icon_img{
    width:20px;
    height:20px;
    transition:filter 0.3s ease;
}
.icon_link:hover .icon_img{ filter:brightness(0.7); }

.delete_icon:hover{
    filter:brightness(0.7) saturate(2) sepia(1) hue-rotate(-10deg);
}
.icon_img.disabled{
    opacity:0.3;
    cursor:not-allowed;
}

/* =========================================================
   6) LOGIN + SETTINGS (shared)
   ========================================================= */
body.login-page{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:#f6f9f7;
    font-family:Arial, sans-serif;
}

.login-box,
.settings-box{
    background:#fff;
    padding:30px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    max-width:400px;
    margin:30px auto;
    font-family:Arial, sans-serif;
}

/* Login specifikus */
.login-box{ width:300px; }
.login-box h2{
    margin:0 0 20px;
    color:#2fa866;
}
.login-box input,
.settings-box input{
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:5px;
    font-size:1em;
}
.login-box button,
.settings-box button{
    width:100%;
    padding:10px;
    background:#2fa866;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
    transition:background 0.3s ease;
    font-size:1em;
}
.login-box button:hover,
.settings-box button:hover{ background:#238f59; }

.login-page .login-logo{
    text-align:center;
    margin-bottom:20px;
}
.login-page .login-logo img{
    max-width:150px;
    height:auto;
}

.error{
    color:red;
    margin-bottom:10px;
    font-size:0.9em;
    text-align:center;
}

.lang-select{
    display:flex;
    justify-content:space-around;
    margin-bottom:15px;
}
.lang-select img{
    width:30px;
    height:20px;
    cursor:pointer;
    border:2px solid transparent;
    border-radius:4px;
}
.lang-select input[type=radio]{ display:none; }
.lang-select input[type=radio]:checked + img{
    border-color:#2fa866;
}

/* címsorok */
.login-box h1, .settings-box h1{
    margin:0 0 20px;
    color:#2fa866;
    text-align:center;
    font-size:1.8em;
}
.login-box h2, .settings-box h2{
    margin:20px 0 10px;
    color:#333;
    font-size:1.2em;
    border-bottom:1px solid #ddd;
    padding-bottom:5px;
}

.login-box form, .settings-box form{
    display:flex;
    flex-direction:column;
}

.login-box hr, .settings-box hr{
    border:none;
    border-top:1px solid #ddd;
    margin:20px 0;
}

.login-box .msg, .settings-box .msg{
    padding:10px;
    margin-bottom:15px;
    border-radius:5px;
    font-size:0.95em;
}
.login-box .msg.success, .settings-box .msg.success{
    background:#e6f5ed;
    color:#238f59;
    border:1px solid #2fa866;
}
.login-box .msg.error, .settings-box .msg.error{
    background:#fceaea;
    color:#d33;
    border:1px solid #d33;
}
.login-box .pass-info, .settings-box .pass-info{
    list-style:disc;
    margin:5px 0 15px 20px;
    padding:0;
    font-size:0.9em;
    color:#555;
}

/* Settings specifikus */
.settings-box{
    background:none;
    padding:0;
    box-shadow:none;
    max-width:800px;
    margin:30px 0;
}
.settings-box form{
    align-items:flex-start;
}
.settings-box button{
    align-self:flex-start;
    min-width:150px;
}

.login-links{
    text-align:center;
    margin-top:10px;
}
.forgot-link{
    font-size:0.9em;
    color:#2fa866;
    text-decoration:none;
}
.forgot-link:hover{ text-decoration:underline; }

.login-footer{
    margin-top:20px;
    font-size:0.8em;
    color:#777;
    text-align:center;
}
.login-footer a{
    color:#2fa866;
    text-decoration:none;
    margin:0 3px;
}
.login-footer a:hover{ text-decoration:underline; }

/* =========================================================
   7) RESPONSIVE
   ========================================================= */

/* Kisebb login/settings */
@media (max-width: 500px){
    .login-box, .settings-box{
        padding:20px;
        margin:10px;
    }
    .login-box h1, .settings-box h1{ font-size:1.5em; }
    .login-box h2, .settings-box h2{ font-size:1.1em; }
}

/* Mobil layout + sidebar overlay */
@media (max-width: 768px){

    .topbar{
        padding-left:10px;
        padding-right:10px;
    }

    .menu-toggle{ display:flex; }

    .logo{ margin-left:15px; min-width:0; }
    .logo-img{ max-height:34px; }

    .layout{ flex-direction:column; }

    .sidebar{
        position:fixed;
        top:60px;
        left:-100%;
        width:100%;
        background:#2fa866;
        color:#fff;
        padding:30px 20px;
        transition:left 0.3s ease;
        z-index:1000;

        height:calc(100vh - 60px);
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain;
    }
    .sidebar.open{ left:0; }

    .sidebar a{
        color:#fff;
        padding:15px 20px;
    }
    .sidebar a:hover{ background:#238f59; }
    .sidebar a.active{ background:#1d6d46; }

    .content{ padding:20px; }

    /* Mobilon: topbarban csak logout marad */
    .user-details{ display:none; }

    /* Sidebar-ban user blokk megjelenik */
    .sidebar-user{
        display:block;
        padding:12px 12px 14px 12px;
        margin-bottom:10px;
        border-bottom:1px solid rgba(255,255,255,0.35);
        color:#fff;
    }
    .sidebar-user-name{
        font-weight:700;
        font-size:15px;
        line-height:1.2;
        margin-bottom:4px;
        word-break:break-word;
    }
    .sidebar-user-company{
        font-size:12px;
        opacity:0.95;
        line-height:1.25;
        word-break:break-word;
    }
    .sidebar-logout-btn{
        margin-top:10px;
        display:inline-flex;
        align-items:center;
        gap:8px;
        background:rgba(255,255,255,0.12);
        border:1px solid rgba(255,255,255,0.25);
        color:#fff;
        padding:8px 10px;
        border-radius:8px;
        cursor:pointer;
    }
    .sidebar-logout-btn .logout-icon{
        width:18px;
        height:18px;
        filter:brightness(0) invert(1);
    }

    /* Mobilon a nyelv aktív flag kapjon fehér hátteret */
    .sidebar-lang a.active-lang img{
        background:#fff;
        border-radius:4px;
        padding:2px;
    }

    /* Menü szekció cím mobilon */
    .menu-section-title{
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.45);
    }

    /* Dokument center mobil finomítás */
    .tabla_mainoldal th,
    .tabla_mainoldal td{
        font-size:12px;
        padding:6px;
    }
    .filter_mainoldal{
        flex-direction:column;
        align-items:flex-start;
    }
}

.menu-subsection-title{
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px 4px 14px;
    margin: 6px 6px 0 6px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .02em;
    opacity: .95;
}
@media (max-width: 768px){
    .menu-subsection-title{
        color: rgba(255,255,255,0.85);
    }
}

.log_box { padding:10px; background:#fafafa; border:1px solid #e5e5e5; border-radius:8px; }
.log_table th { font-weight:600; border-bottom:1px solid #ddd; }
.log_table td { border-bottom:1px solid #eee; vertical-align:top; }
tr.log_row td { background: #fff; }
a.log_toggle.open img { opacity: .75; }


/* a TR kapja a keretet/árnyékot */
tr.just-downloaded {
  outline: 3px solid #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,0.25);
}

/* a TD-k kapják a háttérszínt + animációt */
tr.just-downloaded > td {
  background: #d4edda !important;
  animation: flashCell 0.8s ease-out;
}

/* animáció TD-re */
@keyframes flashCell {
  0%   { background-color: #28a745; color: #fff; }
  100% { background-color: #d4edda; }
}

.file_title_grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 900px){
  .file_title_grid{ grid-template-columns: 1fr 1fr 1fr; }
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  line-height:18px;
  margin-right:6px;
  color:#fff;
  font-weight:600;
}

/* alap színek */
.badge-red{
  background:#e53935;
}

.badge-orange{
  background:#fb8c00;
}

/* 0 mindig zöld */
.badge[data-count="0"]{
  background:#238f59 !important;
  color:#fff !important;
}
@media (max-width: 768px){
  .badge{
    min-width:16px;
    height:16px;
    font-size:11px;
    margin-right:4px;
  }
}
.naptar_type_dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.08);
}

.naptar_company_dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.08);
}

/* =========================================================
   NAPTÁR LISTA – EXTRA (prefixelt)
   ========================================================= */
._naptarlista_dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:6px;
  vertical-align:middle;
  border:1px solid rgba(0,0,0,.08);
}

._naptarlista_small{
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
}

._naptarlista_legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 8px 0 14px 0;
}

._naptarlista_legend_item{
  display:flex;
  align-items:center;
  gap:6px;
  background:#fff;
  border:1px solid #e5e7eb;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
}
._naptarlista_actions{
  margin: 10px 0 14px 0;
  display:flex;
  justify-content:flex-start;
}

._naptarlista_btn_add{
  display:inline-block;
  padding:8px 12px;
  background:#28a745;
  color:#fff;
  border:none;
  border-radius:4px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.2s;
}

._naptarlista_btn_add:hover{
  background:#218838;
}

/* Naptár felvitel / módosítás form – zöldes keret + rendezett törések */
._naptarform{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:center;
}

/* "sor törés" elem */
._naptarform_break{
  flex-basis:100%;
  height:0;
}

/* mezők stílus (mint a select) */
._naptarform select,
._naptarform input[type="text"],
._naptarform input[type="date"],
._naptarform textarea{
  padding:8px 10px;
  border-radius:4px;
  border:1px solid #ccc;
  background:#fff;
  transition:all .2s;
  font-size:14px;
  font-family:Arial, Helvetica, sans-serif;
}

._naptarform select:hover,
._naptarform input[type="text"]:hover,
._naptarform input[type="date"]:hover,
._naptarform textarea:hover{
  border-color:#28a745;
}

._naptarform select:focus,
._naptarform input[type="text"]:focus,
._naptarform input[type="date"]:focus,
._naptarform textarea:focus{
  outline:none;
  border-color:#28a745;
  box-shadow:0 0 0 3px rgba(40,167,69,0.18);
}

/* textarea mindig teljes szélesség – így biztosan alá kerül */
._naptarform textarea{
  width:100%;
  max-width:800px;   /* ha akarod */
  min-height:110px;
  resize:vertical;
}

/* gomb ugyanaz a zöld */
._naptarform button{
  padding:8px 14px;
  background:#28a745;
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}
._naptarform button:hover{
  background:#218838;
}
.remove-btn{
  float:right;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  color:#c82333;
  padding:2px 6px;
}
.remove-btn:hover{ opacity:0.8; }

.file_item{ position:relative; } /* fontos: az X-hez */

.file_head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.file_name{
  flex:1 1 auto;
  min-width:0;
  padding-right:34px; /* hely az X-nek */
  word-break:break-word; /* hosszú fájlnév se tolja szét */
}

.btn_x{
  position:absolute;
  top:8px;
  right:8px;
  width:22px;
  height:22px;
  line-height:20px;
  padding:0;
  border-radius:999px;
  border:1px solid #c82333;
  background:#fff;
  color:#c82333;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn_x:hover{ background:#ffe6e6; }
.btn_x:disabled{ opacity:.5; cursor:not-allowed; }

/* KONTO: kis piros X (külön class, nehogy ütközzön más feltöltőkkel) */
#kontos_upload_form .konto_remove_btn{
  position: absolute;
  top: 8px;
  right: 8px;

  background: transparent;
  border: 0;
  padding: 2px 6px;
  line-height: 1;

  color: #c82333;
  font-size: 14px;
  cursor: pointer;
}

#kontos_upload_form .konto_remove_btn:hover{ color:#a71d2a; }

/* hogy az abszolút X-nek legyen "viszonyítási alapja" */
#kontos_upload_form .file_item{ position: relative; }

.manage_cell { text-align:center; }
.ikt_num{
  font-size:12px;
  font-weight:700;
  color:#1f7a1f;
  margin-bottom:4px;
  line-height:1.1;
  word-break:break-word;
}
.manage_btn{
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:18px;
}
.meta_box{
  padding:12px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fafafa;
  max-width:900px;
}
.meta_row td{ background:#fff; }
.manage_btn.open img{
  filter: hue-rotate(90deg);
}

.meta_actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.green-button{
  background:#28a745;
  border:1px solid #28a745;
  color:#fff;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}
.green-button:hover{
  background:#218838;
  border-color:#218838;
}
.green-button:disabled{
  background:#cfd8cf;
  border-color:#cfd8cf;
  cursor:not-allowed;
}

@media (max-width: 640px){
  .meta_actions{
    flex-direction:column;
    align-items:stretch;
  }
  .meta_actions .green-button{
    width:100%;
  }
}
._ceg_multi { margin: 6px 0 14px; }
._ceg_multi_all { display:flex; gap:8px; align-items:center; font-weight:700; margin-bottom:8px; }
._ceg_multi_search { width:100%; max-width:420px; padding:8px 10px; border:1px solid #ccc; border-radius:8px; margin-bottom:8px; }
._ceg_multi_list {
  border:1px solid #ddd;
  border-radius:10px;
  padding:8px;
  max-height:260px;
  overflow:auto;
  background:#fff;
  max-width:520px;
}
._ceg_multi_item { display:flex; gap:8px; align-items:center; padding:6px 6px; border-radius:8px; cursor:pointer; }
._ceg_multi_item:hover { background: rgba(0,0,0,0.04); }

._naptar_row { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
._naptar_row3 ._naptar_field {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 260px;
}
._naptar_field { display:flex; flex-direction:column; gap:6px; }
._naptar_field._full { flex: 1 1 100%; }

._naptarform ._naptar_row { flex: 0 0 100%; }
._naptar_rest { flex: 0 0 100%; }
/* mezők töltsék ki a saját dobozukat */
._naptar_field input,
._naptar_field select{
  width: 100%;
}

/* FIX: a teljes form ne legyen flex, csak a sorok */
._naptarform{
  display:block !important;
}

/* a sorok maradhatnak flexek */
._naptar_row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

/* a rest blokk sima block marad */
._naptar_rest{
  width:100%;
}

/* --- CÉG MULTI: fix layout / felülír minden global label sz@rságot --- */
._ceg_multi{
  width: 100%;
  text-align: left !important;
}

._ceg_multi_all{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* ne szét tolja */
  gap: 10px !important;
  width: 100% !important;
  margin: 6px 0 10px !important;
  text-align: left !important;
}

#ceg_all{
  margin: 0 !important;
}

#ceg_all_label{
  display: inline-block !important;
  width: auto !important;
  text-align: left !important;
  white-space: nowrap;  /* ne törje szét */
}

._ceg_multi_search{
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  text-align: left !important;
}

._ceg_multi_list{
  width: 100% !important;
  max-width: 520px !important;
  text-align: left !important;

  display: grid !important;              /* mindig 1 oszlop */
  grid-template-columns: 1fr !important; /* 1 oszlop */
  gap: 2px !important;
}

._ceg_multi_item{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;

  width: 100% !important;
  text-align: left !important;
}

._ceg_multi_item input[type="checkbox"]{
  margin: 0 !important;
  flex: 0 0 auto !important;
}

._ceg_multi_item span{
  flex: 1 1 auto !important;
  text-align: left !important; /* ne jobbra zárjon */
}

/* csak a normál mezők legyenek full width, ne a checkboxok */
._naptar_field input:not([type="checkbox"]),
._naptar_field select,
._naptar_field textarea{
  width: 100%;
}

/* checkboxoknak tiltsuk le a 100%-ot */
._naptar_field input[type="checkbox"]{
  width: auto !important;
}

._naptar_mailbox_label{
  display:flex;
  align-items:center;
  gap:10px;
}
._naptar_mailbox_label input[type="checkbox"]{
  width:auto !important;
}
._ceg_multi_head{ margin-bottom: 14px; }
._naptarform button{
  margin: 24px 0 16px;
}
@media (max-width: 768px){
  /* Cím mezők (HU / EN / HR) egymás alá mobilon */
  ._naptar_rest input[name="cim_hu"],
  ._naptar_rest input[name="cim_en"],
  ._naptar_rest input[name="cim_hr"]{
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }
}
@media (max-width: 768px){
  ._naptar_rest label{
    margin-top: 10px;
  }
}

/* Sidebar: alul fix footer (nem borít semmit) */
.sidebar{
  display:flex;
  flex-direction:column;
}

/* a menülista kapja a "növekedést", hogy a footer le tudjon menni */
.sidebar > ul{
  flex: 1 1 auto;
}

/* a footer lemegy legalulra, középre */
.sidebar-footer{
  margin-top:auto;
  padding:12px 10px 6px;
  text-align:center;
  font-size:0.8em;
  color:#777;
  border-top:1px solid #ddd;
}

.sidebar-footer a{
  color:#2fa866;
  text-decoration:none;
  margin:0 3px;
}
.sidebar-footer a:hover{ text-decoration:underline; }

.sidebar-footer{
  white-space: nowrap;      /* egy sor */
  display:flex;             /* szépen középre */
  justify-content:center;
  align-items:center;
  gap:6px;
}

.sidebar-footer .sep{
  opacity:.7;
}
/* Mobilon a sidebar zöld, legyen a footer is ahhoz igaz */
@media (max-width: 768px){
  .sidebar-footer{
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.35);
  }
  .sidebar-footer a{
    color:#fff;
    text-decoration:underline;
  }
}


.tabla_mainoldal td:nth-child(2){
  vertical-align: middle;
}
/* a belső ikon sor legyen szépen középen és egymás mellett */
.icon_cell{
  display: inline-flex;     /* nem full szélesség, csak a tartalom */
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.icon_link{
  display:inline-flex;
  align-items:center;
  line-height:1;
}

.icon_img{
  display:block;
}

/* Sidebar menü: legyen oszlop flex, hogy lehessen "alulra tolni" egy elemet */
.sidebar > ul{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;   /* nálad már megvan, maradhat */
}

/* a felh_dok menüpont menjen legalulra + kis szeparáció */
.sidebar > ul > li.menu-bottom-item{
  margin-top:auto;            /* EZ tolja le legalulra */
  padding-top:30px;
  border-top:1px solid #ddd;
}
@media (max-width: 768px){
  .sidebar > ul > li.menu-bottom-item{
    border-top:1px solid rgba(255,255,255,0.35);
  }
}

/* Dokumentáció letöltő link – zöld */
.doc-download-link{
  display:inline-block;
  margin:6px 0;
  color:#2fa866;
  font-weight:600;
  text-decoration:none;
}
.doc-download-link:hover{
  color:#238f59;
  text-decoration:underline;
}

/* Naptár információs blokk (csak itt használjuk) */
.naptar_info{
  border:1px solid #eee;
  background:#fafafa;
  border-radius:12px;
  padding:14px 14px;
  margin: 10px 0 14px 0;
  max-width: 1100px;
}

.naptar_info_p{
  margin: 6px 0;
  color:#333;
}

.naptar_info_legend{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e5e5e5;
}

.naptar_info_legend_title{
  font-weight:700;
  color:#2fa866;
  margin-bottom:8px;
}

.naptar_info_row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 8px 0;
}

.naptar_info_icons{
  flex: 0 0 auto;
  white-space: nowrap;
  padding-top:2px;
}

.naptar_info_text{
  flex:1 1 auto;
  color:#555;
  line-height:1.35;
}

/* ha képeket használsz a jelzésekhez */
.naptar_info_icon{
  width:18px;
  height:18px;
  vertical-align:middle;
  margin-right:6px;
}

@media (max-width: 768px){
  .naptar_info_row{ flex-direction:column; }
}
/* Kapcsolat oldal */
.contact_card{
  max-width: 900px;
  background:#fafafa;
  border:1px solid #eee;
  border-radius:14px;
  padding:18px 20px;
}

.contact_block{
  margin-bottom:14px;
}

.contact_label{
  font-weight:700;
  color:#2fa866;
  margin-bottom:4px;
}

.contact_value{
  color:#333;
}

.contact_sep{
  border:none;
  border-top:1px solid #ddd;
  margin:18px 0;
}

.contact_legal{
  font-size:13px;
  color:#555;
  line-height:1.5;
}

@media (max-width:768px){
  .contact_card{
    padding:14px;
  }
}

/* Kapcsolat oldal – fejlesztői credit blokk */
.contact_credit{
  margin-top:16px;
  padding:14px 16px;
  background:#f3f4f6;          /* szép világosszürke */
  border:1px solid #e5e7eb;
  border-radius:12px;
}

.contact_credit_title{
  font-weight:800;
  color:#555;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
}

.contact_credit_body{
  color:#444;
  line-height:1.45;
}