/* ================== Transaksi Container ================== */
/* 🚫 Cegah keclap sidebar */
.sidebar-hide-temp .main-sidebar {
  visibility: hidden !important;
}

.transaksi-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.transaksi-container h3 {
    text-align: center;
    margin-bottom: 25px;
}
.transaksi-info, .transaksi-detail {
    margin-bottom: 20px;
}
.transaksi-info label {
    font-weight: bold;
    width: 150px;
    display: inline-block;
}
.transaksi-detail table {
    width: 100%;
    border-collapse: collapse;
}
.transaksi-detail th, .transaksi-detail td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.transaksi-detail th {
    background-color: #f1f1f1;
    text-align: center;
}

/* ================== My Table & Pagination ================== */
.my-table thead th,
.my-table thead td {
    vertical-align: middle;
    text-align: center;
    background-color: #f8f9fa;
}
.my-table td {
    vertical-align: middle;
}
#searchInput {
    width: 30%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.pagination {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* ================== Detail Container ================== */
.detail-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}
.detail-container h3 {
    margin-bottom: 20px;
}
.info-group {
    display: flex;
    margin-bottom: 10px;
}
.info-group .label {
    width: 180px;
    font-weight: 600;
    color: #333;
}
.info-group .colon {
    width: 10px;
}
.info-group .value {
    flex: 1;
    color: #555;
}
table th,
table td {
    vertical-align: middle !important;
    text-align: center;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.btn-submit,
.btn-cancel {
    padding: 10px 24px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.btn-submit {
    background-color: #27ae60;
    color: white;
}
.btn-cancel {
    background-color: #e74c3c;
    color: white;
}
.btn-close-x {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* ================== Form Container ================== */
.form-container {
    max-width: 960px;
    margin: 30px auto;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}
.form-container h3 {
    margin-bottom: 20px;
}
.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 0.5fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.item-row select,
.item-row input {
    height: 38px;
}
.total-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: bold;
}
.preview-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
}
.preview-table th,
.preview-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
.invalid-balance {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

 @media print {
    body * {
        visibility: hidden; /* Semua elemen disembunyikan */
    }

    #printArea, #printArea * {
        visibility: visible; /* Hanya area print yang terlihat */
    }

    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important; /* Tombol dan elemen lain tidak dicetak */
    }
}

        
    