:root { --jt-red: #e61212; --bg-light: #f4f7f6; }
body { font-family: 'Segoe UI', sans-serif; background: var(--bg-light); margin: 0; }

/* Login */
.login-body { background: #f0f0f0; display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { background: white; padding: 40px; border-radius: 12px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 320px; border-top: 5px solid var(--jt-red); }
.logo { width: 120px; margin-bottom: 20px; }

/* Layout */
.navbar { background: white; padding: 10px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.container { padding: 30px; display: flex; justify-content: center; }
.card { background: white; padding: 30px; border-radius: 8px; width: 100%; max-width: 1000px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Form Elements */
h4 { color: var(--jt-red); font-size: 12px; border-left: 3px solid var(--jt-red); padding-left: 10px; margin-bottom: 15px; }
input, select, textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; box-sizing: border-box; }
select { background: #fff; cursor: pointer; }

.footer-form { display: flex; gap: 10px; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.btn-generate { background: var(--jt-red); color: white; border: none; padding: 0 30px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-red { background: var(--jt-red); color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); overflow: auto; }
.modal-content { background: white; margin: 5% auto; padding: 20px; width: 450px; border-radius: 10px; position: relative; }
.alert-box { width: 300px; text-align: center; }
.close { position: absolute; right: 20px; top: 10px; font-size: 24px; cursor: pointer; }

/* Waybill Print */
.jnt-style { border: 2px solid black; background: white; color: black; }
.wb-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 2px solid black; }
.wb-type { border: 2px solid black; padding: 2px 10px; font-weight: bold; }
.wb-barcode-area { text-align: center; padding: 15px; border-bottom: 1px solid black; }
.wb-info-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid black; min-height: 120px; }
.info-box { padding: 10px; border-right: 1px solid black; font-size: 11px; }
.info-box:last-child { border-right: none; }
.wb-details { display: flex; justify-content: space-around; padding: 10px; font-weight: bold; font-size: 13px; }

@media print {
    body * { visibility: hidden; }
    #waybillContent, #waybillContent * { visibility: visible; }
    #waybillContent { position: absolute; left: 0; top: 0; width: 100%; }
}