#real-production { min-width:0; }
#real-production h2, #real-production h3 { color:var(--section-title); font-size:var(--section-title-size); font-weight:var(--section-title-weight); }
#real-production .pr-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; align-items:end; }
#real-production .filter { min-width:0; }
#real-production .filter>span:first-child { font-size:12px; letter-spacing:0; }
#real-production .an-filter-actions { justify-content:flex-end; grid-column:-2 / -1; }
#real-production .pr-filter-grid>.an-filter:nth-child(5n) .an-popover { left:auto; right:0; }
#real-production .pr-add { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid #d6e0db; margin-top:18px; padding-top:14px; color:#586a62; font-size:13px; }
#real-production .pr-add-actions { display:flex; align-items:center; gap:12px; margin-left:auto; }
#real-production .pr-period { padding:0 0 18px; }
#real-production .pr-period-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; font-size:13px; }
#real-production .pr-period-label strong { color:var(--section-title); }
#real-production .pr-ranges { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
#real-production .pr-ranges label { display:grid; gap:8px; color:#607067; font-size:12px; }
#real-production .pr-ranges label>span { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
#real-production .pr-ranges strong { color:var(--green-dark); font-weight:600; }
#real-production input[type=range] { width:100%; margin:0; accent-color:#4a6860; }
#real-production .pr-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); margin:22px 0; }
#real-production .metric { min-width:0; }
#real-production .metric-value { font-size:24px; overflow-wrap:anywhere; }
#real-production .metric-note { flex-wrap:wrap; line-height:1.5; }
#real-production .pr-adjust { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:20px 0; border-top:1px solid #e3e6e2; border-bottom:1px solid #e3e6e2; margin-bottom:26px; }
#real-production .pr-adjust>div:first-child { margin-right:auto; }
#real-production .pr-adjust h2 { font-size:var(--section-title-size); margin:0 0 7px; }
#real-production .pr-adjust p, #real-production .pr-note { font-size:12px; color:#6c756f; margin:0; line-height:1.6; }
#real-production .pr-adjust label { display:grid; gap:6px; width:150px; }
#real-production .pr-adjust label>span { display:block; white-space:nowrap; }
#real-production .pr-adjust input { width:100%; min-height:40px; padding:9px 12px; border:1px solid #ccd6d0; border-radius:5px; background:white; color:#243c33; font:inherit; }
#real-production .pr-adjust .icon-button { height:40px; width:40px; }
#real-production .pr-chart { height:350px; position:relative; }
#real-production .pr-table .table-scroll { max-height:480px; overflow:auto; overscroll-behavior:contain; }
#real-production .pr-table .an-table-actions { flex-wrap:wrap; }
#real-production .pr-table .identity-col { min-width:235px; max-width:340px; }
#real-production .pr-table .an-identity strong { white-space:normal; overflow-wrap:anywhere; }
#real-production .pr-table:has([data-pr-check]) th:first-child, #real-production .pr-table:has([data-pr-check]) td:first-child { min-width:36px; width:36px; padding:10px; }
#real-production .pr-more { text-align:center; padding:10px; color:#6b756e; font-size:12px; }
#real-production .pr-warning, #real-production .pr-success { padding:12px 15px; margin:14px 0; font-size:13px; line-height:1.6; border-left:3px solid #9c795a; background:#f5f0eb; color:#73563e; }
#real-production .pr-success { background:#edf4ef; color:#365b49; border-color:#5f8870; }
#real-production .pr-export { padding:24px 0; border-top:1px solid #e3e6e2; margin-top:24px; }
#real-production .pr-export h2 { font-size:var(--section-title-size); margin:0 0 22px; }
#real-production .pr-export h3 { font-size:var(--section-title-size); margin:24px 0 8px; }
#real-production .pr-export-controls { display:grid; grid-template-columns:1.4fr 1fr; gap:30px; align-items:end; }
#real-production .pr-years { display:flex; gap:16px; flex-wrap:wrap; border:0; padding:0; margin:0; }
#real-production .pr-years legend { font-size:12px; font-weight:600; margin-bottom:13px; color:#59695f; }
#real-production .pr-years label { display:flex; align-items:center; gap:7px; font-size:13px; }
#real-production input[type=checkbox] { accent-color:#4a6860; }
#real-production .pr-export-actions { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; align-items:center; margin:22px 0; }
#real-production .pr-export-actions [role=status] { font-size:13px; color:#607067; }
#real-production .pr-export-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
#real-production .pr-preview { max-height:450px; overflow:auto; margin-top:12px; }
#real-production .pr-preview table { min-width:780px; width:100%; }
#real-production .pr-preview th { background:#f1f4f1; position:sticky; top:0; z-index:1; }
#real-production .pr-preview td, #real-production .pr-preview th { padding:12px; font-size:12px; text-align:left; border-bottom:1px solid #e5e9e5; }
#real-production .pr-filter-grid.pr-export-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
#real-production .pr-export-filters>.an-filter .an-popover { left:0; right:auto; }
#real-production .pr-export-filters>.an-filter:nth-child(4n) .an-popover { left:auto; right:0; }
@media(max-width:1200px) {
  #real-production .pr-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #real-production .pr-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #real-production .pr-filter-grid>.an-filter .an-popover { left:0; right:auto; }
  #real-production .pr-filter-grid>.an-filter:nth-child(3n) .an-popover { left:auto; right:0; }
  #real-production .pr-export-filters>.an-filter:nth-child(3n) .an-popover { left:0; right:auto; }
  #real-production .pr-export-filters>.an-filter:nth-child(4n) .an-popover { left:auto; right:0; }
}
@media(max-width:700px) {
  #real-production .pr-filter-grid, #real-production .pr-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #real-production .pr-filter-grid.pr-export-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #real-production .pr-ranges { gap:15px; }
  #real-production .pr-export-controls { grid-template-columns:1fr; gap:20px; }
  #real-production .pr-adjust>div:first-child { flex-basis:100%; }
  #real-production .pr-chart { height:300px; }
  #real-production .pr-add { align-items:start; flex-direction:column; }
  #real-production .pr-export-actions .button { flex:1 1 170px; }
  #real-production .metric-value { font-size:21px; }
  #real-production .pr-export-kpis { grid-template-columns:1fr; }
  #real-production .pr-filter-grid>.an-filter .an-popover { left:0; right:auto; }
  #real-production .pr-filter-grid>.an-filter:nth-child(even) .an-popover { left:auto; right:0; }
}
.pr-versions {border-block:1px solid var(--border,#dce3df);padding:24px 0;margin:24px 0;}
.pr-versions .chart-heading {margin-bottom:16px;flex-direction:row;align-items:center;}
.pr-versions .chart-heading h2 {margin:0;}
.pr-version-actions {display:flex;gap:4px;}
.pr-versions h2,.pr-versions h3,.pr-confirm h2 {color:var(--section-title);font-weight:var(--section-title-weight);}
.pr-versions h3 {font-size:var(--section-title-size);margin:22px 0 12px;}
.pr-version-list {position:relative;max-height:310px;margin-bottom:12px;}
.pr-version-list td:nth-child(3),.pr-version-list td:nth-child(4),.pr-version-list td:nth-child(6) {white-space:normal;min-width:130px;max-width:230px;}
.pr-version-lines {max-height:360px;}
.pr-version-current {color:#4a6860;background:#edf3ee;padding:3px 6px;border-radius:4px;font-size:12px;}
.pr-confirm {box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #dce3df;border-radius:8px;padding:24px;color:#293c33;}
.pr-confirm::backdrop {background:rgb(31 44 38 / 35%);}
.pr-confirm h2 {font-size:var(--section-title-size);margin:0 0 16px;}
.pr-confirm p {font-size:14px;line-height:1.6;}
:is(.pr-confirm,.pr-history-footer) textarea {font:inherit;font-size:13px;line-height:1.5;color:var(--ink);background:white;border:1px solid #cbd6ce;border-radius:4px;padding:10px;resize:vertical;width:100%;box-sizing:border-box;min-height:86px;}
:is(.pr-confirm,.pr-history-footer) textarea::placeholder {color:var(--muted);opacity:1;}
.pr-confirm-actions {display:flex;gap:12px;justify-content:flex-end;margin-top:22px;}
.pr-confirm h3 {color:var(--section-title);font-size:14px;margin:20px 0 12px;}
.pr-confirm section {min-width:0;}
.pr-confirm .pr-warning {display:flex;gap:10px;align-items:flex-start;padding:12px;border-left:3px solid #9c795a;background:#f5f0eb;color:#73563e;}
.pr-confirm .pr-warning[hidden] {display:none;}
.pr-confirm .pr-warning svg {flex:none;width:18px;height:18px;margin-top:3px;}
.pr-confirm .pr-draft-steps {list-style:none;padding:0;margin:0;border-block:1px solid #dce3df;}
.pr-confirm .pr-draft-steps li {padding:12px 0;border-bottom:1px solid #e5e9e5;}
.pr-confirm .pr-draft-steps li:last-child {border-bottom:0;}
.pr-confirm .pr-step-heading {display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;font-size:14px;}
.pr-confirm .pr-step-heading strong {color:#4a6860;}
.pr-confirm .pr-step-scope {display:flex;flex-wrap:wrap;gap:5px 18px;margin-top:8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.pr-confirm .pr-draft-steps p,.pr-confirm .pr-recap-note {font-size:12px;color:#657269;margin:6px 0 0;}
.pr-confirm .pr-draft-result {max-height:230px;overflow:auto;margin:12px 0 18px;border-block:1px solid #dce3df;}
.pr-confirm .pr-draft-result table {width:100%;min-width:560px;border-collapse:separate;border-spacing:0;}
.pr-confirm .pr-draft-result th,.pr-confirm .pr-draft-result td {padding:10px;font-size:12px;border-bottom:1px solid #e5e9e5;}
.pr-confirm .pr-draft-result th {position:sticky;top:0;z-index:1;background:#edf4ef;text-align:left;white-space:nowrap;}
.pr-confirm .pr-draft-result td:first-child {min-width:140px;max-width:190px;white-space:normal;}
.pr-confirm .pr-draft-result td:nth-child(2) {min-width:140px;max-width:240px;white-space:normal;}
.pr-confirm .pr-draft-result :is(th,td):nth-child(n+3) {text-align:right;white-space:nowrap;}
:is(.pr-confirm,.pr-history-footer) .filter {display:grid;gap:8px;font-size:13px;}
:is(.pr-confirm,.pr-history-footer) .filter>span:first-child {display:block;}
.pr-confirm-actions {position:sticky;bottom:-24px;background:white;padding:14px 0;margin-top:14px;border-top:1px solid #dce3df;flex-wrap:wrap;}
@media(max-width:600px){.pr-confirm{padding:16px;}.pr-confirm-actions{bottom:-16px;}.pr-confirm-actions .button{flex:1 1 180px;justify-content:center;white-space:normal;}}
.pr-history-dialog {position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(850px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--border);background:white;color:var(--text,#293c33);}
.pr-history-dialog[open] {display:flex;flex-direction:column;}
.pr-history-dialog::backdrop {background:rgb(31 44 38 / 35%);}
.pr-history-dialog .drawer-top {color:var(--section-title);font-size:14px;flex:none;}
.pr-history-dialog .drawer-content {min-height:0;padding:24px;}
.pr-history-dialog h2 {color:var(--section-title);font-size:var(--section-title-size);font-weight:var(--section-title-weight);margin:0 0 10px;}
.pr-history-dialog p {font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
.pr-history-dialog .pr-version-meta {color:#66746c;margin:0 0 16px;}
.pr-history-dialog .pr-version-lines {max-height:none;overflow:auto;margin:20px 0 14px;}
.pr-history-dialog table {min-width:690px;width:100%;}
.pr-history-dialog td:first-child {white-space:normal;min-width:170px;max-width:230px;}
.pr-history-dialog th,.pr-history-dialog td {font-size:14px;padding:12px 10px;}
.pr-history-dialog small {font-size:12px;}
.pr-history-dialog button:disabled {opacity:.5;cursor:not-allowed;}
.pr-history-footer {flex:none;border-top:1px solid var(--border);padding:16px 24px;background:#f8faf8;max-height:45dvh;overflow:auto;}
.pr-history-footer>p {margin:0 0 12px;color:#66746c;font-size:13px;}
.pr-history-footer .pr-confirm-actions {margin-top:14px;flex-wrap:wrap;bottom:-16px;background:#f8faf8;}
.pr-restore-summary {display:flex;flex-wrap:wrap;gap:8px 24px;background:#edf4ef;padding:14px 16px;border-left:3px solid #5f8870;font-size:14px;color:#365b49;}
.pr-history-dialog .pr-warning {padding:12px 15px;border-left:3px solid #9c795a;background:#f5f0eb;color:#73563e;}
@media(max-width:600px){.pr-history-dialog .drawer-content{padding:18px 16px;}.pr-history-footer{padding:14px 16px;}.pr-history-footer .pr-confirm-actions{bottom:-14px;}}
