/* ==========================================================
   Production tab + owner-only block in the video modal (production.js)
   ========================================================== */
.pr-wrap { max-width: 1320px; margin: 0 auto; padding-bottom: 80px; color: #19191C; }
.pr-wrap .btn { display: inline-flex; align-items: center; gap: 6px; }
.pr-wrap .btn:disabled { opacity: .5; cursor: default; }
.pr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.pr-filters, .pr-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-select { height: 40px; border: 1px solid #E2E2E5; border-radius: 10px; background: #fff; padding: 0 12px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: #19191C; min-width: 160px; }
.pr-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E2E2E5; border-radius: 10px; padding: 0 12px; height: 40px; min-width: 220px; }
.pr-search i { color: #8D8D9A; }
.pr-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; width: 100%; color: #19191C; }

.pr-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pr-kpi { background: #fff; border: 1px solid #E9E9EB; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pr-kpi span { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #6B6B76; display: flex; gap: 6px; align-items: center; }
.pr-kpi b { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; color: #121214; }
.pr-kpi em { font-style: normal; font-size: 12.5px; color: #8D8D9A; font-weight: 600; }
.pr-kpi.total { background: #19191C; border-color: #19191C; }
.pr-kpi.total span, .pr-kpi.total em { color: #B5B5BE; }
.pr-kpi.total b { color: #fff; }

.pr-panel { background: #fff; border: 1px solid #E9E9EB; border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.pr-panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #F0F0F2; font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #3A3A42; }
.pr-panel-head em { font-style: normal; color: #A5A5AF; font-weight: 700; text-transform: none; letter-spacing: 0; }
.pr-hint { margin-left: auto; font-size: 12px; font-weight: 600; color: #A5A5AF; text-transform: none; letter-spacing: 0; }
.pr-scroll { overflow-x: auto; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pr-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8D8D9A; padding: 10px 14px; background: #FAFAFB; border-bottom: 1px solid #F0F0F2; white-space: nowrap; }
.pr-table td { padding: 10px 14px; border-bottom: 1px solid #F3F3F5; vertical-align: middle; }
.pr-table tr:last-child td { border-bottom: none; }
.pr-table .num { text-align: right; white-space: nowrap; }
.pr-num { width: 36px; color: #8D8D9A; font-weight: 700; }
.pr-opt { font-size: 10px; font-weight: 700; color: #A5A5AF; text-transform: none; letter-spacing: 0; margin-left: 2px; }
.pr-muted { color: #C2C2CA; }
.pr-roles { display: block; font-size: 12px; color: #8D8D9A; }
.pr-title b { display: block; font-weight: 700; color: #121214; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-stage { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #6B6B76; background: #F3F3F5; border-radius: 999px; padding: 1px 8px; }
.pr-stage.s-published { color: #1F7A52; background: #E7F6EE; }
.pr-stage.s-edit { color: #7A4FD1; background: #F1EBFD; }
.pr-client-row td { background: #F7F7F9; font-weight: 800; font-size: 13px; color: #121214; padding: 9px 14px; }
.pr-link { background: none; border: none; padding: 0; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #4C5FD5; cursor: pointer; margin-left: 8px; }
.pr-link:hover { text-decoration: underline; }

.pr-cell { cursor: pointer; min-width: 104px; transition: background .12s; }
.pr-cell:hover { background: #F7F7FA; }
.pr-cell b { display: block; font-weight: 800; color: #121214; }
.pr-cell span { display: block; font-size: 12px; color: #8D8D9A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.pr-cell em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #B5B5BE; display: inline-flex; gap: 4px; align-items: center; }
.pr-cell:hover em { color: #4C5FD5; }
.pr-cell.dim { opacity: .35; }

/* part / rates modal */
.pr-modal { max-width: 520px; }
.pr-modal .sl-modal-title { display: flex; gap: 8px; align-items: center; }
.pr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding-top: 10px; }
.pr-form label { display: flex; flex-direction: column; gap: 6px; }
.pr-form label.wide { grid-column: 1 / -1; }
.pr-form label > span { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #6B6B76; }
.pr-form label > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: #A5A5AF; }
.pr-form input, .pr-form select { font-family: inherit; font-size: 14px; color: #19191C; background: #fff; border: 1px solid #E2E2E5; border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; box-sizing: border-box; }
.pr-form input:focus, .pr-form select:focus { border-color: #9A9AA5; }
.pr-rate-note { margin-top: 14px; font-size: 12.5px; color: #8D8D9A; }
.pr-modal .btn-outline { background: #fff !important; color: #19191C !important; border: 1px solid #E2E2E5 !important; }
.pr-modal .btn-outline.sl-danger { color: #B42318 !important; }

/* block in the video modal */
#detail-production:empty { display: none; }
.pr-card { box-sizing: border-box; width: 100%; border: 1px dashed #CFCFD6; border-radius: 12px; padding: 14px; background: #FBFBFC; margin-bottom: 20px; }
.pr-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.pr-card-head span { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #3A3A42; display: inline-flex; gap: 6px; align-items: center; }
.pr-card-head em { font-style: normal; font-size: 11.5px; color: #A5A5AF; }
.pr-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pr-card-part { background: #fff; border: 1px solid #ECECEF; border-radius: 10px; padding: 8px 10px; min-width: 0; box-sizing: border-box; }
.pr-card-part.filled { border-color: #DADAE0; }
.pr-cp-top { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; font-size: 12px; font-weight: 800; color: #3A3A42; }
.pr-cp-more { margin-left: auto; background: none; border: none; color: #8D8D9A; cursor: pointer; font-size: 16px; padding: 0 2px; line-height: 1; }
.pr-cp-more:hover { color: #121214; }
.pr-cp-amt { width: 100%; box-sizing: border-box; margin: 6px 0 4px; border: 1px solid #E2E2E5; border-radius: 8px; padding: 6px 8px; font-family: inherit; font-size: 14px; font-weight: 700; color: #121214; background: #fff; outline: none; }
.pr-cp-amt:focus { border-color: #9A9AA5; }
.pr-cp-meta { font-size: 11.5px; color: #8D8D9A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-cp-cost { font-size: 12px; font-weight: 700; color: #2B2B33; margin-top: 2px; }
.pr-card-foot { margin-top: 10px; font-size: 13px; color: #3A3A42; display: flex; gap: 10px; align-items: center; }
.pr-card-foot .pr-link { margin-left: 0; }

@media (max-width: 1100px) { .pr-kpis { grid-template-columns: repeat(2, 1fr); } }

/* freelancer rates modal */
.sl-modal.pr-modal.wide { max-width: min(1320px, 96vw); width: 96vw; }
.pr-rates td { padding: 8px 10px; }
.pr-rates select, .pr-rates input { font-family: inherit; font-size: 13.5px; border: 1px solid #E2E2E5; border-radius: 8px; padding: 7px 9px; background: #fff; color: #19191C; outline: none; }
.pr-rates input { width: 92px; }
.pr-rates input.dim { background: #FAFAFB; border-style: dashed; }
.pr-rates input:focus, .pr-rates select:focus { border-color: #9A9AA5; }

.pr-cp-top .pr-opt { overflow: hidden; text-overflow: ellipsis; }

/* The two big blocks fold; they start folded */
.pr-fold { cursor: pointer; user-select: none; }
.pr-caret { transition: transform .15s; font-size: 14px; color: #8D8D9A; }
.pr-panel.closed .pr-caret { transform: rotate(-90deg); }
.pr-panel.closed > :not(.pr-panel-head) { display: none; }
.pr-panel.closed .pr-panel-head { border-bottom: none; }
.pr-panel.closed .pr-hint { display: none; }
@media (max-width: 1100px) { .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pr-cp-amt:disabled { background: #F3F3F5; color: #8D8D9A; cursor: not-allowed; }
.pr-cp-cost.muted { font-weight: 500; color: #7B7260; font-size: 11px; display: inline; padding: 1px 3px; border-radius: 3px; background: linear-gradient(transparent 38%, rgba(255, 238, 153, 0.55) 38%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* very light yellow marker: counts when approved */

/* Freelancer rates: the table shrinks to the screen (no cut-off columns); only on a really small screen it scrolls sideways with the name fixed on the left */
.pr-modal.wide .sl-modal-body { padding-left: 12px; padding-right: 12px; }
.pr-modal.wide .pr-scroll { max-height: calc(100vh - 230px); overflow: auto; }
.pr-rates { table-layout: fixed; width: 100%; min-width: 820px; }
.pr-rates th { white-space: normal; line-height: 1.25; padding: 8px 6px; font-size: 10.5px; vertical-align: bottom; position: sticky; top: 0; z-index: 2; }
.pr-rates th .pr-opt { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.pr-rates th:first-child, .pr-rates td:first-child { width: 150px; position: sticky; left: 0; z-index: 1; background: #fff; }
.pr-rates th:first-child { background: #FAFAFB; z-index: 3; }
.pr-rates th:nth-child(2), .pr-rates td:nth-child(2) { width: 78px; }
.pr-rates td { padding: 8px 6px; }
.pr-rates td .pr-roles { display: block; white-space: normal; }
.pr-rates input { width: 100%; min-width: 0; box-sizing: border-box; padding: 7px 8px; }
.pr-rates select { width: 100%; box-sizing: border-box; padding: 7px 4px; }
@media (max-width: 1100px) { .pr-rates th { font-size: 9.5px; padding: 6px 4px; } .pr-rates td { padding: 6px 4px; } .pr-rates input { font-size: 12.5px; padding: 6px; } .pr-rates th:first-child, .pr-rates td:first-child { width: 120px; } }

/* Freelancer rates: prices per channel (sub-rows) */
.pr-rates .pr-chan-btn { display: block; margin: 4px 0 0; padding: 0; font-size: 11.5px; font-weight: 600; color: #4C5BD4; background: none; border: 0; cursor: pointer; text-align: left; }
.pr-rates tr.pr-chan-row td { background: #F7F7FB; padding-top: 5px; padding-bottom: 5px; }
.pr-rates tr.pr-chan-row[hidden] { display: none; }
.pr-rates tr.pr-chan-row td.pr-chan-name { font-size: 12.5px; font-weight: 600; color: #4A4A57; padding-left: 18px; position: sticky; left: 0; z-index: 1; background: #F7F7FB; white-space: normal; }
.pr-rates tr.pr-chan-row input { background: #fff; }

/* Production > Videos table: cleaner rows, coloured stage per title, title opens the video */
.pr-videos { border-collapse: separate; border-spacing: 0; }
.pr-videos tbody tr:not(.pr-client-row) { transition: background .12s; }
.pr-videos tbody tr:not(.pr-client-row):hover td { background: #FAFAFC; }
.pr-videos td { padding: 12px 14px; }
.pr-videos .pr-client-row td { background: #F4F4F8; border-top: 1px solid #ECECF0; border-bottom: 1px solid #ECECF0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #3A3A44; padding: 8px 14px; }
.pr-videos .pr-num { font-size: 13px; color: #9A9AA6; }
.pr-videos .pr-title { min-width: 240px; }
.pr-videos .pr-vlink { display: block; text-decoration: none; color: inherit; }
.pr-videos .pr-vlink b { max-width: 340px; transition: color .12s; }
.pr-videos .pr-vlink:hover b { color: #4C5BD4; text-decoration: underline; text-underline-offset: 3px; }
.pr-videos .pr-stage { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 2px 10px 2px 8px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--st, #6B6B76) 70%, #000); background: color-mix(in srgb, var(--st, #8F8F9C) 14%, #fff); border-radius: 999px; }
.pr-videos .pr-stage i { width: 7px; height: 7px; border-radius: 50%; background: var(--st, #8F8F9C); flex: none; }
