/* EBI Intern – kompakte, frei nutzbare AG-Tabellenkalkulation */
.ebiw-sheet-open{overflow:hidden}
.ebiw-sheet-modal[hidden]{display:none!important}
/* Safety net: this dialog must not be invisible due to the global .ebiw-modal
   animation when shown by the independent spreadsheet controller. */
.ebiw-sheet-modal:not([hidden]){opacity:1;pointer-events:auto}
.ebiw-sheet-modal{position:fixed!important;inset:0;z-index:999999!important;display:flex;align-items:center;justify-content:center;padding:2vh 2vw;background:rgba(16,31,25,.70)}
.ebiw-sheet-modal .ebiw-sheet-card{box-sizing:border-box;width:min(1450px,96vw);height:min(92vh,1000px);max-height:92vh;max-width:none;min-width:0;padding:0!important;margin:0;background:#fff;color:#21362e;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 16px 65px rgba(0,0,0,.24)}
.ebiw-sheet-top{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e3e9e5;padding:16px 20px}
.ebiw-sheet-top h3{margin:3px 0 0;font-size:20px;line-height:1.2}
.ebiw-sheet-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.ebiw-sheet-status{font-size:12px;color:#536f60;min-width:85px;text-align:right}
.ebiw-sheet-top button,.ebiw-sheet-toolbar button{cursor:pointer;white-space:nowrap}
.ebiw-sheet-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:10px 15px;border-bottom:1px solid #e2e8e3;background:#f8fbf8}
.ebiw-sheet-toolbar .ebiw-sheet-label{font-size:12px;font-weight:700;display:flex;gap:8px;white-space:nowrap}
.ebiw-sheet-toolbar .ebiw-sheet-formula{flex:1;min-width:150px;border:1px solid #b8cbc0;border-radius:6px;background:white;height:36px;padding:6px 10px;font-size:14px;color:#183129}
.ebiw-sheet-help{font-size:11px;color:#668174;width:100%;line-height:1.35}
.ebiw-sheet-scroll{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;background:#fff}
.ebiw-sheet-grid{border-spacing:0;border-collapse:separate;table-layout:fixed;width:max-content;min-width:100%;font-family:system-ui,-apple-system,sans-serif;font-size:13px;font-variant-numeric:tabular-nums}
.ebiw-sheet-grid th,.ebiw-sheet-grid td{box-sizing:border-box;margin:0;border:0;border-right:1px solid #dae4dc;border-bottom:1px solid #dae4dc;height:32px;min-width:112px;width:112px;padding:0;position:relative;vertical-align:middle}
.ebiw-sheet-grid th{position:sticky;top:0;z-index:2;background:#eef4ef;color:#4c6758;font-weight:650;text-align:center;min-width:44px;width:44px}
.ebiw-sheet-grid tr>th:first-child{position:sticky;left:0;z-index:3;min-width:44px;width:44px}
.ebiw-sheet-grid th.ebiw-sheet-corner{z-index:4}
.ebiw-sheet-grid .ebiw-sheet-input{border:0;border-radius:0;background:transparent;box-shadow:none;color:#1b3027;width:100%;height:31px;box-sizing:border-box;padding:5px 8px;font:inherit;outline:none;text-overflow:ellipsis}
.ebiw-sheet-grid .ebiw-sheet-input.is-number{text-align:right}
.ebiw-sheet-grid .ebiw-sheet-input.has-error{color:#ae3e36}
.ebiw-sheet-grid td.is-selected{outline:2px solid #277d4d;outline-offset:-2px;z-index:1;background:#f2fcf5}
.ebiw-sheet-grid td.is-fill-target{background:#d9f1df}
.ebiw-sheet-grid td:focus-within{outline:2px solid #277d4d;outline-offset:-2px;z-index:1}
.ebiw-sheet-fill{position:absolute;width:11px;height:11px;background:#237b4e;border:2px solid #fff;box-sizing:border-box;right:-5px;bottom:-5px;z-index:4;cursor:crosshair;touch-action:none;border-radius:1px}
.ebiw-sheet-filling{user-select:none}
.ebiw-old-tables{margin-top:13px;padding:9px 0;border-top:1px solid #e6e9e5}
.ebiw-old-tables summary{cursor:pointer;color:#66776a;font-size:12px;font-weight:600;padding:5px 1px}
.ebiw-old-tables .ebiw-group-doc-row{opacity:.8}
@media(max-width:700px){.ebiw-sheet-modal{padding:0}.ebiw-sheet-modal .ebiw-sheet-card{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.ebiw-sheet-top{padding:12px}.ebiw-sheet-top h3{font-size:16px}.ebiw-sheet-actions{gap:5px}.ebiw-sheet-status{font-size:11px}.ebiw-sheet-toolbar{padding:8px;gap:6px}.ebiw-sheet-help{display:none}.ebiw-sheet-grid th,.ebiw-sheet-grid td{width:105px;min-width:105px}}


/* 0.7.92 — large spreadsheet workspace.
   The global "body > .ebiw-modal > .ebiw-modal-card" rules use !important
   and otherwise force every modal to ~540px wide. Override ONLY this dialog. */
/* Keep the native hidden attribute authoritative despite the highly specific
   fullscreen override below. */
body > #ebiw-sheet-modal[hidden] {display:none !important;}
body > #ebiw-sheet-modal {
  display:flex !important;
  align-items:stretch !important;
  justify-content:center !important;
  padding:clamp(8px,1.2vw,16px) !important;
  overflow:hidden !important;
}
body > #ebiw-sheet-modal > .ebiw-modal-card.ebiw-sheet-card {
  box-sizing:border-box !important;
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:14px !important;
  scrollbar-gutter:auto !important;
  display:flex !important;
  flex-direction:column !important;
}
body > #ebiw-sheet-modal .ebiw-sheet-top {
  flex:0 0 auto;
  min-width:0;
  padding:12px 20px;
}
body > #ebiw-sheet-modal .ebiw-sheet-top > div:first-child {min-width:0;}
body > #ebiw-sheet-modal .ebiw-sheet-top h3 {
  margin:2px 0 0 !important;
  font-size:clamp(18px,1.8vw,25px) !important;
  line-height:1.2 !important;
  max-width:65vw;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body > #ebiw-sheet-modal .ebiw-sheet-toolbar {
  flex:0 0 auto;
  padding:8px 18px;
}
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-label {
  display:flex !important;
  margin:0 !important;
}
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-formula {
  min-height:34px !important;
  height:34px;
}
body > #ebiw-sheet-modal .ebiw-sheet-scroll {
  display:block;
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  overflow:auto !important;
  overscroll-behavior:contain;
}
@media(max-width:700px) {
  body > #ebiw-sheet-modal {
    align-items:stretch !important;
    justify-content:stretch !important;
    padding:0 !important;
  }
  body > #ebiw-sheet-modal > .ebiw-modal-card.ebiw-sheet-card {
    width:100vw !important;
    max-width:none !important;
    height:100dvh !important;
    max-height:none !important;
    border:0 !important;
    border-radius:0 !important;
  }
  body > #ebiw-sheet-modal .ebiw-sheet-top {padding:10px 12px;}
  body > #ebiw-sheet-modal .ebiw-sheet-top h3 {font-size:17px !important;max-width:45vw;}
  body > #ebiw-sheet-modal .ebiw-sheet-actions {gap:5px;}
  body > #ebiw-sheet-modal .ebiw-sheet-toolbar {padding:8px;}
}

/* v0.7.93 – resizable grid and compact spreadsheet tools */
body > #ebiw-sheet-modal .ebiw-sheet-toolbar { gap:7px; }
body > #ebiw-sheet-modal .ebiw-sheet-toolbar button { font-size:12px; padding:7px 11px; }
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-formula { min-width:220px; }
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-format {
  height:34px; width:auto; min-width:112px; border:1px solid #bccdbf; background:#fff;
  color:#1c3427; border-radius:7px; padding:5px 9px; font-size:12px;
}
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-undo:disabled,
body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-redo:disabled {opacity:.40; cursor:not-allowed;}
body > #ebiw-sheet-modal .ebiw-sheet-grid {table-layout:fixed;max-width:none;min-width:0;}
body > #ebiw-sheet-modal .ebiw-sheet-grid th,
body > #ebiw-sheet-modal .ebiw-sheet-grid td {min-width:0; width:auto;}
body > #ebiw-sheet-modal .ebiw-sheet-grid tr > th:first-child {min-width:46px;width:46px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-colhead {position:sticky;top:0;z-index:3;user-select:none;}
body > #ebiw-sheet-modal .ebiw-sheet-colresize {
  position:absolute; top:0; bottom:0; right:-5px; width:12px; z-index:5;
  cursor:col-resize; touch-action:none; user-select:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-colresize::after {
  content:""; position:absolute;left:5px;top:5px;bottom:5px;width:2px;background:transparent;
}
body > #ebiw-sheet-modal .ebiw-sheet-colresize:hover::after,
body.ebiw-sheet-resizing > #ebiw-sheet-modal .ebiw-sheet-colresize::after { background:#248753; }
body.ebiw-sheet-resizing {cursor:col-resize !important;user-select:none!important;}
body > #ebiw-sheet-modal .ebiw-sheet-notice {
  flex:0 0 auto; display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  background:#fff6df; border-block:1px solid #e2bd6b; padding:10px 18px;
  color:#563a10; font-size:13px;
}
body > #ebiw-sheet-modal .ebiw-sheet-notice[hidden] { display:none!important; }
body > #ebiw-sheet-modal .ebiw-sheet-notice-text {flex:1 1 300px;}
body > #ebiw-sheet-modal .ebiw-sheet-notice button {font-size:12px;padding:5px 10px;}
@media(max-width:700px) {
  body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-format {min-width:100px;}
  body > #ebiw-sheet-modal .ebiw-sheet-toolbar .ebiw-sheet-formula {min-width:140px;}
}

/* 0.7.94 — cell palette and spreadsheet-like sorting */
body > #ebiw-sheet-modal .ebiw-sheet-palette {display:flex;gap:4px;align-items:center;flex-wrap:nowrap;}
body > #ebiw-sheet-modal .ebiw-sheet-palette-label {font-size:12px;font-weight:650;margin-right:2px;white-space:nowrap;color:#335b43;}
body > #ebiw-sheet-modal button.ebiw-sheet-swatch {width:23px;height:23px;min-width:23px;padding:0 !important;border:1px solid #aabdb2;border-radius:5px;background:var(--swatch,#fff);font-size:16px;display:flex;align-items:center;justify-content:center;color:#34473a;cursor:pointer;}
body > #ebiw-sheet-modal button.ebiw-sheet-swatch.is-active {outline:2px solid #28794e;outline-offset:2px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-range-selected {box-shadow:inset 0 0 0 2px #328d5a;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-selected {box-shadow:inset 0 0 0 2px #28794e;}
body > #ebiw-sheet-modal .ebiw-sheet-colhead .ebiw-sheet-colname {display:inline-block;padding-left:15px;}
body > #ebiw-sheet-modal .ebiw-sheet-colhead .ebiw-sheet-colsort {position:absolute;left:2px;top:3px;padding:0 !important;min-width:18px;width:18px;height:24px;background:transparent;border:0;border-radius:4px;color:#547765;cursor:pointer;line-height:1;z-index:4;}
body > #ebiw-sheet-modal .ebiw-sheet-colhead .ebiw-sheet-colsort:hover,body > #ebiw-sheet-modal .ebiw-sheet-colhead .ebiw-sheet-colsort:focus-visible {background:#cce7d7;color:#16512f;outline:1px solid #328d5a;}
body > #ebiw-sheet-modal .ebiw-sheet-sortmenu[hidden] {display:none!important;}
body > #ebiw-sheet-modal .ebiw-sheet-sortmenu {position:fixed;min-width:235px;max-width:min(320px,calc(100vw - 16px));background:#fff;border:1px solid #ccdad1;border-radius:12px;padding:7px;box-shadow:0 16px 30px #18362833;z-index:30;font-size:13px;color:#183d2a;}
body > #ebiw-sheet-modal .ebiw-sheet-sorttitle {font-size:12px;font-weight:700;border-bottom:1px solid #e0e8e2;padding:7px 9px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:275px;}
body > #ebiw-sheet-modal .ebiw-sheet-sortmenu button {display:block;text-align:left;width:100%;background:white;border:0;color:#20392b;cursor:pointer;font:inherit;border-radius:7px;padding:9px 7px;}
body > #ebiw-sheet-modal .ebiw-sheet-sortmenu button:hover {background:#eaf4ed;}
body > #ebiw-sheet-modal .ebiw-sheet-sorthint {font-size:11px;color:#68796e;padding:8px 9px 5px;max-width:250px;line-height:1.4;}
@media(max-width:700px){body > #ebiw-sheet-modal .ebiw-sheet-palette {flex-wrap:wrap;}body > #ebiw-sheet-modal .ebiw-sheet-palette-label {display:none;}}

/* 0.7.96 – selection-first sheet controls, row sizing and zoom */
body > #ebiw-sheet-modal .ebiw-sheet-scroll {outline:none;}
body > #ebiw-sheet-modal .ebiw-sheet-scroll:focus-visible {outline:none;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td {cursor:cell;}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-input {
  height:100%;min-height:0;cursor:cell;user-select:none;caret-color:transparent;
  padding:3px 7px;pointer-events:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-input.is-editing {
  cursor:text;user-select:text;caret-color:#173e2a;pointer-events:auto;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid tr {height:29px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid th {height:inherit;}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-rowhead {cursor:default;user-select:none;}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-colhead {cursor:default;}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-rowhead.is-heading-selected,
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-colhead.is-heading-selected,
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-corner.is-heading-selected {
  background:#d3ecd9;color:#1b633d;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-range-selected {
  outline:1px solid #3c935f;outline-offset:-1px;
  background-color:#e2f3e8;
  box-shadow:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-selected {
  outline:2px solid #23794a;outline-offset:-2px;
  background-color:#f0fbf3;
  box-shadow:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-rowresize {
  position:absolute;bottom:-5px;left:0;right:0;height:10px;cursor:row-resize;
  z-index:5;touch-action:none;user-select:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-rowresize:after {
  content:"";position:absolute;bottom:5px;left:4px;right:4px;height:2px;background:transparent;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-rowresize:hover:after,
body.ebiw-sheet-row-resizing > #ebiw-sheet-modal .ebiw-sheet-rowresize:after {background:#248753;}
body.ebiw-sheet-row-resizing {cursor:row-resize!important;user-select:none!important;}
body > #ebiw-sheet-modal .ebiw-sheet-zoom {
  height:34px;min-width:80px;padding:5px 8px;border:1px solid #bccdbf;
  border-radius:7px;font-size:12px;background:#fff;color:#1c3427;
}
body > #ebiw-sheet-modal .ebiw-sheet-cell-address {font-variant-numeric:tabular-nums;white-space:nowrap;}
@media(max-width:700px){body > #ebiw-sheet-modal .ebiw-sheet-zoom{min-width:72px}}
body > #ebiw-sheet-modal .ebiw-sheet-grid td {height:inherit;}
body > #ebiw-sheet-modal .ebiw-sheet-grid tr>th.ebiw-sheet-rowhead {position:sticky;left:0;top:auto;z-index:3;}

/* 0.7.98 — compact Google-Sheets-like grid at 100% zoom. Manually sized rows
   continue to use their inline rowHeights values. */
body > #ebiw-sheet-modal .ebiw-sheet-grid {
  font-family:Arial,Helvetica,sans-serif;
  font-size:13px;
  line-height:1.25;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid tr {height:24px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid th,
body > #ebiw-sheet-modal .ebiw-sheet-grid td {
  height:24px;
  border-right-color:#e1e5e1;
  border-bottom-color:#e1e5e1;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid th {
  background:#f6f8f6;color:#566c5c;font-size:12px;font-weight:500;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid .ebiw-sheet-input {
  height:100%;min-height:0;
  padding:1px 6px;
  line-height:20px;
}
/* EBI generic form dialogs give every input a 36px !important minimum.
   Override that global rule only for spreadsheet cells. */
body > #ebiw-sheet-modal .ebiw-sheet-grid input.ebiw-sheet-input {
  box-sizing:border-box !important;
  display:block;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:1px 6px !important;
  border:0 !important;
  border-radius:0 !important;
  font-size:13px !important;
  line-height:20px !important;
}
body > #ebiw-sheet-modal select.ebiw-sheet-zoom {
  flex:0 0 auto;
  width:auto !important;
  min-width:82px !important;
  min-height:32px !important;
  padding:4px 7px !important;
  border-radius:6px !important;
}

/* v0.7.100 – bold/font colour + mouse-picked formula references */
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-bold .ebiw-sheet-input {font-weight:700 !important;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-input:not(.has-error) {color:var(--cell-text-color,#1b3027) !important;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-formula-pick {
  background-color:#d5e5ff !important;
  outline:2px solid #3479c6 !important;
  outline-offset:-2px;
  z-index:2;
}
body > #ebiw-sheet-modal button.ebiw-sheet-bold {font-size:16px !important;min-width:36px;padding:6px 10px !important;}
body > #ebiw-sheet-modal button.ebiw-sheet-bold.is-active {
  background:#dbecdf !important;border-color:#398554 !important;color:#13582f !important;
}
body > #ebiw-sheet-modal .ebiw-sheet-textcolor-label {
  display:flex;align-items:center;gap:6px;font-size:12px;font-weight:650;color:#335b43;white-space:nowrap;
}
body > #ebiw-sheet-modal .ebiw-sheet-text-color {
  box-sizing:border-box;width:35px !important;min-width:35px !important;height:30px !important;
  min-height:30px !important;max-width:35px;padding:2px !important;border:1px solid #b2c6b9;
  border-radius:5px;background:#fff;cursor:pointer;
}
body > #ebiw-sheet-modal button.ebiw-sheet-text-reset {
  width:27px;min-width:27px;height:28px;padding:0 !important;background:transparent;
  border:1px solid #bac9be;border-radius:6px;font-size:16px;color:#476251;
}
@media(max-width:700px){body > #ebiw-sheet-modal .ebiw-sheet-textcolor-label span{display:none}}

/* v0.7.101 – alignment and compact structural commands */
body > #ebiw-sheet-modal .ebiw-sheet-align {display:flex;gap:3px;align-items:center;border-left:1px solid #d3ded5;padding-left:7px}
body > #ebiw-sheet-modal .ebiw-sheet-align .ebiw-sheet-align-btn {width:32px;min-width:32px;padding:5px !important;font-size:16px;line-height:18px;text-align:center}
body > #ebiw-sheet-modal .ebiw-sheet-align-btn.is-active {background:#dbeedf !important;color:#1d5734 !important;border-color:#448d5e !important}
body > #ebiw-sheet-modal .ebiw-sheet-delrow,body > #ebiw-sheet-modal .ebiw-sheet-delcol {color:#8b3030;border-color:#e2c4c4}
body > #ebiw-sheet-modal .ebiw-sheet-pdf {font-weight:700}

/* v0.7.114 – Einfügen an Auswahl, Zellverschiebung, Serien mit mehreren Zellen */
body > #ebiw-sheet-modal select.ebiw-sheet-insert {
  width:auto!important;min-width:138px!important;min-height:32px!important;
  border:1px solid #c5d2ca!important;border-radius:7px!important;
  background:#fff!important;color:#244334!important;padding:4px 8px!important;
  font:500 12px system-ui,sans-serif!important;cursor:pointer;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-move-target {
  outline:2px dashed #197348!important;outline-offset:-3px!important;
  background:#e5f4e9!important;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border {
  position:absolute;z-index:3;pointer-events:auto;cursor:grab!important;touch-action:none;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--top,
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--bottom {
  left:6px;right:12px;height:5px;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--top {top:-1px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--bottom {bottom:-1px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--left,
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--right {
  top:5px;bottom:10px;width:5px;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--left {left:-1px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border--right {right:-1px;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td .ebiw-sheet-move-border:hover {background:rgba(27,124,76,.36);}
body.ebiw-sheet-moving,body.ebiw-sheet-moving * {cursor:grabbing!important;user-select:none!important;}
body > #ebiw-sheet-modal .ebiw-sheet-grid td.is-fill-target {background:#d9f0e1!important;}

/* 0.7.121 - Public link renders a dedicated application, not a dimmed overlay. */
body > #ebiw-sheet-modal.ebiw-public-sheet-mode {background:#fff !important;padding:0 !important;}
body > #ebiw-sheet-modal.ebiw-public-sheet-mode > .ebiw-sheet-card {border-radius:0 !important;box-shadow:none !important;}
body > #ebiw-sheet-modal.ebiw-public-sheet-mode .ebiw-sheet-close,
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-save {display:none !important;}
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-grid {pointer-events:none !important;}
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-toolbar button:not(.ebiw-sheet-export):not(.ebiw-sheet-pdf):not(.ebiw-sheet-backup):not(.ebiw-sheet-copy),
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-toolbar input:not(.ebiw-sheet-formula),
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-toolbar select:not(.ebiw-sheet-zoom) {pointer-events:none!important;opacity:.45;}
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-formula {pointer-events:none;}


/* 0.7.124 — multi-line cells, text wrapping, and height following contents. */
body > #ebiw-sheet-modal .ebiw-sheet-grid td {
  vertical-align:top;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid textarea.ebiw-sheet-input {
  box-sizing:border-box !important;
  display:block !important;
  width:100% !important;
  height:24px;
  min-height:0 !important;
  max-height:none !important;
  padding:2px 6px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  resize:none !important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
  font:inherit !important;
  font-size:13px !important;
  line-height:20px !important;
  text-overflow:clip;
  overflow-x:hidden;
  overflow-y:hidden;
  cursor:cell;
  pointer-events:auto;
  scrollbar-width:thin;
}
body > #ebiw-sheet-modal .ebiw-sheet-grid textarea.ebiw-sheet-input.is-editing {
  cursor:text;
  user-select:text;
  pointer-events:auto;
  background:#fff !important;
}
body > #ebiw-sheet-modal .ebiw-sheet-toolbar textarea.ebiw-sheet-formula {
  box-sizing:border-box !important;
  display:block !important;
  flex:1 1 240px;
  width:auto !important;
  min-width:150px;
  height:38px;
  min-height:38px !important;
  max-height:160px;
  padding:8px 10px !important;
  margin:0;
  border:1px solid #b8cbc0 !important;
  border-radius:6px !important;
  background:#fff !important;
  resize:vertical;
  line-height:20px;
  font:14px/20px system-ui,sans-serif;
  white-space:pre-wrap;
}
@media(max-width:700px){body > #ebiw-sheet-modal .ebiw-sheet-toolbar textarea.ebiw-sheet-formula{min-width:140px}}

/* Read-only public tables should still allow scrolling inside tall text cells. */
body > #ebiw-sheet-modal.ebiw-public-sheet-readonly .ebiw-sheet-grid textarea.ebiw-sheet-input {
  pointer-events:auto !important;
  cursor:default;
}

/* v0.7.129 — workbook tabs: quiet EBI-Intern-style black/white controls. */
body > #ebiw-sheet-modal .ebiw-sheet-tabs {
  display:flex;align-items:center;gap:7px;flex:0 0 auto;min-height:48px;
  padding:6px 15px;border-top:1px solid #dedede;background:#fafafa;
  color:#111;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;
}
body > #ebiw-sheet-modal .ebiw-sheet-tab-list {display:flex;align-items:center;gap:4px;min-width:0;}
body > #ebiw-sheet-modal .ebiw-sheet-tab,
body > #ebiw-sheet-modal .ebiw-sheet-tab-add,
body > #ebiw-sheet-modal .ebiw-sheet-tab-rename,
body > #ebiw-sheet-modal .ebiw-sheet-tab-duplicate,
body > #ebiw-sheet-modal .ebiw-sheet-tab-delete {
  flex:0 0 auto;border:1px solid #d6d6d6;border-radius:8px;background:#fff;color:#181818;
  font-size:12px;font-weight:600;line-height:1.3;font-family:inherit;padding:8px 12px;cursor:pointer;white-space:nowrap;
}
body > #ebiw-sheet-modal .ebiw-sheet-tab.is-active {background:#111;color:#fff;border-color:#111;}
body > #ebiw-sheet-modal .ebiw-sheet-tab:focus-visible,
body > #ebiw-sheet-modal .ebiw-sheet-tab-add:focus-visible {outline:2px solid #111;outline-offset:2px;}
body > #ebiw-sheet-modal .ebiw-sheet-tab:hover:not(.is-active),
body > #ebiw-sheet-modal .ebiw-sheet-tab-add:hover {background:#efefef;}
body > #ebiw-sheet-modal .ebiw-sheet-tabs-spacer {flex:1 0 12px;}
body > #ebiw-sheet-modal .ebiw-sheet-tab-rename,
body > #ebiw-sheet-modal .ebiw-sheet-tab-duplicate,
body > #ebiw-sheet-modal .ebiw-sheet-tab-delete {font-size:11px;padding:7px 9px;}
body > #ebiw-sheet-modal .ebiw-sheet-tabs button:disabled {opacity:.35;cursor:not-allowed;}
@media(max-width:700px){body > #ebiw-sheet-modal .ebiw-sheet-tabs{padding:6px 9px;gap:5px;min-height:46px;}}
