/* ============================= */
/* ABA: CHAMADOS                 */
/* ============================= */

/* Esconde as seções de chamados por padrão */
.chamados-view,
.chamados-view-mobile {
    display: none;
}

/* Esconde a visão geral quando a aba de chamados está ativa */
body.chamados-view-active .desktop-content-grid,
body.chamados-view-active .content.panel {
    display: none;
}

/* Mostra a visualização de chamados quando ativa */
body.chamados-view-active .chamados-view,
body.chamados-view-active .chamados-view-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduzido para corresponder ao .main-card */
    height: 100%;
}

/* Estilo para o card de chamados em tela cheia (Desktop) */
.desktop-card-chamados-full {
    height: 40%;
    width: 100%;
}

/* Estilo para o card vazio (Desktop) */
.desktop-card-empty {
    height: calc(60% - 8px);
    /* Ajusta para o gap */
    width: 100%;
}

/* Aumentando a especificidade para garantir a altura correta no mobile */
/* Especificidade aumentada para sobrescrever .inner-card:first-child */
.chamados-view-mobile .inner-card.chamados-card-full {
    height: 30%;
    flex-shrink: 0;
    flex-grow: 0;
    overflow-y: auto;
    min-height: 0;
}

.chamados-view-mobile .inner-card.empty-card {
    height: calc(70% - 8px);
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    min-height: 0;
}

/* Regra específica para mobile */
@media (max-width: 900px) {
    body.chamados-view-active .chamados-view-mobile {
        width: 95vw;
        /* Corresponde à largura do cabeçalho */
        margin: 0 auto;
        /* Centraliza o container */
        height: calc(100dvh - 78px);
        /* Altura total menos o cabeçalho e espaçamento */
        padding: 0;
        /* O padding será nos cards internos se necessário */
    }

    body.projetos-view-active .projetos-view-mobile {
        width: 95vw;
        margin: 0 auto;
        height: calc(100dvh - 78px);
        height: calc(100svh - 78px);
        max-height: calc(100svh - 78px);
        min-height: calc(100svh - 78px);
        padding: 0;
        display: grid;
        grid-template-rows: minmax(0, 3fr) minmax(0, 7fr);
        gap: 8px;
        overflow: hidden;
    }

    body.relatorios-view-active .relatorios-view-mobile,
    body.configuracoes-view-active .configuracoes-view-mobile,
    body.atividade-view-active .atividade-view-mobile {
        width: 95vw;
        margin: 0 auto;
        height: calc(100dvh - 78px);
        padding: 0;
        overflow: hidden;
        min-height: 0;
    }
}

/* ============================= */
/* ABA: PROJETOS (MOBILE)        */
/* ============================= */

/* Esconde as seções de projetos mobile por padrão */
.projetos-view-mobile {
    display: none;
}

/* Esconde a visão geral quando a aba de projetos está ativa (mobile) */
body.projetos-view-active .content.panel {
    display: none;
}

/* Mostra a visualização de projetos quando ativa (mobile) */
body.projetos-view-active .projetos-view-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* Altura dos cards no mobile de projetos - igual chamados */
/* Especificidade aumentada para sobrescrever .inner-card:first-child */
.projetos-view-mobile .inner-card.projetos-card-full {
    height: 30%;
    flex-shrink: 0;
    flex-grow: 0;
    overflow-y: auto;
    min-height: 0;
}

.projetos-view-mobile .inner-card.projetos-empty-card {
    height: calc(70% - 8px);
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    min-height: 0;
}

/* Força o split 30/70 no mobile, mesmo com conteúdo grande */
body.projetos-view-active .projetos-view-mobile .inner-card.projetos-card-full,
body.projetos-view-active .projetos-view-mobile .inner-card.projetos-empty-card {
    height: auto;
    min-height: 0;
}

body.projetos-view-active .projetos-view-mobile .inner-card.projetos-card-full {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.projetos-view-active .projetos-view-mobile .inner-card.projetos-card-full .card-content {
    min-height: 0;
}

body.projetos-view-active .projetos-view-mobile .inner-card.projetos-empty-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================= */
/* ABA: RELATÓRIOS E CONFIG      */
/* ============================= */

.relatorios-view-mobile,
.configuracoes-view-mobile {
    display: none;
}

body.relatorios-view-active .content.panel,
body.configuracoes-view-active .content.panel,
body.atividade-view-active .content.panel {
    display: none;
}

body.relatorios-view-active .relatorios-view-mobile,
body.configuracoes-view-active .configuracoes-view-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* ============================= */
/* ABA: ATIVIDADE                */
/* ============================= */

.atividade-view-mobile,
.atividade-view {
    display: none;
}

body.atividade-view-active .atividade-view-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
}

body:not(.atividade-view-active) .atividade-view-mobile {
    display: none !important;
}

