/* ===========================
   FARM LIST – Travian Legends Style
   Adapted from original compact-265d29c1.min.css
   Overrides destructive rules from travianRaidList.css
   =========================== */

/* ============================================
   §1  RESET: Override travianRaidList.css
   ============================================ */

/* #raidList { position:relative; font-size:15px } → static, 13px */
#raidList {
    position: static;
    font-size: 13px;
    color: #5e463a;
}

/* .listName { display:inline-block; max-width:53px; margin-right:-35px } → normal */
#raidList .villageWrapper .raidList .raidListHeadline .listName {
    display: block;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin-right: 0;
    margin-left: 0;
}

/* .listTitleText (old layout) → hide completely */
.listTitleText { display: none; }

/* div.build .gid16 #raidList .troopSelection → static */
div.build .gid16 #raidList .raidListContent table tfoot td.troopSelection,
div.build .gid16 #raidList .troopSelection {
    display: table-cell;
    position: static;
    top: auto;
    right: auto;
    flex-wrap: wrap;
}

/* Reset the old-style width percentages */
div.build .gid16 #raidList .checkbox  { width: auto; }
div.build .gid16 #raidList .ew        { width: auto; }
div.build .gid16 #raidList .distance   { width: 1%; white-space: nowrap; }
div.build .gid16 #raidList .troops     { width: auto; line-height: normal; }
div.build .gid16 #raidList .lastRaid   { width: auto; }
div.build .gid16 #raidList .action     { width: auto; }

/* Reset td text-align (was center) */
div.build .gid16 #raidList td {
    text-align: right;
}

/* Reset .openedClosedSwitch sizing */
div.build .gid16 #raidList .openedClosedSwitch {
    width: auto;
    height: auto;
}

/* Reset .startButton margin (was 10px) */
div.build .gid16 #raidList .startButton {
    margin: 0;
}

/* Reset old troopIcon float */
div.build .gid16 #raidList .troopSelectionUnit {
    float: none;
    margin-left: 0;
}


/* ============================================
   §2  VILLAGE WRAPPER & HEADLINE
   ============================================ */
#raidList .villageWrapper:not(:last-child) {
    margin-bottom: 25px;
}
#raidList .villageWrapper .villageHeadline {
    border: 1px solid silver;
    margin-bottom: 5px;
    line-height: 34px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f8f7f0;
}
#raidList .villageWrapper .villageHeadline .villageName {
    grid-row-start: 1;
    font-weight: bold;
    color: #5e463a;
    font-size: 14px;
    text-decoration: none;
}
#raidList .villageWrapper .villageHeadline .villageName:hover {
    color: #99c01a;
}
#raidList .villageWrapper .villageHeadline .createNew {
    grid-column-start: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5e463a;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
#raidList .villageWrapper .villageHeadline .createNew:hover {
    color: #99c01a;
}
#raidList .villageWrapper .villageHeadline .createNew.hidden {
    display: none;
}
#raidList .villageWrapper .villageHeadline .createNew svg {
    fill: #659815;
    width: 20px;
    height: 16px;
}


/* ============================================
   §3  RAID LIST ITEM (each list block)
   ============================================ */
#raidList .villageWrapper .raidList {
    margin-bottom: 5px;
    box-sizing: border-box;
}

/* ---- Headline (5-column grid) ---- */
#raidList .villageWrapper .raidList .raidListHeadline {
    display: grid;
    grid-template-columns: 35px 1fr 1fr auto 50px;
    background-color: #efeee7;
    border: 1px solid silver;
}

/* Col 1 – Drag handle */
#raidList .villageWrapper .raidList .raidListHeadline .dragAndDrop {
    grid-column: 1;
    padding-right: 10px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
}
#raidList .villageWrapper .raidList .raidListHeadline .dragAndDrop svg {
    fill: #787878;
    height: 25px;
    width: 4px;
}

/* Col 2 – List name */
#raidList .villageWrapper .raidList .raidListHeadline .listName {
    grid-column: 2;
    font-weight: bold;
    overflow: hidden;
    display: flex;
    align-items: center;
}
#raidList .villageWrapper .raidList .raidListHeadline .listName .inlineIcon {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 100%;
}
#raidList .villageWrapper .raidList .raidListHeadline .listName .inlineIcon span.value {
    grid-column: 1;
    max-width: 161px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
