/* OMS-MND-261125-06: OMSAZE admin analytics. Builds on site.css tokens (navy, gold, mist). */
.admin [hidden] { display: none !important; }
.admin {
  --paid: #2E7D4F; --refunded: #3E6FB0; --rejected: #C0392B; --pending: #C08A1E;
  --ink: #102D46; --ink-2: rgba(16,45,70,.72); --ink-3: rgba(16,45,70,.5);
  --grid: rgba(16,45,70,.08); --card: #fff; --bar: #102D46; --bar-hover: #D7B56D;
  background: var(--mist); font-size: 1rem;
}
.admin h1 { font-family: "Manrope", var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.admin h2 { font-family: "Manrope", var(--display); font-size: 1.15rem; margin: 0 0 .2rem; }
.admin h3 { font-family: "Manrope", var(--display); }
.admin-header .header-inner { min-height: 84px; }
.admin-header .brand img { width: 118px; }
.admin-head-right { display: flex; align-items: center; gap: .9rem; }
.admin-badge { font: 700 .75rem/1 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--gold); border-radius: 999px; padding: .45rem .8rem; }
.btn-sm { min-height: 38px; padding: .4rem .9rem; font-size: .95rem; }
.eyebrow { font: 700 .78rem/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9a7a35; margin: 0 0 .7rem; }

/* Sign-in */
.admin-login { padding-block: clamp(2.5rem, 7vw, 5rem); }
.login-card { max-width: 440px; margin-inline: auto; background: var(--card); border-radius: var(--radius); border-top: 4px solid var(--gold); padding: 2rem; box-shadow: 0 10px 30px rgba(16,45,70,.08); }
.login-card label { display: block; font-weight: 600; color: var(--navy); margin: 1rem 0 .35rem; }
.login-card input { width: 100%; min-height: 46px; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; padding: .55rem .75rem; font: inherit; color: var(--navy); }
.login-card input:focus { outline: 3px solid rgba(215,181,109,.6); border-color: var(--navy); }
.login-card .btn { width: 100%; margin-top: 1.25rem; }
.login-msg { min-height: 1.5em; margin: .9rem 0 0; font-size: .95rem; }
.login-msg.err { color: var(--rejected); }
.login-msg.ok { color: var(--paid); }

/* Shell */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 85px); }
.admin-nav { background: var(--navy); color: #fff; padding: 1.5rem 1rem; position: sticky; top: 85px; align-self: start; height: calc(100vh - 85px); overflow: auto; }
.admin-nav-title { font: 700 .72rem/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 .6rem 1rem; }
.admin-nav ul { list-style: none; display: grid; gap: .15rem; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: rgba(255,255,255,.82); text-decoration: none; padding: .6rem .7rem; border-radius: 6px; font-weight: 500; border-left: 3px solid transparent; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(215,181,109,.14); color: #fff; border-left-color: var(--gold); }
.admin-nav .tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--gold); border-radius: 999px; padding: .15rem .5rem; }
.admin-nav .tag.off { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.25); }
.admin-nav :focus-visible { outline-color: var(--gold); }
/* Dec 5 2026 (bank batch 3): nested entry under a nav group (the readiness
   page under Assessment). Same link style; indented. The higher-specificity
   selector keeps the nested list stacked at every width, including the
   <=860px horizontal nav. */
