* {
    box-sizing: border-box;
}

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

body {
    background: #0b1016;
    color: #f1f5f9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

/* FEJLÉC */
.top-header {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 26px;
    background: #0d131b;
    border-bottom: 1px solid #202a36;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-left {
    flex: 0 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
}

.brand-logo {
    width: 52px;
    height: 44px;
    min-width: 52px;
    min-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

/* FŐMENÜ */
.main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c6cfda;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-menu a:hover {
    background: #172130;
    border-color: #243244;
    color: #ffffff;
}

.main-menu a.active {
    background: #1d2c40;
    border-color: #2d4058;
    color: #ffffff;
}

/* JOBB OLDAL */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    flex: 0 0 auto;
}

.user-company-block {
    text-align: right;
    line-height: 1.25;
    white-space: nowrap;
}

.user-name {
    color: #aeb9c7;
    font-size: 14px;
}

.company-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 3px;
}

.company-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.company-change {
    color: #7fb0ff;
    font-size: 12px;
    text-decoration: none;
}

.company-change:hover {
    text-decoration: underline;
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #2a394c;
    border-radius: 9px;
    background: #182332;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logout-button:hover {
    background: #223249;
}

/* OLDALTARTALOM */
.page-content {
    width: 100%;
    padding: 28px 30px;
}

.content-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.page-title {
    margin: 0 0 20px 0;
    font-size: 30px;
    font-weight: 700;
}

.content-card {
    padding: 24px;
    background: #101720;
    border: 1px solid #202b39;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ŰRLAPOK */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #d8e0e9;
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #2a3748;
    border-radius: 8px;
    background: #0c121a;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4d8df7;
    box-shadow: 0 0 0 3px rgba(77, 141, 247, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* GOMBOK */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #2b5fae;
    border-radius: 8px;
    background: #3478db;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #2868c2;
}

.btn-full {
    width: 100%;
}

/* ÜZENETEK */
.message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.message-error {
    background: rgba(190, 45, 45, 0.15);
    border: 1px solid rgba(220, 70, 70, 0.5);
    color: #ffb6b6;
}

.message-success {
    background: rgba(37, 150, 90, 0.15);
    border: 1px solid rgba(50, 180, 105, 0.45);
    color: #aff0c9;
}

/* LOGIN / CÉGVÁLASZTÁS */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-box {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    background: #101720;
    border: 1px solid #202b39;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo {
    width: 120px;
    max-height: 70px;
    object-fit: contain;
}

.login-title {
    margin: 0 0 26px 0;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
}

.login-secondary-action {
    margin-top: 18px;
    text-align: center;
}

.login-secondary-action a {
    color: #91baff;
    text-decoration: none;
    font-size: 14px;
}

.login-secondary-action a:hover {
    text-decoration: underline;
}

/* TÁBLÁZAT */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #101720;
}



.data-table th,
.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #202b39;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    background: #151f2b;
    color: #d9e1eb;
    font-size: 13px;
}

.data-table td {
    color: #c8d1dc;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #141e2a;
	cursor: pointer ;
}

.EWS-adatok
{
	background: linear-gradient(135deg, #1e3a5f 0%, #162b47 50%, #0f2138 100%);
    color: #eaf4ff;
    padding: 3px ;
	
}

.form-field select.EWS-adatok option {
    background: #193b61;
    color: #ffffff;
}

@media (max-width: 1000px) {
    .top-header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 20px;
    }

    .header-left {
        order: 1;
    }

    .header-right {
        order: 2;
        margin-left: auto;
    }

    .main-menu {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .main-menu a {
        flex-shrink: 0;
    }

    .page-content {
        padding: 22px;
    }
}

@media (max-width: 650px) {
    .top-header {
        padding: 12px 14px;
    }

    .brand-name {
        font-size: 18px;
    }

    .user-company-block {
        display: none;
    }

    .logout-button {
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .main-menu {
        gap: 5px;
    }

    .main-menu a {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-content {
        padding: 16px;
    }

    .content-card {
        padding: 18px;
    }

    .page-title {
        font-size: 25px;
    }

    .login-page {
        padding: 18px;
    }

    .login-box {
        padding: 24px 20px;
    }
}


/* =========================================================
   DESKTOP - LABEL ÉS INPUT EGY SORBAN
   Új felvitel + szerkesztés
   ========================================================= */

@media (min-width: 801px) {

    .claim-form .form-field {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: center;
        column-gap: 16px;
    }

    .claim-form .form-field label {
        margin: 0;
        line-height: 1.25;
    }

    .claim-form .form-field input,
    .claim-form .form-field select,
    .claim-form .form-field textarea {
        min-width: 0;
    }

    .claim-form .form-field textarea {
        align-self: start;
    }

    .claim-edit-card .note-section .form-field {
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: start;
        column-gap: 16px;
    }

    .claim-edit-card .note-section textarea {
        width: 100%;
        min-width: 0;
        min-height: 110px;
        box-sizing: border-box;
    }
}