.fws-front-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fws-front-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.fws-front-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 4px solid #c8102e;
}

.fws-front-header h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
}

.fws-front-header p {
    margin: 0;
    color: #666;
}

.fws-front-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fws-front-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.fws-front-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-top: 4px solid #c8102e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.fws-front-tile strong {
    font-size: 20px;
}

.fws-front-tile span {
    color: #666;
}

.fws-front-tile:hover {
    transform: translateY(-1px);
}

.fws-form {
    border-top: 4px solid #c8102e;
}

.fws-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.fws-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fws-form-grid span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.fws-form-grid input,
.fws-form-grid select,
.fws-form-grid textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
}

.fws-form-grid textarea {
    resize: vertical;
}

.fws-full-width {
    grid-column: 1 / -1;
}

.fws-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .fws-front-header {
        flex-direction: column;
    }

    .fws-front-grid,
    .fws-form-grid {
        grid-template-columns: 1fr;
    }
}
/* FWS Auswertung Dashboard */
.fws-public-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: stretch;
}

.fws-public-filter .fws-form-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.fws-weighing-ticker {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #c8102e;
}

.fws-weighing-ticker > span,
.fws-front-kpi span,
.fws-card-title span {
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.fws-weighing-ticker > strong {
    margin: 8px 0 12px;
    font-size: 34px;
    line-height: 1;
}

.fws-weighing-ticker__split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fws-weighing-ticker__split div {
    padding: 10px;
    border-radius: 10px;
    background: #f7f7f7;
}

.fws-weighing-ticker__split small,
.fws-weighing-ticker__split b {
    display: block;
}

.fws-weighing-ticker__split b {
    margin-top: 3px;
    font-size: 20px;
}

.fws-front-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 14px;
}

.fws-front-kpi-grid--wide {
    grid-template-columns: repeat(9, minmax(120px, 1fr));
}

.fws-front-kpi {
    border-top: 4px solid #c8102e;
}

.fws-front-kpi strong {
    display: block;
    margin-top: 8px;
    color: #222;
    font-size: 25px;
    line-height: 1.1;
}

.fws-front-kpi--accent {
    background: linear-gradient(180deg, #fff, #fff7f8);
}

.fws-front-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fws-front-report-grid--dashboard {
    align-items: start;
}

.fws-chart-card {
    min-height: 280px;
}

.fws-card-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.fws-card-title h2 {
    margin: 0;
    font-size: 20px;
}

.fws-donut-wrap {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.fws-donut {
    position: relative;
    display: flex;
    width: 178px;
    height: 178px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    background: conic-gradient(#c8102e 0 var(--a), #333 var(--a) var(--b), #777 var(--b) var(--c), #d9d9d9 var(--c) 100%);
}

.fws-donut::after {
    position: absolute;
    width: 108px;
    height: 108px;
    content: '';
    border-radius: 50%;
    background: #fff;
}

.fws-donut span,
.fws-donut small {
    position: relative;
    z-index: 1;
}

.fws-donut span {
    font-size: 28px;
    font-weight: 800;
}

.fws-donut small {
    color: #666;
    font-weight: 700;
}

.fws-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fws-legend-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
}

.fws-legend-row i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8102e;
}

.fws-legend-row--2 i { background: #333; }
.fws-legend-row--3 i { background: #777; }
.fws-legend-row--4 i { background: #d9d9d9; }

.fws-front-table {
    width: 100%;
    border-collapse: collapse;
}

.fws-front-table th,
.fws-front-table td {
    padding: 10px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.fws-front-table th {
    background: #f7f7f7;
    font-weight: 800;
}

.fws-front-table--compact th,
.fws-front-table--compact td {
    padding: 8px;
    font-size: 13px;
}

.fws-bar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fws-bar-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 2fr) auto;
    gap: 12px;
    align-items: center;
}

.fws-bar-row__label {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fws-bar-row__track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #efefef;
}

.fws-bar-row__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #c8102e;
}

.fws-bar-row__value {
    min-width: 54px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.fws-weekday-chart {
    display: grid;
    min-height: 220px;
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 12px;
    align-items: end;
    padding-top: 16px;
}

.fws-weekday-bar {
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    gap: 7px;
}

.fws-weekday-bar span {
    display: block;
    width: 100%;
    max-width: 46px;
    min-height: 4px;
    border-radius: 10px 10px 0 0;
    background: #c8102e;
}

.fws-weekday-bar b {
    font-size: 15px;
}

.fws-weekday-bar small {
    color: #666;
    font-weight: 800;
}

.fws-empty {
    margin: 0;
    color: #666;
}

@media (max-width: 1300px) {
    .fws-front-kpi-grid,
    .fws-front-kpi-grid--wide {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 1000px) {
    .fws-public-topline,
    .fws-front-report-grid,
    .fws-donut-wrap {
        grid-template-columns: 1fr;
    }

    .fws-public-filter .fws-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .fws-front-kpi-grid,
    .fws-front-kpi-grid--wide {
        grid-template-columns: 1fr;
    }

    .fws-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fws-bar-row__value {
        text-align: left;
    }
}
