/* GLOBAL */

:root {
    --darkest: #020e2b;
    --darker: #1b2232;
    --dark: #181d35;
    --green: rgb(46 227 46);
    --red: rgb(141 30 30);
    --light: #cecece;
    --lighter: #edebe6;
    --lightest: #fdfdfd;
    --grad-light-dark: linear-gradient(to bottom, #181d35, #020e2b);
    --grad-dark-light: linear-gradient(to bottom, #020e2b, #181d35 );
    --grad-lightest-light: linear-gradient(to bottom, #f5f9fc, #c8d7e4);
    --grad-darkred-lightred: linear-gradient(to bottom, #711f27, #331010);
    --grad-darkerblue: linear-gradient(to bottom, #e7f4f9, #99c0cf);
    --grad-lightblue: linear-gradient(to bottom, #ebf3f9, #fffdfb);
    --grad-highlight: linear-gradient(to bottom, #46bce1, #2a8cb0);
    --lightblue: #ddf1f3;
    --turquoise: #2edbe1;
    --blue1: #46bce1;
    --blue2: #2a8cb0;
    --blue3: #003471;
    --blueshade1: #99c0cf;
  } 



#dashboard {
    color: var(--darkest) !important;
    padding: 20px;
    min-height: 800px;
    background: var(--grad-darkerblue);
}

#dashboard .box-title {
    text-align: left;
    padding: 10px;
    padding-top: 0px;
    border-bottom: 2px solid var(--blue3);
    font-size: 18px;
    font-weight: 600;
    width: -webkit-fill-available;
}

#dashboard h4 {
    color: var(--darkest);
}

#dashboard > .row-fluid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 24px;
}

#dashboard .dashboard-box {
    border-radius: 4px;
    background-color: var(--darker);
    padding: 20px;
    align-self: stretch;
    margin-left: 0px;
}

#dashboard .dashboard-box .name {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#dashboard .dashboard-box .value {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#dashboard .dashboard-box .value span {
    margin-left: 8px;
    transform: translateY(-4px);
    font-size: 36px;
}


#dashboard .content_box {
    background: var(--grad-lightblue);
    min-height: 100px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;}

#dashboard .dashboard-metrics a {
    color: var(--darkest);
    position: relative;
    display: inline-flex;
    align-items: center;
}

#dashboard .dashboard-metrics a:hover {
    text-decoration: underline;
}

#dashboard .dashboard-metrics a::after {
    content: "";
    margin-left: 6px;
    background: url(/wp-content/uploads/2024/05/link_blue.svg) center center no-repeat;
    background-size: contain;
    width: 12px;
    height: 12px;
}

#dashboard .dashboard-metrics a:hover::after {
    filter: brightness(1.9);
}

#dashboard .red_arrow {
    color: var(--red);
}


#dashboard .green_arrow {
    color: var(--green);
}

/* KPI - 1. řada */

#dashboard .kpi_box {
    background: var(--grad-highlight);
    min-height: 100px;
    text-align: center;
    border-radius: 4px;
    /* box-shadow: rgba(212, 13, 30, 0.4) 0px 5px, rgba(212, 13, 30, 0.3) 0px 10px, rgba(212, 13, 30, 0.2) 0px 15px, rgba(212, 13, 30, 0.1) 0px 20px, rgba(212, 13, 30, 0.05) 0px 25px; */
    /* animation: shadowpulse 2s alternate infinite; */
    color: var(--lighter);
}

/* @keyframes shadowpulse {
    to { box-shadow: none;}
} */

#dashboard .kpi_box .value {
    font-size: 40px;
    font-weight: 700;
    padding: 10px;
    color: var(--lightest);
}

/* 2. ŘADA */
/* síň slávy */
#dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:first-of-type {
    width: calc(100% / 6);
}

.dashboard-box-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

#dashboard .dashboard-box-button {
    display: inline-block;
    background: var(--blueshade1);
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.5s;
    text-transform: uppercase;
}

#dashboard .dashboard-box-button:first-of-type {
    border-radius: 12px 0 0 12px;
}

#dashboard .dashboard-box-button:nth-of-type(4) {
    border-radius: 0 12px 12px 0;
}

#dashboard .dashboard-button-active {
    color: #000;
    background: var(--grad-lightest-light);
}

.dashboard-hall > tbody {
    width: 100%;
}

#dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:nth-of-type(2) {
    width: auto;
    flex: 1;

}

/*#dashboard > .box_graf {
    width: auto;
    flex: 1;
}*/

#dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:nth-of-type(3) {
    width: calc(100% / 6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#dashboard .dashboard-hall {
    width: 100%;
    font-weight: 600;
    font-size: 14px;
}

#dashboard .dashboard-hall tbody tr:first-of-type td:first-of-type, #dashboard .dashboard-hall tbody tr:nth-of-type(2) td:first-of-type, #dashboard .dashboard-hall tbody tr:nth-of-type(3) td:first-of-type {
    font-size: 15px;
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

#dashboard .dashboard-hall tbody tr:nth-of-type(3) {
    border-bottom: var(--light) 1px solid;
}

