/* Laboratorium Page Specific Styles (matching template-jtipolije/lab2.html) */

/* Two-column layout */
.lab-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 75px;
}
.lab-card {
    background: #fff;
    border: 1px solid var(--line, #e2e8f0);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
    border-radius: 14px;
    overflow: hidden;
}
.lab-aside {
    display: grid;
    gap: 16px;
}
.lab-photo-wrap {
    position: relative;
    width: 100%;
    height: 205px;
    background: #e2e8f0;
}
.lab-photo {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
}
.lab-photo-placeholder {
    width: 100%;
    height: 205px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 48px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}
.lab-info {
    padding: 21px;
}
.lab-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 30px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 12px;
}
.lab-status i {
    font-size: 7px;
}
.lab-info h2 {
    margin: 0;
    color: var(--navy, #0b1220);
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.lab-code {
    margin: 5px 0 19px;
    color: var(--muted, #64748b);
    font-size: 11px;
}
.info-list {
    display: grid;
    gap: 14px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eff6ff;
    color: var(--blue, #2563eb);
    font-size: 12px;
}
.info-item small {
    display: block;
    color: var(--muted, #64748b);
    font-size: 10px;
    margin-bottom: 1px;
}
.info-item strong,
.info-item a {
    display: block;
    color: #263449;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.info-item a {
    color: var(--blue, #2563eb);
    text-decoration: none;
}
.info-item a:hover {
    text-decoration: underline;
}

.head-card {
    padding: 19px;
}
.head-card h3 {
    font-size: 12px;
    color: var(--navy, #0b1220);
    margin: 0 0 13px;
    display: flex;
    align-items: center;
}
.head-person {
    display: flex;
    align-items: center;
    gap: 12px;
}
.head-person img,
.head-person .head-placeholder {
    width: 51px;
    height: 51px;
    object-fit: cover;
    border-radius: 50%;
    background: #e2e8f0;
}
.head-person .head-placeholder {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 20px;
}
.head-person strong {
    display: block;
    font-size: 12px;
    color: var(--navy, #0b1220);
}
.head-person small {
    display: block;
    font-size: 10px;
    color: var(--muted, #64748b);
}

/* Tabs column */
.tab-panel {
    min-width: 0;
}
.tabbar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 11px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    background: #fff;
    scrollbar-width: thin;
}
.tab-button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font: 600 11px Inter, Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.tab-button i {
    margin-right: 6px;
}
.tab-button:hover {
    background: #eff6ff;
    color: var(--blue, #2563eb);
}
.tab-button.active {
    background: var(--blue, #2563eb);
    color: #fff;
}
.tab-content {
    display: none;
    padding: 25px;
    background: #fff;
}
.tab-content.active {
    display: block;
}
.section-title {
    margin: 0 0 5px;
    color: var(--navy, #0b1220);
    font-size: 20px;
    letter-spacing: -.4px;
}
.section-desc {
    margin: 0 0 20px;
    color: var(--muted, #64748b);
    font-size: 12px;
}
.prose {
    color: #475569;
    font-size: 13px;
    line-height: 1.85;
}
.prose p {
    margin: 0 0 14px;
}
.prose h3 {
    margin: 21px 0 7px;
    color: var(--navy, #0b1220);
    font-size: 15px;
}
.prose ul, .prose ol {
    padding-left: 20px;
    margin: 0 0 16px;
}
.prose li {
    margin: 5px 0;
}
.prose blockquote {
    margin: 20px 0;
    padding: 15px 18px;
    border-left: 3px solid var(--cyan, #06b6d4);
    background: #f0f9ff;
    color: #164e63;
    border-radius: 0 8px 8px 0;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.stat {
    padding: 14px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    background: #fbfdff;
}
.stat i {
    color: var(--blue, #2563eb);
    font-size: 18px;
}
.stat strong {
    display: block;
    margin-top: 7px;
    color: var(--navy, #0b1220);
    font-size: 12px;
}
.stat small {
    color: var(--muted, #64748b);
    font-size: 10px;
}

/* Organization and people */
.org-chart {
    max-width: 570px;
    margin: 15px auto 27px;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.org-node {
    min-width: 190px;
    padding: 11px 14px;
    text-align: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
}
.org-node small {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 500;
}
.org-line {
    height: 17px;
    border-left: 1px solid #cbd5e1;
}
.org-branch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
}
.org-branch:before {
    content: "";
    position: absolute;
    left: 16.6%;
    right: 16.6%;
    top: -6px;
    border-top: 1px solid #cbd5e1;
}
.org-branch .org-node {
    min-width: 0;
    background: #f8fafc;
    border-color: var(--line, #e2e8f0);
    color: #334155;
    padding: 10px 5px;
}
.subheading {
    margin: 25px 0 12px;
    color: var(--navy, #0b1220);
    font-size: 14px;
}
.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    background: #fff;
}
.person img,
.person .person-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    border-radius: 50%;
    background: #e2e8f0;
}
.person .person-placeholder {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 18px;
}
.person strong {
    display: block;
    color: var(--navy, #0b1220);
    font-size: 11px;
}
.person small {
    display: block;
    color: var(--muted, #64748b);
    font-size: 10px;
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
}
.lab-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 11px;
}
.lab-table thead {
    background: #f1f5f9;
}
.lab-table th {
    font-size: 10px;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: #334155;
    font-weight: 800;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e2e8f0);
}
.lab-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    vertical-align: top;
    color: #475569;
}
.lab-table tbody tr:last-child td {
    border-bottom: 0;
}
.lab-table tbody tr:hover {
    background: #fafcff;
}
.table-primary {
    font-weight: 700;
    color: #1e293b;
}
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.tag.success {
    background: #ecfdf5;
    color: #047857;
}
.tag.warning {
    background: #fff7ed;
    color: #c2410c;
}
.table-link {
    color: var(--blue, #2563eb);
    font-weight: 700;
    text-decoration: none;
}
.table-link:hover {
    text-decoration: underline;
}
.empty-tab-data {
    padding: 30px;
    text-align: center;
    color: var(--muted, #64748b);
    font-size: 12px;
    border: 1px dashed var(--line, #e2e8f0);
    border-radius: 8px;
    background: #f8fafc;
}

@media(max-width:950px) {
    .lab-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 18px;
    }
    .tab-button {
        padding: 9px 10px;
    }
}
@media(max-width:760px) {
    .lab-layout {
        grid-template-columns: 1fr;
    }
    .lab-aside {
        grid-template-columns: 1fr;
    }
    .lab-photo-wrap, .lab-photo, .lab-photo-placeholder {
        height: 220px;
    }
}
@media(max-width:520px) {
    .tabbar {
        padding: 8px;
    }
    .tab-button {
        font-size: 10px;
        padding: 8px 10px;
    }
    .tab-content {
        padding: 20px 14px;
    }
    .people-grid {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .org-branch {
        grid-template-columns: 1fr;
    }
    .org-branch:before {
        display: none;
    }
}
