/* Minification failed. Returning unminified contents.
(2145,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(2147,68): run-time error CSS1039: Token not allowed after unary operator: '-vss-divider'
(2147,92): run-time error CSS1039: Token not allowed after unary operator: '-vss-divider'
(5693,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5695,68): run-time error CSS1039: Token not allowed after unary operator: '-timeline-divider'
(5695,97): run-time error CSS1039: Token not allowed after unary operator: '-timeline-divider'
(8494,48): run-time error CSS1030: Expected identifier, found '.'
(8494,75): run-time error CSS1031: Expected selector, found ')'
(8494,75): run-time error CSS1025: Expected comma or open brace, found ')'
 */

/*#region Upgrade Tracker Overview */

.pnlProgressSummaryBanner {

    position: relative;
    padding: 0.7rem 1rem;
    margin-bottom: 10px;
    border: 1px solid rgba(10, 10, 10, 0.25);
    font-size: 0.9rem;
    color: #FFFFFF;
    background-color: #6c9edf;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.progress-summary-banner-button {

    margin-bottom: 0;
    margin-left: 0.5rem;
    display: inline-block;
}

.progress-summary-banner-hide {

    position: absolute;
    top: 0.2rem;
    right: 0.75rem;
    cursor: pointer;
}

/* Progress Summary banner (village-overview.aspx) - on mobile the button usually wraps onto its own line beneath
   the banner text, so it needs a top margin there that it doesn't need on wider screens where it sits inline */
@media screen and (max-width: 41.8375em) {

    .progress-summary-banner-button {
        margin-top: 0.5rem;
    }
}

/* Card Collection "View Cards" button on the TH icon (village-overview.aspx) - tighter padding than the
   default .button.small so the card icon can be drawn larger without growing the overall button size
   past btnScreenshot/btnProgressSummary's own footprint. */
.btnCardCollection {
    padding: 0.4em 0.85em;
}

.image-viewer h1 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: bold;
}

.image-viewer img {
    margin: 0 auto 20px auto;
    border: solid 1px #666666;
}

/*#endregion */

/*#region New Village */

/*#new-village-options h2 {

    margin: 0;
    line-height: 40px;
    font-size: 20px;
    font-weight: bold;
}*/

/*#new-village-options {

    padding: 0;
    margin: 20px 0 0 0;
}

#new-village-options h2 {

    margin: 5px 0;
    border-radius: 5px;
    border: solid 1px #E6E6E6;
    background-color: #4078C0;
    color: #FFFFFF;
}*/

#pnlSelectAddType p.larger {
    font-size: 16px !important;
}

#pnlNewVillageStage2 h2 {
    color: #FFFFFF;
}

#new-village {
    margin-bottom: 20px;
}

.new-village-title {
    margin-top: 20px;
    /*padding: 5px 15px 5px 15px;*/
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: solid 1px #E6E6E6;
    background-color: #4078C0;
}

.new-village-title h2 {
    margin: 0;
    padding: 0 15px;
    height: 80px;
    line-height: 80px;
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .new-village-title h2 {
        font-size: 18px;
        height: 60px;
        line-height: 60px;
    }
}

.new-village-title h2:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.new-village-title.open h2:before {
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

/*.new-village-title h2 i {
    
    line-height: 80px;
    font-size: 26px;
    float: right;
}*/

.new-village-title a {
    color: #FFFFFF;
    display: block;
}

.new-village-title a:hover {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #258faf;
}

.new-village-content {
    margin-bottom: 30px;
    padding: 20px;
    border: solid 1px #E6E6E6;
    border-top: none;
}

#txtPlayerTag {
    text-transform: uppercase;
}

/*#new-village-overview h2 {
    margin-top: 30px;
    font-size: 22px;
    font-weight: bold;
}*/

#new-village-overview h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

#new-village-overview h3 {
    font-size: 18px;
    font-weight: bold;
    line-height: 36px;
    color: #4078C0;
    float: left;
}

#new-village-overview .xp {
    margin-left: 20px;
    width: 40px;
    height: 40px;
    color: #FFFFFF;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    background-image: url(/images/xp.png);
    background-position: top;
    background-repeat: no-repeat;
    float: left;
}

#new-village-overview .th-icon {
    max-height: 140px;
}

#new-village-overview .clan-icon {
    max-height: 140px;
}

.village-success h3 {
    font-size: 24px;
    font-weight: bold;
}

#clan-search-response h3 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
}

#clan-search-response h4 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.clan-details {
    font-size: 16px;
    line-height: 32px;
}

.clan-info .clan-icon {
    max-height: 140px;
}

.clan-details h5 {
    margin-right: 15px;
    line-height: 32px;
    font-size: 16px;
    font-weight: bold;
    float: left;
}

#gvClanSearchResults, #gvClanMembers {
    font-size: 14px;
}

#gvClanSearchResults .name-badge {
    margin-top: 8px;
    float: left;
}

#gvClanMembers .name-badge {
    margin: 4px 0 0 5px;
    float: left;
}

#gvClanMembers .xp {
    margin-left: 5px;
    width: 32px;
    height: 32px;
    color: #FFFFFF;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    background-image: url(/images/xp.png);
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
    float: left;
}

/*#endregion */

/*#region Update Structures */

.loading-panel {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 9001;
    background-color: rgba(255,255,255,0.9);
    position: fixed;
    top: 0;
    left: 0;
}

.loading-panel-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.update-structures h2 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.update-structures h3 {
    padding: 10px 0;
    font-size: 17px;
    font-weight: bold;
}

.update-structures li {

    font-size: 14px;
}

.change-setup-mode {

    display: none;
}

.change-setup-mode h2 {
    margin-right: 20px;
    margin-bottom: 0;
    float: left;
}

.change-setup-mode .button {
    margin-bottom: 0;
    float: left;
}

.select-setup-options h3 {
    
    margin-top: 0;
    padding-top: 0;
    font-size: 22px;
}

.setup-options-information {
    height: 100px;
}

.select-setup-options .button {
    margin-bottom: 0;
}

.detection-layout-link {
    text-align: center;
}


.detection-layout-link .thumb {
    max-height: 240px;
    cursor: pointer;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    /*.select-setup-options h3 {
        font-size: 20px;
    }

    .setup-options-information {
        height: 160px;
    }

    .setup-options-information p {
        
        font-size: 12px;
    }*/

    .upload-screenshot-warning input[type=checkbox] {
        
        margin-top: 10px;
    }
}

/* Large and up */
/*@media screen and (min-width: 64em) {

	.detection-layout-link {
		width: 320px;
	}
}*/

.upload-screenshot-warning, .upload-screenshot {
    display: none;
}

.upload-screenshot-warning .button {
    margin-bottom: 0;
    margin-right: 20px;
}

.upload-screenshot-warning input[type=checkbox] {
    
    width: 24px;
    height: 24px;
    float: left;
}

.upload-screenshot-warning label {
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    float: left;
}

.dropzone {
    padding: 10px;
    outline: 2px dashed #4078C0;
    outline-offset: -10px;
    background-color: #EEEEEE;
    height: 170px;
    transition: background-color 0.5s ease-out;
}

.dropzone.is-dragover {
    background-color: #DDDDDD;
}

.dropzone.ready {
    background-color: #4BB543;
    outline-color: #FFFFFF;
    color: #FFFFFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.dropzone.error {
    background-color: #CC0000;
    outline-color: #DDDDDD;
    color: #DDDDDD !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.dropzone.error i {
    color: #DDDDDD !important;
}

.dropzone.error .upload-error {
    color: #DDDDDD;
}

.dropzone.error .upload-error .details {
    font-size: 16px;
}


.dropzone .api-level-mismatch .details {
    
    margin-bottom: 10px;
    font-size: 16px;
}

.dropzone.ready .dropzone-inner i {
    background-color: #4BB543;
    outline-color: #FFFFFF;
    color: #FFFFFF;
}

.dropzone-inner {
    margin: 30px 0;
    text-align: center;
    font-size: 20px;
}

.dropzone-inner .fa-upload, .dropzone-inner .fa-file-upload, .dropzone-inner .fa-exclamation, .dropzone-inner .fa-file-search {
	font-size: 40px;
	color: #4078C0;
}

.dropzone-inner label {
    display: inline-block;
    font-size: 20px;
}

.dropzone-inner label, .dropzone-inner .paste-link {
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    color: #4078C0;
    text-decoration: underline;
}

.dropzone-inner .paste-link:hover, .dropzone-inner label:hover {
    text-decoration: none;
}

.dropzone .upload .progress {

    margin-top: 10px;
    border: solid 1px #333333;
}

.upload-village-export h2 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.upload-village-export p, .upload-village-export li {
    font-size: 16px;
}

.upload-village-export li {
    margin: 7px 0;
}

.upload-village-overview h2, .upload-village-changes h2, .upload-village-boosts h2, .upload-village-active-boosts h2 {
    margin: 10px 0 0 0;
    font-size: 28px;
    font-weight: bold;
}

.upload-village-overview h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: #999999;
}

.upload-village-overview h3 {
    font-size: 18px;
}

.upload-village-overview .hall-icon {
    max-height: 160px;
}

.upload-village-overview .village-upload-upgrades td {
    
    padding: 5px;
}

.upload-village-overview .village-upload-upgrades td input[type=radio] {
    
    margin: 5px 0 0 0;
    width: 20px;
    height: 20px;
}

.upload-village-overview .village-upload-upgrades th {

    font-size: 13px;
}

.upload-village-overview .village-upload-upgrades img {
    
    margin-left: 3px;
    max-width: 30px;
    max-height: 30px;
    float: left;
}

.upload-village-overview .village-upload-upgrades .entity-name {
    line-height: 30px;
}

.upload-village-boosts .callout .gp-logo {

    max-height: 35px;
    float: left;
}

.upload-village-boosts .gp-boost-buttons .set-text {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    height: 20px;
}

.upload-village-boosts .gp-boost-buttons .button {
    
    margin-bottom: 0;
}

.upload-village-boosts .callout {

    min-height: 150px;
}

.upload-village-active-boosts .upload-active-boost {

    background-color: #F7F7F7;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 5px;
    box-shadow: 0px 0px 6px rgba(150, 150, 150, 0.5);
}

.upload-village-active-boosts .upload-active-boost:first-child {

    margin-left: 15px;
}

.upload-village-active-boosts .upload-active-boost img {

    margin-right: 5px;
}

.upload-village-changes h4 {
    font-size: 18px;
    font-weight: bold;
}

.upload-village-changes h5 {

    font-weight: bold;
    font-size: 15px;
}

.upload-village-changes .upload-change-entity {

    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
}

.upload-village-changes .upload-change-entity .fa-up {
    color: #5da423;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 1px #000;
}

.upload-village-changes .upload-change-entity .fa-down {
    color: #CC0000;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 1px #000;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    
    .upload-village-export p, .upload-village-export li {
        font-size: 14px;
    }

    .upload-change-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .upload-change-list .cell {
        
        display: inline-block;
    }
}

.upload-screenshot p, .upload-screenshot li {
    font-size: 16px;
}

.upload-screenshot li {
    
    margin: 7px 0;
}

.upload-screenshot .file-status, .paste-export .file-status {
    
    margin-top: 10px;
    border: solid 1px #CCCCCC;
    padding: 10px;
    font-size: 14px;
}

.upload-screenshot .file-status .remove-upload {

    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    color: #CC0000;
    float: right;
    display: none;
}

.paste-export .file-status .remove-upload {
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    color: #CC0000;
    float: right;
    display: none;
}

.upload-screenshot .file-status .details.error, .paste-export .file-status .details.error {
    color: #CC0000;
}

.upload-screenshot .file-status .details.success, .paste-export .file-status .details.success {
    color: #5da423;
    font-weight: bold;
}

.preview-image { 

    margin-top: 10px;
    border: solid 1px #CCCCCC;
    padding: 10px;
    background-color: #FFFFFF;
    display: none;
}

.upload-screenshot .filename {

    font-size: 14px;
}

.preview-image img {
    margin-top: 10px;
    margin: 10px auto 0 auto;
    width: 100%;
    max-width: 600px;
    display: block;
}

.main-detected-structures {
	margin-bottom: 20px;
}

.main-detected-structures img {
	max-height: 100px;
}

.hall-detection .status {
	font-size: 18px;
	font-weight: bold;
}

.hall-detection .match {
	color: #5da423;
}

.hall-detection .mismatch {
	color: #CC0000;
}

.hall-detection .no-th-detected {
	color: #AAAAAA;
}

.builder-detection .status {
	font-size: 18px;
	font-weight: bold;
}

.otto-detection .status {
	font-size: 18px;
	font-weight: bold;
}

.otto-detection .no-hut-detected {
	color: #AAAAAA;
}

.otto-detection .detected {
	color: #5da423;
}

/* Small */
@media screen and (max-width: 41.8375em) {

	.upload-screenshot p, .upload-screenshot li {
		font-size: 14px;
	}

	.structure-levels .larger {
		font-size: 14px !important;
	}

	.builder-detection img, .otto-detection img {
		max-height: 70px;
	}

	.hall-detection .status {
		font-size: 16px;
	}

	.builder-detection .status {
		font-size: 16px;
	}

	.otto-detection .status {
		font-size: 16px;
	}
}

.update-structures .structure-levels-cell {
	margin-bottom: 15px;
	border: solid 1px #CCCCCC;
	background-color: #EEEEEE;
}

.update-structures .structure-levels-container {
    
    margin: 15px;
}

.update-structures .structure-levels input[type=checkbox] {
    width: 24px;
    height: 24px;
    float: left;
}


.update-structures .structure-levels label {
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    color: #4078C0;
    float: left;
}

.update-structures .structure-levels ul {
    
    margin: 0 0 5px 0;
    clear: both;
}

.update-structures .structure-levels li {
    
    list-style: none;
}

.update-structures .structure-levels .not-detected {
    
    font-weight: bold;
    /*color: #CC0000;*/
    font-size: 12px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

	.update-structures .structure-levels input[type=checkbox] {
		width: 20px;
		height: 20px;
	}

	.update-structures .structure-levels label {
		margin-left: 5px;
		font-size: 14px;
	}
}

/* Medium only */
@media screen and (min-width: 40em) {
    .select-setup-options .button {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.set-all-text {
    font-size: 12px;
}

.update-struc-icon {
    max-height: 55px;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

#chkBOTOUnlocked {
    margin-top: 3px;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    float: left;
}

.update-structures.otto-status p {
    font-size: 16px;
    line-height: 40px;
}

#pnlOTTORequirements {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 20px;
}

.update-structures.otto-status .unlocked {
    color: #5da423;
}

.update-structures.otto-status .unknown {
    color: #CC0000;
}

.update-structures.otto-status .unavailable {
    opacity: 0.6;
}

.update-structures.otto-status label {
    font-size: 16px;
}

.update-structures.otto-status input[type=checkbox] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    float: left;
}

.us-feedback-panel h3 {

    padding: 10px 0 5px 0;
    font-size: 20px;
    font-weight: bold;
}

.us-feedback-panel .feedback-overall li {

    list-style: none;
    display: inline-block;
}

.us-feedback-panel .feedback-overall li {
    text-align: center;
}

.us-feedback-panel .feedback-overall input[type=radio] {
    margin-top: 10px;
    width: 20px;
    height: 20px;
    float: left;
}

.us-feedback-panel .feedback-overall label {
    padding-right: 20px;
    line-height: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    color: #333333;
}

.us-feedback-panel .feedback-overall label .bad {
    color: #CC0000;
}

.us-feedback-panel .feedback-overall label .ok {
    color: #FFAE00;
}

.us-feedback-panel .feedback-overall label .good {
    
    color: #5da423;
}

.us-feedback-panel .feedback-overall i {
    
    font-size: 26px;
}

.update-supercharge-levels {

    font-size: 20px;
    text-align: center;
}

.button.supercharge {
    background-color: #CCC;
}

.update-supercharge-levels .fa-bolt-lightning, .button.supercharge {
    color: #999999;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 1px #000;
}

.update-supercharge-levels .fa-bolt-lightning.active, .builder-busy .fa-bolt-lightning.active, .upload-village-changes .fa-bolt-lightning.active {
    color: #49D7FD;
}

.builder-busy .fa-bolt-lightning.active, .upload-village-changes .fa-bolt-lightning.active {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 1px #000;
}

.walls-level {
    padding-bottom: 10px;
    color: #000000;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.walls-overview {
    margin-top: 60px;
    background-color: #E6E6E6;
}

.walls-overview h2 {
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: bold;
}

.walls-overview h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.walls-overview-figure {
    font-size: 16px;
    font-weight: bold;
}

.walls-overview-count {
    margin: 30px 0 5px 0;
    font-size: 18px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .walls-overview {
        margin-top: 0;
    }

    .walls-overview h2 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .walls-overview h3 {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .walls-overview-count {
        margin: 0 0 5px 0;
        font-size: 14px;
    }
}

.walls-overview-count i.fa-check {
    color: #4A831C;
    font-size: 25px;
}

.walls-overview-count i.fa-times {
    color: #CC0000;
    font-size: 25px;
}

.walls-overview-status i {
    font-size: 18px;
}

.walls-overview-status .success, .walls-count .success {
    color: #4A831C;
}

.walls-overview-status .warning, .walls-count .warning {
    color: #FFAE00;
}

.walls-overview-status .error {
    color: #CC0000;
}

.walls-overview .wall-total {
    font-weight: bold;
}

/* Large and up */
@media screen and (min-width: 64em) {

    .walls-overview .button {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/*#endregion */

/*#region Village List */

.villages-intro .reorder {
    float: right;
}

.villages-intro p.larger {
    margin: 10px 5px 30px 5px;
    font-size: 16px;
}

.village-overview-expand-link {
    line-height: 30px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.village-overview {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: solid 2px #F5F5F5;
    /*padding: 20px 0;*/
    margin-bottom: 20px;
    /*min-height: 400px;*/
}

.village-overview > h2 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 15px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    background-color: #4078C0;
    color: #FFFFFF;
}

.village-overview > h2 a {
    color: #FFFFFF;
    display: block;
}

.village-overview > h2.overview {
    background-color: #666666;
}

.village-overview > h2.overview a {
    color: #EEEEEE;
}

.village-overview > h2 a .fa-check {
    color: #5DA423;
}

.village-overview > h2 a .fa-exclamation-triangle {
    color: #FFAE00;
}


.village-overview > h2 a:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.village-overview > h2.open a:before {
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.no-villages h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: bold;
}

.no-villages p {
    margin: 20px 0;
    font-size: 16px !important;
}

.th-icon {
    margin: 10px 0;
    max-height: 190px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .village-overview > h2 {
        /*text-align: center;*/

        font-size: 17px;
    }

    .th-icon {
        max-height: 150px;
        margin: 0 auto 10px auto;
        display: block;
    }

    .clan-icon {
        max-height: 150px;
        margin: 0 auto;
        display: block;
    }
}

.village-overview > h3 {
    font-size: 16px;
    font-weight: bold;
}

.village-overview h4 {
    font-size: 14px;
}

.village-overview table {
    margin: 10px auto 20px auto;
    border: solid 1px #333333;
    /*width: auto;*/
}

.village-overview th {
    border: solid 1px #333333;
    /*font-size: 15px;*/
    font-weight: bold;
    background-color: #999999;
    color: #FFFFFF;
}

.village-overview td {
    border: solid 1px #333333 !important;
    text-align: center;
    /*font-size: 14px;*/
}

.village-overview .th-name {
    text-align: left;
    font-size: 14px;
    line-height: 30px;
}

.village-overview .th-name img {
    margin-right: 3px;
    width: 30px;
}

.village-overview .upgrade-name {
    height: 30px;
    line-height: 30px;
}

.village-overview .upgrade-name img {
    margin-right: 3px;
    max-width: 30px;
    max-height: 30px;
    float: left;
}

.village-overview-tabs .tabs li {
    margin: 0;
    border: solid 1px #999999;
    width: 50%;
}

.village-overview-tabs .tabs li.is-active {
    margin: 0;
    border: solid 1px #333333;
    font-weight: bold;
    z-index: 9000;
}

.village-overview-tabs .tabs li a, .village-overview-tab .tabs li.is-active a {
    margin: 0;
    outline: 0;
    font-size: 14px;
}

.village-overview-tabs .tabs-panel {
    min-height: 0;
}

#overall-timers table {
    margin-top: 0;
}

#overall-timers table tr.odd {
    background-color: inherit;
}

#overall-timers table tr.even {
    background-color: #f1f1f1;
}

#overall-timers .scroll {
    margin-bottom: 10px;
    max-height: 60vh;
    overflow: auto;
}

#overall-timers .scroll::-webkit-scrollbar {
    width: 10px;
}

#overall-timers .scroll::-webkit-scrollbar-track {
    background: #DEDEDE;
}

#overall-timers .scroll::-webkit-scrollbar-thumb {
    background: #4078C0;
}

#overall-timers .scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(66,92,126,1);
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .village-overview-tabs .tabs li a, .village-overview-tab .tabs li.is-active a {
        font-size: 12px;
    }

    .village-overview-tabs .tabs-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .village-overview .th-name {
        font-size: 13px;
        text-align: center;
    }

    .village-overview .th-name img {
        /*margin: 0 auto;
        display: block;*/
        display: none;
    }
}