body.chamados-view-active .atividade-view-mobile,
body.projetos-view-active .atividade-view-mobile,
body.relatorios-view-active .atividade-view-mobile,
body.configuracoes-view-active .atividade-view-mobile {
    display: none !important;
}

body.atividade-view-active .desktop-content-grid {
    display: none;
}

body.atividade-view-active .atividade-view {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(12, 1fr);
    min-height: 0;
    height: 100%;
}

body:not(.atividade-view-active) .atividade-view {
    display: none !important;
}

.atividade-mobile-card {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
}

.atividade-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.atividade-view-title {
    margin: 0;
    text-align: left;
}

.atividade-view-subtitle {
    margin: 4px 0 0;
    font-size: var(--font-xs);
    color: var(--muted);
    line-height: 1.45;
}

.atividade-refresh-btn {
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: 9px;
    min-height: 38px;
    min-width: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atividade-refresh-btn i {
    font-size: 18px;
}

.atividade-refresh-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(122, 162, 255, 0.1);
}

.atividade-refresh-btn.is-loading {
    opacity: 0.85;
    cursor: progress;
}

.atividade-refresh-btn.is-loading i {
    animation: atividadeSpin 0.8s linear infinite;
}

@keyframes atividadeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.atividade-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.atividade-summary-item {
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.atividade-summary-item span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.atividade-summary-item strong {
    font-size: 16px;
    color: var(--text);
    font-weight: 700;
}

.atividade-summary-item.running strong {
    color: #8df0b2;
}

.atividade-summary-item.paused strong {
    color: #ffd17d;
}

.atividade-summary-item.lunch strong {
    color: #9cc3ff;
}

.atividade-summary-item.total strong {
    color: var(--brand);
}

.atividade-last-sync {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
}

.atividade-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.atividade-list-desktop {
    margin-top: 12px;
}

.atividade-card {
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atividade-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.atividade-tech-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.atividade-tech-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.atividade-tech-role {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.atividade-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    border: 1px solid transparent;
}

.atividade-status-badge.running {
    color: #8df0b2;
    background: rgba(52, 199, 89, 0.16);
    border-color: rgba(52, 199, 89, 0.34);
}

.atividade-status-badge.paused {
    color: #ffd17d;
    background: rgba(255, 193, 7, 0.16);
    border-color: rgba(255, 193, 7, 0.34);
}

.atividade-status-badge.lunch {
    color: #9cc3ff;
    background: rgba(122, 162, 255, 0.16);
    border-color: rgba(122, 162, 255, 0.34);
}

.atividade-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.atividade-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.atividade-field-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.atividade-field-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.atividade-field-value.is-highlight {
    color: var(--brand);
}

.atividade-description {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #d2d8e1;
    border-left: 2px solid rgba(122, 162, 255, 0.55);
    padding-left: 10px;
}

.atividade-description.is-empty {
    color: var(--muted);
    border-left-style: dashed;
}

.atividade-loading,
.atividade-empty,
.atividade-error {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    padding: 16px;
}

.atividade-loading i,
.atividade-empty i,
.atividade-error i {
    font-size: 26px;
}

.atividade-loading i {
    color: var(--brand);
}

.atividade-error i {
    color: #ff9e9e;
}

.atividade-desktop-main {
    grid-column: span 8;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.atividade-desktop-side {
    grid-column: span 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atividade-summary-side {
    grid-template-columns: 1fr;
}

@media (max-width: 1360px) {
    .atividade-desktop-main,
    .atividade-desktop-side {
        grid-column: span 12;
    }

    .atividade-summary-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .atividade-list-desktop {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-content: start;
    }

    .atividade-view-mobile {
        display: none !important;
    }
}

@media (min-width: 1600px) {
    body.atividade-view-active .atividade-view {
        gap: 16px;
    }

    .atividade-desktop-main {
        grid-column: span 9;
    }

    .atividade-desktop-side {
        grid-column: span 3;
        gap: 14px;
        position: sticky;
        top: 12px;
        align-self: start;
    }

    .atividade-list-desktop {
        margin-top: 14px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .atividade-card {
        padding: 14px;
        min-height: 242px;
    }

    .atividade-card-grid {
        gap: 10px;
    }

    .atividade-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .atividade-summary-item {
        padding: 11px 12px;
    }

    .atividade-summary-item strong {
        font-size: 18px;
    }

    .atividade-last-sync {
        font-size: 12px;
    }
}

@media (min-width: 2100px) {
    .atividade-list-desktop {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1180px) {
    .atividade-list-desktop {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .atividade-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .atividade-view {
        display: none !important;
    }
}

/* ============================= */
/* RELATÓRIOS: GRID DE BOXES     */
/* ============================= */

.relatorios-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.relatorios-container .card-title {
    flex-shrink: 0;
}

.relatorios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 0;
    flex-grow: 1;
    align-content: start;
}

.relatorio-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    min-height: 110px;
}

.relatorio-box:hover {
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.12), rgba(122, 162, 255, 0.04));
    border-color: var(--brand);
    transform: translateY(-2px);
}

.relatorio-box:active {
    transform: translateY(0);
}

.relatorio-box i {
    font-size: 32px;
    color: var(--brand);
}

.relatorio-title {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text);
}

.relatorio-desc {
    font-size: var(--font-xs);
    color: var(--muted);
    line-height: 1.3;
}

/* ============================= */
/* CONFIGURAÇÕES (MOBILE-FIRST) */
/* ============================= */

.configuracoes-mobile-card {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-settings-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-settings-subtitle {
    margin: 0;
    font-size: var(--font-xs);
    color: var(--muted);
    line-height: 1.45;
}

.config-form-section {
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-form-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.2px;
}

.config-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.config-label em {
    font-style: normal;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.8;
}

.config-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(122, 162, 255, 0.15);
}

.config-input.is-readonly {
    background: rgba(255, 255, 255, 0.02);
    color: #cdd2da;
    border-style: dashed;
}

.config-inline-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.config-action-btn,
.config-secondary-btn {
    width: 100%;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.config-action-btn {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    color: #fff;
    border: none;
}

.config-secondary-btn {
    background: var(--bg);
    color: var(--muted);
}

.config-action-btn:disabled,
.config-secondary-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.config-action-btn.is-loading {
    opacity: 0.8;
    cursor: progress;
}

.config-secondary-btn.is-loading {
    opacity: 0.8;
    cursor: progress;
}

.config-meta-grid {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.config-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.config-meta-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.config-meta-item span {
    font-size: 11px;
    color: var(--muted);
}

.config-meta-item strong {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.config-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* ============================= */
/* MODAL: ALTERAR SENHA         */
/* ============================= */

.settings-password-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(5, 8, 12, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.settings-password-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.settings-password-modal {
    width: min(460px, 100%);
    background: linear-gradient(180deg, #121824, #0f141e);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 26px 75px rgba(0, 0, 0, 0.48);
}

.settings-password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-password-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.settings-password-close {
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-password-close i {
    font-size: 20px;
}

.settings-password-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.settings-password-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.settings-password-actions .config-action-btn,
.settings-password-actions .config-secondary-btn {
    width: auto;
}

#settings-password-feedback {
    min-height: 18px;
    margin-top: -2px;
}

#settings-password-feedback.error {
    color: #ff9e9e;
}

#settings-password-feedback.success {
    color: #8df0b2;
}

#settings-corporate-email-feedback {
    min-height: 18px;
}

#settings-corporate-email-feedback.error {
    color: #ff9e9e;
}

#settings-corporate-email-feedback.success {
    color: #8df0b2;
}

/* ============================= */
/* MODAL: RELATÓRIO DESEMPENHO  */
/* ============================= */

.performance-report-modal {
    width: min(560px, 100%);
}

.performance-report-date-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#performance-report-feedback {
    min-height: 18px;
}

#performance-report-feedback.error {
    color: #ff9e9e;
}

