/* CSS Padronizado para Todos os Módulos do Sistema */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cores do Sistema */
:root {
    /* Cores Primárias */
    --primary-color: #a59d52;
    --primary-hover: #0069cc;
    --primary-light: #e3f2fd;

    /* Cores Secundárias */
    --secondary-color: #6c757d;
    --secondary-hover: #495057;

    /* Cores de Estado */
    --success-color: #198754;
    --success-light: #d1edff;
    --warning-color: #ffc107;
    --warning-light: #fff3cd;
    --danger-color: #dc3545;
    --danger-light: #f8d7da;
    --info-color: #0dcaf0;
    --info-light: #cff4fc;

    /* Cores Neutras */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-dark: #212529;
    --text-muted: #6c757d;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 35px rgba(0, 0, 0, 0.2);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    --gradient-danger: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    --gradient-info: linear-gradient(135deg, #0dcaf0 0%, #087990 100%);

    /* Transições */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Layout Base dos Módulos */
.module-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 20px 0;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 0;
    border-bottom: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px 30px;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-title h1 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 32px;
    margin: 0;
}

.module-title .module-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}



.module-icon-trans {
    background: transparent !important;
    color: inherit !important;
}


.module-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 5px;
}

.module-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Cards e Widgets */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.widget-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.widget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.widget-card.success::before {
    background: var(--gradient-success);
}

.widget-card.warning::before {
    background: var(--gradient-warning);
}

.widget-card.danger::before {
    background: var(--gradient-danger);
}

.widget-card.info::before {
    background: var(--gradient-info);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    background: var(--gradient-primary);
}

.widget-content {
    margin-bottom: 15px;
}

.widget-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.widget-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.widget-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
}

.widget-trend.positive {
    color: var(--success-color);
}

.widget-trend.negative {
    color: var(--danger-color);
}

.widget-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.widget-action:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Botões Padronizados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gradient-info);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    color: var(--text-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--text-dark);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    text-decoration: none;
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-info {
    background: var(--gradient-info);
    color: var(--white);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    font-size: 24px;
}

.btn-floating:hover {
    transform: scale(1.1);
}

/* Tabelas */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
}

.table-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.table thead th {
    background: var(--light-gray);
    color: var(--text-dark);
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid var(--medium-gray);
}

.table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--light-gray);
    transition: var(--transition-fast);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Formulários */
.form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.invalid-feedback {
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 5px;
    font-weight: 500;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning-color);
    color: var(--text-dark);
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info-color);
    color: var(--info-color);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    gap: 5px;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge-info {
    background: var(--info-color);
    color: var(--white);
}

