﻿/* -----------------------------
   Main dashboard layout
------------------------------ */

.home-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}


/* -----------------------------
   Dashboard page header
------------------------------ */

.home-dashboard-header {
    margin-bottom: 25px;
}

    .home-dashboard-header h1 {
        font-size: 30px;
        font-weight: 600;
        color: #1f1b4d;
        margin-bottom: 5px;
    }

    .home-dashboard-header p {
        color: #777;
        margin: 0;
    }


/* -----------------------------
   Dashboard card grid
------------------------------ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


/* -----------------------------
   Dashboard cards
------------------------------ */

.dashboard-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #eeeeee;
}

    .dashboard-card h2 {
        font-size: 20px;
        font-weight: 600;
        color: #1f1b4d;
        margin-top: 0;
        margin-bottom: 14px;
    }

    .dashboard-card p {
        color: #666;
        margin-bottom: 0;
    }


/* -----------------------------
   Card headings with sub-links
------------------------------ */

.dashboard-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .dashboard-card-heading h2 {
        margin-bottom: 2px;
    }

.dashboard-card-sub-link {
    display: inline-block;
    color: #0066cc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .dashboard-card-sub-link:hover,
    .dashboard-card-sub-link:focus {
        color: #004c99;
        text-decoration: none;
    }


/* -----------------------------
   Dashboard lists
------------------------------ */

.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .dashboard-list li {
        padding: 12px 0;
        border-bottom: 1px solid #eeeeee;
        color: #555;
    }

        .dashboard-list li:last-child {
            border-bottom: none;
        }


/* -----------------------------
   Dashboard tables
------------------------------ */

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .dashboard-table th {
        text-align: left;
        color: #1f1b4d;
        font-weight: 600;
        padding: 10px 8px;
        border-bottom: 1px solid #e5e5e5;
    }

    .dashboard-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #eeeeee;
        color: #555;
        vertical-align: middle;
    }

    .dashboard-table tbody tr:last-child td {
        border-bottom: none;
    }

    .dashboard-table tbody tr:hover {
        background: #f8f7ff;
    }


/* -----------------------------
   Table action links
------------------------------ */

.dashboard-table-link {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #1f1b4d;
    color: #1f1b4d;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

    .dashboard-table-link:hover,
    .dashboard-table-link:focus {
        background: #1f1b4d;
        color: #fff;
        text-decoration: none;
    }


/* -----------------------------
   Table column sizing
------------------------------ */

.dashboard-table-fixed {
    table-layout: fixed;
}

.dashboard-main-column {
    width: 82%;
}

.dashboard-side-column {
    width: 18%;
}

.table-action-column {
    text-align: left;
}


/* -----------------------------
   Empty state messages
------------------------------ */

.empty-dashboard-message {
    color: #777;
    margin: 0;
}


/* -----------------------------
   Item title and metadata text
------------------------------ */

.item-title {
    display: block;
    font-weight: 600;
    color: #2b255f;
    overflow-wrap: anywhere;
    word-break: normal;
}

.item-meta {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 3px;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* -----------------------------
   Mobile layout
------------------------------ */

@media (max-width: 768px) {
    .home-dashboard {
        margin: 15px auto;
        padding: 0 10px;
    }

    .home-dashboard-header {
        margin-bottom: 16px;
    }

        .home-dashboard-header h1 {
            font-size: 24px;
        }

        .home-dashboard-header p {
            font-size: 14px;
            line-height: 1.4;
        }

    .dashboard-grid {
        gap: 14px;
    }

    .dashboard-card {
        padding: 16px;
        border-radius: 12px;
    }

        .dashboard-card h2 {
            font-size: 18px;
            margin-bottom: 12px;
        }

    .dashboard-card-heading {
        display: block;
        margin-bottom: 12px;
    }

    .dashboard-card-sub-link {
        margin-top: 2px;
    }


    /* -----------------------------
       Mobile table layout
    ------------------------------ */

    .dashboard-table,
    .dashboard-table thead,
    .dashboard-table tbody,
    .dashboard-table th,
    .dashboard-table td,
    .dashboard-table tr {
        display: block;
        width: 100%;
    }

        .dashboard-table colgroup {
            display: none;
        }

        .dashboard-table thead {
            display: none;
        }

        .dashboard-table tr {
            padding: 12px 0;
            border-bottom: 1px solid #eeeeee;
        }

        .dashboard-table tbody tr:last-child {
            border-bottom: none;
        }

        .dashboard-table td {
            border-bottom: none;
            padding: 4px 0;
            font-size: 14px;
        }

        .dashboard-table tbody tr:hover {
            background: transparent;
        }


    /* -----------------------------
       Mobile table content
    ------------------------------ */

    .dashboard-table-link {
        margin-top: 8px;
        padding: 6px 14px;
    }

    .table-action-column {
        text-align: left;
    }

    .item-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .item-meta {
        font-size: 13px;
        line-height: 1.35;
    }
}
