/* Beszámoló form - only form-specific styles, shared styles are in main.css (.hk-form) */

.beszamolo-intro-wrapper {
    background: #fafafa;
    padding: 10px;
    margin: 0em 0px 1em;
}

.beszamolo-intro {
    line-height: 1.6;
    border: 1px solid #c0c0c0;
}
/* Összecsukható fejléc */
.beszamolo-intro > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.7em 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5em;
    user-select: none;
}
.beszamolo-intro > summary::-webkit-details-marker {
    display: none;
}
.beszamolo-intro > summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid #ff6e00;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.15s ease;
}
.beszamolo-intro[open] > summary::before {
    transform: rotate(90deg);
}
.beszamolo-intro > summary:hover {
    color: #ff6e00;
}
.beszamolo-intro-body {
    padding: 0 1.2em 0.8em;
    border-top: 1px solid #e3e3e3;
}
.beszamolo-intro p {
    margin: 0.5em 0;
}
.beszamolo-intro-foot {
    margin-top: 1.2em;
    text-align: right;
}
.beszamolo-intro-foot .intro-close {
    font-size: 13px;
    padding: 0.45em 1.2em;
}

/* Masked input */
.form-item-masked .masked-input-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.form-item-masked .mask-prefix,
.form-item-masked .mask-separator {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.form-item-masked .mask-part {
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #ccc;
    padding: 0.3em;
    width: auto !important;
}
.form-item-masked .mask-year {
    max-width: 4.5em;
}
.form-item-masked .mask-num {
    max-width: 3.5em;
}

.form-item-masked .mask-part.error {
    border-color: #bd2727 !important;
}

/* Feltöltő ikon hover-visszajelzés (kattinthatóság jelzése) */
.hk-form .qq-upload-button {
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.hk-form .upload-file:hover .qq-upload-button,
.hk-form .qq-upload-button:hover {
    opacity: 0.65;
    transform: scale(1.12);
}

/* Jelenléti ív sablon letöltő link */
.doc-template-link {
    display: inline-block;
    margin: 2px 0 4px;
    font-size: 13px;
    color: #ff6e00;
    text-decoration: underline;
}

/* Jelenléti ív adatok táblázat */
#jelenlet-fieldset {
    padding: 1.2em 1.5em 1.5em;
}
.jelenlet-hint {
    margin: 0.3em 0 1.3em;
    font-size: 13px;
    color: #555;
}
.jelenlet-table-wrap {
    overflow-x: auto;
}
.jelenlet-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c0c0c0;
    font-size: 14px;
}
.jelenlet-table th,
.jelenlet-table td {
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #c0c0c0;
}
.jelenlet-table thead th {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.jelenlet-table .req {
    color: #bd2727;
}
/* .hk-form prefix: felülírja a main.css .hk-form input[type="..."] 55%-os szabályát */
.hk-form .jelenlet-table input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.35em 0.4em;
    margin: 0;
    border: 1px solid #ccc;
}
.hk-form .jelenlet-table .jl-id,
.hk-form .jelenlet-table .jl-hours {
    font-family: monospace;
    text-align: center;
}

/* Jelenléti tábla hiba-kiemelés (ellenőrzéskor, ha üres/hibás) */
#jelenlet-fieldset.error {
    border-color: #bd2727;
}
#jelenlet-fieldset.error > legend {
    color: #bd2727;
}
.jelenlet-table .jl-col-act {
    width: 44px;
    text-align: center;
}
/* Törlés gomb: kis, gombszerű piros vezérlő. Minden állapotot felülírunk,
   hogy a generikus button:hover gradiens/border ne ugráljon vissza. */
.jelenlet-table .jl-remove,
.jelenlet-table .jl-remove:hover:not(:disabled),
.jelenlet-table .jl-remove:active:not(:disabled),
.jelenlet-table .jl-remove:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d9a7a7;
    border-radius: 4px;
    background: #fbeaea;
    box-shadow: none;
    color: #bd2727;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    text-shadow: none;
}
.jelenlet-table .jl-remove:hover:not(:disabled) {
    background: #bd2727;
    border-color: #bd2727;
    color: #fff;
}
.jelenlet-table .jl-remove svg {
    display: block;
}
.jelenlet-table .jl-remove:disabled {
    opacity: 0.45;
    cursor: default;
    background: #f1f1f1;
    border-color: #dddddd;
    color: #bbbbbb;
}
/* A meglévő gomb-stílust (main.css button gradiens) használja, csak méret-finomítás */
.btn-add-row {
    margin-top: 10px;
    font-size: 13px;
    padding: 0.45em 1.2em;
}
.btn-add-row:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Info ikon + tooltip — <button>, ezért minden állapotot felülírunk a
   generikus gomb-gradiens (hover/active is) ellen, megfelelő specificitással. */
.info-icon,
.info-icon:hover:not(:disabled),
.info-icon:active:not(:disabled),
.info-icon:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #828282;
    box-shadow: none;
    text-shadow: none;
    color: #fff;
    font-size: 10px;
    font-style: italic;
    font-weight: bold;
    font-family: Georgia, serif;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}
.info-icon:hover:not(:disabled),
.info-icon:focus {
    background: #e85f00;
}
.info-icon:focus-visible {
    outline: 2px solid #ff6e00;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Preview modal */
.bp-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    overflow-y: auto;
    padding: 30px 15px;
}
.bp-overlay.visible {
    display: block;
}
.bp-modal {
    background: #fff;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 28px 28px;
    border-radius: 4px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}
.bp-modal h2 {
    margin: 0 0 0.6em;
    font-size: 20px;
}
.bp-modal h3 {
    margin: 1.2em 0 0.4em;
    font-size: 15px;
    color: #ff6e00;
}
.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.bp-table th,
.bp-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.bp-table th {
    width: 45%;
    color: #555;
    font-weight: bold;
}
.bp-participants th {
    width: auto;
    color: #333;
}
.bp-empty {
    color: #888;
    font-style: italic;
}
.bp-warn {
    color: #bd2727;
    font-weight: bold;
}
.bp-privacy {
    margin-top: 1em;
    font-size: 14px;
}
.bp-actions {
    margin-top: 1.5em;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Elküld gomb kiemelése a Hankook narancs kerettel */
#bp-submit {
    border: 2px solid #ff6e00;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 650px) {
    .form-item-masked .masked-input-group {
        margin-left: 0;
    }
    .jelenlet-table thead {
        display: none;
    }
    .jelenlet-table {
        border: none
    }
    .jelenlet-table,
    .jelenlet-table tbody,
    .jelenlet-table tr,
    .jelenlet-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .jelenlet-table tr {
        margin-bottom: 1em;
        border: 1px solid #c0c0c0;
        padding: 6px;
    }
    .jelenlet-table td {
        border: none;
        padding: 4px 0;
    }
    .jelenlet-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: bold;
        color: #555;
        margin-bottom: 2px;
    }
    .jelenlet-table .jl-col-act {
        width: 100%;
        text-align: right;
    }
    .bp-table th {
        width: 40%;
    }
}
