/* ===== RESET ===== */

*{
box-sizing: border-box;
}


/* ===== BODY ===== */
body {
margin: 0;
padding-top: 64px;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
background: radial-gradient(circle at top, #0f7ac0 0%, #020617 55%);
color: #e5e7eb;
min-height: 100vh;
}

/* ===== HEADER / TOPBAR ===== */
.topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 64px;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
background: rgba(15, 23, 42, 0.85);
border-bottom: 1px solid rgba(148,163,184,.25);
backdrop-filter: blur(8px);
}

/* ===== LOGO ===== */
.logo {
color: #f8fafc;
font-size: 20px;
font-weight: 700;
text-decoration: none;
}

/* ===== NAV ===== */
.nav-tabs {
display: flex;
gap: 10px;
align-items: center;
}

.nav-tab {
padding: 8px 16px;
border-radius: 999px;
border: 1px solid rgba(148,163,184,.35);
background: rgba(15,23,42,.6);
color: #e5e7eb;
text-decoration: none;
font-size: 14px;
transition: all .2s ease;
white-space: nowrap;
}

.nav-tab:hover {
background: rgba(148,163,184,.2);
}

.nav-tab.active {
background: rgba(34,197,94,.25);
border-color: #22c55e;
color: #bbf7d0;
}

.nav-tab.logout {
background: rgba(239,68,68,.2);
border-color: rgba(239,68,68,.5);
}

/* ===== CONTENT ===== */
.container {
max-width: 1600px;
width: 95%;
margin: 32px auto;
padding: 0 16px;
}

/* ===== CARD ===== */
.card {
background: rgba(15,23,42,.78);
border: 1px solid rgba(148,163,184,.25);
border-radius: 18px;
padding: 24px;
margin-bottom: 16px;
}

/* ===== HEADINGS ===== */
h1 {
margin: 0 0 6px 0;
font-size: 26px;
}

h2 {
margin: 0 0 12px 0;
font-size: 20px;
}

/* ===== TEXT ===== */
.muted {
color: #94a3b8;
font-size: 14px;
}

/* ===== TABLE ===== */
table {
width: 100%;
border-collapse: collapse;
}

thead th {
text-align: left;
font-size: 13px;
color: #94a3b8;
padding: 8px 6px;
}

tbody td {
padding: 10px 6px;
border-top: 1px solid rgba(148,163,184,.15);
font-size: 14px;
}

tbody tr:hover {
background: rgba(148,163,184,.08);
}

/* ===== FORM ELEMENTEK ===== */
select,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"] {
appearance: none;
padding: 10px 16px;
border-radius: 14px;
border: 1px solid rgba(148,163,184,.35);
background: rgba(15,23,42,.45);
color: #f8fafc;
font-size: 14px;
outline: none;
}

/* ===================================================== /
/ ===== LOGIN OLDAL – RÉGI (SZEBB) HANGULAT ===== /
/ ===================================================== */

body:has(.logo-box) {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding-top: 0;
background: radial-gradient(
circle at top,
#0ea5e9 0%,
#0b3a6f 45%,
#020617 80%
);
}

body:has(.logo-box) .card {
max-width: 380px;
width: 100%;
background: rgba(15,23,42,.70);
border: 1px solid rgba(148,163,184,.35);
box-shadow:
0 0 0 1px rgba(255,255,255,.04),
0 30px 90px rgba(14,165,233,.35);
backdrop-filter: blur(10px);
}

/* Logo sor */
body:has(.logo-box) .logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
}