/* If < 460px hide the progress column */
@media screen and (max-width: 28.75em) {

    #overall-timers th, #overall-timers td {
        padding-left: 4px;
        padding-right: 4px;
    }

    .village-overview .upgrade-name img {
        display: none;
    }

    .village-overview .progress-col {
        display: none;
    }
}

@media screen and (min-width: 64em) and (max-width: 69.375em) {

    #overall-timers th, #overall-timers td {
        padding-left: 4px;
        padding-right: 4px;
    }

    .village-overview .th-strip {
        width: 4px;
    }
}

.village-overview .th-strip {
    padding: 0 !important;
    width: 8px;
}

.village-overview .progress {
    margin: 0;
}

.village-overview-details {
    font-size: 14px;
}

.village-overview-details h3 {
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.hero-wall-holder {
    border: solid 2px #F5F5F5;
    margin-bottom: 5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.hero-wall-holder h3 {
    margin-top: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    background-color: #4078C0;
    text-align: center;
}

.hero-wall-holder .grid-x {
    padding: 5px 10px;
}

.hero-holder {
    height: 60px;
}

.upgrade-holder {
    margin-bottom: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.upgrade-holder h3 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: normal;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    background-color: #4078C0;
    cursor: pointer;
    user-select: none;
    -ms-user-select: none;
    overflow: hidden;
}

.upgrade-details-home-title strong {
    font-size: 16px;
}

.upgrade-details-home-title a {
    color: #FFFFFF;
    display: block;
}

.upgrade-details-home-title:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.upgrade-details-home-title.open:before {
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.upgrade-details-home-title:after {
    content: 'Click for Details';
}

.upgrade-details-home-title.open:after {
    content: 'Click to Collapse';
}

.upgrade-holder h4 {
    margin: 5px 0;
    font-weight: bold;
}

.upgrade-details-home-overview {
    padding: 10px 0 5px 0;
    font-size: 16px;
}

.upgrade-details-home-overview .fa-check {
    color: #5DA423;
}

.upgrade-details-home-overview .fa-exclamation-triangle {
    color: #FFAE00;
}

/*.upgrade-details-home img {

    margin-left: 30px;
    max-height: 30px;
    float: left;
}*/

/*#endregion */

/*#region Village Overview */


/* Small */
@media screen and (max-width: 41.8375em) {

    .village-name h1 {
        font-size: 32px;
    }
}

.village-progress-summary h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.village-progress-summary h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.village-progress-holder {
    height: 23px;
    white-space: nowrap;
}

.village-progress-holder .progress {

    margin-right: 3px;
	margin-bottom: 0;
	/*border: solid 1px #999999;*/
	width: 100px;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
	float: left;
}

/* Small */
@media screen and (min-width: 64em) and (max-width: 69.375em) {

    .village-progress-holder .progress {
        width: 85px;
    }
}

.village-timeathall {

	font-size: 14px;
}

.village-timeathall i {
	
	margin-left: 10px;
}

.village-timeathall i.fa-check, .faq-hall-status i.fa-check {
	color: #5da423;
}

.village-timeathall i.fa-tilde, .faq-hall-status i.fa-tilde {
	color: #AAAAAA;
}

.village-timeathall i.fa-history, .faq-hall-status i.fa-history {
	color: #4078C0;
}

.village-timeathall i.fa-times, .faq-hall-status i.fa-times {
	color: #CC0000;
}

.village-timeathall i.fa-question, .faq-hall-status i.fa-question {
	color: #AAAAAA;
}

@keyframes api-update-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 164, 35, 0.7); }
    50%       { box-shadow: 0 0 0 6px rgba(93, 164, 35, 0); }
}

.api-export-update-available {
    border: solid 1px #5da423;
    display: inline-block;
    padding: 3px 8px;
    /*background-color: #5da423;*/
    background-color: #e1faea;
    color: #333;
    /*color: #EEEEEE;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;*/
    border-radius: 3px;
    animation: api-update-pulse 5s ease-in-out infinite;
}

.next-th {
    margin: 0;
    padding: 15px 15px 5px 15px;
    height: 185px;
}

/* Large and up */
@media screen and (min-width: 64em) {

    #pnlNextTH {
        margin-top: 25px;
    }

    .next-th {
        height: 226px;
    }
}

#imgUpgradingTH {
    margin: 0 0 10px 20px;
    max-height: 70px;
    float: left;
}

#pnlModifyCompleteButtons {
    width: 180px;
    height: 75px;
    margin: 0 auto;
}

.next-th .small-button-holder {
    margin-top: 20px;
    float: left;
}

.next-th .progress {
    margin-bottom: 5px;
    clear: both;
}

.next-th .upgrade-timer {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    clear: both;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .next-th .upgrade-timer {
        font-size: 12px;
    }
}

.next-th .upgrade-timer .gem-amount {
    padding-left: 10px;
    color: #4C8905;
    font-size: 12px;
    line-height: 16px;
}

.next-th .upgrade-timer .gem-amount img {
    height: 16px;
}

.mass-update-buttons, .boost-buttons {
    margin: 0;
    padding: 5px 15px;
}

.mass-update-buttons img, .boost-buttons img {
    margin-right: 10px;
    height: 40px;
}

#btnBobSettings {
	margin-top: 10px;
	margin-bottom: 5px;
	padding-top: 8px;
	padding-bottom: 8px;
	max-width: 200px;
	line-height: 18px;
	font-size: 13px;
}

#hypSwitchTo {
    margin: 10px 0 5px 5px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
    line-height: 18px;
    min-height: 53px;
}

.boost-buttons .button {
    margin-bottom: 8px;
    line-height: 20px;
}


#pnlBuilderPotion, #pnlClockTowerBoost {
    margin-right: 5px;
    line-height: 20px;
}

#pnlResearchPotion, #pnlClockTowerPotion {
    margin-left: 5px;
}

/* Medium and up */
@media screen and (min-width: 41.9em) {

	#pnlPetPotion {
		margin-left: 10px;
	}
}

/* Hacky break points for certain screen sizes */
/*@media screen and (min-width: 715px) and (max-width: 990px) {

	#pnlBuilderPotion, #pnlResearchPotion, #pnlPetPotion {
		height: 80px;
	}
}*/


@media screen and (min-width: 1024px) and (max-width: 1220px) {

	#pnlBuilderPotion, #pnlResearchPotion, #pnlPetPotion {
		height: 80px;
	}
}

.mass-update-buttons .button {
    margin: 0 5px 5px 5px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .boost-buttons .button {
        padding: 5px 10px;
    }

    .boost-buttons img {
        margin-right: 0;
        height: 40px;
    }

	#btnBobSettings {
		margin-right: 5px;
		font-size: 13px;
	}
}

#season-boost-values {
    margin: 0;
    line-height: 40px;
}

#season-boost-values img {
    margin-left: 10px;
    margin-right: 0;
    height: 30px;
}

.ut-event-info {

    margin-top: 10px;
    margin-bottom: 0;
}

.ut-event-info .toggle {

    margin-right: 4px;
    font-size: 18px;
    float: right;
}

.ut-event-info .event-icon {
    max-height: 55px;
    margin-right: 10px;
}

.ut-event-info h3 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #FDF9BA;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
    transition: font-size 0.25s ease-in-out;
}

/*.ut-event-info .mini h3 {

    margin-right: 10px;
    display: inline;
}*/

.ut-event-info .event-timer {
    font-size: 14px;
    transition: font-size 0.25s ease-in-out;
    white-space: nowrap;
}

.ut-event-info .event-info-link-text {
    margin-bottom: 3px;
    font-size: 14px;
    color: #203C60;
}

.ut-event-info .button {
    margin-bottom: 0;
}

.ut-event-info .event-details-button {

    float: right;
    margin-right: 20px;
}

.ut-event-info .store-link-text {
    margin-bottom: 3px;
}

/* Medium only */
@media screen and (min-width: 41.8376em) and (max-width: 63.9375em) {

    .ut-event-info .event-details-button {
        
        margin-top: 12px;
    }
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .ut-event-info {

        padding: 10px;
    }

    .ut-event-info .event-details-button {
        margin-top: 12px;
        margin-right: 30px;
    }

    /*.ut-event-info .mini .event-icon {
        max-height: 40px;
    }*/

    /*.ut-event-info .mini h3 { 
        font-size: 14px;
    }*/

    .ut-event-info h3 {
        font-size: 16px;
    }

    .ut-event-info .event-timer {
        font-size: 14px;
    }

    /*.ut-event-info .mini .event-timer {
        font-size: 12px;
    }*/
}

#pnlTraderOffers {
    margin-top: 20px;
}

.trader-items {
    margin: 0;
    padding: 5px 15px;
}

.trader-items-offers {
    margin: 0 0 10px 0;
    padding: 5px 15px;
}

.trader-item-offer, .trader-item-offer-full, .trader-next-occurance {
    margin-bottom: 10px;
    font-weight: bold;
}

.trader-next-occurance {
    position: relative;
}

.trader-notification {
    top: 30px;
    left: 5px;
    position: absolute;
    cursor: pointer;
}

.trader-notification .enabled {
    color: #5da423;
}

.trader-notification .disabled {
    color: #CC0000;
}

.trader-item-offer .item, .trader-item-offer-full .item {
    margin-bottom: 5px;
    max-height: 60px;
}

.trader-next-occurance .item {
    margin-bottom: 5px;
    max-height: 30px;
}

.trader-item-offer h3, .trader-item-offer-full h3, .trader-next-occurance h3 {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Small only */
@media screen and (max-width: 39.9375em) {

    .trader-item-offer-full h3 {
        font-size: 12px;
    }
}

.trader-item-offer .gem, .trader-item-offer-full .gem, .trader-next-occurance .gem {
    max-height: 18px;
}

.trader-current-day {
    background-color: #FEEABC !important;
}

#trader-items-panel-main {
    display: none;
}

#trader-items-panel-link {
    margin-top: 10px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: right;
}

.trader-items-table {
    border: solid 1px #333333;
}

.trader-items-table tbody {
    border: solid 1px #333333;
}

.trader-items-table th {
    font-size: 15px;
    font-weight: bold;
    background-color: #4078C0;
    color: #FFFFFF;
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {

    .trader-items-table th {
        font-size: 13px;
    }
}

.trader-items-table tr {
    border-bottom: solid 1px #333333;
}

.trader-items-table td {
    padding: 3px 5px;
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    #next-th-panel-button, #mass-update-panel-button {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 10px;
        min-height: 55px;
    }

    #next-th-panel-button {
        margin-right: 5px;
    }

    #mass-update-panel-button {
        margin-left: 5px;
        width: calc(100% - 5px);
    }

    #next-th-panel, #mass-update-panel {
        display: none;
    }

    #next-th-panel, #mass-update-panel {
        margin-bottom: 10px;
    }
}

#next-th-panel-button.upgrading {
    background-color: #FFE680;
    color: #333333;
}

/* Medium and up */
@media screen and (min-width: 41.9em) {

    #next-th-panel, #mass-update-panel {
        display: block !important;
    }
}

/* Medium only */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    .mass-update-buttons, .boost-buttons {
        height: 160px;
    }

    .mass-update-buttons .button {
        margin-top: 20px;
    }
}

.village-timers {

    border: solid 1px #CCC;
    margin-top: 10px;
}

.village-timer {

    margin-top: 5px;
    margin-bottom: 5px;
}

.village-timer h3 {
   
    font-size: 14px;
    display: inline-block;
}

.village-timer-info {

    font-size: 14px;
}

.village-timers .button {
    margin-bottom: 0;
}


/* Small only */
@media screen and (max-width: 41.8375em) {

    .village-timer h3 {
        padding: 0 10px;
        white-space: nowrap;
    }
}


/* Village status strip above the overview tabs - see controls/upgrade-tracker/Village-StatusStrip.ascx */
.village-status-row {
    margin-top: 10px;
}

/* Pushed to the right of the strip - on mobile they move up beside the slots, with the pills beneath (see below) */
.village-status-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.village-status-btn {
    display: block;
    width: 36px;
    height: 36px;
    border: solid 1px #333;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    line-height: 34px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    color: #EEEEEE;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.village-status-btn:hover, .village-status-btn:focus {
    color: #EEEEEE;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px, inset 0 0 0 100px rgba(255, 255, 255, 0.2);
}

.village-status-share {
    background-color: #FFAE00;
}

.village-status-notifications {
    background-color: #DA494A;
}

.village-status-strip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    min-height: 36px;
}

.vss-item {
    display: flex;
    align-items: center;
}

.vss-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

/* The slots container and the potion/boost pills share the same look and height */
.vss-slots, .vss-pill {
    box-sizing: border-box;
    height: 44px;
    border: 1px solid #333333;
    border-radius: 12px;
    background: #4078c0;
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

.vss-slots {
    display: flex;
    align-items: stretch;
    padding: 4px 2px;
    /* Stops the slots being selected/highlighted when tapped on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.vss-slot {
    padding: 0 10px;
    cursor: pointer;
}

/* Divider lines between the slots - same as the planner zoom buttons (.timeline-btn + .timeline-btn) */
.vss-slot + .vss-slot {
    --vss-divider: rgba(255, 255, 255, 0.4);
    border-left: 1px solid transparent;
    border-image: linear-gradient(to bottom, transparent 20%, var(--vss-divider) 20%, var(--vss-divider) 80%, transparent 80%) 1;
}

.vss-icon {
    height: 30px;
    margin-right: 6px;
}

.vss-slot-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 13px;
}

.vss-count {
    font-size: 15px;
}

.vss-status {
    white-space: nowrap;
}

.vss-now {
    color: #3ADB76;
    font-weight: bold;
}

.vss-maxed {
    color: #FFD700;
    font-weight: bold;
}

.vss-short {
    display: none;
}

.vss-tooltip-content {
    display: none;
}

.vss-pill {
    padding: 0 12px 0 6px;
    font-size: 13px;
    white-space: nowrap;
}

.vss-pill img {
    height: 24px;
    margin-right: 5px;
}

.vss-countdown {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.vss-potion.vss-ended {
    opacity: 0.6;
}

.vss-boost {
    cursor: pointer;
    font-weight: bold;
}

.vss-boost:hover {
    box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.2);
}

.vss-tooltip {
    display: none;
    position: absolute;
    z-index: 20;
    min-width: 220px;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #333333;
    border-radius: 12px;
    background-color: #7BA3D9; /* Lighter version of the container's #4078c0 */
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    font-size: 13px;
    line-height: 1.3;
}

.vss-tooltip.active {
    display: block;
}

.vss-tt-title {
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: solid 1px rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
}

.vss-tt-upgrade + .vss-tt-upgrade {
    margin-top: 6px;
}

.vss-tt-time {
    color: #E8E8E8;
    white-space: nowrap;
}

.vss-tt-goblin {
    height: 16px;
    vertical-align: -3px;
}

.vss-tt-supercharge {
    white-space: nowrap;
}

.vss-tt-supercharge i + i {
    margin-left: 2px;
}

/* Same supercharge blue as the builders list/planner bolts */
.vss-tt-supercharge .fa-bolt-lightning {
    color: #49D7FD;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.vss-tt-idle-label {
    color: #3ADB76;
    font-weight: bold;
}

.vss-tt-next {
    padding-left: 10px;
    color: #FFD36B;
}

/* Coloured by its resource-cost-{id} class, without the tooltip's dark outline so the dark elixir (black) cost is
   readable */
.vss-tt-cost {
    color: #FFFFFF;
    font-weight: bold;
    white-space: nowrap;
}

.vss-tt-cost[class*="resource-cost-"] {
    text-shadow: none;
}

/* The usual gold (#DCAE00) is too light on the tooltip's blue */
.vss-tt-cost.resource-cost-1 {
    color: #c29515;
}

.vss-tt-cost.resource-cost-2 {
    color: #c75de6;
}

/* Dark outline to help the gold and elixir costs stand out */
.vss-tt-cost.resource-cost-1, .vss-tt-cost.resource-cost-2 {
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

.vss-tt-cost img {
    height: 14px;
    vertical-align: -2px;
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .vss-long {
        display: none;
    }

    .vss-short {
        display: inline;
    }

    /* A more compact strip so the slots and buttons fit on one row */
    .village-status-strip {
        gap: 6px 8px;
    }

    .vss-slots {
        padding: 4px 1px;
    }

    .vss-slot {
        padding: 0 5px;
    }

    .vss-icon {
        height: 22px;
        margin-right: 3px;
    }

    .vss-slot-text {
        font-size: 11px;
    }

    .vss-count {
        font-size: 13px;
    }

    .village-status-buttons {
        order: 1;
        gap: 4px;
    }

    .village-status-btn {
        width: 32px;
        height: 32px;
        line-height: 30px;
        font-size: 14px;
    }

    /* Potion/boost pills go on their own row beneath the slots and buttons, staying on one row and scrolling
       sideways rather than wrapping */
    .vss-pills {
        order: 2;
        flex: 1 1 100%;
        gap: 6px;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vss-pills::-webkit-scrollbar {
        display: none;
    }

    /* Fades out the right edge while there are more pills to scroll to - see updateStatusStripPillsFade */
    .vss-pills.vss-pills-more {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    }

    .vss-pills .vss-pill {
        flex-shrink: 0;
    }
}

.key {
    margin: 0 5px;
    border: solid 1px #666666;
    background-color: #BBBBBB;
    width: 20px;
    height: 20px;
    float: left;
}

.key-label {
    line-height: 20px;
    float: left;
}

#village-share-progress, #village-notification-options {
    margin-top: 10px;
    line-height: 40px;
}

#village-share-progress, #overview-notification-options, #village-notification-options {
    font-size: 14px;
}

#village-share-progress {
    color: #FFAE00;
    cursor: pointer;
}

#overview-notification-options a, #village-notification-options a {
    color: #DA494A;
}

#ddlTabs {
    margin-top: 10px;
}

#overview-tabs {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    margin-top: 10px;
    border-spacing: 3px 0;
    scrollbar-color: #4078C0 #DEDEDE;
    scrollbar-width: thin;
    /* height: 64px;*/
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
}

#overview-tabs li {
}

#overview-tabs::-webkit-scrollbar {
    height: 10px;
}

#overview-tabs::-webkit-scrollbar-track {
    background: #DEDEDE;
}

#overview-tabs::-webkit-scrollbar-thumb {
    background: #4078C0;
}

#overview-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(66,92,126,1);
}

/*#overview-tabs .tabs-title {
    float: none;
    display: table-cell;
}*/

.tabs-title {
    margin-right: 2px;
    background-color: #BBBBBB;
    text-align: center;
}

#cphBody_tabBuilderPlanner, #cphBody_tabLabPlanner, #cphBody_tabStats {
    margin-right: 2px;
    background-color: #EEEEEE;
}

.tabs-title a {
    padding: 17px 8px 18px 8px;
    color: #333333;
    border-right: none;
    font-size: 13px;
    line-height: 15px;
    transition: background-color 0.25s ease-out, color 0.25s ease-out;
}

.tabs-title:not(.green):not(.yellow) a {
    min-height: 50px;
}

.tabs-title a:hover {
    background-color: #14679e;
    color: #FFFFFF;
    text-decoration: none;
}

.tabs-title > a[aria-selected='true'] {
    background-color: #4078C0;
    color: #FFFFFF;
}

.tabs-title.green, .green {
    background-color: #97DC5F;
}

.tabs-title.green > a[aria-selected='true'] {
    color: #FFFFFF;
    background-color: #5da423;
}

.tabs-title.green a {
    color: #333333;
}

.tabs-title.green > a:hover {
    background-color: #4a831c;
}

.tabs-title.yellow, .yellow {
    background-color: #FFCF6A;
}

.tabs-title.yellow > a[aria-selected='true'] {
    background-color: #FFBD35;
}

.tabs-title.yellow a {
    color: #333333;
}

.tabs-title.yellow > a:hover {
    background-color: #cc8b00;
}

.tabs-title > a[aria-selected='true'] {
    outline: solid 1px #666666;
}

.tabs-title.green a, .tabs-title.yellow a {
    padding: 10px 8px;
}

/* Medium only */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    .tabs-title a {
        padding: 15px 4px;
        font-size: 11px;
    }
}

.tabs-panel {
    min-height: 40vh;
}

.overview-tab h2 {
    margin-bottom: 20px;
    margin-right: 30px;
    width: auto;
    height: 35px;
    font-size: 20px;
    font-weight: bold;
    float: left;
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .overview-tab h2 {
        margin-right: 0;
    }
}

.overview-tab h3 {
    font-size: 16px;
}

.api-holder {
    float: left;
}

.apiUpdate {
    margin-bottom: 0;
    /*float: left;*/
}

.api-tooltip {
    margin: 0 0 0 10px;
    font-size: 18px !important;
    float: left;
}

.api-error {
    margin-left: 20px;
    line-height: 40px;
    font-weight: bold;
    color: #FF0000;
    float: left;
}

.faq-button {
    margin: 0 0 0 5px;
    border-bottom: dotted 1px #8a8a8a;
    font-size: 18px !important;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    display: inline-block;
}

