body {
  direction: rtl;
  text-align: right;
  background-color: #f8f9fa;
}

.table th,
.table td {
  text-align: right;
  vertical-align: middle;
}

.card {
  border-radius: 0.8rem;
}

textarea.form-control {
  resize: vertical;
}

.navbar .dropdown-menu {
  left: 0;
  right: auto;
}

.ticket-meta-card {
  border: 1px solid #e5e7eb;
}

.ticket-meta-grid {
  font-size: 0.95rem;
}

.comment-bubble {
  max-width: 85%;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid #e9ecef;
}

.comment-user {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
  background-color: #eef6ff;
}

.comment-expert {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  background-color: #f2fff2;
}

.comment-internal {
  border: 1px dashed #6c757d;
  background-color: #fff8e8;
}

.comment-attachments a {
  text-decoration: none;
}

.comment-attachments a:hover {
  text-decoration: underline;
}

.ticket-status { font-weight: 700; }
.navbar-user-name { font-size: 0.8rem; opacity: 0.9; }

.attachment-list {
  padding-right: 1rem;
}

.attachment-list a {
  text-decoration: none;
}

.attachment-list a:hover {
  text-decoration: underline;
}

.priority-critical { color: #dc3545; }
.priority-high { color: #ff9e00; }
.priority-normal { color: #000000; }
.priority-low { color: #6c757d; }

.status-open { color: #2ECC71; font-weight: 700; }
.status-under-review { color: #ff9e00; font-weight: 700; }
.status-user-reply { color: #0080ff; font-weight: 700; }
.status-expert-reply { color: #ff00a7; font-weight: 700; }
.status-closed { color: #000000; font-weight: 700; }
