/* The operator portal (agents.elephantlodge.tz) – on top of book.css. */
.bk-wrap { max-width: 1100px; }
.bk-head .bk-wrap { flex-wrap: wrap; }
.pt-sub { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pt-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 15px; }
.pt-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pt-nav a.on { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.pt-nav .pt-who { color: var(--muted); font-size: 13px; }
.pt-inline { display: inline; margin: 0; }
.pt-link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; min-height: 0; }
.bk-msg.success { background: var(--ok-bg); color: var(--ok); }
.bk-msg.error { background: var(--bad-bg); color: var(--bad); }
.bk-msg.warning { background: var(--warn-bg); color: var(--warn); }
.pt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pt-bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-bar input, .pt-bar select { width: auto; min-height: 40px; padding: 6px 10px; }
.pt-bar .bk-btn { min-height: 40px; padding: 6px 14px; }
.pt-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.pt-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.pt-grid th, .pt-grid td { padding: 6px 3px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt-grid tr:last-child td, .pt-grid tr:last-child th { border-bottom: 0; }
.pt-grid th.pt-type { text-align: left; position: sticky; left: 0; background: var(--card); z-index: 1; padding: 6px 12px; min-width: 140px; max-width: 200px; white-space: normal; font-weight: 650; }
.pt-grid th.pt-type small { display: block; color: var(--muted); font-weight: 500; }
.pt-grid thead th { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.pt-grid .pt-we { background: #faf6ee; }
.pt-grid .pt-month { color: var(--ink); }
.pt-cell a, .pt-cell span { display: block; min-width: 32px; border-radius: 8px; padding: 7px 0; font-weight: 750; text-decoration: none; }
.pt-cell a:hover { outline: 2px solid var(--brand); }
.pt-free { background: var(--ok-bg); color: var(--ok); }
.pt-few { background: var(--warn-bg); color: var(--warn); }
.pt-full { background: var(--bad-bg); color: var(--bad); }
.pt-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; align-items: center; }
.pt-legend span.pt-key { display: inline-block; width: 26px; text-align: center; border-radius: 6px; padding: 1px 0; font-weight: 700; margin-right: 4px; }
.pt-lines { display: grid; gap: 12px; }
.pt-line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.pt-line[hidden] { display: none; }
.pt-quote td, .pt-quote th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pt-quote, .pt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pt-quote .num, .pt-table .num { text-align: right; white-space: nowrap; }
.pt-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pt-badge.option { background: var(--warn-bg); color: var(--warn); }
.pt-badge.confirmed { background: var(--ok-bg); color: var(--ok); }
.pt-badge.cancelled { background: #eee; color: #555; }
.pt-badge.late { background: var(--bad-bg); color: var(--bad); }
.pt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pt-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pt-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-actions { display: grid; gap: 10px; }
.pt-actions form { margin: 0; }
.pt-auth { max-width: 440px; margin: 0 auto; }
.pt-auth form { display: grid; gap: 14px; }
@media (max-width: 760px) {
  .pt-nav { margin-left: 0; width: 100%; }
  .pt-grid th.pt-type { min-width: 112px; padding: 6px 8px; font-size: 13px; }
  .pt-line { grid-template-columns: 1fr 1fr; }
  .pt-table thead { display: none; }
  .pt-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .pt-table td { border: 0; padding: 2px 6px; }
}
