/* HĂˇttĂ©rszĂ­n az egĂ©sz oldalra */
body {
    background-color: #F5F0FF; /* HalvĂˇny lilĂˇs hĂˇttĂ©r */
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Karuszel stat-kĂˇrtyĂˇkhoz */
.stats-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 40px auto;
    overflow: visible;
    display: flex;
    align-items: center;
}
.stats-carousel-track {
    padding-bottom: 24px;
    overflow: hidden;
    width: 100%;
    max-width: calc(4.5 * 340px + 4 * 24px);
    margin: 0 auto;
    flex: 1;
}
.stats-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}
.stat-card {
    min-width: 340px;
    max-width: 340px;
    flex: 0 0 340px;
    margin: 0;
    box-sizing: border-box;
}
.carousel-arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8E2DE2;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-arrow.left {
    margin-right: 12px;
}
.carousel-arrow.right {
    margin-left: 12px;
}
@media (max-width: 1600px) {
    .stat-card {
        min-width: 300px;
        max-width: 300px;
        flex-basis: 300px;
    }
}
@media (max-width: 1200px) {
    .stat-card {
        min-width: 260px;
        max-width: 260px;
        flex-basis: 260px;
    }
}
@media (max-width: 900px) {
    .stats-carousel-container {
        padding: 0;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
    }
    .stats-carousel-track {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 10px 0 20px 0;
        /* Scrollbar elrejtése */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .stats-carousel-track::-webkit-scrollbar {
        display: none;
    }
    .stats-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        padding: 0 calc((100vw - 85vw) / 2) !important;
        width: max-content !important;
        transform: none !important;
    }
    .stat-card,
    .stat-card.super-sticky-note {
        min-width: 85vw !important;
        max-width: 85vw !important;
        width: 85vw !important;
        flex: 0 0 85vw !important;
        scroll-snap-align: center;
        box-sizing: border-box !important;
    }
    .carousel-arrow {
        display: none !important;
    }
    /* Carousel indikátor pontok mobilon */
    .carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .carousel-dot.active {
        background: #8E2DE2;
        transform: scale(1.2);
    }
}

/* Carousel dots - alapból rejtve (csak mobilon látszik) */
.carousel-dots {
    display: none;
}
/* Main container */
.main-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
}

/* Header mĂłdosĂ­tĂˇsa */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: transparent !important;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 20px auto 30px auto;
    max-width: 1500px;
    width: calc(100% - 40px);
}

.header-left h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    white-space: nowrap;
}

/* Dashboard fejlĂ©c (halvĂˇny lila gradiens) */
.dashboard-header {
    background: linear-gradient(135deg, #8E2DE2, #DDA0DD);
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.brand h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Karuszel stat-kĂˇrtyĂˇkhoz - fĂ©lig lĂˇthatĂł utolsĂł kĂˇrtya */
.stats-container::after {
    content: '';
    display: block;
    min-width: 70px;
    max-width: 70px;
    flex: 0 0 70px;
    height: 1px;
}

/* uj_panzios.php specifikus helper-btn stĂ­lus */
.helper-btn.small {
    padding: 5px 10px;
    font-size: 0.9rem;
    width: auto;
}

/* Input mezĹ‘ ĂˇllapotjelzĂ©s */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-status {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    margin-left: 5px;
}

.input-status.status-filled i.fa-check {
    color: #28a745; /* ZĂ¶ld */
}

.input-status.status-error i.fa-exclamation-circle {
    color: #dc3545; /* Piros */
}

/* fooldal.php specifikus helper-btn stĂ­lusok */
.calendar-filter {
    background: #f3e6ff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-filter .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.calendar-filter .form-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.calendar-filter .form-control {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.calendar-filter .form-control:focus {
    border-color: #8E2DE2;
    box-shadow: 0 0 5px rgba(142, 45, 226, 0.3);
}

/* Kiemelt naptĂˇr esemĂ©ny */
.fc-event-dog-highlight {
    background-color: #DDA0DD !important;
    border-color: #8E2DE2 !important;
    color: #2c3e50 !important;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Rejtett esemĂ©ny (szĹ±rĂ©s esetĂ©n) */
.fc-event-dog-hidden {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

#fullAmountButton {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    transition: background-color 0.3s ease;
}

#fullAmountButton:hover {
    background-color: #218838;
}

#checkAll {
    background-color: #6c757d;
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    display: block;
}

#checkAll:hover {
    background-color: #5a6268;
}

/* Form szekciĂłk stĂ­lusa */
.form-section {
    background: #f3e6ff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: #8E2DE2;
    font-size: 0.8rem;
}

/* Filter form alapĂ©rtelmezett Ăˇllapot */
#filterForm {
    margin-top: 15px;
}

