/* PDR production timeline and on-screen export preview. */
html[data-studio-app="pdr"] { --pdr-yellow:#ffe150; --pdr-ink:#161616; }
.pdr-table th { background:#161616; color:#ffe150; }
.pdr-table th:nth-child(1),.pdr-table td:nth-child(1) { width:68px; }
.pdr-table tbody tr:nth-child(even) { background:#f8f8f2; }
.pdr-timeline-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }
.pdr-timeline-actions .pdr-select { min-width:150px; }
.pdr-global-photo-size { min-width:160px; }
.pdr-global-photo-size input { width:110px; vertical-align:middle; accent-color:#b39a16; }
.pdr-global-photo-size output { margin-left:8px; font:11px 'DM Mono',monospace; }
.pdr-table .pdr-index { text-align:center; padding-top:9px!important; }
.pdr-index>strong { display:block; margin-top:7px; }
.pdr-drag-handle { display:block; margin:auto; font:24px/1 Arial; border:0; background:transparent; color:#5c5c50; cursor:grab; padding:3px 6px; touch-action:none; }
.pdr-drag-handle:active { cursor:grabbing; }
.pdr-row-move { display:flex; justify-content:center; }
.pdr-row-move button { border:0; background:transparent; color:#777767; cursor:pointer; padding:5px; font-size:13px; }
.pdr-row-actions { display:flex; justify-content:flex-end; gap:5px; margin-top:12px; }
.pdr-row-actions button { display:inline-flex; align-items:center; justify-content:center; flex:none; box-sizing:border-box; width:34px; height:34px; min-height:0; padding:8px; border:0; border-radius:7px; background:transparent; color:#69747a; font-size:0; box-shadow:none; cursor:pointer; }
.pdr-row-actions svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
.pdr-row-actions button:disabled { opacity:.45; cursor:not-allowed; }
.pdr-row-actions button:enabled:hover { background:#1616160c; color:#786300; }
.pdr-row-actions [data-pdr-action="delete"]:enabled:hover { background:#ff6b6b18; color:#b54747; }
.pdr-row-photo { min-height:70px; }
.pdr-row-photo.has-photo { background:#f1f1e8; min-height:0; }
.pdr-row-photo img { width:calc(100% * var(--pdr-photo-scale,1)); max-width:100%; max-height:calc(190px * var(--pdr-photo-scale,1)); margin-inline:auto; }
.pdr-row-photo.has-photo { cursor:grab; touch-action:none; }
.pdr-row-photo img { -webkit-user-drag:none; }
.pdr-table tr.pdr-event-row,.pdr-table tbody tr.pdr-event-row:nth-child(even) { background:var(--pdr-separator,#ffe150); color:var(--pdr-separator-ink,#000); }
.pdr-event-row>td { border-top:3px solid var(--pdr-separator,#ffe150); border-bottom:3px solid var(--pdr-separator,#ffe150); }
.pdr-event-row :is(.pdr-input,.pdr-drag-handle,.pdr-row-move button,.pdr-row-actions button,.pdr-event-label) { color:inherit; }
.pdr-event-row .pdr-input::placeholder { color:inherit; opacity:.65; }
.pdr-event-row .pdr-input:hover,.pdr-event-row .pdr-input:focus { background:#80808022; }
.pdr-event-row .pdr-row-actions { align-items:center; flex-wrap:wrap; }
.pdr-separator-color { display:inline-flex; align-items:center; gap:6px; margin-right:auto; color:inherit; font:10px 'DM Mono',monospace; cursor:pointer; }
.pdr-separator-color input { box-sizing:border-box; width:26px; height:26px; padding:2px; border:1px solid currentColor; border-radius:4px; background:transparent; cursor:pointer; }
.pdr-separator-color input:disabled { cursor:not-allowed; opacity:.5; }
.pdr-event-row .pdr-row-actions { margin-top:6px; }
.pdr-event-fields { display:grid; grid-template-columns:130px 90px minmax(180px,1fr) minmax(160px,1fr); gap:7px; align-items:start; }
.pdr-event-label { grid-column:1/-1; font:600 8px 'DM Mono',monospace; letter-spacing:1px; }
.pdr-event-fields textarea[data-shooting-field="title"] { font-weight:700; text-transform:uppercase; }
.pdr-event-fields input { margin-top:4px; }
.pdr-dragging { opacity:.4; }
.pdr-drop-before { box-shadow:inset 0 4px #d5ac00; }
.pdr-drop-after { box-shadow:inset 0 -4px #d5ac00; }
.pdr-photo-target td:nth-child(2) { outline:3px solid #d5ac00; outline-offset:-3px; background:#fff6bd; }
.pdr-preview-dialog { width:min(1540px,96vw); height:94dvh; max-width:none; max-height:96dvh; padding:0; border:1px solid #575747; border-radius:10px; background:#f0f0e9; color:#161616; box-shadow:0 24px 100px #0006; }
.pdr-preview-dialog::backdrop { background:#000b; backdrop-filter:blur(3px); }
.pdr-preview-dialog[open] { display:flex; flex-direction:column; }
.pdr-preview-dialog>header { display:flex; justify-content:space-between; align-items:center; padding:21px 26px; background:#161616; border-top:5px solid #ffe150; color:white; }
.pdr-preview-dialog>header h2 { margin:5px 0 0; font:600 23px 'Space Grotesk',sans-serif; }
.pdr-preview-dialog>header .pdr-kicker { color:#ffe150; }
.pdr-preview-dialog>header button { border:1px solid #777; background:transparent; color:white; font-size:25px; cursor:pointer; width:35px; height:35px; }
.pdr-preview-layout { display:grid; grid-template-columns:255px minmax(0,1fr); min-height:0; flex:1; }
.pdr-preview-layout>aside { overflow:auto; padding:24px 20px; background:#fafaf6; border-right:1px solid #d5d5c8; }
.pdr-preview-layout h3 { margin:0 0 14px; font:600 15px 'Space Grotesk',sans-serif; }
.pdr-preview-layout h3:not(:first-child) { margin-top:28px; }
.pdr-preview-layout aside label { display:block; margin:20px 0 10px; font-size:12px; line-height:1.5; }
.pdr-preview-layout aside select,.pdr-preview-layout aside input { display:block; width:100%; margin-top:8px; accent-color:#b29a0d; }
.pdr-preview-layout aside select { padding:8px; background:white; border:1px solid #c2c2b1; font-size:12px; }
.pdr-preview-layout aside input[type="file"] { font-size:10px; }
.pdr-preview-layout aside input[hidden] { display:none; }
.pdr-preview-layout aside p { color:#747465; font-size:11px; line-height:1.6; }
.pdr-preview-formats { display:flex; gap:5px; }
.pdr-preview-formats button { flex:1; font-size:10px; padding:10px 4px; border:1px solid #bcbcaa; background:transparent; cursor:pointer; }
.pdr-preview-formats button[aria-pressed="true"] { background:#ffe150; border-color:#b7a032; }
#pdrPreviewSave { width:100%; margin-top:14px; padding:10px; border:1px solid #aaa990; background:transparent; font-size:11px; cursor:pointer; }
.pdr-preview-content { overflow:auto; min-width:0; padding:0 26px 28px; }
.pdr-preview-toolbar { position:sticky; top:0; z-index:1; display:flex; gap:18px; align-items:center; justify-content:space-between; padding:18px 0; background:#f0f0e9; }
.pdr-preview-toolbar p { margin:0; color:#676756; font-size:12px; }
.pdr-preview-toolbar .button-primary { background:#ffe150; border-color:#ffe150; color:#161616; white-space:nowrap; }
#pdrPreviewPages figure { margin:0 0 24px; }
#pdrPreviewPages canvas { display:block; width:100%; height:auto; background:white; box-shadow:0 3px 15px #0002; }
#pdrPreviewPages figcaption { margin-top:9px; text-align:center; color:#777764; font-size:11px; }
@media(max-width:800px) { .pdr-timeline-actions { justify-content:flex-start; }.pdr-table-section>.pdr-section-heading { align-items:flex-start; flex-direction:column; }.pdr-preview-dialog { width:98vw; height:98dvh; max-height:98dvh; }.pdr-preview-layout { grid-template-columns:1fr; overflow:auto; }.pdr-preview-layout>aside { overflow:visible; border:0; }.pdr-preview-content { overflow:visible; padding-inline:12px; }.pdr-preview-dialog>header { padding:15px; }.pdr-preview-toolbar { flex-wrap:wrap; }.pdr-preview-layout>aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; }.pdr-preview-layout aside p { margin:0; }.pdr-preview-layout h3:not(:first-child),.pdr-preview-layout aside label { margin-top:0; } }

/* Editable production fields, with the same table geometry as default fields. */
.pdr-table th.pdr-custom-header,.pdr-table td.pdr-custom-cell { width:170px; }
.pdr-custom-header input { width:calc(100% - 28px); padding:5px 2px; border:0; border-bottom:1px solid #ffe15055; background:transparent; color:inherit; font:inherit; text-transform:uppercase; }
.pdr-custom-header button { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; width:25px; height:25px; padding:4px; border:0; background:transparent; color:inherit; cursor:pointer; }
.pdr-custom-header button svg { width:16px; height:16px; }
.pdr-custom-header input:focus { outline:1px solid #ffe150; }
.pdr-column-dialog { width:min(460px,94vw); padding:28px; border:1px solid #d2c87b; border-top:5px solid #ffe150; border-radius:8px; color:#161616; background:#fafaf6; box-shadow:0 24px 100px #0006; }
.pdr-column-dialog::backdrop { background:#0009; }
.pdr-column-dialog h2 { margin:0 0 22px; font:600 23px 'Space Grotesk',sans-serif; }
.pdr-column-dialog label { display:block; font-size:12px; }
.pdr-column-dialog input { display:block; width:100%; box-sizing:border-box; margin-top:10px; padding:11px; border:1px solid #b8b8a7; background:white; font:14px Arial,sans-serif; }
.pdr-column-dialog p { margin:18px 0; font-size:12px; line-height:1.6; color:#71715f; }
.pdr-column-dialog form>div { display:flex; justify-content:flex-end; gap:10px; }
.pdr-column-dialog #pdrColumnCancel { padding:9px 15px; border:1px solid #b8b8a7; background:transparent; color:#555; cursor:pointer; }