#performance-report-feedback.success {
    color: #8df0b2;
}

@media (min-width: 700px) {
    .performance-report-date-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ============================= */
/* MODAL RDO                     */
/* ============================= */

.rdo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rdo-modal.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.rdo-modal.hiding {
    opacity: 0;
    transform: translateY(100%);
}

.rdo-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rdo-modal-content::-webkit-scrollbar {
    display: none;
}

.rdo-modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    align-self: flex-start;
}

.rdo-modal-back i {
    font-size: 20px;
}

.rdo-header {
    text-align: center;
    padding: 16px 0;
}

.rdo-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.rdo-subtitle {
    font-size: var(--font-sm);
    color: var(--muted);
    margin: 0;
}

.rdo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.rdo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--muted);
    font-size: var(--font-sm);
}

.rdo-loading i {
    font-size: 24px;
    color: var(--brand);
}

.rdo-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.rdo-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.rdo-item {
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rdo-item:hover {
    border-color: var(--brand);
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.08), rgba(122, 162, 255, 0.02));
}

.rdo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rdo-item-ticket {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--brand);
}

.rdo-item-status {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rdo-item-status.ready {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.rdo-item-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rdo-item-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.rdo-item-field {
    display: flex;
    flex-direction: column;
}

.rdo-item-label {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 2px;
}

.rdo-item-value {
    font-size: var(--font-sm);
    color: var(--text);
}

/* Header row com filtros */
.rdo-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.rdo-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rdo-filter-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.1), rgba(122, 162, 255, 0.02));
}

/* Botões de ação nos cards RDO */
.rdo-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rdo-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rdo-action-btn i {
    font-size: 16px;
}

