/*
 * Licensing module theme.
 *
 * Ported from the source portal's PAGE_CSS - the palette, sizes and component
 * shapes the team actually reviewed and restyled, rather than the earlier
 * written description in ux-ui-design-guide.md (which described a warm/orange
 * scheme the shipped build had already moved away from).
 *
 * Class names keep the lic- prefix because this module loads Bootstrap 5.3 and
 * HQ's global components.css: the portal's bare .card / .btn / .pill names would
 * collide with both. Mapping for anyone comparing against the original:
 *
 *   .card -> .lic-card        .btn -> .lic-btn        .pill -> .lic-pill
 *   .kpi  -> .lic-stat        .empty -> .lic-empty
 *
 * Several rules here carry the source's own comments crediting the 8-12-2026
 * team feedback and mockups - those revisions are already baked in.
 */

.licensing-app {
    /* Surfaces & type */
    --lic-bg: #f7f5fc;
    --lic-surface: #ffffff;
    --lic-line: #ece8f5;
    --lic-text: #33334d;
    --lic-text-soft: #7b7b99;
    --lic-navy: #2a2a55;

    /* Brand */
    --lic-brand: #f2478a;
    --lic-brand-dark: #d42e71;
    --lic-brand-soft: #fde8f1;
    --lic-cyan: #1e9fdd;
    --lic-cyan-soft: #e4f4fc;
    --lic-teal: #12a17e;
    --lic-teal-soft: #e2f6f0;
    --lic-gold: #f2c21f;
    --lic-gold-soft: #fcf3d4;
    --lic-purple: #8f5fc7;
    --lic-purple-soft: #f1eafa;
    --lic-lav: #c9b8e8;

    /* Status families */
    --lic-blue: #1e9fdd;
    --lic-blue-bg: #e4f4fc;
    --lic-amber: #b07709;
    --lic-amber-bg: #fcf3d4;
    --lic-green: #12a17e;
    --lic-green-bg: #e2f6f0;
    --lic-orange: #e06b1f;
    --lic-orange-bg: #fdeedf;
    --lic-red: #e23d5b;
    --lic-red-bg: #fdeaee;

    /* Shape */
    --lic-radius: 18px;
    --lic-radius-sm: 12px;
    --lic-shadow: 0 2px 4px rgba(42, 42, 85, .06), 0 6px 18px rgba(42, 42, 85, .06);

    background-color: var(--lic-bg);
    color: var(--lic-text);
    font: 16px/1.55 "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.licensing-wrapper {
    padding-bottom: 3rem;
}

/* --- Headings ----------------------------------------------------------- */

.licensing-app h1 { font-size: 28px; color: var(--lic-navy); font-weight: 800; letter-spacing: -.01em; }
.licensing-app h2 { font-size: 19.5px; color: var(--lic-navy); font-weight: 700; }
.licensing-app h3 { font-size: 16.5px; color: var(--lic-navy); font-weight: 700; }

.licensing-app a { color: var(--lic-cyan); text-decoration: none; }
.licensing-app a:hover { text-decoration: underline; }

.lic-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
    margin: 1.5rem 0 1.25rem;
}

.lic-subtitle {
    color: var(--lic-text-soft);
    font-size: 13.5px;
}

.lic-crumbs {
    font-size: 13px;
    color: var(--lic-text-soft);
    margin-bottom: 12px;
}

/* --- Cards -------------------------------------------------------------- */

.lic-card {
    background-color: var(--lic-surface);
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius);
    box-shadow: var(--lic-shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.lic-card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--lic-navy);
    margin-bottom: 10px;
}

/* Stage guidance. Amber, not pink: the 8-12-2026 feedback was that pink
   clashed with the gray background. Heading bolder per the mockup. */
.lic-guidance {
    background-color: var(--lic-gold-soft);
    border: 1.5px solid var(--lic-gold);
    border-radius: var(--lic-radius-sm);
    padding: 14px 17px;
    margin-bottom: 12px;
}

