:root {
    --accent-light: #4beacc;
    --accent-muted: #3fc9b0;
    --accent-glow: rgba(75, 234, 204, 0.15);
    --font-main: 'Rajdhani', sans-serif;
}

table {
    border-collapse: collapse;
}

.fullwidth {
    width: 100%;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.allbg {
    background-color: rgba(40, 120, 115, 0.38);
}

.albbg {
    background-color: rgba(180, 60, 60, 0.55);
}

.hibbg {
    background-color: rgba(50, 160, 80, 0.52);
}

.midbg {
    background-color: rgba(60, 80, 180, 0.55);
}

.headerbg {
    background-color: rgba(56, 165, 157, 0.42);
}

.allbg2 {
    background-color: rgba(40, 120, 115, 0.50);
}

.albbg2 {
    background-color: rgba(180, 60, 60, 0.65);
}

.hibbg2 {
    background-color: rgba(50, 160, 80, 0.62);
}

.midbg2 {
    background-color: rgba(60, 80, 180, 0.65);
}

.headerbg2 {
    background-color: rgba(56, 165, 157, 0.50);
}

tr.allbg, tr.allbg2,
tr.albbg, tr.albbg2,
tr.hibbg, tr.hibbg2,
tr.midbg, tr.midbg2 {
    background-color: transparent;
    background-image: none;
}

tr.allbg {
    background: linear-gradient(90deg, rgba(40, 140, 130, 0.18), transparent 65%), rgba(15, 28, 30, 0.55);
}
tr.allbg2 {
    background: linear-gradient(90deg, rgba(40, 140, 130, 0.22), transparent 65%), rgba(20, 34, 36, 0.70);
}
tr.albbg {
    background: linear-gradient(90deg, rgba(190, 60, 60, 0.18), transparent 65%), rgba(15, 25, 35, 0.55);
}
tr.albbg2 {
    background: linear-gradient(90deg, rgba(190, 60, 60, 0.22), transparent 65%), rgba(20, 30, 40, 0.70);
}
tr.hibbg {
    background: linear-gradient(90deg, rgba(60, 140, 60, 0.18), transparent 65%), rgba(15, 25, 35, 0.55);
}
tr.hibbg2 {
    background: linear-gradient(90deg, rgba(60, 140, 60, 0.22), transparent 65%), rgba(20, 30, 40, 0.70);
}
tr.midbg {
    background: linear-gradient(90deg, rgba(60, 100, 190, 0.18), transparent 65%), rgba(15, 25, 35, 0.55);
}
tr.midbg2 {
    background: linear-gradient(90deg, rgba(60, 100, 190, 0.22), transparent 65%), rgba(20, 30, 40, 0.70);
}

tr.top_line.allbg > td,  tr.top_line.allbg2 > td,
tr.top_line.albbg > td,  tr.top_line.albbg2 > td,
tr.top_line.hibbg > td,  tr.top_line.hibbg2 > td,
tr.top_line.midbg > td,  tr.top_line.midbg2 > td {
    background-color: transparent !important;
    background-image: none !important;
}

#duration {
    position: absolute;
    left: 685px;
    width: 500px;
    top: 110px;
    height: 32px;
    text-align: right;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

#table_global {
    color: white;
    font-size: 18px;
    font-family: var(--font-main);
    border: 1px solid rgba(56, 165, 157, 0.30);
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    text-shadow: #000 1px 1px 1px;
    margin-bottom: 20px;
}

table.player {
    color: white;
    font-size: 18px;
    font-family: var(--font-main);
    border: 1px solid rgba(56, 165, 157, 0.30);
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    text-shadow: #000 1px 1px 1px;
}

.leader {
    width: 300px;
    font-size: 24px;
    font-weight: bold;
    padding: 0;
    text-shadow: #000 1px 1px 6px;
}

.matchup {
    font-size: 48px;
    font-weight: bold;
    text-shadow: #000 1px 1px 10px;
    height: 54px;
    line-height: 50px;
    vertical-align: bottom;
}

.mmr {
    font-size: 32px;
    text-shadow: #000 1px 1px 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 1px;
    white-space: nowrap;
    width: 10%;
}

.mmrc {
    font-size: 14px;
    line-height: 12px;
}

.matchresult {
    font-size: 32px;
    opacity: 0.5;
    text-shadow: #000 1px 1px 4px;
    width: 20%;
    color: yellow;
}

