body { font-family: 'Khmer OS', Arial, sans-serif; background: #f4f6f8; margin: 0; padding: 20px; }
.container { max-width: 520px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.container.wide { max-width: 950px; }
h1 { color: #1a5f3f; text-align: center; margin-bottom: 4px; }
h2 { text-align: center; font-size: 16px; color: #555; margin-top: 0; }
label { display: block; margin-top: 12px; margin-bottom: 4px; font-weight: bold; }
input, textarea, select { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }
.product-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.product-row .product-select { flex: 2; }
.product-row .qty-input { flex: 0 0 60px; }
.product-row .price-input { flex: 0 0 80px; }
.remove-btn { background: #e05252; color: #fff; border: none; border-radius: 4px; cursor: pointer; width: 32px; height: 36px; }
#addProductBtn { margin-top: 8px; background: #1a5f3f; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
#submitBtn { margin-top: 12px; width: 100%; background: #1a5f3f; color: #fff; border: none; padding: 12px; border-radius: 4px; font-size: 16px; cursor: pointer; }
#statusMsg { text-align: center; font-weight: bold; }
.total-display { text-align: right; font-weight: bold; margin: 12px 0; font-size: 16px; color: #1a5f3f; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { border: 1px solid #ddd; padding: 8px; font-size: 13px; text-align: left; }
th { background: #1a5f3f; color: #fff; }
#refreshBtn { background: #1a5f3f; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; margin-bottom: 12px; }
.adminLink { text-align: center; margin-top: 16px; }
.adminLink a { color: #1a5f3f; }
.nav-links { text-align: center; margin-bottom: 12px; }
.nav-links a { color: #1a5f3f; margin: 0 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filters label { margin: 0; font-size: 12px; }
.filters input { width: 140px; padding: 6px; }
.filters button { padding: 8px 12px; background: #1a5f3f; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.edit-btn, .delete-btn, .save-btn { padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; margin-right: 4px; font-size: 12px; }
.edit-btn, .save-btn { background: #2b6cb0; color: #fff; }
.delete-btn { background: #e05252; color: #fff; }
.stat-row { margin-bottom: 14px; }
.stat-label { font-weight: bold; margin-bottom: 4px; }
.stat-bar-bg { background: #eee; border-radius: 4px; overflow: hidden; height: 18px; }
.stat-bar { background: #1a5f3f; height: 100%; }
.stat-value { font-size: 12px; color: #555; margin-top: 2px; }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.invoice th, .invoice td { border: 1px solid #ddd; padding: 6px; font-size: 13px; }
.invoice-total { text-align: right; font-size: 16px; margin-top: 12px; }
#printBtn { margin-top: 16px; background: #1a5f3f; color: #fff; border: none; padding: 10px 16px; border-radius: 4px; cursor: pointer; }
@media print { .no-print { display: none; } }
