/* ============================================================
   WiserFlow — Home (Workspace Variant A)
   Fiel a handoff/reference/screen_workspace.jsx
   ============================================================ */

.wf-home {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px;
}

.wf-home-greeting {
    margin-bottom: 24px;
}

.wf-home-greeting-date {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin-bottom: 4px;
}

.wf-home-greeting-sync {
    color: var(--wf-success);
}

.wf-home-greeting-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--wf-text);
    margin: 0;
}

.wf-home-greeting-sub {
    font-size: 14px;
    color: var(--wf-text-muted);
    margin-top: 4px;
}

.wf-home-greeting-sub strong {
    color: var(--wf-text);
    font-weight: 600;
}

/* --- Stats ------------------------------------------------ */
.wf-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .wf-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wf-home-stats {
        grid-template-columns: 1fr;
    }
}

.wf-home-stat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.wf-home-stat-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--wf-info-bg);
    color: var(--wf-brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-home-stat-label {
    font-size: 11px;
    color: var(--wf-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    font-weight: 500;
}

.wf-home-stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--wf-text);
}

/* --- Main grid -------------------------------------------- */
.wf-home-main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .wf-home-main {
        grid-template-columns: 1fr;
    }
}

.wf-home-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* --- Sub-tabs --------------------------------------------- */
.wf-home-subtabs {
    display: flex;
    border-bottom: 1px solid var(--wf-border);
    padding: 0 8px;
}

.wf-home-subtab {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-family: inherit;
}

.wf-home-subtab:hover {
    color: var(--wf-text);
}

.wf-home-subtab.active {
    color: var(--wf-text);
    border-bottom-color: var(--wf-brand-accent);
}

.wf-home-subtab-count {
    font-size: 11px;
    padding: 1px 6px;
    background: var(--wf-bg-sunken);
    color: var(--wf-text-muted);
    border-radius: 999px;
    font-weight: 600;
}

.wf-home-subtab.active .wf-home-subtab-count {
    background: var(--wf-brand-accent);
    color: #fff;
}

.wf-home-subtabs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    margin-left: auto;
}

.wf-home-subtabs-spacer {
    flex: 1;
}

.wf-home-subtab-empty {
    padding: 40px;
    text-align: center;
    color: var(--wf-text-subtle);
    font-size: 13px;
}

.wf-home-subtab-footer {
    padding: 12px 16px;
    background: var(--wf-surface-alt);
    border-top: 1px solid var(--wf-border);
    border-radius: 0 0 8px 8px;
}

/* --- Task row --------------------------------------------- */
.wf-home-task-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wf-border);
    cursor: pointer;
    transition: all 150ms ease-out;
}

.wf-home-task-row:hover {
    background: var(--wf-hover);
}

.wf-home-task-feito {
    opacity: 0.5;
}

.wf-home-task-feito .wf-home-task-title {
    text-decoration: line-through;
}

.wf-home-task-pri {
    width: 3px;
    height: 24px;
    border-radius: 2px;
    flex-shrink: 0;
}

.wf-home-task-body {
    flex: 1;
    min-width: 0;
}

.wf-home-task-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-text);
    margin-bottom: 2px;
}

.wf-home-task-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--wf-text-subtle);
    align-items: center;
}

.wf-home-task-mod {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Alert row -------------------------------------------- */
.wf-home-alert-row {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--wf-border);
    align-items: flex-start;
}

.wf-home-alert-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-home-alert-body {
    flex: 1;
    min-width: 0;
}

.wf-home-alert-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-text);
    margin-bottom: 2px;
}

.wf-home-alert-desc {
    font-size: 12px;
    color: var(--wf-text-muted);
}

.wf-home-alert-chev {
    margin-top: 8px;
}

/* --- Quick actions --------------------------------------- */
.wf-home-quick-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--wf-text);
    margin-bottom: 14px;
}

.wf-home-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.wf-home-qa-card {
    padding: 14px 12px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 120ms;
    background: transparent;
}

.wf-home-qa-card:hover {
    background: var(--wf-selected);
    border-color: rgba(77, 163, 255, 0.33);
}

.wf-home-qa-label {
    font-size: 12px;
    color: var(--wf-text);
    font-weight: 500;
}

/* --- Side panel headers ----------------------------------- */
.wf-home-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--wf-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-home-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--wf-text);
}

.wf-home-panel-count {
    font-size: 11px;
    color: var(--wf-text-subtle);
    margin-left: auto;
}

/* --- Agenda row ------------------------------------------- */
.wf-home-agenda-row {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wf-border);
    align-items: flex-start;
    cursor: pointer;
    transition: background .12s ease;
}

.wf-home-agenda-row:hover,
.wf-home-agenda-row:focus-visible {
    background: var(--wf-hover);
    outline: none;
}

.wf-home-agenda-row--passado {
    opacity: .5;
}

.wf-home-agenda-row-last {
    border-bottom: none;
}

.wf-home-agenda-hora {
    font-size: 12px;
    color: var(--wf-text-muted);
    font-weight: 600;
    width: 44px;
    flex-shrink: 0;
    font-family: var(--wf-font-mono);
}

.wf-home-agenda-bar {
    width: 2px;
    align-self: stretch;
    background: var(--wf-brand-accent);
    border-radius: 1px;
    flex-shrink: 0;
}

.wf-home-agenda-body {
    flex: 1;
    min-width: 0;
}

.wf-home-agenda-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-text);
}

.wf-home-agenda-meta {
    font-size: 11px;
    color: var(--wf-text-subtle);
    margin-top: 2px;
}

/* --- Recent row ------------------------------------------- */
.wf-home-recent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wf-border);
    cursor: pointer;
}

.wf-home-recent-row:hover {
    background: var(--wf-hover);
}

.wf-home-recent-row-last {
    border-bottom: none;
}

.wf-home-recent-ico {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--wf-bg-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-home-recent-body {
    flex: 1;
    min-width: 0;
}

.wf-home-recent-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-home-recent-meta {
    font-size: 11px;
    color: var(--wf-text-subtle);
    margin-top: 1px;
}
