/* === LAYOUT LARGO E RESPONSIVO === */
.container {
    width: 90%;
    max-width: none;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* === RESPONSIVIDADE APRIMORADA === */
@media (max-width: 1400px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 8px;
    }
}

/* === BANNER PÚBLICO DISCRETO === */
.public-banner {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    text-align: center;
}

.banner-title {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 8px;
    font-weight: 600;
}

.banner-title i {
    margin-right: 10px;
    color: #3b82f6;
}

.banner-subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 15px;
    font-weight: 400;
}

.banner-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-item i {
    color: #6366f1;
}

/* === HEADER PÚBLICO === */
.header-public {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-bottom: 3px solid #1d4ed8;
}

.header-public .brand {
    color: white;
}

.header-public .brand:hover {
    color: #dbeafe;
}

.header-public .nav-link {
    color: white;
}

.header-public .nav-link:hover {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
}

/* === ESTILOS DE COMPARTILHAMENTO === */
.shared-badge {
    background: #ddd6fe;
    color: #5b21b6;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 500;
    margin-left: 4px;
    display: inline-block;
    text-transform: uppercase;
}

.activity-row.compartilhada {
    background: linear-gradient(135deg, #fefbff 0%, #f3f4f6 100%);
    border-left: 3px solid #8b5cf6 !important;
}

.activity-row.compartilhada:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.compartilhamento-info {
    font-size: 0.75rem;
    color: #8b5cf6;
    margin-top: 4px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.compartilhamento-info i {
    font-size: 0.7rem;
}

/* === ESTILO PARA DESCRIÇÃO EXPANDIDA === */
.description-cell {
    max-width: none;
}

.description-preview {
    color: #4a5568;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.expand-icon {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
    float: right;
}

.tr-expanded .expand-icon {
    transform: rotate(180deg);
}

/* === LINHA DE EXPANSÃO === */
.expansion-row {
    display: none;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
}

.expansion-row.show {
    display: table-row;
}

.expansion-content {
    padding: 20px;
    border-left: 4px solid #1e3a8a;
    background: white;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expansion-content h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.expansion-content .description-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.expansion-content .author-info {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.3rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .banner-info {
        flex-direction: column;
        gap: 10px;
    }

    .info-item {
        justify-content: center;
    }

    .public-banner {
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Tabela mobile otimizada para 5 colunas */
    .day-activities {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin: 5px 0;
        background: white;
        padding-bottom: 5px;
    }

    .activities-table {
        min-width: 800px !important;
        width: 800px !important;
        font-size: 0.8rem;
        table-layout: fixed;
    }

    .activities-table th:nth-child(1),
    .activities-table td:nth-child(1) {
        width: 80px;
    }

    .activities-table th:nth-child(2),
    .activities-table td:nth-child(2) {
        width: 80px;
    }

    .activities-table th:nth-child(3),
    .activities-table td:nth-child(3) {
        width: 120px;
    }

    .activities-table th:nth-child(4),
    .activities-table td:nth-child(4) {
        width: 420px;
        /* Mais espaço para descrição */
    }

    .activities-table th:nth-child(5),
    .activities-table td:nth-child(5) {
        width: 140px !important; /* Reduzido de 210px para 140px */
        min-width: 140px !important;
    }

    .activities-table th,
    .activities-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Garantir que local seja sempre exibido completo em mobile */
    .local-cell {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.3 !important;
        font-size: 0.75rem !important;
        vertical-align: top !important;
    }

    .description-cell {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .description-preview {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.3;
        font-size: 0.75rem;
    }

    /* Indicador de scroll */
    .day-activities::after {
        content: "← Deslize para ver todas as colunas →";
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: #64748b;
        padding: 8px 5px 5px 5px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border-top: 1px solid #e2e8f0;
        font-style: italic;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.1rem;
    }

    .banner-title i {
        margin-right: 8px;
    }

    .public-banner {
        padding: 12px;
        margin-bottom: 8px;
    }

    .activities-table {
        min-width: 720px !important;
        width: 720px !important;
        font-size: 0.75rem;
    }

    .activities-table th:nth-child(1),
    .activities-table td:nth-child(1) {
        width: 70px;
    }

    .activities-table th:nth-child(2),
    .activities-table td:nth-child(2) {
        width: 70px;
    }

    .activities-table th:nth-child(3),
    .activities-table td:nth-child(3) {
        width: 100px;
    }

    .activities-table th:nth-child(4),
    .activities-table td:nth-child(4) {
        width: 390px;
        /* Mais espaço para descrição */
    }

    .activities-table th:nth-child(5),
    .activities-table td:nth-child(5) {
        width: 120px !important; /* Reduzido de 180px para 120px */
        min-width: 120px !important;
    }

    .activities-table th,
    .activities-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }

    /* Garantir que local seja sempre exibido completo */
    .local-cell {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.2 !important;
        font-size: 0.7rem !important;
        vertical-align: top !important;
    }

    .description-preview {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Mobile - Compartilhamento */
    .shared-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .compartilhamento-info {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    .activity-row.compartilhada {
        border-left-width: 2px !important;
    }
}

/* === TELAS MUITO PEQUENAS === */
@media (max-width: 320px) {
    .shared-badge {
        display: none;
        /* Ocultar em telas muito pequenas */
    }

    .compartilhamento-info {
        font-size: 0.6rem;
    }
}

/* === MODAL SOBRE - EXATAMENTE IGUAL À AGENDA LOGADA === */

/* Modal overlay - inicialmente oculto */
#aboutModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
}

.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    margin: 20px;
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.modal-header h2::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.4rem;
}

.close-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-left: 15px;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 15px;
}

.modal-intro {
    text-align: center;
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.modal-intro h3 {
    color: #1e3a8a;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-intro p {
    color: #475569;
    margin: 0;
    line-height: 1.4;
    font-size: 0.85rem;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer .footer-text {
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

.modal-footer button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
    flex-shrink: 0;
}

.modal-footer button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.4);
}

.modal-footer small {
    display: none;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-content-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-section {
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-section h4 {
    color: #1e3a8a;
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.modal-section ul {
    margin: 0;
    padding-left: 15px;
    color: #4a5568;
}

.modal-section li {
    margin-bottom: 2px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.modal-section p {
    color: #4a5568;
    line-height: 1.4;
    margin: 0;
    font-size: 0.8rem;
}

.modal-images {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px;
    background: #f8fafc;
    border-radius: 4px;
    margin-bottom: 8px;
}

.modal-images img {
    max-width: 20%;
    max-height: 20%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-content-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-intro {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .modal-intro h3 {
        font-size: 1rem;
    }
    
    .modal-images img {
        max-width: 20%;
        max-height: 15%
    }
    
    .modal-footer {
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .footer-text {
        font-size: 0.7rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        margin: 5px;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .close-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .modal-body {
        padding: 10px;
    }
    
    .modal-intro {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .modal-intro h3 {
        font-size: 0.95rem;
    }
    
    .modal-intro p {
        font-size: 0.8rem;
    }
    
    .modal-footer {
        padding: 6px 10px;
    }
    
    .modal-section h4 {
        font-size: 0.85rem;
    }
    
    .modal-section li,
    .modal-section p {
        font-size: 0.75rem;
    }
}

/* === CONTROLES DA AGENDA - EXATAMENTE IGUAL À AGENDA LOGADA === */
.controls-section {
    margin-top: 0;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 15px;
    overflow: hidden;
}

.controls-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0 !important;
    gap: 10px;
    flex-wrap: nowrap !important; /* NUNCA quebrar linha */
    min-height: 40px;
    width: 100%;
}

.controls-title {
    font-size: 18px !important; /* Fonte SEMPRE no tamanho padrão */
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1; /* Permitir encolhimento */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.controls-buttons {
    display: flex !important;
    gap: 8px;
    align-items: center !important;
    flex-wrap: nowrap !important; /* NUNCA quebrar linha */
    flex-shrink: 0 !important; /* NUNCA diminuir */
    justify-content: flex-end !important; /* SEMPRE à direita */
    margin-left: auto !important; /* Forçar para a direita */
}

/* Botões de controle - Base */
.btn-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important; /* Centralizar conteúdo */
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.btn-control i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.btn-control:hover {
    background: #1e40af;
    border-color: #1d4ed8;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-control.active {
    background: #059669;
    border-color: #047857;
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-control.active:hover {
    background: #047857;
    border-color: #065f46;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Indicador de estado */
.btn-control .state-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    margin-left: 4px !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
}

.btn-control .state-indicator.remembered {
    opacity: 1 !important;
}

/* === RESPONSIVIDADE DOS BOTÕES DE CONTROLE === */

/* Desktop padrão - texto completo */
@media (min-width: 769px) {
    .btn-control {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 42px !important;
    }
    
    .btn-control span:not(.state-indicator) {
        display: inline !important;
        font-size: 14px !important;
    }
    
    .controls-title {
        font-size: 18px !important;
        max-width: none !important;
    }
}

/* Tablet - texto reduzido */
@media (max-width: 768px) and (min-width: 641px) {
    .controls-header {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    
    .controls-title {
        font-size: 16px !important;
        max-width: 60% !important;
    }
    
    .btn-control {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }
    
    .btn-control span:not(.state-indicator) {
        display: inline !important;
        font-size: 11px !important;
    }
}

/* Mobile médio - texto ainda menor */
@media (max-width: 640px) and (min-width: 481px) {
    .controls-header {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    
    .controls-title {
        font-size: 15px !important;
        max-width: 55% !important;
    }
    
    .btn-control {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 34px !important;
        gap: 4px !important;
    }
    
    .btn-control span:not(.state-indicator) {
        display: inline !important;
        font-size: 10px !important;
    }
    
    .btn-control i {
        font-size: 12px !important;
    }
}

/* Mobile pequeno - apenas ícones, mas título mais visível */
@media (max-width: 480px) {
    .controls-header {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    
    .controls-title {
        font-size: 14px !important;
        max-width: 65% !important; /* Aumentado para mostrar mais texto */
        line-height: 1.2 !important;
        word-break: break-word !important; /* Permitir quebra de palavra se necessário */
    }
    
    .btn-control {
        padding: 8px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        min-width: 36px !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .btn-control span:not(.state-indicator) {
        display: none !important;
    }
    
    .btn-control i {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    .btn-control .state-indicator {
        top: 2px !important;
        right: 2px !important;
        width: 4px !important;
        height: 4px !important;
    }
}

/* Mobile muito pequeno - título ainda mais visível */
@media (max-width: 360px) {
    .controls-title {
        font-size: 13px !important;
        max-width: 60% !important; /* Aumentado para mostrar mais do título */
        line-height: 1.1 !important;
        word-break: break-word !important;
    }
    
    .btn-control {
        padding: 6px !important;
        min-height: 32px !important;
        min-width: 32px !important;
    }
    
    .btn-control i {
        font-size: 12px !important;
    }
}

/* Telas extremamente pequenas - máximo do título possível */
@media (max-width: 320px) {
    .controls-header {
        gap: 4px !important;
    }
    
    .controls-title {
        font-size: 12px !important;
        max-width: 55% !important; /* Aumentado significativamente */
        line-height: 1.1 !important;
        word-break: break-word !important;
        /* Permitir quebra em duas linhas se necessário */
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    .btn-control {
        padding: 5px !important;
        min-height: 30px !important;
        min-width: 30px !important;
    }
    
    .btn-control i {
        font-size: 11px !important;
    }
}

/* === TRANSIÇÕES SEÇÃO === */
.toggle-section {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.toggle-section.hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transform: translateY(-10px);
    display: none;
}

.toggle-section.visible {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.toggle-section .section {
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Seção de filtros com estilo discreto */
.filter-section {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
}

/* === SOBRESCRITA ESPECÍFICA PARA CONFLITOS === */
@media (max-width: 768px) {
    .controls-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        margin-bottom: 0 !important;
    }

    .controls-title {
        font-size: 18px !important; /* Manter tamanho original SEMPRE */
        flex: 0 1 auto !important;
        min-width: 0 !important;
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    .controls-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
}

/* === ESTILOS GLOBAIS PARA CÉLULAS DE LOCAL === */
.local-cell {
    color: #64748b;
    font-size: 0.85rem;
    /* SEMPRE permitir quebra de linha para locais */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
    vertical-align: top !important;
}

/* === REDUÇÃO MÁXIMA DA LARGURA DA COLUNA STATUS === */
.activities-table th:nth-child(5),
.activities-table td:nth-child(5) {
    width: 180px !important; /* Reduzido de 250px para 180px */
    min-width: 180px !important;
}

/* Para telas desktop grandes - reduzir significativamente */
@media (min-width: 1400px) {
    .activities-table {
        min-width: 1200px;
    }
    
    .activities-table th:nth-child(4),
    .activities-table td:nth-child(4) {
        width: 490px;
        min-width: 490px;
    }
    
    .activities-table th:nth-child(5),
    .activities-table td:nth-child(5) {
        width: 200px !important; /* Reduzido de 280px para 200px */
        min-width: 200px !important;
    }
}

/* Para tablets - reduzir drasticamente */
@media (max-width: 1024px) {
    .activities-table th:nth-child(5),
    .activities-table td:nth-child(5) {
        width: 160px !important; /* Reduzido de 230px para 160px */
        min-width: 160px !important;
    }
}