/* Tylko sekcja .dash — oryginalna instalacja bez zmian. */

.dash {
    width: 1024px;
    margin: 48px auto 0;
    font-family: Roboto, Arial, sans-serif;
}

.dash-bar {
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 10px 16px;
}

.dash-bar h4 {
    float: left;
    margin: 4px 0 0;
    font-size: 22px;
    color: #fff;
    text-shadow: none;
    text-align: left;
}

.dash-live {
    float: right;
    background: #f9485c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 6px 12px 6px 28px;
    border-radius: 5px;
    position: relative;
    text-transform: uppercase;
}

.dash-live i {
    position: absolute;
    left: 10px;
    top: 9px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50px;
    animation: blink 2s linear infinite;
}

.dash-live span {
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 8px;
    opacity: 0.85;
}

.dash-note {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    text-shadow: 0 1px 0 #fff;
}

.dash-stage,
.dash-periods,
.dash-temps,
.dash-two,
.dash-chart,
.dash-charts {
    overflow: hidden;
}

.dash-stage {
    margin-top: 18px;
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    -webkit-box-shadow: 0px 0px 15px -5px #000000;
    box-shadow: 0px 0px 15px -5px #000000;
    animation: dashIn 0.55s ease;
}

.dash-cop {
    float: left;
    width: 280px;
    text-align: center;
}

.cop-ring {
    width: 168px;
    height: 168px;
    margin: 0 auto 10px;
    position: relative;
}

.cop-ring svg {
    width: 168px;
    height: 168px;
    transform: rotate(-90deg);
}

.cop-ring circle {
    fill: none;
    stroke-width: 10;
}

