#journal_production{padding:10px 12px 20px;box-sizing:border-box;}
#journal_production .jp-title{width:100%;background:#fff;border:1px solid #d4d9df;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.06);padding:13px 18px;margin:0 0 14px;box-sizing:border-box;text-align:center;font-size:20px;font-weight:900;color:#050505;}
#journal_production .jp-filter-card{width:100%;background:#fff;border:1px solid #d5dbe3;border-radius:15px;box-shadow:0 2px 10px rgba(0,0,0,.06);padding:12px 16px;box-sizing:border-box;display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin-bottom:12px;}
#journal_production .jp-filter-item{display:flex;align-items:center;gap:7px;min-width:0;}
#journal_production .jp-filter-item label{font-weight:900;font-size:14px;color:#102d3b;white-space:nowrap;}
#journal_production .jp-filter-item select,#journal_production .jp-filter-item input[type=date]{height:38px;border:1px solid #b9c8d5;border-radius:9px;background:#f8fafc;padding:0 10px;font-size:14px;font-weight:700;color:#111;min-width:150px;box-sizing:border-box;}
#journal_production .jp-filter-item.jp-week{flex:0 1 270px;}
#journal_production .jp-filter-item.jp-week select{width:100%;min-width:210px;}
#journal_production .jp-filter-item.jp-code{flex:0 0 auto;}
#journal_production .jp-filter-item.jp-code select{width:260px;min-width:220px;max-width:260px;}
#journal_production .jp-filter-item.jp-variete{flex:0 0 auto;}
#journal_production .jp-filter-item.jp-variete select{width:180px;min-width:170px;}
#journal_production .jp-filter-item.jp-situation{flex:0 0 auto;}
#journal_production .jp-filter-item.jp-unit{flex:0 0 auto;}
#journal_production .jp-filter-item.jp-situation select{width:175px;min-width:165px;}
#journal_production .jp-filter-item.jp-unit select{width:165px;min-width:155px;}
#journal_production .jp-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;}
#journal_production .jp-actions button{height:38px;padding:0 15px;border:1px solid #9fb0bf;border-radius:9px;background:#f4f6f8;color:#000;font-weight:900;font-size:13px;cursor:pointer;white-space:nowrap;}
#journal_production .jp-actions button:hover:not(:disabled){background:#e6edf2;}
#journal_production .jp-actions button:disabled{opacity:.55;cursor:not-allowed;}
#journal_production #jpGenerate{background:#246d80;color:#fff;border-color:#246d80;}
#journal_production .jp-msg{min-height:20px;font-size:14px;font-weight:800;margin:4px 2px 8px;color:#05603a;}
#journal_production .jp-report-card{background:#fff;border:1px solid #d5dbe3;border-radius:15px;box-shadow:0 2px 10px rgba(0,0,0,.06);padding:10px;box-sizing:border-box;}
#journal_production .jp-report-head{display:grid;grid-template-columns:120px 1fr 120px;align-items:center;gap:10px;margin-bottom:8px;}
#journal_production .jp-report-logo{max-width:112px;max-height:58px;object-fit:contain;}
#journal_production .jp-report-title{text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:900;line-height:1.2;text-transform:uppercase;}
#journal_production .jp-table-wrap{width:100%;max-height:58vh;overflow:auto;border:1px solid #bbc7d0;box-sizing:border-box;scrollbar-gutter:stable both-edges;background:#fff;}
#journal_production .jp-table{border-collapse:collapse;table-layout:fixed;min-width:2350px;width:max-content;background:#fff;border:2px solid #000;font-size:11px;}
#journal_production .jp-table th,#journal_production .jp-table td{border:1px solid #000;padding:4px 5px;text-align:center;vertical-align:middle;color:#000;box-sizing:border-box;line-height:1.15;}
#journal_production .jp-table thead th{position:sticky;top:0;z-index:8;background:#f7f7f7;font-weight:900;white-space:normal;}
#journal_production .jp-table thead th.jp-product-frais{background:#dbe6f5;}
#journal_production .jp-table thead th.jp-product-desh{background:#fff0b8;}
#journal_production .jp-table td.jp-na{background:#8e8e8e;color:transparent;}
#journal_production .jp-table td.jp-num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap;}
#journal_production .jp-table td.jp-left{text-align:left;white-space:normal;overflow-wrap:anywhere;}
#journal_production .jp-table tfoot td{position:sticky;bottom:0;z-index:6;background:#fff3b0;font-weight:900;border-top:2px solid #000;}
#journal_production .jp-table tfoot td.jp-total-status{background:#8e8e8e;color:transparent;}
#journal_production .jp-signatures{display:grid;grid-template-columns:1fr 1fr;gap:80px;margin:22px 10px 8px;font-family:Georgia,"Times New Roman",serif;font-size:14px;text-transform:uppercase;}
#journal_production .jp-signature{text-align:center;padding-top:26px;border-top:1px solid #000;}
#journal_production .jp-note{margin:8px 4px 0;font-size:11px;color:#44515d;line-height:1.35;font-weight:700;}
#journal_production .jp-col-date{width:98px}.jp-col-code{width:150px}.jp-col-variete{width:105px}.jp-col-origin{width:125px}.jp-col-unit{width:110px}.jp-col-qty{width:80px}.jp-col-mass{width:90px}.jp-col-cos{width:95px}.jp-col-money{width:105px}.jp-col-pu{width:100px}.jp-col-status{width:85px}.jp-col-total{width:105px}.jp-col-prod{width:72px}
@media(max-width:900px){#journal_production .jp-filter-item.jp-code,#journal_production .jp-filter-item.jp-variete,#journal_production .jp-filter-item.jp-situation,#journal_production .jp-filter-item.jp-unit{flex:1 1 100%;width:100%;max-width:none;}#journal_production .jp-filter-item.jp-code select,#journal_production .jp-filter-item.jp-variete select,#journal_production .jp-filter-item.jp-situation select,#journal_production .jp-filter-item.jp-unit select{flex:1 1 auto;width:auto;max-width:none;}#journal_production .jp-actions{margin-left:0;width:100%;}#journal_production .jp-actions button{flex:1 1 140px;}#journal_production .jp-report-head{grid-template-columns:90px 1fr 20px;}#journal_production .jp-report-title{font-size:14px;}}
@media print{
  @page{size:A3 landscape;margin:8mm;}
  body{background:#fff!important;}
  #journal_production .jp-filter-card,#journal_production .jp-actions,#journal_production .jp-msg{display:none!important;}
  #journal_production .jp-title{display:none!important;}
  #journal_production .jp-report-card{box-shadow:none;border:0;padding:0;}
  #journal_production .jp-table-wrap{max-height:none!important;overflow:visible!important;border:0;}
  #journal_production .jp-table{width:100%!important;min-width:0!important;font-size:7.5px;}
  #journal_production .jp-table thead th,#journal_production .jp-table tfoot td{position:static!important;}
  #journal_production .jp-signatures{margin-top:18px;}
}

/* Journal Production - coûts complets et seuils de pilotage */
#journal_production .jp-table{min-width:3285px;}
#journal_production .jp-col-montant-total{width:112px;}
#journal_production .jp-col-rendement-md{width:118px;}
#journal_production .jp-table td.jp-rendement-green,
#journal_production .jp-table tfoot td.jp-rendement-green{color:#00a651!important;font-weight:900;}
#journal_production .jp-table td.jp-rendement-red,
#journal_production .jp-table tfoot td.jp-rendement-red{color:#e00000!important;font-weight:900;}
#journal_production .jp-table td.jp-montant-green,
#journal_production .jp-table tfoot td.jp-montant-green{color:#00a651!important;font-weight:900;}
#journal_production .jp-table td.jp-montant-orange,
#journal_production .jp-table tfoot td.jp-montant-orange{color:#d97706!important;font-weight:900;}
#journal_production .jp-table td.jp-montant-red,
#journal_production .jp-table tfoot td.jp-montant-red{color:#e00000!important;font-weight:900;}

#journal_production .jp-col-fresh-mass{width:118px;}
#journal_production .jp-col-fresh-pu{width:125px;}
