/* WS Beszámoló — meleg, szerzetesi paletta: parchment + bordó + arany */

/* ---- Site-wide chrome: header, footer, háttér (Twenty Twenty-Five téma) ---- */
body.wp-theme-twentytwentyfive {
    background: #F9F7F2 !important;
}

header.wp-block-template-part {
    background: #F9F7F2;
    border-bottom: 1px solid #E4E2DD;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(112, 119, 53, 0.06);
}

header.wp-block-template-part .wp-block-site-title a {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #575E1F !important;
    font-weight: 600;
}

header.wp-block-template-part .wp-block-navigation-item a {
    font-family: 'Inter', sans-serif;
    color: #1B1C19;
    font-weight: 500;
    transition: color 0.15s ease;
}
header.wp-block-template-part .wp-block-navigation-item a:hover {
    color: #707735;
}
header.wp-block-template-part .wp-block-navigation-item:last-child a {
    background: #707735;
    color: #fff !important;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
}
header.wp-block-template-part .wp-block-navigation-item:last-child a:hover {
    background: #575E1F;
}

footer.wp-block-template-part {
    background: #F3ECDF;
    border-top: 1px solid #E4E2DD;
    padding: 2rem 2rem;
}
footer.wp-block-template-part .wsb-site-footer {
    max-width: 1180px;
    margin: 0 auto;
    align-items: baseline;
}
.wsb-footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    color: #575E1F;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}
.wsb-footer-copy {
    color: #47483B;
    font-size: 0.85rem;
    margin: 0;
}

.wsb-wrap {
    --wsb-bg: #F9F7F2;
    --wsb-ink: #1B1C19;
    --wsb-ink-soft: #47483B;
    --wsb-maroon: #707735;
    --wsb-maroon-dark: #575E1F;
    --wsb-gold: #D8B44C;
    --wsb-card: #FFFFFF;
    --wsb-border: #E4E2DD;

    max-width: 1180px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--wsb-ink);
    line-height: 1.5;
}

.wsb-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}

.wsb-mandala {
    flex: none;
    width: auto;
    height: 44px;
}

.wsb-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: var(--wsb-maroon-dark);
}

.wsb-subtitle {
    margin: 0.15rem 0 0;
    color: var(--wsb-ink-soft);
    font-size: 0.92rem;
}

.wsb-notice {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.wsb-notice.is-success { background: #EFF3E8; border-color: #B9CC9C; color: #3E5424; }
.wsb-notice.is-error { background: #F7E9E4; border-color: #E2AA98; color: #8A3A22; }

.wsb-card {
    background: var(--wsb-card);
    border: 1px solid var(--wsb-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(112, 119, 53, 0.08);
    margin-bottom: 2rem;
}

.wsb-field {
    margin-bottom: 1.1rem;
}

.wsb-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wsb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.wsb-field select,
.wsb-field input[type="text"],
.wsb-field input[type="number"],
.wsb-field input[type="email"],
.wsb-field input[type="date"],
.wsb-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--wsb-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--wsb-ink);
    background: #FFFDFA;
}

.wsb-field select:focus,
.wsb-field input:focus,
.wsb-field textarea:focus {
    outline: 2px solid var(--wsb-gold);
    outline-offset: 1px;
    border-color: var(--wsb-gold);
}

.wsb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem 1.2rem;
}

.wsb-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.98rem;
    cursor: pointer;
}
.wsb-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--wsb-maroon);
}

.wsb-submit {
    display: inline-block;
    background: var(--wsb-maroon);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.wsb-submit:hover { background: var(--wsb-maroon-dark); }
.wsb-submit:focus-visible { outline: 2px solid var(--wsb-gold); outline-offset: 2px; }

.wsb-history h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: var(--wsb-maroon-dark);
    margin-bottom: 0.9rem;
}

.wsb-history-empty {
    color: var(--wsb-ink-soft);
    font-style: italic;
}

.wsb-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--wsb-border);
    border-radius: 12px;
}

.wsb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--wsb-card);
}

.wsb-table th,
.wsb-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--wsb-border);
    white-space: nowrap;
}