.cop-track { stroke: #eee; }

.cop-value {
    stroke: #1b8a5a;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100);
    animation: copDraw 1.3s ease;
}

.cop-ring.cop-good .cop-value { stroke: #3d8b40; }
.cop-ring.cop-average .cop-value { stroke: #c49212; }
.cop-ring.cop-poor .cop-value { stroke: #c24642; }
.cop-ring.cop-idle .cop-value { stroke: #9a9a9a; }

.cop-core {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
}

.cop-core em {
    display: block;
    font-style: normal;
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    color: #111;
}

.cop-core small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c7c7c;
}

.cop-caption strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.cop-caption span {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 300;
}

.cop-now {
    margin-top: 8px !important;
}

.cop-now b {
    color: #111;
}

.dash-energy {
    margin-left: 300px;
}

.nrg {
    display: inline-block;
    width: 31%;
    margin: 0 2% 16px 0;
    vertical-align: top;
}

.nrg span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c7c7c;
}

.nrg b {
    display: block;
    font-size: 26px;
    margin-top: 4px;
}

.nrg b i { font-style: normal; }

.pipe {
    margin-top: 8px;
}

.pipe-top {
    overflow: hidden;
    font-size: 13px;
}

.pipe-top span { float: left; color: #555; }
.pipe-top strong { float: right; font-weight: 900; }

.pipe-bar {
    height: 12px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin: 6px 0 4px;
}

.pipe-bar i {
    display: block;
    height: 100%;
    width: 0;
    animation: pipeFill 1s ease forwards;
    background-image: -webkit-linear-gradient(135deg,rgba(255,255,255,0.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.2) 50%,rgba(255,255,255,0.2) 75%,transparent 75%,transparent);
    background-image: linear-gradient(-45deg,rgba(255,255,255,0.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.2) 50%,rgba(255,255,255,0.2) 75%,transparent 75%,transparent);
    background-size: 18px 18px;
    -webkit-animation: pipeFill 1s ease forwards, cssProgressActive 1.6s linear infinite;
    animation: pipeFill 1s ease forwards, cssProgressActive 1.6s linear infinite;
}

.pipe.co .pipe-bar i { background-color: #cf8e68; }
.pipe.cwu .pipe-bar i { background-color: #8396cc; }

.pipe small {
    color: #7c7c7c;
    font-size: 11px;
}

.pipe small i { font-style: normal; }

.dash-periods {
    margin-top: 16px;
}

.period {
    float: left;
    width: 241px;
    margin: 0 20px 0 0;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px 18px;
    box-sizing: border-box;
    -webkit-box-shadow: 0px 0px 15px -5px #000000;
    box-shadow: 0px 0px 15px -5px #000000;
    position: relative;
    animation: dashIn 0.6s ease;
}

.dash-periods .period:last-child { margin-right: 0; }

.period-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 30px;
    box-shadow: 0 0 8px 4px rgba(255,255,255,0.5);
    background: radial-gradient(circle, rgba(252,176,69,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
    margin-bottom: 10px;
}

.period-dot.day { background: radial-gradient(circle, #7eb6ff 0%, #2a7dea 55%, #7eb6ff 100%); }
.period-dot.month { background: radial-gradient(circle, #cf8e68 0%, #a86a45 55%, #cf8e68 100%); }
.period-dot.season { background: radial-gradient(circle, #93a3d1 0%, #5d6ea0 55%, #93a3d1 100%); }

.period-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c7c7c;
}

.period strong {
    display: block;
    font-size: 30px;
    margin: 6px 0 4px;
}

.period strong small { font-size: 13px; color: #777; font-weight: 300; }
.period strong i,
.period em i { font-style: normal; }

.period em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #666;
    font-weight: 300;
    line-height: 1.4;
}

.dash-temps {
    margin-top: 16px;
}

.tchip {
    float: left;
    width: 192px;
    margin: 0 16px 0 0;
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px 12px;
    box-sizing: border-box;
    text-align: center;
    -webkit-box-shadow: 0px 0px 15px -5px #000000;
    box-shadow: 0px 0px 15px -5px #000000;
}

.dash-temps .tchip:last-child { margin-right: 0; }

.tchip small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c7c7c;
}

.tchip b {
    display: block;
    font-size: 26px;
    margin: 4px 0 2px;
}

.tchip b i { font-style: normal; }
.tchip em i { font-style: normal; }

.tchip em {
    font-style: normal;
    font-size: 11px;
    color: #888;
}

.tchip.out b { color: blue; }
.tchip.in b { color: rgb(255, 145, 0); }
.tchip.flow b { color: #cf8e68; }
.tchip.ret b { color: #8396cc; }
.tchip.cwu b { color: rgb(255, 145, 0); }

.dash-two {
    margin-top: 16px;
}

.dash-card {
    float: left;
    width: 502px;
    margin-right: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    -webkit-box-shadow: 0px 0px 15px -5px #000000;
    box-shadow: 0px 0px 15px -5px #000000;
}

.dash-two .dash-card:last-child { margin-right: 0; }

.dash-card h5 {
    text-align: left;
    font-size: 16px;
    font-weight: 900;
    text-shadow: none;
    margin: 0 0 14px;
}

.dash-card h5.spaced { margin-top: 22px; }

.machine-state {
    display: inline-block;
    background: #58585a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.dash .stat-row {
    overflow: hidden;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.dash .stat-row span { float: left; color: #555; }
.dash .stat-row strong { float: right; }
.dash .stat-row i { font-style: normal; }

.dash .state-row {
    overflow: hidden;
    margin-bottom: 9px;
    font-size: 12px;
}

.dash .state-row span { float: left; width: 108px; color: #555; }
.dash .state-row strong { float: right; width: 42px; text-align: right; }
.dash .state-row .pipe-bar { margin: 3px 50px 0 114px; height: 8px; }
.dash .state-row .pipe-bar i { background-color: #cf8e68; }

.dash .panel-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.dash-chart {
    margin-top: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    -webkit-box-shadow: 0px 0px 15px -5px #000000;
    box-shadow: 0px 0px 15px -5px #000000;
}

.dash-charts .dash-chart.half {
    float: left;
    width: 502px;
    box-sizing: border-box;
}

.dash-charts .dash-chart.half + .half {
    float: right;
}

.dash-flash {
    animation: dashFlash 0.7s ease;
}

@keyframes dashIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes copDraw {
    from { stroke-dashoffset: 326.7; }
}

@keyframes pipeFill {
    from { width: 0; }
}

@keyframes dashFlash {
    0% { background: rgba(252, 176, 69, 0.55); }
    100% { background: transparent; }
}
