/* ===== auth.php ===== */

/* ===== config.php ===== */

/* ===== cost_delete.php ===== */

/* ===== cost_edit.php ===== */

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

/* A fő alkalmazásoldalak közös szélességét az alábbi központi szabály adja. */

.card {
    background: #1d1d1d;
    padding: 25px;
    border-radius: 12px;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px 0 14px;
    background: #292929;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}

textarea {
    min-height: 100px;
}

button {
    padding: 11px 18px;
    background: #3a7afe;
    color: white;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

.error {
    background: #5b2020;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}


/* ===== costs.php ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

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

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   OLDALFEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
    text-align: left;
}

.page-title,
.page-title h1,
.page-title .subtitle {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
    white-space: nowrap;
}

.header-button:hover {
    background: #353535;
    text-decoration: none;
}


/* =========================================================
   TARTALOM
   ========================================================= */

.card {
    background: #1d1d1d;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px 0 14px;
    background: #292929;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}

textarea {
    min-height: 80px;
}

button {
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #3a7afe;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #4c87ff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    color: #aaa;
}

.success {
    background: #194d2e;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.error {
    background: #5b2020;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.table-wrap {
    overflow-x: auto;
}

.money {
    white-space: nowrap;
    font-weight: bold;
}

.action-links {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.delete-link {
    color: #ff7777;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: 25px;
    }
}


/* ===== EGYSÉGES FŐ ALKALMAZÁSOLDAL-SZÉLESSÉG ===== */

.wide-main-page {
    display: block;
    align-items: initial;
    justify-content: initial;
}

.wide-main-page .container {
    max-width: 1400px;
}


/* ===== fault_status.php ===== */

/* ===== faults.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =========================================================
   FEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
}

.header-button:hover {
    background: #353535;
}


/* =========================================================
   KÁRTYÁK
   ========================================================= */

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.card h2 {
    margin-top: 0;
}


/* =========================================================
   ŰRLAP
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

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

button {
    margin-top: 18px;
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #318e4b;
}


/* =========================================================
   ÜZENETEK
   ========================================================= */

.message {
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
}

.success {
    background: #173f23;
    border: 1px solid #2f7644;
    color: #bce6c7;
}


/* =========================================================
   TÁBLÁZAT
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    vertical-align: top;
}

th {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.description {
    min-width: 200px;
}

.note {
    min-width: 160px;
}


/* =========================================================
   PRIORITÁS ÉS ÁLLAPOT
   ========================================================= */

.priority,
.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.priority-urgent,
.status-open {
    background: #692626;
    color: #ffc1c1;
}

.priority-medium,
.status-repairing {
    background: #604817;
    color: #ffe3a3;
}

.priority-low,
.status-done {
    background: #1e6335;
    color: #d3ffe0;
}


/* =========================================================
   ADMIN ÁLLAPOT GOMBOK
   ========================================================= */

.status-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 190px;
}

.status-button {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #444;
    background: #292929;
    color: #ddd;
}

.status-button:hover {
    background: #3a3a3a;
}

.status-button.active {
    border-color: #777;
    background: #444;
    color: white;
}


/* =========================================================
   VERZIÓ
   ========================================================= */

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 25px;
    }
}


/* ===== fuel.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.card h2 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input,
select {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

button {
    margin-top: 18px;
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.message {
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
}

.success {
    background: #173f23;
    border: 1px solid #2f7644;
    color: #bce6c7;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.actions {
    white-space: nowrap;
}

.actions a {
    margin-right: 8px;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-button {
        display: block;
        text-align: center;
    }
}


/* ===== fuel_delete.php ===== */

/* ===== fuel_edit.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

button {
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-button {
    display: inline-block;
    padding: 11px 18px;
    background: #3a3a3a;
    color: white;
    border: 1px solid #555;
    border-radius: 7px;
    font-weight: bold;
}

.message {
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
}

.info-box {
    margin-bottom: 20px;
    padding: 13px;
    background: #202830;
    border: 1px solid #3e4852;
    border-radius: 8px;
    color: #bbb;
    line-height: 1.5;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-button {
        display: block;
        text-align: center;
    }
}


/* ===== index.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   FŐOLDAL FEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
    white-space: nowrap;
}

.header-button:hover {
    background: #353535;
}


/* =========================================================
   KÁRTYÁK
   ========================================================= */

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.section-title {
    margin-top: 0;
    margin-bottom: 12px;
}


/* =========================================================
   NYILVÁNTARTÁS
   ========================================================= */

.drag-info {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(230px, 1fr)
    );
    gap: 15px;
}

.menu-card {
    position: relative;
    display: block;
    background: #252525;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 20px;
    min-height: 115px;
    text-decoration: none;
}

.menu-card:hover,
.menu-card:focus,
.menu-card:active {
    background: #2b2b2b;
    text-decoration: none;
}