.rdo-action-btn.generate {
    background: linear-gradient(135deg, #34c759, #30b350);
    color: white;
}

.rdo-action-btn.generate:hover {
    background: linear-gradient(135deg, #30b350, #28a042);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.rdo-action-btn.collect {
    background: linear-gradient(135deg, #ffc107, #e6ae06);
    color: #1a1a1a;
}

.rdo-action-btn.collect:hover {
    background: linear-gradient(135deg, #e6ae06, #cc9b05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.rdo-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   PAINEL DE FILTROS RDO
   ======================================== */
.rdo-filters-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    animation: slideDown 0.25s ease;
}

.rdo-filters-panel.active {
    display: flex;
}

.rdo-filters-overlay {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rdo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rdo-filter-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rdo-filter-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rdo-filter-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: var(--font-sm);
    outline: none;
    transition: border-color 0.2s ease;
}

.rdo-filter-input:focus {
    border-color: var(--brand);
}

.rdo-filter-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

.rdo-filter-date-sep {
    font-size: var(--font-xs);
    color: var(--muted);
    white-space: nowrap;
}

.rdo-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rdo-filter-chip {
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--muted);
    font-size: var(--font-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rdo-filter-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.rdo-filter-chip.active {
    background: linear-gradient(135deg, var(--brand), #5a8ff0);
    border-color: transparent;
    color: white;
}

.rdo-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.rdo-filter-clear,
.rdo-filter-apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rdo-filter-clear {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--muted);
}

.rdo-filter-clear:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.rdo-filter-apply {
    background: linear-gradient(135deg, var(--brand), #5a8ff0);
    color: white;
}

.rdo-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 162, 255, 0.3);
}

/* Load More Indicator */
.rdo-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--muted);
    font-size: var(--font-sm);
}

/* Filter button active state */
.rdo-filter-btn.active {
    border-color: var(--brand);
    color: var(--brand);
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.15), rgba(122, 162, 255, 0.05));
}

/* Tablet e telas grandes */
@media (min-width: 900px) {
    .rdo-modal {
        background: rgba(8, 11, 16, 0.75);
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        padding: 18px;
    }

    .rdo-modal.hidden,
    .rdo-modal.hiding {
        transform: none;
    }

    .rdo-modal .rdo-modal-content {
        width: min(1120px, 100%);
        max-height: min(90vh, 900px);
        background: linear-gradient(180deg, #11161f, #0d1118);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 18px;
        box-shadow: 0 30px 85px rgba(0, 0, 0, 0.55);
        padding: 20px;
        gap: 16px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
    }

    .rdo-modal .rdo-modal-content::-webkit-scrollbar {
        display: block;
        width: 6px;
    }

    .rdo-modal .rdo-modal-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.24);
        border-radius: 999px;
    }

    .rdo-modal .rdo-modal-back {
        padding: 8px 12px;
        border: 1px solid var(--card-border);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .rdo-modal .rdo-header {
        text-align: left;
        padding: 4px 0 0;
    }

    .rdo-modal .rdo-title {
        font-size: 24px;
        line-height: 1.15;
    }

    .rdo-modal .rdo-subtitle {
        font-size: 13px;
    }

    .rdo-modal .rdo-filter-btn {
        width: 44px;
        height: 44px;
    }

    .rdo-modal-content .rdo-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-content: start;
        padding: 0;
    }

    .rdo-modal .rdo-item {
        height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(180deg, rgba(16, 20, 28, 0.96), rgba(12, 16, 24, 0.98));
    }

    .rdo-modal .rdo-item-header {
        margin-bottom: 12px;
    }

    .rdo-modal .rdo-item-body {
        gap: 10px 18px;
    }

    .rdo-modal .rdo-item-actions {
        margin-top: auto;
        padding-top: 10px;
    }

    .rdo-modal .rdo-action-btn {
        border-radius: 9px;
    }

    .rdo-modal .rdo-loading,
    .rdo-modal .rdo-empty,
    .rdo-modal .rdo-error {
        grid-column: 1 / -1;
        min-height: 220px;
        width: 100%;
        border: 1px dashed rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        justify-self: stretch;
    }

    .rdo-modal .rdo-load-more {
        grid-column: 1 / -1;
    }

    .rdo-filters-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1200;
        background: rgba(5, 8, 12, 0.66);
        backdrop-filter: blur(3px);
    }

    .rdo-filters-panel {
        margin-bottom: 0;
    }

    .rdo-filters-panel.active {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(660px, calc(100vw - 36px));
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1250;
        padding: 20px;
        border-radius: 14px;
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.16);
        animation: filterModalIn 0.2s ease-out;
    }
}

@media (min-width: 900px) and (max-width: 1120px) {
    .rdo-modal-content .rdo-list {
        grid-template-columns: 1fr;
    }
}

@keyframes filterModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ======================================================================
   MOBILE: Reforço do layout de Projetos (igual Chamados)
   - Garante split 30/70 e evita sumir o card inferior
   ====================================================================== */