.leader_name {
    font-size: 24px;
    font-weight: bold;
    text-shadow: #000 1px 1px 2px;
    padding: 4px 15px 0 15px;
}

.player_name {
    font-size: 24px;
    font-weight: bold;
    text-shadow: #000 1px 1px 2px;
    padding: 5px 15px 0 15px;
    width: 270px;
}

.player_name a {
    color: #ffffff;
}

.player_name a:hover {
    color: #96FFF6 !important;
}

.leader_guild {
    font-size: 18px;
    font-weight: normal;
    text-shadow: #000 1px 1px 1px;
    padding: 0 15px 0 15px;
}

.leader_guild a {
    color: #96FFF6 !important;
}

.leader_guild a:hover {
    color: #ffffff !important;
}

div.guild_empty {
    width: 100%;
    height: 100%;
    background-image: url(/fghts/img/guild_empty.png);
    background-repeat: no-repeat;
    background-size: 32px 32px;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.25);
}

.mid {
    width: 20px;
    min-width: 20px;
    height: 100%;
    height: 44px;
}

.linev {
    width: 20px;
    height: 100%;
    -webkit-filter: drop-shadow(0px 0px 2x #000000);
    filter: drop-shadow(0px 0px 2px #000000);
    opacity: 0.75;
}

div.leader_guild_bg {
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    vertical-align: top;
    text-align: center;
    margin: 0;
    border-left: 1px solid #353535;
    border-right: 1px solid #353535;
}

img.leader_guild_logo {
    display: block;
    height: 56px;
    padding-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0px 0px 1px #ffffff88);
}

div.player_guild_bg {
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    vertical-align: top;
    text-align: center;
    margin: 0;
    border-left: 1px solid #353535;
    border-right: 1px solid #353535;
}

img.player_guild_logo {
    display: block;
    height: 56px;
    padding-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0px 0px 1px #ffffff88);
}

.bargauge2 {
    left: 3px;
    top: 0px;
    width: 584px;
    height: 36px;
    background-color: #111217;
    /* padding: 1px 4px 1px 4px; */
    padding: 0;
    border-radius: 4px;
    /* width: 600px; */
    position: relative;
}

.bargauge2_el {
    position: absolute;
    top: 3px;
    width: 16px;
    height: 30px;
    min-width: 16px;
    min-height: 30px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-size: 100% 100%;
    border-radius: 2px;
    opacity: 0.8;
}

.bargauge2_el.off {
    opacity: 0.2;
}

.player_bargauge2 {
    left: 4px;
    top: 0px;
    width: 280px;
    height: 20px;
    background-color: #111217;
    /* padding: 1px 4px 1px 4px; */
    padding: 0;
    border-radius: 2px;
    /* width: 600px; */
    position: relative;
}

.player_bargauge2_el {
    position: absolute;
    top: 3px;
    width: 8px;
    height: 14px;
    min-width: 8px;
    min-height: 14px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-size: 100% 100%;
    border-radius: 2px;
    opacity: 0.8;
}

.player_bargauge2_el.off {
    opacity: 0.2;
}

.bargauge2_el.blue,
.player_bargauge2_el.blue {
    background-image: url(img/bargauge2_blue.png);
}

.bargauge2_el.red,
.player_bargauge2_el.red {
    background-image: url(img/bargauge2_red.png);
}

.bargauge2_el.green,
.player_bargauge2_el.green {
    background-image: url(img/bargauge2_green.png);
}

.bargauge2_el.orange,
.player_bargauge2_el.orange {
    background-image: url(img/bargauge2_orange.png);
}

.bargauge2_el.purple,
.player_bargauge2_el.purple {
    background-image: url(img/bargauge2_purple.png);
}

.table_players_left {
    width: 50%;
    padding-right: 10px;
    padding-bottom: 20px;
    vertical-align: top;
}

.table_players_right {
    width: 50%;
    padding-left: 10px;
    padding-bottom: 20px;
    vertical-align: top;
}

.player_block {
    height: 63px;
}

.player_line {
    /* padding-top: 1px; */
    padding-left: 10px;
    padding-right: 10px;
    height: 30px;
    line-height: 30px;
    /* width: 50%; */
}

.player_gauge {
    width: 289px;
}

.player_cls {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 4px;
}

.player_race {
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    padding-bottom: 4px;
}

#timeline {
    position: relative;
    display: none;
    left: 16px;
    width: 1168px;
    height: 240px;
}

#timeline .line {
    top: 120px;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #dddddd;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#timeline .bar {
    position: absolute;
    cursor: pointer;
    width: 1px;
    height: 20px;
    background-color: #dddddd;
    color: #dddddd;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3);
    z-index: 8px;
}


