* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f4f6f8; color: #1f2933; }
nav { display: flex; justify-content: space-between; align-items: center; background: #0f766e; color: #fff; padding: 0 20px; height: 52px; position: relative; }
nav .brand { font-weight: 600; font-size: 15px; white-space: nowrap; }
.hamburger { background: none; border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 19px; line-height: 1; padding: 4px 12px; border-radius: 7px; cursor: pointer; }
.hamburger:hover { background: rgba(255,255,255,.15); }
.menu-panel { display: none; position: absolute; top: 58px; right: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.22); min-width: 250px; padding: 8px; z-index: 100; }
.menu-panel.open { display: block; }
.menu-user { padding: 8px 12px; border-bottom: 1px solid #eef2f6; margin-bottom: 6px; font-size: 13px; color: #667788; }
.menu-panel a { display: block; color: #1f2933; padding: 10px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.menu-panel a:hover { background: #f0fdfa; color: #0f766e; }
.menu-panel a.active { background: #0f766e; color: #fff; }
.menu-panel a.active:hover { background: #0f766e; color: #fff; }
.menu-panel a.logout { color: #dc2626; border-top: 1px solid #eef2f6; margin-top: 6px; padding-top: 10px; }
.menu-panel a.logout:hover { background: #fef2f2; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 20px; margin-bottom: 4px; }
.sub { color: #667788; font-size: 13px; margin-bottom: 18px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h2 { font-size: 15px; margin-bottom: 12px; color: #0f766e; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.stat .num { font-size: 26px; font-weight: 700; color: #0f766e; }
.stat .lbl { font-size: 12.5px; color: #667788; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; background: #f8fafc; color: #445566; padding: 9px 10px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
tr:hover td { background: #fafcfe; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
form.grid .field label, .grid3 .field label { font-size: 12px; color: #445566; display: block; margin-bottom: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
input, select { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 13.5px; }
input:focus, select:focus { outline: 2px solid #99f6e4; border-color: #0f766e; }
#tbl-items input, #tbl-items select { padding: 6px 8px; font-size: 13px; }
#tbl-items th.col-ikan, #tbl-items td.col-ikan { min-width: 260px; }
.col-ikan { display: flex; align-items: center; gap: 6px; }
.col-ikan .btn-pilih { white-space: nowrap; flex-shrink: 0; }
.nama-pilih { font-size: 13px; overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; }
.num { text-align: right; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 50; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 12px; width: 660px; max-width: 100%; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal-table { max-height: 340px; overflow-y: auto; margin-top: 8px; }
.modal-table tr { cursor: pointer; }
.modal-table tbody tr:hover td { background: #f0fdfa; }
.btn { display: inline-block; background: #0f766e; color: #fff; border: none; padding: 9px 18px; border-radius: 7px; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #115e59; }
.btn.ghost { background: #fff; color: #0f766e; border: 1px solid #0f766e; }
.btn.ghost:hover { background: #f0fdfa; }
.btn.danger { background: #dc2626; }
.btn.danger:hover { background: #b91c1c; }
.btn.small { padding: 5px 12px; font-size: 12.5px; }
.hint { font-size: 12px; color: #8899aa; margin-top: 6px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13.5px; }
.flash.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.muted { color: #8899aa; }
.empty { text-align: center; color: #8899aa; padding: 22px 0; font-size: 13.5px; }
.login-wrap { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.login-card .logo { text-align: center; font-size: 34px; margin-bottom: 6px; }
.login-card h1 { text-align: center; margin-bottom: 18px; font-size: 18px; }
.login-card label { display: block; font-size: 12.5px; color: #445566; margin: 12px 0 4px; }
.login-card input { margin-bottom: 2px; }
.login-card .btn { width: 100%; margin-top: 18px; }
.login-card .flash { margin-top: 14px; margin-bottom: 0; }
.center { text-align: center; }
.calc-box { background: #f8fdfb; border: 1px dashed #99d8c8; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.calc-lbl { color: #445566; }
.calc-val { font-weight: 700; color: #0f766e; }
.calc-inp { width: 220px; }
#btn-hitung { background: #2563eb; }
#btn-hitung:hover { background: #1d4ed8; }