#raidList .villageWrapper .raidList .raidListHeadline .listName .inlineIcon a {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 10px;
    cursor: pointer;
}
#raidList .villageWrapper .raidList .raidListHeadline .listName .inlineIcon a svg {
    width: 18px;
    height: 18px;
    margin: 0;
    fill: #659815;
}
#raidList .villageWrapper .raidList .raidListHeadline .listName .inlineIcon a:hover svg {
    fill: #99c01a;
}

/* Col 3 – Slots info */
#raidList .villageWrapper .raidList .raidListHeadline .slots {
    grid-column: 3;
    white-space: nowrap;
    padding-left: 10px;
    display: flex;
    align-items: center;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots > div {
    display: inline-grid;
    grid-template-columns: auto auto auto auto;
    align-items: center;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots > div > * {
    align-self: center;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots i.attack {
    width: 16px;
    height: 16px;
    background-image: url("../../img/a/att_all.gif");
    margin-left: 5px;
    display: inline-block;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots .value {
    display: inline-block;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots .slotsCount {
    color: #94786a;
}
#raidList .villageWrapper .raidList .raidListHeadline .slots .raidStatus {
    margin-right: 5px;
    font-size: 11px;
}

/* Col 4 – Form / start button */
#raidList .villageWrapper .raidList .raidListHeadline form {
    grid-column: 4;
    align-self: center;
    display: flex;
    align-items: center;
}
#raidList .villageWrapper .raidList .raidListHeadline > button {
    grid-column: 4;
    align-self: center;
}

/* Col 5 – Expand / Collapse */
#raidList .villageWrapper .raidList .expandCollapse {
    grid-column: 5;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: none;
    background: none;
}
#raidList .villageWrapper .raidList .expandCollapse img.loading {
    display: none;
    margin-top: 15px;
}
#raidList .villageWrapper .raidList .expandCollapse svg {
    fill: #5e463a;
    width: 18px;
    height: 11px;
    position: relative;
    top: 0;
    transition: top 0.2s, fill 0.2s;
}
#raidList .villageWrapper .raidList .expandCollapse.loading img.loading {
    display: inline-block;
}
#raidList .villageWrapper .raidList .expandCollapse.loading svg {
    display: none;
}
/* Open = no .collapsed class → flip arrow */
#raidList .villageWrapper .raidList .expandCollapse:not(.collapsed) svg {
    transform: scaleY(-1);
}
#raidList .villageWrapper .raidList .expandCollapse:hover svg {
    fill: #94786a;
    top: 3px;
}
#raidList .villageWrapper .raidList .expandCollapse:not(.collapsed):hover svg {
    top: -3px;
}


/* ============================================
   §4  RAID LIST CONTENT (hidden by default)
   ============================================ */
#raidList .raidListContent.hide,
#raidList .listContent.hide {
    display: none;
}


/* ============================================
   §5  TABLE
   ============================================ */
#raidList .raidListContent table.raidTable {
    width: 100%;
    background-color: transparent;
    border-collapse: collapse;
    border: 1px solid silver;
    border-top: 0;
    border-bottom: 0;
    line-height: normal;
}

/* shared th + td */
#raidList .raidListContent table.raidTable th,
#raidList .raidListContent table.raidTable td {
    border: 1px solid silver;
    padding: 6px 9px 3px;
}

/* ---- THEAD ---- */
#raidList .raidListContent table.raidTable thead th {
    background-color: #f3f2e7;
    border-top: 0;
    color: #5e463a;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}
/* sortable */
#raidList .raidListContent table.raidTable thead th.sortable {
    cursor: pointer;
    padding: 6px 0 3px;
}
#raidList .raidListContent table.raidTable thead th.sortable div {
    padding: 0 9px;
    position: relative;
}
#raidList .raidListContent table.raidTable thead th.sortable div svg.arrow {
    position: absolute;
    left: 3px;
    top: calc(50% - 3px);
    width: 7px;
    height: 7px;
}
#raidList .raidListContent table.raidTable thead th.sortable div svg.arrow path {
    fill: #5e463a;
}
#raidList .raidListContent table.raidTable thead th.sortable div svg.arrow.down {
    transform: scaleY(-1);
}