.lic-guidance h3 {
    color: var(--lic-navy);
    font-size: 18px;
    margin-bottom: 6px;
}

/* Required changes carried forward from an approve-with-changes decision */
.lic-carried-notes {
    background-color: var(--lic-gold-soft);
    border: 2px solid var(--lic-gold);
    border-radius: var(--lic-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.lic-carried-notes b,
.lic-carried-notes strong { color: var(--lic-amber); }

/* --- Status pills ------------------------------------------------------- */
/* One place defines status colour for the whole module. Every pill also
   carries its label as text: colour alone never conveys status. */

.lic-pill {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    background-color: var(--lic-purple-soft);
    color: var(--lic-purple);
}

.lic-pill-submitted            { background-color: var(--lic-blue-bg);   color: var(--lic-blue); }
.lic-pill-in_review            { background-color: var(--lic-amber-bg);  color: var(--lic-amber); }
.lic-pill-approved,
.lic-pill-fully_approved       { background-color: var(--lic-green-bg);  color: var(--lic-green); }
.lic-pill-revise_and_resubmit  { background-color: var(--lic-orange-bg); color: var(--lic-orange); }
.lic-pill-rejected             { background-color: var(--lic-red-bg);    color: var(--lic-red); }
.lic-pill-in_progress          { background-color: var(--lic-purple-soft); color: var(--lic-purple); }

/* Approved with changes: green, ringed amber for the caveat */
.lic-pill-approved_with_changes {
    background-color: var(--lic-green-bg);
    color: var(--lic-green);
    box-shadow: inset 0 0 0 1.5px var(--lic-amber);
}

/* Response-due chip */
.lic-duechip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background-color: var(--lic-gold-soft);
    color: var(--lic-amber);
    white-space: nowrap;
}

.lic-duechip.overdue {
    background-color: var(--lic-red-bg);
    color: var(--lic-red);
}

.lic-rolechip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 5px;
}

