/* EBI Intern – Rechnungen & Briefkopf / AG Vorstand */
.ebiw-doc-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.ebiw-doc-tabs button{border:1px solid #151515;border-radius:22px;background:#fff;color:#101010;font-weight:700;padding:10px 17px;cursor:pointer}
.ebiw-doc-tabs button.active{background:#111;color:#fff}
.ebiw-doc-view[hidden],.ebiw-doc-vat-note[hidden]{display:none!important}
.ebiw-doc-two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.85fr);align-items:start;gap:16px}
.ebiw-doc-edit,.ebiw-doc-archive,.ebiw-doc-settings{padding:22px!important;min-width:0}
.ebiw-doc-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.ebiw-doc-card-head h3,.ebiw-doc-archive h3,.ebiw-doc-settings h3{font-size:20px;font-weight:850;margin:0 0 14px}
.ebiw-doc-card-head h3{margin:0}
.ebiw-doc-edit form,.ebiw-doc-settings form{display:flex;flex-direction:column;gap:13px}
.ebiw-doc-edit label,.ebiw-doc-settings label{display:flex;flex-direction:column;font-size:12px;font-weight:750;color:#272727;gap:6px;min-width:0}
.ebiw-doc-edit label>input,.ebiw-doc-edit label>textarea,.ebiw-doc-edit label>select,.ebiw-doc-settings label>input,.ebiw-doc-settings label>textarea{border:1px solid #ccc!important;border-radius:9px!important;padding:10px 11px!important;background:#fff!important;color:#111!important;box-sizing:border-box;width:100%;min-width:0;min-height:38px;font:inherit;font-size:14px;font-weight:450}
.ebiw-doc-edit textarea,.ebiw-doc-settings textarea{resize:vertical}
.ebiw-doc-edit h4{font-size:15px;font-weight:800;margin:10px 0 0}
.ebiw-doc-position{display:grid;grid-template-columns:minmax(100px,1fr) 76px 110px 90px 30px;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid #eee}
.ebiw-doc-position>label{font-size:11px;min-width:0}
.ebiw-doc-position input{width:100%;box-sizing:border-box}
.ebiw-doc-position-sum{font-size:12px;font-weight:800;text-align:right;padding-bottom:12px;white-space:nowrap}
.ebiw-doc-position-remove{background:#f2f2f2;border:0;width:27px;height:32px;border-radius:7px;cursor:pointer;font-size:20px;margin-bottom:3px}
.ebiw-doc-total{border-top:2px solid #111;padding-top:14px;display:flex;justify-content:space-between;gap:14px;font-size:15px;font-weight:800}
.ebiw-doc-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:8px}
.ebiw-doc-actions button{font-size:13px;line-height:1.2}
.ebiw-doc-hint{font-size:12px;color:#666;margin:5px 0 0;line-height:1.45}
.ebiw-doc-feedback{font-size:13px;color:#207743;min-height:0;font-weight:650}
.ebiw-doc-feedback:empty{display:none}
.ebiw-doc-feedback.is-error{color:#bb3f41}
.ebiw-doc-archive{max-height:74vh;overflow:auto}
.ebiw-doc-archive-item{padding:12px 0;border-bottom:1px solid #e5e5e5;display:flex;flex-direction:column;gap:8px}
.ebiw-doc-archive-item:last-child{border-bottom:0}
.ebiw-doc-archive-item>button{border:0;background:none;text-align:left;padding:0;cursor:pointer;display:flex;flex-direction:column;gap:3px;color:#111;font-size:13px}
.ebiw-doc-archive-item strong{font-size:14px;font-weight:800}
.ebiw-doc-archive-item small{color:#707070;font-size:11px}
.ebiw-doc-archive-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.ebiw-doc-archive-buttons button{font-size:11px;border:1px solid #ccc;background:#fff;color:#111;border-radius:15px;padding:5px 9px;cursor:pointer}
.ebiw-doc-archive-buttons button.is-paid{border-color:#69b66b;color:#176a27}
.ebiw-doc-status{background:#ececec;border-radius:14px;font-size:11px;padding:5px 8px;color:#666}
.ebiw-doc-status.is-issued{background:#e4f2e4;color:#246b2b}
.ebiw-doc-edit form.is-issued{opacity:.82}
.ebiw-doc-edit button:disabled{opacity:.5;cursor:not-allowed}
.ebiw-doc-letter-body{min-height:280px}
@media(max-width:980px){.ebiw-doc-two{grid-template-columns:1fr}.ebiw-doc-archive{max-height:none;overflow:visible}.ebiw-doc-edit,.ebiw-doc-archive,.ebiw-doc-settings{padding:16px!important}}
@media(max-width:560px){.ebiw-doc-position{grid-template-columns:minmax(0,1fr) 85px 26px;gap:8px}.ebiw-doc-position label:first-child{grid-column:1/-1}.ebiw-doc-position label:nth-child(2){grid-column:1;grid-row:2}.ebiw-doc-position label:nth-child(3){grid-column:2;grid-row:2}.ebiw-doc-position-sum{grid-column:1/3;grid-row:3;text-align:left;padding-bottom:0}.ebiw-doc-position-remove{grid-column:3;grid-row:2}.ebiw-doc-actions button{flex:1;white-space:normal}.ebiw-doc-tabs button{padding:9px 12px;font-size:12px}}

/* Ausgestellte Rechnungen: zweistufig stornieren, Original im Archiv behalten. */
.ebiw-doc-archive-buttons button.ebiw-doc-remove-trigger{border-color:#e2b7b7;color:#9a3838;background:#fff}
.ebiw-doc-cancelled-archive{border-top:1px solid #e5e5e5;margin-top:18px;padding-top:15px}
.ebiw-doc-cancelled-archive[hidden]{display:none!important}
.ebiw-doc-cancelled-archive summary{font-weight:800;font-size:14px;cursor:pointer;padding:3px 0 6px}
.ebiw-doc-status.is-cancelled{background:#f5eaea;color:#914040}
.ebiw-doc-archive-item.is-cancelled{opacity:.86}
.ebiw-doc-cancel-note{font-size:11px;line-height:1.45;color:#666;margin:0;white-space:normal;overflow-wrap:anywhere}
.ebiw-doc-cancel-note span{display:block;margin-top:3px}
.ebiw-doc-remove-confirm{padding:12px;border-radius:10px;background:#fbf0ed;border:1px solid #e6c8bf;font-size:12px;line-height:1.5}
.ebiw-doc-remove-confirm[hidden]{display:none!important}
.ebiw-doc-remove-confirm p{margin:0 0 8px}
.ebiw-doc-remove-confirm label{display:flex;flex-direction:column;gap:5px;font-weight:750}
.ebiw-doc-remove-confirm textarea{width:100%;min-height:65px;box-sizing:border-box;border:1px solid #c8aaa3;border-radius:6px;padding:8px;color:#111;background:#fff;font:inherit}
.ebiw-doc-confirm-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.ebiw-doc-confirm-buttons button{padding:8px 10px;border:1px solid #bbb;border-radius:8px;background:#fff;color:#151515;cursor:pointer;font-weight:700}
.ebiw-doc-confirm-buttons button.ebiw-doc-destructive{border-color:#963838;background:#963838;color:#fff}
.ebiw-doc-confirm-buttons button:disabled{opacity:.5;cursor:wait}

/* Angebote: derselbe kompakte Aufbau wie Rechnungen. */
.ebiw-doc-withdrawn-archive{border-top:1px solid #e5e5e5;margin-top:18px;padding-top:15px}
.ebiw-doc-withdrawn-archive[hidden]{display:none!important}
.ebiw-doc-withdrawn-archive summary{font-weight:800;font-size:14px;cursor:pointer;padding:3px 0 6px}
.ebiw-doc-archive-buttons .ebiw-doc-convert{background:#111;color:#fff;border-color:#111;font-weight:800}
.ebiw-doc-archive-item button{overflow-wrap:anywhere}
@media(max-width:560px){.ebiw-doc-archive-buttons button{min-height:32px}.ebiw-doc-two{gap:12px}}

/* Angebote können bis zum bewussten Versand bearbeitet werden. */
.ebiw-doc-actions [hidden]{display:none!important}
.ebiw-doc-actions .ebiw-doc-mark-sent{background:#111;color:#fff;border:1px solid #111;border-radius:24px;padding:10px 16px;font-weight:800;cursor:pointer}
.ebiw-doc-status.is-prepared{background:#fff2d5;color:#855b12}
@media(max-width:560px){.ebiw-doc-actions .ebiw-doc-mark-sent{width:100%;flex-basis:100%}}


/* v0.7.104 – Dokumente: passende Typografie zum Kalender und AG-Bereich. */
@media (min-width:761px) {
  .ebiw-workspace .ebiw-doc-tabs button {
    min-height:36px;padding:7px 12px;font-size:11px;font-weight:670;border-width:1px;
  }
  .ebiw-workspace .ebiw-doc-card-head h3,
  .ebiw-workspace .ebiw-doc-archive h3,
  .ebiw-workspace .ebiw-doc-settings h3 {font-size:18px;font-weight:710;letter-spacing:-.018em;}
  .ebiw-workspace .ebiw-doc-edit h4,
  .ebiw-workspace .ebiw-doc-archive-item strong {font-weight:700;}
  .ebiw-workspace .ebiw-doc-edit label,
  .ebiw-workspace .ebiw-doc-settings label {font-weight:640;}
  .ebiw-workspace .ebiw-doc-archive-buttons button,
  .ebiw-workspace .ebiw-doc-confirm-buttons button {font-weight:610;}
  .ebiw-workspace .ebiw-doc-actions button {font-size:11px;}
  .ebiw-workspace .ebiw-doc-actions .ebiw-doc-mark-sent {font-weight:690;padding:8px 12px;}
}
@media (max-width:760px) {
  .ebiw-workspace .ebiw-doc-tabs button,
  .ebiw-workspace .ebiw-doc-card-head h3 {font-weight:710;}
}
