.quick-lineup {
  display: block !important;
  padding: 10px 22px 16px !important;
}

.lineup-table-wrap {
  max-height: 590px;
  overflow: auto;
  border: 1px solid #dfe5f1;
  border-radius: 10px;
  background: #fff;
}

.lineup-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.lineup-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px;
  background: #f6f8fc;
  color: #71809e;
  border-bottom: 1px solid #dfe5f1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.lineup-table th small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lineup-table th:nth-child(1) { width: 30%; }
.lineup-table th:nth-child(2) { width: 130px; }
.lineup-table th:nth-child(3) { width: 230px; }
.lineup-table th:nth-child(n+4) { width: 76px; text-align: center; }

.lineup-table td {
  height: 42px;
  padding: 5px 8px;
  border-bottom: 1px solid #edf0f6;
  vertical-align: middle;
}

.lineup-table tr:last-child td { border-bottom: 0; }
.lineup-table tr.role-out td { background: #fbfcfe; }
.lineup-table tr.role-out .lineup-player-name { opacity: .7; }

.lineup-table td:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lineup-table .shirt {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 7px;
  font-size: 12px;
}

.lineup-player-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.lineup-player-name strong {
  overflow: hidden;
  color: #102044;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-player-name small {
  margin-top: 3px;
  color: #8491aa;
  font-size: 9px;
  text-transform: uppercase;
}

.table-role-buttons {
  display: flex;
  gap: 4px;
}

.table-role-buttons button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dbe2ef;
  border-radius: 7px;
  background: #fff;
  color: #7d89a1;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.table-role-buttons button:hover { border-color: #2344df; color: #2344df; }
.table-role-buttons button[data-quick-role="starter"][aria-pressed="true"] { border-color: #2344df; background: #2344df; color: #fff; }
.table-role-buttons button[data-quick-role="bench"][aria-pressed="true"] { border-color: #e0a51d; background: #fff2c9; color: #936300; }
.table-role-buttons button[data-quick-role="out"][aria-pressed="true"] { border-color: #aeb8ca; background: #eef1f6; color: #506079; }

.goal-minute-entry {
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-minute-entry input,
.lineup-number-input {
  height: 30px;
  border: 1px solid #dbe2ef;
  border-radius: 7px;
  background: #fff;
  color: #11234a;
  font: inherit;
  font-size: 12px;
}

.goal-minute-entry input {
  width: 180px;
  padding: 0 9px;
}

.goal-minute-entry b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 12px;
  background: #e9edff;
  color: #2344df;
  font-size: 11px;
}

.lineup-number-input {
  display: block;
  width: 48px;
  margin: 0 auto;
  padding: 0 4px;
  text-align: center;
}

.goal-minute-entry input:focus,
.lineup-number-input:focus {
  border-color: #2344df;
  outline: 3px solid rgba(35, 68, 223, .12);
}

.goal-minute-entry input.invalid,
.own-goals-box input.invalid {
  border-color: #d93c56;
  outline-color: rgba(217, 60, 86, .12);
}

.goal-minute-entry input:disabled,
.lineup-number-input:disabled {
  background: #f1f3f7;
  color: #a7b0c1;
  cursor: not-allowed;
}

.own-goals-box {
  margin: 0 22px 18px !important;
}

@media (max-width: 760px) {
  .quick-lineup { padding: 6px 8px 12px !important; }
  .lineup-table-wrap { max-height: 68vh; border-radius: 8px; }
  .lineup-table { min-width: 690px; }
  .lineup-table th:nth-child(1) { width: 190px; }
  .lineup-table th:nth-child(3) { width: 200px; }
  .goal-minute-entry input { width: 150px; }
  .own-goals-box { margin: 0 8px 14px !important; }
}
