@font-face {
    font-family: "VAGRounded";
    src: url("../assets/fonts/VAGRoundedStd-Light.otf") format("opentype");
}

/* BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    font-family: "VAGRounded", sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* BODY */
.db-body {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.db-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#loadingScreen {
    position: fixed;
    inset: 0;
    background: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

.loader-svg {
    width: 60px;
    height: 60px;
    animation: rotate 2s linear infinite;
}

.loader-svg .path {
    stroke: #1b5e20;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.loader-text {
    margin-top: 18px;

    font-size: 14px;
    font-weight: 600;

    color: #2e7d32;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.error-box {
    margin: 20px;
    padding: 16px;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: 8px;
    font-weight: 600;
    white-space: pre-wrap;
}

/* NAVBAR */
.navbar-pt {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-link.active {
    background: #1b5e20;
    color: #ffffff;
}

/* HEADER */
.db-header {
    padding: 12px 0 10px;
}
.db-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.db-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.db-logo {
    height: 150px;
    width: auto;
}
.db-logo50 {
    height: 85px;
    width: auto;
}
.db-title {
    font-size: clamp(14px, 3vw, 38px);
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.1;
    text-transform: uppercase;
}
.db-subtitle {
    font-size: clamp(14px, 3vw, 24px);
    font-weight: 700;
    color: #1b5e20;
    margin-top: 2px;
}
.db-periode {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;

    font-size: 16px;
    color: #555;
}
.db-ico-sm {
    width: 16px;
    height: 16px;
}

/* KPI */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
/* KPI */
.kpi {
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.kpi-ico {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-bottom: 8px;
}
.kpi-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0px;
    line-height: 1.2;
}
.kpi-val {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-top: 6px;
}
.kpi-val-pct {
    font-size: 36px;
}
.kpi-sub {
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.9;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* KPI colors */
/* Total Alat */
.kpi-total {
    background: #fff;
    color: #1b5e20;
    border: 2px solid #c8e6c9;
}
.kpi-total .kpi-ico {
    color: #2e7d32;
}
/* Pass */
.kpi-pass {
    background: #66b345;
    color: #fff;
}
/* Kondisional */
.kpi-kond {
    background: #e6b800;
    color: #fff;
}
/* Fail */
.kpi-fail {
    background: #ed1c24;
    color: #fff;
}
/* Target */
.kpi-target {
    background: #fff;
    color: #1b5e20;
    border: 2px solid #c8e6c9;
}
.kpi-target .kpi-ico {
    color: #2e7d32;
}

/* LAPORAN + DOKUMENTASI */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: start;
}
.main-left,
.main-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.th-no {
    width: 5%;
    text-align: center;
}

.row-mid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: stretch;
}

/* ROW DATA */
.row-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}
.row-data-summary {
    grid-template-columns: 2fr 1.5fr;
}

/* ROW BOTTOM */
.row-bot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.bot-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bot-hd {
    background: #1b5e20;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.bot-list {
    padding: 12px 14px 12px 28px;
    margin: 0;
    list-style: disc;
    font-size: 14px;
    color: #333;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.65;
}