.badge-light {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 1px solid var(--medium-gray);
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-bar.bg-success {
    background: var(--gradient-success);
}

.progress-bar.bg-warning {
    background: var(--gradient-warning);
}

.progress-bar.bg-danger {
    background: var(--gradient-danger);
}

.progress-bar.bg-info {
    background: var(--gradient-info);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .loading {
    width: 50px;
    height: 50px;
    border-width: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .widget-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .module-header {
        padding: 20px 25px;
    }

    .module-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .module-actions {
        width: 100%;
        justify-content: stretch;
    }

    .module-actions .btn {
        flex: 1;
    }

    .widget-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .widget-card {
        padding: 20px;
    }

    .table-container {
        overflow-x: auto;
    }

    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .module-container {
        padding: 10px 0;
    }

    .module-header {
        padding: 15px;
    }

    .module-title h1 {
        font-size: 24px;
    }

    .module-title .module-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .widget-card {
        padding: 15px;
    }

    .widget-value {
        font-size: 28px;
    }

    .form-container {
        padding: 20px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px 15px;
    }
}

/* Animações de Entrada */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* Estados de Hover e Focus */
.interactive:hover {
    transform: translateY(-2px);
    transition: var(--transition-fast);
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Utilitários */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-none {
    display: none;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-start {
    justify-content: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.ml-3 {
    margin-left: 1rem;
}

.ml-4 {
    margin-left: 1.5rem;
}

.ml-5 {
    margin-left: 3rem;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* Estilos Específicos para Gestão */

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--warning-color);
    transition: var(--transition-fast);
    position: relative;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-card.urgent {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.service-card.normal {
    border-left-color: var(--info-color);
}

.service-priority {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-priority.urgent {
    background: var(--danger-color);
    color: var(--white);
}

.service-priority.high {
    background: var(--warning-color);
    color: var(--text-dark);
}

.service-priority.normal {
    background: var(--info-color);
    color: var(--white);
}

/* Deadline Indicators */
.deadline-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
}

.deadline-indicator.critical {
    color: var(--danger-color);
}

.deadline-indicator.warning {
    color: var(--warning-color);
}

.deadline-indicator.normal {
    color: var(--success-color);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--medium-gray);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Bulk Actions */
.bulk-actions {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.bulk-actions.show {
    display: flex;
}

.service-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
}

/* Responsáveis Cards */
.responsavel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.responsavel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.responsavel-card.disponivel::before {
    background: var(--gradient-success);
}

.responsavel-card.ocupado::before {
    background: var(--gradient-warning);
}

.responsavel-card.sobrecarregado::before {
    background: var(--gradient-danger);
}

.responsavel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.responsavel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 15px;
    margin-right: 1rem;
}

/* Status Indicators */
.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.disponivel {
    background: var(--success-color);
    color: var(--white);
}

.status-indicator.ocupado {
    background: var(--warning-color);
    color: var(--text-dark);
}

.status-indicator.sobrecarregado {
    background: var(--danger-color);
    color: var(--white);
}

/* Workload Progress */
.workload-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 10px 0;
}

.workload-progress {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.workload-progress.low {
    background: var(--gradient-success);
}

.workload-progress.medium {
    background: var(--gradient-warning);
}

.workload-progress.high {
    background: var(--gradient-danger);
}

/* Performance Indicators */
.performance-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.performance-stars {
    color: var(--warning-color);
}

.performance-score {
    font-weight: 600;
    color: var(--primary-color);
}

/* Specialty Tags */
.specialty-tag {
    display: inline-block;
    background: var(--info-light);
    color: var(--info-color);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
}

/* Region Badges */
.region-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

/* Atribuição Detalhada */
.service-info-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.responsavel-selection-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--success-color);
}

.responsavel-candidate {
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.responsavel-candidate:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.responsavel-candidate.selected {
    border-color: var(--success-color);
    background: var(--success-light);
}

.responsavel-candidate.not-available {
    border-color: var(--danger-color);
    background: var(--danger-light);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Configurações */
.config-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    overflow: hidden;
}

.config-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-content {
    padding: 25px;
}

.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.config-label {
    flex: 1;
    margin-right: 20px;
}

.config-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.config-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.3;
}

.config-control {
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weight-slider {
    width: 150px;
    margin: 0 10px;
}

.weight-value {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Regras e Configurações */
.rule-item {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--info-color);
}

.rule-condition {
    font-family: monospace;
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--medium-gray);
    margin: 10px 0;
}

.notification-channel {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--medium-gray);
}

.notification-channel.active {
    border-color: var(--success-color);
    background: var(--success-light);
}

/* Logs de Auditoria */
.log-entry {
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-level {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.log-level.info {
    background: var(--info-color);
    color: var(--white);
}

.log-level.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.log-level.error {
    background: var(--danger-color);
    color: var(--white);
}

.log-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 150px;
}

.log-details {
    flex: 1;
    font-size: 14px;
}

/* Relatórios */
.report-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.report-metric {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    background: var(--light-gray);
    margin-bottom: 15px;
}

.report-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.report-metric-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navegação por separadores */
.nav-separator {
    height: 1px;
    background: var(--medium-gray);
    margin: 15px 0;
    list-style: none;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.quick-stat {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.quick-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

/* Performance Stars */
.performance-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: var(--warning-color);
    font-size: 14px;
}

.star.empty {
    color: var(--medium-gray);
}

/* Metric Items */
.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--white);
}

.metric-icon.success {
    background: var(--success-color);
}

.metric-icon.warning {
    background: var(--warning-color);
}

.metric-icon.danger {
    background: var(--danger-color);
}

.metric-icon.info {
    background: var(--info-color);
}

/* =======================================================================
   ATRIBUIÇÃO DETALHADA STYLES
   ======================================================================= */
.responsavel-selection-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--success-color)
}