/* Ă–sszecsukhatĂł szekciĂł stĂ­lusok */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.collapsible-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible-header h2 i {
    color: #8E2DE2;
    font-size: 0.8rem;
}

.collapsible-header .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #8E2DE2;
}

.collapsible-header.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.collapsible-content.collapsed {
    max-height: 0;
}

/* KeresĂ©s tĂ¶rlĂ©se gomb stĂ­lusa */
#clearSearch {
    display: none;
    margin-left: 10px;
}

/* Panel stĂ­lusok - MĂłdosĂ­tott/Ăšj */
.panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 20px 40px 20px;
    overflow: hidden;
}

.panel-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i {
    color: #8E2DE2;
}

.panel-header .toggle-icon {
    transition: transform 0.3s ease;
}

.panel-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.panel-body {
    padding: 20px;
    transition: max-height 0.3s ease-out;
    max-height: 1000px;
    overflow: hidden;
}

.panel-body.collapsed {
    max-height: 0;
    padding: 0 20px;
}

/* Form elemek stĂ­lusai - MĂłdosĂ­tott */
.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    width: 100%;
}

.form-label i {
    color: #8E2DE2;
    width: 16px;
}

.form-control {
    width: 400px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #8E2DE2;
    outline: none;
    box-shadow: 0 0 5px rgba(142, 45, 226, 0.3);
}

/* Ăšj - Input mĂłdosĂ­tĂˇs jelzĂ©se */
.form-control:focus,
.form-control.modified {
    border-color: #DDA0DD;
    box-shadow: 0 0 0 0.25rem rgba(221, 160, 221, 0.25);
    background-color: #f3e6ff;
}

/* fooldal.php specifikus form-control stĂ­lusok */
#releaseComment {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

#receivedAmount {
    width: calc(100% - 120px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    margin-right: 10px;
}

/* Statisztika kĂˇrtyĂˇk */
.stats-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex: 0 0 360px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    min-height: 240px !important;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card i {
    font-size: 1.5rem;
    color: #8E2DE2;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Stat header: ikon Ă©s cĂ­m egy sorban */
.stat-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-header .stat-label {
    display: inline;
    margin-bottom: 0;
}

/* Mai teendĹ‘k Ă©s Holnapi teendĹ‘k betĹ±mĂ©ret csĂ¶kkentĂ©s */
.stat-card:nth-child(3) .stat-number,
.stat-card:nth-child(4) .stat-number {
    font-size: 0.85rem !important;
}

.stat-card .stat-number {
    font-size: 0.7rem;
    line-height: 1.3;
    max-height: 120px;
    overflow-y: auto;
    padding: 5px;
    width: 100%;
}

/* Nagyobb szĂ¶veg az elsĹ‘ kĂ©t kĂˇrtyĂˇn */
.stat-card:nth-child(1) .stat-number,
.stat-card:nth-child(2) .stat-number {
    font-size: 1.9rem; /* Nagyobb szĂ¶veg az informĂˇciĂłkhoz */
}

/* Balra igazĂ­tĂˇs a harmadik Ă©s negyedik kĂˇrtyĂˇn */
.stat-card:nth-child(3) .stat-number,
.stat-card:nth-child(4) .stat-number {
    text-align: left;
}

.stat-card .stat-number strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-decoration: underline; /* Ă‰rkezĂ©sek: Ă©s TĂˇvozĂˇsok: alĂˇhĂşzĂˇs */
    display: block; /* BiztosĂ­tjuk, hogy kĂĽlĂ¶n sorban legyen */
}

/* Keresztbe vont vonal a TĂˇvozĂˇsok: elĹ‘tt */
.stat-card:nth-child(3) .stat-number strong:nth-of-type(2)::before,
.stat-card:nth-child(4) .stat-number strong:nth-of-type(2)::before {
    content: '';
    display: block;
    width: 150px; /* Vonal szĂ©lessĂ©ge */
    height: 2px; /* Vonal vastagsĂˇga */
    background: #8E2DE2; /* Lila szĂ­n, Ă¶sszhangban a dizĂˇjnnal */
    transform: rotate(0deg); /* ĂtlĂłs vonal */
    margin: 5px 0; /* TĂ©rkĂ¶z a szĂ¶vegek kĂ¶zĂ¶tt */
}

/* TĂˇblĂˇzat kontĂ©ner Ă©s tĂˇblĂˇzat stĂ­lusok (modernizĂˇlt) */
.table-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    width: 100%;
    max-width: 95%;
    border: none;
    overflow: hidden;
}

.dashboard-table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    background: transparent;
}

.dashboard-table thead th {
    border: none;
    background: #8E2DE2;
    color: white;
}

