/* =====================================================
           RESET
           ===================================================== */

        * {
            box-sizing: border-box;
        }


        html {
            font-size: 16px;
        }


        body {

            margin: 0;

            padding: 0;

            background: #f6f6f6;

            color: #1f1f1f;

            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Roboto,
                Helvetica,
                Arial,
                sans-serif;

            -webkit-font-smoothing: antialiased;

            text-rendering: optimizeLegibility;
        }


        /* =====================================================
           HEADER
           ===================================================== */

        .header-wrap {

            width: 100%;

            max-width: 1200px;

            margin: 0 auto;

            padding: 30px 24px 22px;

            text-align: center;
        }


        .header-wrap .logo {

            display: flex;

            justify-content: center;

            align-items: center;

            margin-bottom: 14px;
        }


        .header-wrap .logo img {

            display: block;

            width: auto;

            max-width: 95px;

            max-height: 95px;

            object-fit: contain;
        }


        .header-wrap h1 {

            margin: 4px 0;

            color: #151515;

            font-size: 22px;

            line-height: 1.25;

            font-weight: 750;

            letter-spacing: 0.5px;
        }


        .header-wrap h1 + h1 {

            margin-top: 6px;

            color: #a50000;

            font-size: 14px;

            font-weight: 700;

            letter-spacing: 1.5px;
        }


        /* =====================================================
           MAIN CARD
           ===================================================== */

        .report-form {

            width: calc(100% - 32px);

            max-width: 1200px;

            margin: 0 auto 40px;

            padding: 26px;

            background: #ffffff;

            border: 1px solid #e3e3e3;

            border-top: 4px solid #b40000;

            border-radius: 14px;

            box-shadow:
                0 8px 28px
                rgba(0, 0, 0, 0.06);
        }


        /* =====================================================
           FORM
           ===================================================== */

        .form-group {

            display: grid;

            grid-template-columns:
                190px minmax(0, 1fr);

            align-items: center;

            min-height: 68px;

            border-bottom:
                1px solid #eeeeee;
        }


        .form-group label {

            color: #333333;

            font-size: 14px;

            font-weight: 600;
        }


        .form-group > div {

            width: 100%;
        }


        /* =====================================================
           INPUT / SELECT
           ===================================================== */

        select,
        input[type="date"] {

            width: 100%;

            min-height: 44px;

            padding: 10px 13px;

            background: #ffffff;

            border: 1px solid #cccccc;

            border-radius: 8px;

            color: #222222;

            font-family: inherit;

            font-size: 14px;

            outline: none;

            transition:
                border-color .18s ease,
                box-shadow .18s ease,
                background .18s ease;
        }


        select:hover,
        input[type="date"]:hover {

            border-color: #999999;
        }


        select:focus,
        input[type="date"]:focus {

            border-color: #b40000;

            box-shadow:
                0 0 0 3px
                rgba(180, 0, 0, 0.10);
        }


        select {

            cursor: pointer;
        }


        /* =====================================================
           BUTTON
           ===================================================== */

        .exit-button {

            display: inline-flex;

            align-items: center;

            justify-content: center;

            min-width: 140px;

            min-height: 44px;

            padding: 10px 22px;

            border: 1px solid #a00000;

            border-radius: 8px;

            background: #c00000;

            color: #ffffff;

            font-family: inherit;

            font-size: 14px;

            font-weight: 700;

            cursor: pointer;

            box-shadow:
                0 3px 8px
                rgba(160, 0, 0, 0.16);

            transition:
                background .18s ease,
                border-color .18s ease,
                transform .15s ease,
                box-shadow .18s ease;
        }


        .exit-button:hover {

            background: #a80000;

            border-color: #8f0000;

            box-shadow:
                0 5px 12px
                rgba(160, 0, 0, 0.20);

            transform: translateY(-1px);
        }


        .exit-button:active {

            background: #920000;

            transform: translateY(0);

            box-shadow: none;
        }


        /* =====================================================
           META
           ===================================================== */

        .meta {

            margin-top: 24px;

            margin-bottom: 18px;

            overflow: hidden;

            border: 1px solid #e2e2e2;

            border-radius: 10px;

            background: #fafafa;
        }


        .meta .row {

            display: grid;

            grid-template-columns:
                190px minmax(0, 1fr);

            align-items: center;

            min-height: 46px;

            padding: 0 15px;

            border-bottom:
                1px solid #e9e9e9;

            font-size: 14px;
        }


        .meta .row:last-child {

            border-bottom: none;
        }


        .meta .row > div:first-child {

            color: #666666;
        }


        .meta .row > div:last-child {

            color: #222222;

            font-weight: 600;
        }


        /* =====================================================
           TABLE
           ===================================================== */

        .report-form table {

            width: 100%;

            margin-top: 20px;

            border-collapse: separate;

            border-spacing: 0;

            overflow: hidden;

            border: 1px solid #dddddd;

            border-radius: 10px;

            background: #ffffff;

            font-size: 13px;
        }


        .report-form table caption {

            caption-side: top;

            padding:
                0 0 12px;

            color: #222222;

            text-align: left;

            font-size: 15px;

            font-weight: 700;
        }


        /* =====================================================
           TABLE HEADER
           ===================================================== */

        .report-form table thead th {

            padding: 13px 12px;

            background: #202020;

            border-bottom:
                2px solid #b40000;

            color: #ffffff;

            font-size: 12px;

            font-weight: 700;

            text-align: left;

            white-space: nowrap;
        }


        /* =====================================================
           TABLE BODY
           ===================================================== */

        .report-form table tbody td {

            padding: 12px;

            border-bottom:
                1px solid #eeeeee;

            color: #333333;

            vertical-align: middle;

            white-space: nowrap;
        }


        .report-form table tbody tr:last-child td {

            border-bottom: none;
        }


        .report-form table tbody tr {

            transition:
                background .15s ease;
        }


        .report-form table tbody tr:hover {

            background: #fff8f8;
        }


        /* =====================================================
           NOMOR
           ===================================================== */

        .report-form table th:first-child,
        .report-form table td:first-child {

            width: 50px;

            text-align: center;
        }


        /* =====================================================
           TERDAFTAR / KUOTA
           ===================================================== */

        .report-form table th:last-child,
        .report-form table td:last-child {

            text-align: center;
        }


        /* =====================================================
           WARNA KHUSUS TERDAFTAR
           ===================================================== */

        .registered-number {

            display: inline-flex;

            align-items: center;

            justify-content: center;

            min-width: 32px;

            min-height: 28px;

            padding: 3px 9px;

            border-radius: 6px;

            background: #fff0f0;

            border: 1px solid #f0caca;

            color: #a00000;

            font-weight: 700;
        }


        /* =====================================================
           MUTED
           ===================================================== */

        .muted {

            color: #999999;
        }


        .meta .muted {

            margin-left: 5px;

            font-size: 12px;
        }


        /* =====================================================
           ERROR
           ===================================================== */

        .verdict {

            display: flex;

            align-items: center;

            gap: 10px;

            margin: 18px 0;

            padding: 12px 14px;

            border-radius: 8px;

            font-size: 13px;
        }


        .verdict.invalid {

            background: #fff6f6;

            border: 1px solid #eccaca;

            color: #8f0000;
        }


        .badge {

            display: inline-flex;

            align-items: center;

            justify-content: center;

            min-height: 24px;

            padding: 3px 9px;

            border-radius: 999px;

            background: #c00000;

            color: #ffffff;

            font-size: 11px;

            font-weight: 700;

            white-space: nowrap;
        }


        /* =====================================================
           NOT FOUND
           ===================================================== */

        .not-found {

            margin-top: 20px;

            padding: 22px;

            border: 1px dashed #cccccc;

            border-radius: 9px;

            background: #fafafa;

            color: #777777;

            text-align: center;

            font-size: 14px;
        }


        /* =====================================================
           RESPONSIVE TABLET
           ===================================================== */

        @media (max-width: 900px) {

            .report-form {

                padding: 20px;
            }


            .form-group,
            .meta .row {

                grid-template-columns:
                    150px minmax(0, 1fr);
            }


            .report-form table {

                display: block;

                overflow-x: auto;

                -webkit-overflow-scrolling:
                    touch;
            }


            .report-form table thead,
            .report-form table tbody {

                width: max-content;

                min-width: 100%;
            }
        }


        /* =====================================================
           MOBILE
           ===================================================== */

        @media (max-width: 600px) {

            .header-wrap {

                padding:
                    24px 16px 18px;
            }


            .header-wrap .logo img {

                max-width: 75px;

                max-height: 75px;
            }


            .header-wrap h1 {

                font-size: 19px;
            }


            .header-wrap h1 + h1 {

                font-size: 12px;

                letter-spacing: 1.2px;
            }


            .report-form {

                width:
                    calc(100% - 20px);

                margin-bottom: 25px;

                padding: 17px;

                border-radius: 12px;
            }


            .form-group {

                display: block;

                min-height: auto;

                padding: 13px 0;
            }


            .form-group label {

                display: block;

                margin-bottom: 7px;
            }


            .exit-button {

                width: 100%;
            }


            .meta {

                margin-top: 18px;
            }


            .meta .row {

                grid-template-columns: 1fr;

                gap: 4px;

                min-height: auto;

                padding: 11px 13px;
            }


            .meta .row > div:first-child {

                font-size: 12px;
            }


            .meta .row > div:last-child {

                font-size: 14px;
            }


            .report-form table {

                margin-top: 18px;

                font-size: 12px;
            }


            .report-form table caption {

                font-size: 14px;
            }


            .report-form table thead th {

                padding: 11px 10px;

                font-size: 11px;
            }


            .report-form table tbody td {

                padding: 11px 10px;
            }
        }


        /* =====================================================
           VERY SMALL SCREEN
           ===================================================== */

        @media (max-width: 380px) {

            .report-form {

                width:
                    calc(100% - 12px);

                padding: 13px;
            }


            .header-wrap h1 {

                font-size: 17px;
            }


            .header-wrap h1 + h1 {

                font-size: 11px;
            }


            select,
            input[type="date"] {

                font-size: 13px;
            }
        }


        /* =====================================================
           ACCESSIBILITY
           ===================================================== */

        button:focus-visible,
        select:focus-visible,
        input:focus-visible {

            outline:
                3px solid
                rgba(180, 0, 0, 0.18);

            outline-offset: 2px;
        }


        /* =====================================================
           REDUCE MOTION
           ===================================================== */

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {

                transition-duration:
                    0.01ms !important;

                animation-duration:
                    0.01ms !important;

                animation-iteration-count:
                    1 !important;
            }
        }


/* STATUS ABSENSI DOKTER */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.status-started {
    color: #176b37;
    background: #eaf7ee;
    border-color: #b9e2c5;
}

.status-badge.status-completed {
    color: #1556a0;
    background: #edf5ff;
    border-color: #c5dcf7;
}

.status-badge.status-pending {
    color: #777777;
    background: #f3f3f3;
    border-color: #dddddd;
}