.menu-card.dragging {
    opacity: 0.35;
}

.menu-card.drag-target {
    border: 2px dashed #8ab4ff;
    background: #2b3440;
}


/* =========================================================
   DRAG FOGANTYÚ
   ========================================================= */

.drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #333;
    border: 1px solid #444;
    border-radius: 7px;

    color: #aaa;
    font-size: 18px;

    cursor: grab;
    user-select: none;
}

.drag-handle:hover {
    background: #404040;
    color: #fff;
}

.drag-handle:active {
    cursor: grabbing;
}

.menu-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    padding-right: 35px;
}

.menu-description {
    color: #999;
    font-size: 13px;
}


/* =========================================================
   HIBA SZÁMLÁLÓ
   ========================================================= */

.fault-count {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.fault-count.has-faults {
    background: #692626;
    color: #ffc1c1;
}

.fault-count.no-faults {
    background: #1e6335;
    color: #d3ffe0;
}


/* =========================================================
   ÁTTEKINTÉS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 15px;
}

.stat {
    background: #252525;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 17px;
}

.stat-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
}

.green {
    color: #9fd8af;
}

.blue {
    color: #9fc2ff;
}

.yellow {
    color: #f0cf83;
}


/* =========================================================
   HATÁRIDŐK
   ========================================================= */

.deadline-card {
    border-radius: 10px;
    padding: 15px;
    min-height: 95px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.deadline-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(210px, 320px)
    );
    gap: 15px;
    margin-bottom: 28px;
}

.deadline-danger {
    background: #391b1b;
    border: 1px solid #783232;
}

.deadline-ok {
    background: #173f23;
    border: 1px solid #2f7644;
}

.deadline-title {
    margin-top: 0;
}

.deadline-left {
    font-weight: bold;
}

.deadline-date {
    color: #ccc;
}

.deadline-days {
    color: #ffb0b0;
    font-weight: bold;
    margin-top: 10px;
}

.ok-text {
    color: #bce6c7;
}


/* =========================================================
   VERZIÓ
   ========================================================= */

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        width: 100%;
        text-align: center;
    }

    .deadline-item {
        display: block;
    }

    .deadline-days {
        margin-top: 5px;
    }

    h1 {
        font-size: 25px;
    }
}


/* ===== login.php ===== */

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    min-height: 100vh;
}

.login-box {
    background: #1d1d1d;
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 0 20px rgba(0,0,0,.4);
}

.login-section h2 {
    margin: 0 0 8px;
}

