/*
 * The consumables page of one printer on the computer (module/computer/components/printerConsumables.php).
 * Study of 2026-10-19, L3/L9: the printer's box, tabs by type, the closed set in groups of rows with the quantity
 * beside "Adicionar". The rows reuse the card's vocabulary (badge, brand line, fact chips: productCard.css), scoped
 * here under .lb-prow because the card's rules are scoped under .prod. px: the computer's root is 10px.
 */
.lb-pbox{
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 4px 0 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--lb-surface);
    text-align: left;
}

.lb-pbox-img{
    flex: 0 0 auto;
}

.lb-pbox-img img{
    display: block;
    width: 120px;
    height: 80px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.lb-pbox-name{
    color: var(--lb-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.lb-pbox-sub{
    margin-top: 3px;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

/* the column centres its blocks: full width, aligned with the box above */
.lb-plist{
    width: 100%;
    text-align: left;
}

.lb-ptabs{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 4px;
}

.lb-ptabs button{
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--lb-border);
    border-radius: 18px;
    background: var(--lb-card, #FFF);
    color: var(--lb-text);
    font-size: 14px;
    cursor: pointer;
}

.lb-ptabs button span{
    margin-left: 2px;
    color: var(--lb-text-muted);
}

.lb-ptabs button[aria-pressed="true"]{
    border-color: var(--lb-brand);
    background: var(--lb-brand);
    color: #FFF;
}

.lb-ptabs button[aria-pressed="true"] span{
    color: rgba(255, 255, 255, .8);
}

.lb-ptabs button:focus-visible,
.lb-prow-qty button:focus-visible{
    outline: 2px solid var(--lb-brand);
    outline-offset: 2px;
}

.lb-ptype{
    margin-top: 22px;
}

.lb-ptype-title{
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    color: var(--lb-text);
    font-size: 17px;
    font-weight: 700;
}

.lb-ptype-title small{
    color: var(--lb-text-muted);
    font-size: 13px;
    font-weight: 400;
}

.lb-ptype-dot{
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.lb-ptype-dot-preto{ background: #1A1A1A; }
.lb-ptype-dot-ciano{ background: #009FE3; }
.lb-ptype-dot-magenta{ background: #E5007E; }
.lb-ptype-dot-amarelo{ background: #FFDD00; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.lb-prow{
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--lb-border);
}

.lb-prow-img{
    position: relative;
    display: block;
}

.lb-prow-img img{
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.lb-prow .lb-pcard-units{
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--lb-surface);
    color: var(--lb-text);
    font-size: 11px;
    font-weight: 600;
}

.lb-prow .lb-pcard-measure{
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--lb-surface);
    color: var(--lb-text);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* stacked over the units pill: a 96 px photo has no room for both on one line */
.lb-prow .lb-pcard-measure-stacked{
    bottom: 22px;
    left: auto;
    right: 0;
    transform: none;
}

.lb-prow .lb-pcard-swatch{
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid var(--lb-border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.lb-prow-body{
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.lb-prow .lb-pcard-origin{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lb-prow .lb-pcard-origin .badge{
    display: inline-block !important;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
}

.lb-prow .lb-pcard-brand{
    color: var(--lb-text-muted);
    font-size: 12px;
}

.lb-prow-title,
.lb-prow-title:hover{
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

/* a margin, not a space: trimHtml() drops the whitespace between the two tags */
.lb-prow-title b{
    margin-right: 6px;
    color: var(--lb-text);
    font-size: 16px;
    font-weight: 700;
}

.lb-prow-title:hover,
.lb-prow-title:hover b{
    color: var(--lb-brand);
}

.lb-prow .lb-pcard-facts{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lb-prow .lb-pcard-fact{
    padding: 1px 8px;
    border: 1px solid var(--lb-border);
    border-radius: 11px;
    background: var(--lb-surface);
    color: #495057;
    font-size: 12px;
    white-space: nowrap;
}

.lb-prow .lb-pcard-fact-saving{
    border-color: var(--lb-accent-tint);
    background: var(--lb-accent-tint);
    color: var(--lb-accent-text);
    font-weight: 600;
}

.lb-prow-buy{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 250px;
    line-height: 1.3;
    text-align: right;
}

.lb-prow-price{
    color: var(--lb-text);
    font-size: 20px;
    font-weight: 700;
}

.lb-prow-buy small{
    color: var(--lb-text-muted);
    font-size: 12px;
}

.lb-prow-buy .lb-pcard-status{
    color: var(--lb-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.lb-prow-off .lb-prow-img img{
    opacity: .6;
}

.lb-prow-actions{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.lb-prow-actions .addToCart{
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
}

.lb-prow-qty{
    display: flex;
    height: 40px;
    border: 1px solid var(--lb-border);
    border-radius: 6px;
    background: var(--lb-card, #FFF);
}

.lb-prow-qty button{
    width: 34px;
    border: 0;
    background: none;
    color: var(--lb-text);
    font-size: 17px;
    cursor: pointer;
}

.lb-prow-qty input{
    width: 40px;
    border: 0;
    border-left: 1px solid var(--lb-border);
    border-right: 1px solid var(--lb-border);
    background: none;
    color: var(--lb-text);
    font-size: 14px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.lb-prow-qty input::-webkit-outer-spin-button,
.lb-prow-qty input::-webkit-inner-spin-button{
    margin: 0;
    -webkit-appearance: none;
}