.admin-nav li ul { display: grid; gap: .15rem; margin-top: .15rem; }
.admin-nav li ul a { padding-inline-start: 1.5rem; font-size: .92rem; }
.admin-main { padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.admin-main:focus { outline: none; }

.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.view-head h1 { margin: 0; }
.view-head p { margin: .3rem 0 0; color: var(--ink-2); }
.env-note { font-size: .9rem; color: var(--ink-2); background: #fff8e8; border: 1px solid rgba(215,181,109,.6); border-radius: 8px; padding: .55rem .8rem; margin: 0 0 1.25rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.seg { display: inline-flex; background: #fff; border: 1px solid rgba(16,45,70,.18); border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 600 .9rem/1 var(--body); color: var(--ink-2); padding: .55rem .8rem; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.filters select { font: 600 .9rem var(--body); color: var(--navy); background: #fff; border: 1px solid rgba(16,45,70,.18); border-radius: 8px; padding: .5rem .6rem; min-height: 40px; }
.filters label { font-size: .85rem; color: var(--ink-2); display: inline-flex; gap: .45rem; align-items: center; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--card); border-radius: 10px; padding: 1rem 1.1rem; border-top: 3px solid var(--navy); }
.kpi.gold { border-top-color: var(--gold); }
.kpi span { display: block; font-size: .85rem; color: var(--ink-2); }
.kpi b { display: block; font: 800 1.65rem/1.15 "Manrope", sans-serif; color: var(--navy); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: .2rem; }
.kpi small.up { color: var(--paid); } .kpi small.down { color: var(--rejected); }

/* Cards and grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.card { background: var(--card); border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; grid-column: span 6; min-width: 0; }
.card.wide { grid-column: span 12; } .card.third { grid-column: span 4; } .card.two-thirds { grid-column: span 8; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.card-head p { margin: 0; color: var(--ink-3); font-size: .85rem; }
.empty { color: var(--ink-3); font-size: .95rem; padding: 1.25rem 0; }

/* Period table */
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: .65rem .6rem; border-bottom: 1px solid var(--grid); text-align: right; font-size: .95rem; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover, .ptable tbody tr:focus-visible { background: rgba(215,181,109,.12); }
.ptable td b { color: var(--navy); }
.drill { color: var(--ink-3); font-size: .8rem; margin-left: .35rem; }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--ink-2); font-size: 12px; }
.chart .val { fill: var(--navy); font-weight: 600; }
.chart .gridline { stroke: var(--grid); }
.chart .axis { stroke: rgba(16,45,70,.25); }
.chart .bar { fill: var(--bar); cursor: pointer; transition: fill .12s; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart g.datum:hover .bar, .chart g.datum:focus .bar, .chart g.datum.active .bar { fill: var(--bar-hover); }
.chart g.datum:focus { outline: none; }
.chart g.datum:focus .hit { stroke: var(--gold); stroke-width: 2; }
.stack { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 2px; background: #fff; margin: .4rem 0 .9rem; }
.stack span { display: block; min-width: 3px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.legend li b { color: var(--navy); font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.s-paid { background: var(--paid); } .s-refunded { background: var(--refunded); } .s-rejected { background: var(--rejected); } .s-pending { background: var(--pending); }
.funnel { display: grid; gap: .55rem; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: .75rem; font-size: .92rem; }
.funnel-track { height: 26px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.funnel-fill { height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.funnel-row:last-child .funnel-fill { background: var(--paid); }
.funnel-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }

/* Insights */
.insights { list-style: none; display: grid; gap: .65rem; }
.insights li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; align-items: start; font-size: .98rem; color: var(--ink); }
.insights li i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: rgba(215,181,109,.2); color: #8a6a25; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }

/* Transactions */
.txn-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .75rem; }
.txn-tools input { flex: 1 1 220px; min-height: 40px; border: 1px solid rgba(16,45,70,.2); border-radius: 8px; padding: .45rem .7rem; font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .3rem .4rem .3rem .75rem; font: 600 .82rem var(--body); cursor: pointer; }
.chip span { background: rgba(255,255,255,.2); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--grid); border-radius: 8px; }
.txn { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.txn th, .txn td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.txn th { position: sticky; top: 0; background: #f8fafc; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; user-select: none; }
.txn th[aria-sort="ascending"]::after { content: " \25B2"; } .txn th[aria-sort="descending"]::after { content: " \25BC"; }
.txn td.r, .txn th.r { text-align: right; }
.txn tbody tr { cursor: pointer; } .txn tbody tr:hover, .txn tbody tr:focus-visible { background: rgba(215,181,109,.12); }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .82rem; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.paid { color: var(--paid); } .pill.refunded { color: var(--refunded); } .pill.rejected { color: var(--rejected); } .pill.pending { color: #8f6514; }
.txn-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; color: var(--ink-3); font-size: .88rem; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--navy); font: 600 .9rem var(--body); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; padding: .3rem; }

/* Placeholder sections */
.ph { background: var(--card); border-radius: 10px; padding: 1.5rem; display: grid; gap: 1rem; max-width: 860px; }
.ph ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.ph .status { justify-self: start; display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #8a6a25; background: rgba(215,181,109,.2); padding: .3rem .7rem; border-radius: 999px; }
.overview-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ov { background: var(--card); border-radius: 10px; padding: 1.1rem; text-decoration: none; color: var(--ink); border-top: 3px solid var(--grid); display: grid; gap: .3rem; }
.ov.live { border-top-color: var(--gold); }
.ov:hover { box-shadow: 0 6px 18px rgba(16,45,70,.1); text-decoration: none; }
.ov h3 { margin: 0; font-size: 1.05rem; }
.ov b { font: 800 1.4rem "Manrope", sans-serif; color: var(--navy); }
.ov small { color: var(--ink-3); }

/* Tooltip and dialog */
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--navy); color: #fff; border-radius: 6px; padding: .5rem .7rem; font-size: .85rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-width: 260px; }
.tip b { color: var(--gold); }
.txn-dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.txn-dialog::backdrop { background: rgba(16,45,70,.45); }
.txn-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 3px solid var(--gold); }
.txn-dialog-head h2 { margin: 0; }
.txn-dialog dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; padding: 1rem 1.25rem 1.4rem; gap: .45rem .75rem; font-size: .95rem; }
.txn-dialog dt { color: var(--ink-3); } .txn-dialog dd { margin: 0; color: var(--navy); word-break: break-word; }
.icon-btn { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--navy); cursor: pointer; padding: .2rem .5rem; }

