:root{--green:#245e50;--ink:#253b36;--muted:#738079;--line:#e3e7e2;background:#f8f9f6;color:var(--ink);font-size:14px}.app-header{padding:16px 30px;height:80px;background:#fff}.brandmark{font-family:Georgia,serif;font-size:27px;padding:4px 14px;border-radius:10px}.brand small{font-size:11px}.environment{font-size:10px;padding:6px 10px;background:#f6f6ef}.app-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:calc(100vh - 80px)}main#application{padding:0;max-width:none}.app-sidebar{padding:32px 22px;background:#f0f3ed;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:12px;position:sticky;top:0;height:calc(100vh - 80px)}.app-sidebar>button{min-height:44px}.app-sidebar select{width:100%;font-size:12px;max-width:none}.app-sidebar #uploadHint{font-size:11px;text-align:center;margin:0 0 22px}.side-label{font-size:11px;font-weight:600;color:#66766b}.side-hint{font-size:12px;margin-top:8px}.side-bottom{margin-top:auto;padding-bottom:20px;font-family:Georgia,serif;font-size:23px;line-height:1.4;color:#8b9e8f}.app-content{width:100%;max-width:1140px;padding:36px 48px 60px;margin:auto}.welcome{max-width:640px;margin:65px auto 90px}.welcome h1{font-family:Georgia,serif;font-size:65px;font-weight:400;line-height:1.05;letter-spacing:-2px}.welcome p{font-size:16px;max-width:470px;margin:28px 0}.welcome button{padding:13px 24px}.welcome-steps{display:flex;gap:24px;margin-top:50px;font-size:11px;color:#849487}.invoice-head{margin:0 0 26px;gap:16px}.invoice-head h1{font-size:20px;letter-spacing:-.4px;overflow-wrap:anywhere;line-height:1.3;margin:8px 0}.invoice-head small{font-size:11px}.workflow-nav{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #d8dfd8;margin-bottom:28px;gap:10px}.workflow-nav button{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:14px 4px;font-size:11px;text-align:left;color:#819087;display:flex;gap:10px}.workflow-nav button[aria-current=step]{border-color:var(--green);color:var(--green);font-weight:700}.workflow-nav button span{font-size:13px}.assistant-message{display:flex;gap:16px;align-items:flex-start;margin:0 0 25px;padding:20px;background:#edf3ed;border:1px solid #e1e9e1;border-radius:12px}.assistant-icon{display:grid;place-items:center;background:#dbe9db;width:32px;height:32px;border-radius:9px;flex-shrink:0;font-size:20px;color:#416a4d}.assistant-message strong{font-size:15px}.assistant-message p{margin:7px 0 0;line-height:1.6;font-size:13px;color:#607065}.workflow-step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px}.document-summary{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:0 0 22px}.document-summary>div{display:flex;flex-direction:column;gap:8px;min-width:0}.document-summary small{font-size:11px;color:#809087}.document-summary strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.document-summary span{font-size:11px;color:#819087}.document-summary .amount{font-size:30px;letter-spacing:-1px}.edit-details{padding:16px 0;border-top:1px solid var(--line);font-size:12px}.edit-details>summary{cursor:pointer;font-weight:600;color:#547063}.edit-details .supplier-panel{border:0;padding:8px 0;margin:8px 0}.edit-details .header-fields{border:0;padding:8px 0;grid-template-columns:1fr 1fr}.step-actions{display:flex;gap:16px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:20px;margin-top:15px}.step-actions>span{font-size:11px;max-width:240px;color:#809087;line-height:1.5}.step-actions button{font-size:12px}.destination-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.destination-choices button{text-align:left;padding:20px;border:1px solid #dde4dc;border-radius:12px}.destination-choices button.selected{background:#f0f6ee;border:1px solid #6b9271}.destination-choices strong,.destination-choices span{display:block}.destination-choices span{font-weight:400;font-size:12px;color:#809087;line-height:1.5;margin-top:9px}.cost-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:22px 0}.cost-groups>div{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--line);border-radius:8px}.cost-groups strong{font-size:12px}.cost-groups span,.cost-groups small{font-size:11px;color:#78897e}.review-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:24px}.review-metrics button{background:#f7f9f5;border:0;border-radius:9px;text-align:left;padding:12px 15px}.review-metrics strong{font-size:27px;font-weight:500;display:block;margin-bottom:5px}.review-metrics span{font-size:10px;color:#708376}.review-toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.review-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:10px;flex:1}.review-toolbar button{font-size:11px;max-width:180px}.review-toolbar input,.review-toolbar select{width:100%;max-width:none}.queue-row{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line)}.queue-check{padding:4px}.queue-description{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.queue-description small{font-size:9px;color:#819386}.queue-description>strong{font-size:13px}.queue-description>span{font-size:11px;color:#607568;line-height:1.5}.queue-amount{text-align:right;display:flex;flex-direction:column;gap:6px;min-width:110px}.queue-amount strong{font-size:13px}.queue-amount small{font-size:9px;color:#958159}.queue-row>button{font-size:11px;padding:8px}.queue-pagination{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:11px;color:#809087}.queue-pagination button{font-size:11px}.queue-empty{padding:50px 20px;text-align:center;color:#809087}.final-total{text-align:center;display:flex;flex-direction:column;gap:12px;padding:24px 0}.final-total strong{font-size:44px;font-weight:500;letter-spacing:-1px}.final-total span,.final-total small{color:#809087;font-size:12px}.summary-progress{display:flex;flex-wrap:wrap;gap:15px;padding:18px;background:#f4f7f1;border-radius:9px;font-size:12px}.review-check{display:block;padding:16px 0;line-height:1.6}.conversation{margin-top:28px;padding:0 8px}.conversation-heading{display:flex;justify-content:space-between;align-items:center}.conversation-heading strong{font-size:12px}.conversation-heading small,.conversation>small{font-size:10px;color:#849389}.conversation form{display:flex;gap:10px;background:#fff;border:1px solid #d8e1d6;border-radius:12px;padding:9px;margin:12px 0 8px;align-items:center}.conversation textarea{flex:1;border:0;resize:vertical;min-height:40px;max-height:160px;font-size:13px}.conversation form button{font-size:12px}.chat-message{padding:15px;border-radius:9px;margin:12px 0;background:#edf3ed}.chat-message.user{background:#f0f0eb;margin-left:40px}.chat-message strong{font-size:10px}.chat-message p{font-size:13px;color:#435c4d;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}#chatMessages{max-height:400px;overflow:auto}.settings-dialog{max-width:720px;width:calc(100% - 40px);max-height:90vh}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:0;background:#fff;z-index:3;padding-bottom:10px}.dialog-heading h2{font-size:18px;margin:0}.settings-dialog section{padding:15px 0}.settings-dialog p{font-size:12px}.settings-dialog form{display:flex;gap:12px;align-items:end}.settings-dialog label{display:flex;flex-direction:column;gap:7px;flex:1;font-size:12px}.settings-dialog details{border-top:1px solid var(--line);padding:20px 0}.settings-dialog summary{font-weight:600;cursor:pointer}.line-dialog{width:calc(100% - 40px);max-width:880px;max-height:90vh}.line-dialog .line{border:0;padding:0}.line-dialog .line-top{display:none}.line-dialog .line-question{font-size:14px;color:#637d68;background:#f0f5ec;padding:14px;border-radius:8px}.line-dialog .line-fields{grid-template-columns:repeat(3,1fr)}.line-dialog .line-fields .wide{grid-column:span 3}.line-dialog .material-zone{margin-top:16px;padding:16px}.line-dialog .allocation{grid-template-columns:1fr 1fr}.line-dialog .advanced-line{border-top:1px solid var(--line);margin-top:16px}.advanced-line>label{display:inline-flex;flex-direction:column;gap:7px;width:46%;margin:10px 2%;font-size:11px}.line-dialog .proposal-note{background:#f3f5f0;font-size:12px}.modal-actions{position:sticky;bottom:-28px;background:#fff;border-top:1px solid var(--line);padding:18px 0;display:flex;justify-content:flex-end;gap:12px}.package-helper{background:#fff8e9;border:1px solid #eddfbc;border-radius:9px;padding:16px;margin:15px 0}.package-helper p,.package-helper small{font-size:12px}.package-helper label{display:flex;flex-direction:column;gap:6px;font-size:11px;max-width:170px}.package-helper .actions{align-items:flex-end}.batch-dialog{width:calc(100% - 40px);max-width:720px;max-height:85vh}#batchDetails{max-height:50vh;overflow:auto;margin-bottom:20px}#batchDetails>div{padding:12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}#batchDetails strong{font-size:12px}#batchDetails span{font-size:11px;color:#7a887c}.pdf-dialog{width:calc(100% - 40px);max-width:950px;max-height:92vh}.pdf-dialog .pdf-pages{max-height:72vh}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#uploadStatus{margin-bottom:28px}#uploadStats{grid-template-columns:repeat(3,1fr)}#costFlow>h2,#costFlow>p:first-of-type,#applyCostFlow{display:none}#costFlowMode{max-width:none;width:100%}#costFlowFields{margin:16px 0}#notice:not(:empty){font-size:12px}button:disabled{opacity:.45}#preparedReview{display:none!important}@media(max-width:1050px){.app-content{padding:28px}.app-layout{grid-template-columns:195px 1fr}.app-sidebar{padding:25px 15px}.workflow-nav button span{font-size:11px}.step-actions{flex-wrap:wrap}.queue-row{gap:8px}.queue-amount{min-width:85px}}@media(max-width:750px){.app-header{padding:14px 18px;height:auto}.brand small{display:none}#sessionIdentity{display:none}.app-layout{display:block}.app-sidebar{position:static;height:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}.app-sidebar .side-hint,.side-bottom,.side-label,#uploadHint{display:none}.app-content{padding:24px 16px}.welcome{margin:35px 10px}.welcome h1{font-size:48px}.welcome-steps{gap:14px}.workflow-step{padding:18px}.document-summary{gap:22px}.workflow-nav{gap:3px}.workflow-nav button{gap:5px}.review-metrics{gap:6px}.review-metrics button{padding:10px}.review-metrics span{font-size:9px}.queue-row{flex-wrap:wrap}.queue-amount{margin-left:auto}.queue-description{min-width:150px}.line-dialog .line-fields{grid-template-columns:1fr 1fr}.line-dialog .line-fields .wide{grid-column:span 2}.conversation-heading{align-items:start;gap:12px}.conversation-heading small{max-width:140px;text-align:right}.settings-dialog form{flex-direction:column;align-items:stretch}.destination-choices{gap:10px}.destination-choices button{padding:14px}.invoice-head h1{font-size:16px}}

.chat-message p strong{font-size:inherit}.chat-source{display:block;font-size:10px;color:#6b8172;margin-top:10px}.chat-message .actions{margin-top:12px}.chat-message .actions button{font-size:11px}

.unit-default-card{background:#edf4ee;border:1px solid #d7e5d8;border-radius:10px;padding:17px;margin:16px 0}.unit-default-heading{display:flex;justify-content:space-between;gap:18px;align-items:center}.unit-default-heading>div{display:flex;flex-direction:column;gap:6px}.unit-default-heading small{font-size:11px;color:#657c69}.unit-default-heading strong{font-size:18px}.unit-default-badge{font-size:10px;background:#dce9dd;padding:6px 9px;border-radius:20px;color:#356143}.unit-default-card p{font-size:12px;line-height:1.55;margin:12px 0}.unit-default-card>small{display:block;font-size:11px;line-height:1.5;color:#667b6c;margin:8px 0}.unit-default-card button{font-size:12px;margin-top:10px}.unit-equation{display:flex;gap:12px;align-items:center;font-size:14px;flex-wrap:wrap;margin:15px 0}.unit-pending{background:#f8f7ee;border-color:#e7e2c8}.unit-manual{color:#786949}

.destination-notice{padding:16px;margin:16px 0;border:1px solid #d7e3d3;border-radius:9px;background:#f3f7ef}.destination-notice>strong{font-size:13px}.destination-notice p{font-size:13px;line-height:1.6;margin:8px 0}.destination-notice small{font-size:12px;color:#607065}.destination-notice .actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}.destination-notice .destination-error{color:#96392b;background:#fff0e9;padding:10px;border-radius:6px}.destination-notice[hidden]{display:none}

.selection-summary{font-size:12px;line-height:1.65;padding:12px 14px;border-radius:8px;background:#f0f5ed;color:#607065}.selection-summary strong{color:#294c3b}#selectReady{white-space:normal;min-width:150px}#selectReady[aria-pressed="true"]{background:#edf3ed;border-color:#a9c2a7}

.unit-reference{padding:11px 12px;border-left:3px solid #c2b573;background:#fffbee;color:#75613b}.unit-reference strong{display:block;margin-bottom:5px}

.supplier-confirmation{padding:17px 18px;margin:0 0 18px;background:#f2f6ee;border:1px solid #dce7d6;border-radius:10px}.supplier-confirmation>small{display:block;color:#718269;font-size:11px;margin-bottom:7px}.supplier-confirmation>strong{display:block;font-size:14px;line-height:1.6}.supplier-confirmation p{font-size:12px;line-height:1.6;margin:9px 0}.supplier-confirmation button{font-size:12px}.supplier-confirmation p:empty,#documentFeedback:empty{display:none}.inline-error{color:#a14030!important;background:#fff2eb;padding:10px 12px;border-radius:7px}.chat-supplier-action{margin-top:12px}.chat-supplier-action>p{font-size:12px}

.visual-review-panel{border:1px solid #dce5d6;border-radius:10px;padding:17px 18px;margin:0 0 18px;background:#fafbf7}.visual-review-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.visual-review-heading strong,#visualReviewResult>strong{font-size:13px}.visual-review-panel p,.visual-review-panel li{font-size:12px;line-height:1.6}.visual-review-heading p{margin:6px 0 0}.visual-review-heading button{font-size:12px;flex-shrink:0;max-width:210px}.visual-review-panel small{display:block;color:#738079;font-size:11px;line-height:1.6}.visual-review-panel [hidden],#visualReviewStatus:empty{display:none}.visual-header-result{color:#365d45}.visual-review-issues{color:#8b6329;background:#fff8e8;padding:9px 11px;border-radius:6px}#visualReviewResult{border-top:1px solid #e2e7dc;padding-top:14px;margin-top:14px}@media(max-width:650px){.visual-review-heading{align-items:stretch;flex-direction:column}.visual-review-heading button{max-width:none}}

.material-proposal-panel{padding:14px 16px;margin-bottom:20px;border:1px solid #dbe5d5;border-radius:9px;background:#f6f9f2}.material-proposal-heading{display:flex;gap:16px;justify-content:space-between;align-items:center}.material-proposal-heading strong{font-size:13px}.material-proposal-heading button{font-size:12px}.material-proposal-panel p{font-size:12px;line-height:1.6;margin:9px 0}.material-proposal-panel progress{width:100%;height:7px;accent-color:var(--green)}.material-proposal-panel [hidden]{display:none}.queue-proposal{margin-top:8px;padding:11px 12px;background:#f0f5ed;border:1px solid #e0e8da;border-radius:8px;display:flex;flex-direction:column;gap:6px}.queue-proposal>strong{font-size:12px;line-height:1.5}.queue-proposal p{font-size:11px;line-height:1.5;margin:0}.queue-proposal>small{font-size:10px;color:#637b65;line-height:1.5}.queue-proposal button{font-size:11px;align-self:flex-start;padding:7px 11px}@media(max-width:650px){.material-proposal-heading{align-items:stretch;flex-direction:column}}

.queue-proposal label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#607568}.queue-proposal select{font-size:12px;width:100%;max-width:none}.queue-unit-warning{font-size:11px!important;line-height:1.6;margin:7px 0 0;padding:10px 11px;background:#fff8e9;border-left:3px solid #d6b26d;color:#80602d}.queue-check-space{width:24px;flex-shrink:0}#selectMaterialProposals{max-width:240px;white-space:normal}#selectMaterialProposals[aria-pressed="true"]{background:#edf3ed;border-color:#a9c2a7}#applyMaterialBatch{font-size:12px}

.review-toolbar #applyMaterialBatch{max-width:260px;min-height:38px}
.review-toolbar>label{flex:1 1 190px;min-width:160px}.review-toolbar>button{flex:1 1 220px}.review-toolbar #selectMaterialProposals,.review-toolbar #applyMaterialBatch{max-width:none}@media(max-width:450px){.review-toolbar>label,.review-toolbar>button{flex-basis:100%;min-width:0}}

#packageGroups{margin:20px 0;padding:22px;border:1px solid #c6d8d0;border-radius:16px;background:#f7fbf9}#packageGroups h2{font-size:1.25rem;margin:0 0 8px}.package-group{margin:12px 0;background:white;border:1px solid #dae2dd;border-radius:10px;padding:14px}.package-group summary{cursor:pointer;font-weight:650}.package-group summary span{float:right;font-weight:400}.package-common,.package-inputs{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}.package-common label,.package-inputs label{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.package-row{padding:14px 0;border-top:1px solid #e2e8e4}.package-row>label{font-weight:600}.package-row small{display:block;color:#586b61}.package-row p{margin:8px 0}.package-row input[type=checkbox]{width:auto;margin-right:8px}.package-batch-footer{padding-top:14px}.package-batch-footer>button{margin:10px}.package-preview-table{overflow:auto}.package-preview-table table{width:100%;border-collapse:collapse}.package-preview-table td,.package-preview-table th{padding:9px;text-align:left;border-bottom:1px solid #ddd;max-width:280px;overflow-wrap:anywhere}#packageBatchPreview label{display:block;margin:14px 0}#packageBatchPreview input[type=checkbox]{width:auto}
.conversation{display:none!important}#resolutionFlowNav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}#resolutionFlowNav button[aria-current=step]{background:#315e50;color:white}#resolutionPreparation{padding:16px 0}#resolutionPreparation h2{font-size:1.3rem;margin-top:0}#resolutionPreparation button{margin:6px 8px 6px 0}.resolution-origin{font-weight:600;color:#315e50!important}#resolutionLineWorkspace[hidden],#packageGroups[hidden],#resolutionPreparation[hidden]{display:none!important}

#resolutionGlobalStatus:not([hidden]){padding:16px;margin-bottom:16px;border-radius:10px;background:#eef4ed;color:#244b40;}

.history-dialog{width:calc(100% - 32px);max-width:720px;max-height:85vh;padding:24px}.history-dialog>p,.history-dialog>label{font-size:13px;color:var(--muted)}.history-dialog>label{display:block;margin:18px 0 8px}.history-dialog>input{width:100%;max-width:none}.history-list{display:flex;flex-direction:column;gap:10px;max-height:50vh;overflow:auto;padding:2px}.saved-invoice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;text-align:left;padding:16px;background:#f8faf7;border:1px solid var(--line);border-radius:10px}.saved-invoice strong{font-size:14px;overflow-wrap:anywhere}.saved-invoice span{font-size:12px;color:var(--green)}.saved-invoice:hover,.saved-invoice:focus-visible{background:#edf3ed;border-color:var(--green)}.history-empty{padding:24px 8px;text-align:center;color:var(--muted)}

.sap-readonly>#workflowNav,.sap-readonly>.assistant-message,.sap-readonly>.workflow-step,.sap-readonly>.conversation{display:none!important}.sap-readonly .invoice-head .eyebrow{display:none}.sent-invoice-summary{padding:24px;background:white;border:1px solid var(--line);border-radius:14px}.sent-invoice-summary h2{color:var(--green);font-size:21px}.sent-invoice-summary p{line-height:1.6}.sent-lines{overflow:auto}.sent-lines table{width:100%;border-collapse:collapse;font-size:12px}.sent-lines th,.sent-lines td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.sent-lines th{background:#f0f3ed}