@media (max-width: 900px) {
    body.projetos-view-active .projetos-view-mobile {
        width: 95vw;
        margin: 0 auto;
        height: calc(100dvh - 78px);
        height: calc(100svh - 78px);
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }

    body.projetos-view-active .projetos-view-mobile .inner-card.projetos-card-full {
        flex: 0 0 30%;
        max-height: 30%;
        min-height: 0;
        overflow: hidden;
    }

    body.projetos-view-active .projetos-view-mobile .inner-card.projetos-card-full .card-content {
        min-height: 0;
        overflow-y: auto;
    }

    body.projetos-view-active .projetos-view-mobile .inner-card.projetos-empty-card {
        flex: 1 1 70%;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
}

/* Mensagem de Em Desenvolvimento */
.dev-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 24px;
}

.dev-message-container i {
    font-size: 48px;
    color: var(--muted);
    margin-bottom: 16px;
}

.dev-message-container h3 {
    font-size: var(--font-lg);
    color: var(--text);
    margin-bottom: 8px;
}

.dev-message-container p {
    font-size: var(--font-sm);
    color: var(--muted);
}

/* ============================= */
/* DESKTOP: RELATÓRIOS E CONFIG  */
/* ============================= */

.relatorios-view,
.configuracoes-view {
    display: none;
}

/* Esconde a visão geral quando relatórios/configurações está ativo no desktop */
body.relatorios-view-active .desktop-content-grid,
body.configuracoes-view-active .desktop-content-grid {
    display: none;
}

/* Mostra a view de relatórios/configurações */
body.relatorios-view-active .relatorios-view,
body.configuracoes-view-active .configuracoes-view {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(12, 1fr);
    min-height: 0;
    height: 100%;
}

.relatorios-desktop-main {
    grid-column: span 8;
    min-height: 0;
}

.relatorios-desktop-side {
    grid-column: span 4;
    min-height: 0;
}

.relatorios-desktop-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.relatorios-desktop-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--brand);
    font-weight: 600;
}

.relatorios-desktop-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
}

.relatorios-desktop-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    max-width: 680px;
}

.relatorios-desktop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(122, 162, 255, 0.35);
    background: rgba(122, 162, 255, 0.12);
    color: #dce7ff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.relatorios-desktop-chip i {
    font-size: 16px;
}

.relatorios-desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    min-height: 0;
}

.relatorio-box-desktop {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    padding: 16px;
    min-height: 170px;
}

.relatorio-box-desktop i {
    font-size: 28px;
}

.relatorio-box-desktop .relatorio-title {
    font-size: 16px;
    font-weight: 700;
}

.relatorio-box-desktop .relatorio-desc {
    font-size: 12px;
    line-height: 1.45;
}

.relatorio-pill {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(52, 199, 89, 0.16);
    color: #8df0b2;
    border: 1px solid rgba(52, 199, 89, 0.35);
}

.relatorio-pill-muted {
    background: rgba(154, 160, 166, 0.16);
    color: #b7bcc2;
    border-color: rgba(154, 160, 166, 0.35);
}

.relatorio-box-desktop.is-coming-soon {
    cursor: default;
    opacity: 0.8;
}