.faq-button.small {
    margin-left: 2px;
    font-size: 14px !important;
}

.api-delay-message {
    margin: 3px 0 10px 0;
    font-size: 12px !important;
}

.overview-table, .otto-table {
    border: solid 1px #333333;
    /*width: auto;*/
}

.overview-table tbody, .otto-table tbody {
    border: solid 1px #333333;
}

.overview-table th, .otto-table th {
	font-size: 15px;
	font-weight: bold;
	background-color: #4078C0;
	color: #FFFFFF;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.overview-table .button {
    margin: 0;
}

.overview-table .fa-trophy {
    color: #DCAE00;
}

.overview-table tr.highlight {

    background-color: #F5F6B0;
}

.overview-table td.highlight {
    background-color: #a9d774;
}

.overview-table .th-stripe {

    padding: 0;
    width: 5px;
}

.upgrade-info-images img {

    margin-bottom: 20px;
    max-height: 100px;
}

.global-attributes-table {

    margin: 10px auto;
    width: auto;
}

.global-attributes-table td {
    font-size: 14px;
}

/* Squads' Troops cell (UpgradeInfo.LoadSquad) - each member's icon and count */
.global-attributes-table .squad-member {
    display: inline-block;
    white-space: nowrap;
    margin: 0 4px;
}

.global-attributes-table .squad-member img {
    height: 32px;
    vertical-align: middle;
}

/* Squads - the player's level of each troop in the squad, beneath the global attributes table */
.squad-troop-levels {
    margin-bottom: 10px;
}

.squad-troop-levels-note {
    margin-bottom: 5px;
}

.squad-troop-level {
    display: inline-block;
    white-space: nowrap;
    margin: 0 8px 5px;
}

.squad-troop-level img {
    height: 28px;
    vertical-align: middle;
}

.squad-troop-level-max {
    opacity: 0.75;
}


.upgrade-info-table tr th {
    border-bottom: solid 1px #333;
}

.upgrade-info-table td {

    font-size: 14px;
}

.upgrade-info-progress-bar-heading {
    
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #FFF5C1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.upgrade-info-progress-bar-holder {
    height: 40px;
    position: relative;
}

.upgrade-info-progress-bar-icon {

    width: 30px;
    display: inline-block;
}

.upgrade-info-progress-bar-icon img {

    margin-top: 10px;
    max-height: 25px;
}

.upgrade-info-time-column {
    min-width: 80px;
}

.upgrade-info-progress-bar-container {
    display: inline-block;
}

.upgrade-info-progress-bar {
    margin-top: 4px;
    border-radius: 5px;
    border: solid 1px #333;
    width: calc(100% - 40px);
    height: 25px;
    background-color: #CCC;
    border-radius: 5px;
    top: 7px;
    position: absolute;
    z-index: 4;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.upgrade-info-progress-bar-title {
    
    left: 40px;
    font-size: 15px;
    font-weight: bold;
    position: absolute;
    top: 0;
    z-index: 5;
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.upgrade-info-progress-bar-value {
    height: 100%;
    float: left;
    transition: width .25s ease-in-out, border-radius .25s ease-in-out, background-color .25s linear;
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(1) {
    
    border-radius: 5px 0 0 5px;
    background-color: #4078C0;
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(1).reduction {
    background-color: #4078C0;
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(2) {
    background-color: #80b3f5;
    /*border-radius: 0 3px 3px 0;*/
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(2).existing {
    background-color: #ec7f7f;
}

/* Stats where a decrease is the improvement (e.g. a squad's housing space and splash cap - see
   UpgradeInfo.AttributeColumn.LowerIsBetter) - show the reduction in green rather than red */
.upgrade-info-progress-bar.lower-is-better .upgrade-info-progress-bar-value:nth-of-type(2).existing {
    background-color: #a9d774;
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(1).rounded {
    border-radius: 5px;
}

.upgrade-info-progress-bar .upgrade-info-progress-bar-value:nth-of-type(2).rounded {
    border-radius: 0 5px 5px 0;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    .upgrade-info-images {
        text-align: center;
    }

    .upgrade-info-images img {
        margin-top: 0;
        margin-bottom: 0;
        max-height: 80px;
    }

    .upgrade-info-description p.larger {
        font-size: 14px;
        line-height: 18px;
    }

    .global-attributes-table td, .upgrade-info-table td {
        padding: 7px 5px;
        font-size: 12px;
    }

    .upgrade-info-progress-bar-heading {
        font-size: 16px;
    }

    .upgrade-info-progress-bar-title {
        font-size: 14px;
    }
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {

    .global-attributes-table td, .upgrade-info-table td {
        padding: 7px 5px;
        font-size: 13px;
    }

    .upgrade-info-images img {
        max-width: 60px;
    }

    .upgrade-info-progress-bar-heading {
        font-size: 14px;
    }

    .upgrade-info-progress-bar-title {
        font-size: 13px;
    }
}

.upgrade-info-table tr td:nth-child(1),
.upgrade-info-table tr td:nth-child(2) {
    position: sticky;
    background-color: inherit;
    left: -1px;
}

.upgrade-info-table .sticky-header {
    border-bottom: solid 1px #333;
    position: sticky;
    top: -1px;
    left: -1px;
}

.upgrade-info-table tr:hover td {
    background-color: #A0BBDE;
    transition: background-color 0.25s ease-out;
}

.upgrade-info-table tr.opacity {
    opacity: 0.7;
}

.upgrade-info-table td.upgrade-required {

    color: #CC0000;
}

.upgrade-info-table tr.upgrade-required {
    background-color: #efcdcd;
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .overview-table th {
        font-size: 13px;
    }
}

.overview-table tr {
    border-bottom: solid 1px #333333;
}

.overview-table.gvForge td, .overview-table.gvForgeConversion td {
	text-align: center;
}

.overview-table.gvForge td.overview-title {
	
	width: 80px;
}

.pnlForgeIdle {

	line-height: 85px;
	font-size: 16px;
	color: #EEEEEE;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

/*.overview-table.gvForge td.forge-status {

	border-right: solid 1px #333333;
	min-width: 150px;
}*/

.forge-modify-buttons {

	margin-top: 20px;
}

.forge-resource-button {
	border: solid 1px #333333;
	width: 40px;
	height: 40px;
	line-height: 25px;
	margin: 0 2px;
	border-radius: 3px;
	padding: 5px 8px;
	/*color: #FFFFFF !important;*/
	background-color: #CDC6B6;
	font-size: 12px;
	transition: background 0.3s linear;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	cursor: pointer;
	display: inline-block;
}

.forge-resource-button:hover {

	background-color: #DFDBD0;
}

.forge-resource-button.selected {

	background-color: #9CE244;
}

.forge-resource-button img {

	height: 20px;
}

.forge-craft-quote-box {

	border: solid 1px #333333;
	margin: 5px auto 0 auto;
	padding: 5px;
	border-radius: 5px;
	width: 220px;
	height: 38px;
	background-color: #C2B9AA;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
	transition: background 0.3s linear;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.forge-craft-quote-box.ready {
	cursor: pointer;
	background-color: #4078C0;
}

.forge-craft-quote-box.ready:hover {
	background-color: #14679e;
}

.forge-quote-select-resource {

	line-height: 26px;
}

.forge-quote-select-loading {
	line-height: 26px;
	display: none;
}

.forge-quote-holder {
	margin: 0 auto;
	width: 180px;
	line-height: 26px;
	display: none;
}

.forge-quote-holder img {

	margin-top: -2px;
	height: 20px;
	display: inline-block;
}

.forge-quote-resource {

	width: 70px;
	float: left;
}

.forge-quote-arrow {

	width: 40px;
	float: left;
}

.forge-quote-arrow .fa-arrow-alt-right {

	margin: 0 5px;
	font-size: 24px;
	color: #9CE244;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
	display: inline;
}

.forge-quote-clear-button {
	
	margin-right: 10px;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.forge-quote-clear-button .fa-ban {

	margin-right: 3px;
	font-size: 14px;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.forge-quote-bulkcraft-button {

	margin-left: 10px;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.forge-bulkcraft-error {

	color: #CC0000;
	font-size: 14px;
	font-weight: bold;
}

/* Medium and up */
@media screen and (min-width: 41.9em) {

	.forge-bulkcraft-error {
		
		margin-top: 10px;
	}
}

.forge-quote-bulkcraft-button .fa-arrow-alt-right {
	color: #9CE244;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.forge-quote-capital-gold {

	width: 70px;
	float: left;
}

.forge-craft-button {
	margin: 3px 0 0 0 !important;
	font-weight: bold;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}


/* Small only */
@media screen and (max-width: 41.8375em) {

	.forge-modify-buttons {
		margin-top: 5px;
	}

	.pnlForgeIdle {
		line-height: 30px;
		font-size: 16px;
	}

	.forge-resource-button {
		width: 34px;
		height: 34px;
		line-height: 22px;
		padding: 5px 5px;
	}

	.forge-resource-button img {
		height: 18px;
	}
}

.gvForgeConversion {

	font-size: 14px;
	line-height: 24px;
}

.overview-table.gvForgeConversion {

	margin-bottom: 0;
}

.gvForgeConversion .fa-arrow-alt-right {
	margin: 0 5px;
	font-size: 24px;
	color: #9CE244;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
	display: inline;
}

.gvForgeConversion img {
	
	margin-top: -2px;
	height: 20px;
	display: inline-block;
}

.otto-table td {
	border: solid 1px #333333;
	font-size: 14px;
}

.otto-table .fa-check, .otto-table .fa-times, .otto-table .fa-question {
    font-size: 24px;
}

.otto-table .fa-check {
    color: #5da423;
}

.otto-table .fa-times {
    color: #CC0000;
}

.otto-table .progress {
    margin: 5px 0 0 0;
}

.otto-levels {
    font-size: 12px;
}

.otto-levels .title {
    margin-top: 5px;
    font-weight: bold;
}

#pnlMasterBuilderSwitchVillage {
    width: 240px;
    line-height: 30px;
}

#master-builder-travel-error, #village-share-error {
    margin-bottom: 10px;
    color: #FF0000;
    font-weight: bold;
    font-size: 14px;
    display: none;
}

.boost-active-message .set {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .boost-active-message h3 {
        font-size: 13px;
    }

    .boost-active-message p {
        font-size: 12px;
    }
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {

    .boost-active-message h3 {
        font-size: 14px;
    }

    .boost-active-message p {
        font-size: 13px;
    }
}


.overview-title {
    border-right: solid 1px #333333;
    width: 130px;
    font-size: 14px;
    font-weight: bold;
    background-color: #FFFFFF;
    text-align: center;
}

.overview-title img {
    height: 70px;
    display: block;
    margin: 0 auto;
}

.overview-level-icon {
    /*width: 40px;*/
    text-align: center;
    float: left;
}

.equipment-hero-title {

    text-align: center;
    font-size: 14px;
    line-height: 20px;
    height: 20px;
    background-color: #FFFFFF;
}

.entity-title {
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    height: 20px;
    background-color: #FFFFFF;
}

.overview-table .hidden-row {

    display: none;
}

.hero-equipment-filters {

    margin-bottom: 10px;
}

.hero-equipment-filters input[type=checkbox] {
    margin-top: 10px;
    width: 18px;
    height: 18px;
    float: left;
}

.supercharge-filters input[type=checkbox] {
    width: 18px;
    height: 18px;
    float: left;
}

.hero-equipment-filters label, .supercharge-filters label {
    margin-top: 10px;
    line-height: 18px;
    float: left;
}

.hero-equipment-filters .input-group, .hero-equipment-filters .button {
    margin-bottom: 0;
}

.hero-equipment-filters .input-group {
    position: relative;
}

.autocomplete-values {
    
    border: solid 1px #333;
    background-color: #EEE;
    user-select: none;
    top: 100%;
    left: 0;
    right: 0;
    position: absolute;
    display: none;
}

.autocomplete-values ul {

    margin: 5px 0;
}

.autocomplete-values li {

    padding: 3px 10px;
    list-style: none;
    font-size: 14px;
    line-height: 25px;
    font-weight: bold;
}

.autocomplete-values li.none {
    
    font-weight: normal;
    color: #999;
}

.autocomplete-values li.info {
    font-weight: normal;
}

.autocomplete-values .img-holder {

    width: 60px;
    display: inline-block;
}

.autocomplete-values li img {
    margin-right: 2px;
    height: 25px;
}

.autocomplete-values li:not(.none):not(.info):hover {

    background-color: #4078C0;
    color: #EEEEEE;
    cursor: pointer;
}

.hero-equipment-upgrade-cost-holder {
    /*width: 50px;*/
    line-height: 20px;
    display: inline-block;
    white-space: nowrap;
}

.hero-equipment-upgrade-cost {
    width: 33px;
    line-height: 20px;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

#pnlWallHideComplete {
    margin-bottom: 20px;
    border: solid 1px #e6e6e6;
    padding: 0 10px;
}

#pnlWallHideComplete label {
    margin-right: 3px;
}

#pnlWallHideComplete .faq-button {
    margin-right: 10px;
}

#pnlWallHideComplete .button {
    margin: 10px 0;
}

.overview-level-icon img {
    height: 30px;
}

.overview-level-icon img.supercharge {
    
    margin-top: 5px;
    height: 30px;
}

.overview-level {
    border-right: solid 1px #333333;
    width: 300px;
    font-size: 15px;
    text-align: center;
}

.upgrade-info-link {
    cursor: pointer;
}

.hero-equipment-overview-level {
    border-right: solid 1px #333333;
    width: 270px;
    font-size: 15px;
    text-align: center;
}

.hero-equipment-class {
    margin-top: 10px;
    margin-right: 3px;
    padding: 3px 5px;
    border: solid 1px #333333;
    border-radius: 5px;
    font-weight: bold;
    font-size: 11px;
    float: left;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.upgrade-info-description .hero-equipment-class {
    padding: 5px 8px;
    margin-right: 7px;
    margin-bottom: 10px;
    font-size: 15px;
}

.pet-ability-icon img {
    max-height: 60px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.pet-ability-name {
    font-weight: bold;
    color: #FFF5C1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.pet-ability-info {
    margin-top: 0;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    .hero-equipment-class {
        margin-top: 5px;
        margin-right: 2px;
        padding: 2px 2px;
        font-size: 9px;
    }

    .pet-ability-info {
       line-height: 18px;
    }
}

.hero-equipment-class.active {
    color: #EEEEEE;
    background-color: #5da423;
}

.hero-equipment-class.passive {
    color: #EEEEEE;
    background-color: #CCCCCC;
}

.hero-equipment-class.common {

    color: #EEEEEE;
    background-color: #2B8DFC;
}

.hero-equipment-class.epic {
    color: #EEEEEE;
    background-color: #CD56FE;
}

.overview-walls-count {
    border-right: solid 1px #333333;
    width: 250px;
    font-size: 15px;
    text-align: center;
}

.overview-walls-count .wall-rings {
    font-size: 12px;
}

.overview-walls-count .wall-rings img {
    height: 20px;
}

.overview-walls-count .wall-count {
    line-height: 50px;
}

.overview-walls-count .wall-count .small-build-button, .overview-walls-count .wall-count .small-complete-button {
    line-height: 20px;
}

.overview-level-values {
    /*width: 100px;*/
    line-height: 30px;
    float: left;
}

.supercharge-level {
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.supercharge-level .fa-bolt-lightning, .entity-sc-depletes .fa-bolt-lightning {
    color: #999999;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.supercharge-level .fa-bolt-lightning.active, .entity-sc-depletes .fa-bolt-lightning {
    color: #49D7FD;
}

.supercharge-upgrades {
    white-space: nowrap;
}

.supercharge-upgrades .fa-bolt-lightning {
    font-size: 11px;
    color: #49D7FD;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
    letter-spacing: -2px;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    .overview-table th {
        font-size: 13px;
    }

    .overview-title {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 13px;
        width: 60px;
    }

    .overview-title img {
        height: 40px;
    }

    .overview-level {
        padding-left: 4px;
        padding-right: 4px;
        width: 170px;
        font-size: 13px;
    }

    /*.overview-level .grid-margin-x, .overview-level .grid-margin-x > .cell {

        margin-left: 0;
        margin-right: 0;
    }

    .overview-level .grid-margin-x, .overview-level .grid-margin-x > .cell {
        margin-left: 0;
        margin-right: 0;
    }

    .overview-level .grid-margin-x > .small-6 {
        
        width: 50%;
    }

    .overview-level .grid-margin-x > .small-12 {

        width: 100%;
    }*/
}

/* Medium */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    .overview-title {
        width: 70px;
    }

    .overview-title img {
        height: 50px;
    }

    .hero-equipment-overview-level {
        width: 220px;
        font-size: 14px;
    }

    .overview-level-values {
        font-size: 14px;
    }

    .supercharge-upgrades .fa-bolt-lightning {
        font-size: 10px;
    }
}

/* Hero Equipment Future Levels Images */
@media screen and (max-width: 1100px)  {

    .hero-equipment-upgrade-cost-holder img {

        display: none;
    }
}

fieldset.village-share {
    padding-top: 0;
    padding-bottom: 0;
}

#village-share-status.enabled {
    margin-bottom: 10px;
    color: #5da423;
    font-size: 18px;
    font-weight: bold;
}

#village-share-status.disabled {
    margin-bottom: 10px;
    color: #FF3333;
    font-size: 18px;
    font-weight: bold;
}

.small-button-holder {
    height: 30px;
}

.small-upgrade-button, .small-build-button, .small-cancel-button, .small-complete-button {
    margin: 0 2px;
    border-radius: 3px;
    padding: 5px 8px;
    color: #FFFFFF !important;
    font-size: 12px;
    transition: background 0.3s linear;
    cursor: pointer;
    display: inline-block;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border: solid 1px #333;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

.small-upgrade-button.disabled, .small-build-button.disabled, .small-cancel-button.disabled, .small-complete-button.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.unassign-helper-button:hover {
    background-color: #a53b2a !important;
}

.unassign-helper-button:hover .fa-arrows-rotate:before {
    content: "\f1f8";
}

.unassign-helper-button:hover .fa-arrows-rotate {
    animation: none;
}

tr.helper-assigned {

    background-color: #FFF5C1 !important;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    .small-upgrade-button, .small-build-button, .small-cancel-button, .small-complete-button {
        margin-top: 3px;
    }
}

.small-build-button {
    background-color: #FFAE00;
}

.small-build-button:hover {
    color: #FFFFFF;
    background-color: #CC8B00;
}

.small-upgrade-button {
    background-color: #4078C0;
}

.small-upgrade-button:hover {
    color: #FFFFFF;
    background-color: #7098CF;
}

.small-upgrade-button.supercharge {

    margin-top: 5px;
    background-color: #CCC;
}

.small-upgrade-button:hover {
    color: #FFFFFF;
    background-color: #7098CF;
}

.small-upgrade-button .fa-bolt-lightning, .button.supercharge .fa-bolt-lightning.active {
    color: #49D7FD;
}

.small-cancel-button {
    background-color: #CC0000;
}

.small-cancel-button:hover {
    color: #FFFFFF;
    background-color: #CE533E;
}

.small-complete-button {
    background-color: #5DA423;
}

.small-complete-button:hover {
    color: #FFFFFF;
    background-color: #4C8905;
}

.fully-upgraded {
    padding-top: 3px;
    color: #4A831C;
    font-size: 25px;
}

.red-x {
    padding-top: 3px;
    color: #CC0000;
    font-size: 25px;
}

.upgrade-warning {
    font-size: 12px !important;
    font-weight: bold;
}

.unlocklevel-info {
	margin-top: 5px;
	font-size: 12px !important;
	font-weight: bold;
}

.equipmentavailability-info {
    margin-top: 10px;
    font-size: 12px !important;
    font-weight: bold;
}

.equipmentavailability-info img {
    max-height: 16px;
}

.traderavailability-info {
    color: #5da423;
    font-size: 12px !important;
}

.leagueshopavailablity-info {

    color: #cc8b00;
}

.overview-upgrades {
    width: 370px;
}

.overview-upgrades .progress, .gvForge .progress {
	margin-bottom: 5px;
	/*border: solid 1px #999999;*/
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
}

.overview-upgrades .upgrade-timer, .gvForge .upgrade-timer {
	margin-bottom: 5px;
	border-bottom: solid 1px #E6E6E6;
	font-weight: bold;
	font-size: 14px;
}

.hidden-supercharges {
    text-align: center;
    font-size: 14px;
    line-height: 44px;
    color: #cc8b00;
    font-weight: bold;
}

/* Small */
@media screen and (max-width: 41.8375em) {
    
    .overview-upgrades .upgrade-timer, .gvForge .upgrade-timer {
		font-size: 12px;
	}

    .overview-table .hidden-upgrades p {

        font-size: 12px;
    }

    .hidden-supercharges {

        margin-bottom: 5px;
        line-height: inherit;
    }
}

.overview-upgrades .upgrade-timer .gem-amount, .gvForge .upgrade-timer .gem-amount {
	padding-left: 10px;
	color: #4C8905;
	font-size: 12px;
	line-height: 16px;
}

.overview-upgrades .upgrade-timer .gem-amount img, .gvForge .upgrade-timer .gem-amount img {
	height: 16px;
}

.overview-upgrades .success {
    font-weight: bold;
    color: #4A831C;
}

.overview-upgrades .sc-upgrade-available {
    font-weight: bold;
    color: #cc8b00;
}

.overview-upgrades .otto-upgrade {
    font-weight: bold;
}

@media screen and (max-width: 39.99875em) {

    .blacksmith-level-warning {
        font-size: 10px;
    }
}

.resource-cost-1, .resource-cost-2, .resource-cost-3, .resource-cost-4, .resource-cost-5, .resource-cost-10001, .resource-cost-10002, .resource-cost-10003, .resource-cost-shiny-ore, .resource-cost-glowy-ore, .resource-cost-starry-ore, .resource-cost-sparky-stone {
    font-weight: bold;
}

.resource-cost-1 {
    color: #DCAE00;
}

.resource-cost-2, .resource-cost-4 {
    color: #AA31CD;
}

.resource-cost-3 {
    color: #000000;
}

.resource-cost-5 {
	color: #4C8905;
}

.resource-cost-shiny-ore, .resource-cost-10001 {
    color: #0392CB;
}

.resource-cost-glowy-ore, .resource-cost-10002 {
    color: #AC46CE;
}

.resource-cost-starry-ore, .resource-cost-10003 {
    color: #EE9056;
}

.resource-cost-sparky-stone {
    color: #00B9FF;
}

.future-upgrades img, .supercharge-upgrades img {
    height: 20px;
}

.entity-sc-depletes {

    margin-top: 5px;
    font-size: 12px;
    font-weight: normal;
}

/* Small */
@media screen and (max-width: 41.875em) {

    .entity-sc-depletes {
        margin-left: 10px;
        display: inline-block;
    }
}

.entity-upgrade-summary {
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(90, 90, 90, 0.1);
    font-weight: normal;
    font-size: 12px;
    display: none;
}

.entity-upgrade-summary img {
    height: 20px;
}

.entity-upgrade-summary-small {
    margin-top: 5px;
    padding: 3px;
    border-radius: 3px;
    background-color: rgba(90, 90, 90, 0.1);
    font-size: 11px;
    display: none;
}

.entity-upgrade-summary-small img {
    height: 20px;
}

.upgrade-levels-summary {
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(90, 90, 90, 0.1);
}

.upgrade-levels-summary img {
    height: 20px;
}

.missing-level {
    color: #FF3333;
}

.remaining-label img {
    margin-right: 5px;
}

.remaining-label i {
    margin-right: 5px;
    font-size: 20px;
    float: left;
}

.future-upgrade-time {
    text-wrap: nowrap;
}

/* Small and medium */
@media screen and (max-width: 63.9375em) {

    .entity-upgrade-summary {
        font-size: 11px;
    }

    .resource-cost-1, .resource-cost-2, .resource-cost-3, .resource-cost-4 {
        font-size: 11px;
    }

    .future-upgrades {
        font-size: 11px;
    }

    .future-upgrades img {
        height: 15px;
    }

    .future-upgrade-time {
        font-size: 11px;
    }

    .remaining-label {
        padding: 8px 5px;
        font-size: 11px;
    }

    .upgrade-levels-summary {
        font-size: 11px;
    }
}

.bottleneck-table {

    margin: 0;
}

.bottleneck-table td {
    
    padding: 2px 4px;
}

.stats-title {
    border-left: solid 1px #333333;
    background-color: #FFFFFF;
    text-align: center;
}

#grand-total-table {
    margin: 0;
    border: none;
}

#grand-total-table tbody, #grand-total-table tr, #grand-total-table td {
    border: none;
}

#grand-total-table tbody, #grand-total-table tbody tr {
	background-color: transparent;
}

#grand-total-table td {
    padding: 0.1rem 0.1rem;
}

/* Medium */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    #gvStats th {
        padding: 8px 5px;
        font-size: 11px;
    }

    #gvStats td {
        padding: 8px 5px;
        font-size: 11px;
    }

    .remaining-label img {
        margin-right: 0;
    }

    .remaining-label i {
        margin-right: 0;
        float: none;
    }
}

.gvOverallStats .fa-bolt-lightning, .gvOverallStats .fa-sigma, .gvOverallStats .fa-table {
    color: #666;
}

.gvOverallStats .resource-total {

    border-top: solid 1px #333;
}

#loot-planner-modal {
    overflow-x: hidden;
}

.loot-planner-modal h1 {
    font-size: 25px;
    font-weight: bold;
}

.loot-planner-modal h2 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.loot-planner-modal h3 {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.loot-planner-modal p {
    font-size: 13px;
}

.loot-planner-modal p.larger {
    font-size: 16px;
}

.loot-planner-collectors {
    padding-top: 5px;
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.4);
}

.loot-planner-collectors .resource img {
    margin: 5px 10px 0 0;
    height: 40px;
}

.loot-planner-collectors .resource .heading {
    width: 50px;
    display: inline-block;
    color: #4078C0;
}

.loot-planner-collectors .boosted-values img {
    height: 30px;
}

.loot-planner-collectors .boosted-values input[type=checkbox] {
    margin-top: 5px;
    float: left;
}

.loot-planner-collectors .boosted-values label {
    font-size: 13px;
}

.loot-planner-collectors .collector-improvement {
    margin: 0 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 16px;
    line-height: 20px;
    display: inline-block;
}

.loot-planner-collectors .collector-improvement img {
    height: 20px;
}

.loot-planner-collectors .collector-improvement .tooltiptext img {
    height: 55px;
}

.loot-planner-collectors .collector-improvement .tooltiptext .upgrade-improvement {
    margin-top: 5px;
    font-size: 12px;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.8);
}

