/* == Module header (D6). Purpose/Status are hand-written; Module-Map.py --check verifies the rest. ==
   Purpose:   LogicFortress UI layer 241: Proposals (2026-10-11).
   Status:    active
   Loaded by: suite_look.py (directory scan)
   Replaces:  none
   History:   241, 319, 382, 469, 489, 575, 598
   == end of module header == */
/* LogicFortress UI layer 241: Proposals (2026-10-11).
   The top bar holds four apps for people who can use Proposals (Inventory, Proposals, Files,
   Dashboard), so the menu grows by one link's width instead of squeezing four links into the
   three-link space; below 1280px it shows icons only. People without Proposals keep the
   three-link menu.
   Also styles the Proposals row in Users > Access privileges and the Claude, Amazon Business and
   ADI price list cards in Integrations (setup steps, 241R2).
   Loaded on every page by suite_look.py (LF 319 / BSS 382: new name). Delete this file or run the 241 undo to remove it. */
@layer app {
    /* LF 469 / BSS 575 (2026-10-29): on wide screens each link is as wide as its own icon and label, with even padding,
       so every gap in the menu matches; equal-width boxes gave short labels (Files) wider gaps than long ones. */
    @media (min-width: 1280px) {
        
    }
    /* LF 489 / BSS 598 (2026-10-30, menu colours): the menu icon colours moved to suite-look.css (I10), the one place that colours them. */
    /* Below 1280px four labelled links would squeeze the search and category boxes, so the menu
       shows icons only (hover or long-press shows the name). */
    @media (max-width: 1279px) {
        
        
        
    }
    @media (max-width: 930px) {
        
    }
    @media (max-width: 600px) {
        
    }

    /* Users > Access privileges: the Proposals row matches Inventory and Files. */
    #proposals-row241 p.proposals-note241 {
        margin: 4px 0 0;
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 400;
    }

    /* Integrations (241R2): Claude, Amazon Business and ADI price list cards with numbered setup steps. */
    .setup241 .section-help {
        margin: 0 0 4px;
        max-width: 900px;
        line-height: 1.55;
    }
    .steps241 {
        list-style: none;
        margin: 20px 0 0;
        padding: 0;
        display: grid;
    }
    .step241 {
        position: relative;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0 14px;
        padding-bottom: 22px;
    }
    .step241:last-child {
        padding-bottom: 4px;
    }
    /* the line joining one step's circle to the next */
    .step241:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 14px;
        top: 34px;
        bottom: 4px;
        width: 2px;
        border-radius: 2px;
        background: var(--line31);
    }
    .step241.done:not(:last-child)::before {
        background: #23a35a;
    }
    .num241 {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid var(--line31);
        background: var(--panel31);
        color: var(--muted31);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
    }
    .step241.now .num241 {
        border-color: var(--activity31);
        color: var(--activity31);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--activity31) 14%, transparent);
    }
    .step241.done .num241 {
        border-color: #23a35a;
        background: #23a35a;
        color: #fff;
    }
    .num241 svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .stepmain241 {
        min-width: 0;
    }
    .steptitle241 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 10px;
        min-height: 30px;
        color: var(--ink31);
    }
    .stepname241 {
        font-size: 15px;
        font-weight: 600;
    }
    .step241:not(.done):not(.now) .stepname241 {
        color: var(--ink31);
        opacity: .82;
    }
    .steptag241 {
        padding: 2px 9px;
        border-radius: 999px;
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: .02em;
    }
    .step241.now .steptag241 {
        background: color-mix(in srgb, var(--activity31) 12%, transparent);
        color: var(--activity31);
    }
    .step241.done .steptag241 {
        background: rgba(35, 163, 90, .13);
        color: #19804a;
    }
    .dark .step241.done .steptag241 {
        color: #5fd38f;
    }
    .howbtn241 {
        margin-left: auto;
        padding: 2px 6px;
        border: 0;
        background: none;
        color: var(--muted31);
        font: inherit;
        font-size: 12.5px;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .howbtn241:hover {
        color: var(--ink31);
    }
    .stephelp241 {
        margin: 2px 0 0;
        max-width: 860px;
        color: var(--muted31);
        font-size: 13.5px;
        line-height: 1.55;
    }
    .stephelp241:empty {
        display: none;
    }
    /* a finished step folds down to its title and result; Show how opens it again */
    .step241.done:not(.open241) .stephelp241,
    .step241.done:not(.open241) .steplinks241 {
        display: none;
    }
    .steplinks241,
    .stepactions241 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }
    .setup241 a.link241 {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        box-sizing: border-box;
    }
    .setup241 .steplinks241 a.link241 {
        padding: 8px 14px !important;
        min-height: 36px;
        border: 1px solid var(--line31);
        border-radius: 7px;
        color: var(--ink31);
    }
    .setup241 .steplinks241 a.link241:hover {
        border-color: var(--muted31);
    }
    .setup241 a.link241 svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .setup241 a.primary.link241 {
        color: #fff;
    }
    /* buttons inside a step look like buttons, not loose words */
    .setup241 :is(.steplinks241, .stepactions241, .copybox241, .tools241) button.text-button {
        min-height: 36px;
        padding: 8px 14px !important;
        border: 1px solid var(--line31);
        border-radius: 7px;
        color: var(--ink31);
    }
    .setup241 :is(.steplinks241, .stepactions241, .copybox241, .tools241) button.text-button:hover:not(:disabled) {
        border-color: var(--muted31);
    }
    .stepresult241 {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--muted31);
    }
    .stepresult241.ok {
        color: #19804a;
    }
    .stepresult241.warn {
        color: #9a5b00;
    }
    .stepresult241.bad {
        color: #c91b2b;
    }
    .dark .stepresult241.ok {
        color: #5fd38f;
    }
    .dark .stepresult241.warn {
        color: #f2b65a;
    }
    .dark .stepresult241.bad {
        color: #ff7d87;
    }
    .step241.done .stepresult241 {
        margin-top: 0;
    }
    .grid241 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
        max-width: 900px;
        margin-top: 12px;
    }
    .field241 {
        display: grid;
        gap: 6px;
        align-content: start;
        min-width: 0;
    }
    .field241 > span:first-child {
        font-size: 13px;
        color: var(--ink31);
    }
    .field241 input {
        width: 100%;
        min-width: 0;
    }

    .fieldcheck241 {
        min-height: 17px;
        font-size: 12.5px;
        line-height: 1.4;
        color: var(--muted31);
    }
    .fieldcheck241.ok {
        color: #19804a;
    }
    .fieldcheck241.ok::before {
        content: '\2713  ';
    }
    .fieldcheck241.bad {
        color: #c91b2b;
    }
    .dark .fieldcheck241.ok {
        color: #5fd38f;
    }
    .dark .fieldcheck241.bad,
    .dark .field241 input[aria-invalid="true"] {
        color: #ff7d87;
    }

    .copybox241 {
        display: flex;
        align-items: stretch;
        gap: 8px;
        max-width: 900px;
        margin-top: 12px;
    }
    .copybox241 code {
        flex: 1;
        min-width: 0;
        padding: 9px 12px;
        border: 1px solid var(--line31);
        border-radius: 7px;
        background: var(--input31);
        color: var(--ink31);
        font-size: 13px;
        line-height: 20px;
        overflow-wrap: anywhere;
        user-select: all;
    }
    .copybox241 .text-button {
        flex: none;
        border: 1px solid var(--line31);
    }
    .tools241 {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid var(--line31);
    }
    .linkedit241 {
        max-width: 560px;
        margin-top: 12px;
    }
    .drop241 {
        display: grid;
        justify-items: center;
        gap: 4px;
        max-width: 900px;
        margin-top: 12px;
        padding: 24px 16px;
        border: 1.5px dashed var(--line31);
        border-radius: 10px;
        background: var(--input31);
        text-align: center;
        cursor: pointer;
        transition: border-color .15s, background .15s;
    }
    .drop241:hover,
    .drop241.over241 {
        border-color: var(--activity31);
    }
    .drop241:has(input:focus-visible) {
        outline: 2px solid var(--activity31);
        outline-offset: 2px;
    }
    .drop241.over241 {
        background: color-mix(in srgb, var(--activity31) 7%, var(--input31));
    }
    .drop241.busy241 {
        opacity: .7;
        pointer-events: none;
    }
    .droptitle241 {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink31);
    }
    .dropsub241 {
        font-size: 12.5px;
        color: var(--muted31);
    }
    .visually-hidden241 {
        border: 0 !important;
    }
    .map241 {
        max-width: 900px;
        margin-top: 14px;
        padding: 14px 16px 16px;
        border: 1px solid var(--line31);
        border-radius: 10px;
    }
    .maphelp241 {
        margin: 0 0 10px;
        font-size: 13.5px;
        color: var(--ink31);
    }
    .mapscroll241 {
        overflow-x: auto;
        border: 1px solid var(--line31);
        border-radius: 7px;
    }
    .setup241 .maptable241 {
        width: auto;
        min-width: 0;
        margin: 0;
        border-collapse: collapse;
        font-size: 12px;
        line-height: 1.35;
        white-space: nowrap;
    }
    .setup241 .maptable241 :is(th, td) {
        height: auto;
        border-bottom: 1px solid var(--line31);
        text-align: left;
        vertical-align: top;
        color: var(--ink31);
    }
    .setup241 .maptable241 tr:last-child td {
        border-bottom: 0;
    }
    .setup241 .maptable241 th {
        background: var(--input31);
        font-weight: 600;
    }
    .setup241 .maptable241 :is(td, th):first-child {
        color: var(--muted31);
    }
    .mapgrid241 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (max-width: 760px) {
        .grid241,
        .mapgrid241 {
            grid-template-columns: minmax(0, 1fr);
        }
        .step241 {
            grid-template-columns: 26px minmax(0, 1fr);
            gap: 0 10px;
        }
        .num241 {
            width: 26px;
            height: 26px;
            font-size: 12px;
        }
        .step241:not(:last-child)::before {
            left: 12px;
            top: 30px;
        }
        .copybox241 {
            flex-direction: column;
        }
    }

    /* Inventory's phone layout sets its own menu width; four icons need 160px there. */
    @media (max-width: 760px) {
        
    }
}