.dashboard-table tbody tr {
    border: none;
    background: transparent;
}

.dashboard-table tbody td {
    border: none;
    background: transparent;
}

.dashboard-table thead th {
    background: #8E2DE2;
    color: white;
    padding: 10px; /* CsĂ¶kkentett padding */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem; /* Kisebb betĹ±mĂ©ret */
}

.dashboard-table thead th i {
    display: block; /* Ikon Ăşj sorba */
    margin-bottom: 5px; /* TĂ©r az ikon Ă©s szĂ¶veg kĂ¶zĂ¶tt */
    font-size: 1.3rem; /* Nagyobb ikon mĂ©ret */
}

.dashboard-table thead th span {
    display: block; /* SzĂ¶veg Ăşj sorba */
}

.dashboard-table thead th:first-child {
    border-top-left-radius: 10px;
}

.dashboard-table thead th:last-child {
    border-top-right-radius: 10px;
}

.dashboard-table tbody tr {
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 36px; /* CsĂ¶kkentett magassĂˇg a soroknak */
}

.dashboard-table tbody tr:nth-child(even) {
    background-color: #e9ecef !important;
}

.dashboard-table tbody tr:hover {
    background-color: #f3e6ff !important;
}

.dashboard-table tbody td {
    padding: 8px;
    color: #2c3e50;
    border: none;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    height: 36px;
}

.dashboard-table tbody td {
    border: none;
    background: transparent;
    height: 120px; /* Magasabb sorok a profil kĂ©pek miatt */
    padding: 15px;
}

/* Havi statisztikĂˇk tĂˇblĂˇzatĂˇnak stĂ­lusa */
.monthly-stats-table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    background: transparent;
}

.monthly-stats-table thead th {
    border: none;
    background: #8E2DE2;
    color: white;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
}

.monthly-stats-table thead th i {
    display: block;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.monthly-stats-table thead th span {
    display: block;
}

.monthly-stats-table thead th:first-child {
    border-top-left-radius: 10px;
}

.monthly-stats-table thead th:last-child {
    border-top-right-radius: 10px;
}

.monthly-stats-table tbody tr {
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 48px;
}

.monthly-stats-table tbody tr:nth-child(even) {
    background-color: #e9ecef !important;
}

.monthly-stats-table tbody tr:hover {
    background-color: #f3e6ff !important;
}

.monthly-stats-table tbody td {
    padding: 4px 8px;
    color: #2c3e50;
    border: none;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    height: 32px;
    font-size: 0.85rem;
}

.monthly-stats-table thead th {
    padding: 6px;
    font-size: 0.85rem;
    border-bottom: 1px solid #8E2DE2;
}

/* CsoportosĂ­tĂˇs a havi statisztikĂˇk tĂˇblĂˇzatĂˇban */
.monthly-stats-table tbody tr td {
    border: none;
}

/* FĂĽggĹ‘leges vonalak az oszlopok kĂ¶zĂ¶tt */
.monthly-stats-table tbody tr td:nth-child(2),
.monthly-stats-table tbody tr td:nth-child(4),
.monthly-stats-table tbody tr td:nth-child(6),
.monthly-stats-table tbody tr td:nth-child(8) {
    border-right: 2px solid #8E2DE2;
}

/* EltĂˇvolĂ­tjuk a szegĂ©lyezĂ©st az elsĹ‘ Ă©s utolsĂł sorokbĂłl */
.monthly-stats-table tbody tr:first-child td,
.monthly-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.monthly-stats-table tbody tr td.no-wrap {
    white-space: nowrap;
}

/* AlapĂ©rtelmezett tĂˇblĂˇzat stĂ­lus a statisztika oldalakhoz */
.dashboard-table tbody td {
    border: none;
    background: transparent;
    padding: 8px;
    vertical-align: middle;
    height: auto;
    min-height: 40px; /* AlapĂ©rtelmezett minimĂˇlis magassĂˇg */
}

/* FĹ‘oldali tĂˇblĂˇzat speciĂˇlis stĂ­lusa a profilkĂ©pekhez */
.home-page .dashboard-table tbody td {
    height: auto;
    min-height: 120px; /* Magasabb sorok a fĹ‘oldalon a profilkĂ©pek miatt */
    padding: 15px 8px;
    vertical-align: middle;
}

/* ProfilkĂ©p stĂ­lus a fĹ‘oldalon */
.home-page .dashboard-table .profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* fooldal.php specifikus dashboard-table stĂ­lusok */
.search-result {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 22px); /* Illeszkedik az input szĂ©lessĂ©gĂ©hez */
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-result div {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result div:hover {
    background-color: #f0f0f0;
}

.dashboard-table .details-row {
    display: none;
    background-color: #fafafa;
}

.dashboard-table .details-row.active {
    display: table-row;
}

.main-row {
    cursor: pointer;
}

.dashboard-table .main-row.today {
    background-color: #dff0d8; /* HalvĂˇny zĂ¶ld */
}

.dashboard-table .main-row.three-days {
    background-color: #fcf8e3; /* HalvĂˇny sĂˇrga */
}

/* MagyarĂˇzat kockĂˇk (legend) */
.legend {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.legend .today {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend .today::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #dff0d8; /* HalvĂˇny zĂ¶ld */
    border: 1px solid #ccc;
    border-radius: 2px;
}

.legend .three-days {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend .three-days::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #fcf8e3; /* HalvĂˇny sĂˇrga */
    border: 1px solid #ccc;
    border-radius: 2px;
}

/* ElsĹ‘ oszlop (Kutya neve) fĂ©lkĂ¶vĂ©r */
.dashboard-table tbody td:first-child {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
}

.dashboard-table .profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    display: block;
    flex-shrink: 0;
}

/* NĂ©v Ă©s fajta blokk igazĂ­tĂˇsa */
.dashboard-table .dog-name-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Ha kell, adj hozzĂˇ padding-left-et, de csak ha a kĂ©p miatt szĂĽksĂ©ges */
}

/* MĹ±veleti gombok egymĂˇs mellett */
.dashboard-table tbody td .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dashboard-table tbody td .helper-btn {
    width: auto;
    padding: 8px 12px;
}

/* KeresĂ©s Ă©s mĹ±veletek gombok */
.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.add-button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-button i {
    font-size: 16px;
}

.add-button.blue {
    background-color: #8E2DE2;
}

.add-button.blue:hover {
    background-color: #6B1AB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.add-button.red {
    background-color: #ef4444;
}

.add-button.red:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* SĂˇrga gomb stĂ­lus (most halvĂˇny lila) */
.add-button.yellow {
    background-color: #DDA0DD;
    color: #333;
}

.add-button.yellow:hover {
    background-color: #D8BFD8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* SzĂĽrke gomb */
.add-button.grey {
    background-color: #6c757d;
}

.add-button.grey:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* uj_panzios.php specifikus add-button stĂ­lus */
.add-button.large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* fooldal.php specifikus gomb stĂ­lusok */
.details-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1em;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 204, 51, 0.15);
    border: 2px solid #ffb347;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.details-btn:hover, .details-btn:focus {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 204, 51, 0.25);
    outline: none;
    border-color: #ffcc33;
}