.loot-planner-collectors .collector-improvement .tooltiptext .upgrade-improvement.resource-cost-2 {
    color: #d364f5;
}

.loot-planner-collectors .collector-improvement .tooltiptext .upgrade-improvement.resource-cost-3 {
    color: #CCCCCC;
}

.loot-planner-collectors .collector-improvement .tooltiptext .upgrade-improvement img {
    height: 15px;
}

.loot-planner-collectors .success {
    font-weight: bold;
    color: #5da423;
}


/* Small */
@media screen and (max-width: 41.8375em) {

    .loot-planner-collectors .resource {
        margin-bottom: 10px;
    }

    .loot-planner-collectors .resource img {
        margin: 5px 5px 0 0;
        height: 28px;
    }

    .loot-planner-collectors .boosted-values .button {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .loot-planner-collectors .boosted-values img {
        height: 25px;
    }

    .loot-planner-modal p {
        margin: 3px 0 3px 0;
    }

    .loot-planner-collectors .collector-improvement {
        font-size: 14px;
        line-height: 18px;
    }
}

.loot-planner-resources-table {

	margin-bottom: 0;
	border: solid 1px #333333;
}

.loot-planner-resources-table tbody {
	border: solid 1px #333333;
}

/* Tooltip container */
.hover-tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted #333333; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.hover-tooltip .tooltiptext {
    border-radius: 6px;
    padding: 5px;
    margin-left: -110px; /* Use half of the width (120/2 = 60), to center the tooltip */
    width: 230px;
    background-color: #666666;
    color: #FFFFFF;
    text-align: center;
    top: 100%;
    left: 50%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s linear,opacity 0.3s linear;
    position: absolute;
    z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.hover-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.hover-tooltip .tooltiptext::after {
	content: " ";
	position: absolute;
	bottom: 100%; /* At the bottom of the tooltip */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #666666 transparent;
}

.lootplanner-showhide {
    margin-bottom: 0;
}

.loot-planner-modal .availability {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
}

.loot-planner-star-bonus {
    padding-top: 5px;
    padding-bottom: 10px;
    height: 271px;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.4);
}

.loot-planner-star-bonus-builder {
	height: 290px;
}

.loot-planner-star-bonus .resource {
    font-size: 14px;
}

.loot-planner-star-bonus .resource img {
    margin: 0px 5px 0 0;
    height: 20px;
}

.loot-planner-star-bonus h2 {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.loot-planner-star-bonus .league img {
    margin: 0px 5px 0 0;
    height: 60px;
}

.loot-planner-star-bonus .league .trophy-count {
    font-size: 16px;
    font-weight: bold;
    color: #FFDA44;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.next-upgrade, .required-resources {
    margin-bottom: 0;
    padding: 5px 10px 10px 10px;
    min-height: 125px;
}

.next-upgrade-height, .required-resources-height {
    min-height: 300px;
}

.required-resources-height {
    height: 300px;
    scrollbar-color: #4078C0 #DEDEDE;
    scrollbar-width: thin;
    overflow-x: hidden;
    overflow-y: auto;
}

.required-resources-height::-webkit-scrollbar {
    width: 10px;
}

.required-resources-height::-webkit-scrollbar-track {
    background: #DEDEDE;
}

.required-resources-height::-webkit-scrollbar-thumb {
    background: #4078C0;
}

.required-resources-height::-webkit-scrollbar-thumb:hover {
    background: rgba(66,92,126,1);
}

/* Large only */
@media screen and (min-width: 64em) {

    .required-resources-height {
        min-height: 300px;
    }
}

.required-resources .resource {
    margin-right: 8px;
}

/* Keep every resource (including gems) on the same row as its time */
.required-resources .required-resources-row {
    flex-wrap: nowrap;
}

.required-resources .required-resources-row .resource {
    white-space: nowrap;
}

.required-resources .required-resources-row .resource:last-child {
    margin-right: 0;
}

.next-pet-upgrade-height {
    min-height: 100px;
}

.next-pet-upgrade-height-more {
    min-height: 110px;
}

.next-upgrade .single-upgrade .entity-image {
    margin-top: 40px;
    height: 80px;
}

.next-upgrade .single-upgrade p {
    font-size: 13px !important;
}

.next-upgrade .single-upgrade .resource {
    font-size: 16px;
    line-height: 25px;
}

.next-upgrade .single-upgrade .resource img {
    height: 25px;
}

.next-upgrade .single-pet-upgrade .entity-image {
    margin-top: 10px;
    margin-right: 20px;
    height: 40px;
    float: left;
}

.next-upgrade .single-pet-upgrade .resource {
    margin-top: 20px;
    font-size: 14px;
    line-height: 25px;
}

.next-upgrade .single-pet-upgrade .resource img {
    height: 25px;
}

.next-upgrade .multi-upgrade .entity-image {
    margin-top: 10px;
    height: 40px;
}

.next-upgrade .single-row.multi-upgrade {
    margin-top: 50px;
}

.next-upgrade .multi-upgrade p, .next-upgrade .multi-upgrade .resource {
    margin-bottom: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.multi-upgrade .resource {
    line-height: 19px;
}

.next-upgrade .multi-pet-upgrade .entity-image {
    margin-top: 10px;
    margin-right: 10px;
    max-width: 40px;
    max-height: 40px;
    float: left;
}

.next-upgrade .multi-pet-upgrade p, .next-upgrade .multi-pet-upgrade .resource {
    margin-bottom: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.next-upgrade .multi-pet-upgrade .resource, .next-upgrade .multi-pet-upgrade .hammer {
    margin-top: 20px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .loot-planner-star-bonus {
        height: 220px;
    }

	.loot-planner-star-bonus-builder {
		height: 300px;
	}

    .loot-planner-modal .availability {
        margin-top: 20px;
        margin-bottom: 15px;
        padding-top: 5px;
        font-size: 12px;
    }

    .loot-planner-modal .availability-label {
        margin-top: 5px;
    }

    #lootplanner-collectors, #lootplanner-leagueinfo {
        display: none;
    }

	.planner-buttons .button { 

		margin-top: 20px;
		margin-bottom: 0;
	}

	.duration-description {
		margin-top: 15px;
	}

    .next-upgrade.single {
        height: 200px;
    }

    .next-upgrade-height, .required-resources-height {
        min-height: 160px;
    }

    .required-resources .resource {
        margin-right: 12px;
    }

    .next-upgrade .single-upgrade .entity-image {
        margin-top: 10px;
        height: 70px;
    }

    .next-upgrade .single-row.multi-upgrade {
        margin-top: 10px;
    }
}

/* Medium only */
@media screen and (min-width: 41.8376em) and (max-width: 63.9375em) {

    #loot-planner-modal fieldset {
        padding-left: 10px;
        padding-right: 10px;
    }

    .loot-planner-modal .availability {
        padding-top: 20px;
        padding-bottom: 20px;
        font-size: 12px;
    }

    .loot-planner-collectors .resource {
        margin-bottom: 10px;
    }

    .loot-planner-star-bonus {
        height: 313px;
    }

    .loot-planner-star-bonus h2 {
        white-space: nowrap;
    }

    .loot-planner-star-bonus .button {
        margin-bottom: 3px;
    }

    .loot-planner-star-bonus .league img {
        margin-top: 8px;
        height: 40px;
    }

    .loot-planner-modal h3 {
        font-size: 13px;
    }

    .loot-planner-star-bonus .trophy-count {
        margin-bottom: 10px;
    }

    .required-resources .resource {
        margin-right: 12px;
    }

    .loot-planner-star-bonus .resource img {
        margin: 0px 3px 0 0;
        height: 15px;
    }

    .loot-planner-star-bonus .resource {
        margin-bottom: 5px;
        font-size: 13px;
    }
}

/* Large only */
@media screen and (min-width: 64em) {

	.planner-buttons .button {
		margin-bottom: 0;
	}

	.duration-description {
		line-height: 35px;
	}
}

/* Above large */
@media screen and (min-width: 1100px) {

    .required-resources .resource {
        margin-right: 15px;
    }
}

/*#endregion */

/*#region Builder Planner */
.planner-entity-icon {
    margin-right: 5px;
    width: 40px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    float: left;
}

#builders-items-loading, #lab-items-loading, #petplanner-items-loading {
    text-align: center;
    height: 100px;
    line-height: 100px;
}

#builders-items, #lab-items, #petplanner-items {
    display: none;
}

.active-hours {

    font-size: 14px;
    line-height: 37px;
}

.planner-queue-status {
    font-size: 14px;
}

.planner-queue-status .fa-solid {
    margin-top: 2px;
    margin-right: 10px;
    font-size: 40px;
}

.planner-queue-status .success {
    color: #5da423;
}

.planner-queue-status .alert {
    color: #a22524;
}

.planner-queue-status .warning {
    color: #926F2B;
}

/* Small */
@media screen and (max-width: 41.8375em) {


    .planner-queue-status {
        font-size: 13px;
    }

    .planner-queue-status .fa-solid {
        margin-right: 5px;
        font-size: 30px;
    }
}

.builder {
    margin: 0 2px 20px 2px;
    border: solid 1px #999999;
    width: 100%;
    /*min-height: 100px;*/
    height: auto;
    float: left;
    /*overflow-x: scroll;
    white-space: nowrap;*/
}

.builder h2, .unassigned-items h2 {
    margin: 0;
    padding-left: 10px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    background-color: #4078C0;
    color: #FFFFFF;
    display: block;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
    float: none;
}

.builder h2 .fa-minus-circle, .builder h2 .fa-arrow-right-arrow-left {
    
    padding-right: 10px;
    line-height: 40px;
    color: #FFFFFF;
    cursor: pointer;
    float: right;
}

#builders-chart.timeline-dragging .vis-tooltip {
    display: none !important;
}

/* Selected upgrades on the builder timeline can be dragged between rows: stop the browser scrolling the page instead
   (the timeline itself only allows vertical panning, which would otherwise win on touch screens) */
#builders-chart .vis-item.vis-selected, #builders-chart .vis-item.vis-selected * {
    touch-action: none;
    -ms-touch-action: none;
}

.builder h2 .swap-queue-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.unassigned-items h2 {
    font-weight: normal;
}

.swap-queue-modal h1, .swap-queue-modal > p {
    text-align: center;
}

.swap-queue-modal .swap-queue-source-items > li {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.swap-queue-modal .swap-queue-source-items > li.swap-queue-selected {
    box-shadow: inset 0 0 0 3px #5DA423;
}

.swap-queue-modal .swap-queue-source-items.swap-queue-single > li {
    cursor: default;
}

/* Hidden rather than removed so the modal height and button positions don't shift */
.swap-queue-modal .swap-queue-note-hidden {
    visibility: hidden;
}

.swap-queue-modal .swap-queue-selected-note {
    margin-bottom: 0;
}

.swap-queue-modal .text-center .button {
    margin-bottom: 0;
}

.swap-queue-modal .swap-queue-items {
    margin: 0 0 1rem 0;
    max-height: 340px;
    overflow-y: auto;
    list-style-type: none;
}

/* Draggable red insertion line on the destination list */
.swap-queue-modal .swap-queue-items li.swap-queue-marker {
    height: 20px;
    min-height: 20px;
    margin: 0 5px;
    touch-action: none; /* lets touch-punch drag it instead of the browser scrolling */
    -ms-touch-action: none;
    padding: 0;
    border: none;
    outline: none;
    cursor: ns-resize;
    background: linear-gradient(to bottom, transparent 8px, #CC2222 8px, #CC2222 11px, transparent 11px);
}

.swap-queue-modal .swap-queue-items li.swap-queue-marker.ui-sortable-helper {
    background: linear-gradient(to bottom, transparent 8px, #CC2222 8px, #CC2222 11px, transparent 11px);
}

.swap-queue-modal .swap-queue-items li.swap-queue-empty {
    font-style: italic;
    text-align: center;
    opacity: 0.7;
}

.swap-queue-modal .swap-queue-mode label {
    display: inline-block;
    margin: 0 20px 4px 0;
}

.unassigned-items select {
    font-size: 14px;
    display: inline;
}

.builders-list, .lab-list, .petplanner-list, .swap-queue-items {
    border: solid 1px #CCCCCC;
    margin: 5px;
    padding: 5px;
    list-style-type: none;
    /*height: 50px;*/
}

.builders-list:not(#builders-0), .lab-list:not(#lab-0), .petplanner-list:not(#petplanner-0) {
    max-height: 430px;
    overflow-y: auto;
}

#chkBuildersSingleRow {

    margin: 4px 5px 0 2px;
    width: 18px;
    height: 18px;
    float: left;
}

/* Stretches the builder queues on the same row to the same height */
#builders-queue-row > .cell {
    display: flex;
}

#builders-queue-row > .cell > .builder {
    flex: none;
}

#builders-queue-row.single-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    /*padding-bottom: 8px;*/
    margin-bottom: 15px;
}

#builders-queue-row.single-row > .cell {
    flex: 0 0 305px;
    min-width: 305px;
    width: 305px;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .builders-list:not(#builders-0), .lab-list:not(#lab-0), .petplanner-list:not(#petplanner-0) {
        max-height: 230px;
    }

    #builders-queue-row.single-row > .cell {
        flex: 0 0 260px;
        min-width: 260px;
        width: 260px;
    }
}

/* Medium */
@media screen and (min-width: 41.876em) and (max-width: 63.9375em) {

    .builders-list:not(#builders-0), .lab-list:not(#lab-0), .petplanner-list:not(#petplanner-0) {
        max-height: 300px;
    }

    #builders-queue-row.single-row > .cell {
        flex: 0 0 260px;
        min-width: 260px;
        width: 260px;
    }
}

.builders-list::-webkit-scrollbar {
    width: 10px;
}

.builders-list::-webkit-scrollbar-track {
    background: #DEDEDE;
}

.builders-list::-webkit-scrollbar-thumb {
    background: #4078C0;
}

.builders-list::-webkit-scrollbar-thumb:hover {
    background: rgba(66,92,126,1);
    cursor: grab;
}

.builders-list::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

#builders-queue-row::-webkit-scrollbar {
    height: 12px;
}

#builders-queue-row::-webkit-scrollbar-track {
    background: #DEDEDE;
}

#builders-queue-row::-webkit-scrollbar-thumb {
    background: #4078C0;
}

#builders-queue-row::-webkit-scrollbar-thumb:hover {
    background: rgba(66,92,126,1);
    cursor: grab;
}

#builders-queue-row::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

.unassigned-items {
    margin: 0 0 20px 2px;
    /*padding: 5px;*/
    border: solid 1px #999999;
    clear: both;
}

.unassigned-items p {
    margin-left: 5px;
}

.unassigned-halls-modal h1 {
    font-weight: bold;
    font-size: 22px;
}

#builders-0-holder, #lab-0-holder, #petplanner-0-holder {
    min-height: 20px;
    transition: min-height 0.5s cubic-bezier(0, 1, 0, 1);
}

#builders-0, #lab-0, #petplanner-0 {
    margin: 5px;
}

#builders-0 > li, #lab-0 > li, #petplanner-0 > li {
    width: 240px;
    display: inline-block;
}

#builders-0 li.placeholder, #lab-0 li.placeholder, #petplanner-0 li.placeholder {
    width: calc(100% - 20px);
}

#builders-0 li.filter-hidden, #lab-0 li.filter-hidden, #petplanner-0 li.filter-hidden {
    display: none;
}

.unassigned-filter {
    margin: 0 10px;
    padding-bottom: 10px;
    clear: both;
}

