/* Under NCR Priority Styling */
.priority-2112,
tr.priority-2112,
.issue.priority-2112 {
  background-color: #fff3cd !important;
  border-left: 4px solid #ff9800 !important;
}

.priority-2112 .subject a {
  font-weight: 600 !important;
  color: #ff6d00 !important;
}

/* Priority badge in issue view */
.issue.details .priority span.badge-priority {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  margin-left: 8px;
}

.issue.details .priority-2112 .badge-priority,
.issue.details .priority.under-ncr .badge-priority {
  background-color: #ff9800;
  color: #ffffff;
}

.issue.details .priority-4 .badge-priority {
  background-color: #dc3545;
  color: #ffffff;
}

.issue.details .priority-3 .badge-priority {
  background-color: #ffc107;
  color: #000000;
}

.issue.details .priority-2 .badge-priority {
  background-color: #28a745;
  color: #ffffff;
}

.issue.details .priority-1 .badge-priority {
  background-color: #6c757d;
  color: #ffffff;
}

/* INCR link styling */
.incr-link {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 4px 10px;
  background-color: #ff9800;
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.incr-link:hover {
  background-color: #f57c00;
  color: #ffffff !important;
}

.incr-link:before {
  content: "⚠️";
  margin-right: 6px;
}

/* INCR warning message in task list */
.incr-warning-badge {
  display: inline-block;
  background-color: #ff9800;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 6px;
  vertical-align: middle;
}

/* Modal styling for INCR edit warning */
#incr-edit-warning-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#incr-edit-warning-modal .modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#incr-edit-warning-modal .modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ff9800;
}

#incr-edit-warning-modal .modal-header .warning-icon {
  font-size: 32px;
  margin-right: 15px;
  color: #ff9800;
}

#incr-edit-warning-modal .modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

#incr-edit-warning-modal .modal-body {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

#incr-edit-warning-modal .modal-body .incr-links {
  margin-top: 15px;
  padding: 10px;
  background-color: #fff3cd;
  border-radius: 4px;
}

#incr-edit-warning-modal .modal-body .incr-links a {
  display: block;
  margin: 5px 0;
  color: #ff6d00;
  font-weight: 600;
}

#incr-edit-warning-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#incr-edit-warning-modal .btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

#incr-edit-warning-modal .btn-primary {
  background-color: #ff9800;
  color: #ffffff;
}

#incr-edit-warning-modal .btn-primary:hover {
  background-color: #f57c00;
}

#incr-edit-warning-modal .btn-secondary {
  background-color: #6c757d;
  color: #ffffff;
}

#incr-edit-warning-modal .btn-secondary:hover {
  background-color: #5a6268;
}

/* ========================================
   ISSUE SHOW PAGE - Priority Text Colors
   ======================================== */

/* Under NCR - помаранчевий текст */
.issue.priority-2112 .attribute.priority .value {
  color: #ff6d00 !important;
  font-weight: 700 !important;
}

/* TOP - червоний текст */
.issue.priority-4 .attribute.priority .value {
  color: #dc3545 !important;
  font-weight: 700 !important;
}

/* High - помаранчевий текст */
.issue.priority-3 .attribute.priority .value {
  color: #F27D3E !important;
  font-weight: 700 !important;
}

/* Medium - зелений текст */
.issue.priority-2 .attribute.priority .value {
  color: #28a745 !important;
  font-weight: 700 !important;
}

/* Low - сірий текст */
.issue.priority-1 .attribute.priority .value {
  color: #6c757d !important;
  font-weight: 700 !important;
}

/* ========================================
   TABLES - Priority-2112 (Under NCR)
   ======================================== */

/* Колонка priority в таблиці */
tr.priority-2112 td.priority {
  color: #fff !important;
}

tr.priority-2112 td.priority:before {
  background: #ff9800 !important;
}

/* Лівий бордер першої колонки */
tr.priority-2112 td:first-child:before {
  background: #ff9800 !important;
}

/* Фон рядка для кращої видимості */
tr.priority-2112 {
  background-color: #fff3cd !important;
}