.details-btn-blue {
    background-color: #3498db !important;
    color: #fff !important;
    border: 2px solid #3498db !important;
    border-radius: 6px !important;
    padding: 12px 22px !important;
}
.details-btn-blue:hover, .details-btn-blue:focus {
    background-color: #217dbb !important;
    color: #fff !important;
    border-color: #217dbb !important;
}
.details-btn-purple {
    background-color: #8E2DE2 !important;
    color: #fff !important;
    border: 2px solid #8E2DE2 !important;
    border-radius: 6px !important;
    padding: 12px 22px !important;
}
.details-btn-purple:hover, .details-btn-purple:focus {
    background-color: #6B1AB8 !important;
    color: #fff !important;
    border-color: #6B1AB8 !important;
}

/* KĂ¶zĂ©pre igazĂ­tott gombkontĂ©ner a rĂ©szletes adatoknĂˇl */
.details-actions-centered {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0 8px 0;
    flex-wrap: wrap;
}

/* EllĂˇtĂˇsi adatlap gomb - vagĂˇny, szĂ­nes dizĂˇjn */
.ellatasi-adatlap-btn-vagany {
    background: linear-gradient(90deg, #8E2DE2 0%, #FFB347 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(142, 45, 226, 0.15), 0 2px 8px rgba(255,179,71,0.12);
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none;
}
.ellatasi-adatlap-btn-vagany:hover, .ellatasi-adatlap-btn-vagany:focus {
    background: linear-gradient(90deg, #FFB347 0%, #8E2DE2 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(142, 45, 226, 0.18), 0 4px 16px rgba(255,179,71,0.18);
}

/* FogadĂˇsi Ă©s kiadĂˇsi nyilatkozat gomb - fordĂ­tott szĂ­nekkel */
.fogadas-nyilatkozat-btn {
    background: linear-gradient(90deg, #FFB347 0%, #8E2DE2 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(255, 179, 71, 0.15), 0 2px 8px rgba(142, 45, 226, 0.12);
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none;
    margin-left: 10px;
}

.fogadas-nyilatkozat-btn:hover, .fogadas-nyilatkozat-btn:focus {
    background: linear-gradient(90deg, #8E2DE2 0%, #FFB347 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(255, 179, 71, 0.18), 0 4px 16px rgba(142, 45, 226, 0.18);
}

/* ModĂˇlis ablak stĂ­lusa */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.modal-content p {
    margin: 0 0 20px;
    font-size: 1.1em;
    color: #333;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-buttons .confirm-btn {
    background-color: #e74c3c;
    color: white;
}

.modal-buttons .confirm-btn:hover {
    background-color: #c0392b;
}

.modal-buttons .cancel-btn {
    background-color: #ccc;
    color: #333;
}

.modal-buttons .cancel-btn:hover {
    background-color: #bbb;
}

.modal-btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-btn.confirm {
    background: #28a745;
}

.modal-btn.confirm:hover {
    background: #218838;
    transform: translateY(-2px);
}

.modal-btn.confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-btn.cancel {
    background: #dc3545;
}

.modal-btn.cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* SzĹ±rĹ‘gombok kontĂ©ner */
.filter-buttons-container {
    background-color: #f3e6ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

/* Modern panel design */
.section {
    max-width: 80%;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 25px auto;
    padding: 20px;
    border-top: 4px solid #8E2DE2;
    animation: fadeIn 0.5s ease-in;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* uj_panzios.php specifikus section stĂ­lus */
.section.uj-panzios {
    max-width: 600px;
    background: #fafafa;
    display: block; /* Az uj_panzios.php-ban nem kell flex Ă©s align-items */
}

/* Desktopon szĂ©lesebb Ĺ±rlap kontĂ©ner az uj_panzios.php-n */
@media (min-width: 992px) {
    .section.uj-panzios {
      max-width: 900px;
    }
}

/* uj_panzios oldalon az inputok tĂ¶ltsĂ©k ki a rendelkezĂ©sre ĂˇllĂł szĂ©lessĂ©get */
.section.uj-panzios .form-control {
    width: 100%;
}

/* Flatpickr altInput szĂ©lessĂ©g lazĂ­tĂˇsa ezen az oldalon */
.section.uj-panzios .flatpickr-input {
    width: 100% !important;
    max-width: 72ch !important;
    flex: 1 1 auto;
}

/* fooldal.php specifikus section stĂ­lus */
.section.fooldal-section {
    max-width: calc(100% - 40px); /* A container paddingját (20px + 20px) levonjuk */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Balra igazítás */
    background: #ffffff; /* vissza fehérre */
    color: inherit; /* öröklődjön az alapszín */
}

.section.fooldal-section h2 {
    color: #2c3e50; /* vissza az alap címsorszínre */
    border-bottom-color: #DDA0DD; /* vissza az alap alsó szegély színre */
}

.section h2 {
    text-align: left; /* Balra igazítás */
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #DDA0DD;
    padding-bottom: 5px;
}

.behavior-display {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.behavior-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* fooldal.php specifikus behavior-badge stĂ­lus */

.stat-card .stat-number table,
.stat-card .stat-number th,
.stat-card .stat-number td {
    font-size: 0.85rem !important;
}

.behavior-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.behavior-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.behavior-badge:hover {
    opacity: 0.8;
}

.behavior-badge.positive {
    background-color: #2ecc71;
}

.behavior-badge.negative {
    background-color: #e74c3c;
}

/* Gombok panel */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* fooldal.php specifikus button-container stĂ­lusok */
.details-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.buttons-section {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-top: 4px solid #DDA0DD;
}

/* SzĹ±rĹ‘ panel */
.filter-section {
    background: linear-gradient(to right, #ffffff, #f3e6ff);
    border-top: 4px solid #DDA0DD;
}

/* TĂˇblĂˇzat panel */
.table-section {
    background: linear-gradient(to right, #ffffff, #f5f5f5);
    border-top: 4px solid #8E2DE2;
}

/* MĹ±veleti gombok a tĂˇblĂˇzatban */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* DataTables testreszabĂˇs */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #8E2DE2 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #DDA0DD !important;
    color: #333 !important;
    border: none !important;
}

.dataTables_info {
    color: #64748b !important;
}

/* ĂltalĂˇnos kontĂ©ner (modernizĂˇlt) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in;
}

/* uj_panzios.php specifikus container stĂ­lus */
.container.uj-panzios {
    max-width: 600px;
    padding: 10px;
    background: transparent;
    box-shadow: none;
}

/* fooldal.php specifikus container stĂ­lus */
.container.fooldal-container {
    max-width: 1400px; /* Növelt max szélesség: több hely az Ellátási idővonalnak */
    width: 100%;
    padding: 20px;
    background: transparent;
    box-shadow: none;
}

/* AnimĂˇciĂłk */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form elemek uj_panzios.php-hoz */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    width: 100%;
}

.input-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    width: 400px !important; /* Ugyanaz a szélesség mint az input mezőknél */
}

/* Keresési eredmények uj_panzios.php-hoz */
#search-result, #fajta-search-result {
    position: absolute;
    background: transparent !important;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    top: 100%; /* Az input mező alja alatt kezdődik */
}

#search-result div, #fajta-search-result div {
    padding: 8px;
    cursor: pointer;
}

#search-result div:hover, #fajta-search-result div:hover {
    background-color: #f0f0f0;
}

/* fooldal.php specifikus stílusok */
.details-content {
    padding: 5px;
    border-top: 1px solid #ddd;
}

.details-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.details-content p strong {
    display: inline-block;
    margin-right: 4px; /* Kis távolság a címke és az érték között */
    font-weight: bold;
}

.main-row:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.details-btn.release {
    background-color: #8E2DE2;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.details-btn.release:hover {
    background-color: #6B1AB8;
}

.explanation-content {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* Modal stílusok */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

#releaseSummary {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

/* Hazaadás összesítő táblázat */
.release-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.release-table th,
.release-table td {
    border: 1px solid #d1d5db; /* Világosszürke szegély, kontrasztosabb */
    padding: 12px;
    text-align: left;
    color: #2c3e50;
    vertical-align: middle;
}

.release-table th {
    background-color: #f3e6ff; /* Halvány lila háttér */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.release-table td {
    background-color: #fff;
}

.release-table tr.data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.release-table tr.data-row:hover {
    background-color: #e8f0fe; /* Kékes hover */
}

.release-table tr.details-row {
    background-color: #f0f7ff; /* Világoskék részletező sor */
    border-top: none;
}

.release-table .total-row {
    font-weight: bold;
    background-color: #f8f9fa;
}

.release-table .total-row td {
    border-top: 2px solid #d1d5db; /* Erősebb szegély az összesítőnél */
}

/* Biztosítjuk, hogy a modalban ne legyenek nem kívánt stílusok */
#releaseSummary .release-table {
    border: none; /* Hátterkép stílusok */
}

.fc-daygrid-day-frame {
    position: relative;
}

.occupancy-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Háttérszínek a foglaltsági szintekhez */
.fc-day-occupancy-low {
    background-color: #e8f5e9 !important; /* Világos zöld */
}

.fc-day-occupancy-medium {
    background-color: #fff8e1 !important; /* Világos sárga */
}

.fc-day-occupancy-high {
    background-color: #ffebee !important; /* Világos piros */
}

.fc-day-occupancy-full {
    background-color: #ffcdd2 !important; /* Sötétebb piros */
}

/* Tooltip stílusok */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Teltház esetén a nap fejlécének stílusa */
.fc-day-today.fc-day-occupancy-full .fc-daygrid-day-number {
    font-weight: bold;
    color: #d32f2f;
}

/* A fenti extra panelhez tartozó CSS törölve */

/* A részletező sorok megjelenésének biztosítása */
.release-table .details-row[style*="display: table-row"] {
    display: table-row !important;
}

#checklist, #commentSection, #amountSection {
    margin: 15px 0;
}

#checklist h3, #commentSection h3, #amountSection h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

#checklist label {
    display: block;
    margin: 2px 0;
    font-size: 14px;
}

#checklist input[type="checkbox"] {
    margin-right: 6px;
}