.relatorio-box-desktop.is-coming-soon:hover {
    transform: none;
    border-color: var(--card-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.relatorios-desktop-flow {
    margin-top: 6px;
    display: grid;
    gap: 12px;
}

.relatorios-flow-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.relatorios-flow-index {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(122, 162, 255, 0.2);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.relatorios-flow-item h3 {
    margin: 0;
    font-size: 13px;
    color: var(--text);
}

.relatorios-flow-item p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.relatorios-desktop-note {
    margin-top: auto;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(122, 162, 255, 0.45);
    background: rgba(122, 162, 255, 0.07);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.relatorios-desktop-note i {
    font-size: 16px;
    color: var(--brand);
    margin-top: 1px;
}

.relatorios-desktop-note p {
    margin: 0;
}

@media (max-width: 1360px) {
    .relatorios-desktop-main,
    .relatorios-desktop-side {
        grid-column: span 12;
    }
}

@media (max-width: 1120px) {
    .relatorios-desktop-head {
        flex-direction: column;
    }

    .relatorios-desktop-chip {
        align-self: flex-start;
    }
}

@media (max-width: 1000px) {
    .relatorios-desktop-grid {
        grid-template-columns: 1fr;
    }

    .relatorio-box-desktop {
        min-height: 150px;
    }
}

.configuracoes-desktop-main {
    grid-column: span 8;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.configuracoes-desktop-side {
    grid-column: span 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-desktop-title {
    font-size: 15px;
    color: var(--text);
}

body.configuracoes-view-active .configuracoes-view .desktop-card {
    overflow-y: auto;
}

.configuracoes-view .config-form-section {
    margin: 0;
}

.configuracoes-view .config-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-fields-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-meta-grid.compact {
    margin: 0;
}

@media (max-width: 1360px) {
    .configuracoes-desktop-main,
    .configuracoes-desktop-side {
        grid-column: span 12;
    }
}

@media (min-width: 901px) and (max-width: 1120px) {
    .config-fields-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .config-actions-row {
        grid-template-columns: 1fr;
    }
}

/* Estilos para a lista de chamados simplificada */
.chamado-item .chamado-field.simple {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.chamado-item .chamado-value.muted {
    font-size: var(--font-xs);
    color: var(--muted);
}

/* ======================================= */
/* Detalhes do Chamado (Card Inferior Mobile) */
/* ======================================= */

.ticket-details-mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.ticket-details-mobile .details-main-content {
    border: 1px solid var(--surface);
    border-radius: 8px;
    padding: 10px;
    flex-shrink: 0;
}

.ticket-details-mobile .details-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--surface);
}

.ticket-details-mobile .details-header .ticket-id {
    font-size: 14px;
    font-weight: 600;
}

.ticket-details-mobile .details-header .prazo-pct {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.ticket-details-mobile .details-body {
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    /* Espaçamento reduzido */
}

.ticket-details-mobile .detail-label {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 1px;
    display: block;
}

.ticket-details-mobile .detail-value {
    font-size: 11px;
    font-weight: 500;
}

.ticket-details-mobile .details-tabs {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    background-color: var(--surface);
    border-radius: 9px;
    padding: 4px;
}

.ticket-details-mobile .tab-link {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
    padding: 5px 4px;
    border-radius: 7px;
    font-size: 10px;
    border: none;
    background-color: transparent;
    color: var(--muted);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.ticket-details-mobile .tab-link.active {
    background-color: var(--inner-card-bg);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo diferenciado para botão Atividade (abre modal, não é aba) */
.ticket-details-mobile .tab-activity {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px dashed var(--brand);
    color: var(--brand);
}

.ticket-details-mobile .tab-activity:hover {
    background-color: rgba(122, 162, 255, 0.15);
    border-style: solid;
}

.ticket-details-mobile .tab-content {
    flex-grow: 1;
    padding-top: 10px;
    min-height: 50px;
}

.ticket-details-mobile .content-wrapper {
    background-color: var(--bg);
    /* Cor de fundo principal */
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* ======================================= */
/* Modal de Atividade                      */
/* ======================================= */

.activity-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-modal.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.activity-modal.hiding {
    opacity: 0;
    transform: translateY(100%);
}

.activity-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 24px;
    overflow-y: auto;
    /* Ocultar scrollbar mas manter funcionalidade */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.activity-modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.activity-modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    align-self: flex-start;
}

.activity-modal-back i {
    font-size: 20px;
}

/* Timer Section */
.activity-timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.1), rgba(122, 162, 255, 0.02));
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.activity-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', 'Roboto Mono', monospace;
}

.activity-timer span {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
}

.timer-separator {
    color: var(--brand);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.activity-timer-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-ticket-name {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Activity Buttons */
.activity-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.activity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--card-border);
    background: var(--inner-card-bg);
    color: var(--text);
}

.activity-btn i {
    font-size: 16px;
}

.activity-btn-pause {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.activity-btn-pause:hover {
    background: rgba(255, 193, 7, 0.25);
}

.activity-btn-end {
    background: rgba(255, 69, 58, 0.15);
    border-color: rgba(255, 69, 58, 0.4);
    color: #ff453a;
}

.activity-btn-end:hover {
    background: rgba(255, 69, 58, 0.25);
}

.activity-btn-lunch {
    background: rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.4);
    color: #34c759;
}

.activity-btn-lunch:hover {
    background: rgba(52, 199, 89, 0.25);
}

/* Sections */
.activity-active-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-signature-section,
.activity-details-section,
.activity-budget-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.activity-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.activity-btn-signature,
.activity-btn-images,
.activity-btn-budget {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    border: none;
    color: #fff;
}

.activity-btn-signature:hover,
.activity-btn-images:hover,
.activity-btn-budget:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 162, 255, 0.3);
}

.activity-budget-status {
    font-size: 12px;
    color: var(--muted);
    padding: 10px 12px;
    border: 1px dashed var(--card-border);
    border-radius: 8px;
    background: var(--bg);
}

/* Estado de upload - botões desabilitados com visual cinza */
.activity-btn-images.uploading,
.activity-btn-end.uploading,
.activity-btn-images[disabled],
.activity-btn-end[disabled] {
    background: #4a4a4a !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
}

.activity-btn-images.uploading:hover,
.activity-btn-end.uploading:hover {
    transform: none !important;
}

/* Preview de imagens anexadas */
.activity-images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.activity-images-preview:empty {
    display: none;
}

.activity-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.activity-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 69, 58, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.activity-image-remove:hover {
    background: #ff453a;
}

.activity-details-input {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--text);
    resize: none;
    min-height: 80px;
    font-family: inherit;
}

.activity-details-input::placeholder {
    color: var(--muted);
}

.activity-details-input:focus {
    outline: none;
    border-color: var(--brand);
}

/* ======================================= */
/* Seção de Envolvidos                     */
/* ======================================= */

.activity-participants-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.activity-participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-participant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.activity-participant i {
    font-size: 22px;
    color: var(--brand);
}

.activity-participant .participant-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.activity-participant .participant-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    font-weight: 500;
}

.activity-participant-picker {
    border: 1px dashed rgba(122, 162, 255, 0.45);
    border-radius: 10px;
    background: rgba(122, 162, 255, 0.05);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--brand);
    font-weight: 600;
}

