/* Painéis (admin / cliente / colaborador) no novo UX — usa as cores e o estilo de profile.css */
.dash {
    font-family: 'Raleway', sans-serif;
    margin: 0 auto;
    max-width: 1200px;
}

.dash .dash-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dash .dash-head h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.dash .dash-head .dash-date {
    color: #888;
    font-size: 13px;
}

.dash .dash-head .dash-date::first-letter {
    text-transform: uppercase;
}

.dash .btn-primary {
    background: #8c1c13;
    border-color: #8c1c13;
    font-weight: 600;
}

.dash .btn-primary:hover,
.dash .btn-primary:focus {
    background: #741610;
    border-color: #741610;
}

/* Números principais */
.dash .kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 16px;
}

.dash .kpi {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    color: #444;
    display: block;
    padding: 14px 16px;
    position: relative;
    transition: border-color .15s, transform .15s;
}

.dash a.kpi:hover,
.dash a.kpi:focus {
    border-color: #8c1c13;
    color: #444;
    text-decoration: none;
    transform: translateY(-2px);
}

.dash .kpi .kpi-num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.dash .kpi .kpi-label {
    color: #777;
    font-size: 13px;
    font-weight: 600;
}

.dash .kpi .kpi-icon {
    color: #d8dbe0;
    font-size: 26px;
    position: absolute;
    right: 14px;
    top: 14px;
}

.dash .kpi.is-attention {
    border-color: #e6a23c;
}

.dash .kpi.is-attention .kpi-num {
    color: #c8760a;
}

.dash .kpi.is-attention .kpi-icon {
    color: #f0c27a;
}

.dash .kpi.is-urgent {
    border-color: #8c1c13;
}

.dash .kpi.is-urgent .kpi-num {
    color: #8c1c13;
}

.dash .kpi.is-zero .kpi-num {
    color: #aab0b8;
}

/* Painéis de listas (hoje, próximos, tarefas) */
.dash .dash-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
}

.dash .panel-card {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    padding: 16px;
}

.dash .panel-card h3 {
    color: #8c1c13;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08rem;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.dash .panel-card h3 .fa {
    margin-right: 6px;
}

.dash .agenda {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash .agenda li {
    border-top: 1px solid #f0f1f3;
}

.dash .agenda li:first-child {
    border-top: 0;
}

.dash .agenda a {
    align-items: center;
    color: #444;
    display: flex;
    gap: 12px;
    padding: 9px 0;
}

.dash .agenda a:hover {
    color: #8c1c13;
    text-decoration: none;
}

.dash .agenda .when {
    color: #8c1c13;
    flex: 0 0 82px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.dash .agenda .what {
    flex: 1;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dash .agenda .what small {
    color: #888;
    display: block;
    font-weight: 400;
}

.dash .agenda .dot {
    border-radius: 50%;
    flex: 0 0 10px;
    height: 10px;
    width: 10px;
}

.dash .empty {
    color: #999;
    padding: 12px 0 4px;
    text-align: center;
}

/* Calendário */
.dash .cal-card {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    padding: 14px 16px 16px;
}

.dash .cal-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dash .cal-bar h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.dash .cal-bar select {
    max-width: 280px;
}

.dash .dc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.dash .dc-legend button {
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 16px;
    color: #555;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    padding: 4px 11px;
}

.dash .dc-legend button .sw {
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.dash .dc-legend button .dc-count {
    color: #999;
    font-weight: 600;
}

.dash .dc-legend button.is-off {
    opacity: .45;
    text-decoration: line-through;
}

.dash #dash-calendar {
    min-height: 120px;
}

.dash #dash-calendar.dc-error::after {
    color: #8c1c13;
    content: 'Não foi possível carregar o calendário. Atualize a página.';
    display: block;
    padding: 12px;
    text-align: center;
}

/* FullCalendar */
.dash .fc {
    font-size: 13px;
}

.dash .fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 8px;
}

.dash .fc .fc-toolbar-title {
    font-size: 18px;
    font-weight: 700;
}

.dash .fc .fc-toolbar-title::first-letter {
    text-transform: uppercase;
}

.dash .fc .fc-button {
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    box-shadow: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    padding: .35em .8em;
    text-transform: none;
}

.dash .fc .fc-button:hover {
    background: #f5f6f8;
    color: #333;
}

.dash .fc .fc-button-primary:not(:disabled).fc-button-active,
.dash .fc .fc-button-primary:not(:disabled):active {
    background: #8c1c13;
    border-color: #8c1c13;
    color: #fff;
}

.dash .fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(140, 28, 19, .15);
}

.dash .fc .fc-button-group > .fc-button {
    border-radius: 0;
}

.dash .fc .fc-button-group > .fc-button:first-child {
    border-radius: 6px 0 0 6px;
}

.dash .fc .fc-button-group > .fc-button:last-child {
    border-radius: 0 6px 6px 0;
}

.dash .fc-theme-standard td,
.dash .fc-theme-standard th,
.dash .fc-theme-standard .fc-scrollgrid {
    border-color: #eceef1;
}

.dash .fc .fc-col-header-cell-cushion {
    color: #888;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05rem;
    padding: 8px 4px;
    text-decoration: none;
    text-transform: uppercase;
}

.dash .fc .fc-daygrid-day-number {
    color: #555;
    font-weight: 600;
    padding: 6px 8px;
    text-decoration: none;
}

.dash .fc .fc-day-sat,
.dash .fc .fc-day-sun {
    background: #fafafb;
}

.dash .fc .fc-day-today {
    background: #fbefee !important;
}

.dash .fc .fc-day-today .fc-daygrid-day-number {
    background: #8c1c13;
    border-radius: 12px;
    color: #fff;
    margin: 4px;
    padding: 2px 8px;
}

.dash .fc .dc-holiday {
    background: #f1f2f4 !important;
    opacity: 1;
}

.dash .fc .fc-event {
    border-radius: 5px;
    cursor: default;
    font-size: 12px;
    padding: 1px 3px;
}

.dash .fc a.fc-event {
    cursor: pointer;
}

.dash .fc a.fc-event:hover {
    filter: brightness(.92);
}

.dash .fc .fc-daygrid-event-dot {
    display: none;
}

.dash .fc .fc-more-link {
    color: #8c1c13;
    font-weight: 700;
}

.dash .fc .fc-list {
    border-color: #eceef1;
}

.dash .fc .fc-list-day-cushion {
    background: #f7f8fa;
    font-weight: 700;
}

.dash .fc .fc-list-event:hover td {
    background: #fbefee;
}

.dash .fc .fc-list-event-title a {
    color: #333;
    font-weight: 600;
}

.dash .fc .fc-list-empty {
    color: #999;
}

/* Aviso de partilha de dados (colaborador) */
.dash .notice {
    align-items: center;
    background: #fff8e6;
    border: 1px solid #f1d9a0;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
}

@media (max-width: 767px) {
    .dash .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash .kpis {
        grid-template-columns: 1fr 1fr;
    }

    .dash .kpi .kpi-num {
        font-size: 26px;
    }

    .dash .cal-bar select {
        max-width: none;
        width: 100%;
    }

    .dash .dc-legend {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .dash .dc-legend button {
        flex: 0 0 auto;
    }
}