/* Naptár és idővonal stílusok */
#calendar {
    max-width: 100%;
    margin: 10px 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.fc-scrollgrid {
    min-width: 100%;
    margin-right: 0;
}

/* Csak az utolsó oszlopban legyen extra hely a görgetősáv miatt */
.fc-daygrid-day:last-child,
.fc-col-header-cell:last-child {
    padding-right: 16px !important;
    box-sizing: border-box;
}

/* Mai nap kiemelése piros, vastagabb kerettel */
.fc-day-today {
    background-color: #fff !important;
    border: 3px solid #ff0000 !important; /* Vastagabb piros keret */
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.fc-daygrid-day-frame {
    border-radius: 5px;
    min-height: 60px; /* Biztosítjuk, hogy az utolsó sor is látható legyen */
}

.timeline-container {
    position: relative;
    margin: 12px 0; /* Kompaktabb függőleges margó */
    padding: 10px 8px; /* Kompaktabb belső tér */
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: visible; /* Ne vágja le a szélesebb részletdobozokat */
    min-height: 140px; /* Még kompaktabb alap magasság */
    opacity: 0;
    transition: opacity 0.5s ease;
    padding-bottom: 60px; /* Jelentősen kisebb alap puffer – JS szükség esetén növeli */
}

.timeline-container.visible {
    opacity: 1;
}

.timeline {
    width: 100%;
    position: relative; /* Marad relatív, mint a tárhelyen */
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease 0.2s, background 1s ease 0.2s;
    margin: 12px auto; /* Kompaktabb felső/belső margó */
}

.timeline-container.visible .timeline {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.3);
}