.unassigned-filter-button {
    margin: 10px 10px 0 0;
    float: right;
}

/* When the toggle sits in the Unassigned header (builder planner) it shouldn't carry the fieldset-relative margins */
.unassigned-items h2 .unassigned-filter-button {
    margin: 3px 0 0 0;
}

/* Just "Hide" / "Show" on mobile */
@media screen and (max-width: 41.8375em) {

    .unassigned-items h2 .unassigned-filter-button .filter-label-word {
        display: none;
    }
}

.unassigned-filter .lblEligibleFilter {
    margin-top: 8px;
    float: left;
}

.unassigned-filter .chkEligibleFilter {
    margin: 12px 10px 0 10px;
    width: 16px;
    height: 16px;
    float: left;
}

.unassigned-filter .ddlEligibilityLevels {
    width: 100px;
}

.unassigned-filter .lblUnassignedHallLevel {
    margin-top: 8px;
    float: left;
}

.unassigned-filter .ddlUnassignedHallLevel {
    margin-left: 5px;
    width: 100px;
}

.unassigned-filter .lblUnassignedSearch {
    padding: 0;
    margin-top: 8px;
    margin-right: 5px;
    float: left;
}

.unassigned-filter .txtUnassignedSearch {
    width: 150px !important;
    float: left;
}

.hall-menu-summary label {
    margin-top: 8px;
    width: 70px;
    float: left;
}

.hall-menu-summary .summary {
    border: dashed 1px #CCCCCC;
    border-right: none;
    padding-left: 5px;
    margin-left: 5px;
    width: 100%;
    height: 41px;
    line-height: 41px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    float: left;
}

.unassigned-hall-menu {
    margin: 10px auto 20px auto;
    padding: 0;
    border: 1px solid #cacaca;
    width: 230px;
    background-color: #EEEEEE;
    box-shadow: 0 2px 3px rgba(60, 60, 60, 0.5);
}

.unassigned-hall-menu li {
    height: 35px;
    line-height: 35px;
    list-style: none;
    font-size: 14px;
}

.unassigned-hall-menu li input[type=checkbox] {
    margin: 8px 5px 0 2px;
    width: 18px;
    height: 18px;
    float: left;
}

.unassigned-hall-menu .colour-strip {
    margin-right: 3px;
    width: 5px;
    height: 35px;
    float: left;
}

.unassigned-hall-menu label {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgb(30, 30, 30);
}

.unassigned-hall-menu label:not(.th9):not(.bh9):not(.th10):not(.th12):not(.th13):not(.th14):not(.th15):not(.th16):not(.th17) {
    text-shadow: 1px 1px 3px rgb(30, 30, 30);
}

.unassigned-hall-menu label.th13.th14,th15 {
    text-shadow: 1px 1px 3px rgba(30, 30, 30, 0.5);
}

.unassigned-filter .unassigned-resources .categories-title, .unassigned-filter .unassigned-categories .categories-title {
    margin: 0 5px 3px 0;
    font-weight: bold;
    font-size: 14px;
    line-height: 16px;
    /*float: left;*/
}

.unassigned-filter .unassigned-resources ul, .unassigned-filter .unassigned-categories ul {
    margin: 0;
    padding: 0;
}

.unassigned-filter .unassigned-resources li, .unassigned-filter .unassigned-categories li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

.unassigned-filter .unassigned-resources input[type=checkbox], .unassigned-filter .unassigned-categories input[type=checkbox] {
    margin: 4px 0 0 2px;
    width: 16px;
    height: 16px;
    float: left;
}

.unassigned-filter .unassigned-resources label, .unassigned-filter .unassigned-categories label {
    margin: 0 5px;
    white-space: nowrap;
    font-size: 14px;
    float: left;
}

/* Included / excluded category counts next to the Categories title: mobile only */
.categories-count {
    display: none;
}

.categories-count .count-included, .categories-count .count-excluded {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    min-width: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    color: #FFFFFF;
}

.categories-count .count-included {
    background-color: #5da423;
}

.categories-count .count-excluded {
    background-color: #a22524;
}

.unassigned-filter input[type=checkbox]:indeterminate {
    accent-color: #CCCCCC;
}

.unassigned-filter-text {
    line-height: 30px;
    font-size: 14px;
    display: inline;
}

/* Small */
@media screen and (max-width: 41.8375em) {

    .unassigned-filter-text {
        line-height: 20px;
        font-size: 12px;
    }

    /* Compact builder planner filter controls */
    .unassigned-filter[data-type=builders] {
        margin: 0 5px;
        padding: 2px 8px 6px 8px;
    }

    .unassigned-filter[data-type=builders] legend {
        font-size: 14px;
        padding: 0 4px;
    }

    .unassigned-filter[data-type=builders] select,
    .unassigned-filter[data-type=builders] input[type=text] {
        height: 30px;
        padding: 2px 8px;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .unassigned-filter[data-type=builders] .lblEligibleFilter,
    .unassigned-filter[data-type=builders] .lblUnassignedSearch,
    .unassigned-filter[data-type=builders] .hall-menu-summary label {
        margin-top: 4px;
        font-size: 14px;
        line-height: 22px;
    }

    .unassigned-filter[data-type=builders] .lblEligibleFilter,
    .unassigned-filter[data-type=builders] .lblUnassignedSearch,
    .unassigned-filter[data-type=builders] .hall-menu-summary label {
        font-size: 12px;
    }

    .unassigned-filter[data-type=builders] .hall-menu-summary label {
        width: auto;
        margin-right: 2px;
    }

    /* "TH Req'd:" becomes just "TH" */
    .unassigned-filter[data-type=builders] .hall-menu-summary .hall-req-word {
        display: none;
    }

    .unassigned-filter[data-type=builders] .chkEligibleFilter {
        margin: 7px 4px 0 4px;
    }

    /* Narrow dropdown: smaller font and horizontal padding (right side keeps room for the arrow) so Eligible and TH Req'd fit on one row */
    .unassigned-filter[data-type=builders] .ddlEligibilityLevels {
        width: 70px;
        font-size: 12px;
        padding: 2px 16px 2px 4px;
    }

    .unassigned-filter[data-type=builders] .hall-menu-summary .summary {
        font-size: 12px;
    }

    .unassigned-filter[data-type=builders] .hall-menu-summary .summary {
        height: 30px;
        line-height: 30px;
    }

    .unassigned-filter[data-type=builders] .button {
        padding: 0.5em 0.9em;
        margin-bottom: 6px;
        font-size: 0.8rem;
    }

    .unassigned-filter[data-type=builders] .input-group {
        margin-bottom: 0;
    }

    .unassigned-filter[data-type=builders] .unassigned-filter-reset {
        margin-top: 3px;
    }

    .unassigned-filter[data-type=builders] .unassigned-resources .categories-title,
    .unassigned-filter[data-type=builders] .unassigned-categories .categories-title {
        margin-bottom: 0;
        font-size: 12px;
        line-height: 14px;
    }

    .unassigned-filter[data-type=builders] .unassigned-resources label,
    .unassigned-filter[data-type=builders] .unassigned-categories label {
        font-size: 12px;
        line-height: 22px;
    }

    .unassigned-filter[data-type=builders] .categories-count {
        display: inline;
    }

    /* fieldsets default to min-width: min-content, which lets the no-wrap categories row stretch the whole filter box */
    .unassigned-filter[data-type=builders] {
        min-width: 0;
    }

    .unassigned-filter[data-type=builders] .unassigned-categories {
        min-width: 0;
        max-width: 100%;
    }

    /* Categories scroll sideways in a single row instead of wrapping; scrollbar is always shown (styled so mobile browsers don't hide it) */
    .unassigned-filter[data-type=builders] .unassigned-categories ul {
        white-space: nowrap;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    .unassigned-filter[data-type=builders] .unassigned-categories ul::-webkit-scrollbar {
        height: 8px;
    }

    .unassigned-filter[data-type=builders] .unassigned-categories ul::-webkit-scrollbar-track {
        background: #DEDEDE;
        border-radius: 4px;
    }

    .unassigned-filter[data-type=builders] .unassigned-categories ul::-webkit-scrollbar-thumb {
        background: #4078C0;
        border-radius: 4px;
    }

    .unassigned-filter[data-type=builders] .unassigned-resources input[type=checkbox],
    .unassigned-filter[data-type=builders] .unassigned-categories input[type=checkbox] {
        margin-top: 3px;
    }
}

.timeline {
    min-height: 150px;
    position: relative;
}

.loading {
    padding-top: 40px;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    position: absolute;
}

.planner-loading-text {
    margin-top: 10px;
    display: none;
}

.vis-time-axis {
    background: #FFFFFF;
}

.timeline-controls {
    padding-top: 10px;
    min-height: 50px;
    line-height: 30px;
    font-size: 14px;
}

.timeline-controls .button {
    margin-bottom: 5px;
}

.timeline-controls p {
    font-size: 12px !important;
}

@media screen and (max-width: 41.8375em) {

    .timeline-controls {
        display: none;
    }

    .timeline-controls.is-open {
        display: block;
    }

    .timeline-controls-toggle {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* Timeline row labels: short variants on mobile */
.group-label-short {
    display: none;
}

@media screen and (max-width: 41.8375em) {

    .group-label-full {
        display: none;
    }

    .group-label-short {
        display: inline;
        font-size: 12px;
    }
}

.timeline-pin-btn {
    display: none;
}

/* Redesigned planner header: active hours pill + card wrapping controls and timeline */
.active-hours-pill {
    display: inline-block;
    padding: 0 20px;
    line-height: 37px;
    font-size: 14px;
    border: 1px solid #333333;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    background: #4078c0;
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

.active-hours-pill:hover {
    background: #4078c0;
    box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.2);
}

.active-hours-pill strong {
    margin-left: 4px;
}

/* Gear button to the left of the active hours pill */
.active-hours-pill.planner-settings-btn {
    padding: 0 12px;
    margin-right: 5px;
}

/* Gold Pass settings button, next to the gear button */
.active-hours-pill.planner-gold-pass-btn,
.active-hours-pill.planner-gold-pass-btn:hover {
    padding: 0 8px;
    margin-right: 5px;
    background: linear-gradient(180deg, #ffd75e 0%, #e0a800 100%);
}

.active-hours-pill.planner-gold-pass-btn img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-top: -3px;
}

/* Estimated Gold Pass boost increases on the timeline (the custom time's id is added as a class) */
.vis-custom-time[class*=" gp-marker-"] {
    background-color: #e0a800;
}

.vis-custom-time[class*=" gp-marker-"] > .vis-custom-time-marker {
    color: #333333;
}

/* Active hours modal: same every day / different each day options, with the radio next to its label
   (.modify-modal input[type=radio] otherwise centres it on its own line) */
.active-hours-mode {
    margin: 10px 0;
    padding: 0;
    border: 0;
}

.active-hours-mode label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px;
}

.modify-modal .active-hours-mode input[type=radio] {
    display: inline-block;
    margin: 0;
}

#active-hours-modal [hidden] {
    display: none !important;
}

/* Different each day: a row of from/to times per day */
.active-hours-days {
    width: auto;
    margin: 0 auto 10px auto;
}

.active-hours-days th, .active-hours-days td {
    padding: 3px 6px;
    text-align: left;
}

.active-hours-days input[type=time] {
    margin: 0;
}

.active-hours-days th label {
    margin: 0;
    cursor: pointer;
}

/* Copy a day's times, then paste them into other days */
.active-hours-days .active-hours-day-actions {
    white-space: nowrap;
}

.active-hours-day-btn {
    display: inline-block;
    padding: 4px 6px;
    cursor: pointer;
    color: #4078C0;
    border-radius: 4px;
}

.active-hours-day-btn:hover {
    background: rgba(128, 128, 128, 0.18);
}

.active-hours-day-btn.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* The day that was copied (the label has its own .modify-modal colour) */
.active-hours-days tr.active-hours-day-copied th label {
    color: #4C8905;
}

/* A day that's turned off */
.active-hours-days tr.active-hours-day-off th,
.active-hours-days tr.active-hours-day-off input[type=time] {
    opacity: 0.5;
}

.planner-settings-modal h1 {
    text-align: center;
}

.planner-settings-modal .planner-setting {
    margin: 0 0 15px 0;
}

/* Checkbox and its label on one line (the modal styles otherwise put the checkbox on its own centred line) */
.planner-settings-modal .planner-setting-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.planner-settings-modal .planner-setting-toggle input[type="checkbox"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.planner-settings-modal .planner-setting-toggle label {
    margin: 0;
    font-weight: bold;
    font-size: 15px;
}

/* A heading with several checkboxes after it on the same line (wrapping when narrow) */
.planner-settings-modal .planner-setting-inline {
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 6px;
}

.planner-settings-modal .planner-setting-heading {
    font-weight: bold;
    font-size: 15px;
}

.planner-settings-modal .planner-setting-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.planner-settings-modal .planner-setting-inline .planner-setting-option label {
    font-weight: normal;
}

.planner-settings-modal .planner-setting p {
    margin: 2px 0 0 24px;
    font-size: 13px;
    opacity: 0.8;
}

/* Account Settings / Village Settings headings */
.planner-settings-modal h2.planner-settings-section {
    margin: 20px 0 10px 0;
    padding: 0 0 4px 0;
    border-bottom: solid 1px rgba(128, 128, 128, 0.3);
    font-size: 18px;
    font-weight: bold;
}

.planner-settings-modal [hidden] {
    display: none !important;
}

.planner-settings-modal .planner-setting-disabled {
    opacity: 0.5;
}

/* Heroes that can still be upgraded during CWL */
.planner-settings-modal .planner-cwl-heroes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    column-gap: 16px;
    row-gap: 6px;
    margin: 6px 0 0 0;
}

.planner-settings-modal .planner-cwl-heroes input[type="checkbox"] {
    margin: 0;
}

.planner-settings-modal .planner-cwl-heroes label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: normal;
}

.planner-settings-modal .planner-cwl-heroes img {
    width: 24px;
    height: 24px;
}

.planner-settings-modal .planner-village-settings-error {
    color: #cc4b37;
    text-align: center;
}

/* Gold Pass settings modal */
.gold-pass-settings-modal h1 img {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-top: -4px;
}

.gold-pass-settings-modal .gp-frequency label {
    font-weight: normal;
}

.gold-pass-settings-modal .gp-frequency input[type=radio] {
    display: inline-block;
    margin: 0;
}

.gold-pass-settings-modal .gp-disabled {
    opacity: 0.5;
}

.gold-pass-settings-modal [hidden] {
    display: none !important;
}

.gold-pass-settings-modal .gp-month-picker {
    display: flex;
    gap: 8px;
    margin: 8px 0 0 0;
}

.gold-pass-settings-modal .gp-month-picker select {
    margin: 0;
    width: auto;
}

.gold-pass-settings-modal .gp-month-picker .button {
    margin: 0;
}

.gold-pass-settings-modal .gp-month-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0 0;
}

.gold-pass-settings-modal .gp-month-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffd75e 0%, #e0a800 100%);
    color: #333333;
    font-size: 13px;
}

.gold-pass-settings-modal .gp-month-chip .gp-month-remove {
    cursor: pointer;
    font-weight: bold;
}

.gold-pass-settings-modal .gp-days {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gold-pass-settings-modal .gp-days label {
    font-weight: bold;
}

.gold-pass-settings-modal .gp-days input[type=number] {
    width: 80px;
    margin: 4px 0 0 0;
}

.gold-pass-settings-modal .gp-error {
    color: #cc4b37;
    text-align: center;
}

.timeline-card {
    border: solid 1px rgba(128, 128, 128, 0.25);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.timeline-card .timeline-controls-toggle {
    width: 100%;
}

.timeline-controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 10px 0;
    min-height: 0;
}

.timeline-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #333333;
    border-radius: 12px;
    background: #4078c0;
    color: #FFFFFF;
}

.timeline-btn {
    padding: 0 16px;
    line-height: 34px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

/* Divider lines between the zoom buttons */
/* A real border (rather than a positioned element) so it snaps to whole device pixels and stays the same thickness at any viewport width. The gradient insets it from the top and bottom edges. */
.timeline-btn-group:not(.timeline-range-group) .timeline-btn + .timeline-btn {
    --timeline-divider: rgba(255, 255, 255, 0.4);
    border-left: 1px solid transparent;
    border-image: linear-gradient(to bottom, transparent 20%, var(--timeline-divider) 20%, var(--timeline-divider) 80%, transparent 80%) 1;
}

.timeline-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timeline-btn.secondary {
    background: rgba(255, 255, 255, 0.35);
}

.timeline-btn.disabled {
    opacity: 0.5;
}

.timeline-range-group .timeline-btn {
    opacity: 1;
}

/* Full labels on tablet/desktop, short labels (7d / 30d / 90d) on mobile */
.range-label-short {
    display: none;
}

@media screen and (max-width: 41.8375em) {

    .range-label-full {
        display: none;
    }

    .range-label-short {
        display: inline;
    }
}

.timeline-range-group .timeline-btn:hover {
    opacity: 1;
}

.timeline-range-group .timeline-btn.selected {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    opacity: 1;
}

.timeline-range-group .timeline-btn.disabled, .timeline-range-group .timeline-btn.disabled:hover {
    opacity: 0.5;
}

@media screen and (max-width: 41.8375em) {

    /* !important: the base rule further down this file has the same specificity */
    #builders-chart .vis-labelset .vis-label .vis-inner {
        min-height: 43px !important;
    }

    /* Compact builder planner items: smaller icon and tighter rows so each item is shorter (inline line-heights need !important) */
    /* !important: the base 50px rule further down this file has the same specificity and would otherwise win.
       Background (event) items are excluded because the timeline sizes them inline to span their group. */
    #builders-chart .vis-item:not(.vis-background) {
        height: 40px !important;
    }

    #builders-chart .vis-item:not(.vis-background) .vis-item-content {
        padding: 2px 4px;
        line-height: 18px;
    }

    #builders-chart .vis-item .vis-item-content div {
        line-height: 18px !important;
    }

    #builders-chart .vis-item .planner-entity-icon {
        width: 28px;
        height: 28px;
        margin-top: 2px;
        margin-right: 4px;
    }

    #builders-chart .vis-item .vis-item-content img {
        margin: 1px 3px !important;
        height: 14px !important;
    }

    /* Planners tab only: Foundation gives .tabs-panel 1rem of side padding, which wastes timeline width on mobile */
    #planners.tabs-panel {
        padding-left: 6px;
        padding-right: 6px;
    }

    .timeline-pin-btn {
        display: block;
        position: absolute;
        top: 4px;
        right: 4px;
        z-index: 20;
        width: 28px;
        line-height: 28px;
        text-align: center;
        font-size: 14px;
        border-radius: 8px;
        cursor: pointer;
        border: 1px solid #333333;
        background: #4078c0;
        color: #FFFFFF;
        text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Opaque so content scrolling underneath doesn't show through (matches the .tabs-content background). Fixed positioning is applied by updatePinnedTimelineTops() in builder.js */
    .timeline-card.is-pinned {
        background-color: #FEFEFE;
    }

    .timeline-card.is-fixed {
        position: fixed;
        z-index: 9;
        box-sizing: border-box;
    }

    /* Own stacking context so the pin button's z-index stays inside the card and can't overlap the sticky header (z-index 10) */
    .timeline-card {
        isolation: isolate;
        padding: 6px 2px;
        border-radius: 12px;
    }

    .timeline-controls-bar {
        justify-content: center;
        gap: 6px;
    }

    .timeline-btn {
        padding: 0 8px;
        line-height: 26px;
    }

    .timeline-btn-group {
        padding: 3px;
    }

    /* Smaller Reset / Clear / Update buttons under the timeline */
    .button.builders-reset, .button.builders-clear, .button.builders-update {
        padding: 0.55em 0.9em;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .timeline-controls-bar {
        padding-bottom: 6px;
    }

    .timeline-range-group .timeline-btn {
        padding: 0 6px;
    }
}

#pnlShowNextLevelUpgradesBuilders, #pnlShowNextLevelUpgradesLab, #pnlShowNextLevelUpgradesPets {
    margin-bottom: 20px;
    border: solid 1px #E6E6E6;
    padding: 10px;
}

#pnlShowNextLevelUpgradesBuilders .button, #pnlShowNextLevelUpgradesLab .button, #pnlShowNextLevelUpgradesPets .button {
    margin-bottom: 0;
}

#pnlShowNextLevelUpgradesBuilders input[type=checkbox], #pnlShowNextLevelUpgradesLab input[type=checkbox], #pnlShowNextLevelUpgradesPets input[type=checkbox] {
    margin: 12px 5px 0 0;
    width: 16px;
    height: 16px;
}

#pnlShowNextLevelUpgradesBuilders input[type=checkbox] {
    float: left;
}

#pnlShowNextLevelUpgradesBuilders label {
    margin-top: 10px;
    line-height: 20px;
    float: left;
}

@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    #pnlShowNextLevelUpgradesBuilders input[type=checkbox] {
        float: none
    }
}

