* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    background: #eef3f8;
    color: #172033;
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #071d3c 0%, #0b376d 100%);
    color: #fff;
    padding: 24px 18px;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 8px 6px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: block;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 4px;
}

.brand div {
    min-width: 0;
}

.brand strong {
    display: block;
    font-size: 25px;
    line-height: 1.1;
}

.brand span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 28px;
}

.sidebar nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #2475ee;
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 24px 10px 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.main-content {
    min-height: 100vh;
    margin-left: 270px;
}

.topbar {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 24px 34px;
    border-bottom: 1px solid #dde5ef;
}

.topbar h1 {
    font-size: 28px;
    color: #111a2b;
}

.topbar p {
    margin-top: 7px;
    color: #6b7585;
    font-size: 14px;
}

.user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #1769da;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.page-content {
    padding: 30px 34px;
}

.page-content > h1 {
    margin-bottom: 8px;
    font-size: 26px;
}

.page-content > p {
    color: #687386;
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-footer {
        margin-top: 20px;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .brand img {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .sidebar nav {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        padding: 20px;
    }

    .user-block span {
        display: none;
    }

    .page-content {
        padding: 22px 18px;
    }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 140px;
    background: #fff;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(20, 40, 80, 0.07);
}

.metric-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    background: #e8f1ff;
    border-radius: 15px;
    font-size: 27px;
}

.metric-label {
    display: block;
    color: #586579;
    font-size: 14px;
}

.metric-value {
    display: block;
    margin-top: 5px;
    color: #0b4fa8;
    font-size: 34px;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 8px;
    color: #8a95a5;
    font-size: 12px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.panel {
    background: #fff;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(20, 40, 80, 0.06);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.panel-header h2 {
    color: #172033;
    font-size: 20px;
}

.panel-header p {
    margin-top: 6px;
    color: #748094;
    font-size: 13px;
}

.text-link {
    color: #1769da;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background: #f7faff;
    border: 1px solid #e2eaf5;
    border-radius: 13px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: #8bb9f4;
}

.quick-action > span {
    font-size: 25px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    color: #1f2a3d;
    font-size: 14px;
}

.quick-action small {
    margin-top: 4px;
    color: #7b8798;
    font-size: 11px;
    line-height: 1.4;
}

.empty-state {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 30px;
    background: #f8fbff;
    border: 1px dashed #cdd9e8;
    border-radius: 14px;
}

.empty-icon {
    margin-bottom: 12px;
    font-size: 38px;
}

.empty-state strong {
    color: #1f2a3d;
    font-size: 17px;
}

.empty-state p {
    max-width: 380px;
    margin-top: 8px;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.5;
}

.primary-button {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 17px;
    background: #1769da;
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.primary-button:hover {
    background: #0f56b8;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 650px) {
    .dashboard-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 120px;
    }
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #e7edf5;
}

.data-table th {
    color: #667085;
    background: #f8faff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table td {
    color: #263247;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.data-table a {
    color: #1769da;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}
