.production-shell aside{width:235px;padding:18px 10px;overflow-y:auto}.production-shell{grid-template-columns:235px 1fr}.production-shell .brand{padding-bottom:16px}.production-shell .nav{gap:2px}.production-shell .nav button{padding:10px 14px;font-size:.9375rem}.production-shell .aside-bottom{padding-top:18px}.production-shell .card{margin-top:20px}.production-shell .actions{margin-bottom:18px}.production-shell .toolbar label{min-width:120px}.production-shell .p-thumb{width:50px;height:60px;object-fit:contain;vertical-align:middle;margin-right:10px}.production-shell .table-wrap td{max-width:320px;overflow-wrap:anywhere}.production-editor{width:min(1240px,96vw)!important;max-width:96vw!important}.p-lines{margin:24px 0;max-height:460px;overflow:auto}.p-lines input,.p-lines select{min-width:115px;width:100%}.p-lines td:first-child select{min-width:340px}.p-lines th{position:sticky;top:0;z-index:1}.p-lines label{font-size:0;gap:0}.p-lines input,.p-lines select{font-size:15px}.p-drop{padding:22px;border:2px dashed #c4d8e7;background:#f6faff;border-radius:8px;margin-top:16px;line-height:1.8}.p-drop.dragging{border-color:#3b79aa;background:#eaf4ff}.p-drop small{display:block}.p-drop input{margin:12px 0}.p-attachment{display:inline-flex;margin:8px;padding:8px;background:white;border:1px solid #dce6ef;max-width:240px;overflow-wrap:anywhere}.p-attachment img{width:80px;height:70px;object-fit:contain;display:block}.p-evidence{margin:24px 0}.p-details{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:22px 0}.p-details p{margin:0;padding:12px;background:#f4f8fb;overflow-wrap:anywhere}.p-details span{display:block;color:#718595;font-size:.875rem}.p-details strong{font-weight:500;white-space:pre-wrap}.p-audit{white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;font-size:12px}.p-sign{margin-top:40px}.p-print-sheet h3{margin:22px 0 14px}.p-print-sheet .p-details p{background:#fff}.p-print-sheet .table-wrap{overflow:visible}.p-print-sheet th,.p-print-sheet td{white-space:normal!important}.p-print-sheet .link{color:inherit;padding:0;border:0}.p-print-sheet{padding:24px}.p-print-sheet .table-wrap table{min-width:0}.p-thumb{object-fit:contain}
@media(max-width:900px){.production-shell aside{width:190px}.production-shell{grid-template-columns:190px 1fr}.production-shell .workspace{padding:20px}.p-details{grid-template-columns:1fr}}
@media print{.p-print-sheet{padding:0;overflow:visible}.p-print-sheet .p-details{grid-template-columns:1fr 1fr}.p-print-sheet .p-details p{padding:3px;font-size:10pt}.p-print-sheet table{font-size:9pt;table-layout:fixed}.p-print-sheet th,.p-print-sheet td{padding:5px;font-size:9pt;overflow-wrap:anywhere}.p-print-sheet h1{font-size:18pt}.p-print-sheet .p-sign{break-inside:avoid}.p-print-sheet .table-wrap{border:0;overflow:visible!important}.p-print-sheet button{font-size:9pt;font-weight:400}.p-print-sheet tr{break-inside:avoid}}
.p-metric-drill{padding:0;text-align:left;border:0;background:transparent;font-weight:400}.p-metric-drill .metric{height:100%;margin:0}.p-metric-drill:hover .metric{border-color:#91b5d3;background:#f7fbff}.p-print-photos{display:flex;flex-wrap:wrap;gap:16px}.p-print-photos figure{margin:8px;padding:8px;border:1px solid #dce5ed;break-inside:avoid}.p-print-photos img{width:100px;height:110px;object-fit:contain}.p-print-photos figcaption{font-size:13px}
/* 0.3.1: one step at a time, with product photos separate from evidence. */
.flow-nav-group>p{font-size:12px;color:#8c9ba8;margin:17px 12px 8px}.flow-nav-group button{display:block;width:100%;text-align:left}.flow-nav-group button>span{display:inline-block;width:28px;color:#95a9b8;font-size:12px}.flow-search{margin:0 0 18px;padding:10px 16px;background:#fff}.flow-search>.toolbar{margin:18px 0 4px}.flow-more{position:relative;margin:0;padding:9px 12px}.flow-more .actions{margin:14px 0 0!important}.flow-search-line{display:flex;gap:10px;max-width:560px;margin-bottom:22px}.flow-search-line input{flex:1}.flow-stepbar{display:flex;flex-wrap:wrap;gap:12px;color:#547995;background:#eef5fa;padding:18px;border-radius:8px;margin:20px 0}.flow-stepbar span{padding-right:16px}.flow-good-layout{display:grid;grid-template-columns:250px 1fr;gap:32px;margin:24px 0}.flow-main-image{border:1px solid #dbe6ed;border-radius:10px;padding:18px;background:#f8fbfd}.flow-main-image h3{margin:0 0 12px;font-size:17px}.flow-main-image small{display:block;line-height:1.7;margin-top:12px;color:#758b9d}#flow-main-preview{height:210px;display:grid;place-items:center;margin-bottom:16px;border:1px dashed #cbdbe7;border-radius:8px;background:white;color:#8aa0b0}#flow-main-preview img{width:100%;height:205px;object-fit:contain}.flow-advanced{margin:20px 0;background:#fbfcfd;border:1px solid #e1e9ef}.flow-advanced>summary{color:#7890a3;font-weight:500}.flow-advanced>.form-grid{margin-top:18px}.flow-selected-good{display:flex;align-items:center;gap:18px;padding:20px;background:#f1f7fb;border:1px solid #e0ebf3;border-radius:9px;margin:16px 0 24px}.flow-selected-good img{width:84px;height:100px;object-fit:contain}.flow-selected-good p{margin:8px 0 0;color:#6a8295}.flow-quantity-grid{margin:24px 0;max-height:450px;overflow:auto}.flow-quantity-grid input{width:140px}.flow-craft-files{padding-top:18px;border-top:1px solid #dce6ed}.production-shell .p-thumb{width:65px;height:75px}.production-shell .workspace>.heading{margin-bottom:24px}.production-shell .flow-nav-group button{font-size:14px;padding:9px 14px}.p-evidence>summary{font-weight:500}.p-evidence .p-drop{background:#fffaf0;border-color:#ddceac}.p-evidence .form-grid{margin-top:18px}
@media(max-width:700px){.flow-good-layout{grid-template-columns:1fr}.flow-main-image{max-width:300px}.flow-stepbar{font-size:13px}.flow-quantity-grid input{width:100px}}

/* Production shares the card workspace while transaction tables stay readable. */
.production-goods-grid,.production-function-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px;margin:20px 0}
.production-good-card{border:1px solid #d8e2e9;border-radius:14px;overflow:hidden;background:#fff;min-width:0}
.production-good-card:hover{box-shadow:0 8px 24px #263d5014}.production-good-image{height:230px;background:#f3f6f8;display:flex;align-items:center;justify-content:center}
.production-good-image a{width:100%;height:100%;display:block}.production-good-image img.p-thumb{width:100%;height:230px;object-fit:contain;margin:0;border:0}.production-good-image .placeholder{background:transparent;border:0}
.production-good-body{padding:18px}.production-good-body h3{margin:12px 0 8px;font-size:20px}.production-good-body p{overflow-wrap:anywhere}.production-good-body .actions{flex-wrap:wrap}
.production-function-panel{margin-top:28px}.production-function-grid button{text-align:left;background:white;border:1px solid #d8e2e9;border-top:3px solid #86669a;border-radius:12px;padding:20px;min-height:105px}
.production-function-grid strong{display:block;font-size:17px;margin-bottom:10px;color:#34465a}.production-function-grid span{color:#667b8d;font-size:13px;line-height:1.6}
.production-function-grid button:hover{background:#fff7f1;border-color:#ed7d38}.production-shell .primary{background:#ed580b;border-color:#ed580b;color:white}
@media(max-width:600px){.production-goods-grid,.production-function-grid{grid-template-columns:1fr}}

/* Production navigation: scoped to production; other business modules retain their layout. */
.production-shell .p-section-panel{margin:16px 0 22px}.production-shell .p-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0}.production-shell .p-section-heading h2{margin:0;font-size:17px}.production-shell .p-section-heading>span{font-size:12px;color:#7b899a}.production-shell .p-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.production-shell button.p-section-card{display:flex;align-items:flex-start;gap:13px;position:relative;text-align:left;padding:18px 30px 16px 16px;min-height:120px;border:1px solid #e1e7ef;background:#fff;color:#26374b;border-radius:8px;white-space:normal;box-shadow:0 2px 6px #23466a05}.production-shell button.p-section-card:hover{border-color:#84b9ef;box-shadow:0 4px 14px #185bbe12}.production-shell .p-section-icon{width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:var(--p-tint);color:var(--p-icon)}.p-section-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.p-tone-violet{--p-icon:#8867c6;--p-tint:#f1ebfc}.p-tone-blue{--p-icon:#318ce4;--p-tint:#eaf3ff}.p-tone-teal{--p-icon:#269d8d;--p-tint:#e6f7f3}.p-tone-amber{--p-icon:#ce9027;--p-tint:#fff3df}.p-tone-green{--p-icon:#5b9f45;--p-tint:#edf6e7}.p-tone-indigo{--p-icon:#687bd3;--p-tint:#edf0fc}.production-shell .p-section-copy{display:flex;flex-direction:column;gap:5px}.production-shell .p-section-copy strong{font-size:16px;font-weight:600}.production-shell .p-section-copy>span{font-size:12px;color:#778597;line-height:1.6}.production-shell .p-section-copy small{font-size:12px;color:#557897;margin-top:4px}.p-section-arrow{position:absolute;right:12px;top:18px;color:#9baabd}.production-shell .p-supply-note{padding:9px 12px;background:#edf4ff;color:#56728f;border:1px solid #dce9fc;border-radius:5px;font-size:12px}.production-shell .p-section-links{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;background:#eef4fc;border:1px solid #dce7f4;border-radius:6px}.production-shell .p-section-links>span{font-size:13px;color:#687b90;margin-right:5px}.production-shell .p-section-links button{font-size:13px;padding:7px 12px}.production-shell .p-section-links .active{background:#3498ef;color:white;border-color:#3498ef}.production-shell .p-open-tabs{display:flex;overflow-x:auto;gap:4px;background:#f8fafc;border-bottom:1px solid #dce4ef;padding:0 18px;flex-shrink:0}.production-shell .p-open-tabs button{white-space:nowrap;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:12px 15px;font-size:13px}.production-shell .p-open-tabs button.active{border-bottom-color:#3498ef;background:white;color:#185bbe}.production-shell .p-all-entries{margin-top:20px;padding:12px;background:#fff;border:1px solid #e1e7ef;border-radius:6px}.production-shell .p-all-entries summary{cursor:pointer;color:#526b85;font-size:14px}.production-shell .p-all-entries .production-function-panel{margin-top:10px}.production-shell .p-all-entries .production-function-panel h2{display:none}.production-shell .p-all-entries .production-function-grid button{border-top:1px solid #d8e2e9;border-radius:6px;padding:14px;min-height:85px}.production-shell .p-section-card:focus-visible,.production-shell .p-open-tabs button:focus-visible{outline:3px solid #80b9fa;outline-offset:2px}
@media(max-width:1100px){.production-shell .p-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.production-shell .p-section-grid{grid-template-columns:1fr}.production-shell .p-section-heading{align-items:flex-start;flex-direction:column}}