.lic-rolechip-licensor { background-color: #f5f0fe; color: #7c3aed; }
.lic-rolechip-licensee { background-color: #ebf7f5; color: #0d9488; }

/* --- Buttons ------------------------------------------------------------ */

.lic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    min-height: 38px;
    font-weight: 700;
    font-size: 14px;
    background-color: var(--lic-purple-soft);
    color: var(--lic-navy);
    cursor: pointer;
    transition: transform .12s ease-out, background-color .12s ease-out;
}

.lic-btn:active { transform: scale(.94); }

.lic-btn-primary { background-color: var(--lic-brand); color: #fff; }
.lic-btn-primary:hover { background-color: var(--lic-brand-dark); color: #fff; }

.lic-btn-subtle { background-color: transparent; box-shadow: inset 0 0 0 2px var(--lic-line); }
.lic-btn-subtle:hover { box-shadow: inset 0 0 0 2px var(--lic-lav); }

.lic-btn-green { background-color: var(--lic-teal); color: #fff; }
.lic-btn-greenline { background-color: var(--lic-teal-soft); color: var(--lic-teal); box-shadow: inset 0 0 0 2px var(--lic-teal); }
.lic-btn-orange { background-color: var(--lic-orange); color: #fff; }
.lic-btn-red { background-color: var(--lic-red); color: #fff; }

.lic-btn:disabled,
.lic-btn[disabled] { opacity: .5; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
    .lic-btn { transition: none; }
}

/* --- Tables ------------------------------------------------------------- */

.licensing-app table.lic-list {
    width: 100%;
    border-collapse: collapse;
}

.licensing-app table.lic-list th {
    text-align: left;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lic-text-soft);
    padding: 8px 10px;
    border-bottom: 1px solid var(--lic-line);
}

.licensing-app table.lic-list td {
    padding: 10px;
    border-bottom: 1px solid var(--lic-line);
    vertical-align: middle;
}

.licensing-app table.lic-list tr.rowlink { cursor: pointer; }
.licensing-app table.lic-list tr.rowlink:hover { background-color: var(--lic-bg); }
.licensing-app table.lic-list tr.selected { background-color: var(--lic-brand-soft); }

/* Spreadsheet-style sorting (team feedback 8-12-2026) */
.licensing-app th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.licensing-app th.sortable:hover { color: var(--lic-navy); }
.licensing-app th.sortable .arr { font-size: 10px; margin-left: 3px; }

/* --- Stat tiles --------------------------------------------------------- */

.lic-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.lic-stat {
    background-color: var(--lic-surface);
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius);
    box-shadow: var(--lic-shadow);
    padding: 12px 18px;
    min-width: 120px;
}

.lic-stat-value { font-size: 24px; font-weight: 700; }
.lic-stat-label { font-size: 12.5px; color: var(--lic-text-soft); }

/* --- Stage stepper ------------------------------------------------------ */

.lic-stepper { display: flex; align-items: center; flex-wrap: wrap; }
.lic-step { display: flex; align-items: center; }

.lic-step .dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    border: 2px solid var(--lic-line);
    background-color: var(--lic-surface);
    color: var(--lic-text-soft);
}

.lic-step.done .dot { background-color: var(--lic-green); border-color: var(--lic-green); color: #fff; }
.lic-step.current .dot { border-color: var(--lic-brand); color: var(--lic-brand); box-shadow: 0 0 0 4px var(--lic-brand-soft); }

.lic-step .lbl { margin: 0 10px 0 8px; font-size: 14px; color: var(--lic-text-soft); }

/* Current stage pops (team feedback 8-12-2026 + mockup: bolder, warm highlight) */
.lic-step.current .lbl {
    color: var(--lic-navy);
    font-weight: 800;
    font-size: 15px;
    background-color: var(--lic-gold-soft);
    padding: 3px 12px;
    border-radius: 999px;
}

.lic-step .bar { width: 26px; height: 2px; background-color: var(--lic-line); margin-right: 10px; }
.lic-step.done .bar { background-color: var(--lic-green); }

.lic-stepper.mini .lbl { display: none; }
.lic-stepper.mini .dot { width: 13px; height: 13px; }
.lic-stepper.mini .bar { width: 12px; margin-right: 4px; }

/* Compact approval pips for the submission page (mockup) */
.lic-pips {
    display: flex;
    align-items: center;
    background-color: var(--lic-bg);
    border-radius: 999px;
    padding: 10px 14px;
    margin-bottom: 14px;
    width: fit-content;
}

.lic-pips .pip {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2.5px solid var(--lic-line);
    background-color: var(--lic-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.lic-pips .pip.done { background-color: var(--lic-teal); border-color: var(--lic-teal); }
.lic-pips .pip.current { border-color: var(--lic-brand); box-shadow: 0 0 0 3px var(--lic-brand-soft); }
.lic-pips .pip.passed { border-color: var(--lic-teal); color: var(--lic-teal); width: 17px; height: 17px; }
.lic-pips .pip.passed::after { content: '\2713'; }
.lic-pips .pip.failed { border-color: var(--lic-red); color: var(--lic-red); width: 17px; height: 17px; }
.lic-pips .pip.failed::after { content: '\2715'; }
.lic-pips .pbar { width: 22px; height: 2px; background-color: var(--lic-line); }

/* Compact stage header on the submission page (mockup) */
.lic-stagehead { font-size: 18px; font-weight: 800; color: var(--lic-navy); margin-bottom: 8px; }
.lic-stagehead .sname { color: var(--lic-teal); }

/* --- Submission review: two panels ------------------------------------- */

.lic-subview {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 980px) {
    .lic-subview { grid-template-columns: 1fr; }
}

.lic-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lic-filetabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.lic-filetab {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--lic-line);
    background-color: var(--lic-surface);
    font-size: 13px;
}

.lic-filetab.active {
    border-color: var(--lic-brand);
    background-color: var(--lic-brand-soft);
    color: var(--lic-brand);
    font-weight: 600;
}

/* --- Annotation canvas -------------------------------------------------- */

.lic-canvas-wrap { position: relative; display: inline-block; max-width: 100%; }
.lic-canvas-wrap img.subject { max-width: 100%; display: block; border-radius: var(--lic-radius-sm); }
.lic-canvas-wrap.annotatable img.subject { cursor: crosshair; }

.lic-anno {
    position: absolute;
    border: 2px solid var(--lic-brand);
    background-color: rgba(242, 71, 138, .12);
    border-radius: 4px;
}

.lic-anno-pin {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 999px;
    background-color: var(--lic-brand);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: var(--lic-shadow);
}

.lic-anno.hl,
.lic-anno-pin.hl { outline: 3px solid var(--lic-blue); }

.lic-anno-pop {
    position: absolute;
    z-index: 30;
    background-color: var(--lic-surface);
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    box-shadow: var(--lic-shadow);
    padding: 10px;
    width: 260px;
}

/* Fullscreen + download controls on the canvas (team feedback 8-12-2026) */
.lic-canvas-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }

.lic-canvas-tools button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background-color: rgba(42, 42, 60, .78);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lic-shadow);
}

.lic-canvas-tools button:hover { background-color: rgba(42, 42, 60, .95); }

/* Show/hide annotations (team feedback 8-12-2026) */
.lic-anno-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--lic-text-soft);
    cursor: pointer;
    margin-left: 10px;
}