#timeline .bar:hover {
    z-index: 9;
    color: #96FFF6 !important;
    /* text-shadow: #000 1px 1px 10px 10px; */
}

#timeline .bar:hover>.name {
    /* background-color: #000000; */
    text-shadow: #000 0px 0px 5px;
    color: #96FFF6 !important
}

#timeline .bara {
    top: 100px;
}

#timeline .barb {
    top: 122px;
}

#timeline .death {
    position: absolute;
    cursor: pointer;
    left: -16px;
    width: 32px;
    height: 32px;
    /* box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3); */
}

#timeline .deatha {
    top: -32px;
}

#timeline .deathb {
    top: 20px;
}

#timeline .death img {
    width: 32px;
    height: 32px;
}


#timeline .rez {
    position: absolute;
    cursor: pointer;
    left: -16px;
    width: 32px;
    height: 32px;
    /* box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3); */
}

#timeline .reza {
    top: -22px;
}

#timeline .rezb {
    top: 10px;
}

#timeline .rez img {
    width: 32px;
    height: 32px;
}


#timeline .name {
    overflow: hidden;
    cursor: pointer;
    position: absolute;
    font-size: 14px;
    width: 100px;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
    text-align: left;
    /* box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3); */
}

#timeline .namea {
    top: -102px;
    left: -50px;
    transform: rotate(270deg);
}

#timeline .nameb {
    top: 90px;
    left: -50px;
    text-align: right;
    transform: rotate(270deg);
}


tr.top_header {
    border-top: none;
}

