/** ------------ tag / label ------------ **/
.tag {
    padding: 3px;
    font-size: 12px;
    border-radius: 4px;
}

.tag.white {
    background-color: #FFFFFF;
    color: black;
}

.tag.strava {
    background-color: #FC5200;
    color: white;
}

.tag.garmin {
    background-color: #1A76D2;
    color: white;
}

/** ------------ Message ------------ **/
.message {
    background-color: var(--color-valuebox);
    margin: -5px;
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 6px;
    border-radius: 5px;
}

.message h5 {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.message.padding {
    padding: 5px;
    margin: 12px -5px 12px -5px;
}

.message.success {
    background-color: rgba(var(--color-succes),0.6);
}

.message.notification {
    background-color: rgba(var(--color-notification),0.6);
}

.message.error {
    background-color: rgba(var(--color-error),0.6);
}

.message.warning {
    background-color: rgba(var(--color-warning),0.6);
}

.message.feedback {
    background-color: rgba(var(--color-feedback),0.6);
}

.message.admin {
    background-color: #EFEFFF;
}

/** ------------ Achievements ------------ **/
.record.ignore {
    text-decoration: line-through;
}

.achmntpatch .value {
    position: absolute;
    bottom: 15%;
}

.achmntpatch.wmxup .value,
.achmntpatch.wlodw .value {

    bottom: 10%;
}

.achmntpatch.pf1k .value,
.achmntpatch.wf01k .value,
.achmntpatch.wf1k .value,
.achmntpatch.wf10k .value,
.achmntpatch.wfma .value,
.achmntpatch.wfhma .value
{
    bottom: 20%;
}

.achmntpatch:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.achmntpatch .value span {
    background-color: rgb(var(--color-yellow));
    color: rgb(var(--color-red));
    font-size: 12px;
    border-radius: 5px;
    padding: 5px;
    opacity: 0.8;
}

.achmntpatch.disabled img {
    filter: grayscale(1);
    opacity: 0.5;
}

/** ------------ Icon ------------ **/
.icon {
    display: inline-flex;
    border-radius: 12px;
    vertical-align: middle;
}

.icon img {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    vertical-align: middle;
    padding: 2px;
}

.iconbig {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    padding: 2px;
}

.icon img {
    filter: sepia(40%) saturate(500%) hue-rotate(0deg)
}

.icontype {
    width: 40px;
    height: 40px;
}

.icontypesmall {
    width: 22px;
    height: 22px;
}

/** ------------ Charts ------------ **/
.bgChart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 80% !important;
    z-index: 1;
    opacity: 0.3;
    border-radius: 5px;
}

/** ------------ Table ------------ **/
.rowtable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px; /* spacing between rows */
}

.rowtable.rowselect tr {
    background-color: rgba(0, 0, 0, 0.1);
}

.panel .rowtable.rowselect tr {
    background-color: white;
}

.rowtable.rowselect tr.highlighted {
    background-color: rgba(var(--color-highlighted), 0.1);
}

.rowtable.rowselect tr.selected {
    background-color: rgba(var(--color-highlighted), 0.6);
}

.rowtable.rowselect tr:hover {
    background-color: rgb(var(--color-hover));
}

.rowtable td {
    padding-right: 8px;
    padding-left: 8px;
    min-height: 28px;
}

.rowtable td span {
    vertical-align: middle;
}

.rowtable tr.undefined,
.rowtable tr.feedback {
    background-color: rgba(var(--color-feedback), 0.6);
}

.rowtable .shrink {
    width: fit-content;
    max-width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/** ------------ Score ------------ **/
.user .score {
    margin-left: 4px;
    padding: 1px;
    font-size: 12px;
}

.score {
    background-color: rgb(var(--color-yellow));
    color: rgb(var(--color-red));
    border-radius: 4px;
    padding: 2px;
}

/** ------------ Tab ------------ **/
.tabbar {
    border-color: #DDDDDD;
    border-width: 0;
    border-bottom-width: 1px;
    border-style: solid;
    padding-top: 20px;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.tabbar a {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    background-color: #999999;
    border-radius: 5px 5px 0 0;
    color: white;
}

.tabbar a.selected {
    background-color: #AA6F9A;
    color: white;
}

/** ------------ label ------------ **/
.legend .color {
    width: 20px;
    height: 20px;
    display: inline-block;
}
.legend .text {
    display: inline-block;
    margin-left: 5px;
    margin-right: 10px;
}
.legend .value {
    display: inline-block;
    font-weight: bold;
    margin-left: 5px;
    margin-right: 10px;
}

/** ------------ Panel ------------ **/
.panel {
    background: #efefff;
    padding: 8px;
}

.panel.small, .grouppanel.small {
    flex: 1 1 calc(50% - 12px);
    min-width: min(100%, 300px);
    max-width: min(100%, 600px);
    width: 594px;
}

.panel .valuebox {
    background: white;
}

.score .valuebox {
    background-color: rgb(var(--color-yellow));
    color: rgb(var(--color-red));
}

/** ------------ Div ------------ **/
.strava-button {
    height: 48px;
    width: auto;
}