/* Logo ikon */
.logo-box {
width: 34px;
height: 34px;
border-radius: 10px;
background: linear-gradient(135deg, #22c55e, #4ade80);
display: flex;
align-items: center;
justify-content: center;
font-weight: 900;
color: #042014;
}

/* Login gomb */
body:has(.logo-box) button {
width: 100%;
margin-top: 14px;
padding: 12px;
border-radius: 14px;
border: none;
background: linear-gradient(135deg, #22c55e, #4ade80);
color: #052e16;
font-weight: 700;
cursor: pointer;
}

body:has(.logo-box) button:hover {
filter: brightness(1.05);
}

/* ===================================================== /
/ ===== LOGIN FORM – RÉGI ELRENDEZÉS (LABEL FELÜL) ===== /
/ ===================================================== */

/* Labelek felül, egységes távolsággal */
body:has(.logo-box) label {
display: block;
font-size: 13px;
color: #9ca3af;
margin-bottom: 6px;
margin-top: 14px;
}

/* Input mezők: azonos, teljes szélesség */
body:has(.logo-box) input[type="text"],
body:has(.logo-box) input[type="email"],
body:has(.logo-box) input[type="password"] {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
border-radius: 12px;
font-size: 14px;
}

/* Első label ne legyen túl lent /
body:has(.logo-box) label:first-of-type {
margin-top: 0;
}
/ ===================================== /
/ ÚJ TÁRSASHÁZ – RÉGI (JÓ) STÍLUS        /
/ ===================================== */

.haz-add-card {
max-width: 900px;
margin: 40px auto;
padding: 32px 36px;
}

.haz-add-card h1 {
font-size: 28px;
margin-bottom: 6px;
}

.haz-add-card .muted {
margin-bottom: 24px;
}

/* LABEL FELÜL */
.haz-add-card label {
display: block;
font-size: 14px;
color: #cbd5f5;
margin-bottom: 6px;
}

/* INPUT TELJES SZÉLESSÉG */
.haz-add-card input[type="text"] {
width: 100%;
padding: 14px 18px;
font-size: 15px;
border-radius: 16px;
margin-bottom: 18px;
}

/* GOMB SOR */
.haz-add-card .form-actions {
display: flex;
gap: 14px;
margin-top: 10px;
}

/* ZÖLD MENTÉS */
.haz-add-card .btn-save {
background: linear-gradient(135deg, #22c55e, #16a34a);
color: #042014;
border: none;
padding: 12px 26px;
font-size: 15px;
font-weight: 700;
border-radius: 999px;
cursor: pointer;
}

/* SZÜRKE VISSZA */
.haz-add-card .btn-cancel {
background: rgba(148,163,184,.15);
color: #e5e7eb;
border: 1px solid rgba(148,163,184,.35);
padding: 12px 26px;
font-size: 15px;
border-radius: 999px;
text-decoration: none;
}

/* HOVER */
.haz-add-card .btn-save:hover {
filter: brightness(1.1);
}

.haz-add-card .btn-cancel:hover {
background: rgba(148,163,184,.25);
}
.card {
margin-bottom: 24px;
}
select {
background-color: #1e293b;
color: #e5e7eb;
}

select option {
background-color: #1e293b;
color: #e5e7eb;
}
/* ===================================== */
/* ALBETÉT – FORM IGAZÍTÁS (CSAK EZ)    */
/* ===================================== */

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

.form-row label {
    margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row select {
    width: 320px;
}
/* ===== DÁTUM MEZŐK BUBORÉK STÍLUS ===== */

input[type="date"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 12px 16px;
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="date"]:focus {
    border-color: #00c6ff;
    box-shadow: 0 0 0 2px rgba(0,198,255,0.2);
    outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
.tab-row {
    display:flex;
    gap:10px;
}

.tab {
    padding:8px 14px;
    border-radius:8px;
    background:#1f2a40;
    color:#fff;
    text-decoration:none;
}

.tab.active {
    background:#2f6df6;
}

.btn {
    padding:6px 12px;
    background:#2b3b55;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}

.btn-primary {
    background:#2f6df6;
}
/* ===== Előírás felső chip gombsor ===== */

.eloiras-nav {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.eloiras-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.2s ease;
}

.eloiras-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.eloiras-btn .icon {
    font-size: 18px;
}
/* ===== Aktív előírás gomb ===== */

.eloiras-btn.active {
    background: linear-gradient(135deg,#1f6bff,#00c6ff);
    border: none;
    box-shadow: 0 0 12px rgba(0,198,255,0.5);
}
/* Csoportos előírás – fő gomb kerekítés */

.btn.btn-primary {
    border-radius: 30px;
    padding: 12px 24px;
}
.ertesito-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ertesito-box {
    background: linear-gradient(145deg, #1f3b57, #244e73);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.ertesito-box h3 {
    margin-bottom: 18px;
    font-size: 18px;
    color: #ffffff;
}

.ertesito-box a {
    display: block;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.ertesito-box a:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(4px);
}
/* Naplófőkönyv hozzárendelés */

.naplo-container{
    max-width:1100px;
    margin:40px auto;
}

.naplo-title{
    font-size:26px;
    margin-bottom:20px;
    font-weight:600;
}

.naplo-table{
    width:100%;
    border-collapse:collapse;
    background:#1e293b;
    color:#fff;
    border-radius:10px;
    overflow:hidden;
}

.naplo-table th{
    background:#0f172a;
    padding:12px;
    text-align:left;
    font-weight:600;
}

.naplo-table td{
    padding:10px 12px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.naplo-table tr:hover{
    background:#334155;
}

.naplo-bevetel{
    color:#22c55e;
    font-weight:600;
}

.naplo-kiadas{
    color:#ef4444;
    font-weight:600;
}
.table td:nth-child(3){
    max-width:400px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.osszeg{
    text-align:right;
    font-weight:600;
}
.piros {
    border-left: 6px solid #e53935;
}

.zold {
    border-left: 6px solid #43a047;
}
.menu-piros {
    background: linear-gradient(180deg, #ff5a5a, #e60023);
    color: #fff !important;
    border: 1px solid #cc001a;
    box-shadow: 0 0 6px rgba(255,0,0,0.35);
}
.ts-control{
background:#1f2937;
border:1px solid #3b4a60;
border-radius:8px;
color:#fff;
padding:10px;
}

.ts-dropdown{
background:#1f2937;
border:1px solid #3b4a60;
color:#fff;
}

.ts-dropdown .active{
background:#2d3a4f;
}
.ts-control input{
    color:#ffffff !important;
}

.ts-control{
    background:#1f2937 !important;
    color:#ffffff !important;
}
/* NFK sorok tábla */

.nfk-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.nfk-table thead{
background:#1f2937;
}

.nfk-table th{
text-align:left;
padding:10px;
font-size:13px;
color:#9ca3af;
border-bottom:1px solid #374151;
}

.nfk-table td{
padding:10px;
border-bottom:1px solid #374151;
color:#e5e7eb;
font-size:14px;
}

.nfk-table tr:hover{
background:#111827;
}

.nfk-osszeg{
text-align:right;
font-weight:600;
}
.btn-vissza {
    display:inline-block;
    margin-bottom:10px;
    padding:8px 14px;
    background:#2d6cdf;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
}

.btn-vissza:hover {
    background:#1f4fb3;
}
.btn-export{
    background:#1f9d55;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}

.btn-export:hover{
    background:#157347;
}
.szamla-link {
    color: #ffffff;
    text-decoration: none;
}

.szamla-link:visited {
    color: #ffffff;
}

.szamla-link:hover {
    text-decoration: underline;
}