/* Encore Command Center. Site theme: navy, gold, cream, thick borders. */
:root {
  --navy: #101b3a; --navy-2: #17274f; --navy-3: #22356a; --gold: #fcbb15; --cream: #f6f3ea;
  --muted: #aeb7cf; --ink: #101b3a; --ink-2: #56607d; --line: #ddd5c0; --card: #fffdf7;
  --ok: #1d6b2f; --ok-bg: #d8f0dc; --warn: #7a5600; --warn-bg: #fff1c9; --bad: #9b1c1c; --bad-bg: #fde2e2;
  --font: "Hanken Grotesk", Avenir, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; text-align: center; color: var(--ink-2); }

/* ---- sign in */
.signin { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 20px; }
.signin-card { width: 100%; max-width: 440px; background: var(--navy-2); padding: 36px 32px; color: var(--cream); clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px)); }
.brand { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: 13px; }
.signin h1 { margin: 10px 0 8px; font-size: 30px; font-weight: 900; line-height: 1.05; }
.signin p { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.signin label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.signin input { width: 100%; height: 52px; padding: 0 16px; background: #fff; border: 3px solid var(--gold); color: var(--navy); font-weight: 600; outline: none; }
.signin input:focus { border-color: var(--cream); }
.signin .btn { width: 100%; margin-top: 18px; }
.signin .sent { background: var(--navy); border-left: 4px solid var(--gold); padding: 14px 16px; line-height: 1.5; }

/* ---- buttons: the website's button (gold, square, top-right and bottom-left corners cut) */
:root { --cut16: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --cut12: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 0; clip-path: var(--cut16);
  background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s; }
.btn.gold, .btn.navy { background: var(--gold); color: var(--navy); }
.btn.alt, .btn.danger { position: relative; isolation: isolate; background: var(--navy); color: var(--navy); }
.btn.danger { background: var(--bad); color: var(--bad); }
.btn.alt::before, .btn.danger::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: #fff;
  clip-path: polygon(0 0, calc(100% - 14.76px) 0, 100% 14.76px, 100% 100%, 14.76px 100%, 0 calc(100% - 14.76px)); transition: background .15s; }
.btn.small.alt::before, .btn.small.danger::before { clip-path: polygon(0 0, calc(100% - 10.76px) 0, 100% 10.76px, 100% 100%, 10.76px 100%, 0 calc(100% - 10.76px)); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 13px; clip-path: var(--cut12); }
.btn:disabled { opacity: .45; cursor: default; }
/* hover only on devices with a real pointer: on phones a tapped button would otherwise stay dark */
@media (hover: hover) {
  .btn:not(:disabled):hover, .btn.gold:not(:disabled):hover, .btn.navy:not(:disabled):hover { background: var(--navy); color: var(--gold); }
  .btn.alt:not(:disabled):hover { color: var(--gold); } .btn.alt:not(:disabled):hover::before { background: var(--navy); }
  .btn.danger:not(:disabled):hover { color: #fff; } .btn.danger:not(:disabled):hover::before { background: var(--bad); }
}
.copy { border: 2px solid var(--navy); background: #fff; border-radius: 0; padding: 3px 9px; margin-left: 8px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); cursor: pointer; vertical-align: 1px; }
.copy:hover { background: var(--gold); border-color: var(--gold); }
.copy.done { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 0; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #ece5d2; color: var(--ink-2); white-space: nowrap; }
.pill.new, .pill.subscribed { background: var(--warn-bg); color: var(--warn); }
.pill.accepted, .pill.booked, .pill.hired, .pill.replied, .pill.paid { background: var(--ok-bg); color: var(--ok); }
.pill.declined, .pill.refunded, .pill.closed { background: var(--bad-bg); color: var(--bad); }
.pill.partially_refunded, .pill.quoted, .pill.contacted, .pill.interview, .pill.reviewing { background: #dfe6fb; color: #23407f; }

/* ---- shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: var(--cream); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 4px solid var(--gold); }
.side .brand { padding: 24px 22px 6px; }
.side .title { padding: 0 22px 18px; font-weight: 900; font-size: 20px; }
.nav { display: flex; flex-direction: column; gap: 1px; padding: 0 10px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 700; border-left: 4px solid transparent; }
.nav a:hover { color: var(--cream); background: var(--navy-2); }
.nav a.on { color: var(--cream); background: var(--navy-2); border-left-color: var(--gold); }
.nav .count { background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 900; border-radius: 99px; padding: 1px 8px; }
.side .me { margin-top: auto; padding: 16px 22px 22px; border-top: 1px solid var(--navy-3); font-size: 14px; color: var(--muted); }
.side .me b { color: var(--cream); display: block; overflow-wrap: anywhere; }
.side .me button { margin-top: 10px; background: none; border: 0; color: var(--gold); font-weight: 800; padding: 0; cursor: pointer; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 80px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.head .sub { color: var(--ink-2); margin-top: 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* mobile: top bar + horizontal nav */
.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .topbar { min-width: 0; max-width: 100vw; }
  .search { min-width: 0; width: 100%; }
  .side { display: none; }
  .topbar { display: block; position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--cream); border-bottom: 3px solid var(--gold); padding-top: env(safe-area-inset-top); }
  .topbar .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; }
  .topbar .t { font-weight: 900; }
  .topbar button { background: none; border: 0; color: var(--gold); font-weight: 800; }
  .topbar .nav { flex-direction: row; overflow-x: auto; padding: 0 28px 8px 8px; gap: 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .topbar .nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 10px; gap: 6px; }
  .topbar .nav a.on { border-bottom-color: var(--gold); background: none; }
  .main { padding: 18px 16px 80px; }
}

/* ---- cards and lists */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 3px solid var(--navy); padding: 18px; }
.stat { text-decoration: none; display: block; }
.stat .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stat .v { font-size: 40px; font-weight: 900; margin-top: 6px; line-height: 1; }
.stat .s { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.stat.hot { border-color: var(--gold); box-shadow: inset 0 6px 0 var(--gold); }
.section-t { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 28px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 3px solid var(--navy); border-radius: 0; background: #fff; padding: 9px 16px; font-weight: 900; font-size: 13px; letter-spacing: .06em; cursor: pointer; text-transform: uppercase; }
.chip.on { background: var(--navy); color: var(--cream); }
.chip .n { opacity: .7; margin-left: 4px; }
.search { height: 52px; padding: 0 16px; border: 3px solid var(--navy); border-radius: 0; background: #fff; min-width: 240px; outline: none; font-weight: 600; }
.search:focus { border-color: var(--gold); }
.list { background: var(--card); border: 3px solid var(--navy); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.item:last-child { border-bottom: 0; }
.item { transition: background-color .12s ease; }
.item:hover { background: #f4ecd6; }
@media (hover: none) { .item:hover { background: transparent; } .item:active { background: #f4ecd6; } }
/* the first and last rows follow the list's cut corners, so a hover fill never covers the border */
.list > .item:first-child { clip-path: polygon(0 0, calc(100% - 22.76px) 0, 100% 22.76px, 100% 100%, 0 100%); }
.list > .item:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 22.76px 100%, 0 calc(100% - 22.76px)); }
.list > .item:only-child { clip-path: polygon(0 0, calc(100% - 22.76px) 0, 100% 22.76px, 100% 100%, 22.76px 100%, 0 calc(100% - 22.76px)); }
.item .who { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.item .what { color: var(--ink-2); font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item .when { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.empty { padding: 28px 18px; color: var(--ink-2); text-align: center; }

/* ---- drawer */
.veil { position: fixed; inset: 0; background: rgba(16, 27, 58, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--cream); z-index: 41; overflow-y: auto; border-left: 4px solid var(--gold); display: flex; flex-direction: column; }
.drawer .dh { background: var(--navy); color: var(--cream); padding: 20px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer .dh h2 { margin: 6px 0 0; font-size: 24px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.drawer .dh .x { background: none; border: 0; color: var(--gold); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.drawer .db { padding: 20px 22px 40px; display: grid; gap: 18px; }
.fields { background: var(--card); border: 3px solid var(--navy); }
.field { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field .k { color: var(--ink-2); font-weight: 700; }
.field .v { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notes { display: grid; gap: 8px; }
.note { background: var(--card); border-left: 4px solid var(--gold); padding: 10px 14px; }
.note .meta { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
textarea { width: 100%; min-height: 96px; padding: 14px 16px; border: 3px solid var(--navy); background: #fff; resize: vertical; outline: none; font-weight: 600; }
textarea:focus { border-color: var(--gold); }
select { height: 52px; padding: 0 46px 0 16px; border: 3px solid var(--navy); border-radius: 0; font-weight: 700; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23101b3a' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
select:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--cream); border-left: 5px solid var(--gold); padding: 14px 18px; font-weight: 700; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.flash.bad { border-left-color: #ff7b7b; }

/* ---- tickets */
.show { margin-bottom: 16px; }
.show h3 { margin: 0; font-size: 20px; font-weight: 900; }
.show .d { color: var(--ink-2); margin: 4px 0 14px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.time { border: 2px solid var(--navy); padding: 14px; background: var(--cream); cursor: pointer; }
.time:hover { border-color: var(--gold); }
.time .l { font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; }
.bar { height: 10px; background: #e3dccb; margin: 10px 0 8px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); }
.bar b { position: absolute; top: 0; bottom: 0; background: var(--gold); }
.time .n { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.time .n strong { color: var(--ink); }
table.t { width: 100%; border-collapse: collapse; background: var(--card); border: 3px solid var(--navy); }
table.t th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-bottom: 2px solid var(--navy); background: #f1ebda; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
.seat { display: inline-block; font-weight: 800; margin: 0 6px 2px 0; }
.seat.gone { text-decoration: line-through; color: var(--ink-2); font-weight: 600; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; }
@media (max-width: 700px) {
  table.t thead { display: none; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  table.t td { border: 0; padding: 4px 10px; }
  table.t td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-2); font-weight: 700; }
}

/* ---- door list (print) */
.door h2 { margin: 0 0 4px; }
@media print {
  .side, .topbar, .head .tools, .noprint { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  table.t { border-width: 1px; }
}

/* ---- nav groups */
.nav-h { padding: 16px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6f7ca3; }
@media (max-width: 900px) { .topbar .nav-h { display: none; } }

/* ---- editor */
.editor { display: grid; gap: 16px; }
.ef label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.ef .help { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.inp { width: 100%; min-height: 52px; padding: 12px 16px; border: 3px solid var(--navy); border-radius: 0; background: #fff; outline: none; font-weight: 600; }
textarea.inp { min-height: 90px; resize: vertical; }
.inp:focus, .rt:focus { border-color: var(--gold); }
.ef select { width: 100%; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.rt-bar button { border: 2px solid var(--navy); background: #fff; border-radius: 0; padding: 6px 12px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.rt { min-height: 220px; max-height: 60vh; overflow: auto; padding: 12px 16px; border: 3px solid var(--navy); background: var(--card); outline: none; line-height: 1.55; }
.rt h2 { font-size: 20px; margin: 14px 0 6px; }
.img-f img { display: block; max-width: 100%; max-height: 220px; object-fit: cover; border: 3px solid var(--navy); margin-bottom: 10px; }
.noimg { padding: 26px; text-align: center; border: 3px dashed var(--line); color: var(--ink-2); margin-bottom: 10px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--cream); padding: 12px 0; border-top: 1px solid var(--line); }
.muted { color: var(--ink-2); }

/* ---- comps seat map */
.seatmap { background: var(--navy); padding: 16px 12px; overflow-x: auto; }
.stage { background: var(--gold); color: var(--navy); text-align: center; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; padding: 6px; margin: 0 auto 14px; max-width: 70%; clip-path: var(--cut12); }
.srow { display: flex; gap: 4px; align-items: center; justify-content: center; margin-bottom: 4px; min-width: max-content; }
.rl { color: var(--muted); font-weight: 800; width: 16px; text-align: center; font-size: 12px; }
.st { width: 28px; height: 28px; border-radius: 7px 7px 4px 4px; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; padding: 0; background: #2b3c6b; color: var(--cream); }
.st.vip { box-shadow: inset 0 -3px 0 var(--gold); }
.st.free:hover { background: #3b5190; }
.st.pick { background: var(--gold) !important; color: #0f0f0f; }
.st.comp { background: #7c5cc4; color: #fff; cursor: default; }
.st.booked, .st.sold { background: #c0392b; color: #fff; cursor: default; }
.st.held, .st.blocked { background: #59617a; color: #cfd5e6; cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; cursor: default; }

/* ---- boxes with the site's cut corners, keeping the thick navy border */
.card, .list, .fields { position: relative; isolation: isolate; border: 0 !important; background: var(--navy); padding: 3px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.card::before, .list::before, .fields::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--card);
  clip-path: polygon(0 0, calc(100% - 22.76px) 0, 100% 22.76px, 100% 100%, 22.76px 100%, 0 calc(100% - 22.76px)); }
.card { padding: 21px; }
.card.stat.hot, .card[style*="border-color:var(--gold)"] { background: var(--gold); }
.card[style*="border-color:var(--bad)"] { background: var(--bad); }
.stat.hot { box-shadow: none; }
.time { border: 3px solid var(--navy); background: #fff; }
.time:hover { border-color: var(--gold); }
.ef label, .signin label { font-size: 13px; font-weight: 900; letter-spacing: .12em; }

/* phones: the whole Hippodrome row fits without sideways scrolling */
@media (max-width: 560px) {
  .seatmap { padding: 14px 6px; }
  .srow { gap: 3px; }
  .st { width: 25px; height: 26px; font-size: 10px; border-radius: 6px 6px 3px 3px; }
}
