body {
    font-family: sans-serif;
    margin: 8px;
    background: #f8fafc;
    color: #1e293b;
    padding-bottom: 40px; 
}

.container {
    max-width: 450px;
    margin: 0 auto;
}

.brand {
    text-align: center;
    padding: 5px 0;
    border-bottom: 2px solid #10b981; 
    margin-bottom: 10px;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    color: #059669; 
    font-weight: 800;
}

.brand p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #94a3b8;
    font-weight: bold;
}

.card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #10b981; 
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

input {
    width: 100%;
    padding: 8px;
    margin: 4px 0 8px 0;
    border: 1px solid #10b981;
    border-radius: 8px; 
    box-sizing: border-box;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center; /* Membuat teks isian form menjadi rata tengah */
}

input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.btn {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.btn-emerald { background: #059669; color: white; }
.btn-warn { background: #ea580c; color: white; }
.btn-red { background: #dc2626; color: white; }
.btn-gray { background: #cbd5e1; color: #1e293b; }

table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    font-size: 12px;
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #10b981; 
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3); 
}

th, td {
    border-bottom: 1px solid #10b981; 
    border-right: 1px solid #10b981; 
    padding: 8px 6px;
    text-align: center; /* 👈 Ubah bagian ini menjadi center */
}

/* Menghilangkan garis ganda di ujung tabel */
th:last-child, td:last-child {
    border-right: none;
}
tr:last-child td {
    border-bottom: none;
}

th {
    background: #ecfdf5; 
    color: #065f46;
    text-align: center; 
}

.total-box {
    background: #f0fdf4;
    border: 1px dashed #10b981; 
    padding: 8px;
    border-radius: 6px;
    text-align: right;
    margin-top: 8px;
}

.pajak-box {
    background: #fdf2f2;
    border: 1px solid #fecaca; 
    padding: 8px;
    border-radius: 6px;
    text-align: right;
    margin-top: 8px;
    display: none;
}

.btn-sml {
    padding: 3px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-right: 2px;
}

/* Footer Melayang */
.floating-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #f8fafc; 
    border-top: 1px solid #10b981; 
    padding: 8px; text-align: center; font-size: 10px; 
    color: #64748b; font-weight: bold; box-sizing: border-box; z-index: 1000;
    box-shadow: 0 -2px 10px rgba(16, 185, 129, 0.2); 
}

/* Custom Alert & Confirm Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); display: none; 
    justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(2px);
}
.modal-box {
    background: white; padding: 15px; border-radius: 8px; width: 260px;
    text-align: center; border: 1px solid #10b981; 
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); 
}
.modal-text { font-size: 13px; color: #1e293b; margin-bottom: 15px; font-weight: bold; line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; justify-content: center; }
.modal-actions .btn { padding: 6px 12px; font-size: 12px; }