/* Minimum row height so rows with no visible items match rows that have them. The timeline places items margin.item.vertical (10px) from the row top
   and adds half of it below, so a full row = 2 + 50px item + 1 = 53px (mobile override below: 2 + 40 + 1 = 43px).
   vertical-align stops the inline-block's baseline strut adding extra height. */
#builders-chart .vis-labelset .vis-label .vis-inner {
    box-sizing: border-box;
    min-height: 53px;
    vertical-align: top;
}

/* Shorter time axis (day numbers + month/year): the library sizes the axis from these labels, so trimming their padding and line-height shrinks it */
#builders-chart .vis-time-axis .vis-text {
    padding: 1px 3px;
    line-height: 16px;
}

/* Events row only needs to fit its label text (!important + extra class so it beats the mobile !important rule too) */
#builders-chart .vis-labelset .vis-label.events-group .vis-inner {
    min-height: 0 !important;
}

#builders-chart .vis-item, #lab-chart .vis-item, #petplanner-chart .vis-item {
    height: 50px;
    /*line-height: 40px;*/
}

.vis-item.item-active {
    border: dashed 1px #4078C0;
}

.vis-item.item-active .fa-hand, .builderplanner-upgradetimer .fa-hand {
    padding-left: 5px;
    color: #F2CD99;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

#builders-chart .vis-item img, #lab-chart .vis-item img, #petplanner-chart .vis-item img {
    margin-right: 10px;
    height: 35px;
    float: left;
}

.vis-item-content {
    min-width: 170px;
}

.builders-list > li, .lab-list > li, .petplanner-list > li, .swap-queue-items > li {
    border-left-width: 5px;
    border-left-style: solid;
    margin: 5px 5px;
    padding: 3px;
    /*width: 90%;*/
    outline: solid 1px #CCCCCC;
    /*background-color: #EEEEEE;*/
    min-height: 50px;
    vertical-align: middle;
    /*display: inline;*/
}

.builders-list li .resource-cost-1, .lab-list li .resource-cost-1, .petplanner-list li .resource-cost-1, .swap-queue-items li .resource-cost-1 {
    color: #C19B00;
}

.planner-list-icon {
    margin: 5px 5px 0 5px;
    width: 40px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    float: left;
}

.builders-list li h3, .lab-list li h3, .petplanner-list li h3, .swap-queue-items li h3 {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #000000;
    text-shadow: none;
}

.resource-cost-time img {
    margin: 5px 10px 5px 0;
    height: 16px;
    float: left;
}

/* Small: tighter margin around the entity image in each builder queue item */
@media screen and (max-width: 41.8375em) {

    .builders-list .planner-list-icon {
        margin: 2px 2px 0 2px;
    }
}

/* Medium */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    .planner-list-icon {
        margin-right: 5px;
        width: 28px;
    }

    .builders-list li h3, .lab-list li h3, .petplanner-list li h3 {
        margin: 5px 0;
        font-size: 11px;
    }

    .resource-cost-time {
        font-size: 11px;
    }

    .resource-cost-time img {
        margin-right: 3px;
    }
}

.builders-list li.invalid, .lab-list li.invalid, .petplanner-list li.invalid {
    outline: solid 1px #CC3333;
    background-color: #f78181;
}

.builders-list li.invalid-soft, .lab-list li.invalid-soft, .petplanner-list li.invalid-soft {
    outline: dashed 2px #FFAE00;
    background-color: #FFFFA4;
}

.builders-list li.group, .lab-list li.group, .petplanner-list li.group {
    /*background-color: #f78181;*/
    outline: dotted 2px #000000;
}

.builders-list li.global-boost-active, .lab-list li.global-boost-active, .petplanner-list li.global-boost-active, .vis-item.global-boost-active {
    outline: solid 1px #CC3333;
    background-color: #b1f17d;
}

.vis-item.global-boost-active {
    background-color: #b1f17d !important;
}

.builders-list li.global-boost-active.invalid, .lab-list li.global-boost-active.invalid, .petplanner-list li.global-boost-active.invalid, .vis-item.global-boost-active.invalid {
    outline: dashed 2px #5da423;
    background-color: #f78181;
}

/* The ID beats the later .vis-item.e-* entity colours */
#builders-chart .vis-item.invalid {
    border-color: #CC3333;
    background-color: #f78181;
}

#builders-chart .vis-item.global-boost-active.invalid {
    border: dashed 2px #5da423;
    background-color: #f78181 !important;
}

.builders-list .fa-bolt-lightning, .vis-item .fa-bolt-lightning {
    color: #49D7FD;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
    letter-spacing: -2px;
}

#builders-0 > li {
    width: calc(25% - 10px);
}

#lab-0 > li, #petplanner-0 > li {
    width: calc(33% - 10px);
}

.item-disabled {
    /*padding-left: 25px !important;*/
    color: #666666;
}

.item-disabled:not(.placeholder) {
    outline: dashed 1px #4078C0 !important;
    /*background-color: #FFFFFF;*/
    opacity: 0.7;
}

.item-usebook {
    outline: dashed 2px #E17E75 !important;
}

.item-usehammer {
    outline: dashed 2px #706478 !important;
}

.item-dsd {
    outline: dotted 2px #4078C0 !important;
}

.planner-helper-icon {
    height: 18px;
    margin: -3px 0 0 4px;
    vertical-align: middle;
    display: inline;
}

/* In the queue lists it's floated in front of the time by .resource-cost-time img, so pull it in tight against the cost and the time */
.resource-cost-time img.planner-helper-icon {
    height: 18px;
    margin: 4px 3px 4px -10px;
}

/* On the timeline, override the 35px entity image size so it fits the 26px duration line */
#builders-chart .vis-item img.planner-helper-icon, #lab-chart .vis-item img.planner-helper-icon, #petplanner-chart .vis-item img.planner-helper-icon {
    height: 18px;
    margin: 4px 4px 4px 0;
}

.planner-helper-icon.removable {
    cursor: pointer;
}

.planner-helper-icon.conflict {
    outline: solid 2px #F0A030;
    border-radius: 3px;
}

.item-sc, .vis-item.item-sc {
    background-color: #D0F5FF;
}

.item-usehammer .resource-cost-1, .item-usehammer .resource-cost-2, .item-usehammer .resource-cost-3 {
    display: none;
}

/* Medium */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    #builders-0 > li {
        width: calc(33% - 10px);
    }

    #lab-0 > li, #petplanner-0 > li {
        width: calc(50% - 10px);
    }

    .item-disabled {
        padding-left: 10px !important;
    }
}

/* Small */
@media screen and (max-width: 41.8375em) {

    #builders-0 > li, #lab-0 > li, #petplanner-0 > li {
        width: calc(100% - 10px);
    }
}

.handle:before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
    content: "\f142";
}

.handle {
    width: 16px;
    line-height: 40px;
    font-size: 20px;
    text-align: center;
    cursor: move;
    color: #666666;
    float: left;
    touch-action: none;
    -ms-touch-action: none;
}

.builders-list li.placeholder, .lab-list li.placeholder, .petplanner-list li.placeholder {
    border-left: none;
    min-height: 20px;
    opacity: 0.8;
    background-color: #FFFFFF;
}

.builder-ddug-holder {
    width: 60px;
    right: 0;
    position: absolute;
}

.builder-dropdown-holder {
    position: relative;
}

.builder-dropdown-button {
    margin-right: -4px;
}

.builder-dropdown-menu {
    border: solid 1px #666666;
    margin: 0 -4px 0 0;
    top: 25px;
    right: 0;
    width: 120px;
    background-color: #CCCCCC;
    position: absolute;
    z-index: 9;
    color: #333333;
    box-shadow: 0 2px 3px rgba(60, 60, 60, 0.5);
}

/* Two columns: the builders side by side, then the other options (Goblin | Next, UAS | Bulk) */
.builder-dropdown-menu ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* The queue icon spans both columns */
.builder-dropdown-menu ul li:first-child {
    grid-column: 1 / -1;
}

/* The options after the builders start on a new row, even with an odd number of builders */
.builder-dropdown-menu li.builder-dropdown-queue + li:not(.builder-dropdown-queue) {
    grid-column-start: 1;
}

.builder-dropdown-menu li {
    margin: 0;
    padding: 0;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    text-align: center;
    list-style: none;
    font-weight: bold;
}

.builder-dropdown-menu li:not(:first-child) {
    cursor: pointer;
}

.builder-dropdown-menu li:hover:not(:first-child) {
    background-color: #EEEEEE;
}

/* Checkbox and image centred across the (two column) menu */
.builder-dropdown-menu-usebook, .builder-dropdown-menu-usehammer, .builder-dropdown-menu-usehelper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

/* Book and hammer share a row, half each (a gear up only has the book, which is centred) */
.builder-dropdown-menu-magicitems {
    display: flex;
}

.builder-dropdown-menu-magicitems > div {
    flex: 1 1 0;
}

.builder-dropdown-menu-magicitems > div input[type=checkbox] {
    margin-right: 4px;
}

.builder-dropdown-menu-usebook input[type=checkbox], .builder-dropdown-menu-usehammer input[type=checkbox], .builder-dropdown-menu-usehelper input[type=checkbox] {
    margin: 0 8px 0 0;
    width: 20px;
    height: 20px;
}

.builder-dropdown-menu-usebook img, .builder-dropdown-menu-usehammer img, .builder-dropdown-menu-usehelper img {
    margin: 0;
    height: 30px;
}

/* The helper image fills more of its frame than the magic items, so it's smaller to look the same size */
.builder-dropdown-menu-usehelper img {
    height: 24px;
    width: 30px;
    object-fit: contain;
}