/* checkbox col (th + td) */
#raidList .raidListContent table.raidTable th.checkbox,
#raidList .raidListContent table.raidTable td.checkbox {
    border-left: 0;
    width: 1px;
    padding-right: 5px;
    padding-left: 0;
    text-align: center;
    vertical-align: middle;
}

/* target col th */
#raidList .raidListContent table.raidTable th.target {
    border-right: 0;
    box-sizing: border-box;
    width: 130px;
    text-align: right;
    padding-right: 30px;
}
#raidList .raidListContent table.raidTable th.target.sortable div {
    padding-right: 30px;
}

/* lastRaid th */
#raidList .raidListContent table.raidTable th.lastRaid {
    text-align: right;
    font-weight: bold;
    position: relative;
    background-clip: padding-box;
}
#raidList .raidListContent table.raidTable th.lastRaid svg.sorting {
    width: 12px;
    height: 16px;
    left: 3px;
    top: 10px;
    position: absolute;
    cursor: pointer;
}
#raidList .raidListContent table.raidTable th.lastRaid svg.sorting path {
    fill: #99c01a;
}
#raidList .raidListContent table.raidTable th.lastRaid svg.sorting:hover path {
    fill: #00bc00;
}

/* lastRaid sorting dropdown */
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting {
    min-width: 200px;
    position: absolute;
    right: -5px;
    top: 100%;
    background-color: #f3f2e7;
    border: 1px solid #333;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.25);
    border-radius: 3px;
    z-index: 36;
    cursor: default;
    transition-duration: 250ms;
    opacity: 0;
    pointer-events: none;
    line-height: normal;
    text-align: right;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting.open {
    opacity: 1;
    pointer-events: auto;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .description {
    padding: 3px 8px;
    color: #888;
    font-size: 12px;
    font-weight: normal;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .sortOption {
    padding: 5px 8px;
    min-height: 32px;
    border-top: 1px solid #b7b7b7;
    display: grid;
    grid-template-columns: 22px 10px 1fr;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #5e463a;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .sortOption:hover {
    background-color: #e1e0d2;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .sortOption img,
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .sortOption i {
    align-self: center;
    justify-self: center;
    grid-column: 1;
    display: inline-block;
}
#raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting .sortOption span {
    align-self: center;
    grid-column: 3;
    display: inline-block;
}

/* edit th */
#raidList .raidListContent table.raidTable th.edit {
    width: 18px;
    padding-right: 5px;
    padding-left: 5px;
}


/* ---- TBODY ---- */
#raidList .raidListContent table.raidTable tbody td {
    background-color: #fefdf8;
    font-size: 12px;
    line-height: normal;
}
#raidList .raidListContent table.raidTable tbody .slotRow:hover td {
    background-color: #f5f3e8;
}
#raidList .raidListContent table.raidTable tbody .slotRow.slotInactive td {
    background-color: #f2f2ee;
    opacity: 0.4;
}

/* target td */
#raidList .raidListContent table.raidTable td.target {
    text-align: left;
    max-width: 130px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-right: 0;
}
#raidList .raidListContent table.raidTable td.target i {
    vertical-align: top;
}
#raidList .raidListContent table.raidTable td.target i.inactive {
    visibility: hidden;
}
#raidList .raidListContent table.raidTable td.target a {
    display: inline;
    color: #5e463a;
    text-decoration: none;
}
#raidList .raidListContent table.raidTable td.target a:hover {
    text-decoration: underline;
    color: #99c01a;
}

/* population + distance td */
#raidList .raidListContent table.raidTable td.population,
#raidList .raidListContent table.raidTable td.distance {
    text-align: center;
    white-space: nowrap;
}

/* troops td */
#raidList .raidListContent table.raidTable td.troops {
    width: 60px;
    line-height: normal;
}
#raidList .raidListContent table.raidTable td.troops .troopIcon {
    display: inline-block;
    white-space: nowrap;
}
#raidList .raidListContent table.raidTable td.troops .troopIcon img {
    margin-left: 2px;
    vertical-align: middle;
}
#raidList .raidListContent table.raidTable td.troops .troopIcon .troopIconAmount {
    font-size: 11px;
    vertical-align: middle;
    margin-left: 1px;
}