@media (max-width: 1100px) { .card, .card.third, .card.two-thirds { grid-column: span 12; } }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; padding: .75rem; }
  .admin-nav-title { display: none; }
  .admin-nav ul { display: flex; overflow-x: auto; gap: .3rem; }
  .admin-nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .admin-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .funnel-row { grid-template-columns: 110px 1fr 80px; }
  .txn-dialog dl { grid-template-columns: 1fr; }
}
@media print { .admin-nav, .admin-header, .filters, .txn-tools { display: none; } .admin-shell { display: block; } }
/* Horizontal bars (HTML, so labels stay readable at any width) */
.hbars { display: grid; gap: .2rem; }
.hbar { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; align-items: center; gap: .7rem; padding: .3rem .35rem; border-radius: 6px; font-size: .92rem; }
.hbar.pick { cursor: pointer; }
.hbar.pick:hover, .hbar:focus-visible, .hbar.active { background: rgba(215,181,109,.14); }
.hb-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 14px; display: block; }
.hb-fill { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 0; transition: background .12s; }
.hbar.pick:hover .hb-fill, .hbar.active .hb-fill { background: var(--gold); }
.hb-val { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 4.5rem; }
.active-filters { margin-bottom: 1rem; align-items: center; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; } .kpi b { font-size: 1.25rem; } .filters label { flex-wrap: wrap; } }
/* Sign-in steps (OMS-MND-261125-06, owner feedback 26 Nov: clearer numbered flow) */
.login-steps { list-style: none; display: flex; gap: .5rem; margin: 1.25rem 0 .5rem; padding: 0; }
.login-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--ink-3); border-top: 3px solid var(--grid); padding-top: .6rem; }
.login-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--mist); color: var(--ink-3); flex: none; }
.login-steps li.is-current { color: var(--navy); border-top-color: var(--gold); }
.login-steps li.is-current span { background: var(--navy); color: #fff; }
.login-steps li.is-done { color: var(--paid); border-top-color: var(--paid); }
.login-steps li.is-done span { background: var(--paid); color: #fff; }
.step-title { font-weight: 700; color: var(--navy); margin: 1rem 0 0; }
.sent-to { font-size: .92rem; color: var(--ink-2); background: var(--mist); border-radius: 6px; padding: .55rem .75rem; margin: .6rem 0 0; }
.login-card .btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-links { display: flex; justify-content: space-between; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
/* Back to the public site (owner feedback 26 Nov) */
.back-link { color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; white-space: nowrap; }
.admin-nav .nav-back { display: block; margin: 1.5rem .7rem 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; color: var(--gold); font-weight: 600; }
@media (max-width: 560px) { .admin-badge { display: none; } .back-link { font-size: .88rem; } }
@media (max-width: 860px) { .admin-nav .nav-back { display: none; } }
/* Exam prices and results register (OMS-MND-261126-04/05/06/07) */
.price-edit { display: inline-flex; gap: .4rem; align-items: center; }
.price-edit input { width: 7.5rem; padding: .35rem .5rem; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; font: inherit; }
.price-history { margin-top: .8rem; }
.price-history summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.txn code { font-size: .85em; color: var(--navy); }
.login-msg.ok { color: var(--paid); }

/* OMS-MND-261126-11: price activation (new price + Activate from now + Apply) */
.price-table input.np { width: 7.5rem; padding: .35rem .5rem; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; font: inherit; }
.price-table label.act { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .92rem; cursor: pointer; }
.price-table label.act input { width: 18px; height: 18px; accent-color: #102d46; }
.price-table td { vertical-align: middle; }

/* OMS-MND-261126-12/-13: corporate accounts */
.txn-tools select { padding: .45rem .6rem; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; font: inherit; background: #fff; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td, tr.row-link:focus td { background: rgba(194,155,64,.08); }
tr.row-link.is-open td { background: rgba(194,155,64,.16); }
.corp-detail { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(16,45,70,.15); border-left: 4px solid #c29b40; border-radius: 10px; background: #fbfaf6; }
.corp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.corp-head h3 { margin: 0 0 .2rem; font-size: 1.25rem; }
.corp-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.corp-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem 1.2rem; margin: 1rem 0; }
.corp-info dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7a; }
.corp-info dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.corp-detail h4 { margin: 1.3rem 0 .2rem; font-size: 1.05rem; }
.price-edit input.note { width: 12rem; }
@media (max-width: 640px) { .price-edit { flex-wrap: wrap; } .price-edit input.note { width: 100%; } }

.act-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.seats-edit input[type=number] { width: 6rem; }
.seats-edit input.note { width: 11rem; }
.admin-list { margin: .3rem 0 .8rem; padding-left: 1.2rem; }
/* OMS-MND-261129-14: Exam settings */
.xs-exam { border-top: 1px solid var(--grid); padding: 1rem 0; }
.xs-exam:first-child { border-top: 0; padding-top: 0; }
.xs-head h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.xs-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem 1rem; margin: .75rem 0; }
.xs-now div { background: rgba(16,45,70,.04); border-radius: 8px; padding: .5rem .7rem; }
.xs-now dt { color: var(--ink-3); font-size: .8rem; } .xs-now dd { margin: 0; font-weight: 700; }
.xs-fields { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; margin: .6rem 0; }
.xs-fields label { display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; color: var(--ink-2); }
.xs-fields label.act { flex-direction: row; align-items: center; }
.xs-fields input[type=number] { width: 8rem; } .xs-note { flex: 1 1 260px; } .xs-note input { width: 100%; }
.xs-fields input[type=number], .xs-note input { padding: .35rem .5rem; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; font: inherit; }
.xs-hint { color: var(--ink-3); font-size: .85rem; margin: 0 0 .4rem; min-height: 1em; }
.xs-hist { margin-top: .6rem; } .xs-hist summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.xs-foot { font-size: .85rem; margin-top: .6rem; }
@media (max-width: 600px) { .xs-fields input[type=number] { width: 100%; } .xs-fields label { flex: 1 1 45%; } }
/* OMS-MND-261130-01: Pricing, currency and promotions */
.cm-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cm-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.cm-tabs button { border: 1px solid rgba(16,45,70,.2); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.cm-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cm-wide { font-size: .85rem; } .cm-wide td, .cm-wide th { white-space: nowrap; } .cm-wide small { white-space: normal; }
.cm-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; margin: .6rem 0 1rem; }
.cm-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--ink-2); }
.cm-form label.act { flex-direction: row; align-items: center; }
.cm-form input, .cm-form select { padding: .35rem .5rem; border: 1px solid rgba(16,45,70,.25); border-radius: 6px; font: inherit; min-width: 8rem; }
.cm-form .cm-long { min-width: 18rem; } .cm-col { flex-direction: column; align-items: stretch; } .cm-col input { width: 100%; max-width: 28rem; }
.cm-h { font-size: 1rem; margin: 1.1rem 0 .3rem; }
.cm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.cm-card { background: rgba(16,45,70,.04); border-radius: 8px; padding: .75rem .9rem; } .cm-big { font-size: 1.6rem; font-weight: 700; margin: .2rem 0; }
.cm-log { margin: .2rem 0 .8rem; padding-inline-start: 1.1rem; font-size: .85rem; color: var(--ink-2); }
.cm-pre { white-space: pre-wrap; font-size: .75rem; max-width: 40rem; }
@media (max-width: 600px) { .cm-form label { flex: 1 1 100%; } .cm-form input, .cm-form select, .cm-form .cm-long { min-width: 0; width: 100%; } }
.cm-log li.cm-warn { color: #9a3412; font-weight: 600; }

/* OMS-MND-261130-38 (ADMIN-112): tabs and sub-tabs, Arabic (RTL) and phone layout */
.admin-subtabs { margin: -.25rem 0 1.25rem; border-bottom: 1px solid var(--grid); }
.admin-subtabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.admin-subtabs a { display: block; padding: .55rem .85rem; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-subtabs a:hover { color: var(--navy); }
.admin-subtabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.admin-nav .nav-lang { display: block; margin: 1rem .7rem 0; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: .35rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.admin-nav .nav-lang:hover { border-color: var(--gold); color: var(--gold); }
.ph-list { display: grid; gap: 1rem; }
.ph h2 small { font-size: .8rem; font-weight: 500; }
.ar-note { font-size: .85rem; }
.q2c-embed { padding: 1rem; }
.q2c-embed h2 { font-size: 1.15rem; margin-top: 1.25rem; }
.q2c-embed h2:first-child, .q2c-embed .q2c-kpis + h2 { margin-top: .5rem; }
[dir="rtl"] .admin-nav a { border-left: 0; border-right: 3px solid transparent; }
[dir="rtl"] .admin-nav a[aria-current="page"] { border-right-color: var(--gold); }
[dir="rtl"] .ph ul { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .view-head, [dir="rtl"] .admin-main { text-align: right; }
@media (max-width: 860px) {
  .admin-subtabs ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-nav .nav-lang { display: inline-block; margin: .5rem 0 0; }
  [dir="rtl"] .admin-nav a { border-right: 0; }
}
.xs-now dd { overflow-wrap: anywhere; }   /* OMS-MND-261130-38: long price variable names wrap on phones */

/* Dec 6 2026 (admin question-bank readiness fix round): the distribution
   moved out of the table into a full-width second row per exam, so area
   names must never truncate here; the Actions column stacks Generate 5
   over Delete an item; the delete dialog's Confirm must look disabled
   until an item is shown. Every rule is scoped to the dashboard (#qbWrap)
   or to the dialog's Confirm (#qbDelConfirm), so no other admin section
   changes. The shared .hb-label truncation stays for the other bars. */
#qbWrap .qb-actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; }
#qbWrap .qb-actions .btn { width: 100%; }
#qbWrap td.qb-dist-cell { white-space: normal; }
#qbWrap .qb-hbars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1.25rem; }
#qbWrap .hbar { grid-template-columns: minmax(110px, 40%) 1fr auto; }
#qbWrap .hb-label { white-space: normal; overflow: visible; text-overflow: clip; }
#qbDelConfirm:disabled { background: #dfe5ec; color: var(--ink-3); border-color: transparent; box-shadow: none; transform: none; cursor: not-allowed; opacity: 1; }
/* Dec 6 2026 (read-only item view): source line and option lists in the
   view dialog. Prompts keep their line breaks (pre-line); the dialog's
   shared dl layout is reused, so nothing else changes. */
#qbViewDialog .qb-view-src { margin: 0; padding: .9rem 1.25rem 0; font-size: .92rem; color: var(--ink-2); }
#qbViewDialog .qb-view-prompt { white-space: pre-line; }
#qbViewDialog .qb-view-opts { margin: 0; padding-inline-start: 1.25rem; }
#qbViewDialog .qb-view-opts li { margin: .15rem 0; }
@media (max-width: 860px) { #qbWrap .qb-hbars { grid-template-columns: 1fr; } }
/* Dec 6 2026 (readiness dashboard density follow-up, owner: "make it bigger"):
   visibly larger dashboard text, taller rows and more spacing; the table
   lives in its own scroll area (qb-table-scroll) so the page header and the
   KPI row above it stay put. Every rule is scoped to #qbWrap, so no other
   admin section changes. The sub-lines under the big numbers may wrap, so
   the wider text still fits at 1440 in English and Arabic; nothing is hidden. */
#qbWrap .txn { font-size: 1.1rem; }
#qbWrap .txn th { font-size: .9rem; }
#qbWrap .txn th, #qbWrap .txn td { padding: 1rem 1rem; }
#qbWrap .txn td small { font-size: .95rem; white-space: normal; }
#qbWrap .qb-table-scroll { max-height: calc(100vh - 30rem); min-height: 19rem; overflow-y: auto; }
#qbWrap .env-note { font-size: 1.05rem; padding: .8rem 1.1rem; margin-bottom: 1.5rem; }
#qbWrap .empty { font-size: 1.05rem; }
#qbWrap .kpis { gap: 1.25rem; margin-bottom: 1.5rem; }
#qbWrap .kpi { padding: 1.35rem 1.4rem; }
#qbWrap .kpi span { font-size: 1rem; }
#qbWrap .kpi b { font-size: 2.1rem; }
#qbWrap .kpi small { font-size: .95rem; }
#qbWrap .btn-sm { min-height: 46px; padding: .55rem 1.05rem; font-size: 1.02rem; }
#qbWrap .qb-hbars { gap: .45rem 1.5rem; }
#qbWrap .hbar { font-size: 1.05rem; padding: .55rem .5rem; }
#qbWrap .hb-track { height: 18px; }
#qbWrap .hb-val { min-width: 6rem; }

/* Dec 6 2026 (structural fix, owner: the area bars are cramped on mobile):
   (Placed here, after the density rules, so the shared harness's first-match
   rule lookup still finds the 18px track / 6rem value rules; pairs with the
   860px one-column rule above.)
   under ~700px each area bar stacks in one column -- the full area name on
   its own line above the track and the numbers -- so the bar and the numbers
   stay readable and no name is ever truncated. Scoped to #qbWrap only; the
   areas are already one column below 860px, this stacks the bar itself. */
@media (max-width: 700px) {
  #qbWrap .qb-hbars { grid-template-columns: 1fr; }
  #qbWrap .hbar { grid-template-columns: 1fr auto; grid-template-areas: "label label" "track val"; row-gap: .1rem; }
  #qbWrap .hb-label { grid-area: label; }
  #qbWrap .hb-track { grid-area: track; }
  #qbWrap .hb-val { grid-area: val; }
}
/* Dec 6 2026 (layout preview follow-up, owner render at 1600): the
   Promotions table must fit its card with no clipped header text and no
   horizontal overflow out of the card, in English and Arabic. Headers and
   cells may wrap; nothing is hidden. Scoped to the promotions table only. */
.txn.cm-promos th, .txn.cm-promos td { white-space: normal; }
.txn.cm-promos td { vertical-align: middle; }

/* Dec 6 2026: layout preview (exam-settings / commerce-admin not deployed).
   Sample values, never real data. Banner is permanent on every preview
   surface; disabled controls look disabled, never navy. */
.layout-preview-banner { background: #fff3d6; border: 1px solid var(--gold); border-inline-start: 6px solid var(--gold); border-radius: 8px; padding: .7rem .9rem; margin: 0 0 1rem; font-weight: 600; color: var(--navy); }
.sample-tag { display: inline-block; font-size: .75rem; font-weight: 700; font-style: italic; color: var(--ink-3); background: rgba(16,45,70,.06); border: 1px solid rgba(16,45,70,.14); border-radius: 999px; padding: .05rem .5rem; margin-inline-start: .4rem; vertical-align: middle; white-space: nowrap; }
.xs-preview .btn:disabled, .cm-preview .btn:disabled { background: #dfe5ec; color: var(--ink-3); border-color: transparent; box-shadow: none; transform: none; cursor: not-allowed; opacity: 1; }
.xs-preview .linkbtn:disabled, .cm-preview .linkbtn:disabled { color: var(--ink-3); text-decoration: none; cursor: not-allowed; }
.xs-preview input:disabled, .xs-preview select:disabled, .xs-preview textarea:disabled,
.cm-preview input:disabled, .cm-preview select:disabled, .cm-preview textarea:disabled { background: #f0f3f6; color: var(--ink-3); cursor: not-allowed; }
