/* 
==============================================
ÁREA DO CLIENTE - JURÍDICO360
Arquivo de estilos principais
==============================================
*/

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
  }
  
  /* Estilos Globais */
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  .btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: var(--transition);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
  }
  
  .card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  /* Layout Principal */
  .client-portal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .client-header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .tenant-brand {
    display: flex;
    align-items: center;
  }
  
  .tenant-logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .tenant-name {
    margin-left: 0.75rem;
    font-weight: 600;
    font-size: 1.2rem;
  }
  
  .user-actions {
    display: flex;
    align-items: center;
  }
  
  .notification-icon {
    position: relative;
    margin-right: 1.5rem;
    color: var(--gray-600);
  }
  
  .notification-icon i {
    font-size: 1.25rem;
  }
  
  .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Override for status badges in tickets table and modals */
  .badge.badge-primary,
  .badge.badge-warning,
  .badge.badge-success,
  .badge.badge-secondary,
  .badge.badge-info,
  .badge.badge-danger {
    position: static;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    width: auto;
    height: auto;
    top: auto;
    right: auto;
  }
  
  .badge.badge-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .badge.badge-warning {
    background-color: var(--warning-color);
    color: white;
  }
  
  .badge.badge-success {
    background-color: var(--success-color);
    color: white;
  }
  
  .badge.badge-secondary {
    background-color: var(--gray-500);
    color: white;
  }
  
  .badge.badge-info {
    background-color: var(--info-color);
    color: white;
  }
  
  .badge.badge-danger {
    background-color: var(--danger-color);
    color: white;
  }
  
  .user-info {
    display: flex;
    align-items: center;
  }
  
  .user-name {
    margin-right: 0.75rem;
    font-weight: 500;
  }
  
  .user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
  }
  
  /* Sidebar */
  .client-portal-container {
    display: flex;
    flex: 1;
  }
  
  .sidebar {
    width: 250px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease;
  }
  
  .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sidebar-header .logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
  }
  
  .sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
  }
  
  .sidebar-menu {
    padding: 1rem 0;
  }
  
  .sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-menu li {
    margin-bottom: 0.25rem;
  }
  
  .sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    transition: var(--transition);
  }
  
  .sidebar-menu a:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
  }
  
  .sidebar-menu li.active a {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
  }
  
  .sidebar-menu a i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
  }
  
  /* Conteúdo Principal */
  .main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    min-height: 88vh;
  }
  
  /* Estilos de Login */
  .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
  }
  
  .login-box {
    width: 100%;
    max-width: 480px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
  }
  
  .login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
  }
  
  .login-header h2 {
    margin: 0 0 0.5rem;
    font-weight: 600;
  }
  
  .login-header p {
    margin: 0;
    opacity: 0.9;
  }
  
  .login-form {
    padding: 2rem;
  }
  
  .login-form .form-group {
    margin-bottom: 1.25rem;
  }
  
  .login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .login-actions {
    margin-top: 1.5rem;
  }
  
  .login-footer {
    padding: 0 2rem 2rem;
  }
  
  .security-note {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1.5rem;
  }
  
  .security-note i {
    margin-right: 0.5rem;
    color: var(--success-color);
  }
  
  /* Dashboard */
  .dashboard-header {
    margin-bottom: 1.5rem;
  }
  
  .dashboard-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .dashboard-header p {
    margin: 0;
    color: var(--text-muted);
  }
  
  .dashboard-summary {
    margin-bottom: 2rem;
  }
  
  .summary-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
  }
  
  .summary-card:hover {
    transform: translateY(-3px);
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }
  
  .card-icon i {
    font-size: 1.5rem;
  }
  
  .card-info h3 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  
  .counter {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
  }
  
  .dashboard-widgets .row {
    margin-bottom: 1.5rem;
  }
  
  .widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
  }
  
  /* Melhorias específicas para desktop */
  @media (min-width: 768px) {
    .dashboard-widgets .row {
      display: flex;
      align-items: stretch;
    }
    
    .dashboard-widgets .col-md-6 {
      display: flex;
      flex-direction: column;
    }
    
    .widget {
      display: flex;
      flex-direction: column;
      min-height: 400px;
    }
    
    .widget:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .widget-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .processes-list,
    .documents-list {
      flex: 1;
      overflow-y: auto;
      max-height: 300px;
    }
  }
  
  .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .widget-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .view-all {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .widget-content {
    padding: 1.25rem;
  }
  
  /* Timeline para andamentos */
  .timeline {
    position: relative;
    padding-left: 1.5rem;
  }
  
  .timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-200);
  }
  
  .timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .timeline-marker i {
    font-size: 0.5rem;
    color: var(--primary-color);
    background-color: white;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .timeline-content {
    background-color: var(--gray-100);
    border-radius: 0.375rem;
    padding: 1rem;
  }
  
  .timeline-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .timeline-text {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
  }
  
  .timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
  }
  
  .timeline-date i {
    margin-right: 0.25rem;
  }
  
  /* Lista de Contratos */
  .contracts-list {
    margin-top: 1rem;
  }
  
  .contract-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  /* Lista de Processos */
  .processes-list {
    margin-top: 1rem;
  }
  
  .process-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .process-item:last-child {
    border-bottom: none;
  }
  
  .process-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
  }
  
  .process-icon i {
    font-size: 1.25rem;
    color: var(--gray-600);
  }
  
  .process-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .process-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
  }
  
  .process-subject {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
    line-height: 1.4;
    text-align: left;
  }
  
  .process-stage {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    text-align: left;
  }
  
  .process-stage i {
    margin-right: 0.25rem;
  }
  
  .process-action {
    margin-left: 1rem;
  }
  
  .process-action {
    margin-left: 1rem;
  }
  
  .contract-item:last-child {
    border-bottom: none;
  }
  
  .contract-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }
  
  .contract-icon i {
    font-size: 1.125rem;
  }
  
  .contract-info {
    flex: 1;
  }
  
  .contract-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .contract-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
  }
  
  .contract-date i {
    margin-right: 0.25rem;
  }
  
  .status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .status-badge.signed {
    background-color: var(--success-color);
    color: white;
  }
  
  .status-badge.unsigned {
    background-color: var(--warning-color);
    color: white;
  }
  
  .contract-action {
    margin-left: 1rem;
  }
  
  /* Estado vazio */
  .empty-state {
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .empty-state-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
  }
  
  .empty-state-icon i {
    opacity: 0.6;
  }
  
  .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }
  
  /* Footer */
  .client-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
  }
  
  .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  
  .powered-by {
    font-size: 0.875rem;
  }
  
  /* Detalhes do Contrato */
  .contract-details-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
  }
  
  .back-link {
    margin-bottom: 1.5rem;
  }
  
  .contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  
  .contract-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .contract-info-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .info-group {
    margin-bottom: 1rem;
  }
  
  .info-group:last-child {
    margin-bottom: 0;
  }
  
  .info-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
  }
  
  .info-group p {
    margin: 0;
    font-weight: 500;
  }
  
  .contract-installments {
    margin-bottom: 2rem;
  }
  
  .contract-installments h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .payment-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .payment-status.paid {
    background-color: var(--success-color);
    color: white;
  }
  
  .payment-status.pending {
    background-color: var(--warning-color);
    color: white;
  }
  
  .payment-status.overdue {
    background-color: var(--danger-color);
    color: white;
  }
  
  .contract-document {
    margin-top: 2rem;
  }
  
  .contract-document h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .document-actions {
    display: flex;
    gap: 1rem;
  }
  
  /* Lista de Contratos (página completa) */
  .contracts-list-full {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contract-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
  }
  
  .contract-card:hover {
    transform: translateY(-3px);
  }
  
  .contract-summary {
    flex: 1;
  }
  
  .contract-title {
    margin-bottom: 0.75rem;
  }
  
  .contract-title h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .contract-type {
    display: inline-block;
    background-color: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .contract-meta {
    display: flex;
    margin-bottom: 1rem;
    gap: 1.5rem;
  }
  
  .meta-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  
  .meta-item i {
    margin-right: 0.375rem;
  }
  
  .contract-status-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .payment-progress {
    flex: 1;
    max-width: 200px;
  }
  
  .progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
    overflow: hidden;
  }
  
  .progress-bar {
    background-color: var(--success-color);
    height: 100%;
  }
  
  .progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  /* Página de Processos */
  .processes-container {
    margin-bottom: 2rem;
  }
  
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .process-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: var(--transition);
  }
  
  .process-card:hover {
    transform: translateY(-3px);
  }
  
  .attention-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom-left-radius: 0.5rem;
  }
  
  .process-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .process-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .phase-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .process-card-body {
    padding: 1.25rem;
  }
  
  .process-subject {
    margin-bottom: 1rem;
  }
  
  .process-subject p {
    margin: 0;
    font-weight: 500;
  }
  
  .process-meta {
    margin-bottom: 1rem;
  }
  
  .probability-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
  }
  
  .process-card-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
  }
  
  /* Detalhes do Processo */
  .process-details-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
  }
  
  .process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  
  .process-title h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .process-badge {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .process-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  
  .info-label {
    font-weight: 500;
  }
  
  .process-content-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .process-content-card h3 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .info-item {
    margin-bottom: 0.75rem;
  }
  
  .info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
  }
  
  .info-value {
    font-weight: 500;
  }
  
  .process-observations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }
  
  .process-observations h4 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .observation-content {
    background-color: white;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .process-status-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .process-status-card h3 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .status-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }
  
  .status-icon.active {
    background-color: var(--success-color);
    color: white;
  }
  
  .status-icon.inactive {
    background-color: var(--danger-color);
    color: white;
  }
  
  .status-icon.attention {
    background-color: var(--warning-color);
    color: white;
  }
  
  .status-icon.normal {
    background-color: var(--success-color);
    color: white;
  }
  
  .status-info {
    flex: 1;
  }
  
  .status-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .status-value {
    font-weight: 500;
  }
  
  .process-phase-progress {
    margin-top: 1.5rem;
  }
  
  .process-phase-progress h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .contact-attorney-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
  }
  
  .contact-attorney-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .contact-attorney-card p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
  }
  
  .process-updates {
    margin-top: 2rem;
  }
  
  .process-updates h3 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  /* Página de Documentos */
  .documents-container {
    margin-bottom: 2rem;
  }
  
  .upload-section {
    height: 100%;
  }
  
  #drop-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
  }
  
  #drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
  }
  
  .form-message {
    margin-bottom: 1.5rem;
  }
  
  .form-message i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
  }
  
  .file-types-info {
    margin-top: 1rem;
    color: var(--text-muted);
  }
  
  #file-list-container {
    margin-top: 1.5rem;
  }
  
  .file-list {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .file-item-info {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .file-name {
    margin-right: 0.5rem;
    font-weight: 500;
  }
  
  .file-size {
    color: var(--text-muted);
    font-size: 0.75rem;
  }
  
  .upload-actions {
    display: flex;
    gap: 0.75rem;
  }
  
  .search-container {
    position: relative;
    max-width: 300px;
  }
  
  .search-container input {
    padding-right: 2.5rem;
  }
  
  .search-container i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
  }
  
  .documents-list-section {
    height: 100%;
  }
  
  /* Lista de Documentos */
  .documents-list {
    margin-top: 1rem;
  }
  
  .document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .document-item:last-child {
    border-bottom: none;
  }
  
  .document-info {
    flex: 1;
  }
  
  .document-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .document-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
  }
  
  .document-date i {
    margin-right: 0.25rem;
  }
  
  .document-action {
    margin-left: 1rem;
  }
  
  #documents-table .document-info {
    display: flex;
    align-items: center;
  }
  
  .document-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
  }
  
  .document-icon i {
    font-size: 1.25rem;
    color: var(--gray-600);
  }
  
  .document-icon i.fa-file-pdf {
    color: #e53e3e;
  }
  
  .document-icon i.fa-file-image {
    color: #3182ce;
  }
  
  .document-name {
    font-weight: 500;
  }
  
  .actions {
    display: flex;
    gap: 0.5rem;
  }
  
  /* Sistema de Tickets */
  .tickets-container {
    margin-bottom: 2rem;
  }
  
  .ticket-filters {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .filters-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .filter-group label {
    margin: 0;
    font-weight: 500;
  }
  
  .tickets-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
  }
  
  .ticket-row {
    transition: var(--transition);
  }
  
  .ticket-row:hover {
    background-color: var(--gray-100);
  }
  
  .ticket-row.has-unread {
    background-color: rgba(37, 99, 235, 0.05);
  }
  
  .ticket-id {
    font-weight: 600;
  }
  
  .unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    margin-left: 0.5rem;
  }
  
  .urgency-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 0.5rem;
  }
  
  .urgency-badge.high {
    background-color: var(--danger-color);
    color: white;
  }
  
  .urgency-badge.medium {
    background-color: var(--warning-color);
    color: white;
  }
  
  .status-badge.open {
    background-color: var(--info-color);
    color: white;
  }
  
  .status-badge.in_progress {
    background-color: var(--primary-color);
    color: white;
  }
  
  .status-badge.waiting {
    background-color: var(--warning-color);
    color: white;
  }
  
  .status-badge.closed {
    background-color: var(--gray-500);
    color: white;
  }
  
  .ticket-dates {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .process-link {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .no-process {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
  }
  
  /* Detalhes do Ticket */
  .ticket-details-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
  }
  
  .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .ticket-info h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .ticket-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .ticket-date {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  
  .ticket-subject {
    margin-bottom: 1.5rem;
  }
  
  .ticket-subject h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .related-process {
    font-size: 0.875rem;
  }
  
  .process-label {
    font-weight: 500;
    margin-right: 0.375rem;
  }
  
  .message-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
  }
  
  .message {
    margin-bottom: 1.5rem;
    max-width: 85%;
  }
  
  .message:last-child {
    margin-bottom: 0;
  }
  
  .client-message {
    margin-left: auto;
  }
  
  .staff-message {
    margin-right: auto;
  }
  
  .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .message-sender {
    display: flex;
    align-items: center;
  }
  
  .sender-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
  }
  
  .client-message .sender-avatar {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .staff-message .sender-avatar {
    background-color: var(--gray-200);
    color: var(--gray-700);
  }
  
  .sender-info {
    display: flex;
    flex-direction: column;
  }
  
  .sender-name {
    font-weight: 500;
    font-size: 0.875rem;
  }
  
  .sender-role {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .message-content {
    background-color: var(--gray-100);
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .client-message .message-content {
    background-color: var(--primary-light);
    color: var(--primary-dark);
  }
  
  .message-attachment {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .attachment-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
  }
  
  .attachment-link i {
    margin-right: 0.375rem;
  }
  
  .empty-messages {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
  }
  
  .empty-messages i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
  }
  
  .reply-form {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
  }
  
  .reply-form h4 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .ticket-closed-message {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
  }
  
  .reopen-option {
    margin-top: 1rem;
  }
  
  /* Criar Ticket */
  .create-ticket-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
  }
  
  .create-ticket-form {
    margin-top: 1.5rem;
  }
  
  /* Responsividade */
  
  /* Garantir que o sidebar seja sempre visível em desktop */
  @media (min-width: 992px) {
    .sidebar.offcanvas {
      position: static !important;
      transform: none !important;
      visibility: visible !important;
      width: 250px !important;
      height: auto !important;
      border: none;
      box-shadow: none;
      background-color: #deee !important;
    }
    
    .sidebar.offcanvas .offcanvas-header {
      display: none !important;
    }
  }
  
  @media (max-width: 991px) {
    .sidebar {
      width: 200px;
    }
    
    .info-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 767px) {
      .user-avatar {
        width: 2.6rem;
        height: 2.2rem;
      }
    .client-portal-container {
      flex-direction: column;
    }
    
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-menu ul {
      display: flex;
      flex-wrap: wrap;
    }
    
    .sidebar-menu li {
      width: 100%;
    }
    
    .main-content {
      padding: 1.5rem;
    }

    .login-container {
      padding: 1rem;
    }

    /* Espaçamento entre os boxes do resumo no mobile */
    .dashboard-summary .row {
      --bs-gutter-y: 1rem;
    }

    .filters-container {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .filter-group {
      width: 100%;
      margin-bottom: 0.75rem;
    }
    
    .contract-card {
      flex-direction: column;
      align-items: stretch;
    }
    
    .contract-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .contract-icon {
      margin-right: 0;
      margin-bottom: 0.75rem;
    }
    
    .process-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .process-icon {
      margin-right: 0;
      margin-bottom: 0.75rem;
    }
    
    .process-action {
      margin-top: 1rem;
      margin-left: 0;
    }
    
    .contract-icon,
    .process-icon,
    .document-icon {
      display: none;
    }
    
    #documents-table .document-icon {
      display: none;
    }
    
    .process-info {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    
    .process-info h4,
    .process-subject,
    .process-stage {
      width: 100%;
      margin-bottom: 0.5rem;
    }
    
    .process-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .process-card-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .page-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .document-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .document-action {
      margin-top: 1rem;
      margin-left: 0;
    }
    
    .contract-action {
      margin-top: 1rem;
      margin-left: 0;
    }
    
    .message {
      max-width: 100%;
    }
    
    .contract-meta {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .contract-status-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
    
    .payment-progress {
      max-width: 100%;
      width: 100%;
    }
    .dashboard-widgets .row {
      margin-bottom: 0;
      margin-top: 0;
    }
    
    .dashboard-widgets .row.mt-4 {
      margin-top: 0 !important;
    }
    
    .dashboard-widgets .col-md-6 {
      margin-bottom: 2rem;
    }
    
    .dashboard-widgets .col-md-6.mb-2 {
      margin-bottom: 2rem !important;
    }
    
    .widget {
      margin-bottom: 0;
    }
  }