.wsb-table th {
    background: #F3ECDF;
    color: var(--wsb-maroon-dark);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wsb-table tr:last-child td { border-bottom: none; }

.wsb-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.wsb-badge.is-done { background: #EFF3E8; color: #3E5424; }
.wsb-badge.is-open { background: #F3ECDF; color: #8A6A1A; }
.wsb-badge.is-mid { background: #F3ECDF; color: #8A6A1A; }
.wsb-badge.is-low { background: #F7E9E4; color: #8A3A22; }

.wsb-matrix td, .wsb-matrix th { text-align: center; }
.wsb-matrix td:first-child, .wsb-matrix th:first-child { text-align: left; }

.wsb-subtitle-inline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75em;
    color: var(--wsb-ink-soft, #47483B);
    text-transform: none;
}

.wsb-progress {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 90px;
    height: 8px;
    background: #EFE7D8;
    border-radius: 999px;
    overflow: hidden;
}
.wsb-progress-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
}
.wsb-progress-bar.is-low { background: #B24A3C; }
.wsb-progress-bar.is-mid { background: #D8B44C; }
.wsb-progress-bar.is-done { background: #5C8A3A; }

.wsb-pct {
    margin-left: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
}
.wsb-pct.is-low { color: #B24A3C; }
.wsb-pct.is-mid { color: #8A6A1A; }
.wsb-pct.is-done { color: #3E5424; }

.wsb-summary-table td:last-child { white-space: nowrap; }

.wsb-potlas-sorok { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.wsb-potlas-sor { display: flex; gap: 0.5rem; align-items: center; }
.wsb-potlas-sor input[type="text"] { flex: 1; }
.wsb-potlas-torol {
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid var(--wsb-border);
    background: #fff;
    color: var(--wsb-maroon);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}
.wsb-potlas-torol:hover { background: #F7E9E4; }

/* ---- Admin — ugyanaz a paletta, wp-admin keretben ---- */
.wsb-admin-wrap {
    --wsb-bg: #F9F7F2;
    --wsb-ink: #1B1C19;
    --wsb-ink-soft: #47483B;
    --wsb-maroon: #707735;
    --wsb-maroon-dark: #575E1F;
    --wsb-gold: #D8B44C;
    --wsb-card: #FFFFFF;
    --wsb-border: #E4E2DD;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--wsb-ink);
    max-width: 1180px;
}

.wsb-admin-wrap .wsb-mandala { width: auto; height: 34px; }

.wsb-admin-wrap h1 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--wsb-maroon-dark) !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
}

.wsb-admin-wrap h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--wsb-maroon-dark) !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin: 2rem 0 1rem !important;
}

.wsb-admin-wrap h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--wsb-maroon-dark) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin: 1.5rem 0 0.6rem !important;
}

.wsb-admin-wrap p { color: var(--wsb-ink); }
.wsb-admin-wrap p > a { color: var(--wsb-maroon); font-weight: 600; text-decoration: none; }
.wsb-admin-wrap p > a:hover { text-decoration: underline; }

/* Táblák */
.wsb-admin-wrap table.widefat {
    border: 1px solid var(--wsb-border) !important;
    border-radius: 12px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(112, 119, 53, 0.06);
}
.wsb-admin-wrap table.widefat th {
    background: #F3ECDF !important;
    color: var(--wsb-maroon-dark) !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none !important;
    border-bottom: 1px solid var(--wsb-border) !important;
}
.wsb-admin-wrap table.widefat td {
    border: none !important;
    border-bottom: 1px solid var(--wsb-border) !important;
    vertical-align: middle;
    color: var(--wsb-ink);
}
.wsb-admin-wrap table.widefat tr:last-child td { border-bottom: none !important; }
.wsb-admin-wrap table.widefat.striped > tbody > tr:nth-child(odd) { background: #FFFDFA !important; }
.wsb-admin-wrap table.widefat.striped > tbody > tr:hover { background: #F7F1E6 !important; }

/* Gombok */
.wsb-admin-wrap .button,
.wsb-admin-wrap .button-primary {
    border-radius: 999px !important;
    font-weight: 600 !important;
    border: 1px solid var(--wsb-maroon) !important;
    color: var(--wsb-maroon) !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0.35rem 1rem !important;
    height: auto !important;
    line-height: 1.6 !important;
}
.wsb-admin-wrap .button:hover { background: #F7E9E4 !important; color: var(--wsb-maroon-dark) !important; border-color: var(--wsb-maroon-dark) !important; }
.wsb-admin-wrap .button-primary {
    background: var(--wsb-maroon) !important;
    color: #fff !important;
    border-color: var(--wsb-maroon) !important;
}
.wsb-admin-wrap .button-primary:hover { background: var(--wsb-maroon-dark) !important; border-color: var(--wsb-maroon-dark) !important; color: #fff !important; }
.wsb-admin-wrap .button-link { color: var(--wsb-maroon) !important; text-decoration: none !important; }
.wsb-admin-wrap .button-link:hover { color: var(--wsb-maroon-dark) !important; }

/* Formmezők */
.wsb-admin-wrap input[type="text"],
.wsb-admin-wrap input[type="email"],
.wsb-admin-wrap input[type="number"],
.wsb-admin-wrap input[type="date"],
.wsb-admin-wrap textarea,
.wsb-admin-wrap select {
    border: 1px solid var(--wsb-border) !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.65rem !important;
    font-family: inherit;
    color: var(--wsb-ink);
    background: #FFFDFA !important;
    box-shadow: none !important;
}
.wsb-admin-wrap input:focus,
.wsb-admin-wrap textarea:focus,
.wsb-admin-wrap select:focus {
    outline: 2px solid var(--wsb-gold) !important;
    outline-offset: 1px;
    border-color: var(--wsb-gold) !important;
    box-shadow: none !important;
}
.wsb-admin-wrap textarea { font-family: inherit; }

/* Értesítések */
.wsb-admin-wrap .updated {
    border-left: none;
    border: 1px solid #B9CC9C;
    background: #EFF3E8;
    color: #3E5424;
    border-radius: 10px;
    padding: 0.6rem 1rem;
}

.wsb-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.3rem 0;
}
.wsb-feladat-list { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.wsb-details {
    margin: 1.25rem 0;
    border: 1px solid var(--wsb-border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    background: #fff;
}
.wsb-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--wsb-maroon-dark);
}
.wsb-details table { margin-top: 1rem; }
.wsb-details form { margin-top: 0.9rem; }

/* ---- Szellősebb admin szerkezet ---- */
.wsb-tabs {
    display: flex;
    gap: 0.6rem;
    margin: -0.5rem 0 1.5rem;
}
.wsb-tabs .wsb-badge {
    margin-left: 0.4rem;
}

.wsb-back {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.wsb-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--wsb-border);
}
.wsb-section:last-child { border-bottom: none; }

.wsb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wsb-reg-box {
    background: #fff;
    border: 1px solid var(--wsb-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 28px rgba(112, 119, 53, 0.08);
}
.wsb-reg-box p { margin-top: 0; color: var(--wsb-ink-soft); font-size: 0.92rem; }
.wsb-reg-box input[type="text"] { width: 100%; max-width: 640px; }

.wsb-alkalom-cards {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.wsb-alkalom-card {
    background: #fff;
    border: 1px solid var(--wsb-border);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 10px 28px rgba(112, 119, 53, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wsb-alkalom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(112, 119, 53, 0.12);
}

.wsb-alkalom-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wsb-border);
}

.wsb-alkalom-card-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
}

.wsb-alkalom-badge {
    background: #F3ECDF;
    color: var(--wsb-maroon-dark);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}

.wsb-datum-form { margin: 0; }
.wsb-datum-form label {
    font-size: 0.78rem;
    color: var(--wsb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.wsb-datum-form input[type="date"] { width: auto; }

.wsb-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.wsb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #F7F1E6;
    border: 1px solid var(--wsb-border);
    border-radius: 999px;
    padding: 0.3rem 0.4rem 0.3rem 0.85rem;
    font-size: 0.85rem;
    color: var(--wsb-ink);
}
.wsb-chip em {
    font-style: normal;
    color: var(--wsb-maroon-dark);
    font-weight: 700;
}
.wsb-chip form { display: contents; }
.wsb-chip button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--wsb-ink-soft);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    line-height: 1;
    font-size: 0.8rem;
}
.wsb-chip button:hover { background: #E4E2DD; color: var(--wsb-maroon); }

.wsb-add-feladat { margin: 0; }
.wsb-add-feladat input[type="text"] { max-width: 220px; }
.wsb-add-feladat input[type="number"] { max-width: 90px; }

.wsb-alkalom-more {
    margin: 1.1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--wsb-border);
}
.wsb-alkalom-more summary {
    font-size: 0.82rem;
    color: var(--wsb-ink-soft);
    font-weight: 600;
}

.wsb-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.7rem 1.2rem;
    margin: 1.1rem 0;
}
.wsb-user-check {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--wsb-border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin: 0;
    font-size: 0.92rem;
}
.wsb-user-check small { color: var(--wsb-ink-soft); }
.wsb-user-check em { font-style: normal; color: #8A3A22; font-size: 0.78rem; }