/* priority rules. Rules above sit in the app layer; these plain rules
   win over any of them (what !important used to do), and compete with each other as before. */
.header32 .header-right32 .nav31:has(> a[data-key="proposals"]) {
    flex: 0 0 auto;
    width: auto;
}
@media (min-width: 1280px) {
    .header32 .header-right32 .nav31:has(> a[data-key="proposals"]) a {
        flex: 0 0 auto;
        padding: 12px 10px;
    }
}
@media (max-width: 1279px) {
    .header32 .header-right32 .nav31:has(> a[data-key="proposals"]) {
        flex-basis: 224px;
        width: 224px;
    }
    .header32 .nav31:has(> a[data-key="proposals"]) a span {
        display: none;
    }
    .header32 .nav31:has(> a[data-key="proposals"]) a {
        min-width: 44px;
    }
}
@media (max-width: 930px) {
    .header32 .header-right32 .nav31:has(> a[data-key="proposals"]) {
        flex-basis: 192px;
        width: 192px;
    }
}
@media (max-width: 600px) {
    .header32 .header-right32 .nav31:has(> a[data-key="proposals"]) {
        flex-basis: 176px;
        width: 176px;
    }
}
.field241 input[aria-invalid="true"] {
    border-color: #c91b2b;
}
.setup241 .form-actions29 {
    margin-top: 14px;
}
.visually-hidden241 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.setup241 .maptable241 :is(th, td) {
    padding: 5px 12px;
}
@media (max-width: 760px) {
    #lf-topbar.header32 .header-right32 .nav31:has(> a[data-key="proposals"]) {
        flex: 0 1 160px;
        width: 160px;
    }
}
