/* "Redosled" picker (client/src/table/suitorder.ts): a hand-drawn dropdown that shows the suit
   pictures of the chosen deck. Used on the table page and on Moj nalog. */
.so-pick { display: flex; align-items: center; gap: 8px; }
.so-lbl { color: inherit; }
.so-box { position: relative; }
.so-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 28px; border-radius: 8px; border: 1px solid #6b6b64;
  background: #FAF7EF; color: #1a2a1e; cursor: pointer; font: inherit; }
.so-btn:focus-visible, .so-opt:focus-visible { outline: 3px solid #F9A825; outline-offset: 2px; }
.so-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #4b5a50; }
.so-row { display: inline-flex; gap: 4px; }
.so-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.so-ic svg { width: 86%; height: 86%; display: block; }
.so-ic img { width: 100%; height: auto; display: block; }
.so-ic.r { color: #C62828; } .so-ic.b { color: #111; }
/* The open list is exactly as wide as the button; the suit symbols are centred in both. */
.so-list { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0; box-sizing: border-box; max-height: 320px; overflow-y: auto; padding: 4px;
  background: #FAF7EF; border: 1px solid #6b6b64; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  display: grid; gap: 2px; }
.so-opt { display: flex; align-items: center; justify-content: center; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.so-opt:hover { background: #e9e3d2; }
.so-opt.cur { background: #d8e8d8; }

/* Table page: the deck and the order sit one under the other, labels and controls in two columns. */
.pickers { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; column-gap: 8px; row-gap: 6px; }
.pickers .deckpick, .pickers .so-pick { display: contents; }
.pickers .so-box { justify-self: stretch; }
.pickers .so-btn { width: 100%; }
.screen .pickers .so-btn { height: auto; padding: 6px 28px; background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.25); color: #f4f1e8; }
.screen .pickers .so-caret { color: #b9cdb9; }
.screen .pickers .so-btn .so-ic { background: #FAF7EF; border-radius: 4px; width: 24px; height: 24px; }
.screen .pickers .so-btn .so-ic svg { width: 70%; height: 70%; }
.screen .pickers .so-btn .so-ic img { width: 78%; }

/* Moj nalog: the label above the control, like the other fields. */
#suit-order .so-pick { flex-direction: column; align-items: flex-start; gap: 6px; }
.screen .pickers .so-lbl { color: #b9cdb9; font-size: 16px; }
/* At the table the order button and the "Karte:" select are exactly the same height. */
.screen .pickers .so-btn, .screen .pickers .deckpick select { box-sizing: border-box; height: 30px; min-height: 0; padding-block: 0; justify-self: stretch; }
.screen .pickers .so-btn { padding-inline: 28px; }
.screen .pickers .so-btn .so-ic { width: 22px; height: 22px; }