.current-time {
    position: absolute;
    top: -25px; /* Visszaállítjuk a tárhelyen lévő értéket */
    transform: translateX(-50%);
    text-align: center;
    color: #e74c3c;
    width: clamp(60px, 5%, 80px);
    transition: left 1s linear;
}

.current-time .marker {
    width: 15px;
    height: 15px;
    background: #e74c3c;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: -4px; /* Tárhelyen lévő érték */
}

.current-time span {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    margin-top: 5px; /* Extra tér a szövegnek */
}

.timeline-event {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    width: clamp(60px, 8%, 80px);
    margin-right: 16px; /* Kompaktabb oldaltávolság */
    margin-bottom: 12px; /* Kompaktabb függőleges térköz */
    padding: 6px 0; /* Kisebb függőleges padding */
}

.timeline-event .marker {
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: -2px; /* Tárhelyen lévő érték */
}

.timeline-event span {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
    white-space: normal;
    max-width: 100%;
}

.timeline-event .details {
    margin-top: 8px; /* Kompaktabb távolság a címkétől */
    margin-bottom: 8px; /* Kompaktabb alsó margó */
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 8px; /* Kompaktabb belső tér */
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
    word-wrap: break-word;
    width: clamp(200px, 50vw, 350px); /* Fix szélesség: kevesebb tördelés */
    /* min/max külön nem kell, a clamp kezeli a korlátokat */
    max-height: none; /* Ne korlátozzuk a magasságot több sor esetén */
    white-space: normal; /* Többsoros tördelés engedélyezése */
    overflow: visible;
    text-overflow: unset;
    /* Alapértelmezett: a doboz közepe a címke középvonalán (középre) */
    position: absolute; /* A szülő .timeline-event középvonalához igazítjuk */
    left: 50%;
    top: calc(100% + 6px); /* Kompaktabb függőleges távolság */
    transform: translateX(-50%) translateX(var(--shiftX, 0px));
    text-align: center;
    z-index: 2;
}