.participant-picker-header i {
    font-size: 18px;
}

.participant-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 170px;
    overflow-y: auto;
    padding-right: 2px;
}

.participant-check-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.participant-check-item:hover {
    border-color: rgba(122, 162, 255, 0.45);
    background: rgba(122, 162, 255, 0.08);
    transform: translateY(-1px);
}

.participant-check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(122, 162, 255, 0.55);
    border-radius: 6px;
    background: rgba(122, 162, 255, 0.08);
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.participant-check-item input[type="checkbox"]::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(40deg) scale(0.6);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.participant-check-item input[type="checkbox"]:checked {
    border-color: var(--brand);
    background: var(--brand);
}

.participant-check-item input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(40deg) scale(1);
}

.participant-check-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.participant-check-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(122, 162, 255, 0.4);
    outline-offset: 2px;
}

.participant-check-item label {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.participant-check-item .participant-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(122, 162, 255, 0.35);
    background: rgba(122, 162, 255, 0.12);
    color: var(--muted);
}

.participant-check-item.is-busy {
    opacity: 0.75;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.participant-check-item.is-busy .participant-badge {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
}

.participant-check-item.is-assigned {
    border-color: rgba(52, 199, 89, 0.35);
    background: rgba(52, 199, 89, 0.12);
}

.participant-check-item.is-assigned .participant-badge {
    border-color: rgba(52, 199, 89, 0.35);
    background: rgba(52, 199, 89, 0.16);
    color: #8cf2aa;
}

.participant-empty {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    padding: 8px;
}

.participant-hint {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

@keyframes ticket-new-highlight-pulse {
    0% {
        background-color: rgba(52, 199, 89, 0.35);
    }

    100% {
        background-color: transparent;
    }
}

.ticket-new-highlight {
    animation: ticket-new-highlight-pulse 2.8s ease-out 1;
}

.activity-btn-leave {
    align-self: flex-start;
    background: rgba(255, 69, 58, 0.12);
    border-color: rgba(255, 69, 58, 0.35);
    color: #ff6b61;
    padding: 8px 12px;
}

.activity-btn-leave:hover {
    background: rgba(255, 69, 58, 0.2);
}

.activity-btn-leave.hidden {
    display: none;
}

/* ======================================= */
/* Botão Iniciar Atividade                 */
/* ======================================= */

.activity-start-section {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.activity-btn-start {
    background: linear-gradient(180deg, #34c759, #28a745);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
    transition: all 0.2s ease;
}

.activity-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.activity-btn-start:active {
    transform: translateY(0);
}

/* ======================================= */
/* Status de Assinatura                    */
/* ======================================= */

.signature-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255, 69, 58, 0.1);
    border-radius: 8px;
    color: #ff453a;
}

.signature-status i {
    font-size: 16px;
}

.signature-status.collected {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

/* ======================================= */
/* Seções Condicionais                     */
/* ======================================= */

.activity-start-section.hidden,
.activity-buttons.hidden,
.activity-active-sections.hidden {
    display: none;
}

/* Botão Encerrar desabilitado */
.activity-btn-end:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.2);
    color: rgba(255, 69, 58, 0.5);
}

/* ======================================= */
/* Modal de Assinatura                     */
/* ======================================= */

.signature-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.signature-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.signature-modal {
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.signature-modal-overlay.hidden .signature-modal {
    transform: scale(0.9);
}

.signature-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signature-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.signature-modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.signature-modal-close:hover {
    color: var(--text);
}

/* Canvas de Assinatura */
.signature-canvas-container {
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

.signature-canvas-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.signature-canvas-container.has-signature .signature-canvas-hint {
    opacity: 0;
}

.signature-clear-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.signature-canvas-container.has-signature .signature-clear-btn {
    opacity: 1;
}

/* Campos de Input */
.signature-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signature-input-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.signature-input {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.signature-input:focus {
    outline: none;
    border-color: var(--brand);
}

.signature-input::placeholder {
    color: var(--muted);
}

/* Botão Salvar */
.signature-save-btn {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signature-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 162, 255, 0.3);
}

.signature-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ======================================= */
/* Modal de Orçamento                      */
/* ======================================= */

.budget-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.budget-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.budget-modal {
    width: 100%;
    max-width: 720px;
    max-height: min(90vh, 900px);
    background: var(--inner-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
}

.budget-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.budget-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.budget-modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.budget-modal-close:hover {
    color: var(--text);
}

.budget-modal-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.budget-search-wrapper {
    display: flex;
}

.budget-search-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    padding: 10px 12px;
}

.budget-search-input:focus {
    outline: none;
    border-color: var(--brand);
}

.budget-material-list {
    overflow-y: auto;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--bg);
    min-height: 220px;
    max-height: min(52vh, 560px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-loading,
.budget-empty,
.budget-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    padding: 20px;
}

.budget-error {
    color: #ff6b6b;
}

.budget-material-row {
    display: grid;
    grid-template-columns: 1fr 110px 92px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--inner-card-bg);
    padding: 10px;
}

.budget-material-name {
    font-size: 13px;
    color: var(--text);
    line-height: 1.3;
}

.budget-material-ni {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.budget-material-qty {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    padding: 8px 10px;
    text-align: right;
}

.budget-material-qty:focus {
    outline: none;
    border-color: var(--brand);
}

.budget-modal-actions {
    display: flex;
    gap: 10px;
}

.budget-clear-btn,
.budget-save-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.budget-clear-btn {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--muted);
}

.budget-save-btn {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    color: #fff;
}

@media (max-width: 760px) {
    .budget-modal {
        max-height: 95vh;
    }

    .budget-material-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .budget-material-ni {
        text-align: left;
    }
}

/* ============================= */
/* CHECKBOX ENCERRAR CHAMADO */
/* ============================= */

.activity-close-ticket-wrapper {
    width: 100%;
    margin: 8px 0;
}

.activity-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.activity-checkbox-label:hover {
    background: rgba(255, 193, 7, 0.15);
}

.activity-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.activity-checkbox:checked+.checkbox-custom {
    background: #ffc107;
    border-color: #ffc107;
}

.activity-checkbox:checked+.checkbox-custom::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 13px;
    color: var(--text);
}

/* ============================= */
/* ABA DE RDOs */
/* ============================= */

.rdo-loading,
.rdo-empty,
.rdo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: var(--muted);
}