.lic-canvas-wrap.hide-annos .lic-anno,
.lic-canvas-wrap.hide-annos .lic-anno-pin { display: none; }

.lic-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(42, 42, 85, .75);
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lic-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; background-color: #fff; }

/* --- Comments ----------------------------------------------------------- */

.lic-comment { padding: 10px 0; border-bottom: 1px solid var(--lic-line); }
.lic-comment .meta { font-size: 12.5px; color: var(--lic-text-soft); margin-bottom: 3px; }
.lic-comment .meta .who { font-weight: 600; color: var(--lic-text); }
.lic-comment.reply { margin-left: 26px; }

.lic-comment .pin-badge {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: var(--lic-brand);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    vertical-align: middle;
}

/* --- Decision panel ---------------------------------------------------- */

.lic-decision-panel { border-top: 2px solid var(--lic-line); margin-top: 14px; padding-top: 14px; }
.lic-decision-panel .btns { display: grid; gap: 8px; margin-top: 10px; }
.lic-decision-panel .hint { font-size: 12.5px; color: var(--lic-text-soft); margin: 2px 0 8px; }

.lic-decision-panel.sticky {
    position: sticky;
    bottom: 12px;
    background-color: var(--lic-surface);
    box-shadow: var(--lic-shadow);
}

/* --- Dashboard: queue, board, bars -------------------------------------- */

/* Needs-your-review is the point of the page (team feedback: keep action
   items front and centre) */
.lic-hero-review { border: 2px solid var(--lic-brand); }
.lic-hero-review h2 { font-size: 22px; }

.lic-qrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--lic-line);
    cursor: pointer;
}

.lic-qrow:hover { background-color: var(--lic-bg); }
.lic-qrow .age { margin-left: auto; font-size: 12.5px; color: var(--lic-text-soft); white-space: nowrap; }
.lic-qrow .age.hot { color: var(--lic-red); font-weight: 700; }
.lic-qrow .cta { margin-left: 8px; padding: 4px 14px; min-height: 0; font-size: 12.5px; flex-shrink: 0; }

.lic-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }

.lic-board .col {
    min-width: 190px;
    background-color: var(--lic-bg);
    border-radius: var(--lic-radius-sm);
    padding: 10px;
}

.lic-board .col h4 {
    margin: 0 0 8px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lic-text-soft);
}

