.wms-dashboard-page {
    background: #f1f5f9;
    min-height: calc(100vh - 60px);
    width: 100%;
    max-width: 100%;
    padding: clamp(12px, 1.5vw, 18px);
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    color: #17324d;
}

.wms-dashboard-page,
.wms-dashboard-page *,
.wms-dashboard-page *::before,
.wms-dashboard-page *::after {
    box-sizing: border-box;
}

.wms-dashboard-header {
    background: linear-gradient(135deg,#1d3354 0%,#2a4a73 100%);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #fff;
}

.wms-dashboard-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.wms-dashboard-header p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.wms-dashboard-loading {
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

.wms-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.wms-dashboard-kpi,
.wms-dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.wms-dashboard-kpi {
    padding: 14px 16px;
    min-width: 0;
}

.wms-dashboard-kpi label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8ea1;
    margin-bottom: 6px;
}

.wms-dashboard-kpi strong {
    display: block;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1;
    margin-bottom: 4px;
}

.wms-dashboard-kpi span {
    color: #60798c;
    display: block;
    font-size: 12px;
}

.wms-dashboard-kpi-primary {
    box-shadow: 0 2px 10px rgba(29, 51, 84, 0.12);
}

.wms-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    min-width: 0;
}

.wms-dashboard-card {
    padding: 14px 16px;
    min-width: 0;
    overflow: hidden;
}

.wms-dashboard-card-header {
    margin-bottom: 10px;
}

.wms-dashboard-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.wms-dashboard-bars {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.wms-dashboard-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-width: 0;
}

.wms-dashboard-bar-value {
    color: #5d7185;
    font-size: 12px;
    font-weight: 700;
}

.wms-dashboard-bar-track {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: flex-end;
}

.wms-dashboard-bar-fill {
    width: 100%;
    border-radius: 10px 10px 6px 6px;
    min-height: 14px;
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.06);
}

.wms-dashboard-bar-label {
    color: #60798c;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
}

.wms-dashboard-client-list {
    display: grid;
    gap: 10px;
}

.wms-dashboard-client-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.wms-dashboard-client-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.wms-dashboard-client-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.wms-dashboard-client-name,
.wms-dashboard-client-metric {
    color: #17324d;
    font-weight: 600;
    font-size: 13px;
}

.wms-dashboard-client-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wms-dashboard-client-metric {
    color: #60798c;
    flex: 0 0 auto;
    font-size: 13px;
}

.wms-dashboard-movements {
    display: grid;
    gap: 0;
}

.wms-dashboard-movement-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #edf2f7;
    min-width: 0;
}

.wms-dashboard-movement-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.wms-dashboard-movement-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8ecf1;
    color: #1d3354;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.wms-dashboard-movement-title {
    font-size: 14px;
    font-weight: 700;
}

.wms-dashboard-movement-copy,
.wms-dashboard-movement-meta {
    color: #60798c;
    font-size: 12px;
}

.wms-dashboard-movement-copy {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wms-dashboard-movement-meta {
    text-align: right;
    font-size: 11px;
    padding-left: 8px;
}

.wms-dashboard-empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6d8194;
    border: 1px dashed #d4dee8;
    border-radius: 10px;
    background: #e8ecf1;
    padding: 14px;
    font-size: 12px;
}

@media (max-width: 1440px) {
    .wms-dashboard-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    .wms-dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .wms-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wms-dashboard-bars {
        height: 200px;
        grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    }

    .wms-dashboard-movement-item {
        grid-template-columns: 38px 1fr;
    }

    .wms-dashboard-movement-meta {
        text-align: left;
        grid-column: 2;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .wms-dashboard-page {
        padding: 10px;
    }

    .wms-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wms-dashboard-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .wms-dashboard-kpi,
    .wms-dashboard-card {
        padding: 12px;
    }

    .wms-dashboard-bars {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .wms-dashboard-bar-track {
        height: 120px;
    }

    .wms-dashboard-movement-copy {
        white-space: normal;
    }
}