.tf71414-material-groups{display:grid;gap:12px;margin-top:16px}
.tf71414-material-intro{display:grid;gap:3px;padding:2px 2px 8px}
.tf71414-material-job{overflow:hidden;border:1px solid #cfddd5;border-radius:13px;background:#fff}
.tf71414-material-job>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}
.tf71414-material-job>summary::-webkit-details-marker{display:none}
.tf71414-material-job>summary:hover{background:#f5faf7}
.tf71414-material-job[open]>summary{background:#e2f2e9;border-bottom:1px solid #b9d5c6}
.tf71414-job-copy{display:grid;gap:3px;min-width:0}
.tf71414-job-copy strong{color:#173e31;font-size:1.08rem}
.tf71414-job-copy>span{color:#3e4d46}
.tf71414-job-copy small,.tf71414-material-posting small{color:#637068}
.tf71414-job-total,.tf71414-posting-total{white-space:nowrap;color:#173e31}
.tf71414-job-total{display:grid;justify-items:end;gap:2px}
.tf71414-job-total small{color:#637068;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em}
.tf71414-material-head-actions{display:flex;align-items:end;justify-content:flex-end;gap:8px;margin-left:auto}
.tf71414-material-search{display:grid;gap:4px;min-width:min(330px,42vw)}
.tf71414-material-search span{font-size:.78rem;font-weight:800;color:#526159}
.tf71414-material-search input{width:100%;min-height:40px;padding:8px 11px;border:1px solid #cbd8d1;border-radius:9px;background:#fff}
.tf71414-chevron{font-size:1.3rem;transition:transform .16s ease}
.tf71414-material-job[open] .tf71414-chevron{transform:rotate(180deg)}
.tf71414-posting-list{display:grid;gap:9px;padding:12px 14px 14px;border-top:1px solid #e0e9e3;background:#f7faf8}
.tf71414-material-posting{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;width:100%;padding:13px 14px;border:1px solid #d7e3dc;border-radius:10px;background:#fff;color:#173e31;text-align:left;cursor:pointer;font:inherit}
.tf71414-material-posting:hover,.tf71414-material-posting:focus-visible{border-color:#257154;background:#eff8f2;outline:2px solid #257154;outline-offset:1px}
.tf71414-posting-copy{display:grid;gap:4px;min-width:0}
.tf71414-debit-text{color:#166534;font-weight:700}
.tf71414-credit-text{color:#9f1239;font-weight:700}
.tf71414-material-posting .btn{pointer-events:none;white-space:nowrap}
.tf71414-original-materials{overflow:hidden;margin-top:14px;border:1px solid #d8e2dc;border-radius:11px;background:#fff}
.tf71414-original-materials>summary{display:grid;gap:3px;padding:13px 15px;cursor:pointer}
.tf71414-original-materials>.tablewrap{margin:0;border-top:1px solid #e0e9e3}
.tf71414-preview-back,.tf71414-action-back{position:fixed;inset:0;z-index:100250;display:grid;place-items:center;overflow:auto;padding:18px;background:rgba(15,23,42,.68)}
.tf71414-action-back{z-index:100270}
.tf71414-preview{width:min(1040px,100%);max-height:94vh;overflow:auto;padding:20px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.tf71414-preview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}
.tf71414-preview h2,.tf71414-preview p{margin:0}
.tf71414-preview header p{margin-top:4px}
.tf71414-job-reference{display:inline-flex;margin-bottom:7px;padding:4px 8px;border-radius:999px;background:#e6f3ec;color:#135c43;font-size:.82rem;font-weight:800}
.tf71414-posting-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.tf71414-posting-overview>span{display:grid;gap:3px;padding:10px 12px;border-radius:10px;background:#f3f7f5}
.tf71414-posting-overview small,.tf71414-line-values small{color:#68756e}
.tf71414-material-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tf71414-material-line{display:flex;min-width:0;flex-direction:column;gap:11px;padding:14px;border:1px solid #d9e3dd;border-radius:12px;background:#fff}
.tf71414-line-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tf71414-line-head h3{margin:7px 0 0;font-size:1rem;overflow-wrap:anywhere}
.tf71414-line-total{white-space:nowrap;font-size:1.05rem}
.tf71414-kind{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.tf71414-kind-debit{background:#dcfce7;color:#166534}
.tf71414-kind-credit{background:#ffe4e6;color:#9f1239}
.tf71414-line-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.tf71414-line-values>span{display:grid;gap:2px;min-width:0;padding:8px;border-radius:8px;background:#f7f9f8}
.tf71414-line-values b{overflow-wrap:anywhere;font-size:.88rem}
.tf71414-material-line>p{font-size:.88rem;overflow-wrap:anywhere}
.tf71414-line-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:3px}
.tf71414-preview-actions{position:sticky;bottom:-20px;display:grid;grid-template-columns:auto 1fr auto auto;gap:9px;margin:18px -20px -20px;padding:13px 20px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #dce5e0;background:#fff}
.tf71414-action-dialog{width:min(520px,100%);padding:22px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.tf71414-action-dialog h3{margin:0 0 8px}
.tf71414-action-dialog p{margin:0 0 16px}
.tf71414-action-dialog label{display:block;margin-bottom:6px;font-weight:800}
.tf71414-action-dialog textarea{width:100%;padding:10px;border:1px solid #cfd9d4;border-radius:9px}
.tf71414-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.tf71414-draft-list{display:grid;gap:8px;max-height:45vh;overflow:auto;margin-top:14px}
.tf71414-draft-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:1px solid #d7e3dc;border-radius:10px;background:#fff;color:#173e31;text-align:left;cursor:pointer}
.tf71414-draft-option:hover,.tf71414-draft-option:focus-visible{border-color:#257154;background:#eff8f2;outline:2px solid #257154}
.tf71414-draft-option>span:first-child{display:grid;gap:3px}
.tf71414-draft-option small{color:#637068}
.tf71414-draft-option .btn{pointer-events:none}
.tf71414-toast.error{background:#8d2222}
@media(max-width:900px){
  .tf71414-material-lines{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .tf71414-material-head-actions{width:100%;align-items:end}
  .tf71414-material-search{min-width:0;flex:1}
  .tf71414-material-job>summary{grid-template-columns:minmax(0,1fr) auto;padding:14px}
  .tf71414-job-total{grid-column:1}
  .tf71414-chevron{grid-column:2;grid-row:1/3}
  .tf71414-material-posting{grid-template-columns:minmax(0,1fr) auto;align-items:start;padding:12px}
  .tf71414-material-posting .btn{grid-column:1/-1;width:100%;text-align:center}
  .tf71414-posting-list{padding:10px}
  .tf71414-preview-back{align-items:end;padding:0}
  .tf71414-preview{width:100%;max-height:96dvh;padding:17px 12px calc(17px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
  .tf71414-posting-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf71414-material-lines{grid-template-columns:1fr}
  .tf71414-preview-actions{bottom:calc(-17px - env(safe-area-inset-bottom));grid-template-columns:1fr 1fr;margin:16px -12px calc(-17px - env(safe-area-inset-bottom));padding:12px}
  .tf71414-preview-actions>span{display:none}
  .tf71414-preview-actions .btn{width:100%}
}