#dashboard .dashboard-hall tbody tr:first-of-type td:first-of-type::before, #dashboard .dashboard-hall tbody tr:nth-of-type(2) td:first-of-type::before, #dashboard .dashboard-hall tbody tr:nth-of-type(3) td:first-of-type::before {
    position: relative;
    content: '';
    background-size: contain !important;
    display: inline-flex;
    align-self: center;
    height: 20px;
    width: 20px;
    margin-right: 4px;
}

#dashboard .dashboard-hall tbody tr:first-of-type td:first-of-type::before {
    background: url(https://posunemevasvys.cz/wp-content/uploads/2024/05/gold.svg) center center no-repeat;
}

#dashboard .dashboard-hall tbody tr:nth-of-type(2) td:first-of-type::before {
    background: url(https://posunemevasvys.cz/wp-content/uploads/2024/05/silver.svg) center center no-repeat;
}

#dashboard .dashboard-hall tbody tr:nth-of-type(3) td:first-of-type::before {
    background: url(https://posunemevasvys.cz/wp-content/uploads/2024/05/bronze.svg) center center no-repeat;
}

#dashboard .dashboard-hall td, #dashboard .dashboard-metrics td {
    text-align: left;
    padding: 6px 20px 6px 20px;
}

#dashboard .dashboard-hall td:last-child {
    text-align: right;
}

#dashboard .dashboard-hall tr:nth-child(even) td, #dashboard .dashboard-metrics tr:nth-child(even) td {
    background-color: var(--lighter);
}

#dashboard .dashboard-hall .loser td:first-of-type {
    color: var(--red);
    position: relative;
    display: flex;
    align-items: center;
}

#dashboard .dashboard-hall .loser td:first-of-type::before {
    content: none !important;
}

#dashboard .dashboard-hall .loser td:first-of-type::after {
    position: relative;
    content: '';
    background-size: contain !important;
    background: url(https://www.posunemevasvys.cz/wp-content/uploads/2024/05/sad-face.svg) center center no-repeat;
    display: inline-flex;
    align-self: center;
    height: 20px;
    width: 20px;
    margin-left: 8px;
}


#dashboard .dashboard-hall {
    display: none;
}

#dashboard .dashboard-hall-active {
    display: table;
}
#dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:nth-of-type(3) {
    font-weight: 800;
}
html body #dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:nth-of-type(3) div {
    width: 90px !important;
    /*height: 400px !important;*/
    background-color: var(--blue3) !important;
}

html body #dashboard > .row-fluid:nth-of-type(2) > .dashboard-box:nth-of-type(3) div > div {
    /*height: 150px !important;*/
    background-color: var(--turquoise) !important;
}


/* 3. ŘADA */
#dashboard > .row-fluid:nth-of-type(3) > .dashboard-box:nth-of-type(1) {
    width: calc(100% / 6);
}

#dashboard > .row-fluid:nth-of-type(3) > .dashboard-box:nth-of-type(2) {
    width: calc(100% / 6);
}

#dashboard > .row-fluid:nth-of-type(3) > .dashboard-box:nth-of-type(3) {
    width: calc(100% / 6);
}

.dashboard-box .dashboard-metrics tbody tr td:nth-of-type(2) {
    font-weight: 800;
}

#dashboard > .row-fluid:nth-of-type(3) > .dashboard-box:nth-of-type(4) {
    width: auto;
    flex: 1;
}

#dashboard > .row-fluid:nth-of-type(3) > .dashboard-box:nth-of-type(4)  tbody {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 8px;
    grid-row-gap: 8px;
}



#dashboard .dashboard-metrics, #dashboard .dashboard-news {
    width: 100%;
}

#dashboard .dashboard-news {
    margin-top: 24px;
}

#dashboard .dashboard-news tr {
    display: flex;
}

#dashboard .dashboard-news tr td {
    background: var(--lightblue);
    padding: 20px 24px;
    width: 100%;
    border-radius: 8px;
    border: var(--turquoise) 1px solid;
}

#dashboard .dashboard-news-date {
    text-align: left;
    font-weight: 700;
    font-family: "Open Sans", Arial, sans-serif;
    letter-spacing: 0.08em;
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

#dashboard .dashboard-news-date::after {
    content: '';
    position: relative;
    width: 24px;
    height: 1px;
    background: var(--light);
    margin-top: 8px;

}

#dashboard .content_box .dashboard-news p {
    text-align: left;
}

#dashboard .ziskat_kontakt {
    border: 1px solid silver;
    padding: 10px;
    line-height: 35px;
}

#dashboard .ziskat_kontakt_aktivni {
    border: 1px solid silver;
    padding: 10px;
    line-height: 35px;
    color: var(--turquoise) !important;
    background-color: var(--blue3) !important;
    border-color: var(--blue3) !important;
}

#dashboard .ziskat_kontakt_aktivni:hover {
    border: 1px solid silver;
    padding: 10px;
    line-height: 35px;
    background-color: var(--turquoise) !important;
    color: var(--blue3) !important;
}

/* RESPO */

.kpi_progressbar {
  --progress: 0%; /* procenta naplnění */
  background: linear-gradient(
    to top,
    rgb(26 155 26) var(--progress),
    #2a8cb0 var(--progress)
  ) !important;
}