tr.top_header td {
    background: linear-gradient(to bottom, #0d3a3b, #082628) !important;
    border-bottom: 2px solid var(--accent-light);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
    text-align: left;
    vertical-align: middle;
    height: 36px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


tr.top_header td.center {
    text-align: center !important;
}

tr.top_line {
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

tr.top_line:hover {
    background-color: rgba(56, 165, 157, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/*tr.top_line.albbg:hover {
        background-color: rgba(255,0,0,0.25);
    }
    tr.top_line.hibbg:hover {
        background-color: rgba(0,255,0,0.2);
    }
    tr.top_line.midbg:hover {
        background-color: rgba(0,0,255,0.2);
    }*/

/*tr.top_line:first-of-type td {
        border-top: 1px solid #353535;
    }*/

tr.top_line td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding-left: 5px;
    padding-right: 5px;
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    text-align: left;
    vertical-align: middle;
    line-height: 36px;
    height: 38px;
    transition: background-color 0.15s ease;
}

tr.top_line td:first-child {
    border-radius: 3px 0 0 3px;
}

tr.top_line td:last-child {
    border-radius: 0 3px 3px 0;
}

tr.top_line.hover td {
    border-bottom: 1px solid rgba(56, 165, 157, 0.4);
}

tr.top_line:hover td {
    border-bottom: 1px solid rgba(56, 165, 157, 0.4);
}

tr.top_line td.list_arrow {
    width: 5px;
    text-align: left;
    white-space: nowrap;
    padding-left: 10px;
    font-weight: normal;
    color: #96FFF6;
}
tr.top_line td.list_arrow.down {    
    color: #ffddbb;
}

tr.top_line td.list_name {
    width: 200px;
    text-align: left;
    white-space: nowrap;
    padding-left: 10px;
}

tr.top_line td.list_level {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

tr.top_line td.list_range {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

tr.top_line td.list_npc {
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    white-space: nowrap;
}

tr.top_line td.list_npc a {
    color: #49D8CA !important;
}

tr.top_line td.list_npc a:hover {
    color: #ffffff !important;
}

.list_rewards a {
    color: #49D8CA !important;
}

.list_rewards a:hover {
    color: #ffffff !important;
}

tr.top_line td.list_zone {
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    white-space: nowrap;
}



#table_search {
    width: 100%;
    display: none;
    margin-bottom: 20px;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(to bottom, #0d3a3b, #082628);
    border: 1px solid rgba(56, 165, 157, 0.35);
    border-radius: 8px;
}


#search {
    width: 100%;
    text-align: center;
    /*color: #ffffffaa !important;*/
    font-style: italic;
    font-weight: normal !important;
    font-size: 18px !important;
}

#search.focused {
    font-style: normal;
    font-weight: bold !important;
}

#search2 {
    width: 100%;
    text-align: center;
    /*color: #ffffffaa !important;*/
    font-style: italic;
    font-weight: normal !important;
    font-size: 18px !important;
}

#search2.focused {
    font-style: normal;
    font-weight: bold !important;
}

select.selector {
    border-radius: 4px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    color: #ffffffdd !important;
    font-size: 20px !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    margin: 0;
    overflow: hidden;
    padding: 0 28px 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--accent-muted) !important;
    background: linear-gradient(to bottom, #0d3a3b, #082628) !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-light) 50%),
        linear-gradient(135deg, var(--accent-light) 50%, transparent 50%),
        linear-gradient(to bottom, #0d3a3b, #082628) !important;
    background-position:
        calc(100% - 14px) 15px,
        calc(100% - 9px) 15px,
        0 0 !important;
    background-size:
        5px 5px,
        5px 5px,
        100% 100% !important;
    background-repeat: no-repeat !important;
    height: 34px;
    margin-right: 5px;
    margin-bottom: 0px;
    width: 100px;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.selector:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

select.selector option {
    background-color: #0A3231;
    color: #ffffffdd;
}

/* === Custom Select Dropdown === */
.cs-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

select.cs-native-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.cs-trigger {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 32px 0 12px;
    background: linear-gradient(to bottom, #0d3a3b, #082628);
    border: 1px solid var(--accent-muted);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    appearance: none;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-light) 50%),
        linear-gradient(135deg, var(--accent-light) 50%, transparent 50%),
        linear-gradient(to bottom, #0d3a3b, #082628);
    background-position:
        calc(100% - 16px) 16px,
        calc(100% - 11px) 16px,
        0 0;
    background-size:
        5px 5px,
        5px 5px,
        100% 100%;
    background-repeat: no-repeat;
}

.cs-trigger:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.cs-trigger.cs-open {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(75, 234, 204, 0.3);
}

.cs-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 100%;
    z-index: 200;
    background: linear-gradient(to bottom, #0d2628, #071719);
    border: 1px solid var(--accent-muted);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(75, 234, 204, 0.08);
    padding: 4px;
    max-height: 320px;
    overflow-y: auto;
    animation: csFadeIn 0.12s ease-out;
    box-sizing: border-box;
}

.cs-panel[hidden] { display: none; }

@keyframes csFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.cs-item:hover {
    background: rgba(75, 234, 204, 0.12);
    border-color: var(--accent-muted);
    color: #fff;
}

.cs-item.cs-selected {
    background: rgba(75, 234, 204, 0.18);
    border-color: var(--accent-muted);
    color: #fff;
    font-weight: 600;
}

.cs-label {
    padding: 8px 10px 4px 10px;
    color: var(--accent-light);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2px;
    pointer-events: none;
}

.cs-panel::-webkit-scrollbar { width: 6px; }
.cs-panel::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
.cs-panel::-webkit-scrollbar-thumb { background: var(--accent-muted); border-radius: 3px; }
.cs-panel::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* Custom-select inside table-based search bar: don't break table layout */
#table_search .cs-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}
#table_search .cs-trigger {
    height: 34px;
    width: 100%;
    background-position:
        calc(100% - 14px) 15px,
        calc(100% - 9px) 15px,
        0 0;
}
#table_search td {
    position: relative;
}


.Albion-list {
    color: #e06060 !important;
    font-size: 20px !important;
    font-family: Rajdhani !important;
    font-weight: 600 !important;
}

.Hibernia-list {
    color: #50c060 !important;
    font-size: 20px !important;
    font-family: Rajdhani !important;
    font-weight: 600 !important;
}

.Midgard-list {
    color: #6080e0 !important;
    font-size: 20px !important;
    font-family: Rajdhani !important;
    font-weight: 600 !important;
}



input {
    text-align: center;
    border-radius: 4px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #0d3a3b, #082628);
    color: #ffffffdd !important;
    font-size: 20px !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    margin: 0;
    overflow: hidden;
    padding-top: 2px;
    padding-bottom: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: text;
    border: 1px solid rgba(56, 165, 157, 0.35);
    height: 28px;
    margin-left: 4px;
    margin-right: 4px;
    vertical-align: top;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#page {
    width: 50px;
}


button.cat {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    height: 40px;
    padding: 0 12px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(56, 165, 157, 0.35);
    border-radius: 4px;
    background: linear-gradient(to bottom, #0a3230, #071e1d);
    transition: all 0.15s ease;
    cursor: pointer;
}

button.cat:hover {
    border-color: var(--accent-light);
    background: rgba(56, 165, 157, 0.25);
}

.button.hover {
    border: 1px solid var(--accent-light);
    background: linear-gradient(to bottom, rgba(56, 165, 157, 0.50), rgba(56, 165, 157, 0.35)) !important;
    box-shadow: 0 0 0 1px rgba(75, 234, 204, 0.2);
}


.select_matchup .ui-slider-handle {
    outline: 0;
    background: #004e49;
    border: 1px solid #009879;
    border-radius: 4px;
    top: -5px;
}

.select_matchup .ui-slider-handle:hover {
    border: 1px solid #004e49;
    background-color: #38A59D;
}

.handle_left {
    color: #ffffff !important;
    text-align: center;
}



.select_matchup_min,
.select_matchup_max {
    width: 35px;
}

a.none {
    color: #ffffff;
}

.quest_info {
    padding: 5px 10px 5px 10px;
}

.quest_info table {
    width: 100%;
    height: 100%;
}

.summary {
    padding: 10px 10px 5px 40px;
    width: 200px;
    vertical-align: top;
}

.list_summary {
    padding: 10px 10px 5px 10px;
    text-align: left;
    line-height: 32px;
}

.rewards {
    padding: 10px 10px 10px 40px;
    vertical-align: top;
    line-height: 32px;
}

.list_rewards {
    padding: 10px 10px 10px 10px;
    text-align: left;
    line-height: 32px;
}

#eligibility {
    display: none;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 18px;
    height: 18px;
    vertical-align: middle;
    /* font-weight: bold; */
    color: white;
    position: absolute;
    left: 590px;
    top: 112px;
    width: 600px;
    text-align: right;
    animation: eligibility_anim 1.5s linear infinite;
}

@keyframes eligibility_anim {
    0% {
        opacity: 0.80;
        scale: 0.99;
    }

    50% {
        opacity: 1;
        scale: 1;
    }

    100% {
        opacity: 0.80;
        scale: 0.99;
    }
}


/* ============================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {

    /* Search bar: flex wrap on 2 lines */
    #table_search > tbody > tr {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
        padding: 8px;
    }

    #table_search > tbody > tr > td {
        display: block !important;
        width: auto !important;
        padding: 2px 4px !important;
    }

    /* Search icon */
    #table_search > tbody > tr > td:nth-child(1) {
        flex: 0 0 auto;
    }

    /* Search input - takes remaining space on first line */
    #table_search > tbody > tr > td:nth-child(2) {
        flex: 1 1 200px;
        min-width: 150px;
    }

    /* Realm filter */
    #table_search > tbody > tr > td:nth-child(3) {
        flex: 0 1 160px;
    }

    #table_search > tbody > tr > td:nth-child(3) select {
        width: 100% !important;
    }

    /* Zone filter */
    #table_search > tbody > tr > td:nth-child(4) {
        flex: 0 1 160px;
    }

    #table_search > tbody > tr > td:nth-child(4) select {
        width: 100% !important;
    }

    /* "Level:" label */
    #table_search > tbody > tr > td:nth-child(5) {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Level slider */
    #table_search > tbody > tr > td:nth-child(6) {
        flex: 1 1 120px;
        min-width: 80px;
    }

    /* "Min:" label */
    #table_search > tbody > tr > td:nth-child(7) {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Min input */
    #table_search > tbody > tr > td:nth-child(8) {
        flex: 0 0 50px;
    }

    /* "Max:" label */
    #table_search > tbody > tr > td:nth-child(9) {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Max input */
    #table_search > tbody > tr > td:nth-child(10) {
        flex: 0 0 50px;
    }

    /* Duration repositioned */
    #duration {
        position: static !important;
        width: auto !important;
        text-align: right;
        padding: 5px 10px;
    }

    /* Eligibility repositioned */
    #eligibility {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        text-align: center;
    }

    /* Table results - allow horizontal scroll if needed */
    #table_global {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Table results */
    tr.top_line td.list_name {
        width: 150px;
    }

    /* Hide Zone column on tablet */
    tr.top_line td.list_zone {
        display: none !important;
    }
    tr.top_header td:nth-child(6) {
        display: none !important;
    }

    /* Quest info - summary less wide */
    .summary {
        padding: 10px 10px 5px 10px;
        width: auto;
    }

    .rewards {
        padding: 10px 10px 10px 10px;
    }
}


