/* Shared presentation for builder tables. Player-facing shops and other editors stay scoped out. */
.luma-table-editor.luma-table-editor {box-sizing:border-box;display:flex;flex-direction:column;gap:7px;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:12px;border:1px solid #d9b5aa;border-radius:12px;background:#fff7ec;color:#644b41;box-shadow:0 12px 32px #3c282c28;overflow:hidden;font:11px/1.35 Arial,sans-serif;}
.luma-table-editor.luma-table-editor :is(h2,h3,p,legend,label,button,input,select,th,td) {font-family:inherit;line-height:1.35;}
.luma-table-editor.luma-table-editor h2 {font-size:14px;font-weight:700;margin:0;color:#644b41;}
.luma-table-editor.luma-table-editor h3,.luma-table-editor.luma-table-editor legend {font-size:11px;font-weight:600;margin:0;}
.luma-table-editor.luma-table-editor p {font-size:10px;color:#92766c;margin:0;}
.luma-table-editor.luma-table-editor :is(button,input,select) {box-sizing:border-box;min-width:0;max-width:100%;min-height:25px;padding:4px 6px;border:1px solid #dbb5a9;border-radius:6px;background:#fffaf4;color:#644b41;font-size:11px;box-shadow:none;}
.luma-table-editor.luma-table-editor :is(button,input,select):focus-visible {outline:2px solid #936177;outline-offset:1px;}
.luma-table-editor.luma-table-editor button {cursor:pointer;font-weight:500;}
.luma-table-editor.luma-table-editor button:hover:not(:disabled) {background:#f4e4dc;border-color:#ac7d70;}
.luma-table-editor.luma-table-editor :disabled {opacity:.5;cursor:default;}
.luma-table-editor.luma-table-editor input[type=checkbox] {min-height:14px;width:14px;height:14px;accent-color:#825667;flex:0 0 14px;}
.luma-table-editor.luma-table-editor input[type=number] {width:58px;}
.luma-table-editor.luma-table-editor table {width:100%;border-collapse:collapse;font-size:11px;margin:0;}
.luma-table-editor.luma-table-editor :is(th,td) {padding:4px 3px;text-align:left;vertical-align:middle;}
.luma-table-editor.luma-table-editor th {position:sticky;top:0;z-index:1;background:#fff7ec;color:#886b60;font-size:10px;font-weight:600;}
.luma-table-editor.luma-table-editor tbody tr+tr td {border-top:1px solid #efdfd4;}
.luma-table-editor.luma-table-editor header {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 7px;margin:0;border:0;border-bottom:1px solid #ead5c8;cursor:grab;touch-action:none;flex-shrink:0;}
.luma-table-editor.luma-table-editor header button {width:26px;min-height:26px;padding:2px;flex:0 0 26px;}
.luma-table-editor.luma-table-editor .luma-editor-scroll,.luma-table-editor.luma-table-editor .luma-editor-content {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d0a69b transparent;flex:1 1 auto;}
.luma-table-editor.luma-table-editor .luma-editor-footer {display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:0 0 auto;position:sticky;bottom:0;margin:0;padding:8px 0 0;border-top:1px solid #ead5c8;background:#fff7ec;z-index:2;}
.luma-table-editor.luma-table-editor .luma-editor-footer > p {flex-basis:100%;margin:0 0 3px;}
.luma-table-editor.luma-table-editor .luma-editor-footer button {margin:0;}
.luma-table-editor.luma-table-editor :is([data-save],.luma-editor-footer button:last-child) {font-weight:600;}
.luma-table-editor.luma-table-editor .crate-drop-form {display:flex;flex-direction:column;gap:7px;overflow:hidden;min-height:0;flex:1 1 auto;}
.luma-table-editor.luma-table-editor .crate-drop-form > input {flex-shrink:0;width:100%;}
.luma-table-editor.luma-table-editor .crate-drop-form table {min-width:350px;table-layout:auto;}
.luma-table-editor.luma-table-editor .crate-drop-form td select {width:150px;max-width:150px;}
.luma-table-editor.luma-table-editor .crate-drop-form td input {width:52px;}
.luma-table-editor.luma-table-editor .crafting-body {display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden;padding:0;flex:1 1 auto;}
.luma-table-editor.luma-table-editor .crafting-status {padding:0;border:0;font-size:10px;}
.luma-table-editor.luma-table-editor .crafting-recipe {min-width:0;border:1px solid #e3c7b8;border-radius:7px;padding:7px;margin:6px 0;background:#fffaf4;}
.luma-table-editor.luma-table-editor .crafting-editor-recipes {gap:5px;margin:6px 0;}
.luma-table-editor.luma-table-editor :is(.crafting-editor-output,.crafting-editor-material,.event-trade-cost) {display:grid;grid-template-columns:minmax(0,1fr) 58px auto;gap:5px;align-items:center;margin:5px 0;}
.luma-table-editor.luma-table-editor .crafting-editor-output button {grid-column:auto;}
.luma-table-editor.luma-table-editor .crafting-search-picker > input {font-size:11px;padding:4px 20px 4px 6px;min-height:25px;}
.luma-table-editor.luma-table-editor .crafting-search-picker::after {top:5px;}
.luma-table-editor.event-trading-window .crafting-recipe {display:grid;grid-template-columns:minmax(0,1fr) 58px auto;gap:5px;}
.luma-table-editor.event-trading-window .crafting-recipe > :is(p,.event-trade-cost),.luma-table-editor.event-trading-window .crafting-recipe > button:last-child {grid-column:1/-1;}
.luma-table-editor.event-trading-window .crafting-recipe > input[type=number] {width:58px;}
.luma-table-editor.garden-mutation-editor {width:min(640px,calc(100vw - 24px));gap:7px;}
.luma-table-editor.garden-mutation-editor .mutation-table-wrap {flex:1 1 auto;min-height:55px;overflow:auto;}
.luma-table-editor.garden-mutation-editor table {min-width:540px;table-layout:fixed;}
.luma-table-editor.garden-mutation-editor .mutation-sliders {gap:5px;padding:3px 0;overflow:auto;max-height:145px;flex-shrink:0;}
.luma-table-editor.garden-mutation-editor .mutation-colour-sample {width:21px;height:21px;}
#builderShopEditor > .luma-table-editor {width:min(600px,calc(100vw - 24px));gap:7px;}
#builderShopEditor .luma-table-editor .builder-shop-body {min-height:0;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px;align-content:start;}
#builderShopEditor .luma-table-editor .builder-shop-body > :is(div,table,p),#builderShopEditor .luma-table-editor .builder-shop-body > label:last-of-type {grid-column:1/-1;}
#builderShopEditor .luma-table-editor .builder-shop-body > label {margin:0;font-size:10px;}
#builderShopEditor .luma-table-editor .builder-shop-body > label > :is(input,select) {margin-top:3px;width:100%;}
#builderShopEditor .luma-table-editor .builder-shop-add {display:grid;grid-template-columns:1fr auto;gap:5px;}
#builderShopEditor .luma-table-editor .builder-shop-add input {grid-column:1/-1;}
#builderShopEditor .luma-table-editor .builder-shop-price {gap:3px;}
#builderShopEditor .luma-table-editor [data-save] {background:#825667;border-color:#825667;color:#fffaf4;}
#builderShopEditor .luma-table-editor :is(th,td) {padding:4px 3px;font-size:11px;}
.luma-editor-choice,.crafting-search-results.luma-editor-legacy-results {box-sizing:border-box;display:flex;flex-direction:column;gap:5px;z-index:2147483000;padding:6px;border:1px solid #d5ab9e;border-radius:8px;background:#fffaf4;color:#644b41;box-shadow:0 8px 22px #49302c30;overflow:hidden;font:11px/1.35 Arial,sans-serif;}
.luma-editor-choice > input {box-sizing:border-box;width:100%;min-height:30px;padding:5px 7px;border:1px solid #d5ab9e;border-radius:5px;background:#fff;color:#644b41;font:inherit;flex-shrink:0;}
.luma-editor-choice-count {margin:0;color:#92766c;font-size:10px;flex-shrink:0;}
.luma-editor-choice-list,.crafting-search-results.luma-editor-legacy-results {overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;}
.luma-editor-choice-list button,.crafting-search-results.luma-editor-legacy-results button {display:block;box-sizing:border-box;width:100%;min-height:27px;text-align:left;padding:5px 7px;border:0;border-radius:4px;background:transparent;color:#644b41;font:inherit;white-space:normal;cursor:pointer;}
.luma-editor-choice-list button.active,.luma-editor-choice-list button:hover,.crafting-search-results.luma-editor-legacy-results button.active,.crafting-search-results.luma-editor-legacy-results button:hover {background:#efddd5;}
.crafting-search-results.luma-editor-legacy-results[hidden] {display:none;}
@media(max-width:640px){.luma-table-editor.luma-table-editor {padding:10px;gap:6px;} .luma-table-editor.luma-table-editor .crate-drop-form td select {width:126px;max-width:126px;} .luma-table-editor.luma-table-editor .crate-drop-form td input {width:47px;} .luma-table-editor.luma-table-editor .crate-drop-form table {min-width:330px;} .luma-table-editor.luma-table-editor .crafting-editor-output,.luma-table-editor.luma-table-editor .crafting-editor-material,.luma-table-editor.luma-table-editor .event-trade-cost {grid-template-columns:minmax(0,1fr) 50px auto;} .luma-editor-choice > input {font-size:16px;}}
.luma-table-editor.luma-table-editor .luma-editor-content > input:not([type=checkbox]) {display:block;width:100%;margin:3px 0 8px;}
.luma-table-editor.luma-table-editor .luma-editor-footer button.luma-editor-save {background:#825667;color:#fffaf4;border-color:#825667;font-weight:600;}
.luma-table-editor.luma-table-editor .luma-editor-footer button.luma-editor-save:hover:not(:disabled) {background:#6d4354;color:#fffaf4;}
.luma-table-editor.garden-mutation-editor .luma-editor-content {display:flex;flex-direction:column;gap:7px;}
.luma-table-editor.garden-mutation-editor .luma-editor-content > * {flex-shrink:0;}
.luma-table-editor.garden-mutation-editor .mutation-table-wrap {max-height:300px;flex:0 0 auto;}
/* Builder tables need their own usable height rather than the small player-card limit. */
.luma-table-editor {--mobile-window-width:calc(100vw - 24px);--mobile-window-height:calc(100dvh - 24px);}
@media(max-width:700px),(pointer:coarse) and (max-width:900px){body .luma-table-editor.luma-table-editor {padding:10px !important;}}
@media(max-width:640px){.luma-table-editor.luma-table-editor .crate-drop-form td select {width:110px;max-width:110px;} .luma-table-editor.luma-table-editor .crate-drop-form td input {width:42px;} .luma-table-editor.luma-table-editor .crate-drop-form :is(th,td) {padding:4px 2px;} .luma-table-editor.luma-table-editor .crate-drop-form table {min-width:300px;}}
#builderShopEditor > section.luma-table-editor {padding:12px;border:1px solid #d9b5aa;border-radius:12px;background:#fff7ec;color:#644b41;box-shadow:0 12px 32px #3c282c28;font:11px/1.35 Arial,sans-serif;}
#builderShopEditor .luma-table-editor h2 {font-size:14px;color:#644b41;}
#builderShopEditor .luma-table-editor :is(button,input,select) {padding:4px 6px;min-height:25px;border:1px solid #dbb5a9;border-radius:6px;background:#fffaf4;color:#644b41;font:11px/1.35 Arial,sans-serif;box-shadow:none;}
#builderShopEditor .luma-table-editor header {padding:0 0 7px;border-bottom:1px solid #ead5c8;}
#builderShopEditor .luma-table-editor [data-close] {width:26px;height:26px;padding:2px;}
#builderShopEditor .luma-table-editor .luma-editor-footer {padding:8px 0 0;margin:0;gap:5px;}
#builderShopEditor .luma-table-editor .luma-editor-footer button.luma-editor-save {background:#825667;border-color:#825667;color:#fffaf4;}
