/* ==========================================================================
   Rxilient Homepage — Dashboard-specific styles
   Framework styles are in ../shared/styles.css (rx-shell, topbar, sidebar, etc.)
   ========================================================================== */

* {
    box-sizing: border-box;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ---- Dashboard panels ---- */

.rx-pending-panel {
    min-height: 300px;
    margin-bottom: 20px;
}

.rx-empty-workspace {
    min-height: 238px;
}

.rx-dashboard-grid {
    display: grid;
    grid-template-columns: 640px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.rx-recent-panel,
.rx-task-panel {
    min-height: 500px;
}

/* ---- Function card ---- */

.rx-function-card {
    width: 194px;
    height: 126px;
    margin: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rx-line-2);
    border-radius: var(--rx-radius-md);
    color: var(--rx-text-1);
    background: #fff;
    font-size: var(--rx-fs-16);
    line-height: 1.35;
}

.rx-function-card:focus,
.rx-function-card:hover {
    outline: 0;
    border-color: var(--rx-brand-300);
    box-shadow: 0 0 0 3px var(--rx-brand-50);
}

/* ---- System Tasks table column widths ---- */

.rx-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.rx-table th,
.rx-table td {
    height: 49px;
    padding: 0 12px;
    border-bottom: 1px solid var(--rx-line-1);
    color: var(--rx-text-1);
    font-size: var(--rx-fs-14);
    text-align: left;
    vertical-align: middle;
}

.rx-table th {
    background: var(--rx-bg-table-head);
    font-weight: var(--rx-fw-semibold);
}

.rx-table tr:hover td {
    background: var(--rx-bg-table-hover);
}

.rx-table th:nth-child(1),
.rx-table td:nth-child(1) {
    width: 31%;
}

.rx-table th:nth-child(2),
.rx-table td:nth-child(2) {
    width: 30%;
}

.rx-table th:nth-child(3),
.rx-table td:nth-child(3) {
    width: 20%;
}

.rx-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--rx-radius-pill);
    font-size: var(--rx-fs-13);
    line-height: 1;
}

.rx-status.success {
    color: var(--rx-success-600);
    background: var(--rx-success-100);
}

.rx-status.failed {
    color: var(--rx-danger-600);
    background: var(--rx-danger-100);
}

.rx-action-link {
    color: var(--rx-brand-600);
    text-decoration: none;
    font-size: var(--rx-fs-13);
    font-weight: var(--rx-fw-medium);
}

@media (max-width: 1440px) {
    .rx-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