.login-hint {
    color: #bbb;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.login-section select,
.login-section input,
.login-section button {
    width: 100%;
    box-sizing: border-box;
}

.login-divider {
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.85rem;
    margin: 22px 0 16px;
    padding-top: 16px;
    text-align: center;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 24px;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #292929;
    color: white;
}

button {
    width: auto;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #3a7afe;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.error {
    background: #5b2020;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}


/* ===== logout.php ===== */

/* ===== monthly_closings.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   OLDALFEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
    white-space: nowrap;
}

.header-button:hover {
    background: #353535;
    text-decoration: none;
}


/* =========================================================
   KÁRTYÁK
   ========================================================= */

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}


/* =========================================================
   ŰRLAP
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}

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

button {
    margin-top: 18px;
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background: #318e4b;
}


/* =========================================================
   ÜZENETEK
   ========================================================= */

.message {
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
}

.success {
    background: #173f23;
    border: 1px solid #2f7644;
    color: #bce6c7;
}


/* =========================================================
   TÁBLÁZAT
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #999;
    font-size: 13px;
}

.km {
    text-align: right;
}

.monthly-km {
    color: #9fd8af;
    font-weight: bold;
}

.note {
    white-space: normal;
    min-width: 150px;
}

.full-tank {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #1e6335;
    color: #d3ffe0;
    font-size: 12px;
    font-weight: bold;
}

.baseline {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #604817;
    color: #ffe3a3;
    font-size: 12px;
    font-weight: bold;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: 25px;
    }
}


/* ===== monthly_summary.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.card h2 {
    margin-top: 0;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-field label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

select {
    padding: 10px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

button {
    padding: 10px 16px;
    background: #2f6da1;
    color: white;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #252525;
    border: 1px solid #3b3b3b;
    font-weight: bold;
}

.info-box {
    padding: 15px;
    border: 1px solid #3e4852;
    background: #202830;
    border-radius: 9px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 15px;
}

.stat {
    background: #252525;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 17px;
}

.stat-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 21px;
    font-weight: bold;
}

.green {
    color: #a9dfb7;
}

.blue {
    color: #9fc2ff;
}

.yellow {
    color: #f1cd7a;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.vehicle {
    font-weight: bold;
}

.small {
    color: #888;
    font-size: 12px;
}

.good {
    color: #a9dfb7;
}

.warning {
    color: #f1cd7a;
}

.na {
    color: #666;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-button {
        display: block;
        text-align: center;
    }
}


/* ===== trip_delete.php ===== */

/* ===== trip_edit.php ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

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

button {
    margin-top: 20px;
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background: #318e4b;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.info {
    background: #18202a;
    border: 1px solid #34495e;
    color: #b8c8d8;
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* ===== trips.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   OLDALFEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
    white-space: nowrap;
}

.header-button:hover {
    background: #353535;
    text-decoration: none;
}


/* =========================================================
   KÁRTYÁK / ŰRLAP
   ========================================================= */

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

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

button {
    margin-top: 18px;
    padding: 11px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background: #318e4b;
}

.message {
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.error {
    background: #542020;
    border: 1px solid #8e3636;
    color: #ffbaba;
}

.success {
    background: #173f23;
    border: 1px solid #2f7644;
    color: #bce6c7;
}


/* =========================================================
   TÁBLÁZAT
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #999;
    font-size: 13px;
}

.km {
    text-align: right;
}

.weekly-km {
    color: #9fd8af;
    font-weight: bold;
}

.action-links {
    display: flex;
    gap: 12px;
}

.delete-link {
    color: #ff8d8d;
}

.note {
    white-space: normal;
    min-width: 150px;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: 25px;
    }
}


/* ===== vehicle.php ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    margin-bottom: 5px;
}

.subtitle {
    color: #999;
    margin-bottom: 25px;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.info-item {
    background: #242424;
    padding: 15px;
    border-radius: 8px;
}

.info-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 17px;
    font-weight: bold;
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat {
    background: #242424;
    padding: 18px;
    border-radius: 10px;
}

.stat-title {
    color: #999;
    font-size: 13px;
    margin-bottom: 7px;
}

.stat-value {
    font-size: 21px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    color: #aaa;
}

.table-wrap {
    overflow-x: auto;
}

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #3a7afe;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    background: #4b86ff;
}

.btn-danger {
    background: #8b2e2e;
}

.section-title {
    margin-top: 0;
}

.empty {
    color: #777;
    font-style: italic;
}

.version {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 30px;
}

@media (max-width: 600px) {

    body {
        padding: 12px;
    }

    h1 {
        font-size: 25px;
    }

    .stat-value {
        font-size: 18px;
    }
}


/* ===== vehicle_delete.php ===== */

/* ===== vehicle_edit.php ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

h1 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    margin: 6px 0 16px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

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

button {
    padding: 12px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #318e4b;
}

.error {
    background: #5b2020;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.section h2 {
    font-size: 18px;
    margin-top: 0;
}

.info {
    color: #888;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 16px;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cancel {
    display: inline-block;
    padding: 12px 18px;
    background: #333;
    color: #ddd;
    border-radius: 7px;
}

.cancel:hover {
    text-decoration: none;
    background: #444;
}

.version {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 25px;
}


/* ===== vehicle_new.php ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

h1 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 5px;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    margin: 6px 0 16px;
    background: #292929;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
}

textarea {
    min-height: 100px;
}

button {
    padding: 12px 18px;
    background: #267a3e;
    color: white;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
}

.error {
    background: #5b2020;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.section h2 {
    font-size: 18px;
    margin-top: 0;
}

.info {
    color: #888;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 16px;
}

.version {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 25px;
}


/* ===== vehicles.php ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   OLDALFEJLÉC
   ========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.page-title h1 {
    margin: 0 0 6px 0;
}

.subtitle {
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: #292929;
    border: 1px solid #444;
    color: #eee;
    font-weight: bold;
    white-space: nowrap;
}

.header-button:hover {
    background: #353535;
    text-decoration: none;
}

.new-button {
    background: #267a3e;
    border-color: #267a3e;
    color: white;
}

.new-button:hover {
    background: #318e4b;
}


/* =========================================================
   TÁBLÁZAT
   ========================================================= */

.card {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #999;
    font-size: 13px;
}

.vehicle-link {
    font-weight: bold;
}

.odometer {
    text-align: right;
}

.action-links {
    display: flex;
    gap: 12px;
}

.delete-link {
    color: #ff8d8d;
}

.empty {
    color: #888;
    padding: 20px 0;
}

.version {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 12px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-button {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: 25px;
    }
}


/* =========================================================
   FŐOLDALI MENÜKÁRTYÁK – VÉGSŐ FELÜLÍRÁS
   =========================================================
   Több korábbi általános a:hover szabály miatt a főoldali
   kártyák szövege hoverkor aláhúzottá vált.
   Ez a célzott szabály csak a főoldali menükártyákat érinti.
   ========================================================= */

a.menu-card,
a.menu-card:hover,
a.menu-card:focus,
a.menu-card:active,
.menu-card,
.menu-card:hover,
.menu-card:focus,
.menu-card:active {
    text-decoration: none;
}
