/* A company's credits (business/sub/credits.php, business/credits.js): the page's Credits section (business/profile2.php
   #bp_credits, inside .bp2: --ink, --paper, --g, --line, --mute) and the console's Credits tab (.bcr.is-console, its own). */
.bcr.is-console { --ink: #0a0a0a; --paper: #f4f4f1; --g: #00FF50; --line: #d9d9d4; --mute: #6b6b66; display: block; margin-top: 18px; color: var(--ink); font-family: 'Archivo', sans-serif; }
.bcr.is-console a { color: inherit; text-decoration: none; }
.bcr.is-console .bcr-item { background: none; }

.bcr .bcr-add { padding: 0; border: 0; background: none; cursor: pointer; }
.bcr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; border-top: 1px solid var(--line); }
.bcr-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bcr-po { display: block; width: 64px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ink); }
.bcr-po img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcr-po.is-type { display: grid; place-items: center; padding: 4px; box-sizing: border-box; background: repeating-linear-gradient(135deg, #161616 0 6px, #0a0a0a 6px 12px); }
.bcr-po.is-type span { font: 900 8.5px/1.15 'Archivo', sans-serif; letter-spacing: .08em; color: var(--g); text-align: center; overflow-wrap: anywhere; }
.bcr-t { min-width: 0; }
.bcr-title { display: block; font: 900 19px/1.15 'Archivo', sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bcr-title:hover { color: #0a8a35; }
.bcr-t > em { display: block; margin-top: 4px; font: 600 12.5px 'Archivo', sans-serif; font-style: normal; color: var(--mute); }
.bcr-pend { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .14em; color: #b45309; }
.bcr-roles { list-style: none; margin: 10px 0 0; padding: 0; }
.bcr-roles li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.bcr-roles li:first-child { border-top: 0; padding-top: 0; }
.bcr-r { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.bcr-r b { font: 800 14px/1.3 'Archivo', sans-serif; }
.bcr-r small { font: 600 12px 'Archivo', sans-serif; color: var(--mute); }
.bcr-v { font: 800 9.5px 'Archivo', sans-serif; font-style: normal; letter-spacing: .14em; padding: 3px 6px; background: var(--g); color: var(--ink); }
.bcr-note { flex-basis: 100%; font: 500 12.5px/1.4 'Archivo', sans-serif; color: var(--mute); }
.bcr-do { display: inline-flex; gap: 4px; margin-left: auto; }
.bcr .bcr-do button { padding: 4px 8px; font: 800 10px 'Archivo', sans-serif; letter-spacing: .14em; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.bcr .bcr-do button:hover { border-color: var(--ink); }
.bcr .bcr-do button[data-bcr-remove]:hover { border-color: #d0021b; color: #d0021b; }
.bcr-roles li.is-editing > .bcr-do { display: none; }

/* editing a role, in place */
.bcr-form { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; padding: 12px; background: #fff; border: 2px solid var(--ink); }
.bcr-f { display: block; min-width: 0; }
.bcr-f.wide { grid-column: 1 / -1; }
.bcr-f span { display: block; font: 800 10px 'Archivo', sans-serif; letter-spacing: .14em; color: var(--mute); }
.bcr-f span em { font-style: normal; font-weight: 600; letter-spacing: .04em; }
.bcr-f input { display: block; width: 100%; height: 40px; margin-top: 5px; padding: 0 10px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 700 14.5px 'Archivo', sans-serif; outline: 0; }
.bcr-f input:focus { box-shadow: 0 0 0 3px var(--g); }
.bcr-f.bad input { border-color: #d0021b; }
.bcr-fa { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.bcr .bcr-b { min-height: 38px; padding: 0 14px; font: 800 11px 'Archivo', sans-serif; letter-spacing: .14em; border: 2px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.bcr .bcr-b.go { background: var(--ink); color: var(--g); }
.bcr .bcr-b[disabled] { opacity: .5; cursor: wait; }

.bcr .bcr-all { margin-top: 18px; padding: 0; border: 0; border-bottom: 2px solid var(--ink); background: none; color: var(--ink); font: 800 11px 'Archivo', sans-serif; letter-spacing: .16em; cursor: pointer; }
.bcr .bcr-foot { margin: 18px 0 0; font: 500 12.5px/1.5 'Archivo', sans-serif; color: var(--mute); }
.bcr-foot a { border-bottom: 1px solid currentColor; }

/* the console's bar: the add tool */
.bcr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; }
.bcr-bar p { margin: 0; flex: 1 1 260px; font: 500 13px/1.45 'Archivo', sans-serif; color: var(--mute); }
.bcr-bar .bcr-b { min-height: 44px; }

/* waiting for approval (production_submissions.business_id) */
.bcr-wait { margin-bottom: 22px; padding: 14px 16px; background: #fff8eb; border-left: 4px solid #b45309; }
.bcr-wait-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.bcr-wait-h b { font: 800 11px 'Archivo', sans-serif; letter-spacing: .16em; }
.bcr-wait-h em { font: 900 13px 'Archivo', sans-serif; font-style: normal; color: #b45309; }
.bcr-wait-h span { flex-basis: 100%; font: 500 12.5px/1.45 'Archivo', sans-serif; color: var(--mute); }
.bcr-wait-r { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0dcb8; }
.bcr-wait-t { flex: 1; min-width: 0; }
.bcr-wait-t b { display: block; font: 900 16px/1.2 'Archivo', sans-serif; overflow-wrap: anywhere; }
.bcr-wait-t em, .bcr-wait-t small { display: block; margin-top: 2px; font: 600 12px 'Archivo', sans-serif; font-style: normal; color: var(--mute); }
.bcr .bcr-x { flex: none; padding: 6px 10px; font: 800 10px 'Archivo', sans-serif; letter-spacing: .14em; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.bcr .bcr-x:hover { background: var(--ink); color: #fff; }

/* nothing yet: only the people who may add one see this */
.bcr .bcr-empty { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 16px; align-items: center; width: 100%; padding: 22px; text-align: left; border: 2px dashed #b8b8b2; background: none; color: var(--ink); cursor: pointer; }
.bcr .bcr-empty:hover { border-color: var(--ink); background: #fff; }
.bcr-empty span { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; background: var(--g); font: 900 28px 'Archivo', sans-serif; }
.bcr-empty b { font: 900 19px/1.2 'Archivo', sans-serif; letter-spacing: -.02em; }
.bcr-empty em { font: 500 13px/1.45 'Archivo', sans-serif; font-style: normal; color: var(--mute); }

@media (max-width: 860px){
    .bcr-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px){
    .bcr-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
    .bcr-po { width: 52px; }
    .bcr-title { font-size: 17px; }
    .bcr-do { margin-left: 0; }
    .bcr-wait-r { flex-wrap: wrap; }
    .bcr-wait-r .bcr-pend { order: 3; }
}

/* the console's own styles colour bare <b>: the list keeps its ink */
.bcr.is-console b, .bcr.is-console .bcr-title { color: var(--ink); }