.responsavel-candidate {
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.responsavel-candidate:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.responsavel-candidate.selected {
    border-color: var(--success-color);
    background: var(--success-light);
}

.responsavel-candidate.not-available {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--danger-color);
    background: var(--danger-light);
}

.compatibility-score {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius-lg);
    font-weight: bold;
    font-size: 14px;
}

.compatibility-score.high {
    background: var(--gradient-success);
}

.compatibility-score.medium {
    background: var(--gradient-warning);
}

.compatibility-score.low {
    background: var(--gradient-danger);
}

.criteria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.criteria-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.criteria-score {
    width: 100px;
    height: 6px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 15px;
}

.criteria-progress {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.criteria-progress.excellent {
    background: var(--gradient-success);
}

.criteria-progress.good {
    background: var(--gradient-info);
}

.criteria-progress.fair {
    background: var(--gradient-warning);
}

.criteria-progress.poor {
    background: var(--gradient-danger);
}

.availability-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.calendar-day.available {
    background: var(--success-light);
    color: var(--success-color);
}

.calendar-day.busy {
    background: var(--warning-light);
    color: var(--warning-color);
}

.calendar-day.unavailable {
    background: var(--danger-light);
    color: var(--danger-color);
}

.algorithm-suggestion {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid var(--info-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.suggestion-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 15px;
}

.service-complexity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.complexity-indicator {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.complexity-indicator.baixa {
    background: var(--success-light);
    color: var(--success-color);
}

.complexity-indicator.media {
    background: var(--warning-light);
    color: var(--warning-color);
}

.complexity-indicator.alta {
    background: var(--danger-light);
    color: var(--danger-color);
}

.historical-data {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 15px;
}

/* =======================================================================
   AUDITORIA STYLES
   ======================================================================= */

.filter-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.log-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition-fast);
    cursor: pointer;
}

.log-entry:hover {
    background: var(--light-gray);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.log-icon.info {
    background: var(--info-color);
}

.log-icon.warning {
    background: var(--warning-color);
}

.log-icon.error {
    background: var(--danger-color);
}

.log-icon.success {
    background: var(--success-color);
}

.log-content {
    flex: 1;
    min-width: 0;
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.log-action {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 10px;
}

.log-user {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 10px;
}

.log-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-details {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.log-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.log-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.level-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.level-badge.info {
    background: var(--info-light);
    color: var(--info-color);
}

.level-badge.warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.level-badge.error {
    background: var(--danger-light);
    color: var(--danger-color);
}

.level-badge.success {
    background: var(--success-light);
    color: var(--success-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
}

.stat-card.warning {
    border-top-color: var(--warning-color);
}

.stat-card.error {
    border-top-color: var(--danger-color);
}

.stat-card.success {
    border-top-color: var(--success-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.export-section {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.detail-modal.show {
    display: flex;
}

.detail-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.code-block {
    background: var(--dark-gray);
    color: #f8f8f2;
    padding: 15px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 15px 0;
}

.audit-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.audit-filter-chip:hover,
.audit-filter-chip.active {
    background: var(--primary-color);
    color: var(--white);
}

.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* =======================================================================
   RELATÓRIOS STYLES
   ======================================================================= */

.tab-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.nav-tabs {
    background: var(--light-gray);
    border: none;
    padding: 0;
    margin: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 15px 25px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
}

.nav-tabs .nav-link.active {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-bottom: 3px solid var(--primary-color);
}

.chart-container {
    height: 400px;
    position: relative;
    margin: 25px 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    transition: var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;

    &.small {
        font-size: 25px;
    }
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-trend {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.metric-trend.positive {
    color: var(--success-color);
}

.metric-trend.negative {
    color: var(--danger-color);
}

.data-table {
    margin-top: 25px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.performance-bar {
    height: 20px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 5px 0;
}

.performance-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.kpi-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

/* =======================================================================
                            Select2 styles
   ======================================================================= */

/* Container geral do select2 */
.select2-container {
    width: 100% !important;
    /* força ocupar a largura do form-control */
    font-size: 1rem;
}

/* Caixa do select (quando fechado) */
.select2-container .select2-selection--single {
    height: 3rem !important;
    /* mesmo tamanho do form-control padrão bootstrap */
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 7px 8px;
    background-color: var(--white);
    transition: all 0.2s ease-in-out;
}


/* Texto dentro do select */
.select2-container .select2-selection__rendered {
    line-height: 28px;
    color: var(--dark-gray);
    font-weight: 500;
}

.select2-search--dropdown .select2-search__field {
    padding: 6px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    background-color: var(--light-gray);
    transition: all 0.2s ease-in-out;
}

/* Setinha do lado direito */
.select2-container .select2-selection__arrow {
    height: 36px;
    right: 8px;
}

/* Hover/focus da caixa */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    border-color: var(--info-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

/* Dropdown (quando abre a lista) */
.select2-container .select2-dropdown {
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cada opção */
.select2-container .select2-results__option {
    padding: 8px 12px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Hover da opção */
.select2-container .select2-results__option--highlighted {
    background-color: var(--primary-hover) !important;
    color: var(--danger-light) !important;
}

/* Opção selecionada */
.select2-container .select2-results__option[aria-selected="true"] {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    font-weight: 600;
}

.nav-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.card-header {
    margin-bottom: 15px;
}

.service-actions {
    display: flex;
    justify-content: space-between;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* =======================================================================
   ACTIVITY TIMELINE STYLES
   ======================================================================= */

.activity-timeline {
    position: relative;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--success-color));
}

/* =======================================================================
   FORM STYLES
   ======================================================================= */

.font-monospace {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9rem;
}

/* =======================================================================
   REJECTION AND FORM STYLES
   ======================================================================= */

.rejection-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--danger-color);
}

.service-summary {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--medium-gray);
}

.reason-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--white);
}

.reason-option:hover {
    border-color: var(--danger-color);
    background: var(--danger-light);
}

.reason-option.selected {
    border-color: var(--danger-color);
    background: var(--danger-light);
}

.reason-radio {
    margin-right: 15px;
    margin-top: 2px;
}

.reason-content h6 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.reason-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.custom-reason-input {
    width: 100%;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
    resize: vertical;
    min-height: 80px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.responsavel-card-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
}

/* =======================================================================
   HOME PAGE STYLES
   ======================================================================= */

/* Notice Board */
.notice-board {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    overflow: hidden;
}

.notice-board-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-board-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.notice-board-content {
    max-height: 400px;
    overflow-y: auto;
}

.notice-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition-fast);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: var(--light-gray);
}

.notice-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.notice-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.notice-content {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.notice-priority {
    margin-top: 10px;
}

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

.notice-empty i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Services Section */
.services-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    overflow: hidden;
}

.services-header {
    background: linear-gradient(135deg, var(--info-color) 0%, #087990 100%);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.services-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.services-content {
    max-height: 400px;
    overflow-y: auto;
}


.service-info {
    flex: 1;
}

.service-company {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.service-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.service-assigned {
    font-weight: 500;
    color: var(--primary-color);
}

.service-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    gap: 5px;
}

.status-assigned {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-executing {
    background: var(--success-light);
    color: var(--success-color);
}

.status-development {
    background: var(--info-light);
    color: var(--info-color);
}

.status-report {
    background: var(--primary-light);
    color: var(--primary-color);
}

.status-pending {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

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

.services-empty i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Quick Actions */
.quick-actions {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    margin-bottom: 25px;
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.action-card {
    display: block;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    text-align: center;
    height: 100%;
    margin-bottom: 15px;
}

.action-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.2rem;
}

.action-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =======================================================================
   TIMELINE COMPONENT STYLES
   ======================================================================= */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--medium-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition-normal);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--medium-gray);
    z-index: 1;
}

.timeline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.timeline-item.completed::before {
    background-color: var(--success-color);
    box-shadow: 0 0 0 2px var(--success-light);
}

.timeline-item.current::before {
    background-color: var(--primary-color);
    animation: timeline-pulse 2s infinite;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-item.pending::before {
    background-color: var(--secondary-color);
    opacity: 0.6;
}

.timeline-item.milestone::before {
    background-color: var(--warning-color);
    border-color: var(--warning-light);
    width: 16px;
    height: 16px;
    left: -1.875rem;
}

.timeline-item.milestone.completed::before {
    background-color: var(--success-color);
    border-color: var(--success-light);
}

.timeline-item.danger::before {
    background-color: var(--danger-color);
    box-shadow: 0 0 0 2px var(--danger-light);
}

@keyframes timeline-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(165, 157, 82, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(165, 157, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(165, 157, 82, 0);
    }
}

/* =======================================================================
   INFO GROUP STYLES
   ======================================================================= */

.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-group span,
.info-group p {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.info-group a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-group a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* =======================================================================
   SERVICE BADGES STYLES
   ======================================================================= */

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.service-badges .status-indicator,
.service-badges .level-badge,
.service-badges .deadline-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status indicators */
.status-indicator.status-atribuido {
    background-color: var(--info-light);
    color: var(--info-color);
}

.status-indicator.status-em_desenvolvimento {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.status-indicator.status-em_execucao {
    background-color: var(--success-light);
    color: var(--success-color);
}

.status-indicator.status-aguardando_relatorio {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.status-indicator.status-concluido {
    background-color: var(--success-light);
    color: var(--success-color);
}

.status-indicator.status-cancelado {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

/* Priority badges */
.level-badge.priority-baixa {
    background-color: var(--success-light);
    color: var(--success-color);
}

.level-badge.priority-media {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.level-badge.priority-alta {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.level-badge.priority-urgente {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Deadline indicators */
.deadline-indicator.urgent {
    background-color: var(--danger-color);
    color: var(--white);
    animation: blink 1s infinite;
}

.deadline-indicator.warning {
    background-color: var(--warning-color);
    color: var(--white);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.row-space-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* =======================================================================
   PROCESS STEPS STYLES
   ======================================================================= */

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--medium-gray);
    background: var(--white);
    transition: var(--transition-fast);
    position: relative;
}

.step-item.completed {
    border-color: var(--success-color);
    background: var(--success-light);
    transform: none;
}

.step-item.current {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.step-item.pending {
    border-color: var(--medium-gray);
    background: var(--light-gray);
    opacity: 0.7;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-item.completed .step-number {
    background: var(--success-color);
    color: var(--white);
}

.step-item.current .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.step-item.pending .step-number {
    background: var(--secondary-color);
    color: var(--white);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h6 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.step-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.step-item.completed .step-content p {
    color: var(--success-color);
}

.step-item.current .step-content p {
    color: var(--primary-color);
}

.step-item.pending .step-content p {
    color: var(--text-muted);
}

.step-action {
    margin-left: 15px;
    flex-shrink: 0;
}

.step-action .btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 0;
}

/* Responsive adjustments for process steps */
@media (max-width: 768px) {
    .step-item {
        padding: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 15px;
    }

    .step-content h6 {
        font-size: 14px;
    }

    .step-content p {
        font-size: 13px;
    }

    .step-action {
        margin-left: 10px;
    }

    .step-action .btn {
        min-width: 35px;
        height: 35px;
    }
}