.builder-upgrade-button, .builder-build-button, .builder-complete-button, .builder-supercharge-button {
    border: solid 1px #333;
    margin: 1px 1px;
    border-radius: 3px;
    padding: 2px 6px;
    min-width: 23px;
    text-align: center;
    color: #FFFFFF !important;
    font-size: 12px;
    transition: background 0.3s linear;
    cursor: pointer;
    float: right;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.builder-upgrade-button {
    background-color: #4078C0;
}

.builder-build-button {
    background-color: #FFAE00;
}

.builder-complete-button {
    background-color: #5da423;
}

.builder-supercharge-button {
    background-color: #CCCCCC;
}

.builderplanner-upgradetimer {
    padding-top: 3px;
    padding-left: 10px;
    float: left;
}

/* Medium */
@media screen and (min-width: 41.9em) and (max-width: 63.9375em) {

    .builderplanner-upgradetimer {
        padding-left: 2px;
    }
}

/* Prevent the marker from being draggable */
.vis-custom-time {
    pointer-events: none;
}

/* Fix for resource being hidden when the width of time + resource greater than the name */
.vis-item.vis-range .vis-item-content {
	min-width: 230px;
}

/*#endregion */

/*#region Builder Entity Colours */

.vis-item.e-1, .e-1 { /* TH */
    background-color: #DDDDDD;
}

.vis-item.e-2, .e-2 { /* Gold Mine */
    background-color: #FFF5C1;
}

.vis-item.e-3, .e-3 { /* Elixir Collector */

    background-color: #F7DBF7;
}

.vis-item.e-4, .e-4 { /* DE Drill */

    background-color: #E2E1E3;
}

.vis-item.e-5, .e-5 { /* Gold Storage */

    background-color: #FFEE91;
}

.vis-item.e-6, .e-6 { /* Elixir Storage */

    background-color: #F2CEF2;
}

.vis-item.e-7, .e-7 { /* DE Storage */

    background-color: #DFDEE0;
}

.vis-item.e-8, .e-8 { /* Barracks */

    background-color: #E4DCDC;
}

.vis-item.e-9, .e-9 { /* Dark Barracks */

    background-color: #DED3DD;
}

.vis-item.e-10, .e-10 { /* Army Camp */

    background-color: #FEE8D8;
}

.vis-item.e-11, .e-11 { /* Spell Factory */

    background-color: #FFFFCC;
}

.vis-item.e-12, .e-12 { /* Dark Spell Factory */

    background-color: #FFFF8A;
}

.vis-item.e-13, .e-13 { /* Lab */

    background-color: #FFF9D5;
}

.vis-item.e-104, .e-104 { /* Workshop */

    background-color: #FFDFD9;
}

.vis-item.e-311, .e-311 { /* Squad Barracks */

    background-color: #F2E3C2;
}

.vis-item.e-14, .e-14 { /* Air Defence */

    background-color: #EDE1DE;
}

.vis-item.e-15, .e-15 { /* Air Sweeper */

    background-color: #DFD7DD;
}

.vis-item.e-16, .e-16 { /* Archer Tower */

    background-color: #C6FFC6;
}

.vis-item.e-17, .e-17 { /* Bomb Tower */

    background-color: #F0DED0;
}

.vis-item.e-18, .e-18 { /* Cannon */

    background-color: #E3D5D2;
}

.vis-item.e-19, .e-19 { /* Clan Castle */

    background-color: #DED8D1;
}

.vis-item.e-20, .e-20 { /* Eagle Artillery */

    background-color: #CFD0EB;
}

.vis-item.e-21, .e-21 { /* Hidden Tesla */

    background-color: #FDDEB0;
}

.vis-item.e-22, .e-22 { /* Inferno */

    background-color: #FAD5BC;
}

.vis-item.e-23, .e-23 { /* Mortar */

    background-color: #E9E8EA;
}

.vis-item.e-24, .e-24 { /* Wizard Tower */

    background-color: #E8D7EC;
}

.vis-item.e-25, .e-25 { /* X-Bow */

    background-color: #EAE4E1;
}

.vis-item.e-107, .e-107 { /* Giga Tesla */

    background-color: #C8DBEE;
}

.vis-item.e-118, .e-118 { /* Giga Inferno */

    background-color: #C8DBEE;
}

.vis-item.e-126, .e-126 { /* Giga Inferno (TH14) */

	background-color: #FFE4C1;
}

.vis-item.e-137, .e-137 { /* Giga Inferno (TH15) */

	background-color: #CDDDDE;
}

.vis-item.e-200, .e-200 { /* Inferno Artillery */

    background-color: #E7ECF3;
}

.vis-item.e-119, .e-119 { /* Scattershot */

    background-color: #BAF2FC;
}

.vis-item.e-135, .e-135 { /* Spell Tower */

	background-color: #EDB8C8;
}

.vis-item.e-136, .e-136 { /* Monolith */

	background-color: #DDDAEB;
}

.vis-item.e-297, .e-297 { /* Spiky Tower */

    background-color: #EFE3BF;
}

.vis-item.e-298, .e-298 { /* Firecracker Tower */

    background-color: #BFD4F5;
}

.vis-item.e-26, .e-26 { /* Air Bomb */

    background-color: #FFE1D2;
}

.vis-item.e-27, .e-27 { /* Bomb */

    background-color: #D7D8E1;
}

.vis-item.e-28, .e-28 { /* Giant Bomb */

    background-color: #EAD6C8;
}

.vis-item.e-201, .e-201 { /* Giga Bomb */

    background-color: #E8CECA;
}

.vis-item.e-29, .e-29 { /* Seeking Air Mine */

    background-color: #D2DBDB;
}

.vis-item.e-30, .e-30 { /* Spring Trap */

    background-color: #FDD0BD;
}

.vis-item.e-64, .e-64 { /* Skele Trap */

    background-color: #EBD5C7;
}

.vis-item.e-108, .e-108 { /* Tornado Trap */

    background-color: #D6C9D5;
}

.vis-item.e-31, .e-31 { /* Barbarian */

    background-color: #F9EAA4;
}

.vis-item.e-32, .e-32 { /* Archer */

    background-color: #EAFF84;
}

.vis-item.e-33, .e-33 { /* Giant */

    background-color: #D8BEBE;
}

.vis-item.e-34, .e-34 { /* Goblin */

    background-color: #BCF477;
}

.vis-item.e-35, .e-35 { /* Wall Breaker */

    background-color: #D9D9D7;
}

.vis-item.e-36, .e-36 { /* Balloon */

    background-color: #EDA9A9;
}

.vis-item.e-37, .e-37 { /* Wizard */

    background-color: #B5CFE6;
}

.vis-item.e-38, .e-38 { /* Healer */

    background-color: #F9F9E6;
}

.vis-item.e-39, .e-39 { /* Dragon */

    background-color: #FDB5AA;
}

.vis-item.e-40, .e-40 { /* PEKKA */

    background-color: #B5D5EA;
}

.vis-item.e-41, .e-41 { /* Baby Dragon */

    background-color: #B1EDA3;
}

.vis-item.e-42, .e-42 { /* Miner */

    background-color: #F5CE9E;
}

.vis-item.e-103, .e-103 { /* Edrag */

    background-color: #C1FFFF;
}

.vis-item.e-121, .e-121 { /* Yeti */

    background-color: #BCB3E1;
}

.vis-item.e-133, .e-133 { /* Dragon Rider */

	background-color: #C9CCD3;
}

.vis-item.e-138, .e-138 { /* Electro Titan */

	background-color: #D4F9FF;
}

.vis-item.e-105, .e-105 { /* Wall Wrecker */

    background-color: #F8E6D6;
}

.vis-item.e-106, .e-106 { /* Battle Blimp */

    background-color: #F8BEB8;
}

.vis-item.e-109, .e-109 { /* Stone Slammer */

    background-color: #FFD7D2;
}

.vis-item.e-120, .e-120 { /* Siege Barracks */

    background-color: #FFCECE;
}

.vis-item.e-125, .e-125 { /* Log Launcher */

    background-color: #FFBABA;
}

.vis-item.e-134, .e-134 { /* Flame Flinger */

    background-color: #ffa3a3;
}

.vis-item.e-139, .e-139 { /* Battle Drill */

	background-color: #E5E5E5;
}

.vis-item.e-215, .e-215 { /* Troop Launcher */

    background-color: #fbbebe;
}

.vis-item.e-278, .e-278 { /* Sky Wagon */

    background-color: #fbcece;
}

/* Squads */

.vis-item.e-299, .e-299 { /* Squad - Barbarians & Archer */

    background-color: #FFE4A8;
}

.vis-item.e-300, .e-300 { /* Squad - Giant & Wizard */

    background-color: #FDDDB8;
}

.vis-item.e-301, .e-301 { /* Squad - Wall Breakers */

    background-color: #EBD9C4;
}

.vis-item.e-302, .e-302 { /* Squad - Minions */

    background-color: #D3DCF7;
}

.vis-item.e-303, .e-303 { /* Squad - Balloons */

    background-color: #F8C9C2;
}

.vis-item.e-304, .e-304 { /* Squad - Golem & Witch */

    background-color: #E3DED6;
}

.vis-item.e-305, .e-305 { /* Squad - Hog Riders */

    background-color: #F5D3C3;
}

.vis-item.e-306, .e-306 { /* Squad - Miners */

    background-color: #CCEBF5;
}

.vis-item.e-307, .e-307 { /* Squad - Healers */

    background-color: #FFF6CC;
}

.vis-item.e-308, .e-308 { /* Squad - P.E.K.K.A & Electro Titan */

    background-color: #D6D9EC;
}

.vis-item.e-309, .e-309 { /* Squad - Dragon & Dragon Rider */

    background-color: #E2D2F7;
}

.vis-item.e-310, .e-310 { /* Squad - Baby Dragons */

    background-color: #D4F2C4;
}

.vis-item.e-43, .e-43 { /* Lightning */

    background-color: #ADE1FA;
}

.vis-item.e-44, .e-44 { /* Heal */

    background-color: #F4E89D;
}

.vis-item.e-45, .e-45 { /* Rage */

    background-color: #E3CEF4;
}

.vis-item.e-46, .e-46 { /* Jump */

    background-color: #D1F9CC;
}

.vis-item.e-47, .e-47 { /* Freeze */

    background-color: #CCF0F9;
}

.vis-item.e-48, .e-48 { /* Clone */

    background-color: #84EDFF;
}

.vis-item.e-140, .e-140 { /* Recall */

	background-color: #F6DBF1;
}

.vis-item.e-205, .e-205 { /* Revive */

    background-color: #FFDCC6;
}

.vis-item.e-312, .e-312 { /* Heroic Spell */

    background-color: #C4F2DE;
}

.vis-item.e-49, .e-49 { /* Poison */

    background-color: #F2C4BB;
}

.vis-item.e-50, .e-50 { /* EQ */

    background-color: #DBCFBF;
}

.vis-item.e-51, .e-51 { /* Haste */

    background-color: #F8AFD0;
}

.vis-item.e-52, .e-52 { /* Skele */

    background-color: #FFDFDD;
}

.vis-item.e-110, .e-110 { /* Bat */

    background-color: #E9BFEE;
}

.vis-item.e-53, .e-53 { /* Minion */

    background-color: #DED8ED;
}

.vis-item.e-54, .e-54 { /* Hog Rider */

    background-color: #E6CBBF;
}

.vis-item.e-55, .e-55 { /* Valk */

    background-color: #F7BC8C;
}

.vis-item.e-56, .e-56 { /* Valk */

    background-color: #D8D1D3;
}

.vis-item.e-57, .e-57 { /* Witch */

    background-color: #C9C2E7;
}

.vis-item.e-58, .e-58 { /* Lava Hound */

    background-color: #DDBDBD;
}

.vis-item.e-59, .e-59 { /* Bowler */

    background-color: #BDC9F9;
}

.vis-item.e-111, .e-111 { /* Ice Golem */

    background-color: #8CE8FF;
}

.vis-item.e-123, .e-123 { /* Headhunter */

    background-color: #b7afda;
}

.vis-item.e-61, .e-61 { /* Barbarian King */

    background-color: #E0CEC0;
}

.vis-item.e-62, .e-62 { /* Archer Queen */

    background-color: #D6D1D1;
}

.vis-item.e-63, .e-63 { /* Grand Warden */

    background-color: #FEF5FF;
}

.vis-item.e-122, .e-122 { /* Royal Champion */

    background-color: #B7D0EC;
}

.vis-item.e-208, .e-208 { /* Minion Prince */

    background-color: #E1FBFD;
}

.vis-item.e-260, .e-260 { /* Dragon Duke */

    background-color: #CBB6C2;
}

.vis-item.e-65, .e-65 { /* BH */
    background-color: #DDDDDD;
}

.vis-item.e-66, .e-66 { /* Gold Mine */

    background-color: #FFF5C1;
}

.vis-item.e-67, .e-67 { /* Elixir Collector */

    background-color: #F7DBF7;
}

.vis-item.e-68, .e-68 { /* Gold Storage */

    background-color: #FFEE91;
}

.vis-item.e-69, .e-69 { /* Elixir Storage */

    background-color: #F2CEF2;
}

.vis-item.e-70, .e-70 { /* Gem Mine */

    background-color: #BBFAA0;
}

.vis-item.e-71, .e-71 { /* Barracks */

    background-color: #E4DCDC;
}

.vis-item.e-72, .e-72 { /* Army Camp */

    background-color: #FEE8D8;
}

.vis-item.e-73, .e-73 { /* Star Lab */

    background-color: #EFE0C9;
}

.vis-item.e-74, .e-74 { /* Clock Tower */

    background-color: #EFEBFC;
}

.vis-item.e-75, .e-75 { /* Cannon */

    background-color: #E3D5D2;
}

.vis-item.e-76, .e-76 { /* Archer Tower */

    background-color: #DFDFEC;
}

.vis-item.e-77, .e-77 { /* Double Cannon */

    background-color: #D8D7E3;
}

.vis-item.e-78, .e-78 { /* Hidden Tesla */

    background-color: #FDDEB0;
}

.vis-item.e-79, .e-79 { /* Fire Crackers */

    background-color: #E3CFB9;
}

.vis-item.e-80, .e-80 { /* Crusher */

    background-color: #DCDDDE;
}

.vis-item.e-81, .e-81 { /* Guard Post */

    background-color: #DADEEB;
}

.vis-item.e-82, .e-82 { /* Air Bombs */

    background-color: #DCDFF8;
}

.vis-item.e-83, .e-83 { /* Multi Mortar */

    background-color: #E9E8EA;
}

.vis-item.e-84, .e-84 { /* Roaster */

    background-color: #E7E6EC;
}

.vis-item.e-85, .e-85 { /* Giant Cannon */

    background-color: #EFD6BA;
}

.vis-item.e-102, .e-102 { /* Mega Tesla */

    background-color: #BCE1F3;
}

.vis-item.e-112, .e-112 { /* Lava Launcher */

    background-color: #d8d5d5;
}

.vis-item.e-114, .e-114 { /* O.T.T.O Hut */

    background-color: #ebe4e4;
}

.vis-item.e-115, .e-115 { /* Double Cannon (Gear Up) */

    background-color: #D8D7E3;
}

.vis-item.e-116, .e-116 { /* Archer Tower (Gear Up) */
    background-color: #DFDFEC;
}

.vis-item.e-117, .e-117 { /* Multi Mortar (Gear Up) */
    background-color: #E9E8EA;
}

.vis-item.e-86, .e-86 { /* Push Trap */

    background-color: #FCEDC7;
}

.vis-item.e-87, .e-87 { /* Spring Trap */

    background-color: #FDD0BD;
}

.vis-item.e-88, .e-88 { /* Mine */

    background-color: #E4DEE4;
}

.vis-item.e-89, .e-89 { /* Mega Mine */

    background-color: #DCD3DC;
}

.vis-item.e-90, .e-90 { /* Raged Barbarian */

    background-color: #F9EAA4;
}

.vis-item.e-91, .e-91 { /* Sneaky Archer */

    background-color: #EAFF84;
}

.vis-item.e-92, .e-92 { /* Boxer Giant */

    background-color: #D8BEBE;
}

.vis-item.e-93, .e-93 { /* Beta Minion */

    background-color: #D8F9CA;
}

.vis-item.e-94, .e-94 { /* Bomber */

    background-color: #D9D9D7;
}

.vis-item.e-95, .e-95 { /* Baby Dragon */

    background-color: #B1EDA3;
}

.vis-item.e-96, .e-96 { /* Cannon Cart */

    background-color: #D8D7E3;
}

.vis-item.e-97, .e-97 { /* Night Witch */

    background-color: #CFD8E0;
}

.vis-item.e-98, .e-98 { /* Drop Ship */

    background-color: #E6C6F4;
}

.vis-item.e-101, .e-101 { /* PEKKA */

    background-color: #B5D5EA;
}

.vis-item.e-113, .e-113 { /* Hog Glider */

    background-color: #fcdac9;
}

.vis-item.e-100, .e-100 { /* Battle Machine */

    background-color: #E4D1C0;
}

.vis-item.e-124, .e-124 { /* Invisibility Spell */

    background-color: #EFEFEF;
}

.vis-item.e-127, .e-127 { /* Battle Builder Hut */

    background-color: #E4F3EF;
}

.vis-item.e-128, .e-128 { /* Pet House */

    background-color: #F5CFB2;
}

.vis-item.e-129, .e-129 { /* L.A.S.S.I */

    background-color: #C9D3F3;
}

.vis-item.e-130, .e-130 { /* Electro Owl */

    background-color: #E4EBF1;
}

.vis-item.e-131, .e-131 { /* Mighty Yak */

    background-color: #F4DFD0;
}

.vis-item.e-132, .e-132 { /* Unicorn */

    background-color: #F8F6FE;
}

.vis-item.e-141, .e-141 { /* Frosty */

	background-color: #DCD7E9;
}

.vis-item.e-142, .e-142 { /* Diggy */

	background-color: #E0D1FF;
}

.vis-item.e-143, .e-143 { /* Poison Lizard */

	background-color: #BBEF1D;
}

.vis-item.e-144, .e-144 { /* Phoenix */

	background-color: #FFD0E7;
}

.vis-item.e-145, .e-145 { /* O.T.T.O's Outpost */

	background-color: #D0E3FF;
}

.vis-item.e-146, .e-146 { /* Reinforcement Camp */

	background-color: #FEE8D8;
}

.vis-item.e-147, .e-147 { /* Healing Hut */

	background-color: #FFEBC6;
}

.vis-item.e-148, .e-148 { /* Battle Coptor */

	background-color: #DADEF1;
}

.vis-item.e-149, .e-149 { /* X-Bow */

	background-color: #A7DAE7;
}

.vis-item.e-150, .e-150 { /* Electrofire Wizard */

	background-color: #FFD79B;
}

.vis-item.e-151, .e-151 { /* Apprentice Warden */

	background-color: #F0BCF3;
}

.vis-item.e-152, .e-152 { /* Blacksmith */

    background-color: #C6E0E1;
}

.vis-item.e-202, .e-202 { /* Hero Hall */

    background-color: #E9D6D9;
}

.vis-item.e-153, .e-153 { /* Multi-Archer Tower */

    background-color: #FFF4E1;
}

.vis-item.e-214, .e-214 { /* Multi-Gear Tower */

    background-color: #E1EAF2;
}

.vis-item.e-154, .e-154 { /* Ricochet Cannon */

    background-color: #DCDFDB;
}

.vis-item.e-203, .e-203 { /* Firespitter */

    background-color: #FFE1BF;
}

.vis-item.e-155, .e-155 { /* Spirit Fox */

    background-color: #DCDFDB;
}

.vis-item.e-156, .e-156 { /* Root Rider */

    background-color: #EDD6CF;
}

.vis-item.e-204, .e-204 { /* Thrower */

    background-color: #FFEAFF;
}

.vis-item.e-175, .e-175 { /* Overgrowth Spell */

    background-color: #EFF7B7;
}

.vis-item.e-193, .e-193 { /* Angry Jelly */

    background-color: #FFDDFE;
}

.vis-item.e-217, .e-217 { /* Sneezy */

    background-color: #E0E2EF;
}

.vis-item.e-259, .e-259 { /* Greedy Raven */

    background-color: #CDCDCD;
}

.vis-item.e-193, .e-197 { /* Druid */

    background-color: #FFF9B7;
}

.vis-item.e-218, .e-218 { /* Furnace */

    background-color: #FFF2D5;
}

.vis-item.e-282, .e-282 { /* Ruin Witch */

    background-color: #dfcdf5;
}

.vis-item.e-206, .e-206 { /* Helper Hut */

    background-color: #FEE6C0;
}

.vis-item.e-227, .e-227 { /* Hook Tower HP */

    background-color: #FFF066;
}

.vis-item.e-228, .e-228 { /* Hook Tower Attack Speed */

    background-color: #FFF7A8;
}

.vis-item.e-229, .e-229 { /* Hook Tower Stun */

    background-color: #FFFACE;
}

.vis-item.e-230, .e-230 { /* Flame Spinner HP */

    background-color: #FDBB9B;
}

.vis-item.e-231, .e-231 { /* Flame Spinner DPH */

    background-color: #FED3BE;
}

.vis-item.e-232, .e-232 { /* Flame Spinner Burst */

    background-color: #FEDDCD;
}

.vis-item.e-233, .e-233 { /* Crusher Mortar HP */

    background-color: #B9B9B3;
}

.vis-item.e-234, .e-234 { /* Crusher Mortar DPH */

    background-color: #CBCBC7;
}

.vis-item.e-235, .e-235 { /* Crusher Mortar Burst */

    background-color: #DCDCDA;
}

.vis-item.e-236, .e-236 { /* Ice Block Spell */

    background-color: #D7E1FF;
}

.vis-item.e-281, .e-281 { /* Angry Spell */

    background-color: #FFDDFE;
}

.vis-item.e-239, .e-239 { /* Longshot */

    background-color: #abb8ee;
}

.vis-item.e-240, .e-240 { /* Smasher */

    background-color: #a8aec8;
}

.vis-item.e-277, .e-277 { /* Logger */

    background-color: #c9cfe8;
}

.vis-item.e-241, .e-241 { /* Meteor Golem */

    background-color: #d4c5c3;
}

.vis-item.e-242, .e-242 { /* Superwiz Tower */

    background-color: #9adeff;
}

.vis-item.e-243, .e-243 { /* Revenge Tower */

    background-color: #c1d2fa;
}

.vis-item.e-244, .e-244 { /* Totem Spell */

    background-color: #a0bad8;
}

.vis-item.e-248, .e-248 { /* Hero Bell HP */

    background-color: #FFF066;
}

.vis-item.e-249, .e-249 { /* Hero Bell DMG */

    background-color: #FFF7A8;
}

.vis-item.e-250, .e-250 { /* Hero Bell HP */

    background-color: #FFFACE;
}

.vis-item.e-251, .e-251 { /* Bomb Hive HP */

    background-color: #B9B9B3;
}

.vis-item.e-252, .e-252 { /* Bomb Hive DPH */

    background-color: #CBCBC7;
}

.vis-item.e-253, .e-253 { /* Bomb Hive Tiles */

    background-color: #DCDCDA;
}

.vis-item.e-254, .e-254 { /* Light Beam HP */

    background-color: #FDBB9B;
}

.vis-item.e-255, .e-255 { /* Light Beam DPH */

    background-color: #FED3BE;
}

.vis-item.e-256, .e-256 { /* Light Beam Cooldown */

    background-color: #FEDDCD;
}

.vis-item.e-267, .e-267 { /* Roaster HP */

    background-color: #FFF066;
}

.vis-item.e-268, .e-268 { /* Roaster DMG */

    background-color: #FFF7A8;
}

.vis-item.e-269, .e-269 { /* Roaster Shots */

    background-color: #FFFACE;
}

.vis-item.e-270, .e-270 { /* Air Bombs HP */

    background-color: #B9B9B3;
}

.vis-item.e-271, .e-271 { /* Air Bombs DPH */

    background-color: #CBCBC7;
}

.vis-item.e-272, .e-272 { /* Air Bombs Cooldown */

    background-color: #DCDCDA;
}

.vis-item.e-273, .e-273 { /* Lava Launcher HP */

    background-color: #FDBB9B;
}

.vis-item.e-274, .e-274 { /* Lava Launcher DPS */

    background-color: #FED3BE;
}

.vis-item.e-275, .e-275 { /* Lava Launcher Tiles */

    background-color: #FEDDCD;
}

.vis-item.e-286, .e-286 { /* Hot Candle HP */

    background-color: #FFF066;
}

.vis-item.e-287, .e-287 { /* Hot Candle DMG */

    background-color: #FFF7A8;
}

.vis-item.e-288, .e-288 { /* Hot Candle Shots */

    background-color: #FFFACE;
}

.vis-item.e-289, .e-289 { /* Hero Hunter HP */

    background-color: #B9B9B3;
}

.vis-item.e-290, .e-290 { /* Hero Hunter DPH */

    background-color: #CBCBC7;
}

.vis-item.e-291, .e-291 { /* Hero Hunter Cooldown */

    background-color: #DCDCDA;
}

.vis-item.e-292, .e-292 { /* Cake-A-Pult HP */

    background-color: #FDBB9B;
}

.vis-item.e-293, .e-293 { /* Cake-A-Pult DPS */

    background-color: #FED3BE;
}

.vis-item.e-294, .e-294 { /* Cake-A-Pult Tiles */

    background-color: #FEDDCD;
}

.vis-item.e-100000, .e-100000 { /* Forge - Gold */

	background-color: #FFF3BD;
}

.vis-item.e-100001, .e-100001 { /* Forge - Elixir */

	background-color: #FED5FF;
}

.vis-item.e-100002, .e-100002 { /* Forge - DE */

	background-color: #E0D9E3;
}

.vis-item.e-100005, .e-100005 { /* Forge - Builder Gold */

	background-color: #FFED99;
}

.vis-item.e-100006, .e-100006 { /* Forge - Builder Elixir */

	background-color: #E6BDFD;
}

/*#endregion */

/*#region Builder Event Colours */

.vis-item.vis-background.event-cwl {
    font-weight: bold;
    background-color: rgba(253, 191, 56, 0.4);
}

.vis-item.vis-background.event-cg {
    font-weight: bold;
    background-color: rgba(231, 231, 223, 0.4);
}

.vis-item.vis-background.event-hj {
    font-weight: bold;
    background-color: rgba(90, 220, 60, 0.4);
    padding-left: 85px;
}

.vis-item.vis-background.sj2025-gbc {
    font-weight: bold;
    background-color: rgba(220, 140, 0, 0.4);
    padding-left: 85px;
}

.vis-item.vis-background.sj2025-ebc {
    font-weight: bold;
    background-color: rgba(170, 49, 205, 0.4);
    padding-left: 85px;
}

.vis-item.vis-background.sj2025-debc {
    font-weight: bold;
    background-color: rgba(33, 33, 33, 0.4);
}

.vis-item.vis-background.sj2025-abc {
    font-weight: bold;
    background-color: rgba(220, 220, 220, 0.4);
    padding-left: 85px;
}

.vis-item.vis-background.event-reengagement {
    font-weight: bold;
    background-color: rgba(64, 120, 192, 0.4);
}

.vis-item.vis-background.event-goblin-worker {
    font-weight: bold;
    background-color: rgba(90, 220, 60, 0.4);
}

/* Outside the user's active hours (no upgrades planned to start) */
.vis-item.vis-background.planner-inactive-hours {
    background-color: transparent;
    background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.07) 0, rgba(0, 0, 0, 0.07) 6px, rgba(0, 0, 0, 0.03) 6px, rgba(0, 0, 0, 0.03) 12px);
}

/*#endregion */

/*#region Modify Modal */

.modify-modal h1, .village-share-socials h1, .screenshot-modal h1, .swap-queue-modal h1 {
    font-size: 25px;
    font-weight: bold;
}

.swap-queue-modal h4 {
    font-size: 18px;
    font-weight: bold;
}

.modify-modal h2 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.modify-modal p, .screenshot-modal p {
    font-size: 13px;
}

.modify-modal p.larger, .screenshot-modal p.larger {
    font-size: 16px;
}

.modify-modal #error {
    font-weight: bold;
}

.modify-modal .entity-image {
    height: 90px;
}

.modify-modal .action {
    line-height: 100px;
    font-size: 40px;
}

.modify-modal .action .fa-ban {
    color: #CC0000;
}

.modify-modal .gem-amount {
	
	width: 100%;
	color: #4C8905;
	/*font-size: 14px;*/
	line-height: 20px;
	text-align: center;
}

.modify-modal .gem-amount img {
    
	margin-right: 5px;
	height: 20px;
}

.modify-modal .dd-selected:hover, .modify-modal .dd-option:hover {
    text-decoration: none;
}

.modify-modal label {
    font-weight: bold;
    color: #4078C0;
}

.modify-modal input[type=checkbox] {
    margin: 0 auto;
    width: 16px;
    height: 16px;
    display: block;
}

.complete-modal-magic-item h3 {

	margin: 10px 0 5px 0;
	font-weight: bold;
	font-size: 18px;
}

.complete-modal-magic-item label {
	
	width: 70px;
	display: inline-block;
}

.modify-modal input[type=radio] {
	margin: 0 auto;
	width: 16px;
	height: 16px;
	display: block;
}

.change-builder-checkbox {
    margin-bottom: 10px;
}

.change-builder-checkbox input[type=checkbox] {
    width: 20px;
    height: 20px;
    vertical-align: -5px;
    display: inline;
}

.change-builder-checkbox label {
    display: inline;
}

.change-builder-values {

    display: none;
}

.change-builder-values option.active {
    background-color: #fadea2;
}

.change-builder-values option.idle {

    background-color: #abf76c;
}

.reengagement-boost {

    margin-bottom: 20px;
}

.reengagement-boost h3 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    background-color: #4078C0;
    text-align: left;
}

.reengagement-boost h3 a {
    color: #FFFFFF;
    display: block;
}

.reengagement-boost h3 a:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.reengagement-boost h3.open a:before {
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.home-time-boost {

    margin-bottom: 20px;
}

.home-time-boost h3 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    background-color: #4078C0;
    text-align: left;
}

.home-time-boost h3 a {
    color: #FFFFFF;
    display: block;
}

.home-time-boost h3 a:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.home-time-boost h3.open a:before {
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    font-weight: 700;
}

.modal-builders-apprentice h2 {

    font-size: 16px;
}

.modal-builders-apprentice .fa-lock, .village-timer-info .fa-lock {
    color: #CC0000;
}


.modal-builders-apprentice-current-level {

    height: 100px;
}

.modal-builders-apprentice-set-level {
    height: 100px;
    display: none;
}

.modal-builders-apprentice-set-timer {
    display: none;
}

#ddlBuildersApprenticeLevels {
    margin: 10px auto;
    width: 60px;
    display: block;
}

.modal-builders-apprentice-level {
    font-size: 16px;
    font-weight: bold;
    line-height: 40px;
}

.modal-builders-apprentice-upgrade-level {
    font-size: 14px;
    white-space: nowrap;
}

.modal-builders-apprentice-upgrade-level img {

    max-height: 16px;
}

.builder-app-efficency {

    font-size: 10px;
    font-weight: bold;
}

.builder-app-efficency.eff-ok {
    color: #5da423;
}

.builder-app-efficency.eff-warn {
    color: #FFAE00;
}

.builder-app-efficency.eff-bad {
    color: #CC0000;
}

.modal-helper-keep-assigned {

    margin-bottom: 10px;
}

.modal-helper-keep-assigned input[type=checkbox] {
    width: 20px;
    height: 20px;
    vertical-align: -5px;
    display: inline;
}

.modal-helper-keep-assigned label {

    font-weight: normal;
    color: inherit;
    display: inline;
}

.pnlHelperFullyUpgraded {

    font-size: 14px;
    font-weight: bold;
    color: #5da423;
}

.alchemist-resource-info {
    margin-bottom: 10px;
    padding: 5px;
    border: solid 1px #333;
    border-radius: 5px;
    background-color: #D9D9D9;
    font-size: 14px;
    font-weight: bold;
    color: #363636;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.alchemist-resource-info .value {

    /*color: #FFFFFF;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;*/
    font-size: 18px;
}

.alchemist-resource-info .value img {

    max-height: 25px;
    display: inline-block;
}

.alchemist-resource-info .progress {

    background: linear-gradient(to bottom, rgba(138, 217, 58, 1) 0%, rgba(144, 215, 55, 1) 49%, rgba(66, 170, 4, 1) 50%, rgba(56, 169, 1, 1) 50%, rgba(56, 169, 1, 1) 100%);
}

