*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Arial,sans-serif;background:#f5f3fb;color:#222}
.header{background:linear-gradient(135deg,#5b16d0,#9b4dff);color:#fff;padding:18px 30px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 22px rgba(91,22,208,.22)}
.header b{font-size:22px}.header a{color:#fff;text-decoration:none;margin-left:18px;font-weight:bold}.header a:hover{opacity:.85}
.box{max-width:1280px;margin:30px auto;background:#fff;padding:30px;border-radius:18px;box-shadow:0 8px 25px rgba(0,0,0,.08)}
h2{margin-bottom:22px}.grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}.field{margin-bottom:18px}label{display:block;margin-bottom:8px;font-weight:bold}
input,select{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;outline:none}input:focus{border-color:#7b2ff7}
.card{margin-top:20px;padding:20px;background:#faf8ff;border:1px solid #ece7ff;border-radius:15px;box-shadow:0 8px 22px rgba(123,47,247,.07)}.card h3{color:#6b21d8;margin-bottom:10px}
.btn,button{display:inline-block;padding:9px 14px;margin:2px;border:none;border-radius:10px;background:#7b2ff7;color:#fff;text-decoration:none;font-weight:bold;cursor:pointer;transition:.2s}.btn:hover,button:hover{opacity:.9}.btn-grey{background:#ddd;color:#333}.btn-red,.btn-delete{background:#ef4444}.btn-blue,.btn-print{background:#2563eb}.btn-yellow,.btn-edit{background:#f59e0b}.btn-view{background:#7b2ff7}
table{width:100%;border-collapse:collapse;margin-top:20px}th{background:#faf8ff;padding:14px;text-align:left}td{padding:14px;border-bottom:1px solid #eee;vertical-align:middle}td:last-child{white-space:nowrap;width:260px}.table-note{font-size:13px;color:#777;margin-top:10px}
.badge{display:inline-block;margin-top:5px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:bold}.green{background:#d1fae5;color:#065f46}.yellow{background:#fef3c7;color:#92400e}.red{background:#fee2e2;color:#991b1b}.grey{background:#eee;color:#555}
.photo{width:170px;border-radius:12px;border:1px solid #ddd}.doc-photo{width:100%;max-width:480px;border-radius:14px;border:1px solid #ddd;cursor:zoom-in;display:block;margin-top:12px}.empty-photo{background:#f3f4f6;color:#777;padding:25px;border-radius:12px;margin-top:12px}
.alert-success{background:#d1fae5;color:#065f46;padding:12px;border-radius:10px;margin-bottom:20px}.alert-error{background:#fee2e2;color:#991b1b;padding:12px;border-radius:10px;margin-bottom:20px}.note{font-size:13px;color:#777}.aksi{white-space:nowrap}.aksi .btn{width:42px;height:42px;padding:0;display:inline-flex;justify-content:center;align-items:center;font-size:20px;border-radius:12px;margin-right:5px}
.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:20px}.dash-card{background:linear-gradient(135deg,#fff,#fbf7ff);border:1px solid #ece7ff;border-radius:18px;padding:22px;text-decoration:none;color:#222;box-shadow:0 10px 25px rgba(123,47,247,.08);transition:.2s;min-height:190px}.dash-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px rgba(123,47,247,.15)}.dash-top{display:flex;align-items:center;gap:12px;margin-bottom:15px}.dash-icon{width:52px;height:52px;background:#f3e8ff;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:28px}.dash-label{font-size:18px;font-weight:bold}.dash-sub{font-size:13px;color:#777;margin-top:3px}.dash-number{font-size:42px;font-weight:bold;color:#6b21d8;margin-top:8px}.dash-pill{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:#222;background:#fff;padding:11px 13px;border-radius:13px;margin-top:9px;transition:.2s}.dash-pill:hover{background:#f3e8ff;transform:translateY(-1px)}.dash-pill b{color:#6b21d8;font-size:22px}.total-card{display:flex;align-items:center;gap:14px}.green-dot,.yellow-dot,.red-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:7px}.green-dot{background:#22c55e}.yellow-dot{background:#f59e0b}.red-dot{background:#ef4444}
.zoom-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:99999;align-items:center;justify-content:center;padding:20px}.zoom-modal img{max-width:96%;max-height:96%;border-radius:12px}.close-hint{position:fixed;top:18px;right:25px;color:white;font-size:15px}
@media(max-width:1000px){.dash-grid{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}}
@media(max-width:700px){.header{flex-direction:column;align-items:flex-start;gap:10px}.header a{margin-left:0;margin-right:12px}.box{margin:15px;padding:20px}.dash-grid{grid-template-columns:1fr}table{display:block;overflow:auto;white-space:nowrap}}