/* lastRaid td */
#raidList .raidListContent table.raidTable td.lastRaid {
    white-space: nowrap;
}
#raidList .raidListContent table.raidTable td.lastRaid > div {
    display: grid;
    grid-template-columns: 24px 1fr 18px;
}
#raidList .raidListContent table.raidTable td.lastRaid > div > * {
    grid-row: 1;
    align-self: center;
}
#raidList .raidListContent table.raidTable td.lastRaid > div .iReport {
    grid-column: 1;
    justify-self: start;
}
#raidList .raidListContent table.raidTable td.lastRaid > div a {
    grid-column: 2;
    color: #5e463a;
    text-decoration: none;
}
#raidList .raidListContent table.raidTable td.lastRaid > div a:hover {
    text-decoration: underline;
}
#raidList .raidListContent table.raidTable td.lastRaid > div .carry {
    grid-column: 3;
    justify-self: end;
    margin-top: -1px;
}

/* edit td */
#raidList .raidListContent table.raidTable td.edit {
    padding-right: 5px;
    padding-left: 5px;
    text-align: center;
    vertical-align: middle;
}
#raidList .raidListContent table.raidTable td.edit a svg {
    width: 16px;
    height: 16px;
    fill: #99c01a;
    transition: fill 0.2s;
}
#raidList .raidListContent table.raidTable td.edit a:hover svg {
    fill: #00bc00;
}

/* no-data row */
#raidList .raidListContent table.raidTable td.noData {
    text-align: center;
    color: #888;
    padding: 12px;
    font-style: italic;
    background-color: #fefdf8;
}


/* ============================================
   §6  TFOOT
   ============================================ */

/* selected troops row */
#raidList .raidListContent table.raidTable tfoot .selectedTroops td {
    height: 23px;
    background-color: #f6f6f6;
    border: 0;
    font-size: 12px;
    line-height: normal;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.selectedCount {
    padding-right: 15px;
    color: #5e463a;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.selectedCount .markedCount {
    color: #99c01a;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.equals {
    text-align: center;
    font-weight: bold;
    color: #d8d8d8;
    font-size: 18px;
    width: 20px;
}
/* Override the absolute-positioned flex from travianRaidList.css */
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.troopSelection {
    display: table-cell;
    position: static;
    top: auto;
    right: auto;
    padding-right: 4px;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.troopSelection .troopSelectionUnit {
    white-space: nowrap;
    margin-right: 5px;
    line-height: 25px;
    float: none;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.troopSelection .troopSelectionUnit .troopSelectionValue {
    margin-right: 3px;
    font-size: 11px;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.troopSelection .troopSelectionUnit .troopSelectionValue .alert {
    color: #d40000;
}
#raidList .raidListContent table.raidTable tfoot .selectedTroops td.troopSelection .troopSelectionUnit .troopsInVillage {
    margin-right: 2px;
    font-size: 10px;
    color: #888;
}

/* feedback row */
#raidList .raidListContent table.raidTable tfoot .feedback {
    display: none;
}
#raidList .raidListContent table.raidTable tfoot .feedback td {
    height: 23px;
    background-color: #f6f6f6;
    border: 0;
    text-align: center;
}

/* new slot row */
#raidList .raidListContent table.raidTable tfoot .newSlot {
    height: 23px;
    text-align: center;
    background-color: #fefdf8;
}
#raidList .raidListContent table.raidTable tfoot .newSlot td {
    background-color: #fefdf8;
    border: 1px solid silver;
    border-top: 0;
    padding: 6px 0;
    line-height: normal;
}
#raidList .raidListContent table.raidTable tfoot .newSlot svg {
    vertical-align: top;
    margin-right: 5px;
    width: 14px;
    height: 14px;
    fill: #99c01a;
}
#raidList .raidListContent table.raidTable tfoot .newSlot a {
    color: #99c01a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
