* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

/* RESET CONTAINER (TIDAK DIUBAH) */
.reset-container {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: white;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.2);
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* ✅  RESET BUTTON 
.btn-reset {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;      
    max-width: none;
    margin: 0;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* hover tetap aman */
.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

/* SECTION */
.input-section, .cart-section {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-title {
    color: #4a5568;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* BUTTON UTAMA */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-small {
    padding: 5px 10px !important;
    font-size: 12px !important;
    width: auto !important;
}

/* BUTTON GROUP */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TABLE */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* TOTAL */
.total-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 20px;
    border-radius: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

/* KASIR */
.kasir-info {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.kasir-name {
    font-size: 1.3em;
    font-weight: 700;
}

/* ACTION BUTTONS */
.action-buttons {
    margin-top: 15px;
}
<style>
@media print {
  @page {
    
.print-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.struk {
    width: 300px;
    background: white;
    padding: 15px;
    font-size: 14px;
    color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.struk-header {
    text-align: center;
    margin-bottom: 10px;
}

.struk-header h2 {
    margin: 0;
    font-size: 18px;
}

.struk-header p {
    margin: 2px 0;
    font-size: 12px;
}

.struk-items {
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    padding: 10px 0;
    margin: 10px 0;
}

.item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.struk-total {
    margin-top: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.grand-total {
    font-weight: bold;
}

.struk-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.print-actions {
    margin-top: 20px;
}

.btn {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-success {
    background: green;
    color: white;
}

.btn-danger {
    background: red;
    color: white;
}

/* ===== PRINT MODE (INI PENTING) ===== */
@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }

    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    .print-container {
        padding: 0;
    }

    .struk {
        width: 80mm;
        box-shadow: none;
        font-size: 11px;
        padding: 5px;
    }

    .print-actions {
        display: none;
    }

    .loading {
        display: none;
    }
}