.lic-board .bcard {
    background-color: var(--lic-surface);
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.lic-bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }

.lic-bar-row .lbl {
    width: 170px;
    text-align: right;
    color: var(--lic-text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lic-bar-row .bar { height: 18px; background-color: var(--lic-brand); border-radius: 4px; min-width: 2px; }
.lic-bar-row .val { font-weight: 600; }

.lic-count-chip {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: var(--lic-brand);
    color: #fff;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* --- Uploads ----------------------------------------------------------- */

.lic-dropzone {
    border: 2px dashed var(--lic-line);
    border-radius: var(--lic-radius);
    padding: 26px;
    text-align: center;
    color: var(--lic-text-soft);
    background-color: var(--lic-bg);
}

.lic-dropzone.over { border-color: var(--lic-brand); background-color: var(--lic-brand-soft); }

.lic-filerow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    margin-top: 8px;
}

.lic-filerow img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.lic-filerow .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic-filerow .sz { color: var(--lic-text-soft); font-size: 12.5px; }

.lic-linkcard {
    display: block;
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    padding: 12px 14px;
    margin-top: 8px;
}

/* Comment attachments (team feedback 8-12-2026) */
.lic-attach-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--lic-cyan-soft);
    color: var(--lic-cyan);
    font-size: 12.5px;
    font-weight: 700;
    border: none;
}

.lic-attach-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.lic-attach-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--lic-line);
    cursor: pointer;
}

/* A file picked but not yet posted, with its remove control */
.lic-attach-thumbs .pending { position: relative; }

.lic-attach-thumbs .pending .x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background-color: var(--lic-red);
    color: #fff;
    border: none;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

/* --- Archived ----------------------------------------------------------- */
/* Read-only, not broken - so it reads as a state, not an error. */

