/* Elállási rendszer — egyedi megjelenés (Bootstrap 5 felülírások) */

html, body {
    height: 100%;
}

body {
    background: #f1f3f5;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.card .card-header {
    border-bottom: 1px solid #e0e0e0;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

/* Fejléc: mobilon ne csússzon ki, hanem törjön a szöveg */
.navbar-brand {
    white-space: normal;
    min-width: 0;
}

.navbar .container {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Mennyiség-léptető */
.qty-stepper {
    max-width: 140px;
    margin: 0 auto;
}

.qty-stepper .qty-input {
    max-width: 60px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Nulla darabos (nem visszaküldött) sor halványítása */
tr.item-row.row-excluded td {
    opacity: .45;
}

tr.item-row.row-excluded td:nth-child(5) {
    opacity: 1;
}

/* Admin: dashboard statisztika kártyák */
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.stat-card .stat-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .min-w-0 {
    min-width: 0;
}

/* Admin: határidő-jelzések */
.deadline-flag {
    white-space: nowrap;
}

/* Elállási nyilatkozat — kiemelt doboz az űrlap alján */
.declaration-box {
    background: #fff8e6;
    border: 1px solid #f0c95c;
    border-left: 4px solid #e8a800;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
}

.declaration-box .form-check-label {
    font-weight: 600;
}

.declaration-box .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: .15em;
    border-color: #b98900;
}
