/* 横に隠れた列・タブの合図（static/js/scroll_affordance.js）。
 * 2026-11-10：画面の下に浮く帯とスライダーはやめ、続きがある側の端の影と、細いスクロールバーだけにした。 */
.portal-hscroll-layer [hidden]{display:none!important}
/* 端の影：続きがある側にだけ出る。押せない（下の表の操作をじゃましない） */
.portal-hscroll-shade{position:fixed;width:26px;pointer-events:none}
.portal-hscroll-shade[data-side="right"]{background:linear-gradient(to left,rgba(15,23,42,.16),rgba(15,23,42,.05) 45%,transparent)}
.portal-hscroll-shade[data-side="left"]{background:linear-gradient(to right,rgba(15,23,42,.16),rgba(15,23,42,.05) 45%,transparent)}
[data-theme="dark"] .portal-hscroll-shade[data-side="right"]{background:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,.18) 45%,transparent)}
[data-theme="dark"] .portal-hscroll-shade[data-side="left"]{background:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,.18) 45%,transparent)}
/* 細いスクロールバー：表の下端が画面の外にあるあいだだけ、画面の下に出す。
 * ⚠ バーは自前で描く（Mac の「スクロール中だけ表示」の設定でも消えないように） */
.portal-hscroll-bar{position:fixed;height:14px;overflow-x:auto;overflow-y:hidden;background:color-mix(in srgb,var(--app-card,#fff) 92%,transparent);border-top:1px solid var(--app-border,#e3e7ee)}
.portal-hscroll-bar>div{height:1px}
.portal-hscroll-bar::-webkit-scrollbar{height:12px}
.portal-hscroll-bar::-webkit-scrollbar-track{background:transparent}
.portal-hscroll-bar::-webkit-scrollbar-thumb{background:#b9c0cb;border-radius:6px;border:2px solid transparent;background-clip:padding-box}
.portal-hscroll-bar::-webkit-scrollbar-thumb:hover{background:#8d96a5;border:2px solid transparent;background-clip:padding-box}
[data-portal-hscroll]:focus-visible{outline:2px solid var(--app-accent,#168343);outline-offset:2px}
/* 元は枠の無い業務表：狭いときだけ横に動かせるようにする */
.portal-table-scroll{min-width:0;max-width:100%;width:100%;overflow:visible}.portal-table-scroll-wide{overflow-x:auto}
/* 1列目を固定したい表は、表に data-sticky-first を付ける（自動では固定しない。結合したセル・地の色の無い表で字が重なるため） */
table[data-sticky-first] :is(th,td):first-child{position:sticky;left:0;z-index:2;background:var(--app-card,var(--card-bg,#fff))}
table[data-sticky-first] thead :is(th,td):first-child{z-index:13}
@media print{.portal-hscroll-layer{display:none!important}.portal-table-scroll-wide{overflow:visible!important}}
