/* ======================================= */
/* GENERAL BODY AND CONTAINER STYLES */
/* ======================================= */
body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

body.overlay-open::before,
body.overlay-open::after {
  display: none !important;
  content: none !important;
}

#leftsidebar, .sidebar, aside.sidebar {
  pointer-events: auto !important;
  z-index: 2000 !important;
  position: relative;
}

/* Ini adalah pembungkus utama konten, untuk sticky footer */
#app-content-wrapper {
    flex: 1;
}

.container-fluid {
    padding: 0 10px;
}

/* Memastikan elemen flex-grow-1 bekerja dengan benar tanpa overflow */
.d-flex {
    margin-top: 0;
    width: 100%;
}

/* ======================================= */
/* NAVBAR STYLES */
/* ======================================= */
.navbar {
    border-bottom: 1px solid #727d73;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.navbar-brand img {
    height: 50px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ======================================= */
/* SIDEBAR STYLES */
/* ======================================= */
#leftsidebar.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 235px;
    height: calc(100vh - 80px);
    background-color: #5a74a1;
    z-index: 999;
    overflow-y: auto;
    color: white;
    transition: transform 0.3s ease, margin-left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

/* Biar konten utama tidak ketutup sidebar di desktop */
.content {
    padding: 20px;
    transition: margin-left 0.3s ease, padding 0.3s ease;
}

/* Sidebar Navigation Text/Link Colors */
#leftsidebar a,
#leftsidebar h6,
#leftsidebar p {
    color: white;
    text-decoration: none;
}

#leftsidebar li.header {
    color: white;
    font-weight: bold;
}

#leftsidebar a:hover {
    text-decoration: underline;
}

/* Active Menu Item in Sidebar */
.list li.active > a {
    background-color: #9fb3df;
    color: white;
    font-weight: bold;
}

