/* ==========================================
   UGDYMAS PAGE STYLES
   Page-specific styles (holidays table, etc.)
   Content blocks are in dokumentai.css
   ========================================== */

/* Re-apply white background for ugdymas page */
body.page-template-page-ugdymas,
body.page-template-page-ugdymas .wrapper,
body.page-template-page-ugdymas .wrapper_inner,
body.page-template-page-ugdymas .content,
body.page-template-page-ugdymas .content .content_inner,
body.page-template-page-ugdymas .content .container,
body.page-template-page-ugdymas .container,
body.page-template-page-ugdymas .container_inner,
body.page-template-page-ugdymas.transparent_content,
.transparent_content.page-template-page-ugdymas,
body.page-template-page-ugdymas .paspartu_inner,
body.page-template-page-ugdymas .paspartu_outer {
    background-color: var(--dok-white, #ffffff) !important;
    background-image: none !important;
    background: var(--dok-white, #ffffff) !important;
}

/* Hide content bottom area */
body.page-template-page-ugdymas .content_bottom {
    display: none !important;
}

/* --- Holidays table --- */
.ugd-holidays-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.ugd-holidays-table thead th {
    background: var(--dok-navy, #2e4a7a);
    color: var(--dok-white, #ffffff);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.ugd-holidays-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--dok-border, #dde1e7);
    color: var(--dok-text, #333333);
    text-align: left;
}

.ugd-holidays-table tbody tr:hover {
    background: #eef1f5;
}

.ugd-holidays-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Staff Profile Card ─────────────────────────────────────────────────────── */
.staff-profile-card {
    display: flex;
    gap: 24px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--dok-border, #dde1e7);
    align-items: flex-start;
}

.staff-profile-photo {
    width: 130px;
    min-width: 130px;
    height: 160px;
    background: #d8d8d8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    font-size: 48px;
    flex-shrink: 0;
}

.staff-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.staff-profile-info {
    flex: 1;
    min-width: 0;
}

.staff-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dok-navy-dark, #223358);
    margin: 0 0 2px;
}

.staff-profile-role {
    font-size: 13px;
    color: var(--dok-text-light, #666666);
    margin: 0 0 6px;
}

.staff-profile-desc {
    font-size: 13px;
    color: var(--dok-text, #333333);
    margin: 0 0 10px;
    line-height: 1.5;
}

.staff-profile-info hr {
    border: none;
    border-top: 1px solid var(--dok-border, #dde1e7);
    margin: 10px 0;
}

.staff-profile-doc {
    margin: 8px 0;
    font-size: 13px;
}

.staff-profile-doc a {
    color: var(--dok-navy, #2e4a7a);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.staff-profile-doc a:hover {
    color: var(--dok-orange, #e8832a);
    text-decoration: underline;
}

.staff-profile-room {
    font-size: 13px;
    margin-bottom: 12px;
}

.staff-profile-room a {
    color: var(--dok-navy, #2e4a7a);
    text-decoration: none;
}

.staff-profile-room a:hover {
    color: var(--dok-orange, #e8832a);
    text-decoration: underline;
}

.staff-profile-hours-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dok-text, #333333);
    margin-bottom: 8px;
}

.staff-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.staff-hours-table thead th {
    background: var(--dok-light-gray, #f5f6f8);
    color: var(--dok-text, #333333);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--dok-border, #dde1e7);
}

.staff-hours-table tbody td {
    padding: 8px 12px;
    border: 1px solid var(--dok-border, #dde1e7);
    color: var(--dok-text, #333333);
}

.staff-hours-table tbody tr:nth-child(even) td {
    background: var(--dok-light-gray, #f5f6f8);
}

.staff-contacts-block {
    font-size: 13px;
}

.staff-contacts-label {
    font-weight: 700;
    color: var(--dok-text, #333333);
    margin-bottom: 4px;
}

.staff-contact-item {
    margin-bottom: 3px;
    color: var(--dok-text, #333333);
}

.staff-contact-item a {
    color: var(--dok-navy, #2e4a7a);
    text-decoration: none;
}

.staff-contact-item a:hover {
    color: var(--dok-orange, #e8832a);
    text-decoration: underline;
}

.staff-section-heading {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 18px;
    background: var(--dok-navy, #2e4a7a);
    border-bottom: none;
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}
.tech-table thead tr {
    background: var(--dok-navy, #2e4a7a);
    color: #ffffff;
}
.tech-table thead th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--dok-navy, #2e4a7a);
}
.tech-table tbody tr:nth-child(even) td {
    background: var(--dok-light-gray, #f5f6f8);
}
.tech-table tbody td {
    padding: 8px 12px;
    border: 1px solid var(--dok-border, #dde1e7);
    color: var(--dok-text, #333333);
    text-align: left;
}
.tech-table tbody td:first-child {
    width: 60px;
}

.plain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 4px;
}
.plain-table thead th {
    background: var(--dok-light-gray, #f5f6f8);
    color: var(--dok-text, #333);
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--dok-border, #dde1e7);
}
.plain-table tbody td {
    padding: 9px 12px;
    border: 1px solid var(--dok-border, #dde1e7);
    color: var(--dok-text, #333);
    font-size: 13px;
    vertical-align: top;
    text-align: left !important;
}
.plain-table tbody tr:nth-child(even) td {
    background: var(--dok-light-gray, #f5f6f8);
}
.plain-table .section-label td {
    font-weight: 700;
    background: var(--dok-light-gray, #f5f6f8);
    border: 1px solid var(--dok-border, #dde1e7);
}

@media (max-width: 600px) {
    .staff-profile-card {
        flex-direction: column;
        gap: 16px;
    }
    .staff-profile-photo {
        width: 100%;
        height: 200px;
    }
}
