* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: #1c1c1c;
  font: 15px/1.5 "Segoe UI", sans-serif;
  background: #f5f5f5;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.brand { font-weight: 650; }
nav a { color: #333; text-decoration: none; margin-left: 16px; }
main { max-width: 420px; margin: 0 auto; padding: 28px 16px 48px; }
main.wide { max-width: 960px; }
h1 { font-size: 22px; font-weight: 650; margin: 0 0 16px; }
.lead, .note { color: #666; font-size: 13px; }
.panel, .ticket, .sheet {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
label { display: block; margin: 12px 0 6px; color: #444; }
input, select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
button {
  margin-top: 16px;
  border: 0;
  background: #1677ff;
  color: #fff;
  border-radius: 6px;
  padding: 9px 18px;
  font: inherit;
  cursor: pointer;
}
button.ghost, a.ghost {
  margin-top: 0;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  padding: 6px 10px;
}
.row-actions { display: flex; gap: 8px; align-items: center; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
th { color: #888; font-weight: 600; font-size: 12px; }
.ok { color: #137333; }
.bad { color: #c5221f; }
.pay a { color: #1677ff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { max-width: 960px; }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}