.lic-archived {
    background-color: var(--lic-gray, #f0ede8);
    border: 1px solid var(--lic-line);
    border-left: 4px solid var(--lic-text-soft);
    border-radius: var(--lic-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: var(--lic-text);
}

/* --- Forms ------------------------------------------------------------- */

.licensing-app .form-control,
.licensing-app .form-select {
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    padding: 9px 12px;
    background-color: var(--lic-surface);
    color: var(--lic-text);
}

.licensing-app .form-control:focus,
.licensing-app .form-select:focus {
    border-color: var(--lic-lav);
    box-shadow: none;
}

.licensing-app .form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.licensing-app textarea.form-control { min-height: 84px; resize: vertical; }

/* --- Empty states ------------------------------------------------------- */
/* Blank screens are silent drop-off points: every empty list explains itself. */

.lic-empty {
    text-align: center;
    padding: 34px 20px;
    color: var(--lic-text-soft);
    background-color: var(--lic-surface);
    border: 1px dashed var(--lic-line);
    border-radius: var(--lic-radius);
}

.lic-empty-icon { font-size: 34px; color: var(--lic-lav); margin-bottom: 8px; }
.lic-empty-title { color: var(--lic-navy); font-size: 17px; font-weight: 700; margin-bottom: 4px; }

/* --- Loading ------------------------------------------------------------ */
/* HQ defines .loader-spinning globally but positions the wrapper per page;
   the module defines it once here instead of in every licensing view. */

.licensing-app .container-spinner-center {
    z-index: 9001;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
}

/* --- Focus ring --------------------------------------------------------- */
/* Never removed, never invisible - on everything interactive. */

.licensing-app a:focus-visible,
.licensing-app button:focus-visible,
.licensing-app input:focus-visible,
.licensing-app select:focus-visible,
.licensing-app textarea:focus-visible,
.licensing-app [tabindex]:focus-visible {
    outline: 2.5px solid var(--lic-brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Sign-in, registration and password screens -------------------------- */
/*
 * The module's own front door. Built from the vocabulary already above -
 * .lic-card, .lic-btn, .form-control, the same palette and the same 18px
 * radius - so the login page reads as the portal rather than as a page that
 * happens to sit in front of it.
 *
 * Only the shell is new: a centred column on the module's lavender ground,
 * because the authenticated pages get their width from the navbar container
 * and these have no navbar.
 */

.licensing-app.licensing-guest {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.lic-auth {
    width: 100%;
    max-width: 430px;
}

/* Wordmark above the card - the same lockup the emails use */
.lic-auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.lic-auth-brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--lic-navy);
}

.lic-auth-brand-name span { color: var(--lic-brand); }

.lic-auth-card {
    padding: 30px 28px;
}

.lic-auth-card h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

/* A heading with no lede under it carries the lede's spacing instead */
.lic-auth-card h1.lic-auth-solo-title { margin-bottom: 22px; }

.lic-auth-lede {
    color: var(--lic-text-soft);
    font-size: 14px;
    margin-bottom: 22px;
}

.lic-auth-field { margin-bottom: 15px; }

/* Full-width submit: there is only ever one thing to do on these screens */
.lic-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

/* The row under the submit - forgot password, back to sign in */
.lic-auth-links {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--lic-line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
}

.lic-auth-links.single { justify-content: center; }

/* The projects an invitation already carries, shown before they commit */
.lic-auth-invite {
    background-color: var(--lic-cyan-soft);
    border: 1.5px solid var(--lic-cyan);
    border-radius: var(--lic-radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
}

.lic-auth-invite-title {
    color: var(--lic-navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.lic-auth-note {
    font-size: 12.5px;
    color: var(--lic-text-soft);
    margin-top: 5px;
}

/* Footer under the card - which environment, and where HQ lives */
.lic-auth-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--lic-text-soft);
}

/*
 * Development only: a plain marker that this is not production, because the
 * licensing subdomain looks identical in both and these screens are the one
 * place where signing into the wrong one is easy to do.
 */
.lic-auth-env {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: var(--lic-gold-soft);
    color: var(--lic-amber);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* --- Checkbox lists ------------------------------------------------------ */
/*
 * Assigning a licensee to projects. A set, not a choice: a partner may work on
 * several lines at once, and a select would hide the ones already ticked
 * behind a click.
 *
 * Scrolls past six or so rather than pushing the modal's save button off the
 * screen - the number of projects only goes up.
 */

.lic-checklist {
    border: 1px solid var(--lic-line);
    border-radius: var(--lic-radius-sm);
    padding: 10px 12px;
    max-height: 220px;
    overflow-y: auto;
}

.lic-checklist .form-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    margin: 0;
    cursor: pointer;
}

.lic-checklist .form-check + .form-check { border-top: 1px solid var(--lic-line); }

.lic-checklist .form-check-input {
    margin: 0;
    flex: none;
    cursor: pointer;
}

.lic-checklist .form-check-input:checked {
    background-color: var(--lic-brand);
    border-color: var(--lic-brand);
}

.lic-checklist .form-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

/* --- Alerts -------------------------------------------------------------- */
/*
 * The module's own, rather than HQ's .custom-alert.
 *
 * That one carries `z-index: -1`, which puts it behind whatever it sits next
 * to - it happens to be visible inside HQ's page wrapper and vanishes entirely
 * on the sign-in screens, which have no wrapper. Rather than depend on a
 * stacking context two stylesheets away, licensing states its own.
 */

.lic-alert {
    padding: 11px 15px;
    margin-bottom: 16px;
    border-radius: var(--lic-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.lic-alert-success {
    background-color: var(--lic-green-bg);
    border-color: var(--lic-green);
    color: var(--lic-green);
}

.lic-alert-error {
    background-color: var(--lic-red-bg);
    border-color: var(--lic-red);
    color: var(--lic-red);
}

.lic-alert-info {
    background-color: var(--lic-blue-bg);
    border-color: var(--lic-blue);
    color: var(--lic-blue);
}