/* FOOTER */
.db-footer {
    background: #1b5e20;
    color: #fff;
    padding: 14px 24px;
    margin-top: 6px;
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.footer-vals {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-vals span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
}
.footer-vals span:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 18px;
    background-color: currentColor;
    margin-left: 15px;
    opacity: 0.5;
}
.ft-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.footer-tag {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.88;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/*  RESPONSIVE  */
@media (max-width: 1200px) {
    .row-data {
        grid-template-columns: 2.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .db-body {
        padding: 10px 12px 20px;
        gap: 10px;
    }
    .db-logo {
        height: 100px;
    }
    .db-logo50 {
        height: 56px;
    }
    .kpi-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .kpi-row .kpi-target {
        grid-column: auto;
        flex-direction: column;
    }
    .kpi-ico {
        width: 24px;
        height: 24px;
    }
    .kpi-val {
        font-size: 18px;
    }
    .kpi-val-pct {
        font-size: 18px;
    }
    .kpi-label {
        font-size: 16px;
    }
    .kpi-sub {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .kpi {
        padding: 8px 4px;
    }
    .ri-item {
        min-width: 120px;
    }
    .row-data {
        grid-template-columns: 1fr;
    }
    .row-bot {
        grid-template-columns: 1fr 1fr;
    }
    .footer-vals {
        gap: 14px;
    }
    .footer-vals span {
        font-size: 12px;
    }
    .footer-tag {
        font-size: 12px;
    }
}

@media (max-width: 540px) {
    .db-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .db-header-right {
        position: absolute;
        top: 12px;
        right: 12px;
    }
    .db-logo {
        height: 58px;
    }
    .db-logo50 {
        height: 38px;
    }
    .db-title {
        font-size: clamp(14px, 3vw, 38px);
    }
    .kpi-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    .kpi-row .kpi-total,
    .kpi-row .kpi-target {
        grid-column: auto;
        flex-direction: column;
    }
    .kpi-ico {
        width: 18px;
        height: 18px;
    }
    .kpi-val {
        font-size: 18px;
    }
    .kpi-val-pct {
        font-size: 18px;
    }
    .kpi-label {
        font-size: 16px;
    }
    .kpi-sub {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .kpi {
        padding: 6px 2px;
    }
    .row-bot {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .footer-vals {
        justify-content: center;
        gap: 10px;
    }
    .ri-item {
        min-width: 100%;
    }
}

@media (max-width: 380px) {
    .db-title {
        font-size: clamp(14px, 3vw, 38px);
    }
    .kpi-val {
        font-size: 18px;
    }
}

/* NAVBAR CONTAINER */
.db-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1025px) {
    .nav-left,
    .nav-right {
        flex: 1;
    }
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #374151;
}

.hamburger-btn svg {
    width: 28px;
    height: 28px;
}

/* NAVBAR TITLE */
.nav-title {
    font-size: 18px;
    font-weight: bold;
    color: #1b5e20;
}

/* NAVBAR MENU */
.nav-menu {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: #f3f4f6;
    color: #1b5e20;
}

.nav-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.nav-item.open .nav-chevron {
    transform: rotate(180deg);
}

/* DROPDOWN GRID */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    width: max-content;
    max-width: 90vw;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 4px 12px;
    z-index: 1000;
    margin-top: 8px;
}

/* Pseudo-element to bridge the gap and prevent premature mouseleave */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-item.open .nav-dropdown {
    display: grid;
}

.sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
}
.sub-link:hover,
.sub-link.active {
    background: #e8f5e9;
    color: #1b5e20;
}
.sub-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}
.sub-link.active .sub-indicator {
    background: #2e7d32;
}

/* MOBILE RESPONSIVE SIDEBAR */

/* SWEETALERT2 MINIMALIST PROFESSIONAL THEME */
.swal-custom-popup {
    border-radius: 16px !important;
    padding: 2em !important;
    font-family: "VAGRounded", sans-serif !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f3f4f6 !important;
}

.swal-custom-title {
    font-size: 22px !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5em !important;
}

.swal-custom-text {
    color: #4b5563 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.swal-custom-confirm {
    background-color: #2e7d32 !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    margin-top: 1.5em !important;
    box-shadow: 0 4px 6px rgba(46, 125, 50, 0.2) !important;
    cursor: pointer !important;
}

.swal-custom-confirm:hover {
    background-color: #1b5e20 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #ef4444 !important;
}

/* SWEETALERT2 PREMIUM THEME */
.swal-custom-popup {
    border-radius: 24px !important;
    padding: 32px 24px 24px !important;
    font-family: "VAGRounded", "Inter", sans-serif !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

.swal-custom-title {
    font-size: 20px !important;
    color: #111827 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em !important;
}

.swal-custom-text {
    color: #6b7280 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.swal-custom-confirm {
    background-color: #1b5e20 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 24px !important;
    box-shadow:
        0 4px 6px -1px rgba(27, 94, 32, 0.1),
        0 2px 4px -1px rgba(27, 94, 32, 0.06) !important;
    cursor: pointer !important;
}

.swal-custom-confirm:hover {
    background-color: #154718 !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 10px 15px -3px rgba(27, 94, 32, 0.2),
        0 4px 6px -2px rgba(27, 94, 32, 0.1) !important;
}

.swal2-icon.swal2-error {
    border-color: #fee2e2 !important;
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #ef4444 !important;
}

/* SIDEBAR HEADER (Mobile only) */
.sidebar-header {
    display: none;
}
.sidebar-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Print CSS updates */
@media print {
    .db-navbar,
    .nav-menu {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hamburger-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 280px;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        display: flex;
        z-index: 10000;
    }
    .nav-menu.show {
        left: 0;
    }
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
    }
    .sidebar-title {
        font-weight: 700;
        color: #1b5e20;
        font-size: 16px;
    }
    .sidebar-actions {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    .sidebar-icon {
        width: 24px;
        height: 24px;
        color: #64748b;
        cursor: pointer;
    }
    .sidebar-close-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .sidebar-content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 8px;
        display: flex;
    }
    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 8px 0 0 16px;
        display: none;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: auto;
    }
    /* Allow nav-items inside sidebar to expand dropdowns when .open is toggled */
    .nav-item.open .nav-dropdown {
        display: grid;
    }
}

