* { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --orange: #FF6623; --orange-l: #FFF3EE; --grad-a: #FF9900; --grad-b: #FF6623;
    --body: #333333; --muted: #6B7280; --border: #E5E7EB; --border-s: #CCCCCC;
    --green: #22C55E; --amber: #F59E0B; --red: #EF4444; --bg: #FAFAFA;
  }
  body { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; color: var(--body); background: var(--bg); line-height: 1.5; }
  .band { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; }
  .band img { height: 40px; width: auto; }
  .band .meta { color: #fff; text-align: right; font-size: 13px; }
  .band .meta strong { font-size: 15px; display: block; font-weight: bold; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 24px 28px 60px; }
  h1 { color: var(--orange); font-size: 22px; margin-bottom: 2px; }
  .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
  .rule { height: 2px; background: var(--orange); border: 0; margin: 6px 0 20px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 26px; }
  .kpi { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; }
  .kpi .n { font-size: 30px; font-weight: bold; color: var(--orange); line-height: 1.1; }
  .kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
  .toolbar input[type=text], .toolbar select { padding: 8px 10px; border: 1px solid var(--border-s); border-radius: 4px; font-family: inherit; font-size: 13px; background: #fff; }
  .toolbar input[type=text] { flex: 1; min-width: 180px; }
  .btn { background: var(--orange); color: #fff; border: 0; border-radius: 4px; padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: bold; cursor: pointer; }
  .btn:hover { background: #e8551a; }
  .btn.sec { background: #fff; color: var(--orange); border: 1px solid var(--orange); }
  .btn.sec:hover { background: var(--orange-l); }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
  @media(max-width: 820px){ .grid2 { grid-template-columns: 1fr; } }
  .card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
  .card h2 { color: var(--orange); font-size: 15px; margin-bottom: 12px; font-weight: bold; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  thead th { background: var(--orange); color: #fff; font-weight: bold; text-align: left; padding: 8px 10px; position: sticky; top: 0; }
  tbody td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
  tbody tr:nth-child(even){ background: var(--orange-l); }
  .barrow { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 13px; }
  .barrow .name { width: 90px; flex-shrink: 0; }
  .barrow .track { flex: 1; background: #f0f0f0; border-radius: 3px; height: 16px; overflow: hidden; }
  .barrow .fill { height: 100%; background: var(--orange); }
  .barrow .val { width: 34px; text-align: right; font-weight: bold; color: var(--orange); }
  .chip { display: inline-block; padding: 2px 9px; border-radius: 9999px; font-size: 11px; font-weight: bold; color: #fff; }
  .chip.Delivered { background: var(--green); }
  .chip.Ongoing { background: var(--amber); }
  .tablewrap { max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
  .count { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
  .actions { white-space: nowrap; }
  .act { cursor: pointer; border: 1px solid var(--border-s); background: #fff; border-radius: 4px; font-family: inherit; font-size: 12px; font-weight: bold; padding: 4px 10px; margin-left: 4px; }
  .act.edit { color: var(--orange); border-color: var(--orange); }
  .act.edit:hover { background: var(--orange-l); }
  .act.del { color: var(--red); border-color: #f3c2c2; }
  .act.del:hover { background: #fdecec; }
  .modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
  .modal-bg.show { display: flex; }
  .modal { background: #fff; border-radius: 8px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
  .modal .mhead { background: var(--orange); color: #fff; padding: 14px 20px; font-weight: bold; font-size: 15px; border-radius: 8px 8px 0 0; }
  .modal .mbody { padding: 20px; }
  .fld { margin-bottom: 14px; }
  .fld label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: .3px; }
  .fld input, .fld select { width: 100%; padding: 9px 10px; border: 1px solid var(--border-s); border-radius: 4px; font-family: inherit; font-size: 14px; }
  .mfoot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 20px 20px; }
  .m_error { background: #fdecec; color: #b91c1c; border: 1px solid #f3c2c2; border-radius: 4px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
  .item-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
  .item-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--border-s); border-radius: 4px; font-family: inherit; font-size: 14px; }
  .item-row .rm { flex-shrink: 0; cursor: pointer; border: 1px solid #f3c2c2; color: var(--red); background: #fff; border-radius: 4px; font-weight: bold; font-size: 14px; padding: 6px 10px; line-height: 1; }
  .item-row .rm:hover { background: #fdecec; }
  .foot { border-top: 2px solid var(--orange); margin-top: 30px; padding: 14px 28px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
  .status-note { font-size: 12px; color: var(--muted); padding: 8px 12px; background: var(--orange-l); border-radius: 4px; margin-bottom: 16px; }
  .empty { text-align: center; color: var(--muted); padding: 30px; font-size: 13px; }
  .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
  .tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 14px; font-family: inherit; font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: -2px; border-radius: 0; }
  .tab:hover { color: var(--orange); }
  .tab.active { color: var(--orange); font-weight: bold; border-bottom-color: var(--orange); }
  .tab .c { display: inline-block; background: var(--orange-l); color: var(--orange); border-radius: 9999px; font-size: 11px; font-weight: bold; padding: 1px 8px; margin-left: 6px; }
  .tab.active .c { background: var(--orange); color: #fff; }