.rdo-loading i,
.rdo-empty i,
.rdo-error i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.rdo-error {
    color: #ef4444;
}

.rdo-hint {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

.rdo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.rdo-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.rdo-item:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(122, 162, 255, 0.1);
}

.rdo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rdo-item-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rdo-item-date i {
    color: var(--brand);
}

.rdo-item-duration {
    font-size: 12px;
    color: var(--brand);
    background: rgba(122, 162, 255, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.rdo-item-participants {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rdo-generate-btn {
    width: 100%;
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.rdo-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 162, 255, 0.3);
}

.rdo-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botão Coletar Assinatura (pendente) */
.rdo-collect-signature-btn {
    width: 100%;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.rdo-collect-signature-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rdo-item.pending-signature {
    border-left: 3px solid #f59e0b;
}

.offline-tab-warning {
    display: none;
    width: 100%;
    min-height: 240px;
    border-radius: 14px;
    border: 1px solid rgba(122, 162, 255, 0.35);
    background: rgba(16, 22, 31, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 24px 20px;
}

.offline-tab-warning.visible {
    display: flex;
}

.offline-tab-warning i {
    font-size: 34px;
    color: #f59e0b;
}

.offline-tab-warning h3 {
    margin: 8px 0 2px;
    color: #f3f6fc;
    font-size: 20px;
}

.offline-tab-warning p {
    margin: 0 0 10px;
    color: var(--muted, #97a6b8);
}

.offline-tab-reload {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.atividade-view-mobile.offline-restricted-active>.offline-tab-warning,
.relatorios-view-mobile.offline-restricted-active>.offline-tab-warning,
.configuracoes-view-mobile.offline-restricted-active>.offline-tab-warning,
.atividade-view.offline-restricted-active>.offline-tab-warning,
.relatorios-view.offline-restricted-active>.offline-tab-warning,
.configuracoes-view.offline-restricted-active>.offline-tab-warning {
    display: flex;
}

.atividade-view-mobile.offline-restricted-active>:not(.offline-tab-warning),
.relatorios-view-mobile.offline-restricted-active>:not(.offline-tab-warning),
.configuracoes-view-mobile.offline-restricted-active>:not(.offline-tab-warning),
.atividade-view.offline-restricted-active>:not(.offline-tab-warning),
.relatorios-view.offline-restricted-active>:not(.offline-tab-warning),
.configuracoes-view.offline-restricted-active>:not(.offline-tab-warning) {
    display: none !important;
}

.sidebar-offline-status {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(122, 162, 255, 0.35);
    background: rgba(13, 18, 26, 0.9);
}

.sidebar-offline-status.hidden {
    display: none;
}

.sidebar-offline-status p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #d7e2ef;
    text-align: left;
}

.sidebar-offline-reload {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    cursor: pointer;
}