/* SHARED HEADERS */
.title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.section-green-hd {
    background: #1b5e20;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.hd-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* SHARED COMPONENTS (LAPORAN, DOK, TABEL, dll) */
/* LAPORAN */
.laporan-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.laporan-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.laporan-info-box {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.laporan-lab-name {
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 8px;
}
.laporan-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 4px;
}
.laporan-grid-2-bottom {
    align-items: start;
}
.laporan-field {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.laporan-field-full {
    grid-column: 1 / -1;
}
.laporan-field-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.lf-ico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.laporan-field-val {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    padding-left: 20px;
}
.laporan-lokasi-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding-top: 10px;
}
.laporan-pin {
    width: 16px;
    height: 16px;
    color: #1b5e20;
    flex-shrink: 0;
    margin-top: 2px;
}
.laporan-lokasi-title {
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.laporan-lokasi-val {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}
.laporan-map-box {
    flex: 1;
    min-height: 180px;
    overflow: hidden;
}
.laporan-iframe {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: none;
    display: block;
}

/* DOKUMENTASI */
.dok-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
    flex: 1;
}
.dok-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}
.dok-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.35s ease;
}
.dok-item:hover .dok-img {
    transform: scale(1.05);
}
.dok-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 6px 8px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.9);
}
.btn-dok-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
    z-index: 10;
}
.btn-dok-edit:hover {
    background: #0284c7;
    transform: scale(1.1);
}

/* TABEL */
.tbl-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tbl-scroll {
    flex: 1;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
}
.alat-tbl {
    width: 100%;
    min-width: 700px;
    height: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
}
.alat-tbl th,
.alat-tbl td {
    padding: 8px 10px;
    white-space: nowrap;
}
.th-no {
    width: 55px;
}
.alat-tbl th:last-child,
.alat-tbl td:last-child {
    width: 110px;
}
.thead-main th {
    background: #1b5e20;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    padding: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.th-no,
.th-center,
.tc {
    text-align: center;
}
.tbl-row {
    border-bottom: 1px solid #eee;
    transition: 0.15s;
}
.tbl-row:hover {
    background: #f1f8f2;
}
.tbl-row:nth-child(even) {
    background: #fafafa;
}
.tbl-row:nth-child(even):hover {
    background: #f1f8f2;
}
.thead-main th,
.thead-sub th {
    background: #1b5e20;
    color: white;
    text-align: center;
    vertical-align: middle;
}
.thead-sub th {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.pass-cell {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}
.kondisional-cell {
    background: #fff8e1;
    color: #e6b800;
    font-weight: 600;
}
.fail-cell {
    background: #ffebee;
    color: #c62828;
    font-weight: 600;
}
.pass-cell,
.kondisional-cell,
.fail-cell {
    min-width: 70px;
    width: 70px;
    text-align: center;
}
.progress-wrap {
    position: relative;
    width: 100%;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
}
.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 13px;
    color: #222;
}

/* BADGE */
.eval-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge-pass {
    background: #e8f5e9;
    color: #1b5e20;
}
.badge-kondisional {
    background: #fff8e1;
    color: #b8860b;
}
.badge-fail {
    background: #ffebee;
    color: #c62828;
}
.badge-unknown {
    background: #f5f5f5;
    color: #616161;
}

/* REKAP */
.rekap-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rekap-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Petugas */
.petugas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    flex: 1;
}
.petugas-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.petugas-ava {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.petugas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.petugas-name {
    font-size: 13px;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.3;
}
.petugas-role {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* SHARED RESPONSIVE */
@media (max-width: 1200px) {
    .rekap-body {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .rekap-left {
        flex: 1;
        min-width: 200px;
        border-top: none;
        border-left: 1px solid #eee;
        padding-top: 0;
        padding-left: 14px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .laporan-grid-2 {
        grid-template-columns: 1fr;
    }
    .laporan-map-box,
    .laporan-iframe {
        min-height: 220px;
    }
    .dok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dok-img {
        height: 120px;
    }
    .tbl-scroll {
        overflow-x: auto;
    }
    .rekap-left {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media (max-width: 540px) {
    .laporan-card {
        flex-direction: column;
    }
    .laporan-lab {
        padding: 12px 18px;
        font-size: 18px;
    }
    .laporan-sep {
        width: 100%;
        height: 2px;
    }
    .laporan-map-box {
        min-height: 160px;
    }
    .laporan-iframe {
        min-height: 160px;
    }
    .laporan-grid-2 {
        grid-template-columns: 1fr;
    }
    .dok-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dok-img {
        height: 100px;
    }
    .tbl-col {
        overflow: hidden;
    }
    .rekap-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
}