/* ======================================= */
/* RESPONSIVE STYLES FOR SIDEBAR (MOBILE) */
/* ======================================= */
@media (max-width: 991.98px) {
    #leftsidebar.sidebar {
        top: 80px;
        height: calc(100vh - 80px);
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }

    body.overlay-open #leftsidebar.sidebar {
        transform: translateX(0%);
    }

    .content {
        margin-left: 0;
        padding: 10px;
    }

    body.overlay-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: block;
    }

    body.overlay-open {
        overflow: hidden;
    }

    .card .header h2,
    .card .header small {
        font-size: 0.9em;
    }

    .card .body .px-4 .card .fw-bold {
        font-size: 1em;
        margin-bottom: 10px !important;
    }

    .form-control,
    .form-label,
    .form-check-label {
        font-size: 0.8em;
    }

    .block-header h2 {
        font-size: 1.1em;
        margin-bottom: 5px;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        font-size: 0.75em;
    }

    .input-group.m-b-0 {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .input-group.m-b-0 input {
        padding-right: 40px;
    }

    .input-group-addon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .page-loader-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }
    .page-loader-wrapper .loader {
        text-align: center;
    }

    .card.p-4 {
        padding: 1rem !important;
    }

    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .form-group,
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .d-flex.gap-4 {
        gap: 0.5rem !important;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .block-header {
        padding: 10px 0;
    }

    .card {
        margin-bottom: 10px;
    }

    .header {
        padding: 10px 15px;
    }

    .body.table-responsive {
        padding: 0;
    }

    .form-control,
    .form-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .col-12,
    .col {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    @media (max-width: 767.98px) {
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table {
            min-width: 700px;
        }

        .table th,
        .table td {
            font-size: 0.75em;
            padding: 0.4rem 0.2rem;
            white-space: normal;
            word-wrap: break-word;
        }

        .table td:nth-child(5),
        .table td:nth-child(6) {
            max-width: 150px;
            min-width: 100px;
        }

        .badge {
            font-size: 0.65em;
            padding: 0.1em 0.3em;
        }

        .project-actions .actions {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
        }

        .project-actions .actions a {
            font-size: 0.7em;
            padding: 0.2em 0.4em;
            margin-bottom: 0;
            min-width: unset;
            flex-grow: 1;
        }
    }

    /* ======================================= */
    /* NAVBAR STYLES - KHUSUS MOBILE  */
    /* ======================================= */
    .navbar .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-hamburger-align {
        margin-left: 10px;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-hamburger-placeholder {
        width: 40px;
        margin-left: 10px;
        margin-right: 0 !important;
    }

    .mobile-logo-align {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .mobile-button-right {
        margin-left: auto !important;
        padding-right: 10px !important;
    }

    .navbar-brand img {
        height: 50px;
    }
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
    .five-col-grid .col-lg-3 {
        flex: 0 0 auto;
        width: 20%;
    }

    .content {
        margin-left: 250px;
        padding: 25px 25px 25px 40px;
    }

    .container-fluid {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
}

/* ======================================= */
/* LANDING PAGE SECTIONS */
/* ======================================= */

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.hero-content p {
    font-size: 18px;
    color: #555;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn-start {
    background-color: #003c91;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-start:hover {
    background-color: #002a6b;
    color: #fff;
}

/* Features Section */
.features {
    background-color: #f9f9f9;
    text-align: center;
    padding: 40px 0;
}

.features h2 {
    font-size: 30px;
    color: #333;
}

.features p {
    font-size: 16px;
    color: #555;
}

.features ul {
    list-style-type: none;
    padding-left: 0;
}

.features ul li {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-align: left;
}

.features ul li i {
    margin-right: 10px;
    color: #0d6efd;
    font-size: 15px;
    border-radius: 50%;
    padding: 10px;
}

.btn-learn-more {
    display: inline-block;
    background-color: #003c91;
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-learn-more:hover {
    background-color: #002a6b;
    color: white;
}

/* Steps Section (FIXED: Ensure lines appear) */
.steps {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.steps h1 {
    font-size: 28px;
    color: #333;
}

.step {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
    padding-left: 40px;
}

/* --- FIX UNTUK GARIS VERTIKAL --- */
.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    height: 100%;
    width: 2px;
    background-color: #dbdbdb;
    z-index: 1;
    display: block;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 14px;
    width: 2px;
    background-color: #dbdbdb;
    height: 25px;
    z-index: 1;
    display: block;
}

.step:last-child::before,
.step:last-child::after {
    display: none;
}
/* --- AKHIR FIX GARIS VERTIKAL --- */

.step-number {
    background-color: #003c91;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.step-content {
    color: #333;
}

.step-content h5 {
    font-size: 18px;
    font-weight: 550;
}

.active .step-number,
.completed .step-number {
    background-color: #003c91;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background-color: #fff;
}

.contact-container {
    background-color: #0057a0;
    color: white;
    border-radius: 8px;
    padding: 24px 32px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Tambahkan media query ini untuk menyesuaikan tata letak di mobile */
@media (max-width: 767.98px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .contact-container .text-center.text-md-start {
        text-align: center !important;
    }
}

.contact-container .text {
    flex-grow: 1;
}

.btn-link {
    background-color: #ffff !important;
    color: #003c91 !important;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: #003c91 !important;
    color: #ffff !important;
    border: 1px solid #ffff !important;
}

/* ======================================= */
/* OTHER GENERAL STYLES (from previous context) */
/* ======================================= */

/* DATA PROPOSAL */
.table td,
.table th {
    vertical-align: middle;
    text-align: center;
}

.table td a {
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
}

.table td a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* PROFILE */
.profile-header .body {
    background-color: #303e51;
    color: #fff;
    padding: 20px;
}

.card .body small,
.card .body p {
    color: #303e51;
}

.card .body a {
    color: #5e96e7;
}

/* TIMELINE */
.cbp_tmicon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cbp_tmicon i {
    /* Pastikan ikon di tengah */
    font-size: 24px;
    color: #fff;
}

.cbp_tmicon.bg-info {
    background-color: #17a2b8;
}

.cbp_tmicon.bg-green {
    background-color: #28a745;
}

.cbp_tmicon.bg-orange {
    background-color: #fd7e14;
}

.cbp_tmicon.bg-blush {
    background-color: #e83e8c;
}

/* DATA PROPOSAL ADMIN */
.project-actions .actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.project-actions .actions a {

    font-size: 0.7em;
    padding: 0.2em 0.4em;
    margin-bottom: 0;
    min-width: unset;
}

/* LOGIN */
.authentication {
    background-color: white !important;
}

.register-box.shadow {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 87, 160, 0.5) !important;
    padding: 50px 40px;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}
.register-box.shadow:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(0, 87, 160, 0.5);
    transform: translateY(-5px);
}
.register-box h3.text-center {
    font-size: 27px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.register-box h3.text-center::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0057a0;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Login Button Styling */
.btn-daftar {
    padding: 7px 10px;
    font-size: 17px;
    font-weight: 300;
    border-radius: 10px;
    background: linear-gradient(45deg, #0057a0, #003c91);
    box-shadow: 0 8px 20px rgba(0, 87, 160, 0.4);
    margin-top: 25px;
    letter-spacing: 1px;
    transition: all 0.3s ease-out;
    color: #fff;
    border-color: white;
}

.btn-daftar:hover {
    background: linear-gradient(45deg, #003c91, #002a6b);
    box-shadow: 0 5px 10px rgba(0, 87, 160, 0.5);
    transform: translateY(-1px) scale(1.02);
}

.btn-daftar:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(10deg, #002a6b, #001f50);
}

/* ======================================= */
/* NEWLY ADDED FORM STYLES */
/* ======================================= */

/* Premium Checkbox Styles */
.form-check-input:checked {
    background-color: #0057a0;
    border-color: #0057a0;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 160, 0.25);
}

.form-check-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-check-label-sifat{
  font-weight: normal;
  font-size: 1em;
  margin-bottom: 0;
}

.form-check-inline {
    padding-right: 20px;
}

#cabang_olahraga {
    text-transform: uppercase;
}

/* Responsive submit button */
.submit-button {
    background-color: #0057a0;
    width: 150px;
    color: #fff;
}

@media (max-width: 575.98px) {
    .submit-button {
        width: 100% !important;
    }

    .card.p-4 {
        padding: 1rem !important;
    }

    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .form-group,
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .d-flex.gap-4 {
        gap: 0.5rem !important;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* ======================================= */
/* NAVBAR STYLES - KHUSUS MOBILE */
/* ======================================= */
@media (max-width: 991.98px) {
    /* Hanya berlaku untuk mobile/tablet */
    .navbar .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Penyesuaian untuk hamburger dan logo di kiri */
    .mobile-hamburger-align {
        margin-left: 10px;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-hamburger-placeholder {
        width: 40px;
        margin-left: 10px;
        margin-right: 0 !important;
    }

    .mobile-logo-align {
        padding-left: 0 !important;
        margin-left: 0px !important;
    }

    /* Penyesuaian untuk tombol Masuk/Logout di kanan */
    .mobile-button-right {
        margin-left: auto !important;
        padding-right: 10px !important;
    }

    .navbar-brand img {
        height: 50px;
    }
}

/* TANDA TERIMA */

.table-receipt,
.table-receipt td,
.table-receipt th {
    border: 1px solid #000;
    background-color: white;
}

.table-receipt td,
.table-receipt th {
    padding: 6px;
    vertical-align: top;
    border-collapse: collapse;
}

.no-border {
    border: none !important;
}

.logo {
    height: 110px;
    max-width: 100%;
}

.kop {
    text-align: center;
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

input[type="checkbox"] {
    margin-right: 5px;
}

.text-center {
    text-align: center;
}

.left-align-content {
    text-align: left;
    padding-left: 6px;
}

.vertical-middle {
    vertical-align: middle;
}

.print-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
}

.table-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 50px;
}

table.table-receipt {
    width: 100%;
    border-collapse: collapse;
}

.qr-code-cell {
    text-align: center;
    vertical-align: middle;
    width: 20%;
    padding: 8px;
}

#qrcode canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding: 3px;
    background-color: white;
}

.qr-code-cell p {
    font-size: 9px;
    margin-top: 3px;
    line-height: 2;
    color: #000;
    text-align: center;
}

.info-cell {
    padding: 8px;
}

.salma-cell {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: 80px;
    display: table-cell;
    vertical-align: top;
}

@media screen{
    .copy-arsip-section{
        display: none;
    }

    .copy-user-section .copy-user-span{
        display: none;
    }
}

/* Print Tanda Terima Proposal */
@media print {
    .print-button-wrapper {
        display: none !important;
    }

    .print-page {
        background-color: white;
        margin-bottom: 50px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        display: block !important;
    }

    body,
    main.content {
        padding: 0 !important;
        margin: 0 !important;
        background-color: white !important;
        min-height: auto !important;
        display: block !important;
    }

    .table-container {
        width: 100% !important;
        max-width: none !important;
    }

    #qrcode {
        width: 80px !important;
        height: 80px !important;
        overflow: hidden;
        margin: 0 auto !important;
        margin-top: 20px !important;
    }

    #qrcode canvas {
        width: 80px !important;
        height: 80px !important;
        border: none !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .table-receipt {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .table-receipt td,
    .table-receipt th {
        padding: 4px !important;
    }

    .qr-code-cell {
        width: 20% !important;
        padding: 4px !important;
    }

    .qr-code-cell p {
        font-size: 7px !important;
        margin-top: 1px !important;
    }

    .col-header-main {
        width: 80% !important;
    }

    .salma-cell {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        min-height: 60px !important;
    }
}

/* DISPOSISI */
.info-border{
    width: 1px;
}

 .card-disposisi {
    border: 1px solid #000;
    background-color: #fff;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
    /* Ensure table borders are single */
    width: 100%;
}

        /* Table styles */
        .card-disposisi table {
            width: 100%;
            border-collapse: collapse; /* Membantu mempertahankan lebar kolom */
        page-break-inside: avoid; /
        }

        .card-disposisi th,
        .card-disposisi td {
            border: 1px solid #000;
            padding: 5px;
            vertical-align: top;
            /* Align content to top by default */
        }

        .card-disposisi th {
            font-weight: bold;
            background-color: #f0f0f0;
            /* Light background for headers */
            text-align: left;
        }

        /* Header Specific Styles */
        .header-logo {
            text-align: center;
            vertical-align: middle;
            width: 5% !important;
        }

        .header-logo img {
            max-height: 50px;
            margin-bottom: 3px;

        }

        .header-logo p {
            font-size: 0.65em;
            font-weight: bold;
            margin: 0;
            line-height: 1;
        }

        .header-title {
            text-align: center;
            vertical-align: middle;
            width: 35%;
        }

        .header-title h3 {
            font-weight: bold;
            padding-top: 2rem;
        }

        .header-info-atas {
            width: 40% !important;
            padding: 0;
            /* Remove default cell padding */
        }

        .header-info-item {
            display: flex;
            align-items: center;
            padding: 2px 5px;
            min-height: 30px;
            border-bottom: 1px solid #000;
        }

        .header-info-item:last-child {
            border-bottom: none;
        }

        .header-info-label {
            font-size: 0.8em;
            font-weight: bold;
            width: 70px;
            flex-shrink: 0;
        }

        .header-info-value {
            font-weight: bold;
            font-size: 0.9em;
            flex-grow: 1;
            text-align: end;
        }

        /* Info Section (DARI, PERIHAL, SIFAT, No. Surat, Tgl. Surat) */
        .info-label {
            font-weight: bold;
            width: 120px;
            font-size: 12px;
            vertical-align: middle;
        }

        .info-field {
            text-align: left;
            vertical-align: middle;
            font-size: 12px;
        }

        .sifat-options .form-check-inline {
            margin-bottom: 5px;
            font-size: 14px;
            margin-right: 1.2rem;
            font-size: 0.8em;
        }

        .no-tgl-surat-label {
            font-weight: bold;
            width: 80px;
            font-size: 10px;
            vertical-align: middle;
        }

        .no-tgl-surat-field {
            vertical-align: middle;
            font-size: 10px;
        }

        /* Disposisi Area */
        .disposisi-header-cell {
            font-weight: bold;
            text-align: center;
            background-color: #f0f0f0;
            font-size: 1.1em;
        }

        .disposisi-notes-cell {
            min-height: 80px;
            /* Adjust as needed for content */
            vertical-align: top;
            width: 25%;
            /* Adjusted width as Diteruskan ke is now separate */
        }

        .disposisi-kelengkapan-cell {
            min-height: 80px;
            /* Adjust as needed for content */
            vertical-align: top;
            width: 25%;
            /* Fixed width for kelengkapan */
        }

        .disposisi-diteruskan-cell {
            min-height: 80px;
            /* Adjust as needed for content */
            vertical-align: top;
            width: 25%;
            /* Fixed width for diteruskan ke */
        }

        .disposisi-notes-cell label,
        .disposisi-kelengkapan-cell label,
        .disposisi-diteruskan-cell label {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 0.85em;
            line-height: 0.5;
            display: block;
            /* Ensure label takes its own line */
        }

        .disposisi-notes-cell p {
            margin-bottom: 2px;
            font-size: 0.85em;
        }

        .disposisi-option-group {
            padding-top: 5px;
            padding-bottom: 5px;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            padding-left: 10px;
            line-height: 15px;
            /* Indent for checkboxes */
        }

        .disposisi-option-group .form-check {
            margin-bottom: 0px;

        }

        .disposisi-option-group .form-check-label {
            font-weight: normal;
            font-size: 0.8em;
            line-height:2;


        }

        /* Footer Notes Area (Sekum, Wk Sekum, Ketua, Ketum) */
        .footer-notes-label {
            font-weight: bold;
            font-size: 0.8em;
            line-height: 1.2;
            vertical-align: bottom;
            padding-bottom: 2px;
        }

        .footer-notes-line {
            border-bottom: 1px dotted #555;
            vertical-align: bottom;
            text-align: center;
            font-size: 0.8em;
            font-weight: bold;
            padding-bottom: 2px;
        }

        /* Print Button */
        .print-button-container {
            text-align: center;
        }
        .outer-wrapper {
            position: relative; /* Ini akan menjadi referensi untuk posisi absolut tombol */
            width: 100%; /* Pastikan mengisi lebar penuh */
            max-width: 21.59cm; /* Lebar maksimal A4 */
            margin: 0 auto; /* Tengah di halaman */
            padding-top: 50px; /* Memberi ruang di atas untuk tombol */
            box-sizing: border-box;
        }

        @media print {
            .print-button-container {
                display: none;
                /* Hide print button when printing */
            }

            body {
                padding: 0;
                /* Remove padding for print */
                background-color: #fff;
            }

            .card-disposisi {
                box-shadow: none;
                /* Remove shadow for print */
                border: none;
                 max-height: 270mm;
                /* Remove outer border if desired for print */
            }

            /* Adjust margins and padding for print if necessary */
            table,
            tr,
            td {
                page-break-inside: avoid;
                /* Prevent breaking sections across pages */
            }
        }

        /* FORM CEKLIS */


            .form-wrapper {
                width: 20.8cm; /* Sedikit kurang dari A4 untuk mencegah scrollbar */
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                background-color: #fff;
                padding: 10px; /* Kurangi padding wrapper untuk tampilan di layar */
                box-sizing: border-box; /* Include padding in width */
            }

            .form-table {
                width: 100%;
                border-collapse: collapse; /* Remove space between cells */
                border: 2px solid #000; /* Main border for the entire form */
            }

            .form-table td {
                padding: 5px; /* Default padding for cells, sedikit dikurangi */
                vertical-align: top; /* Align content to top of cell */
                border: 1px solid #ddd; /* Subtle inner borders */
                box-sizing: border-box; /* Include padding in cell dimensions */
            }

            /* Header Section */
            .header-cell {
                padding-bottom: 3px; /* Adjust padding for header */
                border-bottom: 1px solid #000; /* Menggunakan border hitam solid untuk header */
                vertical-align: middle;
            }

            .header-left {
                width: 15%; /* Adjust width for logo */
                text-align: left;
                border-right: none; /* Remove right border */
            }



                .logo-disposisi{
             height: 200px !important;
                }

            .header-center {
                width: 55%; /* Adjust width for title */
                text-align: center;
                border-left: none; /* Remove left border */
                border-right: none; /* Remove right border */
            }

            /* Styling untuk Catatan, Tanggal Masuk, Paraf di Header Kanan Atas */
            .header-top-right {
                text-align: right;
                padding: 3px; /* Sesuaikan padding */
                font-size: 0.75rem; /* Sedikit dikecilkan */
                vertical-align: top; /* Pastikan rata atas */
            }

            .header-meta-top {
                width: 15%; /* Lebar untuk Catatan */
                border-bottom: 1px solid #000;
            }

            .header-tanggal {
                width: 15%; /* Lebar untuk Tanggal Masuk */
                border-bottom: 1px solid #000;
            }

            .header-paraf-cell {
                width: 15%; /* Lebar untuk Paraf */
                border-bottom: 1px solid #000;
            }

            .header-input-box {
                width: 100%;
                border: 1px solid #000;
                padding: 1px 3px;
                box-sizing: border-box;
                font-size: 0.7rem; /* Sedikit dikecilkan */
                resize: none;
                overflow: hidden; /* Sembunyikan scrollbar jika tidak diperlukan */
                height: 20px; /* Tinggi standar untuk input tanggal, sedikit dikurangi */
                margin-top: 2px;
                text-align: center;
            }

            .header-paraf-cell .header-input-box {
                height: 30px; /* Tinggi lebih besar untuk paraf */
            }
            .header-catatan-input .header-input-box {
                height: 40px; /* Tinggi lebih besar untuk catatan */
            }

            /* Data Row (DARI / PENGIRIM, PERIHAL) */
            .data-row {
                padding-top: 7px;
                padding-bottom: 7px;
                border-bottom: 1px solid #000; /* Konsisten dengan border hitam */

            }

            /* Checkbox Row (KODE PROPOSAL) */
            .checkbox-row {
                padding: 7px 5px;
                border-bottom: 1px solid #000; /* Konsisten dengan border hitam */
            }

            .checkbox-row .checkbox-label {
                margin-right: 10px; /* Space between checkboxes */
                font-size: 0.8rem; /* Sedikit dikecilkan */
                display: inline-flex; /* Allow vertical alignment of text and checkbox */
                align-items: center;
            }

            .checkbox-row input[type="checkbox"] {
                margin-right: 3px;
                transform: scale(0.9); /* Kecilkan sedikit checkbox */
            }

            /* Section Heading (PERSYARATAN DOKUMEN PENGAJUAN) */
            .section-heading-cell {
                background-color: #e9ecef; /* Light grey background */
                text-align: center;
                font-weight: bold;
                padding: 7px 5px;
                border: 1px solid #000; /* Stronger border */
                border-left: 2px solid #000; /* Sesuaikan border luar */
                border-right: 2px solid #000; /* Sesuaikan border luar */
                border-bottom: 2px solid #000;
                margin-top: 7px;
            }

            /* Content Cells (Sections 1-10) */
            .content-cell {
                border: 1px solid #000; /* Stronger border for content boxes */
                padding: 0; /* Remove default cell padding, use padding on inner div */
                width: 50%; /* Each content cell takes 50% width of the table row */
            }

            .section-box {
                padding: 10px; /* Padding inside the section box, sedikit dikurangi */
                height: 100%; /* Ensure boxes fill their cell height */
                box-sizing: border-box; /* Include padding in height */
                display: flex;
                flex-direction: column;
            }

            .section-title {
                font-size: 0.9rem; /* Sedikit perkecil */
                margin-bottom: 7px;
                padding-bottom: 3px;
                /* border-bottom: 1px dashed #999; <-- BARIS INI DIHILANGKAN/DIKOMENTARI */
            }

            .checkbox-list-item {
                display: block; /* Each checkbox on a new line */
                margin-bottom: 3px; /* Space between checkbox items */
                font-size: 0.8rem; /* Sedikit perkecil */
                line-height: 1.15; /* Lebih rapat */
            }

            .checkbox-list-item input[type="checkbox"] {
                margin-right: 5px;
                vertical-align: middle; /* Align checkbox with text */
                transform: scale(0.9); /* Kecilkan sedikit checkbox */
            }

            /* Perbaikan khusus untuk border di header dan border luar tabel */
            .header-left,
            .header-center{
                border-bottom: 1px solid #000 !important;
            }
            .header-top-right {
                border-bottom: 1px solid #000 !important;
                 text-align: left;
            }
            .form-table > thead > tr > .header-left {
                border-left: 2px solid #000 !important;
            }
            .form-table > thead > tr > .header-tanggal {
                border-right: 2px solid #000 !important;
            }
            .form-table > thead > tr:nth-child(2) > .data-row {
                border-left: 2px solid #000 !important;

            }
            .form-table > thead > tr:nth-child(2) > .header-paraf-cell {
                border-right: 2px solid #000 !important;
            }
            .form-table > thead > tr:nth-child(3) td {
                border-left: 2px solid #000 !important;
                border-right: 2px solid #000 !important;
            }
            .form-table > thead > tr:nth-child(4) td {
                border-left: 2px solid #000 !important;
                border-right: 2px solid #000 !important;
            }
            .form-table tbody tr td:first-child {
                border-left: 2px solid #000 !important;
            }
            .form-table tbody tr td:last-child {
                border-right: 2px solid #000 !important;
            }
            .form-table tbody tr:last-child td {
                border-bottom: 2px solid #000 !important;
            }
            .small-info{
                text-align: start !important;
            }

            /* ========================================= */
            /* ATURAN UNTUK PENCETAKAN (PRINT MEDIA QUERY) */
            /* ========================================= */
            @media print {
                        body {
                            margin: 0;
                            padding: 0;
                            background-color: #fff;
                            -webkit-print-color-adjust: exact;
                            print-color-adjust: exact;
                            display: block;
                        }
                        @page {
                            /* Margin sangat minimal agar formulir mengisi hampir seluruh halaman */
                            size: A4 portrait;
                            margin: 0.5cm; /* Sangat kecil untuk memaksimalkan ruang */
                        }

                        .form-wrapper {
                            width: calc(100vw - 1cm); /* 100vw - (2 * 0.5cm margin) */
                            height: calc(100vh - 1cm); /* Mengisi tinggi penuh kertas */
                            box-shadow: none;
                            padding: 0;
                            border: none;
                            box-sizing: border-box; /* Pastikan padding dan border masuk perhitungan width/height */
                        }
                        .outer-wrapper {
                width: 100vw;
                max-width: none; /* Hilangkan max-width saat cetak */
                padding-top: 0; /* Hilangkan padding top saat cetak */
                margin: 0; /* Hilangkan margin auto saat cetak */
            }

                .form-table {
                    width: 100%; /* Mengisi seluruh lebar form-wrapper */
                    height: 100%; /* Mengisi seluruh tinggi form-wrapper */
                    border-collapse: collapse;
                    border: 2px solid #000 !important; /* Main border */
                    table-layout: fixed; /* Membantu kontrol lebar kolom */
                }

                .form-table td {
                    padding: 3px !important; /* Tingkatkan padding dari sebelumnya agar tidak terlalu kecil */
                    font-size: 1.2em !important; /* Tingkatkan ukuran font umum untuk cetak */
                    border: 1px solid #000 !important; /* Semua internal border 1px solid black */
                }

                .header-cell {
                    padding-bottom: 2px !important;
                }

                .header-center .fw-bold {
                    font-size: 1em !important; /* Ukuran font judul utama lebih besar */
                }

                .header-top-right {
                    padding: 2px !important;
                    font-size: 0.7rem !important;
                    vertical-align: top !important; /* Pastikan di pojok kiri atas */
                    text-align: left !important; /* Pastikan rata kiri */
                }

                .header-input-box {
                    padding: 2px 3px !important;
                    font-size: 0.65rem !important;
                    height: 18px !important;
                    margin-top: 2px !important;
                }
                .header-paraf-cell .header-input-box {
                    height: 25px !important;
                }
                .header-catatan-input .header-input-box {
                    height: 35px !important;
                }

                .data-row {
                    padding: 5px !important;
                    font-size: 0.75em !important;

                }
                .data-row-content-wrapper {
                    display: flex;
                    align-items: center;
                    height: 100%;
                    gap: 5px !important; /* Pastikan gap tetap proporsional */
                }

                .checkbox-row {
                    padding: 5px !important;
                }

                .checkbox-row .checkbox-label {
                    margin-right: 8px !important;
                    font-size: 1em !important;
                }
                .checkbox-row input[type="checkbox"] {
                    transform: scale(0.85) !important;
                    margin-right: 3px !important;
                }

                .section-heading-cell {
                    padding: 6px !important;
                    font-size: 0.9em !important;
                }

                .section-box {
                    padding: 8px !important;
                    height: 100%; /* Penting: Pastikan box mengisi tinggi cell */
                }

                .section-title {
                    font-size: 1rem !important;
                    margin-bottom: 5px !important;
                    padding-bottom: 2px !important;
                }

                .checkbox-list-item {
                    margin-bottom: 2px !important;
                    font-size: 1.2rem !important;
                    line-height: 1.4 !important;
                }
                .checkbox-list-item input[type="checkbox"] {
                    transform: scale(0.85) !important;
                }

                /* Pastikan semua border eksternal 2px dan internal 1px saat print */
                .form-table tr:first-child td {
                    border-top: 2px solid #000 !important;
                }
                .form-table tr:last-child td {
                    border-bottom: 2px solid #000 !important;
                }
                .form-table td:first-child {
                    border-left: 2px solid #000 !important;
                }
                .form-table td:last-child {
                    border-right: 2px solid #000 !important;
                }

                .header-left {
                    border-left: 2px solid #000 !important;
                }
                .header-paraf-cell {
                    border-right: 2px solid #000 !important;
                }
                .header-cell.header-tanggal {
                    border-right: 1px solid #000 !important;
                }
                .header-top-right.header-catatan-input {
                    border-right: 1px solid #000 !important;
                }
                .header-center {
                    border-right: 1px solid #000 !important;
                }
                .form-table tr:nth-child(2) td:first-child,
                .form-table tr:nth-child(3) td:first-child,
                .form-table tr:nth-child(4) td:first-child,
                .form-table tr:nth-child(5) td:first-child {
                    border-left: 2px solid #000 !important;
                }
                .form-table tr td:nth-child(1).content-cell {
                    border-left: 2px solid #000 !important;
                }

                /* Pastikan elemen tidak terpotong di antara halaman */
                .form-table,
                .section-box,
                .data-row,
                .checkbox-row,
                .header-cell {
                    break-inside: avoid;
                }
                /* Mengatasi potensi pemisahan baris dalam label yang panjang */
                .checkbox-list-item label {
                    display: block; /* Ensure the label acts as a block */
                    page-break-inside: avoid; /* Prevent breaking inside the label */
                }
            }
            .data-row-with-content {
                padding: 5px !important;
                vertical-align: middle !important; /* Memusatkan vertikal */
            }
                 .form-table .header-paraf-cell .header-input-box {
            height: 40px !important;
            font-size: 15px !important;
            align-items: center !important;
            padding-top: 9px !important;
        }


        .form-table .logo-bandung {
            max-width:80% !important;
            max-height:80% !important;
            width: auto !important;
            height: auto !important;
            display: block !important;
            margin: 0 auto !important;
            object-fit: contain;
        }
        .form-table .logo-undangan {
            max-width:95% !important;
            max-height:95% !important;
            width: auto !important;
            height: auto !important;
            display: block !important;
            margin: 0 auto !important;
            object-fit: contain;
        }

        /* MEDIA PRINT FORM PEMINJAMAN */
           @media print {
        body {
            -webkit-print-color-adjust: exact !important;
            /* For Chrome, Safari */
            print-color-adjust: exact !important;
            /* Standard */
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            font-size: 11pt;
            /* Menyesuaikan ukuran font untuk print agar tidak terlalu besar */
            color: #000;
            /* Pastikan warna teks hitam */
        }


        .form-table {
            width: 100% !important;
            border-collapse: collapse !important;
            table-layout: fixed;
            height: auto !important;
            flex-grow: 0 !important;
        }



        .form-table .header-center .fw-bold {
            font-size: 1.6em !important;
            margin-bottom: 0 !important;
        }

        .form-table .header-center .fs-5 {
            font-size: 1.3em !important;
            margin-top: 0 !important;
        }

        .form-table .header-top-right {
            width: 17.5% !important;
            text-align: left !important;
            padding: 5px !important;
            font-size: 0.9em !important;
        }

        .form-table .header-top-right span {
            display: inline-block;
            vertical-align: top;
        }

        .form-table .header-paraf-cell .header-input-box {
            height: 60px !important;
            font-size: 20px !important;
            align-items: center !important;
            padding-top: 12px !important;
        }

        .form-table .logo-bandung {
            max-width: 70% !important;
            max-height:70% !important;
            width: auto !important;
            height: auto !important;
            display: block !important;
            margin: 0 auto !important;
            object-fit: contain;
        }

        /* Data Rows */
        .form-table .data-row {
            padding: 5px 8px !important;
            font-size: 0.95em !important;
            height: auto !important;
        }

        .form-table .checkbox-row .fw-bold {
            vertical-align: middle;
        }

        .form-table .checkbox-row .d-inline-block {
            display: inline-block !important;
            vertical-align: middle;
        }

        .form-table .checkbox-label {
            font-size: 0.90em !important;
            white-space: nowrap;
            display: inline-flex !important;
            align-items: center;
            margin-top: 5px !important;
        }

        .form-table .checkbox-label input[type="checkbox"] {
            margin-right: 5px !important;
            transform: scale(0.9) !important;
        }

        /* Section Heading */
        .form-table .section-heading-cell {
            background-color: #f0f0f0 !important;
            text-align: center !important;
            padding: 8px !important;
        }

        .form-table .section-heading {
            font-weight: bold !important;
            font-size: 1.1em !important;
        }

        /* Content Cells (Peminjaman Barang/Tempat) */
        .form-table .content-cell {
            width: 50% !important;
            vertical-align: top !important;
            padding: 10px !important;
        }

        .form-table .section-box {
            border: none !important;
            padding: 0 !important;
        }

        .form-table .section-title {
            margin-bottom: 8px !important;
            font-size: 1em !important;
        }

        .form-table .checkbox-list-item {
        display: block !important;
        margin-bottom: 5px !important;
        font-size: 0.85em !important; /* Coba kurangi dari 0.95em menjadi 0.8em atau 0.75em */
        white-space: nowrap !important; /* Tetap pertahankan ini */
        overflow: visible !important; /* Pastikan tidak ada hidden overflow */
        text-overflow: clip !important; /* Pastikan tidak ada ellipsis */
    }

        .form-table .checkbox-list-item input[type="checkbox"] {
            margin-right: 8px !important;
            transform: scale(0.9) !important;
        }

        /* Ensure no page breaks inside critical sections */
        .form-table,
        .form-table thead,
        .form-table tbody,
        .form-table tr {
            page-break-inside: avoid !important;
        }

        /* Custom page margins for print */
        @page {
            size: A4 portrait;
            margin: 1cm;
        }

}