/* Read-only performance call: the editor's inputs are never a paper document. */
.callsheet-document{padding:24px;background:#fff;color:#242424;border:1px solid var(--line,#d7d0c5);margin:16px 0}
.callsheet-document-head{border-bottom:2px solid #333;padding-bottom:16px;margin-bottom:16px}
.callsheet-document-head h2{font-size:25px;line-height:1.2;margin:5px 0 12px}
.callsheet-document-head p{margin:5px 0}
.callsheet-document-head .callsheet-document-production{font-size:20px;font-weight:600}
.callsheet-document-status{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#666}
.callsheet-document-note{white-space:pre-wrap;margin:16px 0}
.callsheet-document-table-wrap{overflow:auto}
.callsheet-document-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:640px;font-size:13px}
.callsheet-document-table th,.callsheet-document-table td,.callsheet-document-table th:first-child,.callsheet-document-table td:first-child{position:static;min-width:0;width:auto;white-space:pre-wrap;text-align:left;vertical-align:top;padding:9px 10px;border:1px solid #c8c4bc;overflow-wrap:anywhere;background:#fff;color:#242424}
.callsheet-document-table th{font-weight:600;background:#f0eee9}
.callsheet-document-table .callsheet-document-service td{background:#f7f5f0;font-weight:600}
@media(max-width:760px){.callsheet-document{padding:16px}.callsheet-document-head h2{font-size:22px}}
@media print{
 @page{size:A4 portrait;margin:14mm}
 /* Only a deliberate read-only document opens the performance print layout. */
 body:has(#detail[open] .callsheet-document){height:auto!important;overflow:visible!important;background:#fff!important;color:#000!important}
 body:has(#detail[open] .callsheet-document)>:not(#detail){display:none!important}
 #detail:has(.callsheet-document)::backdrop{display:none!important}
 #detail[open]:has(.callsheet-document){display:block!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#000!important}
 #detail:has(.callsheet-document) #detail-body{display:block!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}
 #detail:has(.callsheet-document) #detail-body>:not(.callsheet-document){display:none!important}
 #detail:has(.callsheet-document) .callsheet-document{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;break-inside:auto}
 .callsheet-document-head{break-inside:avoid;break-after:avoid}
 .callsheet-document-head h2{font-size:20pt}
 .callsheet-document .performance-timing{break-inside:avoid;display:flex;gap:16px;margin:12px 0}
 .callsheet-document .performance-timing>div{flex:1;min-width:0}
 .callsheet-document .performance-timing dt{font-size:8pt}
 .callsheet-document .performance-timing dd{font-size:10pt}
 .callsheet-document-note{white-space:pre-wrap}
 .callsheet-document-table-wrap{overflow:visible!important;max-height:none!important}
 .callsheet-document-table{display:table!important;min-width:0!important;width:100%!important;table-layout:fixed;font-size:9pt}
 .callsheet-document-table thead{display:table-header-group!important}
 .callsheet-document-table tbody{display:table-row-group!important}
 .callsheet-document-table tr{display:table-row!important;break-inside:avoid;page-break-inside:avoid}
 .callsheet-document-table th,.callsheet-document-table td,.callsheet-document-table th:first-child,.callsheet-document-table td:first-child{display:table-cell!important;position:static!important;width:auto!important;min-width:0!important;padding:6px 7px!important;color:#000!important;border-color:#888!important;background:#fff!important;white-space:pre-wrap!important;overflow-wrap:anywhere}
 .callsheet-document-table th{border-bottom:2px solid #444!important}
 /* Rehearsal documents retain their own layout and table column widths. */
 #detail.activity-document-dialog,#detail.activity-document-dialog #detail-body{height:auto!important;max-height:none!important;overflow:visible!important}
 .activity-document-table{display:table!important}
 .activity-document-table thead{display:table-header-group!important}
 .activity-document-table tbody{display:table-row-group!important}
 .activity-document-table tr{display:table-row!important}
 .activity-document-table th,.activity-document-table td{display:table-cell!important;position:static!important}
 .activity-document-table td::before{display:none!important}
 /* Ctrl+P in an editor must not masquerade editable controls as a final call. */
 #detail:has(#sheet-form){display:none!important}
 body:has(#detail[open] #sheet-form)::after{content:'Для печати вызова откройте «Предпросмотр и печать».';display:block;color:#000;font:12pt/1.5 system-ui}
}
