/* =========================================================
   PASCOM+
   COMPONENTES VISUAIS
   ========================================================= */


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-container {
    width: 100%;

    max-width: 1400px;

    margin:
        0 auto;
}


/* =========================================================
   WELCOME
   ========================================================= */

.dashboard-welcome {
    min-height: 144px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 26px;

    margin-bottom: 22px;

    padding:
        25px
        27px;

    overflow: hidden;

    border:
        1px solid
        #ecdfe2;

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbf4f6 100%
        );

    box-shadow:
        var(--shadow-sm);
}

.welcome-date {
    display: block;

    margin-bottom: 6px;

    color:
        var(--primary);

    font-size: 9px;
    font-weight: 600;

    letter-spacing:
        0.09em;

    text-transform: uppercase;
}

.dashboard-welcome h2 {
    margin:
        0 0 7px;

    font-size:
        clamp(
            23px,
            2.5vw,
            31px
        );

    font-weight: 600;
}

.dashboard-welcome p {
    max-width: 680px;

    margin: 0;

    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.65;
}

.welcome-mark {
    width: 68px;
    height: 68px;

    flex:
        0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(122, 31, 43, 0.11);

    border-radius:
        18px;

    background:
        rgba(
            255,
            255,
            255,
            0.76
        );

    color:
        var(--primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing:
        0.05em;

    box-shadow:
        var(--shadow-xs);
}


/* =========================================================
   STATS
   ========================================================= */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 24px;
}

.stat-card {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 108px;

    padding:
        17px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    background:
        #ffffff;

    box-shadow:
        var(--shadow-xs);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.stat-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #dfd4d7;

    box-shadow:
        var(--shadow-sm);
}

.stat-icon {
    width: 45px;
    height: 45px;

    flex:
        0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 11px;

    border-radius:
        12px;
}

.stat-icon-primary {
    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.stat-icon-secondary {
    background:
        var(--secondary-soft);

    color:
        #987341;
}

.stat-icon-success {
    background:
        var(--success-soft);

    color:
        var(--success);
}

.stat-icon-info {
    background:
        var(--info-soft);

    color:
        var(--info);
}

.stat-card > div:last-child {
    min-width: 0;
}

.stat-label {
    display: block;

    overflow: hidden;

    margin-bottom: 4px;

    color:
        var(--text-secondary);

    font-size: 9px;
    font-weight: 500;

    text-overflow:
        ellipsis;

    white-space: nowrap;
}

.stat-value {
    display: block;

    color:
        var(--text-primary);

    font-size: 23px;
    font-weight: 600;

    line-height: 1;
}

.stat-card small {
    display: block;

    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 8px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.dashboard-section {
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 12px;
}

.section-eyebrow {
    display: block;

    margin-bottom: 3px;

    color:
        var(--primary);

    font-size: 8px;
    font-weight: 600;

    letter-spacing:
        0.10em;

    text-transform: uppercase;
}

.section-heading h3,
.card-header h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.quick-action-card {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 90px;

    padding:
        15px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    background:
        #ffffff;

    box-shadow:
        var(--shadow-xs);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.quick-action-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #ddced2;

    box-shadow:
        var(--shadow-sm);
}

.quick-action-icon {
    width: 42px;
    height: 42px;

    flex:
        0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    border-radius:
        11px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.quick-action-card > div:last-child {
    min-width: 0;
}

.quick-action-card strong {
    display: block;

    margin-bottom: 3px;

    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}

.quick-action-card span {
    display: block;

    color:
        var(--text-muted);

    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    min-width: 0;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    background:
        #ffffff;

    box-shadow:
        var(--shadow-xs);
}

.card-header {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding:
        15px
        18px;

    border-bottom:
        1px solid
        var(--border);
}

.card-link {
    color:
        var(--primary);

    font-size: 9px;
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

.card-body {
    padding:
        12px
        18px
        17px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.dashboard-card {
    min-height: 250px;
}


/* =========================================================
   EVENT ROW
   ========================================================= */

.event-list {
    display: flex;
    flex-direction: column;
}

.event-row {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        11px 0;

    border-bottom:
        1px solid
        #f1edef;

    transition:
        background-color
        var(--transition);
}

.event-row:last-child {
    border-bottom: 0;
}

.event-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(247, 236, 238, 0.45),
            transparent
        );
}

.event-date {
    min-width: 75px;

    flex:
        0 0 auto;

    color:
        var(--primary);

    font-size: 9px;
}

.event-date strong {
    font-weight: 600;
}

.event-row-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.event-row-content strong {
    overflow: hidden;

    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;

    text-overflow:
        ellipsis;

    white-space: nowrap;
}

.event-row-content span {
    overflow: hidden;

    color:
        var(--text-muted);

    font-size: 8px;

    text-overflow:
        ellipsis;

    white-space: nowrap;
}

.event-arrow {
    flex-shrink: 0;

    color:
        var(--text-muted);

    font-size: 18px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.dashboard-empty {
    min-height: 155px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 24px;

    text-align: center;
}

.dashboard-empty strong {
    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}

.dashboard-empty p {
    max-width: 310px;

    margin:
        5px 0 0;

    color:
        var(--text-muted);

    font-size: 8px;

    line-height: 1.55;
}


/* =========================================================
   STATUS
   ========================================================= */

.status-badge {
    min-height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        4px
        8px;

    border-radius:
        999px;

    font-size: 8px;
    font-weight: 600;

    white-space: nowrap;
}

.status-active {
    background:
        var(--success-soft);

    color:
        var(--success);
}

.status-inactive {
    background:
        var(--danger-soft);

    color:
        var(--danger);
}

.status-neutral {
    background:
        #f1eff0;

    color:
        #6f6769;
}