#raidList .raidListContent table.raidTable tfoot .newSlot a:hover {
    color: #00bc00;
}
#raidList .raidListContent table.raidTable tfoot .newSlot a.disabled {
    color: #777;
    pointer-events: none;
}
#raidList .raidListContent table.raidTable tfoot .newSlot a.disabled svg {
    fill: #777;
}
#raidList .raidListContent table.raidTable tfoot .newSlot .slots {
    margin-right: 20px;
    color: #777;
    font-size: 11px;
}
#raidList .raidListContent table.raidTable tfoot .newSlot .maxTargets {
    color: #777;
}


/* ============================================
   §7  BUTTON WRAPPER (bottom bar)
   ============================================ */
#raidList .raidListContent .buttonWrapper {
    border: 1px solid silver;
    border-top: 0;
    background-color: #fefdf8;
    padding: 10px 9px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    line-height: normal;
}
#raidList .raidListContent .buttonWrapper .editButton {
    grid-column: 1;
    grid-row: 1;
}
#raidList .raidListContent .buttonWrapper .stateToggleButton {
    grid-column: 2;
    grid-row: 1;
    margin-right: 10px;
}
#raidList .raidListContent .buttonWrapper .carryTotal {
    grid-column: 2;
    grid-row: 1;
    margin-right: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}
#raidList .raidListContent .buttonWrapper .lastLootTotal {
    grid-column: 3;
    grid-row: 1;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}
#raidList .raidListContent .buttonWrapper .startButton {
    grid-column: 4;
    grid-row: 1;
    margin: 0;
}


/* ============================================
   §8  BUTTONS (textButtonV1)
   ============================================ */
button.textButtonV1 {
    display: inline-block;
    height: 28px;
    line-height: 26px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #34220d;
    color: #fff;
    background-image: linear-gradient(to bottom, #8ec919, #6b9c12);
    background-color: #7fb516;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    transition: background-color 0.15s, box-shadow 0.15s;
}
button.textButtonV1:hover,
button.textButtonV1:focus {
    background-image: none;
    background-color: #8ec919;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
button.textButtonV1:active {
    background-image: linear-gradient(to top, #8ec919, #6b9c12);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}
button.textButtonV1.disabled,
button.textButtonV1:disabled {
    background-image: none;
    background-color: #b3b3a8;
    color: #777;
    border-color: #999;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}
button.textButtonV1.grey {
    background-image: linear-gradient(to bottom, #ddd, #bbb);
    background-color: #ccc;
    border-color: #888;
    color: #333;
}
button.textButtonV1.grey:hover {
    background-image: none;
    background-color: #ddd;
}


/* ============================================
   §9  MISC
   ============================================ */

/* Raid timer */
.raidTimer {
    font-size: 10px;
    color: #c00;
    font-weight: bold;
}

/* Global links in raidList */
#raidList a {
    display: inline-block;
}
#raidList a svg {
    fill: #99c01a;
}
#raidList a:hover svg {
    fill: #00bc00;
}
#raidList a.disabled svg {
    fill: #777;
}
#raidList .inlineIcon {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
}
#raidList .inlineIcon i,
#raidList .inlineIcon svg {
    align-self: center;
    display: inline-block;
}
#raidList .inlineIcon span {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Error / Status */
.farmError {
    color: #c00;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #e5a5a5;
    background-color: #fff5f5;
}
.beginnerWarning {
    color: #c00;
    font-size: 12px;
}

/* Premium labels */
.premiumInfo {
    font-size: 10px;
    margin-left: 6px;
}
.premiumInfo.purchased { color: #0a0; }
.premiumInfo.notPurchased { color: #888; }

/* Warning icon */
.raidWarning {
    display: none;
}
.raidWarning svg {
    vertical-align: middle;
    cursor: help;
    fill: #d40000;
}

/* Attack-error icon in target td */
#raidList .raidListContent table.raidTable td.target svg.attackError {
    vertical-align: top;
    fill: #d40000;
    width: 16px;
    height: 16px;
}


/* ============================================
   §10  DIALOG STYLES (Travian.Dialog)
   ============================================ */

/* Create list dialog */
#raidListCreate {
    font-size: 14px;
}
#raidListCreate h4 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
#raidListCreate input.text {
    width: 450px;
    margin-bottom: 5px;
}
#raidListCreate .error,
#raidListCreate #error {
    color: #d40000;
    font-size: 11px;
    margin-bottom: 8px;
    min-height: 14px;
    padding: 10px 0;
}
#raidListCreate .noteSmall {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}
#raidListCreate .buttons {
    margin-top: 10px;
}
#raidListCreate .negative {
    text-decoration: none;
}
#raidListCreate .negative:hover {
    text-decoration: underline;
}

