* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            color: #212529;
            line-height: 1.5;
            min-height: 100vh;
        }

        /* Firefox specific fixes */
        @-moz-document url-prefix() {
            .control-btn {
                -moz-appearance: none;
                background-clip: padding-box;
            }
            
            .expand-btn {
                -moz-appearance: none;
            }
            
            button {
                -moz-appearance: none;
                border: none;
            }
            
            select {
                -moz-appearance: none;
            }
        }

        /* Ensure buttons work properly across browsers */
        button, .control-btn, .expand-btn, .submit-btn, .nav-btn {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border: none;
            background-clip: padding-box;
            font-family: inherit;
            line-height: inherit;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header */
        .header {
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 24px 32px;
            margin-bottom: 24px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .header h1 {
            font-size: 1.75rem;
            font-weight: 600;
            color: #2c3e50;
            margin: 0;
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .user-info {
            font-weight: 500;
            color: #495057;
        }

        .header-actions {
            display: flex;
            gap: 16px;
        }

        .header-actions a {
            color: #6c757d;
            text-decoration: none;
            padding: 8px 16px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .header-actions a:hover {
            background-color: #e9ecef;
            color: #495057;
        }

        /* Navigation */
        .navigation {
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: background-color 0.2s ease;
        }

        .nav-btn:hover {
            background: #0056b3;
            color: white;
        }

        .period-display {
            font-size: 1rem;
            font-weight: 600;
            color: #495057;
            padding: 10px 20px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
        }

        /* Dashboard Summary */
        .dashboard-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }

        .summary-card {
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
        }

        .summary-number {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .summary-label {
            font-size: 0.875rem;
            color: #6c757d;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-total .summary-number { color: #495057; }
        .summary-pending .summary-number { color: #dc3545; }
        .summary-approved .summary-number { color: #28a745; }
        .summary-rejected .summary-number { color: #fd7e14; }

        /* Global Controls */
        .global-controls {
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            -webkit-justify-content: flex-end;
            -moz-justify-content: flex-end;
            -ms-justify-content: flex-end;
            justify-content: flex-end;
        }

        .control-btn {
            display: -webkit-inline-flex;
            display: -moz-inline-flex;
            display: -ms-inline-flex;
            display: inline-flex;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            -webkit-transition: all 0.2s ease;
            -moz-transition: all 0.2s ease;
            -o-transition: all 0.2s ease;
            transition: all 0.2s ease;
            font-family: inherit;
            text-decoration: none;
            white-space: nowrap;
        }

        .control-btn:hover {
            background: #5a6268;
            -webkit-transform: translateY(-1px);
            -moz-transform: translateY(-1px);
            -ms-transform: translateY(-1px);
            transform: translateY(-1px);
        }

        .control-btn:active {
            -webkit-transform: translateY(0);
            -moz-transform: translateY(0);
            -ms-transform: translateY(0);
            transform: translateY(0);
        }

        .control-btn:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }

        /* Indicator Sections */
        .indicator-section {
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            margin-bottom: 24px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .indicator-header {
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            padding: 20px 24px;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: flex;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            -webkit-transition: background-color 0.2s ease;
            -moz-transition: background-color 0.2s ease;
            -o-transition: background-color 0.2s ease;
            transition: background-color 0.2s ease;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .indicator-header:hover {
            background: #e9ecef;
        }

        .indicator-icon {
            width: 40px;
            height: 40px;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: flex;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            align-items: center;
            -webkit-justify-content: center;
            -moz-justify-content: center;
            -ms-justify-content: center;
            justify-content: center;
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 1.1rem;
            -webkit-flex-shrink: 0;
            -moz-flex-shrink: 0;
            -ms-flex-shrink: 0;
            flex-shrink: 0;
        }

        .indicator-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #343a40;
            -webkit-flex: 1;
            -moz-flex: 1;
            -ms-flex: 1;
            flex: 1;
        }

        .indicator-stats {
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: flex;
            gap: 12px;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            align-items: center;
            -webkit-flex-wrap: wrap;
            -moz-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        }

        .stat-pending {
            background: #fff3cd;
            color: #856404;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .stat-resolved {
            background: #d4edda;
            color: #155724;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .indicator-count {
            background: #6c757d;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .expand-btn {
            background: none;
            border: none;
            color: #6c757d;
            font-size: 1rem;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            -webkit-transition: all 0.2s ease;
            -moz-transition: all 0.2s ease;
            -o-transition: all 0.2s ease;
            transition: all 0.2s ease;
            width: 32px;
            height: 32px;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: flex;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            align-items: center;
            -webkit-justify-content: center;
            -moz-justify-content: center;
            -ms-justify-content: center;
            justify-content: center;
            -webkit-flex-shrink: 0;
            -moz-flex-shrink: 0;
            -ms-flex-shrink: 0;
            flex-shrink: 0;
        }

        .expand-btn:hover {
            background: #dee2e6;
            color: #495057;
        }

        .expand-btn:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }

        .expand-btn[data-expanded="false"] i {
            -webkit-transform: rotate(-90deg);
            -moz-transform: rotate(-90deg);
            -ms-transform: rotate(-90deg);
            transform: rotate(-90deg);
        }

        .expand-btn[data-expanded="true"] i {
            -webkit-transform: rotate(0deg);
            -moz-transform: rotate(0deg);
            -ms-transform: rotate(0deg);
            transform: rotate(0deg);
        }

        .expand-btn i {
            -webkit-transition: transform 0.2s ease;
            -moz-transition: transform 0.2s ease;
            -o-transition: transform 0.2s ease;
            transition: transform 0.2s ease;
        }

        /* Indicator Content */
        .indicator-content {
            transition: all 0.3s ease;
        }

        /* Table */
        .table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
        }

        th {
            background: #f8f9fa;
            color: #495057;
            font-weight: 600;
            text-align: left;
            padding: 12px 16px;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #dee2e6;
            white-space: nowrap;
        }

        td {
            padding: 12px 16px;
            border-bottom: 1px solid #f1f3f4;
            vertical-align: top;
            font-size: 0.875rem;
        }

        tr:hover {
            background-color: #f8f9fa;
        }

        /* Status Rows */
        .sem-justificativa {
            border-left: 4px solid #dc3545;
        }

        .justificado {
            border-left: 4px solid #ffc107;
        }

        .aprovado {
            border-left: 4px solid #28a745;
        }

        .reprovado {
            border-left: 4px solid #fd7e14;
        }

        /* Resolved/Pending Items */
        .resolved-item {
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .resolved-item:hover {
            opacity: 1;
        }

        .pending-item {
            transition: opacity 0.3s ease;
        }

        /* Form Elements */
        textarea, select {
            width: 100%;
            font-family: inherit;
            font-size: 0.875rem;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            background: white;
            transition: border-color 0.2s ease;
        }

        textarea:focus, select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
        }

        textarea {
            resize: vertical;
            min-height: 60px;
        }

        /* Links */
        .ticket-link {
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
        }

        .ticket-link:hover {
            color: #0056b3;
            text-decoration: underline;
        }

        /* Status Badge */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .status-warning { background: #fff3cd; color: #856404; }
        .status-success { background: #d4edda; color: #155724; }
        .status-danger { background: #f8d7da; color: #721c24; }
        .status-info { background: #d1ecf1; color: #0c5460; }

        /* Submit Section */
        .submit-section {
            padding: 24px;
            text-align: center;
            background: #f8f9fa;
            border-top: 1px solid #dee2e6;
        }

        .submit-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 12px 32px;
            font-size: 0.95rem;
            font-weight: 500;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .submit-btn:hover {
            background: #0056b3;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 48px 24px;
            color: #6c757d;
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 16px;
            color: #adb5bd;
        }

        .empty-state h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: #495057;
        }

        /* Date formatting */
        .date-display {
            color: #6c757d;
            font-size: 0.8rem;
        }

        /* Animations */
        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(-10px);
            }
            to { 
                opacity: 1; 
                transform: translateY(0);
            }
        }

        .indicator-section {
            animation: fadeIn 0.3s ease;
        }

        .control-btn i,
        .expand-btn i,
        .submit-btn i,
        .nav-btn i {
            display: inline-block;
            vertical-align: middle;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Ensure gap spacing works in older browsers */
        .control-btn > * + * {
            margin-left: 8px;
        }

        .indicator-header > * + * {
            margin-left: 16px;
        }

        .indicator-stats > * + * {
            margin-left: 12px;
        }

        .global-controls > * + * {
            margin-left: 12px;
        }

        /* Reset gap for browsers that support it */
        @supports (gap: 8px) {
            .control-btn > * + *,
            .indicator-header > * + *,
            .indicator-stats > * + *,
            .global-controls > * + * {
                margin-left: 0;
            }
        }

        /* Scrollbar Styling */
        .table-container::-webkit-scrollbar {
            height: 8px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                padding: 16px;
            }

            .header-content {
                -webkit-flex-direction: column;
                -moz-flex-direction: column;
                -ms-flex-direction: column;
                flex-direction: column;
                -webkit-align-items: stretch;
                -moz-align-items: stretch;
                -ms-align-items: stretch;
                align-items: stretch;
            }

            .user-section {
                -webkit-flex-direction: column;
                -moz-flex-direction: column;
                -ms-flex-direction: column;
                flex-direction: column;
                -webkit-align-items: stretch;
                -moz-align-items: stretch;
                -ms-align-items: stretch;
                align-items: stretch;
                gap: 16px;
            }

            .header-actions {
                -webkit-justify-content: center;
                -moz-justify-content: center;
                -ms-justify-content: center;
                justify-content: center;
            }

            .navigation {
                -webkit-flex-direction: column;
                -moz-flex-direction: column;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 16px;
            }

            .dashboard-summary {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .global-controls {
                -webkit-justify-content: center;
                -moz-justify-content: center;
                -ms-justify-content: center;
                justify-content: center;
                -webkit-flex-wrap: wrap;
                -moz-flex-wrap: wrap;
                -ms-flex-wrap: wrap;
                flex-wrap: wrap;
            }

            .indicator-header {
                -webkit-flex-direction: column;
                -moz-flex-direction: column;
                -ms-flex-direction: column;
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }

            .indicator-stats {
                -webkit-justify-content: center;
                -moz-justify-content: center;
                -ms-justify-content: center;
                justify-content: center;
            }

            th, td {
                padding: 8px 6px;
                font-size: 0.75rem;
            }

            .table-container {
                font-size: 0.8rem;
            }

            .control-btn {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
        }

        @media (max-width: 480px) {
            .dashboard-summary {
                grid-template-columns: 1fr;
            }

            .indicator-header {
                padding: 16px;
            }

            .global-controls {
                -webkit-flex-direction: column;
                -moz-flex-direction: column;
                -ms-flex-direction: column;
                flex-direction: column;
            }
        }
        
        /* ESPECÍFICO APENAS para tabela de indicadores */
.indicadores-table {
    min-width: 1200px;
}

.indicadores-table th {
    padding: 8px 6px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.indicadores-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
}

.indicadores-table input[type="text"], 
.indicadores-table input[type="number"], 
.indicadores-table input[type="datetime-local"],
.indicadores-table textarea, 
.indicadores-table select {
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 3px;
}

.indicadores-table textarea {
    min-height: 40px;
    max-height: 80px;
}

.indicadores-table .submit-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* Larguras específicas para colunas de indicadores */
.indicadores-table th:nth-child(1), .indicadores-table td:nth-child(1) { width: 50px; min-width: 50px; }
.indicadores-table th:nth-child(2), .indicadores-table td:nth-child(2) { width: 80px; min-width: 80px; }
.indicadores-table th:nth-child(3), .indicadores-table td:nth-child(3) { width: 120px; min-width: 120px; }
.indicadores-table th:nth-child(4), .indicadores-table td:nth-child(4) { width: 140px; min-width: 140px; }
.indicadores-table th:nth-child(5), .indicadores-table td:nth-child(5) { width: 60px; min-width: 60px; text-align: center; }
.indicadores-table th:nth-child(6), .indicadores-table td:nth-child(6) { width: 180px; min-width: 180px; }
.indicadores-table th:nth-child(7), .indicadores-table td:nth-child(7) { width: 120px; min-width: 120px; }
.indicadores-table th:nth-child(8), .indicadores-table td:nth-child(8) { width: 80px; min-width: 80px; }
.indicadores-table th:nth-child(9), .indicadores-table td:nth-child(9) { width: 180px; min-width: 180px; }
.indicadores-table th:nth-child(10), .indicadores-table td:nth-child(10) { width: 120px; min-width: 120px; }
.indicadores-table th:nth-child(11), .indicadores-table td:nth-child(11) { width: 140px; min-width: 140px; }

/* Responsividade para indicadores */
@media (max-width: 1400px) {
    .indicadores-table { min-width: 1000px; }
}

@media (max-width: 768px) {
    .indicadores-table { min-width: 800px; }
    .indicadores-table th, .indicadores-table td { padding: 6px 4px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .indicadores-table { min-width: 600px; }
}

/* Layout base */
.layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar superior (se usar navbar.php) */
.navbar {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 auto 16px auto;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .brand { text-decoration: none; color: #2c3e50; font-weight: 600; }
.navbar .nav-btn { margin-left: 8px; }

/* Sidebar */
.sidebar {
    flex: 0 0 260px;
    width: 260px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 16px;
    height: fit-content;
}
.sidebar-section + .sidebar-section { margin-top: 16px; }
.sidebar h4 { margin-bottom: 8px; color: #343a40; }
.sidebar-menu { list-style: none; }
.sidebar-menu li + li { margin-top: 8px; }
.sidebar-menu a { text-decoration: none; color: #495057; }
.sidebar-form input[type="month"] { width: 100%; margin: 8px 0; }

/* Conteúdo principal */
.main-content {
    flex: 1 1 auto;
    min-width: 0; /* evita overflow em grids/tabelas */
}

/* Footer */
.footer {
    margin: 24px auto 0 auto;
    max-width: 1400px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    text-align: center;
}
.footer .footer-content a { color: #6c757d; text-decoration: none; }

/* Responsivo */
@media (max-width: 992px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
}

.link-like {
  background:none; border:none; padding:0; margin:0;
  color:inherit; text-decoration:underline; cursor:pointer; font:inherit;
}

    