.otop { background: var(--ink); color: #fff; }
.otop__in { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.otop__brand { font-weight: 700; font-size: 16px; }
.otop__logo { height: 36px; max-width: 160px; object-fit: contain; }
.otop__co { opacity: .78; font-size: 14px; flex: 1; min-width: 160px; }
.otop select { height: 40px; border-radius: 8px; border: 1px solid #4B5563; background: #2A2F36; color: #fff; padding: 0 8px; }
.otop .btn { height: 40px; background: transparent; color: inherit; border-color: currentColor; }
.tabs { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.tab { height: 48px; padding: 0 14px; border: 0; background: transparent; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.opage { max-width: 1240px; margin: 0 auto; padding: 16px 16px 60px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar select, .toolbar input { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: #fff; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFAFB; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #EEF0F3; color: var(--ink); white-space: nowrap; }
.st--approved { background: var(--pass-bg); color: var(--pass); }
.st--declined { background: var(--fail-bg); color: var(--fail); }
.st--ready { background: var(--warn-bg); color: var(--warn); }
.st--sent, .st--viewed { background: #E8EEFC; color: #1E40AF; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .field input, .form-grid .field select { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: #fff; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.help { font-size: 12px; color: var(--ink-2); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 24px; text-align: center; background: #fff; }
.drop.is-over { border-color: var(--ink); }
.bar-prog { height: 8px; background: #EEF0F3; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar-prog span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

.rowbtns { display: inline-flex; gap: 6px; align-items: center; }
.btn--icon { width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--fail); white-space: nowrap; }
.btn--armed { width: auto; padding: 0 12px; background: var(--fail); border-color: var(--fail); color: #fff; }
.flabel { font-size: 13px; color: var(--ink-2); }
.logo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-row input[type=color] { width: 48px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: #fff; }
.logo-row input[type=text] { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; }
.logo-prev { height: 64px; min-width: 120px; max-width: 260px; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; background: #fff; }
.logo-prev--sq { width: 64px; min-width: 64px; }
.logo-prev img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-sample { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; font-weight: 700; min-height: 64px; }
.brand-sample img { height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.card.stack > .btn { align-self: flex-start; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }
.otop__logo { background: #fff; border-radius: 6px; padding: 3px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }

.lapsed { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--fail-bg); color: var(--fail);
  border: 1px solid var(--fail); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.lapsed .btn { flex-shrink: 0; }
.seats { font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 6px; background: #EEF0F3; }
.seats--over { background: var(--warn-bg); color: var(--warn); }
a.btn.btn--primary { color: var(--accent-ink); }

.yn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.yn svg { width: 16px; height: 16px; }
.yn--no { color: var(--ink-2); }
.pend { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; align-items: start; }
.checks li svg { width: 18px; height: 18px; margin-top: 1px; }
.check--ok svg { color: var(--pass); }
.check--bad svg { color: var(--fail); }
.check--warn svg { color: var(--warn); }
.check--info svg { color: var(--ink-2); }
.srcbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.srcbox__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chipbtn { border: 1px solid var(--line-2); background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 13px; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.form-row select { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 8px; background: #fff; }
.bf { margin-top: 8px; border-top: 1px dashed var(--line-2); padding-top: 8px; }

.btn--small { padding: 4px 10px; font-size: 13px; margin-right: 6px; }

/* reports: passed / failed lifts, recommendations, header filters */
.lp { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.lp__n, .recs { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp__n svg, .recs svg, .thfilter svg, .st--completed svg, .btn--done svg { width: 16px; height: 16px; flex: none; }
.lp__n--pass { color: var(--pass); }
.lp__n--fail { color: var(--fail); }
.lp__n--zero { color: #9AA1AB; font-weight: 400; }
.recs { color: #8A4B00; }
.thwrap { display: inline-flex; align-items: center; gap: 6px; }
.thfilter { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid #D5D8DD; background: #fff; color: #5B6470; cursor: pointer; padding: 0; }
.thfilter:hover { border-color: #9AA1AB; }
.thfilter:focus-visible { outline: 2px solid #1E40AF; outline-offset: 2px; }
.thfilter--failed[aria-pressed="true"] { background: var(--fail); border-color: var(--fail); color: #fff; }
.thfilter--recs[aria-pressed="true"] { background: #8A4B00; border-color: #8A4B00; color: #fff; }
.replink { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.replink[aria-busy="true"] { opacity: .5; cursor: progress; }
/* quotes: approved -> completed */
.st--completed { display: inline-flex; align-items: center; gap: 4px; background: var(--pass); color: #fff; }
.btn--done { color: #5B6470; }
.btn--done svg { width: 18px; height: 18px; }
.btn--done.is-on { background: var(--pass); border-color: var(--pass); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 2px; color: #5B6470; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }

/* reset company */
.rscheck { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rscheck input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.btn--danger-solid:disabled { opacity: .45; cursor: not-allowed; }

.btn--resend { color: #1E40AF; }
.btn--resend svg { width: 18px; height: 18px; }

.btn--resend:disabled { opacity: .4; cursor: not-allowed; }
.help.editing { color: #8A4B00; }

/* feedback review (admin) */
.fbfilters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fbfilter { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D8DD; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.fbfilter[aria-selected="true"] { background: #16191D; border-color: #16191D; color: #fff; }
.fbactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fblist { display: flex; flex-direction: column; gap: 10px; }
.fbcard { display: grid; grid-template-columns: auto 180px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 12px; }
.fbcard.is-picked { border-color: #1E40AF; box-shadow: 0 0 0 1px #1E40AF; }
.fbcard__pick input { width: 18px; height: 18px; margin-top: 4px; }
.fbcard__shot { display: block; width: 180px; height: 120px; border-radius: 8px; overflow: hidden; background: #F3F4F6; border: 1px solid #E3E6EA; }
.fbcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.fbcard__shot--none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9AA1AB; }
.fbcard__top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.fbcard__comment { margin: 0 0 6px; white-space: pre-wrap; }
.fbcard__err { white-space: pre-wrap; font-size: 12px; margin: 6px 0 0; }
.otop .fb-launch { color: inherit; }
@media (max-width: 700px) { .fbcard { grid-template-columns: auto 1fr; } .fbcard__shot { grid-column: 2; width: 100%; height: 160px; } .fbcard__body { grid-column: 1 / -1; } }

/* sticky header + tabs, and table headings under them (wide screens; phones scroll tables sideways) */
.ostick { position: sticky; top: 0; z-index: 60; background: var(--bg); }
.ostick .tabs { border-bottom: 0; }
.ostick::after { content: ""; display: block; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .tbl-wrap { overflow: visible; }
  .tbl thead th { position: sticky; top: var(--stick-h, 112px); z-index: 5; box-shadow: 0 1px 0 var(--line); }
  .tbl thead th:first-child { border-top-left-radius: var(--radius); }
  .tbl thead th:last-child { border-top-right-radius: var(--radius); }
}
.rowbtns { justify-content: flex-end; vertical-align: middle; }
.rowbtns > .btn, .btnslot { flex: none; }
.btnslot { display: inline-block; width: 44px; height: 44px; }
.tbl td.num { white-space: nowrap; }

.cursel { height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 6px; background: #fff; }