/* Troop slots (shared by create & edit list) */
#raidListTroopsSlots {
    margin: 10px 0 10px;
    overflow: hidden;
}
#raidListTroopsSlots .troopGroup {
    float: right;
    margin-right: 10px;
}
#raidListTroopsSlots .troopGroup label {
    position: relative;
    top: 2px;
}
#raidListTroopsSlots .troopGroup .troop {
    width: 40px;
    margin: 4px 10px;
}

/* Edit/Add slot dialog */
#raidListSlot {
    font-size: 14px;
    width: 476px;
    height: auto;
}
#raidListSlot table.transparent {
    width: 100%;
    margin-bottom: 10px;
}
#raidListSlot table.transparent th {
    text-align: right;
    padding: 3px 6px;
    width: 20%;
    font-weight: bold;
}
#raidListSlot table.transparent td {
    padding: 3px 6px;
}
#raidListSlot .troops {
    margin-bottom: 10px;
    overflow: hidden;
}
#raidListSlot .troopGroup {
    margin-right: 10px;
    float: right;
}
#raidListSlot .troopGroup label {
    position: relative;
    top: 2px;
}
#raidListSlot .troop {
    width: 40px;
    margin: 4px 10px;
}
#raidListSlot .error {
    color: #d40000;
    font-size: 11px;
    margin: 4px 0;
    min-height: 14px;
}
#raidListSlot .noteSmall {
    font-size: 11px;
    color: #777;
    margin: 8px 0;
}
#raidListSlot .buttons {
    margin-top: 10px;
}
#raidListSlot .negative {
    text-decoration: none;
}
#raidListSlot .negative:hover {
    text-decoration: underline;
}

/* LTR troopGroup override */
body:not(.rtl) #raidListTroopsSlots .troopGroup {
    float: left;
    margin-left: 10px;
    margin-right: 0;
}
body:not(.rtl) #raidListSlot .troopGroup {
    float: left;
    margin-left: 10px;
    margin-right: 0;
}
body:not(.rtl) #raidListSlot table.transparent th {
    text-align: left;
}

/* Confirmation dialog */
.confirmationDialog .message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.5;
}
.confirmationDialog .buttons {
    text-align: center;
}
.confirmationDialog .buttons button {
    margin: 0 5px;
}

/* Auto-fill label */
.autoFillLabel {
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}
.createListActions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}


/* ============================================
   §11  RTL ADJUSTMENTS
   ============================================ */
body.rtl #raidList .villageWrapper .raidList .raidListHeadline {
    direction: rtl;
}
body.rtl #raidList .villageWrapper .raidList .raidListHeadline .listName {
    padding-right: 0;
    padding-left: 15px;
}
body.rtl #raidList .raidListContent table.raidTable thead th.target {
    text-align: left;
    padding-left: 30px;
    padding-right: 9px;
}
body.rtl #raidList .raidListContent table.raidTable td.target {
    text-align: left;
}
body.rtl #raidList .raidListContent table.raidTable td.troops .troopIcon img {
    margin-left: 0;
    margin-right: 2px;
}
body.rtl #raidList .villageWrapper .villageHeadline .createNew {
    direction: rtl;
}
body.rtl #raidList .raidListContent .buttonWrapper {
    direction: rtl;
}
body.rtl #raidList .raidListContent table.raidTable tfoot .newSlot svg {
    margin-right: 0;
    margin-left: 5px;
}
body.rtl #raidList .raidListContent table.raidTable tfoot .newSlot .slots {
    margin-right: 0;
    margin-left: 20px;
}

/* LTR overrides for lastRaid th */
body:not(.rtl) #raidList .raidListContent table.raidTable th.lastRaid {
    text-align: left;
}
body:not(.rtl) #raidList .raidListContent table.raidTable th.lastRaid svg.sorting {
    left: auto;
    right: 3px;
}
body:not(.rtl) #raidList .raidListContent table.raidTable th.lastRaid nav.lastRaidSorting {
    right: auto;
    left: -5px;
    text-align: left;
}