/* ============================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Search bar: wrap instead of column so Level/Min/Max stay in a row */
    #table_search > tbody > tr {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center;
    }

    /* Hide search icon on mobile */
    #table_search > tbody > tr > td:nth-child(1) {
        display: none !important;
    }

    /* Search input full width (forces new line after) */
    #table_search > tbody > tr > td:nth-child(2) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* Realm filter full width */
    #table_search > tbody > tr > td:nth-child(3) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    #table_search > tbody > tr > td:nth-child(3) select,
    #table_search > tbody > tr > td:nth-child(4) select {
        width: 100% !important;
    }

    /* Zone filter full width */
    #table_search > tbody > tr > td:nth-child(4) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* Level label + slider + Min/Max stay in a row, wrapping as needed */
    #table_search > tbody > tr > td:nth-child(5) {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    #table_search > tbody > tr > td:nth-child(6) {
        flex: 1 1 80px !important;
        min-width: 60px;
    }

    #table_search > tbody > tr > td:nth-child(7) {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    #table_search > tbody > tr > td:nth-child(8) {
        flex: 0 0 50px !important;
    }

    #table_search > tbody > tr > td:nth-child(9) {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    #table_search > tbody > tr > td:nth-child(10) {
        flex: 0 0 50px !important;
    }

    #search2 {
        font-size: 16px !important;
    }

    /* Table results: force full width */
    #table_global {
        width: 100% !important;
        table-layout: fixed !important;
        display: table !important;
    }

    /* Table results compact */
    tr.top_line td {
        font-size: 14px;
        line-height: 30px;
        height: 32px;
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Name takes remaining space */
    tr.top_line td.list_name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Level column fixed small width */
    tr.top_line td.list_level {
        width: 50px;
    }

    /* Hide Range column (4th) on mobile */
    tr.top_line td.list_range {
        display: none !important;
    }
    tr.top_header td:nth-child(4) {
        display: none !important;
    }

    /* Hide NPC column (5th) on mobile */
    tr.top_line td.list_npc {
        display: none !important;
    }
    tr.top_header td:nth-child(5) {
        display: none !important;
    }

    /* Hide Zone column (6th) already hidden from tablet */

    /* Hide arrow column on mobile */
    tr.top_line td.list_arrow {
        display: none !important;
    }
    tr.top_header td:nth-child(1) {
        display: none !important;
    }

    tr.top_header td {
        font-size: 12px;
        height: 30px;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Quest detail (expanded row) - stack Story/Rewards */
    #table_global > tbody > tr:not(.top_header):not(.top_line) td {
        padding: 4px !important;
    }

    #table_global > tbody > tr:not(.top_header):not(.top_line) table {
        width: 100% !important;
        table-layout: auto !important;
    }

    #table_global > tbody > tr:not(.top_header):not(.top_line) table td {
        display: block !important;
        width: 100% !important;
    }

    .summary {
        padding: 8px 5px 2px 5px;
        width: auto;
        font-weight: bold;
    }

    .rewards {
        padding: 8px 5px 2px 5px;
    }

    .list_summary {
        padding: 2px 5px 8px 5px;
        line-height: 24px;
        word-wrap: break-word;
    }

    .list_rewards {
        padding: 2px 5px 8px 5px;
        line-height: 24px;
        word-wrap: break-word;
    }

    /* Avoid iOS zoom on focus */
    input[type=text],
    input[type=number],
    select.selector {
        font-size: 16px !important;
    }

    /* Eligibility text */
    #eligibility {
        font-size: 14px;
    }

    /* Loading spinner */
    .triple-spinner {
        width: 200px !important;
        height: 200px !important;
    }
}