/* Ellátási idővonal igazítások: bal/közép/jobb a címke középvonalához képest */
.timeline-event.reggeli .details {
    /* Jobb él essen a címke (marker/label) alatti középvonalra */
    transform: translateX(-100%) translateX(var(--shiftX, 0px)) !important;
    text-align: right;
}

.timeline-event.ebed .details {
    /* Középre igazítás (alap) */
    transform: translateX(-50%) translateX(var(--shiftX, 0px)) !important;
    text-align: center;
}

.timeline-event.vacsora .details {
    /* Bal él essen a címke alatti középvonalra */
    transform: translateX(0) translateX(var(--shiftX, 0px)) !important;
    text-align: left;
}

.details strong {
    color: #8E2DE2;
    font-weight: bold;
}

.color-legend {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

/* Reszponzív igazítások */
@media (max-width: 768px) {
    .timeline-container {
        padding: 10px 4px;
        min-height: 120px;
        padding-bottom: 80px; /* Még kisebb alap – JS növeli, ha kell */
    }

    .timeline {
        height: 6px; /* Vékonyabb sáv mobil nézetben */
    }

    .current-time {
        top: 0;
        width: clamp(40px, 5%, 50px);
    }

    .current-time .marker {
        width: 12px; /* Kisebb pont mobil nézetben */
        height: 12px;
        top: -3px; /* Finomhangolás a kisebb sávhoz */
    }

    .current-time span {
        font-size: 10px;
        margin-top: 4px;
    }

    .timeline-event {
        width: clamp(60px, 8%, 80px); /* Nagyobb szélesség a több helyért */
    }

    .timeline-event span {
        font-size: 10px;
    }

    .timeline-event .details {
        font-size: 10px;
        padding: 4px;
        width: clamp(320px, 96vw, 720px); /* Mobilon ténylegesen szélesebb */
    }

    .input-status {
        font-size: 12px;
        width: 14px;
        height: 14px;
        margin-left: 3px;
    }

    .calendar-filter {
        max-width: 100%;
        padding: 10px;
    }

    .calendar-filter .form-control {
        max-width: 100%;
    }

    .header-container {
        margin: 15px auto 25px auto;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .brand img {
        width: 200px;
        height: 100px;
    }

    .brand h1 {
        font-size: 22px;
    }

    .search-form {
        flex-direction: column;
    }

    .add-button {
        width: 100%;
        justify-content: center;
    }

    .panel {
        margin: 10px;
    }

    .panel-body {
        padding: 10px;
    }

    .col-md-2 {
        margin-bottom: 10px;
    }

    .table-container {
        padding: 15px;
        overflow-x: auto;
    }

    .dashboard-table {
        display: block; /* TĂˇblĂˇzat blokk elemkĂ©nt viselkedik */
        overflow-x: hidden; /* VĂ­zszintes gĂ¶rgetĂ©s tiltĂˇsa */
    }

    .dashboard-table thead {
        display: none; /* FejlĂ©c elrejtĂ©se, mivel az oszlopok egymĂˇs alatt vannak */
    }

    .dashboard-table tbody {
        display: block;
    }

    .dashboard-table th,
    .dashboard-table td {
        font-size: 0.85rem;
        padding: 10px;
    }

    .dashboard-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .dashboard-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        text-align: left;
        border-bottom: 1px solid #eee;
        font-size: 0.85rem;
    }

    .dashboard-table tbody td::before {
        content: attr(data-label); /* OszlopcĂ­mkĂ©k hozzĂˇadĂˇsa */
        font-weight: bold;
        color: #2c3e50;
        flex: 0 0 40%;
        text-align: left;
    }

    .dashboard-table tbody td:last-child {
        border-bottom: none;
    }

    /* AdatcĂ­mkĂ©k az oszlopokhoz */
    .dashboard-table tbody td:nth-child(1)::before { content: "ProfilkĂ©p"; }
    .dashboard-table tbody td:nth-child(2)::before { content: "Kutya neve (Fajta)"; }
    .dashboard-table tbody td:nth-child(3)::before { content: "TĂˇp"; }
    .dashboard-table tbody td:nth-child(4)::before { content: "GyĂłgyszerezĂ©s"; }
    .dashboard-table tbody td:nth-child(5)::before { content: "Reggeli"; }
    .dashboard-table tbody td:nth-child(6)::before { content: "EbĂ©d"; }
    .dashboard-table tbody td:nth-child(7)::before { content: "Vacsora"; }
    .dashboard-table tbody td:nth-child(8)::before { content: "HĂˇtralĂ©vĹ‘ napok"; }
    .dashboard-table tbody td:nth-child(9)::before { content: "Kozmetika"; }
    .dashboard-table tbody td:nth-child(10)::before { content: "RĂ©szletek"; }

    /* RĂ©szletek sor reszponzĂ­v mĂłdosĂ­tĂˇsa */
    .dashboard-table .details-row {
        display: none;
        background-color: #fafafa;
    }

    .dashboard-table .details-row.active {
        display: block; /* LĂˇthatĂł, ha aktĂ­v */
    }

    /* MagyarĂˇzat kockĂˇk (color-legend) reszponzĂ­v igazĂ­tĂˇsa */
    .color-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    /* MĹ±veleti gombok reszponzĂ­v nĂ©zetben */
    .dashboard-table tbody td .action-buttons {
        flex-direction: row;
        gap: 5px;
    }

    /* uj_panzios.php specifikus reszponzĂ­v stĂ­lusok */
    .container.uj-panzios,
    .section.uj-panzios {
        max-width: 100%;
        padding: 10px;
    }

    /* fooldal.php specifikus reszponzĂ­v stĂ­lusok */
    .container.fooldal-container {
        max-width: 100%;
        padding: 10px;
    }

    .section.fooldal-section {
        max-width: 100%; /* Teljes szĂ©lessĂ©g kihasznĂˇlĂˇsa */
        padding: 8px;
    }

    #calendar {
        margin: 5px 0;
    }

    .fc-daygrid-day-frame {
        min-height: 50px; /* Kisebb magassĂˇg mobil nĂ©zetben */
    }

    .fc-daygrid-day-number {
        font-size: 0.8rem; /* Kisebb betĹ±mĂ©ret */
    }

    .fc-event {
        font-size: 0.75rem; /* Kisebb esemĂ©ny szĂ¶veg */
        padding: 2px;
    }

    .timeline-event span {
        font-size: 12px;
    }

    .timeline-event .details {
        font-size: 12px;
        padding: 6px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Print stĂ­lusok */
@media print {
    .header-container,
    .dashboard-header,
    .search-form,
    .add-button,
    .dataTables_paginate,
    .dataTables_info,
    .dataTables_length {
        display: none !important;
    }

    .table-container {
        background: transparent;
        box-shadow: none;
    }

    table {
        width: 100% !important;
    }
}

.error-message {
    color: red;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
}

/* Ikon igazítás: fogsor (inline SVG) */
.icon-fangs {
    display: inline-block;
    vertical-align: -0.1em; /* finom süllyesztés a szöveghez képest */
}
