/* ==========================================================
   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(5, 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: 21px; 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: 130px; 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-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: 920px; }
.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; }
.pr-slot { cursor: pointer; padding: 3px 0; border-radius: 6px; }
.pr-slot + .pr-slot { border-top: 1px dashed #E6E6EC; margin-top: 3px; padding-top: 6px; }
.pr-slot:hover { background: #F7F7FA; }
.pr-slot.dim { opacity: .35; }
.pr-slot-add { display: block; margin: 4px 0 0; padding: 0; font-size: 11.5px; font-weight: 700; }

/* ===== Production to complete: red dot, overview list, Production-tab banner, approval popup ===== */
#main-app .kanban-card { position: relative; }
.vc-prod-dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: #E03B4A; box-shadow: 0 0 0 3px #fff; z-index: 2; cursor: help; }
.pr-ovp-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pr-ovp-chips i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #FFE0E0; color: #C0283A; white-space: nowrap; }
#ov-prod-missing { margin-bottom: 18px; }
#ov-prod-missing:empty { display: none; }
#view-analytics .ov-panel.pr-ovp { border: 1px solid #F3D9A4; background: #FFFBF2; }
#view-analytics .ov-panel.pr-ovp.ok { border-color: #B9E6CC; background: #F2FBF6; padding: 12px 18px; }
.pr-ovp-ok { color: #17663D; font-weight: 700; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pr-ovp .ov-title { display: flex; gap: 8px; align-items: center; }
.pr-ovp .ov-title em { font-style: normal; background: #E03B4A; color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 9px; }
.pr-ovp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pr-ovp-row, .pr-attn-row { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 14px; border: 1px solid #EFE2C2; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: #19191C; }
.pr-ovp-row:hover, .pr-attn-row:hover { border-color: #E03B4A; }
.pr-ovp-row b, .pr-attn-row b { font-weight: 700; flex: none; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.pr-ovp-row em, .pr-attn-row em { font-style: normal; font-weight: 700; color: #4C5FD5; font-size: 12.5px; flex: none; }
.pr-attn { border: 1px solid #F3D9A4; background: #FFFBF2; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.pr-attn.ok { border-color: #B9E6CC; background: #F2FBF6; color: #17663D; font-weight: 700; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pr-attn-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; }
.pr-attn-head i { color: #E03B4A; font-size: 18px; }
.pr-attn-head span { color: #7A6A3C; font-size: 12.5px; }
.pr-attn-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 340px; overflow-y: auto; }
.pr-attn-client { flex: none; width: 150px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #8A8A96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-card-miss { font-size: 12.5px; padding: 8px 10px; margin: 2px 0 10px; border-radius: 9px; background: #FFF6F6; border: 1px solid #F5C2C7; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.pr-auto { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; background: #E8EEFF; color: #3C4FC0; padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.pr-auto.ok { background: #DCF5E7; color: #196B43; }
.pr-ap-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pr-linkbtn { display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; border-radius: 10px; background: #18181C; color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none; }
.pr-linkbtn:hover { background: #2c2c34; }
.pr-linkbtn.off { background: #ECECF0; color: #8A8A96 !important; font-weight: 600; }
.pr-ap-note { font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; background: #F4F4F7; color: #55555F; }
.pr-ap-note.ok { background: #EAF8F0; color: #17663D; }
.pr-ap-note.warn { background: #FFF6E6; color: #8A5A00; }
.pr-ap-note.info { background: #EEF3FF; color: #2B4FA8; }
.pr-ap-err { color: #B42318; font-size: 13px; min-height: 18px; margin-top: 10px; }
.pr-ap .pr-form { padding-top: 2px; }
.pr-ap-links { margin-top: 6px; }

.pr-card-slim { padding: 10px 12px; margin-bottom: 14px; }
.pr-card-slim .pr-card-miss { margin: 0; }
.pr-card-slim .pr-card-miss + .pr-card-head, .pr-card-slim .pr-card-miss + .pr-card-foot { margin-top: 10px; }