.alchemist-resource-info .progress {
    margin-top: 7px;
    margin-bottom: 0;
    border: solid 1px #3C3F50;
    height: 5px;
    background: rgb(53,59,73);
    background: linear-gradient(to bottom, rgba(53,59,73,1) 0%,rgba(70,79,96,1) 49%,rgba(66,170,4,1) 50%,rgba(59,62,77,1) 50%,rgba(60,63,83,1) 100%);
}

.alchemist-resource-info .progress-meter {
    background: rgb(138,217,58);
    background: linear-gradient(to bottom, rgba(138,217,58,1) 0%,rgba(144,215,55,1) 49%,rgba(66,170,4,1) 50%,rgba(56,169,1,1) 50%,rgba(56,169,1,1) 100%);
}

.pnlAlchemistResources .fa-arrow-alt-right {
    margin-top: 40px;
    font-size: 60px;
    color: #9CE244;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.alchemist-resource-container {
    
    border: solid 1px #333;
    border-radius: 5px;
    height: 150px;
    /*background: linear-gradient(to bottom, #efeae6 1%,#fcfaff 22%,#fcfaff 27%,#fcfaff 27%,#ece7e3 41%,#ece7e3 63%,#b0a498 100%);*/
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    /*background-color: #EEEEEE;*/
}

.alchemist-resource-total {
    margin-bottom: 15px;
    border: solid 1px #333;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin: 0 auto;
    width: calc(100% - 30px);
    height: 30px;
    line-height: 30px;
    background-color: #EEEEEE;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    /*color: #FFFFFF;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;*/
    font-size: 18px;
    font-weight: bold;
}

.alchemist-resource-item {
    border-bottom: solid 1px #333;
    height: 50px;
    cursor: pointer;
    background-color: #F5F5F5;
}

.alchemist-resource-item:hover {
    
    background-color: #FFF5C1;
}

.alchemist-resource-item:first-of-type {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.alchemist-resource-item:last-of-type {
    border-bottom: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 48px;
}

.alchemist-resource-item img {
    margin-top: 10px;
    max-height: 30px;
    user-select: none;
}

.alchemist-resource-item.selected {
    background-color: #5da423;
}

.alchemist-resource-item.disabled {
    filter: grayscale(50%);
    cursor: not-allowed;
    background-color: #D9D9D9;
}

.pnlAlchemistResources input[type="range"] {
    -webkit-appearance: none;
    margin-top: 10px;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.pnlAlchemistResources .resource-range-input {

    position: relative;
}

.pnlAlchemistResources .resource-range-input-fill {

    position: absolute;
    left: 0;
    background-color: #333;
    pointer-events: none;
    height: 32px;
    display: block;
}

.pnlAlchemistResources input[type="range"]::-webkit-slider-runnable-track {
    border: solid 1px #333;
    border-radius: 3px;
    height: 20px;
    background-color: #999999;
}

.pnlAlchemistResources input[type="range"]::-moz-range-track {
    border: solid 1px #333;
    border-radius: 3px;
    height: 20px;
}

.pnlAlchemistResources input[type="range"].gold::-webkit-slider-runnable-track {

    background: linear-gradient(to bottom, #cba506 0%,#edd050 18%,#edd050 18%,#edd050 27%,#edd050 42%,#dab711 65%,#cba506 100%);
}

.pnlAlchemistResources input[type="range"].elixir::-webkit-slider-runnable-track {
    background: linear-gradient(to bottom, #b841c3 0%,#da85d8 18%,#da85d8 42%,#c852ca 65%,#b841c3 100%);
}

.pnlAlchemistResources input[type="range"].de::-webkit-slider-runnable-track {
    background: linear-gradient(to bottom, #452c53 0%,#867482 18%,#867482 41%,#583b57 65%,#452c53 100%);
}

.pnlAlchemistResources input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;  /* Override default look*/ 
    border: solid 1px #333;
    border-radius: 50%;
    appearance: none;
    margin-top: -6px;  /* Centers thumb on the track */
    background-color: #EFEFEF;
    height: 32px;
    width: 32px;
}

.pnlAlchemistResources input[type="range"]::-moz-range-thumb {
    border: solid 1px #333;
    border-radius: 50%;
    background-color: #5cd5eb;
    background-color: #EFEFEF;
    height: 32px;
    width: 32px;
}

.pnlAlchemistResources input[type="range"]:focus {
    outline: none;
}

.alchemist-resource-convert {

    margin-bottom: 10px;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
}

.alchemist-resource-convert-value {
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 1px 1px 5px #000;
}

.pnlAlchemistResources input[type="range"]:disabled {

    opacity: 50%;
    filter: grayscale(50%);
    cursor: not-allowed;
}

.alchemist-conversion-message {

    margin-top: 10px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: bold;
}

.alchemist-conversion-message.success {

    color: #5da423;
}

/* Small only */
@media screen and (max-width: 41.8375em) {

    .alchemist-max-convert-ge, .alchemist-max-convert-de {
    
        font-size: 14px;
    }

    .pnlAlchemistResources .fa-arrow-alt-right {
        margin-top: 50px;
        font-size: 50px;
    }
}


/* Large only */
@media screen and (min-width: 64em) {
    #trader-cycle-select {
        min-height: 350px;
    }
}

.builder-busy th {
	font-size: 14px;
}

.builder-busy .progress {
	margin-bottom: 5px;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
}

.builder-busy td {

    padding: 2px 5px;
}

/* Small only */
@media screen and (max-width: 24.375em) {

    .builder-busy th {
        font-size: 12px;
    }

    .builder-busy th, .builder-busy td {
        padding: 2px;
    }
}

/* Very Small Only*/
@media screen and (max-width: 360px) {

	.builder-busy td {

		padding: 2px;
	}

	.potion-new-completion {

		font-size: 10px;
	}

	.potion-additional-text {

		display: none;
	}
}

#imgPotion {

	margin: 0 10px 0 0;
	height: 40px;
	float: right;
}

.potion-minus {
	border-top-left-radius: 3px !important;
	border-bottom-left-radius: 3px !important;
}

.potion-minus, .potion-plus {
	text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
}


.potion-reqd {
	font-size: 11px;
	color: #4078C0;
}

/*#endregion */

/*#region Reorder Villages */

#reorder-list {
	margin: 40px 0;
	list-style: none;
}

#reorder-list li {
    border: solid 2px #F5F5F5;
    height: 60px;
    line-height: 60px;
    background-color: #4078C0;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 20px;
    cursor: ns-resize;
}

#reorder-list li i {
    margin-left: 20px;
    line-height: 60px;
    float: left;
}

/*#endregion */
/*#region Delete Village */
#delete-village-list {
	margin: 20px 0;
	list-style: none;
}

#delete-village-list li {
    border: solid 2px #F5F5F5;
    height: 60px;
    line-height: 60px;
    background-color: #cc4b37;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 20px;
}

#delete-village-list li i {
    margin-right: 20px;
    height: 60px;
    line-height: 60px;
    float: right;
}

#delete-village-list li a {
    color: #FFFFFF;
}

.delete-village-details h2 {
    font-weight: bold;
    font-size: 30px;
}

.delete-village-details .player-tag {
    font-size: 16px;
}

.delete-village-details h3 {
    margin: 10px 0;
    font-weight: bold;
    font-size: 22px;
}

.delete-village-details img {
    max-height: 170px;
}

.delete-village-details input[type=checkbox] {
    margin-top: 30px;
    /*width: 20px;
    height: 20px;
    display: inline-block;*/
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    vertical-align: bottom;
    position: relative;
    top: -5px;
    *overflow: hidden;
}

.delete-village-details label {
    margin-top: 30px;
    /*line-height: 20px;*/
    display: block;
    padding-left: 15px;
    text-indent: -15px;
    font-size: 18px;
    font-weight: bold;
    color: #cc4b37;
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.5);
}

#lbDelete {
    margin-top: 20px;
}

/*#endregion */

/* Potions row */
.potion-add-btn {
    cursor: pointer;
    margin-left: 4px;
    color: #4C8905;
}

.potion-add-btn:hover {
    color: #6BBF0B;
}

/* Time saved on an upgrade by a planned/active builder potion */
.potion-saved {
    color: #1C8FB0;
    font-weight: bold;
    white-space: nowrap;
}

/* Half height row and items (!important so it beats the mobile compact item rules) */
#builders-chart .vis-item.item-potion:not(.vis-background) {
    height: 25px !important;
    background-color: #6EE0FC;
    border-color: #2A9CBA;
    color: #0B3340;
}

/* Research and pet potions (builder potions use the colours above) */
#builders-chart .vis-item.item-potion.item-potion-lab:not(.vis-background) {
    background-color: #F9A0D7;
    border-color: #D35FA8;
    color: #3D0026;
}

#builders-chart .vis-item.item-potion.item-potion-petplanner:not(.vis-background) {
    background-color: #D8D6D0;
    border-color: #A09D94;
    color: #333333;
}

/* Clock Tower Potions (builder base builders row) */
#builders-chart .vis-item.item-potion.item-potion-mid-1:not(.vis-background) {
    background-color: #F5C76A;
    border-color: #C08A1E;
    color: #3A2600;
}

#builders-chart .vis-item.item-potion.item-potion-active {
    border-style: dashed;
}

#builders-chart .vis-item.item-potion:not(.vis-background) .vis-item-content {
    padding: 2px 4px;
    line-height: 19px;
    white-space: nowrap;
}

#builders-chart .vis-item.item-potion .planner-entity-icon {
    width: 20px;
    height: 19px;
    margin-top: 0;
    margin-right: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Row: 2px above + 25px item + 1px below (mobile: 2 + 20 + 1).  The label is held to exactly that height (no vertical
   padding) - if it's taller, the row grows and the potion ends up with a gap above it */
#builders-chart .vis-labelset .vis-label.potions-group .vis-inner {
    min-height: 28px !important;
    height: 28px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 28px;
}

@media screen and (max-width: 41.8375em) {

    #builders-chart .vis-item.item-potion:not(.vis-background) {
        height: 20px !important;
    }

    #builders-chart .vis-item.item-potion:not(.vis-background) .vis-item-content {
        padding: 1px 4px;
        line-height: 18px;
    }

    #builders-chart .vis-item.item-potion .planner-entity-icon {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }
    #builders-chart .vis-labelset .vis-label.potions-group .vis-inner {
        min-height: 23px !important;
        height: 23px;
        line-height: 23px;
    }
}

/* Centred title and description (the paragraph holding the potion icon) */
.potion-modal-planner .potion-modal-title,
.potion-modal-planner .potion-modal-intro {
    text-align: center;
}

.potion-modal-planner .potion-modal-icon {
    height: 32px;
    vertical-align: middle;
}

/* Row 1: "Number of potions" label + start mode options on one line.  Row 2: count input + date input */
/* minmax(0, 1fr) rather than 1fr, so the date input's built in minimum width can't push the modal wider than the screen */
.potion-modal-planner .potion-fields {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-areas:
        "count-label mode"
        "count time";
    gap: 6px 20px;
    align-items: center;
    margin-bottom: 10px;
}

.potion-modal-planner .potion-count-label {
    grid-area: count-label;
}

.potion-modal-planner .potion-time-mode {
    grid-area: mode;
    min-width: 0;
}

.potion-modal-planner .potion-count {
    grid-area: count;
}

.potion-modal-planner .potion-time {
    grid-area: time;
    min-width: 0;
}

/* Mobile: one column - the count with its label, then the start mode options with the date */
@media screen and (max-width: 41.8375em) {

    .potion-modal-planner .potion-fields {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "count-label"
            "count"
            "mode"
            "time";
    }

    /* .potion-fields in the selector so it beats the margin: 0 rule further down */
    .potion-modal-planner .potion-fields .potion-time-mode {
        margin-top: 6px;
    }
}

.potion-modal-planner .potion-count-label,
.potion-modal-planner .potion-time-mode label {
    margin: 0;
    line-height: 24px;
}

.potion-modal-planner .potion-time-mode {
    margin: 0;
    padding: 0;
    border: 0;
}

.potion-modal-planner .potion-time-mode label {
    display: inline-block;
    margin-right: 12px;
    white-space: nowrap;
}

.potion-modal-planner .potion-count,
.potion-modal-planner .potion-time {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.potion-modal-planner .text-center .button {
    margin-bottom: 0;
}

/* "Set as active potion" checkbox, above the buttons, with the remaining duration dropdowns under it */
.potion-modal-planner .potion-active {
    margin-bottom: 10px;
}

.potion-modal-planner .potion-active-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 24px;
}

/* input[type=checkbox] in the selector so it beats .modify-modal input[type=checkbox], which centres it on its own line */
.potion-modal-planner .potion-active-label input[type=checkbox] {
    display: inline-block;
    margin: 0;
}

.potion-modal-planner .potion-active-label:has(.potion-active-chk:disabled) {
    opacity: 0.6;
}

.potion-modal-planner .potion-active-note {
    margin: 4px 0 0 0;
    font-size: 13px;
}

.potion-modal-planner .potion-active-heading {
    margin: 8px 0 4px 0;
}

.potion-modal-planner .potion-active-fields select {
    margin-bottom: 0;
}

.potion-modal-planner .potion-active-warning {
    margin: 10px 0 0 0;
}

/* #region Planner queue tabs (builders / lab / pets queues under the shared timeline) */

/* Header rows above the builders, lab and pets rows on the timeline: click to collapse/expand that section */
#builders-chart .vis-labelset .vis-label.planner-section-group .vis-inner {
    min-height: 0 !important;
    padding-top: 2px;
    padding-bottom: 2px;
    font-weight: bold;
}

#builders-chart .vis-label.planner-section-group,
#builders-chart .vis-foreground .vis-group.planner-section-group {
    border-top: 2px solid #4078C0;
}

#builders-chart .vis-label.planner-section-group {
    user-select: none;
}

/* The arrow vis adds to a collapsible row */
#builders-chart .vis-label.planner-section-group.vis-nesting-group:before {
    padding-left: 5px;
    font-size: 10px;
}

/* Keep the rows in a section looking as they did before they were nested (vis indents and shades nested rows) */
#builders-chart .vis-label.vis-nested-group,
#builders-chart .vis-label.vis-nested-group.vis-group-level-1 {
    padding-left: 0;
    background-color: transparent;
}

#builders-chart .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
    padding-left: 5px;
}

.planner-queue-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px 0;
    padding: 4px;
    border: 1px solid #333333;
    border-radius: 12px;
    background: #4078c0;
    color: #FFFFFF;
}

.planner-queue-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    line-height: 34px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    opacity: 0.7;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333, 1px 1px 5px #333;
}

.planner-queue-tab img {
    height: 22px;
}

.planner-queue-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.planner-queue-tab.selected {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    opacity: 1;
}

@media screen and (max-width: 41.8375em) {

    .planner-queue-tab {
        padding: 0 8px;
        line-height: 28px;
        font-size: 13px;
    }

    .planner-queue-tab img {
        height: 18px;
    }
}

/* #endregion */


.tier-header h2 {

    font-size: 24px;
    font-weight: bold;
}

.tier-header h2 .fa-external-link {

    color: #67707F;
}

.share-village-overview {

    margin-top: 20px;
}

.share-village-overview h4 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.share-village-overview h5 {

    font-size: 16px;
    font-weight: bold;
}

.share-village h3 {

    border-top: solid 1px #CCCCCC;
    padding: 25px 0;
    font-size: 28px;
    font-weight: bold;
}

.share-village h4 {

    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.share-village h5 {
    
    margin-bottom: 10px;
    font-size: 18px;
}

.entity-icon {
    margin: 0 5px 5px 0;
    width: 38px;
    height: 38px;
    border: solid 1px #CCCCCC;
    border-radius: 3px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: #67707F;
    position: relative;
    float: left;
    box-shadow: 2px 2px 3px rgba(90, 90, 90, 0.5);
}

.entity-icon.locked {

    filter: grayscale(100%);
    opacity: 0.8;
}

/* Troop/spell/hero/pet/siege backgrounds (colours taken from the in-game tiles) */
.entity-icon.tile-standard {
    background-color: #5269B6;
}

.entity-icon.tile-squad {
    background-color: #5AA06A;
}

/* Hero equipment rarity backgrounds (colours taken from the in-game equipment cards) */
.entity-icon.rarity-common {
    background-color: #4FB6F8;
}

.entity-icon.rarity-epic {
    background-color: #BE51F8;
}

.entity-icon-level, .entity-upgrading, .entity-unlocked {
    
    border-radius: 3px;
    width: 16px;
    height: 16px;
    text-align: center;
    position: absolute;
}

.entity-icon-level {
   
    color: #FFFFFF;
    background-color: #2D282C;
    bottom: 1px;
    left: 1px;
    /* Grow to fit 3 digit levels (e.g. heroes over 100) */
    width: auto;
    min-width: 16px;
    padding: 0 2px;
    box-sizing: border-box;
    white-space: nowrap;
}

.entity-icon-level.max {

    background-color: #FFBF5E;
    font-weight: bold;
    text-shadow: 0 0 2px #000000;
}

.entity-icon-level.maxforth {

    background-color: #6aabff;
    font-weight: bold;
    text-shadow: 0 0 2px #000000;
}

.entity-upgrading {
        
    color: #FFFFFF;
    background-color: #4078C0;
    bottom: 1px;
    right: 1px;
}

.entity-upgrading i {
    
    line-height: 16px;
}

.entity-unlocked {

    color: #FFFFFF;
    background-color: #4A831C;
    bottom: 1px;
    left: 1px;
}

/* Small and medium */
@media screen and (max-width: 63.9375em) {

    .share-village-overview h4 {
        font-size: 18px;
        font-weight: bold;
    }


    .entity-icon {
        margin: 0 2px 2px 0;
        width: 28px;
        height: 28px;
    }

    .entity-icon-level, .entity-upgrading, .entity-unlocked {
        border-radius: 2px;
        width: 12px;
        height: 12px;
        font-size: 9px;
        text-align: center;
        position: absolute;
    }

    .entity-icon-level {
        width: auto;
        min-width: 12px;
        padding: 0 1px;
    }
}

.wall-icon-holder {

    margin: 0 5px 5px 0;
    font-weight: bold;
    text-align: center;
    float: left;
}

.wall-icon {

    width: 38px;
    height: 38px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
/*@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
    }
}*/

.entity-icon-dead {

    clear: both;
}

.village-share-structures {

    /*width: auto;*/
    border: solid 1px #333333;
    background-color: transparent;
}

.village-share-structures th {

    border: solid 1px #333333;
    font-size: 15px;
    font-weight: bold;
    background-color: #4078C0;
    color: #FFFFFF;
}

.village-share-structures tbody {

    border: solid 1px #333333;
}

.village-share-structures td {

    height: 60px;
}

.village-share-structures .level {

    font-size: 16px;
}

.village-share-structures img.structure {
    max-height: 40px;
}

.village-share-structures .fully-upgraded {
    font-size: 14px;
    color: #4A831C;
}

.village-share-structures .not-constructed {
    
    font-size: 14px;
    color: #CC0000;
}

.village-share-structures .upgrades-remaining {

    font-size: 14px;
    color: #FFAE00;
}

.upgrading .progress {
    margin-bottom: 5px;
}

.upgrading .upgrade-timer {
    margin-bottom: 5px;
    border-bottom: solid 1px #E6E6E6;
    font-weight: bold;
    font-size: 14px;
}

/*#region Social Links */

#social-share-village-holder {

    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    width: 400px;
    height: 150px;
    text-align: center;
    border-radius: 5px;
    height: 50px;
    box-shadow: 2px 2px 3px rgba(90, 90, 90, 0.9);
}


.social-share-village-link {

    padding: 0 10px;
    width: 100px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    transition: background-color 0.5s, text-shadow 0.5s;
}

.social-share-village-link i {
    margin-top: 12px;
    font-size: 22px;
    float: left;
}

/* Small only */
@media screen and (max-width: 39.9375em) {

    #social-share-village-holder {
    
        width: 200px;
    }

    .social-share-village-link {
       
        padding: 0;
        width: 50px;
        text-align: center;
    }

    .social-share-village-link i {

        float: none;
    }
}

.social-share-village-link {
    float: left;
}

 .social-share-village-link a {

    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(90, 90, 90, 0.9);
    display: block;
}

.social-share-village-link a:hover {

    text-shadow: 2px 2px 3px rgba(90, 90, 90, 0.9);
}


.social-share-village-link.facebook {
    background-color: #3B589E;
}

    .social-share-village-link.facebook:hover {
        background-color: #5F7CC2;
    }

.social-share-village-link.twitter {
    background-color: #444444; /*#1D8EEE*/
}

.social-share-village-link.twitter:hover {
    background-color: #646464; /*#50A9F1*/
}

.social-share-village-link.reddit {
    background-color: #FF5700;
}

.social-share-village-link.reddit:hover {
        background-color: #FF782F;
    }

.social-share-village-link.email {
    background-color: #1D8EEE;
}

.social-share-village-link.email:hover {
    background-color: #50A9F1;
}

    .social-share-village-link.facebook {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

    .social-share-village-link.email {
        border-bottom-right-radius: 5px;
        border-top-right-radius: 5px;
    }

/*#endregion */
