/* Share Unit list cards, sorting, filters and trait tooltips. */
.enemy-list-page .unit-list-heading{height:50px;min-height:50px;box-sizing:border-box;padding-block:0;flex-wrap:nowrap}
.enemy-list-page .enemy-menu-panel{width:min(390px,calc(100vw - 40px));max-height:75vh;overflow-y:auto}
.enemy-list-page .sidebar{max-height:none;overflow:visible}
:root :is(.enemy-list-page,.stage-page) img.enemy-list-icon{width:90px;height:34.2px;max-width:none;zoom:1;object-fit:contain;vertical-align:middle}
.enemy-list-page .enemy-list-icon.is-missing{visibility:hidden}
.enemy-list-page .list-status-trait img.is-missing{visibility:hidden}
.enemy-list-page .unit-list-table{width:100%;min-width:max-content}
.enemy-list-page .unit-list-table td,.enemy-list-page .unit-list-table th{box-sizing:border-box}
.enemy-character-table td:not(.list-fill),.enemy-character-table th:not(.list-fill){width:1px}
:is(.enemy-list-page,.stage-page) .enemy-status-table .list-fill{min-width:20px}
.enemy-list-page .unit-list-table th,.enemy-list-page .unit-list-table td{padding-inline:6px}
.enemy-list-page .unit-list-table td.list-number{text-align:right}
.enemy-list-page .unit-list-table .enemy-list-attributes{width:auto;max-width:none;white-space:normal;font-size:11px;line-height:1.4;padding-top:0;padding-bottom:0}
.enemy-list-mag{width:6.5ch;max-width:100px;text-align:right;background:transparent;border:0;color:#e0e0e0;font:inherit;appearance:textfield;cursor:pointer;padding:0}
.enemy-list-mag::-webkit-inner-spin-button{appearance:none}
.enemy-list-mag:hover{text-decoration:underline;text-underline-offset:.15em}
.enemy-list-bulk label{display:flex;gap:8px;align-items:center;margin:8px 0}
.enemy-list-bulk input{width:100px;color:#e0e0e0;background:var(--cell);border:1px solid var(--line);border-radius:4px;padding:6px;font:inherit}
:is(.enemy-list-page,.stage-page) .list-trait-tooltip ul{list-style:none;padding:0;margin:0}
:is(.enemy-list-page,.stage-page) .list-trait-tooltip li{padding:0;margin:0;display:block;white-space:nowrap}
:is(.enemy-list-page,.stage-page) .list-trait-tooltip img{display:none}
:is(.enemy-list-page,.stage-page) .list-trait-tooltip .trait-proc-line{display:block}
:is(.enemy-list-page,.stage-page) .list-trait-tooltip .trait-text{white-space:nowrap}
:is(.enemy-list-page,.stage-page) .enemy-status-table .list-sort[data-status-sort="start"]{white-space:nowrap}
.enemy-list-page [hidden]{display:none!important}


.enemy-character-table tbody td{height:var(--attribute-row-height,var(--row-height,50px))}


/* Attribute names are shown by the shared tooltip in both list views. */
:is(.enemy-list-page,.stage-page) .enemy-list-attributes .enemy-attribute-name{display:none}
:is(.enemy-list-page,.stage-page) .enemy-list-attributes .enemy-attribute-icons{column-gap:3px;grid-template-columns:repeat(3,22px);grid-auto-rows:22px;row-gap:0}
:is(.enemy-list-page,.stage-page) .enemy-list-attributes .enemy-attribute{gap:0;cursor:pointer}

/* Give spare width to the final background cell, not to every data column. */
:root :is(.enemy-list-page,.stage-page) .enemy-status-table :is(th,td):not(.list-fill){width:1px}

/* Two independently editable/sortable magnifications in the existing 46px row. */
:root :is(.enemy-list-page,.stage-page) .enemy-status-table .enemy-list-magnifications{padding-block:0;line-height:20px}
.enemy-list-magnifications>.list-sort{display:block;margin-left:auto;line-height:20px;padding-block:0}
.enemy-list-mag-line{display:flex;justify-content:flex-end;align-items:center;gap:3px;height:20px;line-height:20px}
:root .enemy-list-mag-line input{height:20px;box-sizing:border-box;line-height:18px;padding:0 2px}
.enemy-list-page .unit-list-table th.enemy-list-magnifications>.list-sort:not([data-sort-direction]){color:#e0e0e0}
.enemy-list-page .unit-list-table th.enemy-list-magnifications>.list-sort:not([data-sort-direction])::after{visibility:hidden}
.enemy-list-page .unit-list-table th.enemy-list-magnifications>.list-sort:not([data-sort-direction])::before{opacity:.2}

/* The shared component owns status columns, portraits, traits and magnification layout. */
.enemy-status-table{width:100%;min-width:max-content}
.enemy-status-table :is(th,td){box-sizing:border-box;padding-inline:6px}
.enemy-status-table .enemy-attribute-icons{display:grid;grid-template-columns:repeat(3,22px);grid-auto-rows:22px;gap:0 3px;width:72px}
:root :is(.enemy-list-page,.stage-page) .enemy-status-table img.enemy-attribute-icon,:root :is(.enemy-list-page,.stage-page) .enemy-status-table .list-status-trait img{width:22px;height:22px;max-width:none;zoom:1;object-fit:contain}
:root :is(.enemy-list-page,.stage-page) .enemy-status-table img.enemy-list-icon{width:90px;height:34.2px;zoom:1;object-fit:contain;vertical-align:middle}
.enemy-status-table .list-status-trait{padding:0;border:0;background:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;cursor:help}
.enemy-status-table .enemy-list-attributes{padding-block:0}
.enemy-status-table .enemy-list-magnifications{padding-block:0;line-height:20px}
.enemy-status-table .list-name-cell{text-align:left}
.enemy-status-boss{display:block;color:#f0c030;font-size:11px;line-height:1.2}
.enemy-status-table th.enemy-list-magnifications>.list-sort:not([data-sort-direction]){color:#e0e0e0}
.enemy-status-table th.enemy-list-magnifications>.list-sort:not([data-sort-direction])::after{visibility:hidden}
